743.d19cb287.async.js 970 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. (self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[743],{28187:function(_e,ee,et){"use strict";var ht=et(67294),dt=et(41098),Kt=et(29640),kt=et(79360),Tt=et(24770),mt=et(27681),ct=function(xt,jt){var Ot={};for(var Pt in xt)Object.prototype.hasOwnProperty.call(xt,Pt)&&jt.indexOf(Pt)<0&&(Ot[Pt]=xt[Pt]);if(xt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,Pt=Object.getOwnPropertySymbols(xt);gt<Pt.length;gt++)jt.indexOf(Pt[gt])<0&&Object.prototype.propertyIsEnumerable.call(xt,Pt[gt])&&(Ot[Pt[gt]]=xt[Pt[gt]]);return Ot},vt=(0,ht.forwardRef)(function(xt,jt){var Ot=xt.chartRef,Pt=xt.style,gt=Pt===void 0?{height:"inherit"}:Pt,d=xt.className,f=xt.loading,rt=xt.loadingTemplate,J=xt.errorTemplate,St=ct(xt,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),wt=(0,Kt.Z)(dt.VT,St),X=wt.chart,at=wt.container;return(0,ht.useEffect)(function(){(0,kt.J)(Ot,X.current)},[X.current]),(0,ht.useImperativeHandle)(jt,function(){return{getChart:function(){return X.current}}}),ht.createElement(Tt.Z,{errorTemplate:J},f&&ht.createElement(mt.Z,{loadingTemplate:rt,theme:xt.theme}),ht.createElement("div",{className:d,style:gt,ref:at}))});ee.Z=vt},80652:function(_e,ee,et){"use strict";var ht=et(67294),dt=et(41098),Kt=et(29640),kt=et(79360),Tt=et(24770),mt=et(27681),ct=function(xt,jt){var Ot={};for(var Pt in xt)Object.prototype.hasOwnProperty.call(xt,Pt)&&jt.indexOf(Pt)<0&&(Ot[Pt]=xt[Pt]);if(xt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,Pt=Object.getOwnPropertySymbols(xt);gt<Pt.length;gt++)jt.indexOf(Pt[gt])<0&&Object.prototype.propertyIsEnumerable.call(xt,Pt[gt])&&(Ot[Pt[gt]]=xt[Pt[gt]]);return Ot},vt=(0,ht.forwardRef)(function(xt,jt){var Ot=xt.chartRef,Pt=xt.style,gt=Pt===void 0?{height:"inherit"}:Pt,d=xt.className,f=xt.loading,rt=xt.loadingTemplate,J=xt.errorTemplate,St=ct(xt,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),wt=(0,Kt.Z)(dt.x1,St),X=wt.chart,at=wt.container;return(0,ht.useEffect)(function(){(0,kt.J)(Ot,X.current)},[X.current]),(0,ht.useImperativeHandle)(jt,function(){return{getChart:function(){return X.current}}}),ht.createElement(Tt.Z,{errorTemplate:J},f&&ht.createElement(mt.Z,{loadingTemplate:rt,theme:xt.theme}),ht.createElement("div",{className:d,style:gt,ref:at}))});ee.Z=vt},24770:function(_e,ee,et){"use strict";var ht=et(67294),dt=function(){var kt=function(Tt,mt){return kt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ct,vt){ct.__proto__=vt}||function(ct,vt){for(var xt in vt)Object.prototype.hasOwnProperty.call(vt,xt)&&(ct[xt]=vt[xt])},kt(Tt,mt)};return function(Tt,mt){if(typeof mt!="function"&&mt!==null)throw new TypeError("Class extends value "+String(mt)+" is not a constructor or null");kt(Tt,mt);function ct(){this.constructor=Tt}Tt.prototype=mt===null?Object.create(mt):(ct.prototype=mt.prototype,new ct)}}(),Kt=function(kt){dt(Tt,kt);function Tt(){var mt=kt!==null&&kt.apply(this,arguments)||this;return mt.state={hasError:!1},mt.renderError=function(ct){var vt=mt.props.errorTemplate;switch(ct){default:return typeof vt=="function"?vt(ct):vt||ht.createElement("h5",null,"\u7EC4\u4EF6\u51FA\u9519\u4E86\uFF0C\u8BF7\u6838\u67E5\u540E\u91CD\u8BD5\uFF1A ",ct.message)}},mt}return Tt.getDerivedStateFromError=function(mt){return{hasError:!0,error:mt}},Tt.getDerivedStateFromProps=function(mt,ct){return ct.children!==mt.children?{children:mt.children,hasError:!1,error:void 0}:null},Tt.prototype.render=function(){return this.state.hasError?this.renderError(this.state.error):ht.createElement(ht.Fragment,null,this.props.children)},Tt}(ht.Component);ee.Z=Kt},29640:function(_e,ee,et){"use strict";et.d(ee,{Z:function(){return lt}});var ht=et(67294),dt=et(41694),Kt=et(73935),kt=et.t(Kt,2),Tt=function(){return Tt=Object.assign||function(Z){for(var nt,T=1,N=arguments.length;T<N;T++){nt=arguments[T];for(var O in nt)Object.prototype.hasOwnProperty.call(nt,O)&&(Z[O]=nt[O])}return Z},Tt.apply(this,arguments)},mt=function(Z,nt,T,N){function O(L){return L instanceof T?L:new T(function(tt){tt(L)})}return new(T||(T=Promise))(function(L,tt){function it(b){try{_(N.next(b))}catch(E){tt(E)}}function k(b){try{_(N.throw(b))}catch(E){tt(E)}}function _(b){b.done?L(b.value):O(b.value).then(it,k)}_((N=N.apply(Z,nt||[])).next())})},ct=function(Z,nt){var T={label:0,sent:function(){if(L[0]&1)throw L[1];return L[1]},trys:[],ops:[]},N,O,L,tt;return tt={next:it(0),throw:it(1),return:it(2)},typeof Symbol=="function"&&(tt[Symbol.iterator]=function(){return this}),tt;function it(_){return function(b){return k([_,b])}}function k(_){if(N)throw new TypeError("Generator is already executing.");for(;tt&&(tt=0,_[0]&&(T=0)),T;)try{if(N=1,O&&(L=_[0]&2?O.return:_[0]?O.throw||((L=O.return)&&L.call(O),0):O.next)&&!(L=L.call(O,_[1])).done)return L;switch(O=0,L&&(_=[_[0]&2,L.value]),_[0]){case 0:case 1:L=_;break;case 4:return T.label++,{value:_[1],done:!1};case 5:T.label++,O=_[1],_=[0];continue;case 7:_=T.ops.pop(),T.trys.pop();continue;default:if(L=T.trys,!(L=L.length>0&&L[L.length-1])&&(_[0]===6||_[0]===2)){T=0;continue}if(_[0]===3&&(!L||_[1]>L[0]&&_[1]<L[3])){T.label=_[1];break}if(_[0]===6&&T.label<L[1]){T.label=L[1],L=_;break}if(L&&T.label<L[2]){T.label=L[2],T.ops.push(_);break}L[2]&&T.ops.pop(),T.trys.pop();continue}_=nt.call(Z,T)}catch(b){_=[6,b],O=0}finally{N=L=0}if(_[0]&5)throw _[1];return{value:_[0]?_[1]:void 0,done:!0}}},vt=Tt({},kt),xt=vt.version,jt=vt.render,Ot=vt.unmountComponentAtNode,Pt;try{var gt=Number((xt||"").split(".")[0]);gt>=18&&(Pt=vt.createRoot)}catch(Z){}function d(Z){var nt=vt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;nt&&typeof nt=="object"&&(nt.usingClientEntryPoint=Z)}var f="__rc_react_root__";function rt(Z,nt){d(!0);var T=nt[f]||Pt(nt);d(!1),T.render(Z),nt[f]=T}function J(Z,nt){jt(Z,nt)}function St(Z,nt){}function wt(Z,nt){if(Pt){rt(Z,nt);return}J(Z,nt)}function X(Z){return mt(this,void 0,void 0,function(){return ct(this,function(nt){return[2,Promise.resolve().then(function(){var T;(T=Z[f])===null||T===void 0||T.unmount(),delete Z[f]})]})})}function at(Z){Ot(Z)}function _t(Z){}function Rt(Z){return mt(this,void 0,void 0,function(){return ct(this,function(nt){return Pt!==void 0?[2,X(Z)]:(at(Z),[2])})})}var $t=new Map,re=function(Z,nt,T){var N=document.createElement("div");return nt==="tooltip"&&(N.setAttribute("data-uuid",T),$t.has(T)?N=$t.get(T):$t.set(T,N),N.className="g2-tooltip"),wt(Z,N),N},Se=re,pt=function(Z,nt){var T={}.toString;return T.call(Z)==="[object ".concat(nt,"]")},Dt=function(Z){if(!Z)return Z;var nt={};for(var T in Z)nt[T]=Z[T];return nt},Jt=function(Z){return Object.prototype.toString.call(Z).slice(8,-1)},Ht=function(Z){if(!Z||typeof Z!="object")return Z;var nt;return Array.isArray(Z)?nt=Z.map(function(T){return Ht(T)}):(nt={},Object.keys(Z).forEach(function(T){return nt[T]=Ht(Z[T])})),nt},At=function(Z,nt){for(var T=Z,N=0;N<nt.length;N+=1)if(T==null?void 0:T[nt[N]])T=T[nt[N]];else{T=void 0;break}return T},U=function(Z,nt,T){if(!Z)return Z;var N=Z;return nt.forEach(function(O,L){L<nt.length-1?N=N[O]:N[O]=T}),Z},C=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(Z){var nt=Math.random()*16|0,T=Z=="x"?nt:nt&3|8;return T.toString(16)})},F=function(){return F=Object.assign||function(Z){for(var nt,T=1,N=arguments.length;T<N;T++){nt=arguments[T];for(var O in nt)Object.prototype.hasOwnProperty.call(nt,O)&&(Z[O]=nt[O])}return Z},F.apply(this,arguments)},W=function(Z,nt){var T={};for(var N in Z)Object.prototype.hasOwnProperty.call(Z,N)&&nt.indexOf(N)<0&&(T[N]=Z[N]);if(Z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,N=Object.getOwnPropertySymbols(Z);O<N.length;O++)nt.indexOf(N[O])<0&&Object.prototype.propertyIsEnumerable.call(Z,N[O])&&(T[N[O]]=Z[N[O]]);return T};function lt(Z,nt){var T=(0,ht.useRef)(),N=(0,ht.useRef)(),O=(0,ht.useRef)(null),L=nt.onReady,tt=nt.onEvent,it=function(E,I){var z;return E===void 0&&(E="image/png"),(z=T.current)===null||z===void 0?void 0:z.chart.canvas.cfg.el.toDataURL(E,I)},k=function(E,I,z){var B;E===void 0&&(E="download"),I===void 0&&(I="image/png");var j=E;E.indexOf(".")===-1&&(j="".concat(E,".").concat(I.split("/")[1]));var Q=(B=T.current)===null||B===void 0?void 0:B.chart.canvas.cfg.el.toDataURL(I,z),Ct=document.createElement("a");return Ct.href=Q,Ct.download=j,document.body.appendChild(Ct),Ct.click(),document.body.removeChild(Ct),Ct=null,j},_=function(E,I,z,B){var j=At(E,I);U(E,I,function(){for(var Q=[],Ct=0;Ct<arguments.length;Ct++)Q[Ct]=arguments[Ct];var qt=pt(j,"Function")?j.apply(void 0,Q):j;return pt(qt,"String")||pt(qt,"Number")||pt(qt,"HTMLDivElement")?qt:Se(qt,z,B)})},b=function(){var E=C();At(nt,["statistic","content","customHtml"])&&_(nt,["statistic","content","customHtml"]),At(nt,["statistic","title","customHtml"])&&_(nt,["statistic","title","customHtml"]),typeof nt.tooltip=="object"&&(At(nt,["tooltip","container"])&&_(nt,["tooltip","container"],"tooltip",E),At(nt,["tooltip","customContent"])&&_(nt,["tooltip","customContent"],"tooltip",E))};return(0,ht.useEffect)(function(){if(T.current&&!(0,dt.Xy)(N.current,nt)){var E=!1;if(N.current){var I=N.current,z=I.data,B=I.value,j=I.percent,Q=W(I,["data","value","percent"]),Ct=nt.data,qt=nt.value,Yt=nt.percent,ne=W(nt,["data","value","percent"]);E=(0,dt.Xy)(Q,ne)}if(N.current=Ht(nt),E&&(0,dt.U2)(nt,"chartType")!=="Mix"){var Zt="data",Gt=["percent"],pe=Object.keys(nt);Gt.forEach(function(ke){pe.includes(ke)&&(Zt=ke)}),T.current.changeData((nt==null?void 0:nt[Zt])||[]),T.current.render()}else b(),T.current.update(nt)}},[nt]),(0,ht.useEffect)(function(){if(!O.current)return function(){return null};N.current||(N.current=Ht(nt)),b();var E=new Z(O.current,F({},nt));E.toDataURL=function(z,B){return it(z,B)},E.downloadImage=function(z,B,j){return k(z,B,j)},E.render(),T.current=Dt(E),L&&L(E);var I=function(z){tt&&tt(E,z)};return E.on("*",I),function(){T.current&&(T.current.destroy(),T.current.off("*",I),T.current=void 0)}},[]),{chart:T,container:O}}},27681:function(_e,ee,et){"use strict";et.d(ee,{Z:function(){return d}});var ht=et(67294);/*! *****************************************************************************
  2. Copyright (c) Microsoft Corporation. All rights reserved.
  3. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  4. this file except in compliance with the License. You may obtain a copy of the
  5. License at http://www.apache.org/licenses/LICENSE-2.0
  6. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  7. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  8. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  9. MERCHANTABLITY OR NON-INFRINGEMENT.
  10. See the Apache Version 2.0 License for specific language governing permissions
  11. and limitations under the License.
  12. ***************************************************************************** */var dt=function(){return dt=Object.assign||function(rt){for(var J,St=1,wt=arguments.length;St<wt;St++){J=arguments[St];for(var X in J)Object.prototype.hasOwnProperty.call(J,X)&&(rt[X]=J[X])}return rt},dt.apply(this,arguments)};function Kt(f,rt){var J={};for(var St in f)Object.prototype.hasOwnProperty.call(f,St)&&rt.indexOf(St)<0&&(J[St]=f[St]);if(f!=null&&typeof Object.getOwnPropertySymbols=="function")for(var wt=0,St=Object.getOwnPropertySymbols(f);wt<St.length;wt++)rt.indexOf(St[wt])<0&&Object.prototype.propertyIsEnumerable.call(f,St[wt])&&(J[St[wt]]=f[St[wt]]);return J}var kt=function(){return Math.random().toString(36).substring(6)},Tt=function(f){var rt=f.animate,J=f.backgroundColor,St=f.backgroundOpacity,wt=f.baseUrl,X=f.children,at=f.foregroundColor,_t=f.foregroundOpacity,Rt=f.gradientRatio,$t=f.uniqueKey,re=f.interval,Se=f.rtl,pt=f.speed,Dt=f.style,Jt=f.title,Ht=Kt(f,["animate","backgroundColor","backgroundOpacity","baseUrl","children","foregroundColor","foregroundOpacity","gradientRatio","uniqueKey","interval","rtl","speed","style","title"]),At=$t||kt(),U=At+"-diff",C=At+"-animated-diff",F=At+"-aria",W=Se?{transform:"scaleX(-1)"}:null,lt="0; "+re+"; 1",Z=pt+"s";return(0,ht.createElement)("svg",dt({"aria-labelledby":F,role:"img",style:dt(dt({},Dt),W)},Ht),Jt?(0,ht.createElement)("title",{id:F},Jt):null,(0,ht.createElement)("rect",{role:"presentation",x:"0",y:"0",width:"100%",height:"100%",clipPath:"url("+wt+"#"+U+")",style:{fill:"url("+wt+"#"+C+")"}}),(0,ht.createElement)("defs",{role:"presentation"},(0,ht.createElement)("clipPath",{id:U},X),(0,ht.createElement)("linearGradient",{id:C},(0,ht.createElement)("stop",{offset:"0%",stopColor:J,stopOpacity:St},rt&&(0,ht.createElement)("animate",{attributeName:"offset",values:-Rt+"; "+-Rt+"; 1",keyTimes:lt,dur:Z,repeatCount:"indefinite"})),(0,ht.createElement)("stop",{offset:"50%",stopColor:at,stopOpacity:_t},rt&&(0,ht.createElement)("animate",{attributeName:"offset",values:-Rt/2+"; "+-Rt/2+"; "+(1+Rt/2),keyTimes:lt,dur:Z,repeatCount:"indefinite"})),(0,ht.createElement)("stop",{offset:"100%",stopColor:J,stopOpacity:St},rt&&(0,ht.createElement)("animate",{attributeName:"offset",values:"0; 0; "+(1+Rt),keyTimes:lt,dur:Z,repeatCount:"indefinite"})))))};Tt.defaultProps={animate:!0,backgroundColor:"#f5f6f7",backgroundOpacity:1,baseUrl:"",foregroundColor:"#eee",foregroundOpacity:1,gradientRatio:2,id:null,interval:.25,rtl:!1,speed:1.2,style:{},title:"Loading..."};var mt=function(f){return f.children?(0,ht.createElement)(Tt,dt({},f)):(0,ht.createElement)(ct,dt({},f))},ct=function(f){return(0,ht.createElement)(mt,dt({viewBox:"0 0 476 124"},f),(0,ht.createElement)("rect",{x:"48",y:"8",width:"88",height:"6",rx:"3"}),(0,ht.createElement)("rect",{x:"48",y:"26",width:"52",height:"6",rx:"3"}),(0,ht.createElement)("rect",{x:"0",y:"56",width:"410",height:"6",rx:"3"}),(0,ht.createElement)("rect",{x:"0",y:"72",width:"380",height:"6",rx:"3"}),(0,ht.createElement)("rect",{x:"0",y:"88",width:"178",height:"6",rx:"3"}),(0,ht.createElement)("circle",{cx:"20",cy:"20",r:"20"}))},vt=function(f){return createElement(mt,dt({viewBox:"0 0 400 460"},f),createElement("circle",{cx:"31",cy:"31",r:"15"}),createElement("rect",{x:"58",y:"18",rx:"2",ry:"2",width:"140",height:"10"}),createElement("rect",{x:"58",y:"34",rx:"2",ry:"2",width:"140",height:"10"}),createElement("rect",{x:"0",y:"60",rx:"2",ry:"2",width:"400",height:"400"}))},xt=function(f){return createElement(mt,dt({viewBox:"0 0 340 84"},f),createElement("rect",{x:"0",y:"0",width:"67",height:"11",rx:"3"}),createElement("rect",{x:"76",y:"0",width:"140",height:"11",rx:"3"}),createElement("rect",{x:"127",y:"48",width:"53",height:"11",rx:"3"}),createElement("rect",{x:"187",y:"48",width:"72",height:"11",rx:"3"}),createElement("rect",{x:"18",y:"48",width:"100",height:"11",rx:"3"}),createElement("rect",{x:"0",y:"71",width:"37",height:"11",rx:"3"}),createElement("rect",{x:"18",y:"23",width:"140",height:"11",rx:"3"}),createElement("rect",{x:"166",y:"23",width:"173",height:"11",rx:"3"}))},jt=function(f){return createElement(mt,dt({viewBox:"0 0 400 110"},f),createElement("rect",{x:"0",y:"0",rx:"3",ry:"3",width:"250",height:"10"}),createElement("rect",{x:"20",y:"20",rx:"3",ry:"3",width:"220",height:"10"}),createElement("rect",{x:"20",y:"40",rx:"3",ry:"3",width:"170",height:"10"}),createElement("rect",{x:"0",y:"60",rx:"3",ry:"3",width:"250",height:"10"}),createElement("rect",{x:"20",y:"80",rx:"3",ry:"3",width:"200",height:"10"}),createElement("rect",{x:"20",y:"100",rx:"3",ry:"3",width:"80",height:"10"}))},Ot=function(f){return createElement(mt,dt({viewBox:"0 0 245 125"},f),createElement("circle",{cx:"10",cy:"20",r:"8"}),createElement("rect",{x:"25",y:"15",rx:"5",ry:"5",width:"220",height:"10"}),createElement("circle",{cx:"10",cy:"50",r:"8"}),createElement("rect",{x:"25",y:"45",rx:"5",ry:"5",width:"220",height:"10"}),createElement("circle",{cx:"10",cy:"80",r:"8"}),createElement("rect",{x:"25",y:"75",rx:"5",ry:"5",width:"220",height:"10"}),createElement("circle",{cx:"10",cy:"110",r:"8"}),createElement("rect",{x:"25",y:"105",rx:"5",ry:"5",width:"220",height:"10"}))},Pt=mt,gt=function(f){var rt=f.loadingTemplate,J=f.theme,St=J===void 0?"light":J,wt=function(){return rt||ht.createElement(Pt,{viewBox:"0 0 400 180",width:200,height:90,speed:1,backgroundColor:St==="dark"?"#262626":"#D9D9D9"},ht.createElement("rect",{x:"20",y:"5",rx:"0",ry:"0",width:"1",height:"170"}),ht.createElement("rect",{x:"20",y:"175",rx:"0",ry:"0",width:"360",height:"1"}),ht.createElement("rect",{x:"40",y:"75",rx:"0",ry:"0",width:"35",height:"100"}),ht.createElement("rect",{x:"80",y:"125",rx:"0",ry:"0",width:"35",height:"50"}),ht.createElement("rect",{x:"120",y:"105",rx:"0",ry:"0",width:"35",height:"70"}),ht.createElement("rect",{x:"160",y:"35",rx:"0",ry:"0",width:"35",height:"140"}),ht.createElement("rect",{x:"200",y:"55",rx:"0",ry:"0",width:"35",height:"120"}),ht.createElement("rect",{x:"240",y:"15",rx:"0",ry:"0",width:"35",height:"160"}),ht.createElement("rect",{x:"280",y:"135",rx:"0",ry:"0",width:"35",height:"40"}),ht.createElement("rect",{x:"320",y:"85",rx:"0",ry:"0",width:"35",height:"90"}))};return ht.createElement("div",{className:"charts-loading-container",style:{position:"absolute",width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",left:0,top:0,zIndex:99,backgroundColor:St==="dark"?"rgb(20, 20, 20)":"rgb(255, 255, 255)"}},wt())},d=gt},79360:function(_e,ee,et){"use strict";et.d(ee,{J:function(){return dt}});var ht=et(41694),dt=function(Kt,kt){!Kt||((0,ht.mf)(Kt)?Kt(kt):Kt.current=kt)}},90494:function(_e,ee){"use strict";var et="*",ht=function(){function dt(){this._events={}}return dt.prototype.on=function(Kt,kt,Tt){return this._events[Kt]||(this._events[Kt]=[]),this._events[Kt].push({callback:kt,once:!!Tt}),this},dt.prototype.once=function(Kt,kt){return this.on(Kt,kt,!0)},dt.prototype.emit=function(Kt){for(var kt=this,Tt=[],mt=1;mt<arguments.length;mt++)Tt[mt-1]=arguments[mt];var ct=this._events[Kt]||[],vt=this._events[et]||[],xt=function(jt){for(var Ot=jt.length,Pt=0;Pt<Ot;Pt++)if(!!jt[Pt]){var gt=jt[Pt],d=gt.callback,f=gt.once;f&&(jt.splice(Pt,1),jt.length===0&&delete kt._events[Kt],Ot--,Pt--),d.apply(kt,Tt)}};xt(ct),xt(vt)},dt.prototype.off=function(Kt,kt){if(!Kt)this._events={};else if(!kt)delete this._events[Kt];else{for(var Tt=this._events[Kt]||[],mt=Tt.length,ct=0;ct<mt;ct++)Tt[ct].callback===kt&&(Tt.splice(ct,1),mt--,ct--);Tt.length===0&&delete this._events[Kt]}return this},dt.prototype.getEvents=function(){return this._events},dt}();ee.Z=ht},2667:function(_e,ee,et){"use strict";var ht=et(70655),dt=et(90494),Kt=et(77341),kt=function(Tt){(0,ht.ZT)(mt,Tt);function mt(ct){var vt=Tt.call(this)||this;vt.destroyed=!1;var xt=vt.getDefaultCfg();return vt.cfg=(0,Kt.CD)(xt,ct),vt}return mt.prototype.getDefaultCfg=function(){return{}},mt.prototype.get=function(ct){return this.cfg[ct]},mt.prototype.set=function(ct,vt){this.cfg[ct]=vt},mt.prototype.destroy=function(){this.cfg={destroyed:!0},this.off(),this.destroyed=!0},mt}(dt.Z);ee.Z=kt},96298:function(_e,ee,et){"use strict";et.d(ee,{Z:function(){return $n}});var ht=et(70655),dt=et(43631),Kt=et(37153),kt=et(77341),Tt=et(41694),mt=0,ct=0,vt=0,xt=1e3,jt,Ot,Pt=0,gt=0,d=0,f=typeof performance=="object"&&performance.now?performance:Date,rt=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(H){setTimeout(H,17)};function J(){return gt||(rt(St),gt=f.now()+d)}function St(){gt=0}function wt(){this._call=this._time=this._next=null}wt.prototype=X.prototype={constructor:wt,restart:function(H,R,Y){if(typeof H!="function")throw new TypeError("callback is not a function");Y=(Y==null?J():+Y)+(R==null?0:+R),!this._next&&Ot!==this&&(Ot?Ot._next=this:jt=this,Ot=this),this._call=H,this._time=Y,re()},stop:function(){this._call&&(this._call=null,this._time=Infinity,re())}};function X(H,R,Y){var ut=new wt;return ut.restart(H,R,Y),ut}function at(){J(),++mt;for(var H=jt,R;H;)(R=gt-H._time)>=0&&H._call.call(null,R),H=H._next;--mt}function _t(){gt=(Pt=f.now())+d,mt=ct=0;try{at()}finally{mt=0,$t(),gt=0}}function Rt(){var H=f.now(),R=H-Pt;R>xt&&(d-=R,Pt=H)}function $t(){for(var H,R=jt,Y,ut=Infinity;R;)R._call?(ut>R._time&&(ut=R._time),H=R,R=R._next):(Y=R._next,R._next=null,R=H?H._next=Y:jt=Y);Ot=H,re(ut)}function re(H){if(!mt){ct&&(ct=clearTimeout(ct));var R=H-gt;R>24?(H<Infinity&&(ct=setTimeout(_t,H-f.now()-d)),vt&&(vt=clearInterval(vt))):(vt||(Pt=f.now(),vt=setInterval(Rt,xt)),mt=1,rt(_t))}}function Se(H,R,Y){H.prototype=R.prototype=Y,Y.constructor=H}function pt(H,R){var Y=Object.create(H.prototype);for(var ut in R)Y[ut]=R[ut];return Y}function Dt(){}var Jt=.7,Ht=1/Jt,At="\\s*([+-]?\\d+)\\s*",U="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",C="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",F=/^#([0-9a-f]{3,8})$/,W=new RegExp("^rgb\\("+[At,At,At]+"\\)$"),lt=new RegExp("^rgb\\("+[C,C,C]+"\\)$"),Z=new RegExp("^rgba\\("+[At,At,At,U]+"\\)$"),nt=new RegExp("^rgba\\("+[C,C,C,U]+"\\)$"),T=new RegExp("^hsl\\("+[U,C,C]+"\\)$"),N=new RegExp("^hsla\\("+[U,C,C,U]+"\\)$"),O={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Se(Dt,k,{copy:function(H){return Object.assign(new this.constructor,this,H)},displayable:function(){return this.rgb().displayable()},hex:L,formatHex:L,formatHsl:tt,formatRgb:it,toString:it});function L(){return this.rgb().formatHex()}function tt(){return qt(this).formatHsl()}function it(){return this.rgb().formatRgb()}function k(H){var R,Y;return H=(H+"").trim().toLowerCase(),(R=F.exec(H))?(Y=R[1].length,R=parseInt(R[1],16),Y===6?_(R):Y===3?new z(R>>8&15|R>>4&240,R>>4&15|R&240,(R&15)<<4|R&15,1):Y===8?b(R>>24&255,R>>16&255,R>>8&255,(R&255)/255):Y===4?b(R>>12&15|R>>8&240,R>>8&15|R>>4&240,R>>4&15|R&240,((R&15)<<4|R&15)/255):null):(R=W.exec(H))?new z(R[1],R[2],R[3],1):(R=lt.exec(H))?new z(R[1]*255/100,R[2]*255/100,R[3]*255/100,1):(R=Z.exec(H))?b(R[1],R[2],R[3],R[4]):(R=nt.exec(H))?b(R[1]*255/100,R[2]*255/100,R[3]*255/100,R[4]):(R=T.exec(H))?Ct(R[1],R[2]/100,R[3]/100,1):(R=N.exec(H))?Ct(R[1],R[2]/100,R[3]/100,R[4]):O.hasOwnProperty(H)?_(O[H]):H==="transparent"?new z(NaN,NaN,NaN,0):null}function _(H){return new z(H>>16&255,H>>8&255,H&255,1)}function b(H,R,Y,ut){return ut<=0&&(H=R=Y=NaN),new z(H,R,Y,ut)}function E(H){return H instanceof Dt||(H=k(H)),H?(H=H.rgb(),new z(H.r,H.g,H.b,H.opacity)):new z}function I(H,R,Y,ut){return arguments.length===1?E(H):new z(H,R,Y,ut==null?1:ut)}function z(H,R,Y,ut){this.r=+H,this.g=+R,this.b=+Y,this.opacity=+ut}Se(z,I,pt(Dt,{brighter:function(H){return H=H==null?Ht:Math.pow(Ht,H),new z(this.r*H,this.g*H,this.b*H,this.opacity)},darker:function(H){return H=H==null?Jt:Math.pow(Jt,H),new z(this.r*H,this.g*H,this.b*H,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:B,formatHex:B,formatRgb:j,toString:j}));function B(){return"#"+Q(this.r)+Q(this.g)+Q(this.b)}function j(){var H=this.opacity;return H=isNaN(H)?1:Math.max(0,Math.min(1,H)),(H===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(H===1?")":", "+H+")")}function Q(H){return H=Math.max(0,Math.min(255,Math.round(H)||0)),(H<16?"0":"")+H.toString(16)}function Ct(H,R,Y,ut){return ut<=0?H=R=Y=NaN:Y<=0||Y>=1?H=R=NaN:R<=0&&(H=NaN),new ne(H,R,Y,ut)}function qt(H){if(H instanceof ne)return new ne(H.h,H.s,H.l,H.opacity);if(H instanceof Dt||(H=k(H)),!H)return new ne;if(H instanceof ne)return H;H=H.rgb();var R=H.r/255,Y=H.g/255,ut=H.b/255,Bt=Math.min(R,Y,ut),oe=Math.max(R,Y,ut),ce=NaN,le=oe-Bt,De=(oe+Bt)/2;return le?(R===oe?ce=(Y-ut)/le+(Y<ut)*6:Y===oe?ce=(ut-R)/le+2:ce=(R-Y)/le+4,le/=De<.5?oe+Bt:2-oe-Bt,ce*=60):le=De>0&&De<1?0:ce,new ne(ce,le,De,H.opacity)}function Yt(H,R,Y,ut){return arguments.length===1?qt(H):new ne(H,R,Y,ut==null?1:ut)}function ne(H,R,Y,ut){this.h=+H,this.s=+R,this.l=+Y,this.opacity=+ut}Se(ne,Yt,pt(Dt,{brighter:function(H){return H=H==null?Ht:Math.pow(Ht,H),new ne(this.h,this.s,this.l*H,this.opacity)},darker:function(H){return H=H==null?Jt:Math.pow(Jt,H),new ne(this.h,this.s,this.l*H,this.opacity)},rgb:function(){var H=this.h%360+(this.h<0)*360,R=isNaN(H)||isNaN(this.s)?0:this.s,Y=this.l,ut=Y+(Y<.5?Y:1-Y)*R,Bt=2*Y-ut;return new z(Zt(H>=240?H-240:H+120,Bt,ut),Zt(H,Bt,ut),Zt(H<120?H+240:H-120,Bt,ut),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var H=this.opacity;return H=isNaN(H)?1:Math.max(0,Math.min(1,H)),(H===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(H===1?")":", "+H+")")}}));function Zt(H,R,Y){return(H<60?R+(Y-R)*H/60:H<180?Y:H<240?R+(Y-R)*(240-H)/60:R)*255}function Gt(H,R,Y,ut,Bt){var oe=H*H,ce=oe*H;return((1-3*H+3*oe-ce)*R+(4-6*oe+3*ce)*Y+(1+3*H+3*oe-3*ce)*ut+ce*Bt)/6}function pe(H){var R=H.length-1;return function(Y){var ut=Y<=0?Y=0:Y>=1?(Y=1,R-1):Math.floor(Y*R),Bt=H[ut],oe=H[ut+1],ce=ut>0?H[ut-1]:2*Bt-oe,le=ut<R-1?H[ut+2]:2*oe-Bt;return Gt((Y-ut/R)*R,ce,Bt,oe,le)}}function ke(H){var R=H.length;return function(Y){var ut=Math.floor(((Y%=1)<0?++Y:Y)*R),Bt=H[(ut+R-1)%R],oe=H[ut%R],ce=H[(ut+1)%R],le=H[(ut+2)%R];return Gt((Y-ut/R)*R,Bt,oe,ce,le)}}var Ne=function(H){return function(){return H}};function Ve(H,R){return function(Y){return H+Y*R}}function fr(H,R,Y){return H=Math.pow(H,Y),R=Math.pow(R,Y)-H,Y=1/Y,function(ut){return Math.pow(H+ut*R,Y)}}function _r(H,R){var Y=R-H;return Y?Ve(H,Y>180||Y<-180?Y-360*Math.round(Y/360):Y):constant(isNaN(H)?R:H)}function Fr(H){return(H=+H)==1?q:function(R,Y){return Y-R?fr(R,Y,H):Ne(isNaN(R)?Y:R)}}function q(H,R){var Y=R-H;return Y?Ve(H,Y):Ne(isNaN(H)?R:H)}var G=function H(R){var Y=Fr(R);function ut(Bt,oe){var ce=Y((Bt=I(Bt)).r,(oe=I(oe)).r),le=Y(Bt.g,oe.g),De=Y(Bt.b,oe.b),ir=q(Bt.opacity,oe.opacity);return function(wr){return Bt.r=ce(wr),Bt.g=le(wr),Bt.b=De(wr),Bt.opacity=ir(wr),Bt+""}}return ut.gamma=H,ut}(1);function st(H){return function(R){var Y=R.length,ut=new Array(Y),Bt=new Array(Y),oe=new Array(Y),ce,le;for(ce=0;ce<Y;++ce)le=I(R[ce]),ut[ce]=le.r||0,Bt[ce]=le.g||0,oe[ce]=le.b||0;return ut=H(ut),Bt=H(Bt),oe=H(oe),le.opacity=1,function(De){return le.r=ut(De),le.g=Bt(De),le.b=oe(De),le+""}}}var yt=st(pe),Ft=st(ke);function Vt(H,R){R||(R=[]);var Y=H?Math.min(R.length,H.length):0,ut=R.slice(),Bt;return function(oe){for(Bt=0;Bt<Y;++Bt)ut[Bt]=H[Bt]*(1-oe)+R[Bt]*oe;return ut}}function Nt(H){return ArrayBuffer.isView(H)&&!(H instanceof DataView)}function Xt(H,R){return(Nt(R)?Vt:Et)(H,R)}function Et(H,R){var Y=R?R.length:0,ut=H?Math.min(Y,H.length):0,Bt=new Array(ut),oe=new Array(Y),ce;for(ce=0;ce<ut;++ce)Bt[ce]=ae(H[ce],R[ce]);for(;ce<Y;++ce)oe[ce]=R[ce];return function(le){for(ce=0;ce<ut;++ce)oe[ce]=Bt[ce](le);return oe}}function te(H,R){var Y=new Date;return H=+H,R=+R,function(ut){return Y.setTime(H*(1-ut)+R*ut),Y}}function Ut(H,R){return H=+H,R=+R,function(Y){return H*(1-Y)+R*Y}}function de(H,R){var Y={},ut={},Bt;(H===null||typeof H!="object")&&(H={}),(R===null||typeof R!="object")&&(R={});for(Bt in R)Bt in H?Y[Bt]=ae(H[Bt],R[Bt]):ut[Bt]=R[Bt];return function(oe){for(Bt in Y)ut[Bt]=Y[Bt](oe);return ut}}var xe=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,se=new RegExp(xe.source,"g");function me(H){return function(){return H}}function Ce(H){return function(R){return H(R)+""}}function Me(H,R){var Y=xe.lastIndex=se.lastIndex=0,ut,Bt,oe,ce=-1,le=[],De=[];for(H=H+"",R=R+"";(ut=xe.exec(H))&&(Bt=se.exec(R));)(oe=Bt.index)>Y&&(oe=R.slice(Y,oe),le[ce]?le[ce]+=oe:le[++ce]=oe),(ut=ut[0])===(Bt=Bt[0])?le[ce]?le[ce]+=Bt:le[++ce]=Bt:(le[++ce]=null,De.push({i:ce,x:Ut(ut,Bt)})),Y=se.lastIndex;return Y<R.length&&(oe=R.slice(Y),le[ce]?le[ce]+=oe:le[++ce]=oe),le.length<2?De[0]?Ce(De[0].x):me(R):(R=De.length,function(ir){for(var wr=0,Or;wr<R;++wr)le[(Or=De[wr]).i]=Or.x(ir);return le.join("")})}function ae(H,R){var Y=typeof R,ut;return R==null||Y==="boolean"?Ne(R):(Y==="number"?Ut:Y==="string"?(ut=k(R))?(R=ut,G):Me:R instanceof k?G:R instanceof Date?te:Nt(R)?Vt:Array.isArray(R)?Et:typeof R.valueOf!="function"&&typeof R.toString!="function"||isNaN(R)?de:Ut)(H,R)}var Ie=et(97492),Le=et(47575),He=function(H){return["fill","stroke","fillStyle","strokeStyle"].includes(H)},ze=function(H){return/^[r,R,L,l]{1}[\s]*\(/.test(H)},qe=[1,0,0,0,1,0,0,0,1];function je(H,R,Y){var ut={},Bt=R.fromAttrs,oe=R.toAttrs;if(!H.destroyed){var ce;for(var le in oe)if(!(0,Tt.Xy)(Bt[le],oe[le]))if(le==="path"){var De=oe[le],ir=Bt[le];De.length>ir.length?(De=Le.parsePathString(oe[le]),ir=Le.parsePathString(Bt[le]),ir=Le.fillPathByDiff(ir,De),ir=Le.formatPath(ir,De),R.fromAttrs.path=ir,R.toAttrs.path=De):R.pathFormatted||(De=Le.parsePathString(oe[le]),ir=Le.parsePathString(Bt[le]),ir=Le.formatPath(ir,De),R.fromAttrs.path=ir,R.toAttrs.path=De,R.pathFormatted=!0),ut[le]=[];for(var wr=0;wr<De.length;wr++){for(var Or=De[wr],gn=ir[wr],Ln=[],Yr=0;Yr<Or.length;Yr++)(0,Tt.hj)(Or[Yr])&&gn&&(0,Tt.hj)(gn[Yr])?(ce=ae(gn[Yr],Or[Yr]),Ln.push(ce(Y))):Ln.push(Or[Yr]);ut[le].push(Ln)}}else if(le==="matrix"){var qi=Xt(Bt[le]||qe,oe[le]||qe),Ea=qi(Y);ut[le]=Ea}else He(le)&&ze(oe[le])?ut[le]=oe[le]:(0,Tt.mf)(oe[le])||(ce=ae(Bt[le],oe[le]),ut[le]=ce(Y));H.attr(ut)}}function mr(H,R,Y){var ut=R.startTime,Bt=R.delay;if(Y<ut+Bt||R._paused)return!1;var oe,ce=R.duration,le=R.easing,De=(0,Ie._)(le);if(Y=Y-ut-R.delay,R.repeat)oe=Y%ce/ce,oe=De(oe);else if(oe=Y/ce,oe<1)oe=De(oe);else return R.onFrame?H.attr(R.onFrame(1)):H.attr(R.toAttrs),!0;if(R.onFrame){var ir=R.onFrame(oe);H.attr(ir)}else je(H,R,oe);return!1}var br=function(){function H(R){this.animators=[],this.current=0,this.timer=null,this.canvas=R}return H.prototype.initTimer=function(){var R=this,Y=!1,ut,Bt,oe;this.timer=X(function(ce){if(R.current=ce,R.animators.length>0){for(var le=R.animators.length-1;le>=0;le--){if(ut=R.animators[le],ut.destroyed){R.removeAnimator(le);continue}if(!ut.isAnimatePaused()){Bt=ut.get("animations");for(var De=Bt.length-1;De>=0;De--)oe=Bt[De],Y=mr(ut,oe,ce),Y&&(Bt.splice(De,1),Y=!1,oe.callback&&oe.callback())}Bt.length===0&&R.removeAnimator(le)}var ir=R.canvas.get("autoDraw");ir||R.canvas.draw()}})},H.prototype.addAnimator=function(R){this.animators.push(R)},H.prototype.removeAnimator=function(R){this.animators.splice(R,1)},H.prototype.isAnimating=function(){return!!this.animators.length},H.prototype.stop=function(){this.timer&&this.timer.stop()},H.prototype.stopAllAnimations=function(R){R===void 0&&(R=!0),this.animators.forEach(function(Y){Y.stopAnimate(R)}),this.animators=[],this.canvas.draw()},H.prototype.getTime=function(){return this.current},H}(),xr=br,Dr=et(89473),an=40,In=0,mi=":",on=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function vn(H,R){for(var Y in H)if(H.hasOwnProperty(Y)&&Y.indexOf(mi+R)>=0)return!0;return!1}function pn(H,R,Y){Y.name=R,Y.target=H,Y.currentTarget=H,Y.delegateTarget=H,H.emit(R,Y)}function dn(H,R,Y){if(Y.bubbles){var ut=void 0,Bt=!1;if(R==="mouseenter"?(ut=Y.fromShape,Bt=!0):R==="mouseleave"&&(Bt=!0,ut=Y.toShape),H.isCanvas()&&Bt)return;if(ut&&(0,kt.UY)(H,ut)){Y.bubbles=!1;return}Y.name=R,Y.currentTarget=H,Y.delegateTarget=H,H.emit(R,Y)}}var Zn=function(){function H(R){var Y=this;this.draggingShape=null,this.dragging=!1,this.currentShape=null,this.mousedownShape=null,this.mousedownPoint=null,this._eventCallback=function(ut){var Bt=ut.type;Y._triggerEvent(Bt,ut)},this._onDocumentMove=function(ut){var Bt=Y.canvas,oe=Bt.get("el");if(oe!==ut.target&&(Y.dragging||Y.currentShape)){var ce=Y._getPointInfo(ut);Y.dragging&&Y._emitEvent("drag",ut,ce,Y.draggingShape)}},this._onDocumentMouseUp=function(ut){var Bt=Y.canvas,oe=Bt.get("el");if(oe!==ut.target&&Y.dragging){var ce=Y._getPointInfo(ut);Y.draggingShape&&Y._emitEvent("drop",ut,ce,null),Y._emitEvent("dragend",ut,ce,Y.draggingShape),Y._afterDrag(Y.draggingShape,ce,ut)}},this.canvas=R.canvas}return H.prototype.init=function(){this._bindEvents()},H.prototype._bindEvents=function(){var R=this,Y=this.canvas.get("el");(0,kt.S6)(on,function(ut){Y.addEventListener(ut,R._eventCallback)}),document&&(document.addEventListener("mousemove",this._onDocumentMove),document.addEventListener("mouseup",this._onDocumentMouseUp))},H.prototype._clearEvents=function(){var R=this,Y=this.canvas.get("el");(0,kt.S6)(on,function(ut){Y.removeEventListener(ut,R._eventCallback)}),document&&(document.removeEventListener("mousemove",this._onDocumentMove),document.removeEventListener("mouseup",this._onDocumentMouseUp))},H.prototype._getEventObj=function(R,Y,ut,Bt,oe,ce){var le=new Dr.Z(R,Y);return le.fromShape=oe,le.toShape=ce,le.x=ut.x,le.y=ut.y,le.clientX=ut.clientX,le.clientY=ut.clientY,le.propagationPath.push(Bt),le},H.prototype._getShape=function(R,Y){return this.canvas.getShape(R.x,R.y,Y)},H.prototype._getPointInfo=function(R){var Y=this.canvas,ut=Y.getClientByEvent(R),Bt=Y.getPointByEvent(R);return{x:Bt.x,y:Bt.y,clientX:ut.x,clientY:ut.y}},H.prototype._triggerEvent=function(R,Y){var ut=this._getPointInfo(Y),Bt=this._getShape(ut,Y),oe=this["_on"+R],ce=!1;if(oe)oe.call(this,ut,Bt,Y);else{var le=this.currentShape;R==="mouseenter"||R==="dragenter"||R==="mouseover"?(this._emitEvent(R,Y,ut,null,null,Bt),Bt&&this._emitEvent(R,Y,ut,Bt,null,Bt),R==="mouseenter"&&this.draggingShape&&this._emitEvent("dragenter",Y,ut,null)):R==="mouseleave"||R==="dragleave"||R==="mouseout"?(ce=!0,le&&this._emitEvent(R,Y,ut,le,le,null),this._emitEvent(R,Y,ut,null,le,null),R==="mouseleave"&&this.draggingShape&&this._emitEvent("dragleave",Y,ut,null)):this._emitEvent(R,Y,ut,Bt,null,null)}if(ce||(this.currentShape=Bt),Bt&&!Bt.get("destroyed")){var De=this.canvas,ir=De.get("el");ir.style.cursor=Bt.attr("cursor")||De.get("cursor")}},H.prototype._onmousedown=function(R,Y,ut){ut.button===In&&(this.mousedownShape=Y,this.mousedownPoint=R,this.mousedownTimeStamp=ut.timeStamp),this._emitEvent("mousedown",ut,R,Y,null,null)},H.prototype._emitMouseoverEvents=function(R,Y,ut,Bt){var oe=this.canvas.get("el");ut!==Bt&&(ut&&(this._emitEvent("mouseout",R,Y,ut,ut,Bt),this._emitEvent("mouseleave",R,Y,ut,ut,Bt),(!Bt||Bt.get("destroyed"))&&(oe.style.cursor=this.canvas.get("cursor"))),Bt&&(this._emitEvent("mouseover",R,Y,Bt,ut,Bt),this._emitEvent("mouseenter",R,Y,Bt,ut,Bt)))},H.prototype._emitDragoverEvents=function(R,Y,ut,Bt,oe){Bt?(Bt!==ut&&(ut&&this._emitEvent("dragleave",R,Y,ut,ut,Bt),this._emitEvent("dragenter",R,Y,Bt,ut,Bt)),oe||this._emitEvent("dragover",R,Y,Bt)):ut&&this._emitEvent("dragleave",R,Y,ut,ut,Bt),oe&&this._emitEvent("dragover",R,Y,Bt)},H.prototype._afterDrag=function(R,Y,ut){R&&(R.set("capture",!0),this.draggingShape=null),this.dragging=!1;var Bt=this._getShape(Y,ut);Bt!==R&&this._emitMouseoverEvents(ut,Y,R,Bt),this.currentShape=Bt},H.prototype._onmouseup=function(R,Y,ut){if(ut.button===In){var Bt=this.draggingShape;this.dragging?(Bt&&this._emitEvent("drop",ut,R,Y),this._emitEvent("dragend",ut,R,Bt),this._afterDrag(Bt,R,ut)):(this._emitEvent("mouseup",ut,R,Y),Y===this.mousedownShape&&this._emitEvent("click",ut,R,Y),this.mousedownShape=null,this.mousedownPoint=null)}},H.prototype._ondragover=function(R,Y,ut){ut.preventDefault();var Bt=this.currentShape;this._emitDragoverEvents(ut,R,Bt,Y,!0)},H.prototype._onmousemove=function(R,Y,ut){var Bt=this.canvas,oe=this.currentShape,ce=this.draggingShape;if(this.dragging)ce&&this._emitDragoverEvents(ut,R,oe,Y,!1),this._emitEvent("drag",ut,R,ce);else{var le=this.mousedownPoint;if(le){var De=this.mousedownShape,ir=ut.timeStamp,wr=ir-this.mousedownTimeStamp,Or=le.clientX-R.clientX,gn=le.clientY-R.clientY,Ln=Or*Or+gn*gn;wr>120||Ln>an?De&&De.get("draggable")?(ce=this.mousedownShape,ce.set("capture",!1),this.draggingShape=ce,this.dragging=!0,this._emitEvent("dragstart",ut,R,ce),this.mousedownShape=null,this.mousedownPoint=null):!De&&Bt.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",ut,R,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(ut,R,oe,Y),this._emitEvent("mousemove",ut,R,Y)):(this._emitMouseoverEvents(ut,R,oe,Y),this._emitEvent("mousemove",ut,R,Y))}else this._emitMouseoverEvents(ut,R,oe,Y),this._emitEvent("mousemove",ut,R,Y)}},H.prototype._emitEvent=function(R,Y,ut,Bt,oe,ce){var le=this._getEventObj(R,Y,ut,Bt,oe,ce);if(Bt){le.shape=Bt,pn(Bt,R,le);for(var De=Bt.getParent();De;)De.emitDelegation(R,le),le.propagationStopped||dn(De,R,le),le.propagationPath.push(De),De=De.getParent()}else{var ir=this.canvas;pn(ir,R,le)}},H.prototype.destroy=function(){this._clearEvents(),this.canvas=null,this.currentShape=null,this.draggingShape=null,this.mousedownPoint=null,this.mousedownShape=null,this.mousedownTimeStamp=null},H}(),xi=Zn,qn="px",wi=(0,dt.qY)(),Po=wi&&wi.name==="firefox",ko=function(H){(0,ht.ZT)(R,H);function R(Y){var ut=H.call(this,Y)||this;return ut.initContainer(),ut.initDom(),ut.initEvents(),ut.initTimeline(),ut}return R.prototype.getDefaultCfg=function(){var Y=H.prototype.getDefaultCfg.call(this);return Y.cursor="default",Y.supportCSSTransform=!1,Y},R.prototype.initContainer=function(){var Y=this.get("container");(0,kt.HD)(Y)&&(Y=document.getElementById(Y),this.set("container",Y))},R.prototype.initDom=function(){var Y=this.createDom();this.set("el",Y);var ut=this.get("container");ut.appendChild(Y),this.setDOMSize(this.get("width"),this.get("height"))},R.prototype.initEvents=function(){var Y=new xi({canvas:this});Y.init(),this.set("eventController",Y)},R.prototype.initTimeline=function(){var Y=new xr(this);this.set("timeline",Y)},R.prototype.setDOMSize=function(Y,ut){var Bt=this.get("el");kt.jU&&(Bt.style.width=Y+qn,Bt.style.height=ut+qn)},R.prototype.changeSize=function(Y,ut){this.setDOMSize(Y,ut),this.set("width",Y),this.set("height",ut),this.onCanvasChange("changeSize")},R.prototype.getRenderer=function(){return this.get("renderer")},R.prototype.getCursor=function(){return this.get("cursor")},R.prototype.setCursor=function(Y){this.set("cursor",Y);var ut=this.get("el");kt.jU&&ut&&(ut.style.cursor=Y)},R.prototype.getPointByEvent=function(Y){var ut=this.get("supportCSSTransform");if(ut){if(Po&&!(0,kt.kK)(Y.layerX)&&Y.layerX!==Y.offsetX)return{x:Y.layerX,y:Y.layerY};if(!(0,kt.kK)(Y.offsetX))return{x:Y.offsetX,y:Y.offsetY}}var Bt=this.getClientByEvent(Y),oe=Bt.x,ce=Bt.y;return this.getPointByClient(oe,ce)},R.prototype.getClientByEvent=function(Y){var ut=Y;return Y.touches&&(Y.type==="touchend"?ut=Y.changedTouches[0]:ut=Y.touches[0]),{x:ut.clientX,y:ut.clientY}},R.prototype.getPointByClient=function(Y,ut){var Bt=this.get("el"),oe=Bt.getBoundingClientRect();return{x:Y-oe.left,y:ut-oe.top}},R.prototype.getClientByPoint=function(Y,ut){var Bt=this.get("el"),oe=Bt.getBoundingClientRect();return{x:Y+oe.left,y:ut+oe.top}},R.prototype.draw=function(){},R.prototype.removeDom=function(){var Y=this.get("el");Y.parentNode.removeChild(Y)},R.prototype.clearEvents=function(){var Y=this.get("eventController");Y.destroy()},R.prototype.isCanvas=function(){return!0},R.prototype.getParent=function(){return null},R.prototype.destroy=function(){var Y=this.get("timeline");this.get("destroyed")||(this.clear(),Y&&Y.stop(),this.clearEvents(),this.removeDom(),H.prototype.destroy.call(this))},R}(Kt.Z),$n=ko},37153:function(_e,ee,et){"use strict";var ht=et(70655),dt=et(41694),Kt=et(29881),kt=et(77341),Tt={},mt="_INDEX";function ct(gt,d){if(gt.set("canvas",d),gt.isGroup()){var f=gt.get("children");f.length&&f.forEach(function(rt){ct(rt,d)})}}function vt(gt,d){if(gt.set("timeline",d),gt.isGroup()){var f=gt.get("children");f.length&&f.forEach(function(rt){vt(rt,d)})}}function xt(gt,d){var f=gt.getChildren();return f.indexOf(d)>=0}function jt(gt,d,f){f===void 0&&(f=!0),f?d.destroy():(d.set("parent",null),d.set("canvas",null)),(0,kt.As)(gt.getChildren(),d)}function Ot(gt){return function(d,f){var rt=gt(d,f);return rt===0?d[mt]-f[mt]:rt}}var Pt=function(gt){(0,ht.ZT)(d,gt);function d(){return gt!==null&&gt.apply(this,arguments)||this}return d.prototype.isCanvas=function(){return!1},d.prototype.getBBox=function(){var f=Infinity,rt=-Infinity,J=Infinity,St=-Infinity,wt=[],X=[],at=this.getChildren().filter(function(Rt){return Rt.get("visible")&&(!Rt.isGroup()||Rt.isGroup()&&Rt.getChildren().length>0)});at.length>0?((0,kt.S6)(at,function(Rt){var $t=Rt.getBBox();wt.push($t.minX,$t.maxX),X.push($t.minY,$t.maxY)}),f=(0,dt.VV)(wt),rt=(0,dt.Fp)(wt),J=(0,dt.VV)(X),St=(0,dt.Fp)(X)):(f=0,rt=0,J=0,St=0);var _t={x:f,y:J,minX:f,minY:J,maxX:rt,maxY:St,width:rt-f,height:St-J};return _t},d.prototype.getCanvasBBox=function(){var f=Infinity,rt=-Infinity,J=Infinity,St=-Infinity,wt=[],X=[],at=this.getChildren().filter(function(Rt){return Rt.get("visible")&&(!Rt.isGroup()||Rt.isGroup()&&Rt.getChildren().length>0)});at.length>0?((0,kt.S6)(at,function(Rt){var $t=Rt.getCanvasBBox();wt.push($t.minX,$t.maxX),X.push($t.minY,$t.maxY)}),f=(0,dt.VV)(wt),rt=(0,dt.Fp)(wt),J=(0,dt.VV)(X),St=(0,dt.Fp)(X)):(f=0,rt=0,J=0,St=0);var _t={x:f,y:J,minX:f,minY:J,maxX:rt,maxY:St,width:rt-f,height:St-J};return _t},d.prototype.getDefaultCfg=function(){var f=gt.prototype.getDefaultCfg.call(this);return f.children=[],f},d.prototype.onAttrChange=function(f,rt,J){if(gt.prototype.onAttrChange.call(this,f,rt,J),f==="matrix"){var St=this.getTotalMatrix();this._applyChildrenMarix(St)}},d.prototype.applyMatrix=function(f){var rt=this.getTotalMatrix();gt.prototype.applyMatrix.call(this,f);var J=this.getTotalMatrix();J!==rt&&this._applyChildrenMarix(J)},d.prototype._applyChildrenMarix=function(f){var rt=this.getChildren();(0,kt.S6)(rt,function(J){J.applyMatrix(f)})},d.prototype.addShape=function(){for(var f=[],rt=0;rt<arguments.length;rt++)f[rt]=arguments[rt];var J=f[0],St=f[1];(0,kt.Kn)(J)?St=J:St.type=J;var wt=Tt[St.type];wt||(wt=(0,kt.jC)(St.type),Tt[St.type]=wt);var X=this.getShapeBase(),at=new X[wt](St);return this.add(at),at},d.prototype.addGroup=function(){for(var f=[],rt=0;rt<arguments.length;rt++)f[rt]=arguments[rt];var J=f[0],St=f[1],wt;if((0,kt.mf)(J))St?wt=new J(St):wt=new J({parent:this});else{var X=J||{},at=this.getGroupBase();wt=new at(X)}return this.add(wt),wt},d.prototype.getCanvas=function(){var f;return this.isCanvas()?f=this:f=this.get("canvas"),f},d.prototype.getShape=function(f,rt,J){if(!(0,kt.pP)(this))return null;var St=this.getChildren(),wt;if(this.isCanvas())wt=this._findShape(St,f,rt,J);else{var X=[f,rt,1];X=this.invertFromMatrix(X),this.isClipped(X[0],X[1])||(wt=this._findShape(St,X[0],X[1],J))}return wt},d.prototype._findShape=function(f,rt,J,St){for(var wt=null,X=f.length-1;X>=0;X--){var at=f[X];if((0,kt.pP)(at)&&(at.isGroup()?wt=at.getShape(rt,J,St):at.isHit(rt,J)&&(wt=at)),wt)break}return wt},d.prototype.add=function(f){var rt=this.getCanvas(),J=this.getChildren(),St=this.get("timeline"),wt=f.getParent();wt&&jt(wt,f,!1),f.set("parent",this),rt&&ct(f,rt),St&&vt(f,St),J.push(f),f.onCanvasChange("add"),this._applyElementMatrix(f)},d.prototype._applyElementMatrix=function(f){var rt=this.getTotalMatrix();rt&&f.applyMatrix(rt)},d.prototype.getChildren=function(){return this.get("children")},d.prototype.sort=function(){var f=this.getChildren();(0,kt.S6)(f,function(rt,J){return rt[mt]=J,rt}),f.sort(Ot(function(rt,J){return rt.get("zIndex")-J.get("zIndex")})),this.onCanvasChange("sort")},d.prototype.clear=function(){if(this.set("clearing",!0),!this.destroyed){for(var f=this.getChildren(),rt=f.length-1;rt>=0;rt--)f[rt].destroy();this.set("children",[]),this.onCanvasChange("clear"),this.set("clearing",!1)}},d.prototype.destroy=function(){this.get("destroyed")||(this.clear(),gt.prototype.destroy.call(this))},d.prototype.getFirst=function(){return this.getChildByIndex(0)},d.prototype.getLast=function(){var f=this.getChildren();return this.getChildByIndex(f.length-1)},d.prototype.getChildByIndex=function(f){var rt=this.getChildren();return rt[f]},d.prototype.getCount=function(){var f=this.getChildren();return f.length},d.prototype.contain=function(f){var rt=this.getChildren();return rt.indexOf(f)>-1},d.prototype.removeChild=function(f,rt){rt===void 0&&(rt=!0),this.contain(f)&&f.remove(rt)},d.prototype.findAll=function(f){var rt=[],J=this.getChildren();return(0,kt.S6)(J,function(St){f(St)&&rt.push(St),St.isGroup()&&(rt=rt.concat(St.findAll(f)))}),rt},d.prototype.find=function(f){var rt=null,J=this.getChildren();return(0,kt.S6)(J,function(St){if(f(St)?rt=St:St.isGroup()&&(rt=St.find(f)),rt)return!1}),rt},d.prototype.findById=function(f){return this.find(function(rt){return rt.get("id")===f})},d.prototype.findByClassName=function(f){return this.find(function(rt){return rt.get("className")===f})},d.prototype.findAllByName=function(f){return this.findAll(function(rt){return rt.get("name")===f})},d}(Kt.Z);ee.Z=Pt},29881:function(_e,ee,et){"use strict";var ht=et(70655),dt=et(41694),Kt=et(31506),kt=et(77341),Tt=et(41482),mt=et(2667),ct=Kt.vs,vt="matrix",xt=["zIndex","capture","visible","type"],jt=["repeat"],Ot=":",Pt="*";function gt(St){for(var wt=[],X=0;X<St.length;X++)(0,dt.kJ)(St[X])?wt.push([].concat(St[X])):wt.push(St[X]);return wt}function d(St,wt){var X={},at=wt.attrs;for(var _t in St)X[_t]=at[_t];return X}function f(St,wt){var X={},at=wt.attr();return(0,dt.S6)(St,function(_t,Rt){jt.indexOf(Rt)===-1&&!(0,dt.Xy)(at[Rt],_t)&&(X[Rt]=_t)}),X}function rt(St,wt){if(wt.onFrame)return St;var X=wt.startTime,at=wt.delay,_t=wt.duration,Rt=Object.prototype.hasOwnProperty;return(0,dt.S6)(St,function($t){X+at<$t.startTime+$t.delay+$t.duration&&_t>$t.delay&&(0,dt.S6)(wt.toAttrs,function(re,Se){Rt.call($t.toAttrs,Se)&&(delete $t.toAttrs[Se],delete $t.fromAttrs[Se])})}),St}var J=function(St){(0,ht.ZT)(wt,St);function wt(X){var at=St.call(this,X)||this;at.attrs={};var _t=at.getDefaultAttrs();return(0,dt.CD)(_t,X.attrs),at.attrs=_t,at.initAttrs(_t),at.initAnimate(),at}return wt.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},wt.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},wt.prototype.onCanvasChange=function(X){},wt.prototype.initAttrs=function(X){},wt.prototype.initAnimate=function(){this.set("animable",!0),this.set("animating",!1)},wt.prototype.isGroup=function(){return!1},wt.prototype.getParent=function(){return this.get("parent")},wt.prototype.getCanvas=function(){return this.get("canvas")},wt.prototype.attr=function(){for(var X,at=[],_t=0;_t<arguments.length;_t++)at[_t]=arguments[_t];var Rt=at[0],$t=at[1];if(!Rt)return this.attrs;if((0,dt.Kn)(Rt)){for(var re in Rt)this.setAttr(re,Rt[re]);return this.afterAttrsChange(Rt),this}return at.length===2?(this.setAttr(Rt,$t),this.afterAttrsChange((X={},X[Rt]=$t,X)),this):this.attrs[Rt]},wt.prototype.isClipped=function(X,at){var _t=this.getClip();return _t&&!_t.isHit(X,at)},wt.prototype.setAttr=function(X,at){var _t=this.attrs[X];_t!==at&&(this.attrs[X]=at,this.onAttrChange(X,at,_t))},wt.prototype.onAttrChange=function(X,at,_t){X==="matrix"&&this.set("totalMatrix",null)},wt.prototype.afterAttrsChange=function(X){if(this.cfg.isClipShape){var at=this.cfg.applyTo;at&&at.onCanvasChange("clip")}else this.onCanvasChange("attr")},wt.prototype.show=function(){return this.set("visible",!0),this.onCanvasChange("show"),this},wt.prototype.hide=function(){return this.set("visible",!1),this.onCanvasChange("hide"),this},wt.prototype.setZIndex=function(X){this.set("zIndex",X);var at=this.getParent();return at&&at.sort(),this},wt.prototype.toFront=function(){var X=this.getParent();if(!!X){var at=X.getChildren(),_t=this.get("el"),Rt=at.indexOf(this);at.splice(Rt,1),at.push(this),this.onCanvasChange("zIndex")}},wt.prototype.toBack=function(){var X=this.getParent();if(!!X){var at=X.getChildren(),_t=this.get("el"),Rt=at.indexOf(this);at.splice(Rt,1),at.unshift(this),this.onCanvasChange("zIndex")}},wt.prototype.remove=function(X){X===void 0&&(X=!0);var at=this.getParent();at?((0,kt.As)(at.getChildren(),this),at.get("clearing")||this.onCanvasChange("remove")):this.onCanvasChange("remove"),X&&this.destroy()},wt.prototype.resetMatrix=function(){this.attr(vt,this.getDefaultMatrix()),this.onCanvasChange("matrix")},wt.prototype.getMatrix=function(){return this.attr(vt)},wt.prototype.setMatrix=function(X){this.attr(vt,X),this.onCanvasChange("matrix")},wt.prototype.getTotalMatrix=function(){var X=this.cfg.totalMatrix;if(!X){var at=this.attr("matrix"),_t=this.cfg.parentMatrix;_t&&at?X=(0,Tt.xq)(_t,at):X=at||_t,this.set("totalMatrix",X)}return X},wt.prototype.applyMatrix=function(X){var at=this.attr("matrix"),_t=null;X&&at?_t=(0,Tt.xq)(X,at):_t=at||X,this.set("totalMatrix",_t),this.set("parentMatrix",X)},wt.prototype.getDefaultMatrix=function(){return null},wt.prototype.applyToMatrix=function(X){var at=this.attr("matrix");return at?(0,Tt.rG)(at,X):X},wt.prototype.invertFromMatrix=function(X){var at=this.attr("matrix");if(at){var _t=(0,Tt.U_)(at);if(_t)return(0,Tt.rG)(_t,X)}return X},wt.prototype.setClip=function(X){var at=this.getCanvas(),_t=null;if(X){var Rt=this.getShapeBase(),$t=(0,dt.jC)(X.type),re=Rt[$t];re&&(_t=new re({type:X.type,isClipShape:!0,applyTo:this,attrs:X.attrs,canvas:at}))}return this.set("clipShape",_t),this.onCanvasChange("clip"),_t},wt.prototype.getClip=function(){var X=this.cfg.clipShape;return X||null},wt.prototype.clone=function(){var X=this,at=this.attrs,_t={};(0,dt.S6)(at,function(re,Se){(0,dt.kJ)(at[Se])?_t[Se]=gt(at[Se]):_t[Se]=at[Se]});var Rt=this.constructor,$t=new Rt({attrs:_t});return(0,dt.S6)(xt,function(re){$t.set(re,X.get(re))}),$t},wt.prototype.destroy=function(){var X=this.destroyed;X||(this.attrs={},St.prototype.destroy.call(this))},wt.prototype.isAnimatePaused=function(){return this.get("_pause").isPaused},wt.prototype.animate=function(){for(var X=[],at=0;at<arguments.length;at++)X[at]=arguments[at];if(!(!this.get("timeline")&&!this.get("canvas"))){this.set("animating",!0);var _t=this.get("timeline");_t||(_t=this.get("canvas").get("timeline"),this.set("timeline",_t));var Rt=this.get("animations")||[];_t.timer||_t.initTimer();var $t=X[0],re=X[1],Se=X[2],pt=Se===void 0?"easeLinear":Se,Dt=X[3],Jt=Dt===void 0?dt.ZT:Dt,Ht=X[4],At=Ht===void 0?0:Ht,U,C,F,W,lt;(0,dt.mf)($t)?(U=$t,$t={}):(0,dt.Kn)($t)&&$t.onFrame&&(U=$t.onFrame,C=$t.repeat),(0,dt.Kn)(re)?(lt=re,re=lt.duration,pt=lt.easing||"easeLinear",At=lt.delay||0,C=lt.repeat||C||!1,Jt=lt.callback||dt.ZT,F=lt.pauseCallback||dt.ZT,W=lt.resumeCallback||dt.ZT):((0,dt.hj)(Jt)&&(At=Jt,Jt=null),(0,dt.mf)(pt)?(Jt=pt,pt="easeLinear"):pt=pt||"easeLinear");var Z=f($t,this),nt={fromAttrs:d(Z,this),toAttrs:Z,duration:re,easing:pt,repeat:C,callback:Jt,pauseCallback:F,resumeCallback:W,delay:At,startTime:_t.getTime(),id:(0,dt.EL)(),onFrame:U,pathFormatted:!1};Rt.length>0?Rt=rt(Rt,nt):_t.addAnimator(this),Rt.push(nt),this.set("animations",Rt),this.set("_pause",{isPaused:!1})}},wt.prototype.stopAnimate=function(X){var at=this;X===void 0&&(X=!0);var _t=this.get("animations");(0,dt.S6)(_t,function(Rt){X&&(Rt.onFrame?at.attr(Rt.onFrame(1)):at.attr(Rt.toAttrs)),Rt.callback&&Rt.callback()}),this.set("animating",!1),this.set("animations",[])},wt.prototype.pauseAnimate=function(){var X=this.get("timeline"),at=this.get("animations"),_t=X.getTime();return(0,dt.S6)(at,function(Rt){Rt._paused=!0,Rt._pauseTime=_t,Rt.pauseCallback&&Rt.pauseCallback()}),this.set("_pause",{isPaused:!0,pauseTime:_t}),this},wt.prototype.resumeAnimate=function(){var X=this.get("timeline"),at=X.getTime(),_t=this.get("animations"),Rt=this.get("_pause").pauseTime;return(0,dt.S6)(_t,function($t){$t.startTime=$t.startTime+(at-Rt),$t._paused=!1,$t._pauseTime=null,$t.resumeCallback&&$t.resumeCallback()}),this.set("_pause",{isPaused:!1}),this.set("animations",_t),this},wt.prototype.emitDelegation=function(X,at){var _t=this,Rt=at.propagationPath,$t=this.getEvents(),re;X==="mouseenter"?re=at.fromShape:X==="mouseleave"&&(re=at.toShape);for(var Se=function(Ht){var At=Rt[Ht],U=At.get("name");if(U){if((At.isGroup()||At.isCanvas&&At.isCanvas())&&re&&(0,kt.UY)(At,re))return"break";(0,dt.kJ)(U)?(0,dt.S6)(U,function(C){_t.emitDelegateEvent(At,C,at)}):pt.emitDelegateEvent(At,U,at)}},pt=this,Dt=0;Dt<Rt.length;Dt++){var Jt=Se(Dt);if(Jt==="break")break}},wt.prototype.emitDelegateEvent=function(X,at,_t){var Rt=this.getEvents(),$t=at+Ot+_t.type;(Rt[$t]||Rt[Pt])&&(_t.name=$t,_t.currentTarget=X,_t.delegateTarget=this,_t.delegateObject=X.get("delegateObject"),this.emit($t,_t))},wt.prototype.translate=function(X,at){X===void 0&&(X=0),at===void 0&&(at=0);var _t=this.getMatrix(),Rt=ct(_t,[["t",X,at]]);return this.setMatrix(Rt),this},wt.prototype.move=function(X,at){var _t=this.attr("x")||0,Rt=this.attr("y")||0;return this.translate(X-_t,at-Rt),this},wt.prototype.moveTo=function(X,at){return this.move(X,at)},wt.prototype.scale=function(X,at){var _t=this.getMatrix(),Rt=ct(_t,[["s",X,at||X]]);return this.setMatrix(Rt),this},wt.prototype.rotate=function(X){var at=this.getMatrix(),_t=ct(at,[["r",X]]);return this.setMatrix(_t),this},wt.prototype.rotateAtStart=function(X){var at=this.attr(),_t=at.x,Rt=at.y,$t=this.getMatrix(),re=ct($t,[["t",-_t,-Rt],["r",X],["t",_t,Rt]]);return this.setMatrix(re),this},wt.prototype.rotateAtPoint=function(X,at,_t){var Rt=this.getMatrix(),$t=ct(Rt,[["t",-X,-at],["r",_t],["t",X,at]]);return this.setMatrix($t),this},wt}(mt.Z);ee.Z=J},31841:function(_e,ee,et){"use strict";var ht=et(70655),dt=et(37153),Kt=function(kt){(0,ht.ZT)(Tt,kt);function Tt(){return kt!==null&&kt.apply(this,arguments)||this}return Tt.prototype.isGroup=function(){return!0},Tt.prototype.isEntityGroup=function(){return!1},Tt.prototype.clone=function(){for(var mt=kt.prototype.clone.call(this),ct=this.getChildren(),vt=0;vt<ct.length;vt++){var xt=ct[vt];mt.add(xt.clone())}return mt},Tt}(dt.Z);ee.Z=Kt},15032:function(_e,ee,et){"use strict";var ht=et(70655),dt=et(29881),Kt=et(41482),kt=function(Tt){(0,ht.ZT)(mt,Tt);function mt(ct){return Tt.call(this,ct)||this}return mt.prototype._isInBBox=function(ct,vt){var xt=this.getBBox();return xt.minX<=ct&&xt.maxX>=ct&&xt.minY<=vt&&xt.maxY>=vt},mt.prototype.afterAttrsChange=function(ct){Tt.prototype.afterAttrsChange.call(this,ct),this.clearCacheBBox()},mt.prototype.getBBox=function(){var ct=this.cfg.bbox;return ct||(ct=this.calculateBBox(),this.set("bbox",ct)),ct},mt.prototype.getCanvasBBox=function(){var ct=this.cfg.canvasBBox;return ct||(ct=this.calculateCanvasBBox(),this.set("canvasBBox",ct)),ct},mt.prototype.applyMatrix=function(ct){Tt.prototype.applyMatrix.call(this,ct),this.set("canvasBBox",null)},mt.prototype.calculateCanvasBBox=function(){var ct=this.getBBox(),vt=this.getTotalMatrix(),xt=ct.minX,jt=ct.minY,Ot=ct.maxX,Pt=ct.maxY;if(vt){var gt=(0,Kt.rG)(vt,[ct.minX,ct.minY]),d=(0,Kt.rG)(vt,[ct.maxX,ct.minY]),f=(0,Kt.rG)(vt,[ct.minX,ct.maxY]),rt=(0,Kt.rG)(vt,[ct.maxX,ct.maxY]);xt=Math.min(gt[0],d[0],f[0],rt[0]),Ot=Math.max(gt[0],d[0],f[0],rt[0]),jt=Math.min(gt[1],d[1],f[1],rt[1]),Pt=Math.max(gt[1],d[1],f[1],rt[1])}var J=this.attrs;if(J.shadowColor){var St=J.shadowBlur,wt=St===void 0?0:St,X=J.shadowOffsetX,at=X===void 0?0:X,_t=J.shadowOffsetY,Rt=_t===void 0?0:_t,$t=xt-wt+at,re=Ot+wt+at,Se=jt-wt+Rt,pt=Pt+wt+Rt;xt=Math.min(xt,$t),Ot=Math.max(Ot,re),jt=Math.min(jt,Se),Pt=Math.max(Pt,pt)}return{x:xt,y:jt,minX:xt,minY:jt,maxX:Ot,maxY:Pt,width:Ot-xt,height:Pt-jt}},mt.prototype.clearCacheBBox=function(){this.set("bbox",null),this.set("canvasBBox",null)},mt.prototype.isClipShape=function(){return this.get("isClipShape")},mt.prototype.isInShape=function(ct,vt){return!1},mt.prototype.isOnlyHitBox=function(){return!1},mt.prototype.isHit=function(ct,vt){var xt=this.get("startArrowShape"),jt=this.get("endArrowShape"),Ot=[ct,vt,1];Ot=this.invertFromMatrix(Ot);var Pt=Ot[0],gt=Ot[1],d=this._isInBBox(Pt,gt);return this.isOnlyHitBox()?d:!!(d&&!this.isClipped(Pt,gt)&&(this.isInShape(Pt,gt)||xt&&xt.isHit(Pt,gt)||jt&&jt.isHit(Pt,gt)))},mt}(dt.Z);ee.Z=kt},97492:function(_e,ee,et){"use strict";et.d(ee,{_:function(){return I},C:function(){return z}});var ht={};et.r(ht),et.d(ht,{easeBack:function(){return O},easeBackIn:function(){return T},easeBackInOut:function(){return O},easeBackOut:function(){return N},easeBounce:function(){return lt},easeBounceIn:function(){return W},easeBounceInOut:function(){return Z},easeBounceOut:function(){return lt},easeCircle:function(){return $t},easeCircleIn:function(){return _t},easeCircleInOut:function(){return $t},easeCircleOut:function(){return Rt},easeCubic:function(){return vt},easeCubicIn:function(){return mt},easeCubicInOut:function(){return vt},easeCubicOut:function(){return ct},easeElastic:function(){return _},easeElasticIn:function(){return k},easeElasticInOut:function(){return b},easeElasticOut:function(){return _},easeExp:function(){return at},easeExpIn:function(){return wt},easeExpInOut:function(){return at},easeExpOut:function(){return X},easeLinear:function(){return dt},easePoly:function(){return Pt},easePolyIn:function(){return jt},easePolyInOut:function(){return Pt},easePolyOut:function(){return Ot},easeQuad:function(){return Tt},easeQuadIn:function(){return Kt},easeQuadInOut:function(){return Tt},easeQuadOut:function(){return kt},easeSin:function(){return J},easeSinIn:function(){return f},easeSinInOut:function(){return J},easeSinOut:function(){return rt}});function dt(B){return+B}function Kt(B){return B*B}function kt(B){return B*(2-B)}function Tt(B){return((B*=2)<=1?B*B:--B*(2-B)+1)/2}function mt(B){return B*B*B}function ct(B){return--B*B*B+1}function vt(B){return((B*=2)<=1?B*B*B:(B-=2)*B*B+2)/2}var xt=3,jt=function B(j){j=+j;function Q(Ct){return Math.pow(Ct,j)}return Q.exponent=B,Q}(xt),Ot=function B(j){j=+j;function Q(Ct){return 1-Math.pow(1-Ct,j)}return Q.exponent=B,Q}(xt),Pt=function B(j){j=+j;function Q(Ct){return((Ct*=2)<=1?Math.pow(Ct,j):2-Math.pow(2-Ct,j))/2}return Q.exponent=B,Q}(xt),gt=Math.PI,d=gt/2;function f(B){return+B==1?1:1-Math.cos(B*d)}function rt(B){return Math.sin(B*d)}function J(B){return(1-Math.cos(gt*B))/2}function St(B){return(Math.pow(2,-10*B)-.0009765625)*1.0009775171065494}function wt(B){return St(1-+B)}function X(B){return 1-St(B)}function at(B){return((B*=2)<=1?St(1-B):2-St(B-1))/2}function _t(B){return 1-Math.sqrt(1-B*B)}function Rt(B){return Math.sqrt(1- --B*B)}function $t(B){return((B*=2)<=1?1-Math.sqrt(1-B*B):Math.sqrt(1-(B-=2)*B)+1)/2}var re=4/11,Se=6/11,pt=8/11,Dt=3/4,Jt=9/11,Ht=10/11,At=15/16,U=21/22,C=63/64,F=1/re/re;function W(B){return 1-lt(1-B)}function lt(B){return(B=+B)<re?F*B*B:B<pt?F*(B-=Se)*B+Dt:B<Ht?F*(B-=Jt)*B+At:F*(B-=U)*B+C}function Z(B){return((B*=2)<=1?1-lt(1-B):lt(B-1)+1)/2}var nt=1.70158,T=function B(j){j=+j;function Q(Ct){return(Ct=+Ct)*Ct*(j*(Ct-1)+Ct)}return Q.overshoot=B,Q}(nt),N=function B(j){j=+j;function Q(Ct){return--Ct*Ct*((Ct+1)*j+Ct)+1}return Q.overshoot=B,Q}(nt),O=function B(j){j=+j;function Q(Ct){return((Ct*=2)<1?Ct*Ct*((j+1)*Ct-j):(Ct-=2)*Ct*((j+1)*Ct+j)+2)/2}return Q.overshoot=B,Q}(nt),L=2*Math.PI,tt=1,it=.3,k=function B(j,Q){var Ct=Math.asin(1/(j=Math.max(1,j)))*(Q/=L);function qt(Yt){return j*St(- --Yt)*Math.sin((Ct-Yt)/Q)}return qt.amplitude=function(Yt){return B(Yt,Q*L)},qt.period=function(Yt){return B(j,Yt)},qt}(tt,it),_=function B(j,Q){var Ct=Math.asin(1/(j=Math.max(1,j)))*(Q/=L);function qt(Yt){return 1-j*St(Yt=+Yt)*Math.sin((Yt+Ct)/Q)}return qt.amplitude=function(Yt){return B(Yt,Q*L)},qt.period=function(Yt){return B(j,Yt)},qt}(tt,it),b=function B(j,Q){var Ct=Math.asin(1/(j=Math.max(1,j)))*(Q/=L);function qt(Yt){return((Yt=Yt*2-1)<0?j*St(-Yt)*Math.sin((Ct-Yt)/Q):2-j*St(Yt)*Math.sin((Ct+Yt)/Q))/2}return qt.amplitude=function(Yt){return B(Yt,Q*L)},qt.period=function(Yt){return B(j,Yt)},qt}(tt,it),E={};function I(B){return E[B.toLowerCase()]||ht[B]}function z(B,j){E[B.toLowerCase()]=j}},63427:function(_e,ee,et){"use strict";et.d(ee,{b:function(){return Kt},W:function(){return dt}});var ht=new Map;function dt(q,G){ht.set(q,G)}function Kt(q){return ht.get(q)}function kt(q){var G=q.attr(),st=G.x,yt=G.y,Ft=G.width,Vt=G.height;return{x:st,y:yt,width:Ft,height:Vt}}function Tt(q){var G=q.attr(),st=G.x,yt=G.y,Ft=G.r;return{x:st-Ft,y:yt-Ft,width:Ft*2,height:Ft*2}}var mt=et(89838);function ct(q,G){return!q||!G?q||G:{minX:Math.min(q.minX,G.minX),minY:Math.min(q.minY,G.minY),maxX:Math.max(q.maxX,G.maxX),maxY:Math.max(q.maxY,G.maxY)}}function vt(q,G){var st=q.get("startArrowShape"),yt=q.get("endArrowShape"),Ft=null,Vt=null;return st&&(Ft=st.getCanvasBBox(),G=ct(G,Ft)),yt&&(Vt=yt.getCanvasBBox(),G=ct(G,Vt)),G}function xt(q){for(var G=q.attr(),st=G.points,yt=[],Ft=[],Vt=0;Vt<st.length;Vt++){var Nt=st[Vt];yt.push(Nt[0]),Ft.push(Nt[1])}var Xt=mt.Zr.getBBoxByArray(yt,Ft),Et=Xt.x,te=Xt.y,Ut=Xt.width,de=Xt.height,xe={minX:Et,minY:te,maxX:Et+Ut,maxY:te+de};return xe=vt(q,xe),{x:xe.minX,y:xe.minY,width:xe.maxX-xe.minX,height:xe.maxY-xe.minY}}function jt(q){for(var G=q.attr(),st=G.points,yt=[],Ft=[],Vt=0;Vt<st.length;Vt++){var Nt=st[Vt];yt.push(Nt[0]),Ft.push(Nt[1])}return mt.Zr.getBBoxByArray(yt,Ft)}var Ot=et(8723);function Pt(q){var G=q.attr(),st=G.x,yt=G.y,Ft=G.text,Vt=G.fontSize,Nt=G.lineHeight,Xt=G.font;Xt||(Xt=(0,Ot.$O)(G));var Et=(0,Ot.mY)(Ft,Xt),te;if(!Et)te={x:st,y:yt,width:0,height:0};else{var Ut=G.textAlign,de=G.textBaseline,xe=(0,Ot.FE)(Ft,Vt,Nt),se={x:st,y:yt-xe};Ut&&(Ut==="end"||Ut==="right"?se.x-=Et:Ut==="center"&&(se.x-=Et/2)),de&&(de==="top"?se.y+=xe:de==="middle"&&(se.y+=xe/2)),te={x:se.x,y:se.y,width:Et,height:xe}}return te}var gt=et(41694),d=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/ig,f=/[^\s\,]+/ig;function rt(q){var G=q||[];if((0,gt.kJ)(G))return G;if((0,gt.HD)(G))return G=G.match(d),(0,gt.S6)(G,function(st,yt){if(st=st.match(f),st[0].length>1){var Ft=st[0].charAt(0);st.splice(1,0,st[0].substr(1)),st[0]=Ft}(0,gt.S6)(st,function(Vt,Nt){isNaN(Vt)||(st[Nt]=+Vt)}),G[yt]=st}),G}var J=rt;function St(q,G,st){var yt=null,Ft=st;return G<Ft&&(Ft=G,yt="add"),q<Ft&&(Ft=q,yt="del"),{type:yt,min:Ft}}var wt=function(q,G){var st=q.length,yt=G.length,Ft,Vt,Nt=0;if(st===0||yt===0)return null;for(var Xt=[],Et=0;Et<=st;Et++)Xt[Et]=[],Xt[Et][0]={min:Et};for(var te=0;te<=yt;te++)Xt[0][te]={min:te};for(var Et=1;Et<=st;Et++){Ft=q[Et-1];for(var te=1;te<=yt;te++){Vt=G[te-1],isEqual(Ft,Vt)?Nt=0:Nt=1;var Ut=Xt[Et-1][te].min+1,de=Xt[Et][te-1].min+1,xe=Xt[Et-1][te-1].min+Nt;Xt[Et][te]=St(Ut,de,xe)}}return Xt};function X(q,G){var st=wt(q,G),yt=q.length,Ft=G.length,Vt=[],Nt=1,Xt=1;if(st[yt][Ft]!==yt){for(var Et=1;Et<=yt;Et++){var te=st[Et][Et].min;Xt=Et;for(var Ut=Nt;Ut<=Ft;Ut++)st[Et][Ut].min<te&&(te=st[Et][Ut].min,Xt=Ut);Nt=Xt,st[Et][Nt].type&&Vt.push({index:Et-1,type:st[Et][Nt].type})}for(var Et=Vt.length-1;Et>=0;Et--)Nt=Vt[Et].index,Vt[Et].type==="add"?q.splice(Nt,0,[].concat(q[Nt])):q.splice(Nt,1)}if(yt=q.length,yt<Ft)for(var Et=0;Et<Ft-yt;Et++)q[yt-1][0]==="z"||q[yt-1][0]==="Z"?q.splice(yt-2,0,q[yt-2]):q.push(q[yt-1]);return q}var at=`
  13. \v\f\r \xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029`,_t=new RegExp("([a-z])["+at+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+at+"]*,?["+at+"]*)+)","ig"),Rt=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+at+"]*,?["+at+"]*","ig");function $t(q){if(!q)return null;if(isArray(q))return q;var G={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},st=[];return String(q).replace(_t,function(yt,Ft,Vt){var Nt=[],Xt=Ft.toLowerCase();if(Vt.replace(Rt,function(Et,te){te&&Nt.push(+te)}),Xt==="m"&&Nt.length>2&&(st.push([Ft].concat(Nt.splice(0,2))),Xt="l",Ft=Ft==="m"?"l":"L"),Xt==="o"&&Nt.length===1&&st.push([Ft,Nt[0]]),Xt==="r")st.push([Ft].concat(Nt));else for(;Nt.length>=G[Xt]&&(st.push([Ft].concat(Nt.splice(0,G[Xt]))),!!G[Xt]););return""}),st}var re=/[a-z]/;function Se(q,G){return[G[0]+(G[0]-q[0]),G[1]+(G[1]-q[1])]}function pt(q){var G=parsePathString(q);if(!G||!G.length)return[["M",0,0]];for(var st=!1,yt=0;yt<G.length;yt++){var Ft=G[yt][0];if(re.test(Ft)||["V","H","T","S"].indexOf(Ft)>=0){st=!0;break}}if(!st)return G;var Vt=[],Nt=0,Xt=0,Et=0,te=0,Ut=0,de,xe,se=G[0];(se[0]==="M"||se[0]==="m")&&(Nt=+se[1],Xt=+se[2],Et=Nt,te=Xt,Ut++,Vt[0]=["M",Nt,Xt]);for(var yt=Ut,me=G.length;yt<me;yt++){var Ce=G[yt],Me=Vt[yt-1],ae=[],Ft=Ce[0],Ie=Ft.toUpperCase();if(Ft!==Ie)switch(ae[0]=Ie,Ie){case"A":ae[1]=Ce[1],ae[2]=Ce[2],ae[3]=Ce[3],ae[4]=Ce[4],ae[5]=Ce[5],ae[6]=+Ce[6]+Nt,ae[7]=+Ce[7]+Xt;break;case"V":ae[1]=+Ce[1]+Xt;break;case"H":ae[1]=+Ce[1]+Nt;break;case"M":Et=+Ce[1]+Nt,te=+Ce[2]+Xt,ae[1]=Et,ae[2]=te;break;default:for(var Le=1,He=Ce.length;Le<He;Le++)ae[Le]=+Ce[Le]+(Le%2?Nt:Xt)}else ae=G[yt];switch(Ie){case"Z":Nt=+Et,Xt=+te;break;case"H":Nt=ae[1],ae=["L",Nt,Xt];break;case"V":Xt=ae[1],ae=["L",Nt,Xt];break;case"T":Nt=ae[1],Xt=ae[2];var ze=Se([Me[1],Me[2]],[Me[3],Me[4]]);ae=["Q",ze[0],ze[1],Nt,Xt];break;case"S":Nt=ae[ae.length-2],Xt=ae[ae.length-1];var qe=Me.length,je=Se([Me[qe-4],Me[qe-3]],[Me[qe-2],Me[qe-1]]);ae=["C",je[0],je[1],ae[1],ae[2],Nt,Xt];break;case"M":Et=ae[ae.length-2],te=ae[ae.length-1];break;default:Nt=ae[ae.length-2],Xt=ae[ae.length-1]}Vt.push(ae)}return Vt}var Dt=Math.PI*2,Jt=function(q,G,st,yt,Ft,Vt,Nt){var Xt=q.x,Et=q.y;Xt*=G,Et*=st;var te=yt*Xt-Ft*Et,Ut=Ft*Xt+yt*Et;return{x:te+Vt,y:Ut+Nt}},Ht=function(q,G){var st=G===1.5707963267948966?.551915024494:G===-1.5707963267948966?-.551915024494:4/3*Math.tan(G/4),yt=Math.cos(q),Ft=Math.sin(q),Vt=Math.cos(q+G),Nt=Math.sin(q+G);return[{x:yt-Ft*st,y:Ft+yt*st},{x:Vt+Nt*st,y:Nt-Vt*st},{x:Vt,y:Nt}]},At=function(q,G,st,yt){var Ft=q*yt-G*st<0?-1:1,Vt=q*st+G*yt;return Vt>1&&(Vt=1),Vt<-1&&(Vt=-1),Ft*Math.acos(Vt)},U=function(q,G,st,yt,Ft,Vt,Nt,Xt,Et,te,Ut,de){var xe=Math.pow(Ft,2),se=Math.pow(Vt,2),me=Math.pow(Ut,2),Ce=Math.pow(de,2),Me=xe*se-xe*Ce-se*me;Me<0&&(Me=0),Me/=xe*Ce+se*me,Me=Math.sqrt(Me)*(Nt===Xt?-1:1);var ae=Me*Ft/Vt*de,Ie=Me*-Vt/Ft*Ut,Le=te*ae-Et*Ie+(q+st)/2,He=Et*ae+te*Ie+(G+yt)/2,ze=(Ut-ae)/Ft,qe=(de-Ie)/Vt,je=(-Ut-ae)/Ft,mr=(-de-Ie)/Vt,br=At(1,0,ze,qe),xr=At(ze,qe,je,mr);return Xt===0&&xr>0&&(xr-=Dt),Xt===1&&xr<0&&(xr+=Dt),[Le,He,br,xr]},C=function(q){var G=q.px,st=q.py,yt=q.cx,Ft=q.cy,Vt=q.rx,Nt=q.ry,Xt=q.xAxisRotation,Et=Xt===void 0?0:Xt,te=q.largeArcFlag,Ut=te===void 0?0:te,de=q.sweepFlag,xe=de===void 0?0:de,se=[];if(Vt===0||Nt===0)return[{x1:0,y1:0,x2:0,y2:0,x:yt,y:Ft}];var me=Math.sin(Et*Dt/360),Ce=Math.cos(Et*Dt/360),Me=Ce*(G-yt)/2+me*(st-Ft)/2,ae=-me*(G-yt)/2+Ce*(st-Ft)/2;if(Me===0&&ae===0)return[{x1:0,y1:0,x2:0,y2:0,x:yt,y:Ft}];Vt=Math.abs(Vt),Nt=Math.abs(Nt);var Ie=Math.pow(Me,2)/Math.pow(Vt,2)+Math.pow(ae,2)/Math.pow(Nt,2);Ie>1&&(Vt*=Math.sqrt(Ie),Nt*=Math.sqrt(Ie));var Le=U(G,st,yt,Ft,Vt,Nt,Ut,xe,me,Ce,Me,ae),He=Le[0],ze=Le[1],qe=Le[2],je=Le[3],mr=Math.abs(je)/(Dt/4);Math.abs(1-mr)<1e-7&&(mr=1);var br=Math.max(Math.ceil(mr),1);je/=br;for(var xr=0;xr<br;xr++)se.push(Ht(qe,je)),qe+=je;return se.map(function(Dr){var an=Jt(Dr[0],Vt,Nt,Ce,me,He,ze),In=an.x,mi=an.y,on=Jt(Dr[1],Vt,Nt,Ce,me,He,ze),vn=on.x,pn=on.y,dn=Jt(Dr[2],Vt,Nt,Ce,me,He,ze),Zn=dn.x,xi=dn.y;return{x1:In,y1:mi,x2:vn,y2:pn,x:Zn,y:xi}})};function F(q,G,st,yt,Ft,Vt,Nt,Xt,Et){var te=C({px:q,py:G,cx:Xt,cy:Et,rx:st,ry:yt,xAxisRotation:Ft,largeArcFlag:Vt,sweepFlag:Nt});return te.reduce(function(Ut,de){var xe=de.x1,se=de.y1,me=de.x2,Ce=de.y2,Me=de.x,ae=de.y;return Ut.push(xe,se,me,Ce,Me,ae),Ut},[])}function W(q,G){"TQ".indexOf(q[0])<0&&(G.qx=null,G.qy=null);var st=q.slice(1),yt=st[0],Ft=st[1];switch(q[0]){case"M":return G.x=yt,G.y=Ft,q;case"A":return["C"].concat(arcToCubic.apply(0,[G.x1,G.y1].concat(q.slice(1))));case"Q":return G.qx=yt,G.qy=Ft,["C"].concat(quadToCubic.apply(0,[G.x1,G.y1].concat(q.slice(1))));case"L":return["C"].concat(lineToCubic(G.x1,G.y1,q[1],q[2]));case"H":return["C"].concat(lineToCubic(G.x1,G.y1,q[1],G.y1));case"V":return["C"].concat(lineToCubic(G.x1,G.y1,G.x1,q[1]));case"Z":return["C"].concat(lineToCubic(G.x1,G.y1,G.x,G.y));default:}return q}function lt(q,G){G===void 0&&(G=!1);for(var st=path2Absolute(q),yt={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null},Ft=[],Vt="",Nt=st.length,Xt,Et,te=[],Ut=0;Ut<Nt;Ut+=1)st[Ut]&&(Vt=st[Ut][0]),Ft[Ut]=Vt,st[Ut]=segmentToCubic(st[Ut],yt),Z(st,Ft,Ut),Nt=st.length,Vt==="Z"&&te.push(Ut),Xt=st[Ut],Et=Xt.length,yt.x1=+Xt[Et-2],yt.y1=+Xt[Et-1],yt.x2=+Xt[Et-4]||yt.x1,yt.y2=+Xt[Et-3]||yt.y1;return G?[st,te]:st}function Z(q,G,st){if(q[st].length>7){q[st].shift();for(var yt=q[st],Ft=st;yt.length;)G[st]="A",q.splice(Ft+=1,0,["C"].concat(yt.splice(0,6)));q.splice(st,1)}}var nt=function(q,G,st,yt,Ft){var Vt=-3*G+9*st-9*yt+3*Ft,Nt=q*Vt+6*G-12*st+6*yt;return q*Nt-3*G+3*st},T=function(q,G,st,yt,Ft,Vt,Nt,Xt,Et){Et===null&&(Et=1),Et=Et>1?1:Et<0?0:Et;for(var te=Et/2,Ut=12,de=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],xe=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],se=0,me=0;me<Ut;me++){var Ce=te*de[me]+te,Me=nt(Ce,q,st,Ft,Nt),ae=nt(Ce,G,yt,Vt,Xt),Ie=Me*Me+ae*ae;se+=xe[me]*Math.sqrt(Ie)}return te*se},N=function(q,G,st,yt,Ft,Vt,Nt,Xt){for(var Et=[],te=[[],[]],Ut,de,xe,se,me=0;me<2;++me){if(me===0?(de=6*q-12*st+6*Ft,Ut=-3*q+9*st-9*Ft+3*Nt,xe=3*st-3*q):(de=6*G-12*yt+6*Vt,Ut=-3*G+9*yt-9*Vt+3*Xt,xe=3*yt-3*G),Math.abs(Ut)<1e-12){if(Math.abs(de)<1e-12)continue;se=-xe/de,se>0&&se<1&&Et.push(se);continue}var Ce=de*de-4*xe*Ut,Me=Math.sqrt(Ce);if(!(Ce<0)){var ae=(-de+Me)/(2*Ut);ae>0&&ae<1&&Et.push(ae);var Ie=(-de-Me)/(2*Ut);Ie>0&&Ie<1&&Et.push(Ie)}}for(var Le=Et.length,He=Le,ze;Le--;)se=Et[Le],ze=1-se,te[0][Le]=ze*ze*ze*q+3*ze*ze*se*st+3*ze*se*se*Ft+se*se*se*Nt,te[1][Le]=ze*ze*ze*G+3*ze*ze*se*yt+3*ze*se*se*Vt+se*se*se*Xt;return te[0][He]=q,te[1][He]=G,te[0][He+1]=Nt,te[1][He+1]=Xt,te[0].length=te[1].length=He+2,{min:{x:Math.min.apply(0,te[0]),y:Math.min.apply(0,te[1])},max:{x:Math.max.apply(0,te[0]),y:Math.max.apply(0,te[1])}}},O=function(q,G,st,yt,Ft,Vt,Nt,Xt){if(!(Math.max(q,st)<Math.min(Ft,Nt)||Math.min(q,st)>Math.max(Ft,Nt)||Math.max(G,yt)<Math.min(Vt,Xt)||Math.min(G,yt)>Math.max(Vt,Xt))){var Et=(q*yt-G*st)*(Ft-Nt)-(q-st)*(Ft*Xt-Vt*Nt),te=(q*yt-G*st)*(Vt-Xt)-(G-yt)*(Ft*Xt-Vt*Nt),Ut=(q-st)*(Vt-Xt)-(G-yt)*(Ft-Nt);if(!!Ut){var de=Et/Ut,xe=te/Ut,se=+de.toFixed(2),me=+xe.toFixed(2);if(!(se<+Math.min(q,st).toFixed(2)||se>+Math.max(q,st).toFixed(2)||se<+Math.min(Ft,Nt).toFixed(2)||se>+Math.max(Ft,Nt).toFixed(2)||me<+Math.min(G,yt).toFixed(2)||me>+Math.max(G,yt).toFixed(2)||me<+Math.min(Vt,Xt).toFixed(2)||me>+Math.max(Vt,Xt).toFixed(2)))return{x:de,y:xe}}}},L=function(q,G,st){return G>=q.x&&G<=q.x+q.width&&st>=q.y&&st<=q.y+q.height},tt=function(q,G,st,yt){return q===null&&(q=G=st=yt=0),G===null&&(G=q.y,st=q.width,yt=q.height,q=q.x),{x:q,y:G,width:st,w:st,height:yt,h:yt,x2:q+st,y2:G+yt,cx:q+st/2,cy:G+yt/2,r1:Math.min(st,yt)/2,r2:Math.max(st,yt)/2,r0:Math.sqrt(st*st+yt*yt)/2,path:rectPath(q,G,st,yt),vb:[q,G,st,yt].join(" ")}},it=function(q,G){return q=tt(q),G=tt(G),L(G,q.x,q.y)||L(G,q.x2,q.y)||L(G,q.x,q.y2)||L(G,q.x2,q.y2)||L(q,G.x,G.y)||L(q,G.x2,G.y)||L(q,G.x,G.y2)||L(q,G.x2,G.y2)||(q.x<G.x2&&q.x>G.x||G.x<q.x2&&G.x>q.x)&&(q.y<G.y2&&q.y>G.y||G.y<q.y2&&G.y>q.y)},k=function(q,G,st,yt,Ft,Vt,Nt,Xt){isArray(q)||(q=[q,G,st,yt,Ft,Vt,Nt,Xt]);var Et=N.apply(null,q);return tt(Et.min.x,Et.min.y,Et.max.x-Et.min.x,Et.max.y-Et.min.y)},_=function(q,G,st,yt,Ft,Vt,Nt,Xt,Et){var te=1-Et,Ut=Math.pow(te,3),de=Math.pow(te,2),xe=Et*Et,se=xe*Et,me=Ut*q+de*3*Et*st+te*3*Et*Et*Ft+se*Nt,Ce=Ut*G+de*3*Et*yt+te*3*Et*Et*Vt+se*Xt,Me=q+2*Et*(st-q)+xe*(Ft-2*st+q),ae=G+2*Et*(yt-G)+xe*(Vt-2*yt+G),Ie=st+2*Et*(Ft-st)+xe*(Nt-2*Ft+st),Le=yt+2*Et*(Vt-yt)+xe*(Xt-2*Vt+yt),He=te*q+Et*st,ze=te*G+Et*yt,qe=te*Ft+Et*Nt,je=te*Vt+Et*Xt,mr=90-Math.atan2(Me-Ie,ae-Le)*180/Math.PI;return{x:me,y:Ce,m:{x:Me,y:ae},n:{x:Ie,y:Le},start:{x:He,y:ze},end:{x:qe,y:je},alpha:mr}},b=function(q,G,st){var yt=k(q),Ft=k(G);if(!it(yt,Ft))return st?0:[];for(var Vt=T.apply(0,q),Nt=T.apply(0,G),Xt=~~(Vt/8),Et=~~(Nt/8),te=[],Ut=[],de={},xe=st?0:[],se=0;se<Xt+1;se++){var me=_.apply(0,q.concat(se/Xt));te.push({x:me.x,y:me.y,t:se/Xt})}for(var se=0;se<Et+1;se++){var me=_.apply(0,G.concat(se/Et));Ut.push({x:me.x,y:me.y,t:se/Et})}for(var se=0;se<Xt;se++)for(var Ce=0;Ce<Et;Ce++){var Me=te[se],ae=te[se+1],Ie=Ut[Ce],Le=Ut[Ce+1],He=Math.abs(ae.x-Me.x)<.001?"y":"x",ze=Math.abs(Le.x-Ie.x)<.001?"y":"x",qe=O(Me.x,Me.y,ae.x,ae.y,Ie.x,Ie.y,Le.x,Le.y);if(qe){if(de[qe.x.toFixed(4)]===qe.y.toFixed(4))continue;de[qe.x.toFixed(4)]=qe.y.toFixed(4);var je=Me.t+Math.abs((qe[He]-Me[He])/(ae[He]-Me[He]))*(ae.t-Me.t),mr=Ie.t+Math.abs((qe[ze]-Ie[ze])/(Le[ze]-Ie[ze]))*(Le.t-Ie.t);je>=0&&je<=1&&mr>=0&&mr<=1&&(st?xe++:xe.push({x:qe.x,y:qe.y,t1:je,t2:mr}))}}return xe},E=function(q,G,st){q=path2Curve(q),G=path2Curve(G);for(var yt,Ft,Vt,Nt,Xt,Et,te,Ut,de,xe,se=st?0:[],me=0,Ce=q.length;me<Ce;me++){var Me=q[me];if(Me[0]==="M")yt=Xt=Me[1],Ft=Et=Me[2];else{Me[0]==="C"?(de=[yt,Ft].concat(Me.slice(1)),yt=de[6],Ft=de[7]):(de=[yt,Ft,yt,Ft,Xt,Et,Xt,Et],yt=Xt,Ft=Et);for(var ae=0,Ie=G.length;ae<Ie;ae++){var Le=G[ae];if(Le[0]==="M")Vt=te=Le[1],Nt=Ut=Le[2];else{Le[0]==="C"?(xe=[Vt,Nt].concat(Le.slice(1)),Vt=xe[6],Nt=xe[7]):(xe=[Vt,Nt,Vt,Nt,te,Ut,te,Ut],Vt=te,Nt=Ut);var He=b(de,xe,st);if(st)se+=He;else{for(var ze=0,qe=He.length;ze<qe;ze++)He[ze].segment1=me,He[ze].segment2=ae,He[ze].bez1=de,He[ze].bez2=xe;se=se.concat(He)}}}}}return se};function I(q,G){return E(q,G)}function z(q){return Math.sqrt(q[0]*q[0]+q[1]*q[1])}function B(q,G){return z(q)*z(G)?(q[0]*G[0]+q[1]*G[1])/(z(q)*z(G)):1}function j(q,G){return(q[0]*G[1]<q[1]*G[0]?-1:1)*Math.acos(B(q,G))}function Q(q,G){return q[0]===G[0]&&q[1]===G[1]}function Ct(q,G){var st=G[1],yt=G[2],Ft=(0,gt.wQ)((0,gt.c$)(G[3]),Math.PI*2),Vt=G[4],Nt=G[5],Xt=q[0],Et=q[1],te=G[6],Ut=G[7],de=Math.cos(Ft)*(Xt-te)/2+Math.sin(Ft)*(Et-Ut)/2,xe=-1*Math.sin(Ft)*(Xt-te)/2+Math.cos(Ft)*(Et-Ut)/2,se=de*de/(st*st)+xe*xe/(yt*yt);se>1&&(st*=Math.sqrt(se),yt*=Math.sqrt(se));var me=st*st*(xe*xe)+yt*yt*(de*de),Ce=me?Math.sqrt((st*st*(yt*yt)-me)/me):1;Vt===Nt&&(Ce*=-1),isNaN(Ce)&&(Ce=0);var Me=yt?Ce*st*xe/yt:0,ae=st?Ce*-yt*de/st:0,Ie=(Xt+te)/2+Math.cos(Ft)*Me-Math.sin(Ft)*ae,Le=(Et+Ut)/2+Math.sin(Ft)*Me+Math.cos(Ft)*ae,He=[(de-Me)/st,(xe-ae)/yt],ze=[(-1*de-Me)/st,(-1*xe-ae)/yt],qe=j([1,0],He),je=j(He,ze);return B(He,ze)<=-1&&(je=Math.PI),B(He,ze)>=1&&(je=0),Nt===0&&je>0&&(je=je-2*Math.PI),Nt===1&&je<0&&(je=je+2*Math.PI),{cx:Ie,cy:Le,rx:Q(q,[te,Ut])?0:st,ry:Q(q,[te,Ut])?0:yt,startAngle:qe,endAngle:qe+je,xRotation:Ft,arcFlag:Vt,sweepFlag:Nt}}function qt(q,G){return[G[0]+(G[0]-q[0]),G[1]+(G[1]-q[1])]}function Yt(q){q=J(q);for(var G=[],st=null,yt=null,Ft=null,Vt=0,Nt=q.length,Xt=0;Xt<Nt;Xt++){var Et=q[Xt];yt=q[Xt+1];var te=Et[0],Ut={command:te,prePoint:st,params:Et,startTangent:null,endTangent:null};switch(te){case"M":Ft=[Et[1],Et[2]],Vt=Xt;break;case"A":var de=Ct(st,Et);Ut.arcParams=de;break;default:break}if(te==="Z")st=Ft,yt=q[Vt+1];else{var xe=Et.length;st=[Et[xe-2],Et[xe-1]]}yt&&yt[0]==="Z"&&(yt=q[Vt],G[Vt]&&(G[Vt].prePoint=st)),Ut.currentPoint=st,G[Vt]&&Q(st,G[Vt].currentPoint)&&(G[Vt].prePoint=Ut.prePoint);var se=yt?[yt[yt.length-2],yt[yt.length-1]]:null;Ut.nextPoint=se;var me=Ut.prePoint;if(["L","H","V"].includes(te))Ut.startTangent=[me[0]-st[0],me[1]-st[1]],Ut.endTangent=[st[0]-me[0],st[1]-me[1]];else if(te==="Q"){var Ce=[Et[1],Et[2]];Ut.startTangent=[me[0]-Ce[0],me[1]-Ce[1]],Ut.endTangent=[st[0]-Ce[0],st[1]-Ce[1]]}else if(te==="T"){var Me=G[Xt-1],Ce=qt(Me.currentPoint,me);Me.command==="Q"?(Ut.command="Q",Ut.startTangent=[me[0]-Ce[0],me[1]-Ce[1]],Ut.endTangent=[st[0]-Ce[0],st[1]-Ce[1]]):(Ut.command="TL",Ut.startTangent=[me[0]-st[0],me[1]-st[1]],Ut.endTangent=[st[0]-me[0],st[1]-me[1]])}else if(te==="C"){var ae=[Et[1],Et[2]],Ie=[Et[3],Et[4]];Ut.startTangent=[me[0]-ae[0],me[1]-ae[1]],Ut.endTangent=[st[0]-Ie[0],st[1]-Ie[1]],Ut.startTangent[0]===0&&Ut.startTangent[1]===0&&(Ut.startTangent=[ae[0]-Ie[0],ae[1]-Ie[1]]),Ut.endTangent[0]===0&&Ut.endTangent[1]===0&&(Ut.endTangent=[Ie[0]-ae[0],Ie[1]-ae[1]])}else if(te==="S"){var Me=G[Xt-1],ae=qt(Me.currentPoint,me),Ie=[Et[1],Et[2]];Me.command==="C"?(Ut.command="C",Ut.startTangent=[me[0]-ae[0],me[1]-ae[1]],Ut.endTangent=[st[0]-Ie[0],st[1]-Ie[1]]):(Ut.command="SQ",Ut.startTangent=[me[0]-Ie[0],me[1]-Ie[1]],Ut.endTangent=[st[0]-Ie[0],st[1]-Ie[1]])}else if(te==="A"){var Le=.001,He=Ut.arcParams||{},ze=He.cx,qe=ze===void 0?0:ze,je=He.cy,mr=je===void 0?0:je,br=He.rx,xr=br===void 0?0:br,Dr=He.ry,an=Dr===void 0?0:Dr,In=He.sweepFlag,mi=In===void 0?0:In,on=He.startAngle,vn=on===void 0?0:on,pn=He.endAngle,dn=pn===void 0?0:pn;mi===0&&(Le*=-1);var Zn=xr*Math.cos(vn-Le)+qe,xi=an*Math.sin(vn-Le)+mr;Ut.startTangent=[Zn-Ft[0],xi-Ft[1]];var qn=xr*Math.cos(vn+dn+Le)+qe,wi=an*Math.sin(vn+dn-Le)+mr;Ut.endTangent=[me[0]-qn,me[1]-wi]}G.push(Ut)}return G}function ne(q){for(var G=[],st=q.length,yt=0;yt<st-1;yt++){var Ft=q[yt],Vt=q[yt+1];G.push({from:{x:Ft[0],y:Ft[1]},to:{x:Vt[0],y:Vt[1]}})}if(G.length>1){var Nt=q[0],Xt=q[st-1];G.push({from:{x:Xt[0],y:Xt[1]},to:{x:Nt[0],y:Nt[1]}})}return G}function Zt(q,G){var st=!1;return each(q,function(yt){if(getLineIntersect(yt.from,yt.to,G.from,G.to))return st=!0,!1}),st}function Gt(q){var G=q.map(function(yt){return yt[0]}),st=q.map(function(yt){return yt[1]});return{minX:Math.min.apply(null,G),maxX:Math.max.apply(null,G),minY:Math.min.apply(null,st),maxY:Math.max.apply(null,st)}}function pe(q,G){return!(G.minX>q.maxX||G.maxX<q.minX||G.minY>q.maxY||G.maxY<q.minY)}function ke(q,G){if(q.length<2||G.length<2)return!1;var st=Gt(q),yt=Gt(G);if(!pe(st,yt))return!1;var Ft=!1;if(each(G,function(Et){if(isPointInPolygon(q,Et[0],Et[1]))return Ft=!0,!1}),Ft||(each(q,function(Et){if(isPointInPolygon(G,Et[0],Et[1]))return Ft=!0,!1}),Ft))return!0;var Vt=ne(q),Nt=ne(G),Xt=!1;return each(Nt,function(Et){if(Zt(Vt,Et))return Xt=!0,!1}),Xt}function Ne(q,G){for(var st=[],yt=[],Ft=[],Vt=0;Vt<q.length;Vt++){var Nt=q[Vt],Xt=Nt.currentPoint,Et=Nt.params,te=Nt.prePoint,Ut=void 0;switch(Nt.command){case"Q":Ut=mt.lD.box(te[0],te[1],Et[1],Et[2],Et[3],Et[4]);break;case"C":Ut=mt.Ll.box(te[0],te[1],Et[1],Et[2],Et[3],Et[4],Et[5],Et[6]);break;case"A":var de=Nt.arcParams;Ut=mt.wN.box(de.cx,de.cy,de.rx,de.ry,de.xRotation,de.startAngle,de.endAngle);break;default:st.push(Xt[0]),yt.push(Xt[1]);break}Ut&&(Nt.box=Ut,st.push(Ut.x,Ut.x+Ut.width),yt.push(Ut.y,Ut.y+Ut.height)),G&&(Nt.command==="L"||Nt.command==="M")&&Nt.prePoint&&Nt.nextPoint&&Ft.push(Nt)}st=st.filter(function(ae){return!Number.isNaN(ae)&&ae!==Infinity&&ae!==-Infinity}),yt=yt.filter(function(ae){return!Number.isNaN(ae)&&ae!==Infinity&&ae!==-Infinity});var xe=(0,gt.VV)(st),se=(0,gt.VV)(yt),me=(0,gt.Fp)(st),Ce=(0,gt.Fp)(yt);if(Ft.length===0)return{x:xe,y:se,width:me-xe,height:Ce-se};for(var Vt=0;Vt<Ft.length;Vt++){var Nt=Ft[Vt],Xt=Nt.currentPoint,Me=void 0;Xt[0]===xe?(Me=Ve(Nt,G),xe=xe-Me.xExtra):Xt[0]===me&&(Me=Ve(Nt,G),me=me+Me.xExtra),Xt[1]===se?(Me=Ve(Nt,G),se=se-Me.yExtra):Xt[1]===Ce&&(Me=Ve(Nt,G),Ce=Ce+Me.yExtra)}return{x:xe,y:se,width:me-xe,height:Ce-se}}function Ve(q,G){var st=q.prePoint,yt=q.currentPoint,Ft=q.nextPoint,Vt=Math.pow(yt[0]-st[0],2)+Math.pow(yt[1]-st[1],2),Nt=Math.pow(yt[0]-Ft[0],2)+Math.pow(yt[1]-Ft[1],2),Xt=Math.pow(st[0]-Ft[0],2)+Math.pow(st[1]-Ft[1],2),Et=Math.acos((Vt+Nt-Xt)/(2*Math.sqrt(Vt)*Math.sqrt(Nt)));if(!Et||Math.sin(Et)===0||(0,gt.vQ)(Et,0))return{xExtra:0,yExtra:0};var te=Math.abs(Math.atan2(Ft[1]-yt[1],Ft[0]-yt[0])),Ut=Math.abs(Math.atan2(Ft[0]-yt[0],Ft[1]-yt[1]));te=te>Math.PI/2?Math.PI-te:te,Ut=Ut>Math.PI/2?Math.PI-Ut:Ut;var de={xExtra:Math.cos(Et/2-te)*(G/2*(1/Math.sin(Et/2)))-G/2||0,yExtra:Math.cos(Ut-Et/2)*(G/2*(1/Math.sin(Et/2)))-G/2||0};return de}function fr(q){var G=q.attr(),st=G.path,yt=G.stroke,Ft=yt?G.lineWidth:0,Vt=q.get("segments")||Yt(st),Nt=Ne(Vt,Ft),Xt=Nt.x,Et=Nt.y,te=Nt.width,Ut=Nt.height,de={minX:Xt,minY:Et,maxX:Xt+te,maxY:Et+Ut};return de=vt(q,de),{x:de.minX,y:de.minY,width:de.maxX-de.minX,height:de.maxY-de.minY}}function _r(q){var G=q.attr(),st=G.x1,yt=G.y1,Ft=G.x2,Vt=G.y2,Nt=Math.min(st,Ft),Xt=Math.max(st,Ft),Et=Math.min(yt,Vt),te=Math.max(yt,Vt),Ut={minX:Nt,maxX:Xt,minY:Et,maxY:te};return Ut=vt(q,Ut),{x:Ut.minX,y:Ut.minY,width:Ut.maxX-Ut.minX,height:Ut.maxY-Ut.minY}}function Fr(q){var G=q.attr(),st=G.x,yt=G.y,Ft=G.rx,Vt=G.ry;return{x:st-Ft,y:yt-Vt,width:Ft*2,height:Vt*2}}dt("rect",kt),dt("image",kt),dt("circle",Tt),dt("marker",Tt),dt("polyline",xt),dt("polygon",jt),dt("text",Pt),dt("path",fr),dt("line",_r),dt("ellipse",Fr)},89473:function(_e,ee){"use strict";var et=function(){function ht(dt,Kt){this.bubbles=!0,this.target=null,this.currentTarget=null,this.delegateTarget=null,this.delegateObject=null,this.defaultPrevented=!1,this.propagationStopped=!1,this.shape=null,this.fromShape=null,this.toShape=null,this.propagationPath=[],this.type=dt,this.name=dt,this.originalEvent=Kt,this.timeStamp=Kt.timeStamp}return ht.prototype.preventDefault=function(){this.defaultPrevented=!0,this.originalEvent.preventDefault&&this.originalEvent.preventDefault()},ht.prototype.stopPropagation=function(){this.propagationStopped=!0},ht.prototype.toString=function(){var dt=this.type;return"[Event (type="+dt+")]"},ht.prototype.save=function(){},ht.prototype.restore=function(){},ht}();ee.Z=et},98190:function(_e,ee,et){"use strict";et.r(ee),et.d(ee,{Event:function(){return vt.Z},Base:function(){return xt.Z},AbstractCanvas:function(){return jt.Z},AbstractGroup:function(){return Ot.Z},AbstractShape:function(){return Pt.Z},PathUtil:function(){return ht},getBBoxMethod:function(){return gt.b},registerBBox:function(){return gt.W},getTextHeight:function(){return d.FE},assembleFont:function(){return d.$O},isAllowCapture:function(){return f.pP},multiplyVec2:function(){return rt.rG},invert:function(){return rt.U_},getOffScreenContext:function(){return J.L},registerEasing:function(){return St.C},version:function(){return wt}});var ht=et(47575),dt=et(52),Kt=et.n(dt),kt={};for(var Tt in dt)["default","Event","Base","AbstractCanvas","AbstractGroup","AbstractShape","PathUtil","getBBoxMethod","registerBBox","getTextHeight","assembleFont","isAllowCapture","multiplyVec2","invert","getOffScreenContext","registerEasing","version"].indexOf(Tt)<0&&(kt[Tt]=function(X){return dt[X]}.bind(0,Tt));et.d(ee,kt);var mt=et(15294),ct=et.n(mt),kt={};for(var Tt in mt)["default","Event","Base","AbstractCanvas","AbstractGroup","AbstractShape","PathUtil","getBBoxMethod","registerBBox","getTextHeight","assembleFont","isAllowCapture","multiplyVec2","invert","getOffScreenContext","registerEasing","version"].indexOf(Tt)<0&&(kt[Tt]=function(at){return mt[at]}.bind(0,Tt));et.d(ee,kt);var vt=et(89473),xt=et(2667),jt=et(96298),Ot=et(31841),Pt=et(15032),gt=et(63427),d=et(8723),f=et(77341),rt=et(41482),J=et(67052),St=et(97492),wt="0.5.11"},15294:function(){},52:function(){},41482:function(_e,ee,et){"use strict";et.d(ee,{xq:function(){return ht},rG:function(){return dt},U_:function(){return Kt}});function ht(kt,Tt){var mt=[],ct=kt[0],vt=kt[1],xt=kt[2],jt=kt[3],Ot=kt[4],Pt=kt[5],gt=kt[6],d=kt[7],f=kt[8],rt=Tt[0],J=Tt[1],St=Tt[2],wt=Tt[3],X=Tt[4],at=Tt[5],_t=Tt[6],Rt=Tt[7],$t=Tt[8];return mt[0]=rt*ct+J*jt+St*gt,mt[1]=rt*vt+J*Ot+St*d,mt[2]=rt*xt+J*Pt+St*f,mt[3]=wt*ct+X*jt+at*gt,mt[4]=wt*vt+X*Ot+at*d,mt[5]=wt*xt+X*Pt+at*f,mt[6]=_t*ct+Rt*jt+$t*gt,mt[7]=_t*vt+Rt*Ot+$t*d,mt[8]=_t*xt+Rt*Pt+$t*f,mt}function dt(kt,Tt){var mt=[],ct=Tt[0],vt=Tt[1];return mt[0]=kt[0]*ct+kt[3]*vt+kt[6],mt[1]=kt[1]*ct+kt[4]*vt+kt[7],mt}function Kt(kt){var Tt=[],mt=kt[0],ct=kt[1],vt=kt[2],xt=kt[3],jt=kt[4],Ot=kt[5],Pt=kt[6],gt=kt[7],d=kt[8],f=d*jt-Ot*gt,rt=-d*xt+Ot*Pt,J=gt*xt-jt*Pt,St=mt*f+ct*rt+vt*J;return St?(St=1/St,Tt[0]=f*St,Tt[1]=(-d*ct+vt*gt)*St,Tt[2]=(Ot*ct-vt*jt)*St,Tt[3]=rt*St,Tt[4]=(d*mt-vt*Pt)*St,Tt[5]=(-Ot*mt+vt*xt)*St,Tt[6]=J*St,Tt[7]=(-gt*mt+ct*Pt)*St,Tt[8]=(jt*mt-ct*xt)*St,Tt):null}},67052:function(_e,ee,et){"use strict";et.d(ee,{L:function(){return dt}});var ht=null;function dt(){if(!ht){var Kt=document.createElement("canvas");Kt.width=1,Kt.height=1,ht=Kt.getContext("2d")}return ht}},47575:function(_e,ee,et){"use strict";et.r(ee),et.d(ee,{catmullRomToBezier:function(){return mt},fillPath:function(){return At},fillPathByDiff:function(){return W},formatPath:function(){return nt},intersection:function(){return pt},parsePathArray:function(){return d},parsePathString:function(){return Tt},pathToAbsolute:function(){return vt},pathToCurve:function(){return Pt},rectPath:function(){return X}});var ht=et(41694),dt=`
  14. \v\f\r \xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029`,Kt=new RegExp("([a-z])["+dt+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+dt+"]*,?["+dt+"]*)+)","ig"),kt=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+dt+"]*,?["+dt+"]*","ig"),Tt=function(T){if(!T)return null;if((0,ht.kJ)(T))return T;var N={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},O=[];return String(T).replace(Kt,function(L,tt,it){var k=[],_=tt.toLowerCase();if(it.replace(kt,function(b,E){E&&k.push(+E)}),_==="m"&&k.length>2&&(O.push([tt].concat(k.splice(0,2))),_="l",tt=tt==="m"?"l":"L"),_==="o"&&k.length===1&&O.push([tt,k[0]]),_==="r")O.push([tt].concat(k));else for(;k.length>=N[_]&&(O.push([tt].concat(k.splice(0,N[_]))),!!N[_]););return T}),O},mt=function(T,N){for(var O=[],L=0,tt=T.length;tt-2*!N>L;L+=2){var it=[{x:+T[L-2],y:+T[L-1]},{x:+T[L],y:+T[L+1]},{x:+T[L+2],y:+T[L+3]},{x:+T[L+4],y:+T[L+5]}];N?L?tt-4===L?it[3]={x:+T[0],y:+T[1]}:tt-2===L&&(it[2]={x:+T[0],y:+T[1]},it[3]={x:+T[2],y:+T[3]}):it[0]={x:+T[tt-2],y:+T[tt-1]}:tt-4===L?it[3]=it[2]:L||(it[0]={x:+T[L],y:+T[L+1]}),O.push(["C",(-it[0].x+6*it[1].x+it[2].x)/6,(-it[0].y+6*it[1].y+it[2].y)/6,(it[1].x+6*it[2].x-it[3].x)/6,(it[1].y+6*it[2].y-it[3].y)/6,it[2].x,it[2].y])}return O},ct=function(T,N,O,L,tt){var it=[];if(tt===null&&L===null&&(L=O),T=+T,N=+N,O=+O,L=+L,tt!==null){var k=Math.PI/180,_=T+O*Math.cos(-L*k),b=T+O*Math.cos(-tt*k),E=N+O*Math.sin(-L*k),I=N+O*Math.sin(-tt*k);it=[["M",_,E],["A",O,O,0,+(tt-L>180),0,b,I]]}else it=[["M",T,N],["m",0,-L],["a",O,L,0,1,1,0,2*L],["a",O,L,0,1,1,0,-2*L],["z"]];return it},vt=function(T){if(T=Tt(T),!T||!T.length)return[["M",0,0]];var N=[],O=0,L=0,tt=0,it=0,k=0,_,b;T[0][0]==="M"&&(O=+T[0][1],L=+T[0][2],tt=O,it=L,k++,N[0]=["M",O,L]);for(var E=T.length===3&&T[0][0]==="M"&&T[1][0].toUpperCase()==="R"&&T[2][0].toUpperCase()==="Z",I=void 0,z=void 0,B=k,j=T.length;B<j;B++){if(N.push(I=[]),z=T[B],_=z[0],_!==_.toUpperCase())switch(I[0]=_.toUpperCase(),I[0]){case"A":I[1]=z[1],I[2]=z[2],I[3]=z[3],I[4]=z[4],I[5]=z[5],I[6]=+z[6]+O,I[7]=+z[7]+L;break;case"V":I[1]=+z[1]+L;break;case"H":I[1]=+z[1]+O;break;case"R":b=[O,L].concat(z.slice(1));for(var Q=2,Ct=b.length;Q<Ct;Q++)b[Q]=+b[Q]+O,b[++Q]=+b[Q]+L;N.pop(),N=N.concat(mt(b,E));break;case"O":N.pop(),b=ct(O,L,z[1],z[2]),b.push(b[0]),N=N.concat(b);break;case"U":N.pop(),N=N.concat(ct(O,L,z[1],z[2],z[3])),I=["U"].concat(N[N.length-1].slice(-2));break;case"M":tt=+z[1]+O,it=+z[2]+L;break;default:for(var Q=1,Ct=z.length;Q<Ct;Q++)I[Q]=+z[Q]+(Q%2?O:L)}else if(_==="R")b=[O,L].concat(z.slice(1)),N.pop(),N=N.concat(mt(b,E)),I=["R"].concat(z.slice(-2));else if(_==="O")N.pop(),b=ct(O,L,z[1],z[2]),b.push(b[0]),N=N.concat(b);else if(_==="U")N.pop(),N=N.concat(ct(O,L,z[1],z[2],z[3])),I=["U"].concat(N[N.length-1].slice(-2));else for(var qt=0,Yt=z.length;qt<Yt;qt++)I[qt]=z[qt];if(_=_.toUpperCase(),_!=="O")switch(I[0]){case"Z":O=+tt,L=+it;break;case"H":O=I[1];break;case"V":L=I[1];break;case"M":tt=I[I.length-2],it=I[I.length-1];break;default:O=I[I.length-2],L=I[I.length-1]}}return N},xt=function(T,N,O,L){return[T,N,O,L,O,L]},jt=function(T,N,O,L,tt,it){var k=1/3,_=2/3;return[k*T+_*O,k*N+_*L,k*tt+_*O,k*it+_*L,tt,it]},Ot=function(T,N,O,L,tt,it,k,_,b,E){O===L&&(O+=1);var I=Math.PI*120/180,z=Math.PI/180*(+tt||0),B=[],j,Q,Ct,qt,Yt,ne=function(Ce,Me,ae){var Ie=Ce*Math.cos(ae)-Me*Math.sin(ae),Le=Ce*Math.sin(ae)+Me*Math.cos(ae);return{x:Ie,y:Le}};if(E)Q=E[0],Ct=E[1],qt=E[2],Yt=E[3];else{j=ne(T,N,-z),T=j.x,N=j.y,j=ne(_,b,-z),_=j.x,b=j.y,T===_&&N===b&&(_+=1,b+=1);var Zt=(T-_)/2,Gt=(N-b)/2,pe=Zt*Zt/(O*O)+Gt*Gt/(L*L);pe>1&&(pe=Math.sqrt(pe),O=pe*O,L=pe*L);var ke=O*O,Ne=L*L,Ve=(it===k?-1:1)*Math.sqrt(Math.abs((ke*Ne-ke*Gt*Gt-Ne*Zt*Zt)/(ke*Gt*Gt+Ne*Zt*Zt)));qt=Ve*O*Gt/L+(T+_)/2,Yt=Ve*-L*Zt/O+(N+b)/2,Q=Math.asin(((N-Yt)/L).toFixed(9)),Ct=Math.asin(((b-Yt)/L).toFixed(9)),Q=T<qt?Math.PI-Q:Q,Ct=_<qt?Math.PI-Ct:Ct,Q<0&&(Q=Math.PI*2+Q),Ct<0&&(Ct=Math.PI*2+Ct),k&&Q>Ct&&(Q=Q-Math.PI*2),!k&&Ct>Q&&(Ct=Ct-Math.PI*2)}var fr=Ct-Q;if(Math.abs(fr)>I){var _r=Ct,Fr=_,q=b;Ct=Q+I*(k&&Ct>Q?1:-1),_=qt+O*Math.cos(Ct),b=Yt+L*Math.sin(Ct),B=Ot(_,b,O,L,tt,0,k,Fr,q,[Ct,_r,qt,Yt])}fr=Ct-Q;var G=Math.cos(Q),st=Math.sin(Q),yt=Math.cos(Ct),Ft=Math.sin(Ct),Vt=Math.tan(fr/4),Nt=4/3*O*Vt,Xt=4/3*L*Vt,Et=[T,N],te=[T+Nt*st,N-Xt*G],Ut=[_+Nt*Ft,b-Xt*yt],de=[_,b];if(te[0]=2*Et[0]-te[0],te[1]=2*Et[1]-te[1],E)return[te,Ut,de].concat(B);B=[te,Ut,de].concat(B).join().split(",");for(var xe=[],se=0,me=B.length;se<me;se++)xe[se]=se%2?ne(B[se-1],B[se],z).y:ne(B[se],B[se+1],z).x;return xe},Pt=function(T,N){var O=vt(T),L=N&&vt(N),tt={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},it={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},k=[],_=[],b="",E="",I,z=function(Zt,Gt,pe){var ke,Ne;if(!Zt)return["C",Gt.x,Gt.y,Gt.x,Gt.y,Gt.x,Gt.y];switch(!(Zt[0]in{T:1,Q:1})&&(Gt.qx=Gt.qy=null),Zt[0]){case"M":Gt.X=Zt[1],Gt.Y=Zt[2];break;case"A":Zt=["C"].concat(Ot.apply(0,[Gt.x,Gt.y].concat(Zt.slice(1))));break;case"S":pe==="C"||pe==="S"?(ke=Gt.x*2-Gt.bx,Ne=Gt.y*2-Gt.by):(ke=Gt.x,Ne=Gt.y),Zt=["C",ke,Ne].concat(Zt.slice(1));break;case"T":pe==="Q"||pe==="T"?(Gt.qx=Gt.x*2-Gt.qx,Gt.qy=Gt.y*2-Gt.qy):(Gt.qx=Gt.x,Gt.qy=Gt.y),Zt=["C"].concat(jt(Gt.x,Gt.y,Gt.qx,Gt.qy,Zt[1],Zt[2]));break;case"Q":Gt.qx=Zt[1],Gt.qy=Zt[2],Zt=["C"].concat(jt(Gt.x,Gt.y,Zt[1],Zt[2],Zt[3],Zt[4]));break;case"L":Zt=["C"].concat(xt(Gt.x,Gt.y,Zt[1],Zt[2]));break;case"H":Zt=["C"].concat(xt(Gt.x,Gt.y,Zt[1],Gt.y));break;case"V":Zt=["C"].concat(xt(Gt.x,Gt.y,Gt.x,Zt[1]));break;case"Z":Zt=["C"].concat(xt(Gt.x,Gt.y,Gt.X,Gt.Y));break;default:break}return Zt},B=function(Zt,Gt){if(Zt[Gt].length>7){Zt[Gt].shift();for(var pe=Zt[Gt];pe.length;)k[Gt]="A",L&&(_[Gt]="A"),Zt.splice(Gt++,0,["C"].concat(pe.splice(0,6)));Zt.splice(Gt,1),I=Math.max(O.length,L&&L.length||0)}},j=function(Zt,Gt,pe,ke,Ne){Zt&&Gt&&Zt[Ne][0]==="M"&&Gt[Ne][0]!=="M"&&(Gt.splice(Ne,0,["M",ke.x,ke.y]),pe.bx=0,pe.by=0,pe.x=Zt[Ne][1],pe.y=Zt[Ne][2],I=Math.max(O.length,L&&L.length||0))};I=Math.max(O.length,L&&L.length||0);for(var Q=0;Q<I;Q++){O[Q]&&(b=O[Q][0]),b!=="C"&&(k[Q]=b,Q&&(E=k[Q-1])),O[Q]=z(O[Q],tt,E),k[Q]!=="A"&&b==="C"&&(k[Q]="C"),B(O,Q),L&&(L[Q]&&(b=L[Q][0]),b!=="C"&&(_[Q]=b,Q&&(E=_[Q-1])),L[Q]=z(L[Q],it,E),_[Q]!=="A"&&b==="C"&&(_[Q]="C"),B(L,Q)),j(O,L,tt,it,Q),j(L,O,it,tt,Q);var Ct=O[Q],qt=L&&L[Q],Yt=Ct.length,ne=L&&qt.length;tt.x=Ct[Yt-2],tt.y=Ct[Yt-1],tt.bx=parseFloat(Ct[Yt-4])||tt.x,tt.by=parseFloat(Ct[Yt-3])||tt.y,it.bx=L&&(parseFloat(qt[ne-4])||it.x),it.by=L&&(parseFloat(qt[ne-3])||it.y),it.x=L&&qt[ne-2],it.y=L&&qt[ne-1]}return L?[O,L]:O},gt=/,?([a-z]),?/gi,d=function(T){return T.join(",").replace(gt,"$1")},f=function(T,N,O,L,tt){var it=-3*N+9*O-9*L+3*tt,k=T*it+6*N-12*O+6*L;return T*k-3*N+3*O},rt=function(T,N,O,L,tt,it,k,_,b){b===null&&(b=1),b=b>1?1:b<0?0:b;for(var E=b/2,I=12,z=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],B=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],j=0,Q=0;Q<I;Q++){var Ct=E*z[Q]+E,qt=f(Ct,T,O,tt,k),Yt=f(Ct,N,L,it,_),ne=qt*qt+Yt*Yt;j+=B[Q]*Math.sqrt(ne)}return E*j},J=function(T,N,O,L,tt,it,k,_){for(var b=[],E=[[],[]],I,z,B,j,Q=0;Q<2;++Q){if(Q===0?(z=6*T-12*O+6*tt,I=-3*T+9*O-9*tt+3*k,B=3*O-3*T):(z=6*N-12*L+6*it,I=-3*N+9*L-9*it+3*_,B=3*L-3*N),Math.abs(I)<1e-12){if(Math.abs(z)<1e-12)continue;j=-B/z,j>0&&j<1&&b.push(j);continue}var Ct=z*z-4*B*I,qt=Math.sqrt(Ct);if(!(Ct<0)){var Yt=(-z+qt)/(2*I);Yt>0&&Yt<1&&b.push(Yt);var ne=(-z-qt)/(2*I);ne>0&&ne<1&&b.push(ne)}}for(var Zt=b.length,Gt=Zt,pe;Zt--;)j=b[Zt],pe=1-j,E[0][Zt]=pe*pe*pe*T+3*pe*pe*j*O+3*pe*j*j*tt+j*j*j*k,E[1][Zt]=pe*pe*pe*N+3*pe*pe*j*L+3*pe*j*j*it+j*j*j*_;return E[0][Gt]=T,E[1][Gt]=N,E[0][Gt+1]=k,E[1][Gt+1]=_,E[0].length=E[1].length=Gt+2,{min:{x:Math.min.apply(0,E[0]),y:Math.min.apply(0,E[1])},max:{x:Math.max.apply(0,E[0]),y:Math.max.apply(0,E[1])}}},St=function(T,N,O,L,tt,it,k,_){if(!(Math.max(T,O)<Math.min(tt,k)||Math.min(T,O)>Math.max(tt,k)||Math.max(N,L)<Math.min(it,_)||Math.min(N,L)>Math.max(it,_))){var b=(T*L-N*O)*(tt-k)-(T-O)*(tt*_-it*k),E=(T*L-N*O)*(it-_)-(N-L)*(tt*_-it*k),I=(T-O)*(it-_)-(N-L)*(tt-k);if(!!I){var z=b/I,B=E/I,j=+z.toFixed(2),Q=+B.toFixed(2);if(!(j<+Math.min(T,O).toFixed(2)||j>+Math.max(T,O).toFixed(2)||j<+Math.min(tt,k).toFixed(2)||j>+Math.max(tt,k).toFixed(2)||Q<+Math.min(N,L).toFixed(2)||Q>+Math.max(N,L).toFixed(2)||Q<+Math.min(it,_).toFixed(2)||Q>+Math.max(it,_).toFixed(2)))return{x:z,y:B}}}},wt=function(T,N,O){return N>=T.x&&N<=T.x+T.width&&O>=T.y&&O<=T.y+T.height},X=function(T,N,O,L,tt){if(tt)return[["M",+T+ +tt,N],["l",O-tt*2,0],["a",tt,tt,0,0,1,tt,tt],["l",0,L-tt*2],["a",tt,tt,0,0,1,-tt,tt],["l",tt*2-O,0],["a",tt,tt,0,0,1,-tt,-tt],["l",0,tt*2-L],["a",tt,tt,0,0,1,tt,-tt],["z"]];var it=[["M",T,N],["l",O,0],["l",0,L],["l",-O,0],["z"]];return it.parsePathArray=d,it},at=function(T,N,O,L){return T===null&&(T=N=O=L=0),N===null&&(N=T.y,O=T.width,L=T.height,T=T.x),{x:T,y:N,width:O,w:O,height:L,h:L,x2:T+O,y2:N+L,cx:T+O/2,cy:N+L/2,r1:Math.min(O,L)/2,r2:Math.max(O,L)/2,r0:Math.sqrt(O*O+L*L)/2,path:X(T,N,O,L),vb:[T,N,O,L].join(" ")}},_t=function(T,N){return T=at(T),N=at(N),wt(N,T.x,T.y)||wt(N,T.x2,T.y)||wt(N,T.x,T.y2)||wt(N,T.x2,T.y2)||wt(T,N.x,N.y)||wt(T,N.x2,N.y)||wt(T,N.x,N.y2)||wt(T,N.x2,N.y2)||(T.x<N.x2&&T.x>N.x||N.x<T.x2&&N.x>T.x)&&(T.y<N.y2&&T.y>N.y||N.y<T.y2&&N.y>T.y)},Rt=function(T,N,O,L,tt,it,k,_){(0,ht.kJ)(T)||(T=[T,N,O,L,tt,it,k,_]);var b=J.apply(null,T);return at(b.min.x,b.min.y,b.max.x-b.min.x,b.max.y-b.min.y)},$t=function(T,N,O,L,tt,it,k,_,b){var E=1-b,I=Math.pow(E,3),z=Math.pow(E,2),B=b*b,j=B*b,Q=I*T+z*3*b*O+E*3*b*b*tt+j*k,Ct=I*N+z*3*b*L+E*3*b*b*it+j*_,qt=T+2*b*(O-T)+B*(tt-2*O+T),Yt=N+2*b*(L-N)+B*(it-2*L+N),ne=O+2*b*(tt-O)+B*(k-2*tt+O),Zt=L+2*b*(it-L)+B*(_-2*it+L),Gt=E*T+b*O,pe=E*N+b*L,ke=E*tt+b*k,Ne=E*it+b*_,Ve=90-Math.atan2(qt-ne,Yt-Zt)*180/Math.PI;return{x:Q,y:Ct,m:{x:qt,y:Yt},n:{x:ne,y:Zt},start:{x:Gt,y:pe},end:{x:ke,y:Ne},alpha:Ve}},re=function(T,N,O){var L=Rt(T),tt=Rt(N);if(!_t(L,tt))return O?0:[];for(var it=rt.apply(0,T),k=rt.apply(0,N),_=~~(it/8),b=~~(k/8),E=[],I=[],z={},B=O?0:[],j=0;j<_+1;j++){var Q=$t.apply(0,T.concat(j/_));E.push({x:Q.x,y:Q.y,t:j/_})}for(var j=0;j<b+1;j++){var Q=$t.apply(0,N.concat(j/b));I.push({x:Q.x,y:Q.y,t:j/b})}for(var j=0;j<_;j++)for(var Ct=0;Ct<b;Ct++){var qt=E[j],Yt=E[j+1],ne=I[Ct],Zt=I[Ct+1],Gt=Math.abs(Yt.x-qt.x)<.001?"y":"x",pe=Math.abs(Zt.x-ne.x)<.001?"y":"x",ke=St(qt.x,qt.y,Yt.x,Yt.y,ne.x,ne.y,Zt.x,Zt.y);if(ke){if(z[ke.x.toFixed(4)]===ke.y.toFixed(4))continue;z[ke.x.toFixed(4)]=ke.y.toFixed(4);var Ne=qt.t+Math.abs((ke[Gt]-qt[Gt])/(Yt[Gt]-qt[Gt]))*(Yt.t-qt.t),Ve=ne.t+Math.abs((ke[pe]-ne[pe])/(Zt[pe]-ne[pe]))*(Zt.t-ne.t);Ne>=0&&Ne<=1&&Ve>=0&&Ve<=1&&(O?B+=1:B.push({x:ke.x,y:ke.y,t1:Ne,t2:Ve}))}}return B},Se=function(T,N,O){T=Pt(T),N=Pt(N);for(var L,tt,it,k,_,b,E,I,z,B,j=O?0:[],Q=0,Ct=T.length;Q<Ct;Q++){var qt=T[Q];if(qt[0]==="M")L=_=qt[1],tt=b=qt[2];else{qt[0]==="C"?(z=[L,tt].concat(qt.slice(1)),L=z[6],tt=z[7]):(z=[L,tt,L,tt,_,b,_,b],L=_,tt=b);for(var Yt=0,ne=N.length;Yt<ne;Yt++){var Zt=N[Yt];if(Zt[0]==="M")it=E=Zt[1],k=I=Zt[2];else{Zt[0]==="C"?(B=[it,k].concat(Zt.slice(1)),it=B[6],k=B[7]):(B=[it,k,it,k,E,I,E,I],it=E,k=I);var Gt=re(z,B,O);if(O)j+=Gt;else{for(var pe=0,ke=Gt.length;pe<ke;pe++)Gt[pe].segment1=Q,Gt[pe].segment2=Yt,Gt[pe].bez1=z,Gt[pe].bez2=B;j=j.concat(Gt)}}}}}return j},pt=function(T,N){return Se(T,N)};function Dt(T,N){var O=[],L=[];function tt(it,k){if(it.length===1)O.push(it[0]),L.push(it[0]);else{for(var _=[],b=0;b<it.length-1;b++)b===0&&O.push(it[0]),b===it.length-2&&L.push(it[b+1]),_[b]=[(1-k)*it[b][0]+k*it[b+1][0],(1-k)*it[b][1]+k*it[b+1][1]];tt(_,k)}}return T.length&&tt(T,N),{left:O,right:L.reverse()}}function Jt(T,N,O){var L=[[T[1],T[2]]];O=O||2;var tt=[];N[0]==="A"?(L.push(N[6]),L.push(N[7])):N[0]==="C"?(L.push([N[1],N[2]]),L.push([N[3],N[4]]),L.push([N[5],N[6]])):N[0]==="S"||N[0]==="Q"?(L.push([N[1],N[2]]),L.push([N[3],N[4]])):L.push([N[1],N[2]]);for(var it=L,k=1/O,_=0;_<O-1;_++){var b=k/(1-k*_),E=Dt(it,b);tt.push(E.left),it=E.right}tt.push(it);var I=tt.map(function(z){var B=[];return z.length===4&&(B.push("C"),B=B.concat(z[2])),z.length>=3&&(z.length===3&&B.push("Q"),B=B.concat(z[1])),z.length===2&&B.push("L"),B=B.concat(z[z.length-1]),B});return I}var Ht=function(T,N,O){if(O===1)return[[].concat(T)];var L=[];if(N[0]==="L"||N[0]==="C"||N[0]==="Q")L=L.concat(Jt(T,N,O));else{var tt=[].concat(T);tt[0]==="M"&&(tt[0]="L");for(var it=0;it<=O-1;it++)L.push(tt)}return L},At=function(T,N){if(T.length===1)return T;var O=T.length-1,L=N.length-1,tt=O/L,it=[];if(T.length===1&&T[0][0]==="M"){for(var k=0;k<L-O;k++)T.push(T[0]);return T}for(var k=0;k<L;k++){var _=Math.floor(tt*k);it[_]=(it[_]||0)+1}var b=it.reduce(function(E,I,z){return z===O?E.concat(T[O]):E.concat(Ht(T[z],T[z+1],I))},[]);return b.unshift(T[0]),(N[L]==="Z"||N[L]==="z")&&b.push("Z"),b},U=function(T,N){if(T.length!==N.length)return!1;var O=!0;return(0,ht.S6)(T,function(L,tt){if(L!==N[tt])return O=!1,!1}),O};function C(T,N,O){var L=null,tt=O;return N<tt&&(tt=N,L="add"),T<tt&&(tt=T,L="del"),{type:L,min:tt}}var F=function(T,N){var O=T.length,L=N.length,tt,it,k=0;if(O===0||L===0)return null;for(var _=[],b=0;b<=O;b++)_[b]=[],_[b][0]={min:b};for(var E=0;E<=L;E++)_[0][E]={min:E};for(var b=1;b<=O;b++){tt=T[b-1];for(var E=1;E<=L;E++){it=N[E-1],U(tt,it)?k=0:k=1;var I=_[b-1][E].min+1,z=_[b][E-1].min+1,B=_[b-1][E-1].min+k;_[b][E]=C(I,z,B)}}return _},W=function(T,N){var O=F(T,N),L=T.length,tt=N.length,it=[],k=1,_=1;if(O[L][tt].min!==L){for(var b=1;b<=L;b++){var E=O[b][b].min;_=b;for(var I=k;I<=tt;I++)O[b][I].min<E&&(E=O[b][I].min,_=I);k=_,O[b][k].type&&it.push({index:b-1,type:O[b][k].type})}for(var b=it.length-1;b>=0;b--)k=it[b].index,it[b].type==="add"?T.splice(k,0,[].concat(T[k])):T.splice(k,1)}L=T.length;var z=tt-L;if(L<tt)for(var b=0;b<z;b++)T[L-1][0]==="z"||T[L-1][0]==="Z"?T.splice(L-2,0,T[L-2]):T.push(T[L-1]),L+=1;return T};function lt(T,N,O){for(var L=[].concat(T),tt,it=1/(O+1),k=Z(N)[0],_=1;_<=O;_++)it*=_,tt=Math.floor(T.length*it),tt===0?L.unshift([k[0]*it+T[tt][0]*(1-it),k[1]*it+T[tt][1]*(1-it)]):L.splice(tt,0,[k[0]*it+T[tt][0]*(1-it),k[1]*it+T[tt][1]*(1-it)]);return L}function Z(T){var N=[];switch(T[0]){case"M":N.push([T[1],T[2]]);break;case"L":N.push([T[1],T[2]]);break;case"A":N.push([T[6],T[7]]);break;case"Q":N.push([T[3],T[4]]),N.push([T[1],T[2]]);break;case"T":N.push([T[1],T[2]]);break;case"C":N.push([T[5],T[6]]),N.push([T[1],T[2]]),N.push([T[3],T[4]]);break;case"S":N.push([T[3],T[4]]),N.push([T[1],T[2]]);break;case"H":N.push([T[1],T[1]]);break;case"V":N.push([T[1],T[1]]);break;default:}return N}var nt=function(T,N){if(T.length<=1)return T;for(var O,L=0;L<N.length;L++)if(T[L][0]!==N[L][0])switch(O=Z(T[L]),N[L][0]){case"M":T[L]=["M"].concat(O[0]);break;case"L":T[L]=["L"].concat(O[0]);break;case"A":T[L]=[].concat(N[L]),T[L][6]=O[0][0],T[L][7]=O[0][1];break;case"Q":if(O.length<2)if(L>0)O=lt(O,T[L-1],1);else{T[L]=N[L];break}T[L]=["Q"].concat(O.reduce(function(tt,it){return tt.concat(it)},[]));break;case"T":T[L]=["T"].concat(O[0]);break;case"C":if(O.length<3)if(L>0)O=lt(O,T[L-1],2);else{T[L]=N[L];break}T[L]=["C"].concat(O.reduce(function(tt,it){return tt.concat(it)},[]));break;case"S":if(O.length<2)if(L>0)O=lt(O,T[L-1],1);else{T[L]=N[L];break}T[L]=["S"].concat(O.reduce(function(tt,it){return tt.concat(it)},[]));break;default:T[L]=N[L]}return T}},8723:function(_e,ee,et){"use strict";et.d(ee,{FE:function(){return Kt},mY:function(){return Tt},$O:function(){return mt}});var ht=et(77341),dt=et(67052);function Kt(ct,vt,xt){var jt=1;if((0,ht.HD)(ct)&&(jt=ct.split(`
  15. `).length),jt>1){var Ot=kt(vt,xt);return vt*jt+Ot*(jt-1)}return vt}function kt(ct,vt){return vt?vt-ct:ct*.14}function Tt(ct,vt){var xt=(0,dt.L)(),jt=0;if((0,ht.kK)(ct)||ct==="")return jt;if(xt.save(),xt.font=vt,(0,ht.HD)(ct)&&ct.includes(`
  16. `)){var Ot=ct.split(`
  17. `);(0,ht.S6)(Ot,function(Pt){var gt=xt.measureText(Pt).width;jt<gt&&(jt=gt)})}else jt=xt.measureText(ct).width;return xt.restore(),jt}function mt(ct){var vt=ct.fontSize,xt=ct.fontFamily,jt=ct.fontWeight,Ot=ct.fontStyle,Pt=ct.fontVariant;return[Ot,Pt,jt,vt+"px",xt].join(" ").trim()}},77341:function(_e,ee,et){"use strict";et.d(ee,{As:function(){return dt},jU:function(){return Kt},kK:function(){return ht.UM},mf:function(){return ht.mf},HD:function(){return ht.HD},Kn:function(){return ht.Kn},CD:function(){return ht.CD},S6:function(){return ht.S6},jC:function(){return ht.jC},UY:function(){return kt},pP:function(){return Tt}});var ht=et(41694);function dt(mt,ct){var vt=mt.indexOf(ct);vt!==-1&&mt.splice(vt,1)}var Kt=typeof window!="undefined"&&typeof window.document!="undefined";function kt(mt,ct){if(mt.isCanvas())return!0;for(var vt=ct.getParent(),xt=!1;vt;){if(vt===mt){xt=!0;break}vt=vt.getParent()}return xt}function Tt(mt){return mt.cfg.visible&&mt.cfg.capture}},89838:function(_e,ee,et){"use strict";et.d(ee,{wN:function(){return lt},Ll:function(){return $t},x1:function(){return xt},aH:function(){return L},lD:function(){return St},Zr:function(){return ht}});var ht={};et.r(ht),et.d(ht,{distance:function(){return Kt},getBBoxByArray:function(){return Tt},getBBoxRange:function(){return mt},isNumberEqual:function(){return kt},piMod:function(){return ct}});var dt=et(41694);function Kt(k,_,b,E){var I=k-b,z=_-E;return Math.sqrt(I*I+z*z)}function kt(k,_){return Math.abs(k-_)<.001}function Tt(k,_){var b=(0,dt.VV)(k),E=(0,dt.VV)(_),I=(0,dt.Fp)(k),z=(0,dt.Fp)(_);return{x:b,y:E,width:I-b,height:z-E}}function mt(k,_,b,E){return{minX:(0,dt.VV)([k,b]),maxX:(0,dt.Fp)([k,b]),minY:(0,dt.VV)([_,E]),maxY:(0,dt.Fp)([_,E])}}function ct(k){return(k+Math.PI*2)%(Math.PI*2)}var vt=et(31437),xt={box:function(k,_,b,E){return Tt([k,b],[_,E])},length:function(k,_,b,E){return Kt(k,_,b,E)},pointAt:function(k,_,b,E,I){return{x:(1-I)*k+I*b,y:(1-I)*_+I*E}},pointDistance:function(k,_,b,E,I,z){var B=(b-k)*(I-k)+(E-_)*(z-_);if(B<0)return Kt(k,_,I,z);var j=(b-k)*(b-k)+(E-_)*(E-_);return B>j?Kt(b,E,I,z):this.pointToLine(k,_,b,E,I,z)},pointToLine:function(k,_,b,E,I,z){var B=[b-k,E-_];if(vt.I6(B,[0,0]))return Math.sqrt((I-k)*(I-k)+(z-_)*(z-_));var j=[-B[1],B[0]];vt.Fv(j,j);var Q=[I-k,z-_];return Math.abs(vt.AK(Q,j))},tangentAngle:function(k,_,b,E){return Math.atan2(E-_,b-k)}},jt=1e-4;function Ot(k,_,b,E,I,z){var B,j=Infinity,Q=[b,E],Ct=20;z&&z>200&&(Ct=z/10);for(var qt=1/Ct,Yt=qt/10,ne=0;ne<=Ct;ne++){var Zt=ne*qt,Gt=[I.apply(null,k.concat([Zt])),I.apply(null,_.concat([Zt]))],pe=Kt(Q[0],Q[1],Gt[0],Gt[1]);pe<j&&(B=Zt,j=pe)}if(B===0)return{x:k[0],y:_[0]};if(B===1){var ke=k.length;return{x:k[ke-1],y:_[ke-1]}}j=Infinity;for(var ne=0;ne<32&&!(Yt<jt);ne++){var Ne=B-Yt,Ve=B+Yt,Gt=[I.apply(null,k.concat([Ne])),I.apply(null,_.concat([Ne]))],pe=Kt(Q[0],Q[1],Gt[0],Gt[1]);if(Ne>=0&&pe<j)B=Ne,j=pe;else{var fr=[I.apply(null,k.concat([Ve])),I.apply(null,_.concat([Ve]))],_r=Kt(Q[0],Q[1],fr[0],fr[1]);Ve<=1&&_r<j?(B=Ve,j=_r):Yt*=.5}}return{x:I.apply(null,k.concat([B])),y:I.apply(null,_.concat([B]))}}function Pt(k,_){for(var b=0,E=k.length,I=0;I<E;I++){var z=k[I],B=_[I],j=k[(I+1)%E],Q=_[(I+1)%E];b+=Kt(z,B,j,Q)}return b/2}function gt(k,_,b,E){var I=1-E;return I*I*k+2*E*I*_+E*E*b}function d(k,_,b){var E=k+b-2*_;if(kt(E,0))return[.5];var I=(k-_)/E;return I<=1&&I>=0?[I]:[]}function f(k,_,b,E){return 2*(1-E)*(_-k)+2*E*(b-_)}function rt(k,_,b,E,I,z,B){var j=gt(k,b,I,B),Q=gt(_,E,z,B),Ct=xt.pointAt(k,_,b,E,B),qt=xt.pointAt(b,E,I,z,B);return[[k,_,Ct.x,Ct.y,j,Q],[j,Q,qt.x,qt.y,I,z]]}function J(k,_,b,E,I,z,B){if(B===0)return(Kt(k,_,b,E)+Kt(b,E,I,z)+Kt(k,_,I,z))/2;var j=rt(k,_,b,E,I,z,.5),Q=j[0],Ct=j[1];return Q.push(B-1),Ct.push(B-1),J.apply(null,Q)+J.apply(null,Ct)}var St={box:function(k,_,b,E,I,z){var B=d(k,b,I)[0],j=d(_,E,z)[0],Q=[k,I],Ct=[_,z];return B!==void 0&&Q.push(gt(k,b,I,B)),j!==void 0&&Ct.push(gt(_,E,z,j)),Tt(Q,Ct)},length:function(k,_,b,E,I,z){return J(k,_,b,E,I,z,3)},nearestPoint:function(k,_,b,E,I,z,B,j){return Ot([k,b,I],[_,E,z],B,j,gt)},pointDistance:function(k,_,b,E,I,z,B,j){var Q=this.nearestPoint(k,_,b,E,I,z,B,j);return Kt(Q.x,Q.y,B,j)},interpolationAt:gt,pointAt:function(k,_,b,E,I,z,B){return{x:gt(k,b,I,B),y:gt(_,E,z,B)}},divide:function(k,_,b,E,I,z,B){return rt(k,_,b,E,I,z,B)},tangentAngle:function(k,_,b,E,I,z,B){var j=f(k,b,I,B),Q=f(_,E,z,B),Ct=Math.atan2(Q,j);return ct(Ct)}};function wt(k,_,b,E,I){var z=1-I;return z*z*z*k+3*_*I*z*z+3*b*I*I*z+E*I*I*I}function X(k,_,b,E,I){var z=1-I;return 3*(z*z*(_-k)+2*z*I*(b-_)+I*I*(E-b))}function at(k,_,b,E){var I=-3*k+9*_-9*b+3*E,z=6*k-12*_+6*b,B=3*_-3*k,j=[],Q,Ct,qt;if(kt(I,0))kt(z,0)||(Q=-B/z,Q>=0&&Q<=1&&j.push(Q));else{var Yt=z*z-4*I*B;kt(Yt,0)?j.push(-z/(2*I)):Yt>0&&(qt=Math.sqrt(Yt),Q=(-z+qt)/(2*I),Ct=(-z-qt)/(2*I),Q>=0&&Q<=1&&j.push(Q),Ct>=0&&Ct<=1&&j.push(Ct))}return j}function _t(k,_,b,E,I,z,B,j,Q){var Ct=wt(k,b,I,B,Q),qt=wt(_,E,z,j,Q),Yt=xt.pointAt(k,_,b,E,Q),ne=xt.pointAt(b,E,I,z,Q),Zt=xt.pointAt(I,z,B,j,Q),Gt=xt.pointAt(Yt.x,Yt.y,ne.x,ne.y,Q),pe=xt.pointAt(ne.x,ne.y,Zt.x,Zt.y,Q);return[[k,_,Yt.x,Yt.y,Gt.x,Gt.y,Ct,qt],[Ct,qt,pe.x,pe.y,Zt.x,Zt.y,B,j]]}function Rt(k,_,b,E,I,z,B,j,Q){if(Q===0)return Pt([k,b,I,B],[_,E,z,j]);var Ct=_t(k,_,b,E,I,z,B,j,.5),qt=Ct[0],Yt=Ct[1];return qt.push(Q-1),Yt.push(Q-1),Rt.apply(null,qt)+Rt.apply(null,Yt)}var $t={extrema:at,box:function(k,_,b,E,I,z,B,j){for(var Q=[k,B],Ct=[_,j],qt=at(k,b,I,B),Yt=at(_,E,z,j),ne=0;ne<qt.length;ne++)Q.push(wt(k,b,I,B,qt[ne]));for(var ne=0;ne<Yt.length;ne++)Ct.push(wt(_,E,z,j,Yt[ne]));return Tt(Q,Ct)},length:function(k,_,b,E,I,z,B,j){return Rt(k,_,b,E,I,z,B,j,3)},nearestPoint:function(k,_,b,E,I,z,B,j,Q,Ct,qt){return Ot([k,b,I,B],[_,E,z,j],Q,Ct,wt,qt)},pointDistance:function(k,_,b,E,I,z,B,j,Q,Ct,qt){var Yt=this.nearestPoint(k,_,b,E,I,z,B,j,Q,Ct,qt);return Kt(Yt.x,Yt.y,Q,Ct)},interpolationAt:wt,pointAt:function(k,_,b,E,I,z,B,j,Q){return{x:wt(k,b,I,B,Q),y:wt(_,E,z,j,Q)}},divide:function(k,_,b,E,I,z,B,j,Q){return _t(k,_,b,E,I,z,B,j,Q)},tangentAngle:function(k,_,b,E,I,z,B,j,Q){var Ct=X(k,b,I,B,Q),qt=X(_,E,z,j,Q);return ct(Math.atan2(qt,Ct))}};function re(k,_){var b=Math.abs(k);return _>0?b:b*-1}var Se={box:function(k,_,b,E){return{x:k-b,y:_-E,width:b*2,height:E*2}},length:function(k,_,b,E){return Math.PI*(3*(b+E)-Math.sqrt((3*b+E)*(b+3*E)))},nearestPoint:function(k,_,b,E,I,z){var B=b,j=E;if(B===0||j===0)return{x:k,y:_};for(var Q=I-k,Ct=z-_,qt=Math.abs(Q),Yt=Math.abs(Ct),ne=B*B,Zt=j*j,Gt=Math.PI/4,pe,ke,Ne=0;Ne<4;Ne++){pe=B*Math.cos(Gt),ke=j*Math.sin(Gt);var Ve=(ne-Zt)*Math.pow(Math.cos(Gt),3)/B,fr=(Zt-ne)*Math.pow(Math.sin(Gt),3)/j,_r=pe-Ve,Fr=ke-fr,q=qt-Ve,G=Yt-fr,st=Math.hypot(Fr,_r),yt=Math.hypot(G,q),Ft=st*Math.asin((_r*G-Fr*q)/(st*yt)),Vt=Ft/Math.sqrt(ne+Zt-pe*pe-ke*ke);Gt+=Vt,Gt=Math.min(Math.PI/2,Math.max(0,Gt))}return{x:k+re(pe,Q),y:_+re(ke,Ct)}},pointDistance:function(k,_,b,E,I,z){var B=this.nearestPoint(k,_,b,E,I,z);return Kt(B.x,B.y,I,z)},pointAt:function(k,_,b,E,I){var z=2*Math.PI*I;return{x:k+b*Math.cos(z),y:_+E*Math.sin(z)}},tangentAngle:function(k,_,b,E,I){var z=2*Math.PI*I,B=Math.atan2(E*Math.cos(z),-b*Math.sin(z));return ct(B)}};function pt(k,_,b,E,I,z,B,j){return-1*b*Math.cos(I)*Math.sin(j)-E*Math.sin(I)*Math.cos(j)}function Dt(k,_,b,E,I,z,B,j){return-1*b*Math.sin(I)*Math.sin(j)+E*Math.cos(I)*Math.cos(j)}function Jt(k,_,b){return Math.atan(-_/k*Math.tan(b))}function Ht(k,_,b){return Math.atan(_/(k*Math.tan(b)))}function At(k,_,b,E,I,z){return b*Math.cos(I)*Math.cos(z)-E*Math.sin(I)*Math.sin(z)+k}function U(k,_,b,E,I,z){return b*Math.sin(I)*Math.cos(z)+E*Math.cos(I)*Math.sin(z)+_}function C(k,_,b,E){var I=Math.atan2(E*k,b*_);return(I+Math.PI*2)%(Math.PI*2)}function F(k,_,b){return{x:k*Math.cos(b),y:_*Math.sin(b)}}function W(k,_,b){var E=Math.cos(b),I=Math.sin(b);return[k*E-_*I,k*I+_*E]}var lt={box:function(k,_,b,E,I,z,B){for(var j=Jt(b,E,I),Q=Infinity,Ct=-Infinity,qt=[z,B],Yt=-Math.PI*2;Yt<=Math.PI*2;Yt+=Math.PI){var ne=j+Yt;z<B?z<ne&&ne<B&&qt.push(ne):B<ne&&ne<z&&qt.push(ne)}for(var Yt=0;Yt<qt.length;Yt++){var Zt=At(k,_,b,E,I,qt[Yt]);Zt<Q&&(Q=Zt),Zt>Ct&&(Ct=Zt)}for(var Gt=Ht(b,E,I),pe=Infinity,ke=-Infinity,Ne=[z,B],Yt=-Math.PI*2;Yt<=Math.PI*2;Yt+=Math.PI){var Ve=Gt+Yt;z<B?z<Ve&&Ve<B&&Ne.push(Ve):B<Ve&&Ve<z&&Ne.push(Ve)}for(var Yt=0;Yt<Ne.length;Yt++){var fr=U(k,_,b,E,I,Ne[Yt]);fr<pe&&(pe=fr),fr>ke&&(ke=fr)}return{x:Q,y:pe,width:Ct-Q,height:ke-pe}},length:function(k,_,b,E,I,z,B){},nearestPoint:function(k,_,b,E,I,z,B,j,Q){var Ct=W(j-k,Q-_,-I),qt=Ct[0],Yt=Ct[1],ne=Se.nearestPoint(0,0,b,E,qt,Yt),Zt=C(b,E,ne.x,ne.y);Zt<z?ne=F(b,E,z):Zt>B&&(ne=F(b,E,B));var Gt=W(ne.x,ne.y,I);return{x:Gt[0]+k,y:Gt[1]+_}},pointDistance:function(k,_,b,E,I,z,B,j,Q){var Ct=this.nearestPoint(k,_,b,E,j,Q);return Kt(Ct.x,Ct.y,j,Q)},pointAt:function(k,_,b,E,I,z,B,j){var Q=(B-z)*j+z;return{x:At(k,_,b,E,I,Q),y:U(k,_,b,E,I,Q)}},tangentAngle:function(k,_,b,E,I,z,B,j){var Q=(B-z)*j+z,Ct=pt(k,_,b,E,I,z,B,Q),qt=Dt(k,_,b,E,I,z,B,Q);return ct(Math.atan2(qt,Ct))}};function Z(k){for(var _=0,b=[],E=0;E<k.length-1;E++){var I=k[E],z=k[E+1],B=Kt(I[0],I[1],z[0],z[1]),j={from:I,to:z,length:B};b.push(j),_+=B}return{segments:b,totalLength:_}}function nt(k){if(k.length<2)return 0;for(var _=0,b=0;b<k.length-1;b++){var E=k[b],I=k[b+1];_+=Kt(E[0],E[1],I[0],I[1])}return _}function T(k,_){if(_>1||_<0||k.length<2)return null;var b=Z(k),E=b.segments,I=b.totalLength;if(I===0)return{x:k[0][0],y:k[0][1]};for(var z=0,B=null,j=0;j<E.length;j++){var Q=E[j],Ct=Q.from,qt=Q.to,Yt=Q.length/I;if(_>=z&&_<=z+Yt){var ne=(_-z)/Yt;B=xt.pointAt(Ct[0],Ct[1],qt[0],qt[1],ne);break}z+=Yt}return B}function N(k,_){if(_>1||_<0||k.length<2)return 0;for(var b=Z(k),E=b.segments,I=b.totalLength,z=0,B=0,j=0;j<E.length;j++){var Q=E[j],Ct=Q.from,qt=Q.to,Yt=Q.length/I;if(_>=z&&_<=z+Yt){B=Math.atan2(qt[1]-Ct[1],qt[0]-Ct[0]);break}z+=Yt}return B}function O(k,_,b){for(var E=Infinity,I=0;I<k.length-1;I++){var z=k[I],B=k[I+1],j=xt.pointDistance(z[0],z[1],B[0],B[1],_,b);j<E&&(E=j)}return E}var L={box:function(k){for(var _=[],b=[],E=0;E<k.length;E++){var I=k[E];_.push(I[0]),b.push(I[1])}return Tt(_,b)},length:function(k){return nt(k)},pointAt:function(k,_){return T(k,_)},pointDistance:function(k,_,b){return O(k,_,b)},tangentAngle:function(k,_){return N(k,_)}};function tt(k){var _=k.slice(0);return k.length&&_.push(k[0]),_}var it={box:function(k){return L.box(k)},length:function(k){return nt(tt(k))},pointAt:function(k,_){return T(tt(k),_)},pointDistance:function(k,_,b){return O(tt(k),_,b)},tangentAngle:function(k,_){return N(tt(k),_)}}},41098:function(_e,ee,et){"use strict";et.d(ee,{VT:function(){return ok},x1:function(){return Vg}});var ht={};et.r(ht),et.d(ht,{assign:function(){return kn},default:function(){return Mi},defaultI18n:function(){return _a},format:function(){return $o},parse:function(){return jo},setGlobalDateI18n:function(){return Yo},setGlobalDateMasks:function(){return qo}});var dt={};et.r(dt),et.d(dt,{Arc:function(){return gx},DataMarker:function(){return Sx},DataRegion:function(){return bx},Html:function(){return Ox},Image:function(){return wx},Line:function(){return hx},Region:function(){return mx},RegionFilter:function(){return Tx},Shape:function(){return _x},Text:function(){return px}});var Kt={};et.r(Kt),et.d(Kt,{ellipsisHead:function(){return Nx},ellipsisMiddle:function(){return zx},ellipsisTail:function(){return lh},getDefault:function(){return Rx}});var kt={};et.r(kt),et.d(kt,{equidistance:function(){return fh},equidistanceWithReverseBoth:function(){return Xx},getDefault:function(){return Ux},reserveBoth:function(){return Yx},reserveFirst:function(){return Hx},reserveLast:function(){return Gx}});var Tt={};et.r(Tt),et.d(Tt,{fixedAngle:function(){return vh},getDefault:function(){return Zx},unfixedAngle:function(){return qx}});var mt={};et.r(mt),et.d(mt,{autoEllipsis:function(){return Kt},autoHide:function(){return kt},autoRotate:function(){return Tt}});var ct={};et.r(ct),et.d(ct,{Base:function(){return lu},Circle:function(){return r1},Html:function(){return a1},Line:function(){return ph}});var vt={};et.r(vt),et.d(vt,{CONTAINER_CLASS:function(){return On},CROSSHAIR_X:function(){return pu},CROSSHAIR_Y:function(){return du},LIST_CLASS:function(){return Va},LIST_ITEM_CLASS:function(){return ss},MARKER_CLASS:function(){return ls},NAME_CLASS:function(){return xh},TITLE_CLASS:function(){return Bn},VALUE_CLASS:function(){return us}});var xt={};et.r(xt),et.d(xt,{Base:function(){return cn},Circle:function(){return W2},Ellipse:function(){return q2},Image:function(){return j2},Line:function(){return J2},Marker:function(){return bS},Path:function(){return ec},Polygon:function(){return kS},Polyline:function(){return OS},Rect:function(){return zS},Text:function(){return US}});var jt={};et.r(jt),et.d(jt,{Canvas:function(){return YS},Group:function(){return $u},Shape:function(){return xt},getArcParams:function(){return Is},version:function(){return XS}});var Ot={};et.r(Ot),et.d(Ot,{Base:function(){return tn},Circle:function(){return KS},Dom:function(){return QS},Ellipse:function(){return eC},Image:function(){return nC},Line:function(){return aC},Marker:function(){return sC},Path:function(){return uC},Polygon:function(){return fC},Polyline:function(){return vC},Rect:function(){return mC},Text:function(){return bC}});var Pt={};et.r(Pt),et.d(Pt,{Canvas:function(){return XC},Group:function(){return nc},Shape:function(){return Ot},version:function(){return WC}});var gt={};et.r(gt),et.d(gt,{cluster:function(){return HD},hierarchy:function(){return Sa},pack:function(){return E0},packEnclose:function(){return w0},packSiblings:function(){return sP},partition:function(){return ly},stratify:function(){return WD},tree:function(){return JD},treemap:function(){return vy},treemapBinary:function(){return QD},treemapDice:function(){return Ao},treemapResquarify:function(){return eO},treemapSlice:function(){return Ml},treemapSliceDice:function(){return tO},treemapSquarify:function(){return hy}});var d=et(70655),f=et(41694),rt;(function(e){e.FORE="fore",e.MID="mid",e.BG="bg"})(rt||(rt={}));var J;(function(e){e.TOP="top",e.TOP_LEFT="top-left",e.TOP_RIGHT="top-right",e.RIGHT="right",e.RIGHT_TOP="right-top",e.RIGHT_BOTTOM="right-bottom",e.LEFT="left",e.LEFT_TOP="left-top",e.LEFT_BOTTOM="left-bottom",e.BOTTOM="bottom",e.BOTTOM_LEFT="bottom-left",e.BOTTOM_RIGHT="bottom-right",e.RADIUS="radius",e.CIRCLE="circle",e.NONE="none"})(J||(J={}));var St;(function(e){e.AXIS="axis",e.GRID="grid",e.LEGEND="legend",e.TOOLTIP="tooltip",e.ANNOTATION="annotation",e.SLIDER="slider",e.SCROLLBAR="scrollbar",e.OTHER="other"})(St||(St={}));var wt={FORE:3,MID:2,BG:1},X;(function(e){e.BEFORE_RENDER="beforerender",e.AFTER_RENDER="afterrender",e.BEFORE_PAINT="beforepaint",e.AFTER_PAINT="afterpaint",e.BEFORE_CHANGE_DATA="beforechangedata",e.AFTER_CHANGE_DATA="afterchangedata",e.BEFORE_CLEAR="beforeclear",e.AFTER_CLEAR="afterclear",e.BEFORE_DESTROY="beforedestroy",e.BEFORE_CHANGE_SIZE="beforechangesize",e.AFTER_CHANGE_SIZE="afterchangesize"})(X||(X={}));var at;(function(e){e.BEFORE_DRAW_ANIMATE="beforeanimate",e.AFTER_DRAW_ANIMATE="afteranimate",e.BEFORE_RENDER_LABEL="beforerenderlabel",e.AFTER_RENDER_LABEL="afterrenderlabel"})(at||(at={}));var _t;(function(e){e.MOUSE_ENTER="plot:mouseenter",e.MOUSE_DOWN="plot:mousedown",e.MOUSE_MOVE="plot:mousemove",e.MOUSE_UP="plot:mouseup",e.MOUSE_LEAVE="plot:mouseleave",e.TOUCH_START="plot:touchstart",e.TOUCH_MOVE="plot:touchmove",e.TOUCH_END="plot:touchend",e.TOUCH_CANCEL="plot:touchcancel",e.CLICK="plot:click",e.DBLCLICK="plot:dblclick",e.CONTEXTMENU="plot:contextmenu",e.LEAVE="plot:leave",e.ENTER="plot:enter"})(_t||(_t={}));var Rt;(function(e){e.ACTIVE="active",e.INACTIVE="inactive",e.SELECTED="selected",e.DEFAULT="default"})(Rt||(Rt={}));var $t=["color","shape","size"],re="_origin",Se=1,pt=1,Dt=.25,Jt={};function Ht(e){var r=Jt[e];if(!r)throw new Error("G engine '".concat(e,"' is not exist, please register it at first."));return r}function At(e,r){Jt[e]=r}var U,C,F,W;function lt(){U=document.createElement("table"),C=document.createElement("tr"),F=/^\s*<(\w+|!)[^>]*>/,W={tr:document.createElement("tbody"),tbody:U,thead:U,tfoot:U,td:C,th:C,"*":document.createElement("div")}}function Z(e){U||lt();var r=F.test(e)&&RegExp.$1;(!r||!(r in W))&&(r="*");var t=W[r];e=typeof e=="string"?e.replace(/(^\s*)|(\s*$)/g,""):e,t.innerHTML=""+e;var n=t.childNodes[0];return n&&t.contains(n)&&t.removeChild(n),n}function nt(e,r){if(e)for(var t in r)r.hasOwnProperty(t)&&(e.style[t]=r[t]);return e}function T(e){var r=getComputedStyle(e);return{width:(e.clientWidth||parseInt(r.width,10))-parseInt(r.paddingLeft,10)-parseInt(r.paddingRight,10),height:(e.clientHeight||parseInt(r.height,10))-parseInt(r.paddingTop,10)-parseInt(r.paddingBottom,10)}}function N(e){return typeof e=="number"&&!isNaN(e)}function O(e,r,t,n){var i=t,a=n;if(r){var o=T(e);i=o.width?o.width:i,a=o.height?o.height:a}return{width:Math.max(N(i)?i:Se,Se),height:Math.max(N(a)?a:pt,pt)}}function L(e){var r=e.parentNode;r&&r.removeChild(e)}var tt=et(90494),it=function(e){(0,d.ZT)(r,e);function r(t){var n=e.call(this)||this;n.destroyed=!1;var i=t.visible,a=i===void 0?!0:i;return n.visible=a,n}return r.prototype.show=function(){var t=this.visible;t||this.changeVisible(!0)},r.prototype.hide=function(){var t=this.visible;t&&this.changeVisible(!1)},r.prototype.destroy=function(){this.off(),this.destroyed=!0},r.prototype.changeVisible=function(t){this.visible!==t&&(this.visible=t)},r}(tt.Z),k=it,_=et(98190),b=0,E=1/2,I=1/2,z=.05,B=function(){function e(r){var t=r.xField,n=r.yField,i=r.adjustNames,a=i===void 0?["x","y"]:i,o=r.dimValuesMap;this.adjustNames=a,this.xField=t,this.yField=n,this.dimValuesMap=o}return e.prototype.isAdjust=function(r){return this.adjustNames.indexOf(r)>=0},e.prototype.getAdjustRange=function(r,t,n){var i=this.yField,a=n.indexOf(t),o=n.length,s,l;return!i&&this.isAdjust("y")?(s=0,l=1):o>1?(s=n[a===0?0:a-1],l=n[a===o-1?o-1:a+1],a!==0?s+=(t-s)/2:s-=(l-t)/2,a!==o-1?l-=(l-t)/2:l+=(t-n[o-2])/2):(s=t===0?0:t-.5,l=t===0?1:t+.5),{pre:s,next:l}},e.prototype.adjustData=function(r,t){var n=this,i=this.getDimValues(t);f.S6(r,function(a,o){f.S6(i,function(s,l){n.adjustDim(l,s,a,o)})})},e.prototype.groupData=function(r,t){return f.S6(r,function(n){n[t]===void 0&&(n[t]=b)}),f.vM(r,t)},e.prototype.adjustDim=function(r,t,n,i){},e.prototype.getDimValues=function(r){var t=this,n=t.xField,i=t.yField,a=f.f0({},this.dimValuesMap),o=[];if(n&&this.isAdjust("x")&&o.push(n),i&&this.isAdjust("y")&&o.push(i),o.forEach(function(l){a&&a[l]||(a[l]=f.I(r,l).sort(function(u,c){return u-c}))}),!i&&this.isAdjust("y")){var s="y";a[s]=[b,1]}return a},e}(),j=B,Q={},Ct=function(e){return Q[e.toLowerCase()]},qt=function(e,r){if(Ct(e))throw new Error("Adjust type '"+e+"' existed.");Q[e.toLowerCase()]=r};/*! *****************************************************************************
  18. Copyright (c) Microsoft Corporation.
  19. Permission to use, copy, modify, and/or distribute this software for any
  20. purpose with or without fee is hereby granted.
  21. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  22. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  23. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  24. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  25. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  26. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  27. PERFORMANCE OF THIS SOFTWARE.
  28. ***************************************************************************** */var Yt=function(r,t){return Yt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},Yt(r,t)};function ne(e,r){Yt(e,r);function t(){this.constructor=e}e.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}var Zt=function(){return Zt=Object.assign||function(t){for(var n,i=1,a=arguments.length;i<a;i++){n=arguments[i];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Zt.apply(this,arguments)};function Gt(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]]);return t}function pe(e,r,t,n){var i=arguments.length,a=i<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,t):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,r,t,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(r,t,a):o(r,t))||a);return i>3&&a&&Object.defineProperty(r,t,a),a}function ke(e,r){return function(t,n){r(t,n,e)}}function Ne(e,r){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,r)}function Ve(e,r,t,n){function i(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(c){try{u(n.next(c))}catch(h){o(h)}}function l(c){try{u(n.throw(c))}catch(h){o(h)}}function u(c){c.done?a(c.value):i(c.value).then(s,l)}u((n=n.apply(e,r||[])).next())})}function fr(e,r){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(u){return function(c){return l([u,c])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,i&&(a=u[0]&2?i.return:u[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;switch(i=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,i=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){t.label=u[1];break}if(u[0]===6&&t.label<a[1]){t.label=a[1],a=u;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(u);break}a[2]&&t.ops.pop(),t.trys.pop();continue}u=r.call(e,t)}catch(c){u=[6,c],i=0}finally{n=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function _r(e,r,t,n){n===void 0&&(n=t),e[n]=r[t]}function Fr(e,r){for(var t in e)t!=="default"&&!r.hasOwnProperty(t)&&(r[t]=e[t])}function q(e){var r=typeof Symbol=="function"&&Symbol.iterator,t=r&&e[r],n=0;if(t)return t.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function G(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),i,a=[],o;try{for(;(r===void 0||r-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(o)throw o.error}}return a}function st(){for(var e=[],r=0;r<arguments.length;r++)e=e.concat(G(arguments[r]));return e}function yt(){for(var e=0,r=0,t=arguments.length;r<t;r++)e+=arguments[r].length;for(var n=Array(e),i=0,r=0;r<t;r++)for(var a=arguments[r],o=0,s=a.length;o<s;o++,i++)n[i]=a[o];return n}function Ft(e){return this instanceof Ft?(this.v=e,this):new Ft(e)}function Vt(e,r,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=t.apply(e,r||[]),i,a=[];return i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i;function o(v){n[v]&&(i[v]=function(p){return new Promise(function(g,y){a.push([v,p,g,y])>1||s(v,p)})})}function s(v,p){try{l(n[v](p))}catch(g){h(a[0][3],g)}}function l(v){v.value instanceof Ft?Promise.resolve(v.value.v).then(u,c):h(a[0][2],v)}function u(v){s("next",v)}function c(v){s("throw",v)}function h(v,p){v(p),a.shift(),a.length&&s(a[0][0],a[0][1])}}function Nt(e){var r,t;return r={},n("next"),n("throw",function(i){throw i}),n("return"),r[Symbol.iterator]=function(){return this},r;function n(i,a){r[i]=e[i]?function(o){return(t=!t)?{value:Ft(e[i](o)),done:i==="return"}:a?a(o):o}:a}}function Xt(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=e[Symbol.asyncIterator],t;return r?r.call(e):(e=typeof q=="function"?q(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(a){t[a]=e[a]&&function(o){return new Promise(function(s,l){o=e[a](o),i(s,l,o.done,o.value)})}}function i(a,o,s,l){Promise.resolve(l).then(function(u){a({value:u,done:s})},o)}}function Et(e,r){return Object.defineProperty?Object.defineProperty(e,"raw",{value:r}):e.raw=r,e}function te(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var t in e)Object.hasOwnProperty.call(e,t)&&(r[t]=e[t]);return r.default=e,r}function Ut(e){return e&&e.__esModule?e:{default:e}}function de(e,r){if(!r.has(e))throw new TypeError("attempted to get private field on non-instance");return r.get(e)}function xe(e,r,t){if(!r.has(e))throw new TypeError("attempted to set private field on non-instance");return r.set(e,t),t}var se=function(e){ne(r,e);function r(t){var n=e.call(this,t)||this;n.cacheMap={},n.adjustDataArray=[],n.mergeData=[];var i=t.marginRatio,a=i===void 0?E:i,o=t.dodgeRatio,s=o===void 0?I:o,l=t.dodgeBy,u=t.intervalPadding,c=t.dodgePadding,h=t.xDimensionLength,v=t.groupNum,p=t.defaultSize,g=t.maxColumnWidth,y=t.minColumnWidth,x=t.columnWidthRatio,m=t.customOffset;return n.marginRatio=a,n.dodgeRatio=s,n.dodgeBy=l,n.intervalPadding=u,n.dodgePadding=c,n.xDimensionLegenth=h,n.groupNum=v,n.defaultSize=p,n.maxColumnWidth=g,n.minColumnWidth=y,n.columnWidthRatio=x,n.customOffset=m,n}return r.prototype.process=function(t){var n=f.d9(t),i=f.xH(n),a=this.dodgeBy,o=a?f.ru(i,a):n;return this.cacheMap={},this.adjustDataArray=o,this.mergeData=i,this.adjustData(o,i),this.adjustDataArray=[],this.mergeData=[],n},r.prototype.adjustDim=function(t,n,i,a){var o=this,s=this.customOffset,l=this.getDistribution(t),u=this.groupData(i,t);return f.S6(u,function(c,h){var v;n.length===1?v={pre:n[0]-1,next:n[0]+1}:v=o.getAdjustRange(t,parseFloat(h),n),f.S6(c,function(p){var g=p[t],y=l[g],x=y.indexOf(a);if(f.UM(s))p[t]=o.getDodgeOffset(v,x,y.length);else{var m=v.pre,w=v.next;p[t]=f.mf(s)?s(p,v):(m+w)/2+s}})}),[]},r.prototype.getDodgeOffset=function(t,n,i){var a=this,o=a.dodgeRatio,s=a.marginRatio,l=a.intervalPadding,u=a.dodgePadding,c=t.pre,h=t.next,v=h-c,p;if(!f.UM(l)&&f.UM(u)&&l>=0){var g=this.getIntervalOnlyOffset(i,n);p=c+g}else if(!f.UM(u)&&f.UM(l)&&u>=0){var g=this.getDodgeOnlyOffset(i,n);p=c+g}else if(!f.UM(l)&&!f.UM(u)&&l>=0&&u>=0){var g=this.getIntervalAndDodgeOffset(i,n);p=c+g}else{var y=v*o/i,x=s*y,g=1/2*(v-i*y-(i-1)*x)+((n+1)*y+n*x)-1/2*y-1/2*v;p=(c+h)/2+g}return p},r.prototype.getIntervalOnlyOffset=function(t,n){var i=this,a=i.defaultSize,o=i.intervalPadding,s=i.xDimensionLegenth,l=i.groupNum,u=i.dodgeRatio,c=i.maxColumnWidth,h=i.minColumnWidth,v=i.columnWidthRatio,p=o/s,g=(1-(l-1)*p)/l*u/(t-1),y=((1-p*(l-1))/l-g*(t-1))/t;if(y=f.UM(v)?y:1/l/t*v,!f.UM(c)){var x=c/s;y=Math.min(y,x)}if(!f.UM(h)){var m=h/s;y=Math.max(y,m)}y=a?a/s:y,g=((1-(l-1)*p)/l-t*y)/(t-1);var w=((1/2+n)*y+n*g+1/2*p)*l-p/2;return w},r.prototype.getDodgeOnlyOffset=function(t,n){var i=this,a=i.defaultSize,o=i.dodgePadding,s=i.xDimensionLegenth,l=i.groupNum,u=i.marginRatio,c=i.maxColumnWidth,h=i.minColumnWidth,v=i.columnWidthRatio,p=o/s,g=1*u/(l-1),y=((1-g*(l-1))/l-p*(t-1))/t;if(y=v?1/l/t*v:y,!f.UM(c)){var x=c/s;y=Math.min(y,x)}if(!f.UM(h)){var m=h/s;y=Math.max(y,m)}y=a?a/s:y,g=(1-(y*t+p*(t-1))*l)/(l-1);var w=((1/2+n)*y+n*p+1/2*g)*l-g/2;return w},r.prototype.getIntervalAndDodgeOffset=function(t,n){var i=this,a=i.intervalPadding,o=i.dodgePadding,s=i.xDimensionLegenth,l=i.groupNum,u=a/s,c=o/s,h=((1-u*(l-1))/l-c*(t-1))/t,v=((1/2+n)*h+n*c+1/2*u)*l-u/2;return v},r.prototype.getDistribution=function(t){var n=this.adjustDataArray,i=this.cacheMap,a=i[t];return a||(a={},f.S6(n,function(o,s){var l=f.I(o,t);l.length||l.push(0),f.S6(l,function(u){a[u]||(a[u]=[]),a[u].push(s)})}),i[t]=a),a},r}(j),me=se;function Ce(e,r){return(r-e)*Math.random()+e}var Me=function(e){ne(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.process=function(t){var n=f.d9(t),i=f.xH(n);return this.adjustData(n,i),n},r.prototype.adjustDim=function(t,n,i){var a=this,o=this.groupData(i,t);return f.S6(o,function(s,l){return a.adjustGroup(s,t,parseFloat(l),n)})},r.prototype.getAdjustOffset=function(t){var n=t.pre,i=t.next,a=(i-n)*z;return Ce(n+a,i-a)},r.prototype.adjustGroup=function(t,n,i,a){var o=this,s=this.getAdjustRange(n,i,a);return f.S6(t,function(l){l[n]=o.getAdjustOffset(s)}),t},r}(j),ae=Me,Ie=f.Ct,Le=function(e){ne(r,e);function r(t){var n=e.call(this,t)||this,i=t.adjustNames,a=i===void 0?["y"]:i,o=t.height,s=o===void 0?NaN:o,l=t.size,u=l===void 0?10:l,c=t.reverseOrder,h=c===void 0?!1:c;return n.adjustNames=a,n.height=s,n.size=u,n.reverseOrder=h,n}return r.prototype.process=function(t){var n=this,i=n.yField,a=n.reverseOrder,o=i?this.processStack(t):this.processOneDimStack(t);return a?this.reverse(o):o},r.prototype.reverse=function(t){return t.slice(0).reverse()},r.prototype.processStack=function(t){var n=this,i=n.xField,a=n.yField,o=n.reverseOrder,s=o?this.reverse(t):t,l=new Ie,u=new Ie;return s.map(function(c){return c.map(function(h){var v,p=f.U2(h,i,0),g=f.U2(h,[a]),y=p.toString();if(g=f.kJ(g)?g[1]:g,!f.UM(g)){var x=g>=0?l:u;x.has(y)||x.set(y,0);var m=x.get(y),w=g+m;return x.set(y,w),Zt(Zt({},h),(v={},v[a]=[m,w],v))}return h})})},r.prototype.processOneDimStack=function(t){var n=this,i=this,a=i.xField,o=i.height,s=i.reverseOrder,l="y",u=s?this.reverse(t):t,c=new Ie;return u.map(function(h){return h.map(function(v){var p,g=n.size,y=v[a],x=g*2/o;c.has(y)||c.set(y,x/2);var m=c.get(y);return c.set(y,m+x),Zt(Zt({},v),(p={},p[l]=m,p))})})},r}(j),He=Le,ze=function(e){ne(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.process=function(t){var n=f.xH(t),i=this,a=i.xField,o=i.yField,s=this.getXValuesMaxMap(n),l=Math.max.apply(Math,Object.keys(s).map(function(u){return s[u]}));return f.UI(t,function(u){return f.UI(u,function(c){var h,v,p=c[o],g=c[a];if(f.kJ(p)){var y=(l-s[g])/2;return Zt(Zt({},c),(h={},h[o]=f.UI(p,function(m){return y+m}),h))}var x=(l-p)/2;return Zt(Zt({},c),(v={},v[o]=[x,p+x],v))})})},r.prototype.getXValuesMaxMap=function(t){var n=this,i=this,a=i.xField,o=i.yField,s=f.vM(t,function(l){return l[a]});return f.Q8(s,function(l){return n.getDimMaxValue(l,o)})},r.prototype.getDimMaxValue=function(t,n){var i=f.UI(t,function(o){return f.U2(o,n,[])}),a=f.xH(i);return Math.max.apply(Math,a)},r}(j),qe=ze;qt("Dodge",me),qt("Jitter",ae),qt("Stack",He),qt("Symmetric",qe);var je=function(e,r){return(0,f.HD)(r)?r:e.invert(e.scale(r))},mr=function(){function e(r){this.names=[],this.scales=[],this.linear=!1,this.values=[],this.callback=function(){return[]},this._parseCfg(r)}return e.prototype.mapping=function(){for(var r=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=t.map(function(a,o){return r._toOriginParam(a,r.scales[o])});return this.callback.apply(this,i)},e.prototype.getLinearValue=function(r){var t=this.values.length-1,n=Math.floor(t*r),i=t*r-n,a=this.values[n],o=n===t?a:this.values[n+1];return a+(o-a)*i},e.prototype.getNames=function(){for(var r=this.scales,t=this.names,n=Math.min(r.length,t.length),i=[],a=0;a<n;a+=1)i.push(t[a]);return i},e.prototype.getFields=function(){return this.scales.map(function(r){return r.field})},e.prototype.getScale=function(r){return this.scales[this.names.indexOf(r)]},e.prototype.defaultCallback=function(){for(var r=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t.length===0?this.values:t.map(function(i,a){var o=r.scales[a];return o.type==="identity"?o.values[0]:r._getAttributeValue(o,i)})},e.prototype._parseCfg=function(r){var t=this,n=r.type,i=n===void 0?"base":n,a=r.names,o=a===void 0?[]:a,s=r.scales,l=s===void 0?[]:s,u=r.values,c=u===void 0?[]:u,h=r.callback;this.type=i,this.scales=l,this.values=c,this.names=o,this.callback=function(){for(var v=[],p=0;p<arguments.length;p++)v[p]=arguments[p];if(h){var g=h.apply(void 0,v);if(!(0,f.UM)(g))return[g]}return t.defaultCallback.apply(t,v)}},e.prototype._getAttributeValue=function(r,t){if(r.isCategory&&!this.linear){var n=r.translate(t);return this.values[n%this.values.length]}var i=r.scale(t);return this.getLinearValue(i)},e.prototype._toOriginParam=function(r,t){return t.isLinear?r:(0,f.kJ)(r)?r.map(function(n){return je(t,n)}):je(t,r)},e}(),br=mr;/*! *****************************************************************************
  29. Copyright (c) Microsoft Corporation.
  30. Permission to use, copy, modify, and/or distribute this software for any
  31. purpose with or without fee is hereby granted.
  32. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  33. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  34. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  35. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  36. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  37. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  38. PERFORMANCE OF THIS SOFTWARE.
  39. ***************************************************************************** */var xr=function(r,t){return xr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},xr(r,t)};function Dr(e,r){xr(e,r);function t(){this.constructor=e}e.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}var an=function(){return an=Object.assign||function(t){for(var n,i=1,a=arguments.length;i<a;i++){n=arguments[i];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},an.apply(this,arguments)};function In(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]]);return t}function mi(e,r,t,n){var i=arguments.length,a=i<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,t):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,r,t,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(r,t,a):o(r,t))||a);return i>3&&a&&Object.defineProperty(r,t,a),a}function on(e,r){return function(t,n){r(t,n,e)}}function vn(e,r){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,r)}function pn(e,r,t,n){function i(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(c){try{u(n.next(c))}catch(h){o(h)}}function l(c){try{u(n.throw(c))}catch(h){o(h)}}function u(c){c.done?a(c.value):i(c.value).then(s,l)}u((n=n.apply(e,r||[])).next())})}function dn(e,r){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(u){return function(c){return l([u,c])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,i&&(a=u[0]&2?i.return:u[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;switch(i=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,i=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){t.label=u[1];break}if(u[0]===6&&t.label<a[1]){t.label=a[1],a=u;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(u);break}a[2]&&t.ops.pop(),t.trys.pop();continue}u=r.call(e,t)}catch(c){u=[6,c],i=0}finally{n=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function Zn(e,r,t,n){n===void 0&&(n=t),e[n]=r[t]}function xi(e,r){for(var t in e)t!=="default"&&!r.hasOwnProperty(t)&&(r[t]=e[t])}function qn(e){var r=typeof Symbol=="function"&&Symbol.iterator,t=r&&e[r],n=0;if(t)return t.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function wi(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),i,a=[],o;try{for(;(r===void 0||r-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(o)throw o.error}}return a}function Po(){for(var e=[],r=0;r<arguments.length;r++)e=e.concat(wi(arguments[r]));return e}function ko(){for(var e=0,r=0,t=arguments.length;r<t;r++)e+=arguments[r].length;for(var n=Array(e),i=0,r=0;r<t;r++)for(var a=arguments[r],o=0,s=a.length;o<s;o++,i++)n[i]=a[o];return n}function $n(e){return this instanceof $n?(this.v=e,this):new $n(e)}function H(e,r,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=t.apply(e,r||[]),i,a=[];return i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i;function o(v){n[v]&&(i[v]=function(p){return new Promise(function(g,y){a.push([v,p,g,y])>1||s(v,p)})})}function s(v,p){try{l(n[v](p))}catch(g){h(a[0][3],g)}}function l(v){v.value instanceof $n?Promise.resolve(v.value.v).then(u,c):h(a[0][2],v)}function u(v){s("next",v)}function c(v){s("throw",v)}function h(v,p){v(p),a.shift(),a.length&&s(a[0][0],a[0][1])}}function R(e){var r,t;return r={},n("next"),n("throw",function(i){throw i}),n("return"),r[Symbol.iterator]=function(){return this},r;function n(i,a){r[i]=e[i]?function(o){return(t=!t)?{value:$n(e[i](o)),done:i==="return"}:a?a(o):o}:a}}function Y(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=e[Symbol.asyncIterator],t;return r?r.call(e):(e=typeof qn=="function"?qn(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(a){t[a]=e[a]&&function(o){return new Promise(function(s,l){o=e[a](o),i(s,l,o.done,o.value)})}}function i(a,o,s,l){Promise.resolve(l).then(function(u){a({value:u,done:s})},o)}}function ut(e,r){return Object.defineProperty?Object.defineProperty(e,"raw",{value:r}):e.raw=r,e}function Bt(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var t in e)Object.hasOwnProperty.call(e,t)&&(r[t]=e[t]);return r.default=e,r}function oe(e){return e&&e.__esModule?e:{default:e}}function ce(e,r){if(!r.has(e))throw new TypeError("attempted to get private field on non-instance");return r.get(e)}function le(e,r,t){if(!r.has(e))throw new TypeError("attempted to set private field on non-instance");return r.set(e,t),t}var De=/rgba?\(([\s.,0-9]+)\)/,ir=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,wr=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,Or=/[\d.]+:(#[^\s]+|[^\)]+\))/gi,gn=function(e){return/^[r,R,L,l]{1}[\s]*\(/.test(e)},Ln=function(){var e=document.createElement("i");return e.title="Web Colour Picker",e.style.display="none",document.body.appendChild(e),e},Yr=function(e,r,t,n){return e[n]+(r[n]-e[n])*t};function qi(e){return"#"+Do(e[0])+Do(e[1])+Do(e[2])}var Ea=function(e){return[parseInt(e.substr(1,2),16),parseInt(e.substr(3,2),16),parseInt(e.substr(5,2),16)]},Do=function(e){var r=Math.round(e).toString(16);return r.length===1?"0"+r:r},Fl=function(e,r){var t=isNaN(Number(r))||r<0?0:r>1?1:Number(r),n=e.length-1,i=Math.floor(n*t),a=n*t-i,o=e[i],s=i===n?o:e[i+1];return qi([Yr(o,s,a,0),Yr(o,s,a,1),Yr(o,s,a,2)])},$i,Oo=function(e){if(e[0]==="#"&&e.length===7)return e;$i||($i=Ln()),$i.style.color=e;var r=document.defaultView.getComputedStyle($i,"").getPropertyValue("color"),t=De.exec(r),n=t[1].split(/\s*,\s*/).map(function(i){return Number(i)});return r=qi(n),r},Il=function(e){var r=(0,f.HD)(e)?e.split("-"):e,t=(0,f.UI)(r,function(n){return Ea(n.indexOf("#")===-1?Oo(n):n)});return function(n){return Fl(t,n)}},Of=function(e){if(gn(e)){var r,t=void 0;if(e[0]==="l"){var n=ir.exec(e),i=+n[1]+90;t=n[2],r="linear-gradient("+i+"deg, "}else if(e[0]==="r"){r="radial-gradient(";var n=wr.exec(e);t=n[4]}var a=t.match(Or);return(0,f.S6)(a,function(o,s){var l=o.split(":");r+=l[1]+" "+l[0]*100+"%",s!==a.length-1&&(r+=", ")}),r+=")",r}return e},Pn={rgb2arr:Ea,gradient:Il,toRGB:(0,f.HP)(Oo),toCSSGradient:Of},Bf=function(e){Dr(r,e);function r(t){var n=e.call(this,t)||this;return n.type="color",n.names=["color"],(0,f.HD)(n.values)&&(n.linear=!0),n.gradient=Pn.gradient(n.values),n}return r.prototype.getLinearValue=function(t){return this.gradient(t)},r}(br),Ll=Bf,Pl=function(e){Dr(r,e);function r(t){var n=e.call(this,t)||this;return n.type="opacity",n.names=["opacity"],n}return r}(br),kl=Pl,Dl=function(e){Dr(r,e);function r(t){var n=e.call(this,t)||this;return n.names=["x","y"],n.type="position",n}return r.prototype.mapping=function(t,n){var i=this.scales,a=i[0],o=i[1];return(0,f.UM)(t)||(0,f.UM)(n)?[]:[(0,f.kJ)(t)?t.map(function(s){return a.scale(s)}):a.scale(t),(0,f.kJ)(n)?n.map(function(s){return o.scale(s)}):o.scale(n)]},r}(br),Ol=Dl,Rf=function(e){Dr(r,e);function r(t){var n=e.call(this,t)||this;return n.type="shape",n.names=["shape"],n}return r.prototype.getLinearValue=function(t){var n=Math.round((this.values.length-1)*t);return this.values[n]},r}(br),Nf=Rf,Bl=function(e){Dr(r,e);function r(t){var n=e.call(this,t)||this;return n.type="size",n.names=["size"],n}return r}(br),Rl=Bl,Bo={};function Nl(e){return Bo[e]}function Kr(e,r){Bo[e]=r}var zl=function(){function e(r){this.type="base",this.isCategory=!1,this.isLinear=!1,this.isContinuous=!1,this.isIdentity=!1,this.values=[],this.range=[0,1],this.ticks=[],this.__cfg__=r,this.initCfg(),this.init()}return e.prototype.translate=function(r){return r},e.prototype.change=function(r){(0,f.f0)(this.__cfg__,r),this.init()},e.prototype.clone=function(){return this.constructor(this.__cfg__)},e.prototype.getTicks=function(){var r=this;return(0,f.UI)(this.ticks,function(t,n){return(0,f.Kn)(t)?t:{text:r.getText(t,n),tickValue:t,value:r.scale(t)}})},e.prototype.getText=function(r,t){var n=this.formatter,i=n?n(r,t):r;return(0,f.UM)(i)||!(0,f.mf)(i.toString)?"":i.toString()},e.prototype.getConfig=function(r){return this.__cfg__[r]},e.prototype.init=function(){(0,f.f0)(this,this.__cfg__),this.setDomain(),(0,f.xb)(this.getConfig("ticks"))&&(this.ticks=this.calculateTicks())},e.prototype.initCfg=function(){},e.prototype.setDomain=function(){},e.prototype.calculateTicks=function(){var r=this.tickMethod,t=[];if((0,f.HD)(r)){var n=Nl(r);if(!n)throw new Error("There is no method to to calculate ticks!");t=n(this)}else(0,f.mf)(r)&&(t=r(this));return t},e.prototype.rangeMin=function(){return this.range[0]},e.prototype.rangeMax=function(){return this.range[1]},e.prototype.calcPercent=function(r,t,n){return(0,f.hj)(r)?(r-t)/(n-t):NaN},e.prototype.calcValue=function(r,t,n){return t+r*(n-t)},e}(),Ro=zl,zf=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="cat",t.isCategory=!0,t}return r.prototype.buildIndexMap=function(){if(!this.translateIndexMap){this.translateIndexMap=new Map;for(var t=0;t<this.values.length;t++)this.translateIndexMap.set(this.values[t],t)}},r.prototype.translate=function(t){this.buildIndexMap();var n=this.translateIndexMap.get(t);return n===void 0&&(n=(0,f.hj)(t)?t:NaN),n},r.prototype.scale=function(t){var n=this.translate(t),i=this.calcPercent(n,this.min,this.max);return this.calcValue(i,this.rangeMin(),this.rangeMax())},r.prototype.invert=function(t){var n=this.max-this.min,i=this.calcPercent(t,this.rangeMin(),this.rangeMax()),a=Math.round(n*i)+this.min;return a<this.min||a>this.max?NaN:this.values[a]},r.prototype.getText=function(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var a=t;return(0,f.hj)(t)&&!this.values.includes(t)&&(a=this.values[a]),e.prototype.getText.apply(this,(0,d.pr)([a],n))},r.prototype.initCfg=function(){this.tickMethod="cat"},r.prototype.setDomain=function(){if((0,f.UM)(this.getConfig("min"))&&(this.min=0),(0,f.UM)(this.getConfig("max"))){var t=this.values.length;this.max=t>1?t-1:t}this.translateIndexMap&&(this.translateIndexMap=void 0)},r}(Ro),jn=zf,No=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,yn="\\d\\d?",mn="\\d\\d",zo="\\d{3}",Vl="\\d{4}",Kn="[^\\s]+",Vo=/\[([^]*?)\]/gm;function Uo(e,r){for(var t=[],n=0,i=e.length;n<i;n++)t.push(e[n].substr(0,r));return t}var Ul=function(e){return function(r,t){var n=t[e].map(function(a){return a.toLowerCase()}),i=n.indexOf(r.toLowerCase());return i>-1?i:null}};function kn(e){for(var r=[],t=1;t<arguments.length;t++)r[t-1]=arguments[t];for(var n=0,i=r;n<i.length;n++){var a=i[n];for(var o in a)e[o]=a[o]}return e}var Ho=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Go=["January","February","March","April","May","June","July","August","September","October","November","December"],Hl=Uo(Go,3),Gl=Uo(Ho,3),_a={dayNamesShort:Gl,dayNames:Ho,monthNamesShort:Hl,monthNames:Go,amPm:["am","pm"],DoFn:function(e){return e+["th","st","nd","rd"][e%10>3?0:(e-e%10!=10?1:0)*e%10]}},Jn=kn({},_a),Yo=function(e){return Jn=kn(Jn,e)},Yl=function(e){return e.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},Ir=function(e,r){for(r===void 0&&(r=2),e=String(e);e.length<r;)e="0"+e;return e},Xl={D:function(e){return String(e.getDate())},DD:function(e){return Ir(e.getDate())},Do:function(e,r){return r.DoFn(e.getDate())},d:function(e){return String(e.getDay())},dd:function(e){return Ir(e.getDay())},ddd:function(e,r){return r.dayNamesShort[e.getDay()]},dddd:function(e,r){return r.dayNames[e.getDay()]},M:function(e){return String(e.getMonth()+1)},MM:function(e){return Ir(e.getMonth()+1)},MMM:function(e,r){return r.monthNamesShort[e.getMonth()]},MMMM:function(e,r){return r.monthNames[e.getMonth()]},YY:function(e){return Ir(String(e.getFullYear()),4).substr(2)},YYYY:function(e){return Ir(e.getFullYear(),4)},h:function(e){return String(e.getHours()%12||12)},hh:function(e){return Ir(e.getHours()%12||12)},H:function(e){return String(e.getHours())},HH:function(e){return Ir(e.getHours())},m:function(e){return String(e.getMinutes())},mm:function(e){return Ir(e.getMinutes())},s:function(e){return String(e.getSeconds())},ss:function(e){return Ir(e.getSeconds())},S:function(e){return String(Math.round(e.getMilliseconds()/100))},SS:function(e){return Ir(Math.round(e.getMilliseconds()/10),2)},SSS:function(e){return Ir(e.getMilliseconds(),3)},a:function(e,r){return e.getHours()<12?r.amPm[0]:r.amPm[1]},A:function(e,r){return e.getHours()<12?r.amPm[0].toUpperCase():r.amPm[1].toUpperCase()},ZZ:function(e){var r=e.getTimezoneOffset();return(r>0?"-":"+")+Ir(Math.floor(Math.abs(r)/60)*100+Math.abs(r)%60,4)},Z:function(e){var r=e.getTimezoneOffset();return(r>0?"-":"+")+Ir(Math.floor(Math.abs(r)/60),2)+":"+Ir(Math.abs(r)%60,2)}},Xo=function(e){return+e-1},Wo=[null,yn],ji=[null,Kn],Fa=["isPm",Kn,function(e,r){var t=e.toLowerCase();return t===r.amPm[0]?0:t===r.amPm[1]?1:null}],Zo=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(e){var r=(e+"").match(/([+-]|\d\d)/gi);if(r){var t=+r[1]*60+parseInt(r[2],10);return r[0]==="+"?t:-t}return 0}],Wl={D:["day",yn],DD:["day",mn],Do:["day",yn+Kn,function(e){return parseInt(e,10)}],M:["month",yn,Xo],MM:["month",mn,Xo],YY:["year",mn,function(e){var r=new Date,t=+(""+r.getFullYear()).substr(0,2);return+(""+(+e>68?t-1:t)+e)}],h:["hour",yn,void 0,"isPm"],hh:["hour",mn,void 0,"isPm"],H:["hour",yn],HH:["hour",mn],m:["minute",yn],mm:["minute",mn],s:["second",yn],ss:["second",mn],YYYY:["year",Vl],S:["millisecond","\\d",function(e){return+e*100}],SS:["millisecond",mn,function(e){return+e*10}],SSS:["millisecond",zo],d:Wo,dd:Wo,ddd:ji,dddd:ji,MMM:["month",Kn,Ul("monthNamesShort")],MMMM:["month",Kn,Ul("monthNames")],a:Fa,A:Fa,ZZ:Zo,Z:Zo},Ki={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},qo=function(e){return kn(Ki,e)},$o=function(e,r,t){if(r===void 0&&(r=Ki.default),t===void 0&&(t={}),typeof e=="number"&&(e=new Date(e)),Object.prototype.toString.call(e)!=="[object Date]"||isNaN(e.getTime()))throw new Error("Invalid Date pass to format");r=Ki[r]||r;var n=[];r=r.replace(Vo,function(a,o){return n.push(o),"@@@"});var i=kn(kn({},Jn),t);return r=r.replace(No,function(a){return Xl[a](e,i)}),r.replace(/@@@/g,function(){return n.shift()})};function jo(e,r,t){if(t===void 0&&(t={}),typeof r!="string")throw new Error("Invalid format in fecha parse");if(r=Ki[r]||r,e.length>1e3)return null;var n=new Date,i={year:n.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},a=[],o=[],s=r.replace(Vo,function(S,A){return o.push(Yl(A)),"@@@"}),l={},u={};s=Yl(s).replace(No,function(S){var A=Wl[S],D=A[0],V=A[1],K=A[3];if(l[D])throw new Error("Invalid format. "+D+" specified twice in format");return l[D]=!0,K&&(u[K]=!0),a.push(A),"("+V+")"}),Object.keys(u).forEach(function(S){if(!l[S])throw new Error("Invalid format. "+S+" is required in specified format")}),s=s.replace(/@@@/g,function(){return o.shift()});var c=e.match(new RegExp(s,"i"));if(!c)return null;for(var h=kn(kn({},Jn),t),v=1;v<c.length;v++){var p=a[v-1],g=p[0],y=p[2],x=y?y(c[v],h):+c[v];if(x==null)return null;i[g]=x}i.isPm===1&&i.hour!=null&&+i.hour!=12?i.hour=+i.hour+12:i.isPm===0&&+i.hour==12&&(i.hour=0);var m;if(i.timezoneOffset==null){m=new Date(i.year,i.month,i.day,i.hour,i.minute,i.second,i.millisecond);for(var w=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],v=0,M=w.length;v<M;v++)if(l[w[v][0]]&&i[w[v][0]]!==m[w[v][1]]())return null}else if(m=new Date(Date.UTC(i.year,i.month,i.day,i.hour,i.minute-i.timezoneOffset,i.second,i.millisecond)),i.month>11||i.month<0||i.day>31||i.day<1||i.hour>23||i.hour<0||i.minute>59||i.minute<0||i.second>59||i.second<0)return null;return m}var Zl={format:$o,parse:jo,defaultI18n:_a,setGlobalDateI18n:Yo,setGlobalDateMasks:qo},Mi=Zl;function ql(e){return function(r,t,n,i){for(var a=(0,f.UM)(n)?0:n,o=(0,f.UM)(i)?r.length:i;a<o;){var s=a+o>>>1;e(r[s])>t?o=s:a=s+1}return a}}var Ko="format";function Jo(e,r){var t=ht[Ko]||Mi[Ko];return t(e,r)}function Ji(e){return(0,f.HD)(e)&&(e.indexOf("T")>0?e=new Date(e).getTime():e=new Date(e.replace(/-/gi,"/")).getTime()),(0,f.J_)(e)&&(e=e.getTime()),e}var Lr=1e3,Jr=60*Lr,Dn=60*Jr,sn=24*Dn,Si=sn*31,P=sn*365,$=[["HH:mm:ss",Lr],["HH:mm:ss",Lr*10],["HH:mm:ss",Lr*30],["HH:mm",Jr],["HH:mm",Jr*10],["HH:mm",Jr*30],["HH",Dn],["HH",Dn*6],["HH",Dn*12],["YYYY-MM-DD",sn],["YYYY-MM-DD",sn*4],["YYYY-WW",sn*7],["YYYY-MM",Si],["YYYY-MM",Si*4],["YYYY-MM",Si*6],["YYYY",sn*380]];function ft(e,r,t){var n=(r-e)/t,i=ql(function(o){return o[1]})($,n)-1,a=$[i];return i<0?a=$[0]:i>=$.length&&(a=(0,f.Z$)($)),a}var bt=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="timeCat",t}return r.prototype.translate=function(t){t=Ji(t);var n=this.values.indexOf(t);return n===-1&&((0,f.hj)(t)&&t<this.values.length?n=t:n=NaN),n},r.prototype.getText=function(t,n){var i=this.translate(t);if(i>-1){var a=this.values[i],o=this.formatter;return a=o?o(a,n):Jo(a,this.mask),a}return t},r.prototype.initCfg=function(){this.tickMethod="time-cat",this.mask="YYYY-MM-DD",this.tickCount=7},r.prototype.setDomain=function(){var t=this.values;(0,f.S6)(t,function(n,i){t[i]=Ji(n)}),t.sort(function(n,i){return n-i}),e.prototype.setDomain.call(this)},r}(jn),Wt=bt,ve=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.isContinuous=!0,t}return r.prototype.scale=function(t){if((0,f.UM)(t))return NaN;var n=this.rangeMin(),i=this.rangeMax(),a=this.max,o=this.min;if(a===o)return n;var s=this.getScalePercent(t);return n+s*(i-n)},r.prototype.init=function(){e.prototype.init.call(this);var t=this.ticks,n=(0,f.YM)(t),i=(0,f.Z$)(t);n<this.min&&(this.min=n),i>this.max&&(this.max=i),(0,f.UM)(this.minLimit)||(this.min=n),(0,f.UM)(this.maxLimit)||(this.max=i)},r.prototype.setDomain=function(){var t=(0,f.rx)(this.values),n=t.min,i=t.max;(0,f.UM)(this.min)&&(this.min=n),(0,f.UM)(this.max)&&(this.max=i),this.min>this.max&&(this.min=n,this.max=i)},r.prototype.calculateTicks=function(){var t=this,n=e.prototype.calculateTicks.call(this);return this.nice||(n=(0,f.hX)(n,function(i){return i>=t.min&&i<=t.max})),n},r.prototype.getScalePercent=function(t){var n=this.max,i=this.min;return(t-i)/(n-i)},r.prototype.getInvertPercent=function(t){return(t-this.rangeMin())/(this.rangeMax()-this.rangeMin())},r}(Ro),Ee=ve,Ke=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="linear",t.isLinear=!0,t}return r.prototype.invert=function(t){var n=this.getInvertPercent(t);return this.min+n*(this.max-this.min)},r.prototype.initCfg=function(){this.tickMethod="wilkinson-extended",this.nice=!1},r}(Ee),Mr=Ke;function gr(e,r){var t=Math.E,n;return r>=0?n=Math.pow(t,Math.log(r)/e):n=Math.pow(t,Math.log(-r)/e)*-1,n}function cr(e,r){return e===1?1:Math.log(r)/Math.log(e)}function Qi(e,r,t){(0,f.UM)(t)&&(t=Math.max.apply(null,e));var n=t;return(0,f.S6)(e,function(i){i>0&&i<n&&(n=i)}),n===t&&(n=t/r),n>1&&(n=1),n}function Vf(e){var r=e.toString().split(/[eE]/),t=(r[0].split(".")[1]||"").length-+(r[1]||0);return t>0?t:0}function NR(e,r){var t=Vf(e),n=Vf(r),i=Math.pow(10,Math.max(t,n));return(e*i+r*i)/i}var $y=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="log",t}return r.prototype.invert=function(t){var n=this.base,i=cr(n,this.max),a=this.rangeMin(),o=this.rangeMax()-a,s,l=this.positiveMin;if(l){if(t===0)return 0;s=cr(n,l/n);var u=1/(i-s)*o;if(t<u)return t/u*l}else s=cr(n,this.min);var c=(t-a)/o,h=c*(i-s)+s;return Math.pow(n,h)},r.prototype.initCfg=function(){this.tickMethod="log",this.base=10,this.tickCount=6,this.nice=!0},r.prototype.setDomain=function(){e.prototype.setDomain.call(this);var t=this.min;if(t<0)throw new Error("When you use log scale, the minimum value must be greater than zero!");t===0&&(this.positiveMin=Qi(this.values,this.base,this.max))},r.prototype.getScalePercent=function(t){var n=this.max,i=this.min;if(n===i||t<=0)return 0;var a=this.base,o=this.positiveMin;o&&(i=o*1/a);var s;return t<o?s=t/o/(cr(a,n)-cr(a,i)):s=(cr(a,t)-cr(a,i))/(cr(a,n)-cr(a,i)),s},r}(Ee),jy=$y,Ky=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="pow",t}return r.prototype.invert=function(t){var n=this.getInvertPercent(t),i=this.exponent,a=gr(i,this.max),o=gr(i,this.min),s=n*(a-o)+o,l=s>=0?1:-1;return Math.pow(s,i)*l},r.prototype.initCfg=function(){this.tickMethod="pow",this.exponent=2,this.tickCount=5,this.nice=!0},r.prototype.getScalePercent=function(t){var n=this.max,i=this.min;if(n===i)return 0;var a=this.exponent,o=(gr(a,t)-gr(a,i))/(gr(a,n)-gr(a,i));return o},r}(Ee),Jy=Ky,Qy=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="time",t}return r.prototype.getText=function(t,n){var i=this.translate(t),a=this.formatter;return a?a(i,n):Jo(i,this.mask)},r.prototype.scale=function(t){var n=t;return((0,f.HD)(n)||(0,f.J_)(n))&&(n=this.translate(n)),e.prototype.scale.call(this,n)},r.prototype.translate=function(t){return Ji(t)},r.prototype.initCfg=function(){this.tickMethod="time-pretty",this.mask="YYYY-MM-DD",this.tickCount=7,this.nice=!1},r.prototype.setDomain=function(){var t=this.values,n=this.getConfig("min"),i=this.getConfig("max");if((!(0,f.UM)(n)||!(0,f.hj)(n))&&(this.min=this.translate(this.min)),(!(0,f.UM)(i)||!(0,f.hj)(i))&&(this.max=this.translate(this.max)),t&&t.length){var a=[],o=Infinity,s=o,l=0;(0,f.S6)(t,function(u){var c=Ji(u);if(isNaN(c))throw new TypeError("Invalid Time: "+u+" in time scale!");o>c?(s=o,o=c):s>c&&(s=c),l<c&&(l=c),a.push(c)}),t.length>1&&(this.minTickInterval=s-o),(0,f.UM)(n)&&(this.min=o),(0,f.UM)(i)&&(this.max=l)}},r}(Mr),tm=Qy,em=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="quantize",t}return r.prototype.invert=function(t){var n=this.ticks,i=n.length,a=this.getInvertPercent(t),o=Math.floor(a*(i-1));if(o>=i-1)return(0,f.Z$)(n);if(o<0)return(0,f.YM)(n);var s=n[o],l=n[o+1],u=o/(i-1),c=(o+1)/(i-1);return s+(a-u)/(c-u)*(l-s)},r.prototype.initCfg=function(){this.tickMethod="r-pretty",this.tickCount=5,this.nice=!0},r.prototype.calculateTicks=function(){var t=e.prototype.calculateTicks.call(this);return this.nice||((0,f.Z$)(t)!==this.max&&t.push(this.max),(0,f.YM)(t)!==this.min&&t.unshift(this.min)),t},r.prototype.getScalePercent=function(t){var n=this.ticks;if(t<(0,f.YM)(n))return 0;if(t>(0,f.Z$)(n))return 1;var i=0;return(0,f.S6)(n,function(a,o){if(t>=a)i=o;else return!1}),i/(n.length-1)},r}(Ee),Uf=em,rm=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="quantile",t}return r.prototype.initCfg=function(){this.tickMethod="quantile",this.tickCount=5,this.nice=!0},r}(Uf),nm=rm,Hf={};function $l(e){return Hf[e]}function xn(e,r){if($l(e))throw new Error("type '"+e+"' existed.");Hf[e]=r}var im=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="identity",t.isIdentity=!0,t}return r.prototype.calculateTicks=function(){return this.values},r.prototype.scale=function(t){return this.values[0]!==t&&(0,f.hj)(t)?t:this.range[0]},r.prototype.invert=function(t){var n=this.range;return t<n[0]||t>n[1]?NaN:this.values[0]},r}(Ro),am=im;function Gf(e){var r=e.values,t=e.tickInterval,n=e.tickCount,i=e.showLast;if((0,f.hj)(t)){var a=(0,f.hX)(r,function(g,y){return y%t==0}),o=(0,f.Z$)(r);return i&&(0,f.Z$)(a)!==o&&a.push(o),a}var s=r.length,l=e.min,u=e.max;if((0,f.UM)(l)&&(l=0),(0,f.UM)(u)&&(u=r.length-1),!(0,f.hj)(n)||n>=s)return r.slice(l,u+1);if(n<=0||u<=0)return[];for(var c=n===1?s:Math.floor(s/(n-1)),h=[],v=l,p=0;p<n&&!(v>=u);p++)v=Math.min(l+p*c,u),p===n-1&&i?h.push(r[u]):h.push(r[v]);return h}function om(e){var r=e.min,t=e.max,n=e.nice,i=e.tickCount,a=new sm;return a.domain([r,t]),n&&a.nice(i),a.ticks(i)}var jl=5,Yf=Math.sqrt(50),Xf=Math.sqrt(10),Wf=Math.sqrt(2),sm=function(){function e(){this._domain=[0,1]}return e.prototype.domain=function(r){return r?(this._domain=Array.from(r,Number),this):this._domain.slice()},e.prototype.nice=function(r){var t,n;r===void 0&&(r=jl);var i=this._domain.slice(),a=0,o=this._domain.length-1,s=this._domain[a],l=this._domain[o],u;return l<s&&(t=[l,s],s=t[0],l=t[1],n=[o,a],a=n[0],o=n[1]),u=Qo(s,l,r),u>0?(s=Math.floor(s/u)*u,l=Math.ceil(l/u)*u,u=Qo(s,l,r)):u<0&&(s=Math.ceil(s*u)/u,l=Math.floor(l*u)/u,u=Qo(s,l,r)),u>0?(i[a]=Math.floor(s/u)*u,i[o]=Math.ceil(l/u)*u,this.domain(i)):u<0&&(i[a]=Math.ceil(s*u)/u,i[o]=Math.floor(l*u)/u,this.domain(i)),this},e.prototype.ticks=function(r){return r===void 0&&(r=jl),lm(this._domain[0],this._domain[this._domain.length-1],r||jl)},e}();function lm(e,r,t){var n,i=-1,a,o,s;if(r=+r,e=+e,t=+t,e===r&&t>0)return[e];if((n=r<e)&&(a=e,e=r,r=a),(s=Qo(e,r,t))===0||!isFinite(s))return[];if(s>0)for(e=Math.ceil(e/s),r=Math.floor(r/s),o=new Array(a=Math.ceil(r-e+1));++i<a;)o[i]=(e+i)*s;else for(e=Math.floor(e*s),r=Math.ceil(r*s),o=new Array(a=Math.ceil(e-r+1));++i<a;)o[i]=(e-i)/s;return n&&o.reverse(),o}function Qo(e,r,t){var n=(r-e)/Math.max(0,t),i=Math.floor(Math.log(n)/Math.LN10),a=n/Math.pow(10,i);return i>=0?(a>=Yf?10:a>=Xf?5:a>=Wf?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=Yf?10:a>=Xf?5:a>=Wf?2:1)}function Zf(e,r,t){var n;return t==="ceil"?n=Math.ceil(e/r):t==="floor"?n=Math.floor(e/r):n=Math.round(e/r),n*r}function Kl(e,r,t){var n=Zf(e,t,"floor"),i=Zf(r,t,"ceil");n=(0,f.ri)(n,t),i=(0,f.ri)(i,t);for(var a=[],o=Math.max((i-n)/(Math.pow(2,12)-1),t),s=n;s<=i;s=s+o){var l=(0,f.ri)(s,o);a.push(l)}return{min:n,max:i,ticks:a}}function Jl(e,r,t){var n,i=e.minLimit,a=e.maxLimit,o=e.min,s=e.max,l=e.tickCount,u=l===void 0?5:l,c=(0,f.UM)(i)?(0,f.UM)(r)?o:r:i,h=(0,f.UM)(a)?(0,f.UM)(t)?s:t:a;if(c>h&&(n=[c,h],h=n[0],c=n[1]),u<=2)return[c,h];for(var v=(h-c)/(u-1),p=[],g=0;g<u;g++)p.push(c+v*g);return p}function um(e){var r=e.min,t=e.max,n=e.tickInterval,i=e.minLimit,a=e.maxLimit,o=om(e);return!(0,f.UM)(i)||!(0,f.UM)(a)?Jl(e,(0,f.YM)(o),(0,f.Z$)(o)):n?Kl(r,t,n).ticks:o}function Ci(e){return Math.abs(e)<1e-15?e:parseFloat(e.toFixed(15))}var cm=[1,5,2,2.5,4,3],zR=null,qf=Number.EPSILON*100;function fm(e,r){return(e%r+r)%r}function hm(e){return Math.round(e*1e12)/1e12}function vm(e,r,t,n,i,a){var o=(0,f.dp)(r),s=(0,f.cq)(r,e),l=0,u=fm(n,a);return(u<qf||a-u<qf)&&n<=0&&i>=0&&(l=1),1-s/(o-1)-t+l}function pm(e,r,t){var n=(0,f.dp)(r),i=(0,f.cq)(r,e),a=1;return 1-i/(n-1)-t+a}function dm(e,r,t,n,i,a){var o=(e-1)/(a-i),s=(r-1)/(Math.max(a,n)-Math.min(t,i));return 2-Math.max(o/s,s/o)}function gm(e,r){return e>=r?2-(e-1)/(r-1):1}function ym(e,r,t,n){var i=r-e;return 1-.5*(Math.pow(r-n,2)+Math.pow(e-t,2))/Math.pow(.1*i,2)}function mm(e,r,t){var n=r-e;if(t>n){var i=(t-n)/2;return 1-Math.pow(i,2)/Math.pow(.1*n,2)}return 1}function xm(){return 1}function wm(e,r,t,n,i,a){t===void 0&&(t=5),n===void 0&&(n=!0),i===void 0&&(i=cm),a===void 0&&(a=[.25,.2,.5,.05]);var o=t<0?0:Math.round(t);if(Number.isNaN(e)||Number.isNaN(r)||typeof e!="number"||typeof r!="number"||!o)return{min:0,max:0,ticks:[]};if(r-e<1e-15||o===1)return{min:e,max:r,ticks:[e]};if(r-e>1e148){var s=t||5,l=(r-e)/s;return{min:e,max:r,ticks:Array(s).fill(null).map(function(Te,Be){return Ci(e+l*Be)})}}for(var u={score:-2,lmin:0,lmax:0,lstep:0},c=1;c<Infinity;){for(var h=0;h<i.length;h+=1){var v=i[h],p=pm(v,i,c);if(a[0]*p+a[1]+a[2]+a[3]<u.score){c=Infinity;break}for(var g=2;g<Infinity;){var y=gm(g,o);if(a[0]*p+a[1]+a[2]*y+a[3]<u.score)break;for(var x=(r-e)/(g+1)/c/v,m=Math.ceil(Math.log10(x));m<Infinity;){var w=c*v*Math.pow(10,m),M=mm(e,r,w*(g-1));if(a[0]*p+a[1]*M+a[2]*y+a[3]<u.score)break;var S=Math.floor(r/w)*c-(g-1)*c,A=Math.ceil(e/w)*c;if(S<=A)for(var s=A-S,D=0;D<=s;D+=1){var V=S+D,K=V*(w/c),Mt=K+w*(g-1),ot=w,Lt=vm(v,i,c,K,Mt,ot),Qt=ym(e,r,K,Mt),ge=dm(g,o,e,r,K,Mt),we=xm(),Ae=a[0]*Lt+a[1]*Qt+a[2]*ge+a[3]*we;Ae>u.score&&(!n||K<=e&&Mt>=r)&&(u.lmin=K,u.lmax=Mt,u.lstep=ot,u.score=Ae)}m+=1}g+=1}}c+=1}var zt=Ci(u.lmax),ie=Ci(u.lmin),fe=Ci(u.lstep),ue=Math.floor(hm((zt-ie)/fe))+1,he=new Array(ue);he[0]=Ci(ie);for(var h=1;h<ue;h++)he[h]=Ci(he[h-1]+fe);return{min:Math.min(e,(0,f.YM)(he)),max:Math.max(r,(0,f.Z$)(he)),ticks:he}}function Mm(e){var r=e.min,t=e.max,n=e.tickCount,i=e.nice,a=e.tickInterval,o=e.minLimit,s=e.maxLimit,l=wm(r,t,n,i).ticks;return!(0,f.UM)(o)||!(0,f.UM)(s)?Jl(e,(0,f.YM)(l),(0,f.Z$)(l)):a?Kl(r,t,a).ticks:l}function Sm(e){var r=e.base,t=e.tickCount,n=e.min,i=e.max,a=e.values,o,s=cr(r,i);if(n>0)o=Math.floor(cr(r,n));else{var l=Qi(a,r,i);o=Math.floor(cr(r,l))}for(var u=s-o,c=Math.ceil(u/t),h=[],v=o;v<s+c;v=v+c)h.push(Math.pow(r,v));return n<=0&&h.unshift(0),h}function $f(e,r,t){if(t===void 0&&(t=5),e===r)return{max:r,min:e,ticks:[e]};var n=t<0?0:Math.round(t);if(n===0)return{max:r,min:e,ticks:[]};var i=1.5,a=.5+1.5*i,o=r-e,s=o/n,l=Math.pow(10,Math.floor(Math.log10(s))),u=l;2*l-s<i*(s-u)&&(u=2*l,5*l-s<a*(s-u)&&(u=5*l,10*l-s<i*(s-u)&&(u=10*l)));for(var c=Math.ceil(r/u),h=Math.floor(e/u),v=Math.max(c*u,r),p=Math.min(h*u,e),g=Math.floor((v-p)/u)+1,y=new Array(g),x=0;x<g;x++)y[x]=Ci(p+x*u);return{min:p,max:v,ticks:y}}function Cm(e){var r=e.exponent,t=e.tickCount,n=Math.ceil(gr(r,e.max)),i=Math.floor(gr(r,e.min)),a=$f(i,n,t).ticks;return a.map(function(o){var s=o>=0?1:-1;return Math.pow(o,r)*s})}function bm(e,r){var t=e.length*r;return r===1?e[e.length-1]:r===0?e[0]:t%1!=0?e[Math.ceil(t)-1]:e.length%2==0?(e[t-1]+e[t])/2:e[t]}function Am(e){var r=e.tickCount,t=e.values;if(!t||!t.length)return[];for(var n=t.slice().sort(function(s,l){return s-l}),i=[],a=0;a<r;a++){var o=a/(r-1);i.push(bm(n,o))}return i}function Tm(e){var r=e.min,t=e.max,n=e.tickCount,i=e.tickInterval,a=e.minLimit,o=e.maxLimit,s=$f(r,t,n).ticks;return!(0,f.UM)(a)||!(0,f.UM)(o)?Jl(e,(0,f.YM)(s),(0,f.Z$)(s)):i?Kl(r,t,i).ticks:s}function Em(e){var r=e.min,t=e.max,n=e.minTickInterval,i=e.tickInterval,a=e.tickCount;if(i)a=Math.ceil((t-r)/i);else{i=ft(r,t,a)[1];var o=(t-r)/i,s=o/a;s>1&&(i=i*Math.ceil(s)),n&&i<n&&(i=n)}i=Math.max(Math.floor((t-r)/(Math.pow(2,12)-1)),i);for(var l=[],u=r;u<t+i;u+=i)l.push(u);return l}function _m(e){var r=Gf((0,d.pi)({showLast:!0},e));return r}function ts(e){return new Date(e).getFullYear()}function Fm(e){return new Date(e,0,1).getTime()}function Ql(e){return new Date(e).getMonth()}function Im(e,r){var t=ts(e),n=ts(r),i=Ql(e),a=Ql(r);return(n-t)*12+(a-i)%12}function Lm(e,r){return new Date(e,r,1).getTime()}function Pm(e,r){return Math.ceil((r-e)/sn)}function km(e,r){return Math.ceil((r-e)/Dn)}function Dm(e,r){return Math.ceil((r-e)/(60*1e3))}function Om(e){var r=e.min,t=e.max,n=e.minTickInterval,i=e.tickCount,a=e.tickInterval,o=[];a||(a=(t-r)/i,n&&a<n&&(a=n)),a=Math.max(Math.floor((t-r)/(Math.pow(2,12)-1)),a);var s=ts(r);if(a>P)for(var l=ts(t),u=Math.ceil(a/P),c=s;c<=l+u;c=c+u)o.push(Fm(c));else if(a>Si)for(var h=Math.ceil(a/Si),v=Ql(r),p=Im(r,t),c=0;c<=p+h;c=c+h)o.push(Lm(s,c+v));else if(a>sn)for(var g=new Date(r),y=g.getFullYear(),x=g.getMonth(),m=g.getDate(),w=Math.ceil(a/sn),M=Pm(r,t),c=0;c<M+w;c=c+w)o.push(new Date(y,x,m+c).getTime());else if(a>Dn)for(var g=new Date(r),y=g.getFullYear(),x=g.getMonth(),w=g.getDate(),S=g.getHours(),A=Math.ceil(a/Dn),D=km(r,t),c=0;c<=D+A;c=c+A)o.push(new Date(y,x,w,S+c).getTime());else if(a>Jr)for(var V=Dm(r,t),K=Math.ceil(a/Jr),c=0;c<=V+K;c=c+K)o.push(r+c*Jr);else{var Mt=a;Mt<Lr&&(Mt=Lr);for(var ot=Math.floor(r/Lr)*Lr,Lt=Math.ceil((t-r)/Lr),Qt=Math.ceil(Mt/Lr),c=0;c<Lt+Qt;c=c+Qt)o.push(ot+c*Lr)}return o.length>=512&&console.warn("Notice: current ticks length("+o.length+') >= 512, may cause performance issues, even out of memory. Because of the configure "tickInterval"(in milliseconds, current is '+a+") is too small, increase the value to solve the problem!"),o}Kr("cat",Gf),Kr("time-cat",_m),Kr("wilkinson-extended",Mm),Kr("r-pretty",Tm),Kr("time",Em),Kr("time-pretty",Om),Kr("log",Sm),Kr("pow",Cm),Kr("quantile",Am),Kr("d3-linear",um),xn("cat",jn),xn("category",jn),xn("identity",am),xn("linear",Mr),xn("log",jy),xn("pow",Jy),xn("time",tm),xn("timeCat",Wt),xn("quantize",Uf),xn("quantile",nm);var jf={},Kf=function(e){return jf[e.toLowerCase()]},Ia=function(e,r){if(Kf(e))throw new Error("Attribute type '"+e+"' existed.");jf[e.toLowerCase()]=r};Ia("Color",Ll),Ia("Opacity",kl),Ia("Position",Ol),Ia("Shape",Nf),Ia("Size",Rl);var Jf=et(49685);function Bm(){var e=new Jf.WT(3);return Jf.WT!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0),e}function VR(e){var r=new glMatrix.ARRAY_TYPE(3);return r[0]=e[0],r[1]=e[1],r[2]=e[2],r}function UR(e){var r=e[0],t=e[1],n=e[2];return Math.hypot(r,t,n)}function HR(e,r,t){var n=new glMatrix.ARRAY_TYPE(3);return n[0]=e,n[1]=r,n[2]=t,n}function GR(e,r){return e[0]=r[0],e[1]=r[1],e[2]=r[2],e}function YR(e,r,t,n){return e[0]=r,e[1]=t,e[2]=n,e}function XR(e,r,t){return e[0]=r[0]+t[0],e[1]=r[1]+t[1],e[2]=r[2]+t[2],e}function WR(e,r,t){return e[0]=r[0]-t[0],e[1]=r[1]-t[1],e[2]=r[2]-t[2],e}function ZR(e,r,t){return e[0]=r[0]*t[0],e[1]=r[1]*t[1],e[2]=r[2]*t[2],e}function qR(e,r,t){return e[0]=r[0]/t[0],e[1]=r[1]/t[1],e[2]=r[2]/t[2],e}function $R(e,r){return e[0]=Math.ceil(r[0]),e[1]=Math.ceil(r[1]),e[2]=Math.ceil(r[2]),e}function jR(e,r){return e[0]=Math.floor(r[0]),e[1]=Math.floor(r[1]),e[2]=Math.floor(r[2]),e}function KR(e,r,t){return e[0]=Math.min(r[0],t[0]),e[1]=Math.min(r[1],t[1]),e[2]=Math.min(r[2],t[2]),e}function JR(e,r,t){return e[0]=Math.max(r[0],t[0]),e[1]=Math.max(r[1],t[1]),e[2]=Math.max(r[2],t[2]),e}function QR(e,r){return e[0]=Math.round(r[0]),e[1]=Math.round(r[1]),e[2]=Math.round(r[2]),e}function t6(e,r,t){return e[0]=r[0]*t,e[1]=r[1]*t,e[2]=r[2]*t,e}function e6(e,r,t,n){return e[0]=r[0]+t[0]*n,e[1]=r[1]+t[1]*n,e[2]=r[2]+t[2]*n,e}function r6(e,r){var t=r[0]-e[0],n=r[1]-e[1],i=r[2]-e[2];return Math.hypot(t,n,i)}function n6(e,r){var t=r[0]-e[0],n=r[1]-e[1],i=r[2]-e[2];return t*t+n*n+i*i}function i6(e){var r=e[0],t=e[1],n=e[2];return r*r+t*t+n*n}function a6(e,r){return e[0]=-r[0],e[1]=-r[1],e[2]=-r[2],e}function o6(e,r){return e[0]=1/r[0],e[1]=1/r[1],e[2]=1/r[2],e}function s6(e,r){var t=r[0],n=r[1],i=r[2],a=t*t+n*n+i*i;return a>0&&(a=1/Math.sqrt(a)),e[0]=r[0]*a,e[1]=r[1]*a,e[2]=r[2]*a,e}function Rm(e,r){return e[0]*r[0]+e[1]*r[1]+e[2]*r[2]}function l6(e,r,t){var n=r[0],i=r[1],a=r[2],o=t[0],s=t[1],l=t[2];return e[0]=i*l-a*s,e[1]=a*o-n*l,e[2]=n*s-i*o,e}function u6(e,r,t,n){var i=r[0],a=r[1],o=r[2];return e[0]=i+n*(t[0]-i),e[1]=a+n*(t[1]-a),e[2]=o+n*(t[2]-o),e}function c6(e,r,t,n,i,a){var o=a*a,s=o*(2*a-3)+1,l=o*(a-2)+a,u=o*(a-1),c=o*(3-2*a);return e[0]=r[0]*s+t[0]*l+n[0]*u+i[0]*c,e[1]=r[1]*s+t[1]*l+n[1]*u+i[1]*c,e[2]=r[2]*s+t[2]*l+n[2]*u+i[2]*c,e}function f6(e,r,t,n,i,a){var o=1-a,s=o*o,l=a*a,u=s*o,c=3*a*s,h=3*l*o,v=l*a;return e[0]=r[0]*u+t[0]*c+n[0]*h+i[0]*v,e[1]=r[1]*u+t[1]*c+n[1]*h+i[1]*v,e[2]=r[2]*u+t[2]*c+n[2]*h+i[2]*v,e}function h6(e,r){r=r||1;var t=glMatrix.RANDOM()*2*Math.PI,n=glMatrix.RANDOM()*2-1,i=Math.sqrt(1-n*n)*r;return e[0]=Math.cos(t)*i,e[1]=Math.sin(t)*i,e[2]=n*r,e}function v6(e,r,t){var n=r[0],i=r[1],a=r[2],o=t[3]*n+t[7]*i+t[11]*a+t[15];return o=o||1,e[0]=(t[0]*n+t[4]*i+t[8]*a+t[12])/o,e[1]=(t[1]*n+t[5]*i+t[9]*a+t[13])/o,e[2]=(t[2]*n+t[6]*i+t[10]*a+t[14])/o,e}function La(e,r,t){var n=r[0],i=r[1],a=r[2];return e[0]=n*t[0]+i*t[3]+a*t[6],e[1]=n*t[1]+i*t[4]+a*t[7],e[2]=n*t[2]+i*t[5]+a*t[8],e}function p6(e,r,t){var n=t[0],i=t[1],a=t[2],o=t[3],s=r[0],l=r[1],u=r[2],c=i*u-a*l,h=a*s-n*u,v=n*l-i*s,p=i*v-a*h,g=a*c-n*v,y=n*h-i*c,x=o*2;return c*=x,h*=x,v*=x,p*=2,g*=2,y*=2,e[0]=s+c+p,e[1]=l+h+g,e[2]=u+v+y,e}function d6(e,r,t,n){var i=[],a=[];return i[0]=r[0]-t[0],i[1]=r[1]-t[1],i[2]=r[2]-t[2],a[0]=i[0],a[1]=i[1]*Math.cos(n)-i[2]*Math.sin(n),a[2]=i[1]*Math.sin(n)+i[2]*Math.cos(n),e[0]=a[0]+t[0],e[1]=a[1]+t[1],e[2]=a[2]+t[2],e}function g6(e,r,t,n){var i=[],a=[];return i[0]=r[0]-t[0],i[1]=r[1]-t[1],i[2]=r[2]-t[2],a[0]=i[2]*Math.sin(n)+i[0]*Math.cos(n),a[1]=i[1],a[2]=i[2]*Math.cos(n)-i[0]*Math.sin(n),e[0]=a[0]+t[0],e[1]=a[1]+t[1],e[2]=a[2]+t[2],e}function y6(e,r,t,n){var i=[],a=[];return i[0]=r[0]-t[0],i[1]=r[1]-t[1],i[2]=r[2]-t[2],a[0]=i[0]*Math.cos(n)-i[1]*Math.sin(n),a[1]=i[0]*Math.sin(n)+i[1]*Math.cos(n),a[2]=i[2],e[0]=a[0]+t[0],e[1]=a[1]+t[1],e[2]=a[2]+t[2],e}function m6(e,r){var t=e[0],n=e[1],i=e[2],a=r[0],o=r[1],s=r[2],l=Math.sqrt(t*t+n*n+i*i),u=Math.sqrt(a*a+o*o+s*s),c=l*u,h=c&&Rm(e,r)/c;return Math.acos(Math.min(Math.max(h,-1),1))}function x6(e){return e[0]=0,e[1]=0,e[2]=0,e}function w6(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"}function M6(e,r){return e[0]===r[0]&&e[1]===r[1]&&e[2]===r[2]}function S6(e,r){var t=e[0],n=e[1],i=e[2],a=r[0],o=r[1],s=r[2];return Math.abs(t-a)<=glMatrix.EPSILON*Math.max(1,Math.abs(t),Math.abs(a))&&Math.abs(n-o)<=glMatrix.EPSILON*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(i-s)<=glMatrix.EPSILON*Math.max(1,Math.abs(i),Math.abs(s))}var C6=null,b6=null,A6=null,T6=null,E6=null,_6=null,F6=null,I6=function(){var e=Bm();return function(r,t,n,i,a,o){var s,l;for(t||(t=3),n||(n=0),i?l=Math.min(i*t+n,r.length):l=r.length,s=n;s<l;s+=t)e[0]=r[s],e[1]=r[s+1],e[2]=r[s+2],a(e,e,o),r[s]=e[0],r[s+1]=e[1],r[s+2]=e[2];return r}}(),Nm=et(35600),nr=et(31506),zm=function(){function e(r){this.type="coordinate",this.isRect=!1,this.isHelix=!1,this.isPolar=!1,this.isReflectX=!1,this.isReflectY=!1;var t=r.start,n=r.end,i=r.matrix,a=i===void 0?[1,0,0,0,1,0,0,0,1]:i,o=r.isTransposed,s=o===void 0?!1:o;this.start=t,this.end=n,this.matrix=a,this.originalMatrix=(0,d.ev)([],a),this.isTransposed=s}return e.prototype.initial=function(){this.center={x:(this.start.x+this.end.x)/2,y:(this.start.y+this.end.y)/2},this.width=Math.abs(this.end.x-this.start.x),this.height=Math.abs(this.end.y-this.start.y)},e.prototype.update=function(r){(0,f.f0)(this,r),this.initial()},e.prototype.convertDim=function(r,t){var n,i=this[t],a=i.start,o=i.end;return this.isReflect(t)&&(n=[o,a],a=n[0],o=n[1]),a+r*(o-a)},e.prototype.invertDim=function(r,t){var n,i=this[t],a=i.start,o=i.end;return this.isReflect(t)&&(n=[o,a],a=n[0],o=n[1]),(r-a)/(o-a)},e.prototype.applyMatrix=function(r,t,n){n===void 0&&(n=0);var i=this.matrix,a=[r,t,n];return La(a,a,i),a},e.prototype.invertMatrix=function(r,t,n){n===void 0&&(n=0);var i=this.matrix,a=Nm.U_([0,0,0,0,0,0,0,0,0],i),o=[r,t,n];return a&&La(o,o,a),o},e.prototype.convert=function(r){var t=this.convertPoint(r),n=t.x,i=t.y,a=this.applyMatrix(n,i,1);return{x:a[0],y:a[1]}},e.prototype.invert=function(r){var t=this.invertMatrix(r.x,r.y,1);return this.invertPoint({x:t[0],y:t[1]})},e.prototype.rotate=function(r){var t=this.matrix,n=this.center;return nr.m$(t,t,[-n.x,-n.y]),nr.zu(t,t,r),nr.m$(t,t,[n.x,n.y]),this},e.prototype.reflect=function(r){return r==="x"?this.isReflectX=!this.isReflectX:this.isReflectY=!this.isReflectY,this},e.prototype.scale=function(r,t){var n=this.matrix,i=this.center;return nr.m$(n,n,[-i.x,-i.y]),nr.lh(n,n,[r,t]),nr.m$(n,n,[i.x,i.y]),this},e.prototype.translate=function(r,t){var n=this.matrix;return nr.m$(n,n,[r,t]),this},e.prototype.transpose=function(){return this.isTransposed=!this.isTransposed,this},e.prototype.getCenter=function(){return this.center},e.prototype.getWidth=function(){return this.width},e.prototype.getHeight=function(){return this.height},e.prototype.getRadius=function(){return this.radius},e.prototype.isReflect=function(r){return r==="x"?this.isReflectX:this.isReflectY},e.prototype.resetMatrix=function(r){this.matrix=r||(0,d.ev)([],this.originalMatrix)},e}(),tu=zm,Vm=function(e){(0,d.ZT)(r,e);function r(t){var n=e.call(this,t)||this;return n.isRect=!0,n.type="cartesian",n.initial(),n}return r.prototype.initial=function(){e.prototype.initial.call(this);var t=this.start,n=this.end;this.x={start:t.x,end:n.x},this.y={start:t.y,end:n.y}},r.prototype.convertPoint=function(t){var n,i=t.x,a=t.y;return this.isTransposed&&(n=[a,i],i=n[0],a=n[1]),{x:this.convertDim(i,"x"),y:this.convertDim(a,"y")}},r.prototype.invertPoint=function(t){var n,i=this.invertDim(t.x,"x"),a=this.invertDim(t.y,"y");return this.isTransposed&&(n=[a,i],i=n[0],a=n[1]),{x:i,y:a}},r}(tu),Qf=Vm,ye=et(31437),Um=function(e){(0,d.ZT)(r,e);function r(t){var n=e.call(this,t)||this;n.isHelix=!0,n.type="helix";var i=t.startAngle,a=i===void 0?1.25*Math.PI:i,o=t.endAngle,s=o===void 0?7.25*Math.PI:o,l=t.innerRadius,u=l===void 0?0:l,c=t.radius;return n.startAngle=a,n.endAngle=s,n.innerRadius=u,n.radius=c,n.initial(),n}return r.prototype.initial=function(){e.prototype.initial.call(this);var t=(this.endAngle-this.startAngle)/(2*Math.PI)+1,n=Math.min(this.width,this.height)/2;this.radius&&this.radius>=0&&this.radius<=1&&(n=n*this.radius),this.d=Math.floor(n*(1-this.innerRadius)/t),this.a=this.d/(Math.PI*2),this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*n,end:this.innerRadius*n+this.d*.99}},r.prototype.convertPoint=function(t){var n,i=t.x,a=t.y;this.isTransposed&&(n=[a,i],i=n[0],a=n[1]);var o=this.convertDim(i,"x"),s=this.a*o,l=this.convertDim(a,"y");return{x:this.center.x+Math.cos(o)*(s+l),y:this.center.y+Math.sin(o)*(s+l)}},r.prototype.invertPoint=function(t){var n,i=this.d+this.y.start,a=ye.$X([0,0],[t.x,t.y],[this.center.x,this.center.y]),o=nr.Dg(a,[1,0],!0),s=o*this.a;ye.kE(a)<s&&(s=ye.kE(a));var l=Math.floor((ye.kE(a)-s)/i);o=2*l*Math.PI+o;var u=this.a*o,c=ye.kE(a)-u;c=(0,f.vQ)(c,0)?0:c;var h=this.invertDim(o,"x"),v=this.invertDim(c,"y");return h=(0,f.vQ)(h,0)?0:h,v=(0,f.vQ)(v,0)?0:v,this.isTransposed&&(n=[v,h],h=n[0],v=n[1]),{x:h,y:v}},r}(tu),Hm=Um,Gm=function(e){(0,d.ZT)(r,e);function r(t){var n=e.call(this,t)||this;n.isPolar=!0,n.type="polar";var i=t.startAngle,a=i===void 0?-Math.PI/2:i,o=t.endAngle,s=o===void 0?Math.PI*3/2:o,l=t.innerRadius,u=l===void 0?0:l,c=t.radius;return n.startAngle=a,n.endAngle=s,n.innerRadius=u,n.radius=c,n.initial(),n}return r.prototype.initial=function(){for(e.prototype.initial.call(this);this.endAngle<this.startAngle;)this.endAngle+=Math.PI*2;var t=this.getOneBox(),n=t.maxX-t.minX,i=t.maxY-t.minY,a=Math.abs(t.minX)/n,o=Math.abs(t.minY)/i,s;this.height/i>this.width/n?(s=this.width/n,this.circleCenter={x:this.center.x-(.5-a)*this.width,y:this.center.y-(.5-o)*s*i}):(s=this.height/i,this.circleCenter={x:this.center.x-(.5-a)*s*n,y:this.center.y-(.5-o)*this.height}),this.polarRadius=this.radius,this.radius?this.radius>0&&this.radius<=1?this.polarRadius=s*this.radius:(this.radius<=0||this.radius>s)&&(this.polarRadius=s):this.polarRadius=s,this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*this.polarRadius,end:this.polarRadius}},r.prototype.getRadius=function(){return this.polarRadius},r.prototype.convertPoint=function(t){var n,i=this.getCenter(),a=t.x,o=t.y;return this.isTransposed&&(n=[o,a],a=n[0],o=n[1]),a=this.convertDim(a,"x"),o=this.convertDim(o,"y"),{x:i.x+Math.cos(a)*o,y:i.y+Math.sin(a)*o}},r.prototype.invertPoint=function(t){var n,i=this.getCenter(),a=[t.x-i.x,t.y-i.y],o=this,s=o.startAngle,l=o.endAngle;this.isReflect("x")&&(n=[l,s],s=n[0],l=n[1]);var u=[1,0,0,0,1,0,0,0,1];nr.zu(u,u,s);var c=[1,0,0];La(c,c,u);var h=[c[0],c[1]],v=nr.Dg(h,a,l<s);(0,f.vQ)(v,Math.PI*2)&&(v=0);var p=ye.kE(a),g=v/(l-s);g=l-s>0?g:-g;var y=this.invertDim(p,"y"),x={x:0,y:0};return x.x=this.isTransposed?y:g,x.y=this.isTransposed?g:y,x},r.prototype.getCenter=function(){return this.circleCenter},r.prototype.getOneBox=function(){var t=this.startAngle,n=this.endAngle;if(Math.abs(n-t)>=Math.PI*2)return{minX:-1,maxX:1,minY:-1,maxY:1};for(var i=[0,Math.cos(t),Math.cos(n)],a=[0,Math.sin(t),Math.sin(n)],o=Math.min(t,n);o<Math.max(t,n);o+=Math.PI/18)i.push(Math.cos(o)),a.push(Math.sin(o));return{minX:Math.min.apply(Math,i),maxX:Math.max.apply(Math,i),minY:Math.min.apply(Math,a),maxY:Math.max.apply(Math,a)}},r}(tu),Ym=Gm,th={},Xm=function(e){return th[e.toLowerCase()]},es=function(e,r){th[e.toLowerCase()]=r};es("rect",Qf),es("cartesian",Qf),es("polar",Ym),es("helix",Hm);function eh(e,r,t){var n=new _.Event(r,t);n.target=e,n.propagationPath.push(e),e.emitDelegation(r,n);for(var i=e.getParent();i;)i.emitDelegation(r,n),n.propagationPath.push(i),i=i.getParent()}var rh=[1,0,0,0,1,0,0,0,1];function bi(e,r,t){if(t===void 0&&(t=rh),!r)return null;var n=nr.vs(t,[["t",-e.x,-e.y],["r",r],["t",e.x,e.y]]);return n}function eu(e,r){return!e.x&&!e.y?null:nr.vs(r||rh,[["t",e.x,e.y]])}function Wm(e){var r=[1,0,0],t=[0,0,0];return La(t,r,e),Math.atan2(t[1],t[0])}function rs(e,r){var t=[0,0];return ye.kK(t,r,e),t}function Zm(e,r){var t=rs(e,[r.minX,r.minY]),n=rs(e,[r.maxX,r.minY]),i=rs(e,[r.minX,r.maxY]),a=rs(e,[r.maxX,r.maxY]),o=Math.min(t[0],n[0],i[0],a[0]),s=Math.max(t[0],n[0],i[0],a[0]),l=Math.min(t[1],n[1],i[1],a[1]),u=Math.max(t[1],n[1],i[1],a[1]);return{x:o,y:l,minX:o,minY:l,maxX:s,maxY:u,width:s-o,height:u-l}}function nh(e,r,t,n){if(r){var i=bi({x:t,y:n},r,e.getMatrix());e.setMatrix(i)}}function Pa(e,r,t){var n=eu({x:r,y:t});e.attr("matrix",n)}function ns(e){var r=0,t=0,n=0,i=0;return(0,f.hj)(e)?r=t=n=i=e:(0,f.kJ)(e)&&(r=e[0],n=(0,f.UM)(e[1])?e[0]:e[1],i=(0,f.UM)(e[2])?e[0]:e[2],t=(0,f.UM)(e[3])?n:e[3]),[r,n,i,t]}function ru(e){for(var r=e.childNodes,t=r.length,n=t-1;n>=0;n--)e.removeChild(r[n])}function qm(e,r){return!!e.className.match(new RegExp("(\\s|^)"+r+"(\\s|$)"))}function ka(e){var r=e.start,t=e.end,n=Math.min(r.x,t.x),i=Math.min(r.y,t.y),a=Math.max(r.x,t.x),o=Math.max(r.y,t.y);return{x:n,y:i,minX:n,minY:i,maxX:a,maxY:o,width:a-n,height:o-i}}function $m(e){var r=e.map(function(s){return s.x}),t=e.map(function(s){return s.y}),n=Math.min.apply(Math,r),i=Math.min.apply(Math,t),a=Math.max.apply(Math,r),o=Math.max.apply(Math,t);return{x:n,y:i,minX:n,minY:i,maxX:a,maxY:o,width:a-n,height:o-i}}function Da(e,r,t,n){var i=e+t,a=r+n;return{x:e,y:r,width:t,height:n,minX:e,minY:r,maxX:isNaN(i)?0:i,maxY:isNaN(a)?0:a}}function Ai(e,r,t){return(1-t)*e+r*t}function ta(e,r,t){return{x:e.x+Math.cos(t)*r,y:e.y+Math.sin(t)*r}}function jm(e,r){var t=r.x-e.x,n=r.y-e.y;return Math.sqrt(t*t+n*n)}var L6=function(e){return new Promise(function(r){setTimeout(r,e)})},is=function(e,r,t){return t===void 0&&(t=Math.pow(Number.EPSILON,.5)),[e,r].includes(Infinity)?Math.abs(e)===Math.abs(r):Math.abs(e-r)<t};function Km(e,r){var t=Math.max(e.minX,r.minX),n=Math.max(e.minY,r.minY),i=Math.min(e.maxX,r.maxX),a=Math.min(e.maxY,r.maxY);return Da(t,n,i-t,a-n)}function P6(e,r){var t=Math.min(e.minX,r.minX),n=Math.min(e.minY,r.minY),i=Math.max(e.maxX,r.maxX),a=Math.max(e.maxY,r.maxY);return Da(t,n,i-t,a-n)}function ih(e){var r=e.getClip(),t=r&&r.getBBox(),n;if(!e.isGroup())n=e.getBBox();else{var i=Infinity,a=-Infinity,o=Infinity,s=-Infinity,l=e.getChildren();l.length>0?(0,f.S6)(l,function(u){if(u.get("visible")){if(u.isGroup()&&u.get("children").length===0)return!0;var c=ih(u),h=u.applyToMatrix([c.minX,c.minY,1]),v=u.applyToMatrix([c.minX,c.maxY,1]),p=u.applyToMatrix([c.maxX,c.minY,1]),g=u.applyToMatrix([c.maxX,c.maxY,1]),y=Math.min(h[0],v[0],p[0],g[0]),x=Math.max(h[0],v[0],p[0],g[0]),m=Math.min(h[1],v[1],p[1],g[1]),w=Math.max(h[1],v[1],p[1],g[1]);y<i&&(i=y),x>a&&(a=x),m<o&&(o=m),w>s&&(s=w)}}):(i=0,a=0,o=0,s=0),n=Da(i,o,a-i,s-o)}return t?Km(n,t):n}function Jm(e,r){if(!(!e.getClip()&&!r.getClip())){var t=r.getClip();if(!t){e.setClip(null);return}var n={type:t.get("type"),attrs:t.attr()};e.setClip(n)}}function Br(e){return e+"px"}function ah(e,r,t,n){var i=jm(e,r),a=n/i,o=0;return t==="start"?o=0-a:t==="end"&&(o=1+a),{x:Ai(e.x,r.x,o),y:Ai(e.y,r.y,o)}}var Qm={none:[],point:["x","y"],region:["start","end"],points:["points"],circle:["center","radius","startAngle","endAngle"]},tx=function(e){(0,d.ZT)(r,e);function r(t){var n=e.call(this,t)||this;return n.initCfg(),n}return r.prototype.getDefaultCfg=function(){return{id:"",name:"",type:"",locationType:"none",offsetX:0,offsetY:0,animate:!1,capture:!0,updateAutoRender:!1,animateOption:{appear:null,update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},events:null,defaultCfg:{},visible:!0}},r.prototype.clear=function(){},r.prototype.update=function(t){var n=this,i=this.get("defaultCfg")||{};(0,f.S6)(t,function(a,o){var s=n.get(o),l=a;s!==a&&((0,f.Kn)(a)&&i[o]&&(l=(0,f.b$)({},i[o],a)),n.set(o,l))}),this.updateInner(t),this.afterUpdate(t)},r.prototype.updateInner=function(t){},r.prototype.afterUpdate=function(t){(0,f.wH)(t,"visible")&&(t.visible?this.show():this.hide()),(0,f.wH)(t,"capture")&&this.setCapture(t.capture)},r.prototype.getLayoutBBox=function(){return this.getBBox()},r.prototype.getLocationType=function(){return this.get("locationType")},r.prototype.getOffset=function(){return{offsetX:this.get("offsetX"),offsetY:this.get("offsetY")}},r.prototype.setOffset=function(t,n){this.update({offsetX:t,offsetY:n})},r.prototype.setLocation=function(t){var n=(0,d.pi)({},t);this.update(n)},r.prototype.getLocation=function(){var t=this,n={},i=this.get("locationType"),a=Qm[i];return(0,f.S6)(a,function(o){n[o]=t.get(o)}),n},r.prototype.isList=function(){return!1},r.prototype.isSlider=function(){return!1},r.prototype.init=function(){},r.prototype.initCfg=function(){var t=this,n=this.get("defaultCfg");(0,f.S6)(n,function(i,a){var o=t.get(a);if((0,f.Kn)(o)){var s=(0,f.b$)({},i,o);t.set(a,s)}})},r}(_.Base),oh=tx,Ti="update_status",ex=["visible","tip","delegateObject"],rx=["container","group","shapesMap","isRegister","isUpdating","destroyed"],nx=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,d.pi)((0,d.pi)({},t),{container:null,shapesMap:{},group:null,capture:!0,isRegister:!1,isUpdating:!1,isInit:!0})},r.prototype.remove=function(){this.clear();var t=this.get("group");t.remove()},r.prototype.clear=function(){var t=this.get("group");t.clear(),this.set("shapesMap",{}),this.clearOffScreenCache(),this.set("isInit",!0)},r.prototype.getChildComponentById=function(t){var n=this.getElementById(t),i=n&&n.get("component");return i},r.prototype.getElementById=function(t){return this.get("shapesMap")[t]},r.prototype.getElementByLocalId=function(t){var n=this.getElementId(t);return this.getElementById(n)},r.prototype.getElementsByName=function(t){var n=[];return(0,f.S6)(this.get("shapesMap"),function(i){i.get("name")===t&&n.push(i)}),n},r.prototype.getContainer=function(){return this.get("container")},r.prototype.updateInner=function(t){this.offScreenRender(),this.get("updateAutoRender")&&this.render()},r.prototype.render=function(){var t=this.get("offScreenGroup");t||(t=this.offScreenRender());var n=this.get("group");this.updateElements(t,n),this.deleteElements(),this.applyOffset(),this.get("eventInitted")||(this.initEvent(),this.set("eventInitted",!0)),this.set("isInit",!1)},r.prototype.show=function(){var t=this.get("group");t.show(),this.set("visible",!0)},r.prototype.hide=function(){var t=this.get("group");t.hide(),this.set("visible",!1)},r.prototype.setCapture=function(t){var n=this.get("group");n.set("capture",t),this.set("capture",t)},r.prototype.destroy=function(){this.removeEvent(),this.remove(),e.prototype.destroy.call(this)},r.prototype.getBBox=function(){return this.get("group").getCanvasBBox()},r.prototype.getLayoutBBox=function(){var t=this.get("group"),n=this.getInnerLayoutBBox(),i=t.getTotalMatrix();return i&&(n=Zm(i,n)),n},r.prototype.on=function(t,n,i){var a=this.get("group");return a.on(t,n,i),this},r.prototype.off=function(t,n){var i=this.get("group");return i&&i.off(t,n),this},r.prototype.emit=function(t,n){var i=this.get("group");i.emit(t,n)},r.prototype.init=function(){e.prototype.init.call(this),this.get("group")||this.initGroup(),this.offScreenRender()},r.prototype.getInnerLayoutBBox=function(){return this.get("offScreenBBox")||this.get("group").getBBox()},r.prototype.delegateEmit=function(t,n){var i=this.get("group");n.target=i,i.emit(t,n),eh(i,t,n)},r.prototype.createOffScreenGroup=function(){var t=this.get("group"),n=t.getGroupBase(),i=new n({delegateObject:this.getDelegateObject()});return i},r.prototype.applyOffset=function(){var t=this.get("offsetX"),n=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t,y:n})},r.prototype.initGroup=function(){var t=this.get("container");this.set("group",t.addGroup({id:this.get("id"),name:this.get("name"),capture:this.get("capture"),visible:this.get("visible"),isComponent:!0,component:this,delegateObject:this.getDelegateObject()}))},r.prototype.offScreenRender=function(){this.clearOffScreenCache();var t=this.createOffScreenGroup();return this.renderInner(t),this.set("offScreenGroup",t),this.set("offScreenBBox",ih(t)),t},r.prototype.addGroup=function(t,n){this.appendDelegateObject(t,n);var i=t.addGroup(n);return this.get("isRegister")&&this.registerElement(i),i},r.prototype.addShape=function(t,n){this.appendDelegateObject(t,n);var i=t.addShape(n);return this.get("isRegister")&&this.registerElement(i),i},r.prototype.addComponent=function(t,n){var i=n.id,a=n.component,o=(0,d._T)(n,["id","component"]),s=new a((0,d.pi)((0,d.pi)({},o),{id:i,container:t,updateAutoRender:this.get("updateAutoRender")}));return s.init(),s.render(),this.get("isRegister")&&this.registerElement(s.get("group")),s},r.prototype.initEvent=function(){},r.prototype.removeEvent=function(){var t=this.get("group");t.off()},r.prototype.getElementId=function(t){var n=this.get("id"),i=this.get("name");return n+"-"+i+"-"+t},r.prototype.registerElement=function(t){var n=t.get("id");this.get("shapesMap")[n]=t},r.prototype.unregisterElement=function(t){var n=t.get("id");delete this.get("shapesMap")[n]},r.prototype.moveElementTo=function(t,n){var i=eu(n);t.attr("matrix",i)},r.prototype.addAnimation=function(t,n,i){var a=n.attr("opacity");(0,f.UM)(a)&&(a=1),n.attr("opacity",0),n.animate({opacity:a},i)},r.prototype.removeAnimation=function(t,n,i){n.animate({opacity:0},i)},r.prototype.updateAnimation=function(t,n,i,a){n.animate(i,a)},r.prototype.updateElements=function(t,n){var i=this,a=this.get("animate"),o=this.get("animateOption"),s=t.getChildren().slice(0),l;(0,f.S6)(s,function(u){var c=u.get("id"),h=i.getElementById(c),v=u.get("name");if(h)if(u.get("isComponent")){var p=u.get("component"),g=h.get("component"),y=(0,f.ei)(p.cfg,(0,f.e5)((0,f.XP)(p.cfg),rx));g.update(y),h.set(Ti,"update")}else{var x=i.getReplaceAttrs(h,u);a&&o.update?i.updateAnimation(v,h,x,o.update):h.attr(x),u.isGroup()&&i.updateElements(u,h),(0,f.S6)(ex,function(S){h.set(S,u.get(S))}),Jm(h,u),l=h,h.set(Ti,"update")}else{n.add(u);var m=n.getChildren();if(m.splice(m.length-1,1),l){var w=m.indexOf(l);m.splice(w+1,0,u)}else m.unshift(u);if(i.registerElement(u),u.set(Ti,"add"),u.get("isComponent")){var p=u.get("component");p.set("container",n)}else u.isGroup()&&i.registerNewGroup(u);if(l=u,a){var M=i.get("isInit")?o.appear:o.enter;M&&i.addAnimation(v,u,M)}}})},r.prototype.clearUpdateStatus=function(t){var n=t.getChildren();(0,f.S6)(n,function(i){i.set(Ti,null)})},r.prototype.clearOffScreenCache=function(){var t=this.get("offScreenGroup");t&&t.destroy(),this.set("offScreenGroup",null),this.set("offScreenBBox",null)},r.prototype.getDelegateObject=function(){var t,n=this.get("name"),i=(t={},t[n]=this,t.component=this,t);return i},r.prototype.appendDelegateObject=function(t,n){var i=t.get("delegateObject");n.delegateObject||(n.delegateObject={}),(0,f.CD)(n.delegateObject,i)},r.prototype.getReplaceAttrs=function(t,n){var i=t.attr(),a=n.attr();return(0,f.S6)(i,function(o,s){a[s]===void 0&&(a[s]=void 0)}),a},r.prototype.registerNewGroup=function(t){var n=this,i=t.getChildren();(0,f.S6)(i,function(a){n.registerElement(a),a.set(Ti,"add"),a.isGroup()&&n.registerNewGroup(a)})},r.prototype.deleteElements=function(){var t=this,n=this.get("shapesMap"),i=[];(0,f.S6)(n,function(s,l){!s.get(Ti)||s.destroyed?i.push([l,s]):s.set(Ti,null)});var a=this.get("animate"),o=this.get("animateOption");(0,f.S6)(i,function(s){var l=s[0],u=s[1];if(!u.destroyed){var c=u.get("name");if(a&&o.leave){var h=(0,f.CD)({callback:function(){t.removeElement(u)}},o.leave);t.removeAnimation(c,u,h)}else t.removeElement(u)}delete n[l]})},r.prototype.removeElement=function(t){if(t.get("isGroup")){var n=t.get("component");n&&n.destroy()}t.remove()},r}(oh),Ar=nx,nu="\u2026";function ix(e){for(var r=0,t=0;t<e.length;t++)r+=Ei(e,t);return r}function Ei(e,r){return e.charCodeAt(r)>0&&e.charCodeAt(r)<128?1:2}function ax(e,r,t){t===void 0&&(t="tail");var n=e.length,i="";if(t==="tail"){for(var a=0,o=0;a<r;){var s=Ei(e,o);if(a+s<=r)i+=e[o],a+=Ei(e,o),o++;else break}i+=nu}else if(t==="head"){for(var a=0,o=n-1;a<r;){var s=Ei(e,o);if(a+s<=r)i+=e[o],a+=Ei(e,o),o--;else break}i=nu+i}else{for(var l="",u="",a=0,c=0,h=n-1;a<r;){var v=Ei(e,c),p=!1;v+a<=r&&(l+=e[c],c++,a+=v,p=!0);var g=Ei(e,h);if(g+a<=r&&(u=e[h]+u,a+=g,h--,p=!0),!p)break}i=l+nu+u}return i}var ox="\u2026",sx=2,lx=400;function ux(e){for(var r=e.map(function(l){var u=l.attr("text");return(0,f.UM)(u)?"":""+u}),t=0,n=0,i=0;i<r.length;i+=1){for(var a=0,o=0;o<=r[i].length;o+=1){var s=r[i].charCodeAt(o);s>=19968&&s<=40869?a+=2:a+=1}a>t&&(t=a,n=i)}return e[n].getBBox().width}function iu(e){if(e.length>lx)return ux(e);var r=0;return(0,f.S6)(e,function(t){var n=t.getBBox(),i=n.width;r<i&&(r=i)}),r}function cx(e,r){var t=r.getCanvasBBox();return e?t.width:t.height}function k6(e,r){return e.getBBox().width<r}function Oa(e,r,t,n){var i;n===void 0&&(n="tail");var a=(i=r.attr("text"))!==null&&i!==void 0?i:"";if(n==="tail"){var o=(0,f.ei)(r.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),s=(0,f.Lo)(a,t,o,"\u2026");return a!==s?(r.attr("text",s),r.set("tip",a),!0):(r.set("tip",null),!1)}var l=cx(e,r),u=ix(a),c=!1;if(t<l){var h=Math.floor(t/l*u)-sx,v=void 0;h>=0?v=ax(a,h,n):v=ox,v&&(r.attr("text",v),c=!0)}return c?r.set("tip",a):r.set("tip",null),c}function as(e,r){var t=r.x,n=r.y,i=r.content,a=r.style,o=r.id,s=r.name,l=r.rotate,u=r.maxLength,c=r.autoEllipsis,h=r.isVertical,v=r.ellipsisPosition,p=r.background,g=e.addGroup({id:o+"-group",name:s+"-group",attrs:{x:t,y:n}}),y=g.addShape({type:"text",id:o,name:s,attrs:(0,d.pi)({x:0,y:0,text:i},a)}),x=ns((0,f.U2)(p,"padding",0));if(u&&c){var m=u-(x[1]+x[3]);Oa(!h,y,m,v)}if(p){var w=(0,f.U2)(p,"style",{}),M=y.getCanvasBBox(),S=M.minX,A=M.minY,D=M.width,V=M.height,K=g.addShape("rect",{id:o+"-bg",name:o+"-bg",attrs:(0,d.pi)({x:S-x[3],y:A-x[0],width:D+x[1]+x[3],height:V+x[0]+x[2]},w)});K.toBack()}Pa(g,t,n),nh(g,l,t,n)}var Ge={fontFamily:`
  40. BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue",
  41. Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
  42. SimSun, "sans-serif"`,textColor:"#2C3542",activeTextColor:"#333333",uncheckedColor:"#D8D8D8",lineColor:"#416180",regionColor:"#CCD7EB",verticalAxisRotate:-Math.PI/4,horizontalAxisRotate:Math.PI/4,descriptionIconStroke:"#fff",descriptionIconFill:"rgba(58, 73, 101, .25)"},fx=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,d.pi)((0,d.pi)({},t),{name:"annotation",type:"line",locationType:"region",start:null,end:null,style:{},text:null,defaultCfg:{style:{fill:Ge.textColor,fontSize:12,textAlign:"center",textBaseline:"bottom",fontFamily:Ge.fontFamily},text:{position:"center",autoRotate:!0,content:null,offsetX:0,offsetY:0,style:{stroke:Ge.lineColor,lineWidth:1}}}})},r.prototype.renderInner=function(t){this.renderLine(t),this.get("text")&&this.renderLabel(t)},r.prototype.renderLine=function(t){var n=this.get("start"),i=this.get("end"),a=this.get("style");this.addShape(t,{type:"line",id:this.getElementId("line"),name:"annotation-line",attrs:(0,d.pi)({x1:n.x,y1:n.y,x2:i.x,y2:i.y},a)})},r.prototype.getLabelPoint=function(t,n,i){var a;return i==="start"?a=0:i==="center"?a=.5:(0,f.HD)(i)&&i.indexOf("%")!==-1?a=parseInt(i,10)/100:(0,f.hj)(i)?a=i:a=1,(a>1||a<0)&&(a=1),{x:Ai(t.x,n.x,a),y:Ai(t.y,n.y,a)}},r.prototype.renderLabel=function(t){var n=this.get("text"),i=this.get("start"),a=this.get("end"),o=n.position,s=n.content,l=n.style,u=n.offsetX,c=n.offsetY,h=n.autoRotate,v=n.maxLength,p=n.autoEllipsis,g=n.ellipsisPosition,y=n.background,x=n.isVertical,m=x===void 0?!1:x,w=this.getLabelPoint(i,a,o),M=w.x+u,S=w.y+c,A={id:this.getElementId("line-text"),name:"annotation-line-text",x:M,y:S,content:s,style:l,maxLength:v,autoEllipsis:p,ellipsisPosition:g,background:y,isVertical:m};if(h){var D=[a.x-i.x,a.y-i.y];A.rotate=Math.atan2(D[1],D[0])}as(t,A)},r}(Ar),hx=fx,vx=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,d.pi)((0,d.pi)({},t),{name:"annotation",type:"text",locationType:"point",x:0,y:0,content:"",rotate:null,style:{},background:null,maxLength:null,autoEllipsis:!0,isVertical:!1,ellipsisPosition:"tail",defaultCfg:{style:{fill:Ge.textColor,fontSize:12,textAlign:"center",textBaseline:"middle",fontFamily:Ge.fontFamily}}})},r.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetLocation()},r.prototype.renderInner=function(t){var n=this.getLocation(),i=n.x,a=n.y,o=this.get("content"),s=this.get("style"),l=this.getElementId("text"),u=this.get("name")+"-text",c=this.get("maxLength"),h=this.get("autoEllipsis"),v=this.get("isVertical"),p=this.get("ellipsisPosition"),g=this.get("background"),y=this.get("rotate"),x={id:l,name:u,x:i,y:a,content:o,style:s,maxLength:c,autoEllipsis:h,isVertical:v,ellipsisPosition:p,background:g,rotate:y};as(t,x)},r.prototype.resetLocation=function(){var t=this.getElementByLocalId("text-group");if(t){var n=this.getLocation(),i=n.x,a=n.y,o=this.get("rotate");Pa(t,i,a),nh(t,o,i,a)}},r}(Ar),px=vx,dx=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,d.pi)((0,d.pi)({},t),{name:"annotation",type:"arc",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:Math.PI*3/2,style:{stroke:"#999",lineWidth:1}})},r.prototype.renderInner=function(t){this.renderArc(t)},r.prototype.getArcPath=function(){var t=this.getLocation(),n=t.center,i=t.radius,a=t.startAngle,o=t.endAngle,s=ta(n,i,a),l=ta(n,i,o),u=o-a>Math.PI?1:0,c=[["M",s.x,s.y]];if(o-a==Math.PI*2){var h=ta(n,i,a+Math.PI);c.push(["A",i,i,0,u,1,h.x,h.y]),c.push(["A",i,i,0,u,1,l.x,l.y])}else c.push(["A",i,i,0,u,1,l.x,l.y]);return c},r.prototype.renderArc=function(t){var n=this.getArcPath(),i=this.get("style");this.addShape(t,{type:"path",id:this.getElementId("arc"),name:"annotation-arc",attrs:(0,d.pi)({path:n},i)})},r}(Ar),gx=dx,yx=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,d.pi)((0,d.pi)({},t),{name:"annotation",type:"region",locationType:"region",start:null,end:null,style:{},defaultCfg:{style:{lineWidth:0,fill:Ge.regionColor,opacity:.4}}})},r.prototype.renderInner=function(t){this.renderRegion(t)},r.prototype.renderRegion=function(t){var n=this.get("start"),i=this.get("end"),a=this.get("style"),o=ka({start:n,end:i});this.addShape(t,{type:"rect",id:this.getElementId("region"),name:"annotation-region",attrs:(0,d.pi)({x:o.x,y:o.y,width:o.width,height:o.height},a)})},r}(Ar),mx=yx,xx=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,d.pi)((0,d.pi)({},t),{name:"annotation",type:"image",locationType:"region",start:null,end:null,src:null,style:{}})},r.prototype.renderInner=function(t){this.renderImage(t)},r.prototype.getImageAttrs=function(){var t=this.get("start"),n=this.get("end"),i=this.get("style"),a=ka({start:t,end:n}),o=this.get("src");return(0,d.pi)({x:a.x,y:a.y,img:o,width:a.width,height:a.height},i)},r.prototype.renderImage=function(t){this.addShape(t,{type:"image",id:this.getElementId("image"),name:"annotation-image",attrs:this.getImageAttrs()})},r}(Ar),wx=xx,Mx=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,d.pi)((0,d.pi)({},t),{name:"annotation",type:"dataMarker",locationType:"point",x:0,y:0,point:{},line:{},text:{},direction:"upward",autoAdjust:!0,coordinateBBox:null,defaultCfg:{point:{display:!0,style:{r:3,fill:"#FFFFFF",stroke:"#1890FF",lineWidth:2}},line:{display:!0,length:20,style:{stroke:Ge.lineColor,lineWidth:1}},text:{content:"",display:!0,style:{fill:Ge.textColor,opacity:.65,fontSize:12,textAlign:"start",fontFamily:Ge.fontFamily}}}})},r.prototype.renderInner=function(t){(0,f.U2)(this.get("line"),"display")&&this.renderLine(t),(0,f.U2)(this.get("text"),"display")&&this.renderText(t),(0,f.U2)(this.get("point"),"display")&&this.renderPoint(t),this.get("autoAdjust")&&this.autoAdjust(t)},r.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x")+this.get("offsetX"),y:this.get("y")+this.get("offsetY")})},r.prototype.renderPoint=function(t){var n=this.getShapeAttrs().point;this.addShape(t,{type:"circle",id:this.getElementId("point"),name:"annotation-point",attrs:n})},r.prototype.renderLine=function(t){var n=this.getShapeAttrs().line;this.addShape(t,{type:"path",id:this.getElementId("line"),name:"annotation-line",attrs:n})},r.prototype.renderText=function(t){var n=this.getShapeAttrs().text,i=n.x,a=n.y,o=n.text,s=(0,d._T)(n,["x","y","text"]),l=this.get("text"),u=l.background,c=l.maxLength,h=l.autoEllipsis,v=l.isVertival,p=l.ellipsisPosition,g={x:i,y:a,id:this.getElementId("text"),name:"annotation-text",content:o,style:s,background:u,maxLength:c,autoEllipsis:h,isVertival:v,ellipsisPosition:p};as(t,g)},r.prototype.autoAdjust=function(t){var n=this.get("direction"),i=this.get("x"),a=this.get("y"),o=(0,f.U2)(this.get("line"),"length",0),s=this.get("coordinateBBox"),l=t.getBBox(),u=l.minX,c=l.maxX,h=l.minY,v=l.maxY,p=t.findById(this.getElementId("text-group")),g=t.findById(this.getElementId("text")),y=t.findById(this.getElementId("line"));if(!!s){if(p){if(i+u<=s.minX){var x=s.minX-(i+u);Pa(p,p.attr("x")+x,p.attr("y"))}if(i+c>=s.maxX){var x=i+c-s.maxX;Pa(p,p.attr("x")-x,p.attr("y"))}}if(n==="upward"&&a+h<=s.minY||n!=="upward"&&a+v>=s.maxY){var m=void 0,w=void 0;n==="upward"&&a+h<=s.minY?(m="top",w=1):(m="bottom",w=-1),g.attr("textBaseline",m),y&&y.attr("path",[["M",0,0],["L",0,o*w]]),Pa(p,p.attr("x"),(o+2)*w)}}},r.prototype.getShapeAttrs=function(){var t=(0,f.U2)(this.get("line"),"display"),n=(0,f.U2)(this.get("point"),"style",{}),i=(0,f.U2)(this.get("line"),"style",{}),a=(0,f.U2)(this.get("text"),"style",{}),o=this.get("direction"),s=t?(0,f.U2)(this.get("line"),"length",0):0,l=o==="upward"?-1:1;return{point:(0,d.pi)({x:0,y:0},n),line:(0,d.pi)({path:[["M",0,0],["L",0,s*l]]},i),text:(0,d.pi)({x:0,y:(s+2)*l,text:(0,f.U2)(this.get("text"),"content",""),textBaseline:o==="upward"?"bottom":"top"},a)}},r}(Ar),Sx=Mx,Cx=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,d.pi)((0,d.pi)({},t),{name:"annotation",type:"dataRegion",locationType:"points",points:[],lineLength:0,region:{},text:{},defaultCfg:{region:{style:{lineWidth:0,fill:Ge.regionColor,opacity:.4}},text:{content:"",style:{textAlign:"center",textBaseline:"bottom",fontSize:12,fill:Ge.textColor,fontFamily:Ge.fontFamily}}}})},r.prototype.renderInner=function(t){var n=(0,f.U2)(this.get("region"),"style",{}),i=(0,f.U2)(this.get("text"),"style",{}),a=this.get("lineLength")||0,o=this.get("points");if(!!o.length){var s=$m(o),l=[];l.push(["M",o[0].x,s.minY-a]),o.forEach(function(c){l.push(["L",c.x,c.y])}),l.push(["L",o[o.length-1].x,o[o.length-1].y-a]),this.addShape(t,{type:"path",id:this.getElementId("region"),name:"annotation-region",attrs:(0,d.pi)({path:l},n)});var u=(0,d.pi)({id:this.getElementId("text"),name:"annotation-text",x:(s.minX+s.maxX)/2,y:s.minY-a},this.get("text"));as(t,u)}},r}(Ar),bx=Cx,Ax=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,d.pi)((0,d.pi)({},t),{name:"annotation",type:"regionFilter",locationType:"region",start:null,end:null,color:null,shape:[]})},r.prototype.renderInner=function(t){var n=this,i=this.get("start"),a=this.get("end"),o=this.addGroup(t,{id:this.getElementId("region-filter"),capture:!1});(0,f.S6)(this.get("shapes"),function(l,u){var c=l.get("type"),h=(0,f.d9)(l.attr());n.adjustShapeAttrs(h),n.addShape(o,{id:n.getElementId("shape-"+c+"-"+u),capture:!1,type:c,attrs:h})});var s=ka({start:i,end:a});o.setClip({type:"rect",attrs:{x:s.minX,y:s.minY,width:s.width,height:s.height}})},r.prototype.adjustShapeAttrs=function(t){var n=this.get("color");t.fill&&(t.fill=t.fillStyle=n),t.stroke=t.strokeStyle=n},r}(Ar),Tx=Ax,Ex=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,d.pi)((0,d.pi)({},t),{name:"annotation",type:"shape",draw:f.ZT})},r.prototype.renderInner=function(t){var n=this.get("render");(0,f.mf)(n)&&n(t)},r}(Ar),_x=Ex;function Rr(e,r,t){var n;try{n=window.getComputedStyle?window.getComputedStyle(e,null)[r]:e.style[r]}catch(i){}finally{n=n===void 0?t:n}return n}function Fx(e,r){var t=Rr(e,"width",r);return t==="auto"&&(t=e.offsetWidth),parseFloat(t)}function Ix(e,r){var t=Fx(e,r),n=parseFloat(Rr(e,"borderLeftWidth"))||0,i=parseFloat(Rr(e,"paddingLeft"))||0,a=parseFloat(Rr(e,"paddingRight"))||0,o=parseFloat(Rr(e,"borderRightWidth"))||0,s=parseFloat(Rr(e,"marginRight"))||0,l=parseFloat(Rr(e,"marginLeft"))||0;return t+n+o+i+a+l+s}function Lx(e,r){var t=Rr(e,"height",r);return t==="auto"&&(t=e.offsetHeight),parseFloat(t)}function Px(e,r){var t=Lx(e,r),n=parseFloat(Rr(e,"borderTopWidth"))||0,i=parseFloat(Rr(e,"paddingTop"))||0,a=parseFloat(Rr(e,"paddingBottom"))||0,o=parseFloat(Rr(e,"borderBottomWidth"))||0,s=parseFloat(Rr(e,"marginTop"))||0,l=parseFloat(Rr(e,"marginBottom"))||0;return t+n+o+i+a+s+l}var kx=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,d.pi)((0,d.pi)({},t),{container:null,containerTpl:"<div></div>",updateAutoRender:!0,containerClassName:"",parent:null})},r.prototype.getContainer=function(){return this.get("container")},r.prototype.show=function(){var t=this.get("container");t.style.display="",this.set("visible",!0)},r.prototype.hide=function(){var t=this.get("container");t.style.display="none",this.set("visible",!1)},r.prototype.setCapture=function(t){var n=this.getContainer(),i=t?"auto":"none";n.style.pointerEvents=i,this.set("capture",t)},r.prototype.getBBox=function(){var t=this.getContainer(),n=parseFloat(t.style.left)||0,i=parseFloat(t.style.top)||0;return Da(n,i,t.clientWidth,t.clientHeight)},r.prototype.clear=function(){var t=this.get("container");ru(t)},r.prototype.destroy=function(){this.removeEvent(),this.removeDom(),e.prototype.destroy.call(this)},r.prototype.init=function(){e.prototype.init.call(this),this.initContainer(),this.initDom(),this.resetStyles(),this.applyStyles(),this.initEvent(),this.initCapture(),this.initVisible()},r.prototype.initCapture=function(){this.setCapture(this.get("capture"))},r.prototype.initVisible=function(){this.get("visible")?this.show():this.hide()},r.prototype.initDom=function(){},r.prototype.initContainer=function(){var t=this.get("container");if((0,f.UM)(t)){t=this.createDom();var n=this.get("parent");(0,f.HD)(n)&&(n=document.getElementById(n),this.set("parent",n)),n.appendChild(t),this.get("containerId")&&t.setAttribute("id",this.get("containerId")),this.set("container",t)}else(0,f.HD)(t)&&(t=document.getElementById(t),this.set("container",t));this.get("parent")||this.set("parent",t.parentNode)},r.prototype.resetStyles=function(){var t=this.get("domStyles"),n=this.get("defaultStyles");t?t=(0,f.b$)({},n,t):t=n,this.set("domStyles",t)},r.prototype.applyStyles=function(){var t=this.get("domStyles");if(!!t){var n=this.getContainer();this.applyChildrenStyles(n,t);var i=this.get("containerClassName");if(i&&qm(n,i)){var a=t[i];nt(n,a)}}},r.prototype.applyChildrenStyles=function(t,n){(0,f.S6)(n,function(i,a){var o=t.getElementsByClassName(a);(0,f.S6)(o,function(s){nt(s,i)})})},r.prototype.applyStyle=function(t,n){var i=this.get("domStyles");nt(n,i[t])},r.prototype.createDom=function(){var t=this.get("containerTpl");return Z(t)},r.prototype.initEvent=function(){},r.prototype.removeDom=function(){var t=this.get("container");t&&t.parentNode&&t.parentNode.removeChild(t)},r.prototype.removeEvent=function(){},r.prototype.updateInner=function(t){(0,f.wH)(t,"domStyles")&&(this.resetStyles(),this.applyStyles()),this.resetPosition()},r.prototype.resetPosition=function(){},r}(oh),au=kx,Dx=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,d.pi)((0,d.pi)({},t),{name:"annotation",type:"html",locationType:"point",x:0,y:0,containerTpl:'<div class="g2-html-annotation" style="position:absolute"></div>',alignX:"left",alignY:"top",html:"",zIndex:7})},r.prototype.render=function(){var t=this.getContainer(),n=this.get("html");ru(t);var i=(0,f.mf)(n)?n(t):n;if((0,f.kK)(i))t.appendChild(i);else if((0,f.HD)(i)||(0,f.hj)(i)){var a=Z(""+i);a&&t.appendChild(a)}this.resetPosition()},r.prototype.resetPosition=function(){var t=this.getContainer(),n=this.getLocation(),i=n.x,a=n.y,o=this.get("alignX"),s=this.get("alignY"),l=this.get("offsetX"),u=this.get("offsetY"),c=Ix(t),h=Px(t),v={x:i,y:a};o==="middle"?v.x-=Math.round(c/2):o==="right"&&(v.x-=Math.round(c)),s==="middle"?v.y-=Math.round(h/2):s==="bottom"&&(v.y-=Math.round(h)),l&&(v.x+=l),u&&(v.y+=u),nt(t,{position:"absolute",left:v.x+"px",top:v.y+"px",zIndex:this.get("zIndex")})},r}(au),Ox=Dx;function Ba(e,r,t){var n=r+"Style",i=null;return(0,f.S6)(t,function(a,o){e[o]&&a[n]&&(i||(i={}),(0,f.CD)(i,a[n]))}),i}var Bx=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,d.pi)((0,d.pi)({},t),{name:"axis",ticks:[],line:{},tickLine:{},subTickLine:null,title:null,label:{},verticalFactor:1,verticalLimitLength:null,overlapOrder:["autoRotate","autoEllipsis","autoHide"],tickStates:{},optimize:{},defaultCfg:{line:{style:{lineWidth:1,stroke:Ge.lineColor}},tickLine:{style:{lineWidth:1,stroke:Ge.lineColor},alignTick:!0,length:5,displayWithLabel:!0},subTickLine:{style:{lineWidth:1,stroke:Ge.lineColor},count:4,length:2},label:{autoRotate:!0,autoHide:!1,autoEllipsis:!1,style:{fontSize:12,fill:Ge.textColor,fontFamily:Ge.fontFamily,fontWeight:"normal"},offset:10,offsetX:0,offsetY:0},title:{autoRotate:!0,spacing:5,position:"center",style:{fontSize:12,fill:Ge.textColor,textBaseline:"middle",fontFamily:Ge.fontFamily,textAlign:"center"},iconStyle:{fill:Ge.descriptionIconFill,stroke:Ge.descriptionIconStroke},description:""},tickStates:{active:{labelStyle:{fontWeight:500},tickLineStyle:{lineWidth:2}},inactive:{labelStyle:{fill:Ge.uncheckedColor}}},optimize:{enable:!0,threshold:400}},theme:{}})},r.prototype.renderInner=function(t){this.get("line")&&this.drawLine(t),this.drawTicks(t),this.get("title")&&this.drawTitle(t)},r.prototype.isList=function(){return!0},r.prototype.getItems=function(){return this.get("ticks")},r.prototype.setItems=function(t){this.update({ticks:t})},r.prototype.updateItem=function(t,n){(0,f.CD)(t,n),this.clear(),this.render()},r.prototype.clearItems=function(){var t=this.getElementByLocalId("label-group");t&&t.clear()},r.prototype.setItemState=function(t,n,i){t[n]=i,this.updateTickStates(t)},r.prototype.hasState=function(t,n){return!!t[n]},r.prototype.getItemStates=function(t){var n=this.get("tickStates"),i=[];return(0,f.S6)(n,function(a,o){t[o]&&i.push(o)}),i},r.prototype.clearItemsState=function(t){var n=this,i=this.getItemsByState(t);(0,f.S6)(i,function(a){n.setItemState(a,t,!1)})},r.prototype.getItemsByState=function(t){var n=this,i=this.getItems();return(0,f.hX)(i,function(a){return n.hasState(a,t)})},r.prototype.getSidePoint=function(t,n){var i=this,a=i.getSideVector(n,t);return{x:t.x+a[0],y:t.y+a[1]}},r.prototype.getTextAnchor=function(t){var n;return(0,f.vQ)(t[0],0)?n="center":t[0]>0?n="start":t[0]<0&&(n="end"),n},r.prototype.getTextBaseline=function(t){var n;return(0,f.vQ)(t[1],0)?n="middle":t[1]>0?n="top":t[1]<0&&(n="bottom"),n},r.prototype.processOverlap=function(t){},r.prototype.drawLine=function(t){var n=this.getLinePath(),i=this.get("line");this.addShape(t,{type:"path",id:this.getElementId("line"),name:"axis-line",attrs:(0,f.CD)({path:n},i.style)})},r.prototype.getTickLineItems=function(t){var n=this,i=[],a=this.get("tickLine"),o=a.alignTick,s=a.length,l=1,u=t.length;return u>=2&&(l=t[1].value-t[0].value),(0,f.S6)(t,function(c){var h=c.point;o||(h=n.getTickPoint(c.value-l/2));var v=n.getSidePoint(h,s);i.push({startPoint:h,tickValue:c.value,endPoint:v,tickId:c.id,id:"tickline-"+c.id})}),i},r.prototype.getSubTickLineItems=function(t){var n=[],i=this.get("subTickLine"),a=i.count,o=t.length;if(o>=2)for(var s=0;s<o-1;s++)for(var l=t[s],u=t[s+1],c=0;c<a;c++){var h=(c+1)/(a+1),v=(1-h)*l.tickValue+h*u.tickValue,p=this.getTickPoint(v),g=this.getSidePoint(p,i.length);n.push({startPoint:p,endPoint:g,tickValue:v,id:"sub-"+l.id+"-"+c})}return n},r.prototype.getTickLineAttrs=function(t,n,i,a){var o=this.get(n).style,s={points:[t.startPoint,t.endPoint]},l=(0,f.U2)(this.get("theme"),["tickLine","style"],{});o=(0,f.mf)(o)?(0,f.CD)({},l,o(s,i,a)):o;var u=t.startPoint,c=t.endPoint;return(0,d.pi)({x1:u.x,y1:u.y,x2:c.x,y2:c.y},o)},r.prototype.drawTick=function(t,n,i,a,o){this.addShape(n,{type:"line",id:this.getElementId(t.id),name:"axis-"+i,attrs:this.getTickLineAttrs(t,i,a,o)})},r.prototype.drawTickLines=function(t){var n=this,i=this.get("ticks"),a=this.get("subTickLine"),o=this.getTickLineItems(i),s=this.addGroup(t,{name:"axis-tickline-group",id:this.getElementId("tickline-group")}),l=this.get("tickLine");if((0,f.S6)(o,function(c,h){if(l.displayWithLabel){var v=n.getElementId("label-"+c.tickId);t.findById(v)&&n.drawTick(c,s,"tickLine",h,o)}else n.drawTick(c,s,"tickLine",h,o)}),a){var u=this.getSubTickLineItems(o);(0,f.S6)(u,function(c,h){n.drawTick(c,s,"subTickLine",h,u)})}},r.prototype.processTicks=function(){var t=this,n=this.get("ticks");(0,f.S6)(n,function(i){i.point=t.getTickPoint(i.value),(0,f.UM)(i.id)&&(i.id=i.name)})},r.prototype.drawTicks=function(t){var n=this;this.optimizeTicks(),this.processTicks(),this.get("label")&&this.drawLabels(t),this.get("tickLine")&&this.drawTickLines(t);var i=this.get("ticks");(0,f.S6)(i,function(a){n.applyTickStates(a,t)})},r.prototype.optimizeTicks=function(){var t=this.get("optimize"),n=this.get("ticks");if(t&&t.enable&&t.threshold>0){var i=(0,f.dp)(n);if(i>t.threshold){var a=Math.ceil(i/t.threshold),o=n.filter(function(s,l){return l%a==0});this.set("ticks",o),this.set("originalTicks",n)}}},r.prototype.getLabelAttrs=function(t,n,i){var a=this.get("label"),o=a.offset,s=a.offsetX,l=a.offsetY,u=a.rotate,c=a.formatter,h=this.getSidePoint(t.point,o),v=this.getSideVector(o,h),p=c?c(t.name,t,n):t.name,g=a.style;g=(0,f.mf)(g)?(0,f.U2)(this.get("theme"),["label","style"],{}):g;var y=(0,f.CD)({x:h.x+s,y:h.y+l,text:p,textAlign:this.getTextAnchor(v),textBaseline:this.getTextBaseline(v)},g);return u&&(y.matrix=bi(h,u)),y},r.prototype.drawLabels=function(t){var n=this,i=this.get("ticks"),a=this.addGroup(t,{name:"axis-label-group",id:this.getElementId("label-group")});(0,f.S6)(i,function(v,p){n.addShape(a,{type:"text",name:"axis-label",id:n.getElementId("label-"+v.id),attrs:n.getLabelAttrs(v,p,i),delegateObject:{tick:v,item:v,index:p}})}),this.processOverlap(a);var o=a.getChildren(),s=(0,f.U2)(this.get("theme"),["label","style"],{}),l=this.get("label"),u=l.style,c=l.formatter;if((0,f.mf)(u)){var h=o.map(function(v){return(0,f.U2)(v.get("delegateObject"),"tick")});(0,f.S6)(o,function(v,p){var g=v.get("delegateObject").tick,y=c?c(g.name,g,p):g.name,x=(0,f.CD)({},s,u(y,p,h));v.attr(x)})}},r.prototype.getTitleAttrs=function(){var t=this.get("title"),n=t.style,i=t.position,a=t.offset,o=t.spacing,s=o===void 0?0:o,l=t.autoRotate,u=n.fontSize,c=.5;i==="start"?c=0:i==="end"&&(c=1);var h=this.getTickPoint(c),v=this.getSidePoint(h,a||s+u/2),p=(0,f.CD)({x:v.x,y:v.y,text:t.text},n),g=t.rotate,y=g;if((0,f.UM)(g)&&l){var x=this.getAxisVector(h),m=[1,0];y=nr.Dg(x,m,!0)}if(y){var w=bi(v,y);p.matrix=w}return p},r.prototype.drawTitle=function(t){var n,i=this.getTitleAttrs(),a=this.addShape(t,{type:"text",id:this.getElementId("title"),name:"axis-title",attrs:i});((n=this.get("title"))===null||n===void 0?void 0:n.description)&&this.drawDescriptionIcon(t,a,i.matrix)},r.prototype.drawDescriptionIcon=function(t,n,i){var a=this.addGroup(t,{name:"axis-description",id:this.getElementById("description")}),o=n.getBBox(),s=o.maxX,l=o.maxY,u=o.height,c=this.get("title").iconStyle,h=4,v=u/2,p=v/6,g=s+h,y=l-u/2,x=[g+v,y-v],m=x[0],w=x[1],M=[m+v,w+v],S=M[0],A=M[1],D=[m,A+v],V=D[0],K=D[1],Mt=[g,w+v],ot=Mt[0],Lt=Mt[1],Qt=[g+v,y-u/4],ge=Qt[0],we=Qt[1],Ae=[ge,we+p],zt=Ae[0],ie=Ae[1],fe=[zt,ie+p],ue=fe[0],he=fe[1],Te=[ue,he+v*3/4],Be=Te[0],Ye=Te[1];this.addShape(a,{type:"path",id:this.getElementId("title-description-icon"),name:"axis-title-description-icon",attrs:(0,d.pi)({path:[["M",m,w],["A",v,v,0,0,1,S,A],["A",v,v,0,0,1,V,K],["A",v,v,0,0,1,ot,Lt],["A",v,v,0,0,1,m,w],["M",ge,we],["L",zt,ie],["M",ue,he],["L",Be,Ye]],lineWidth:p,matrix:i},c)}),this.addShape(a,{type:"rect",id:this.getElementId("title-description-rect"),name:"axis-title-description-rect",attrs:{x:g,y:y-u/2,width:u,height:u,stroke:"#000",fill:"#000",opacity:0,matrix:i,cursor:"pointer"}})},r.prototype.applyTickStates=function(t,n){var i=this.getItemStates(t);if(i.length){var a=this.get("tickStates"),o=this.getElementId("label-"+t.id),s=n.findById(o);if(s){var l=Ba(t,"label",a);l&&s.attr(l)}var u=this.getElementId("tickline-"+t.id),c=n.findById(u);if(c){var h=Ba(t,"tickLine",a);h&&c.attr(h)}}},r.prototype.updateTickStates=function(t){var n=this.getItemStates(t),i=this.get("tickStates"),a=this.get("label"),o=this.getElementByLocalId("label-"+t.id),s=this.get("tickLine"),l=this.getElementByLocalId("tickline-"+t.id);if(n.length){if(o){var u=Ba(t,"label",i);u&&o.attr(u)}if(l){var c=Ba(t,"tickLine",i);c&&l.attr(c)}}else o&&o.attr(a.style),l&&l.attr(s.style)},r}(Ar),sh=Bx;function ou(e,r,t,n){var i=r.getChildren(),a=!1;return(0,f.S6)(i,function(o){var s=Oa(e,o,t,n);a=a||s}),a}function Rx(){return lh}function Nx(e,r,t){return ou(e,r,t,"head")}function lh(e,r,t){return ou(e,r,t,"tail")}function zx(e,r,t){return ou(e,r,t,"middle")}function Vx(e){var r=e.attr("matrix");return r&&r[0]!==1}function uh(e){var r=Vx(e)?Wm(e.attr("matrix")):0;return r%360}function su(e,r,t,n){var i=!1,a=uh(r),o=Math.abs(e?t.attr("y")-r.attr("y"):t.attr("x")-r.attr("x")),s=(e?t.attr("y")>r.attr("y"):t.attr("x")>r.attr("x"))?r.getBBox():t.getBBox();if(e){var l=Math.abs(Math.cos(a));is(l,0,Math.PI/180)?i=s.width+n>o:i=s.height/l+n>o}else{var l=Math.abs(Math.sin(a));is(l,0,Math.PI/180)?i=s.width+n>o:i=s.height/l+n>o}return i}function Ra(e,r,t,n){var i=(n==null?void 0:n.minGap)||0,a=r.getChildren().slice().filter(function(g){return g.get("visible")});if(!a.length)return!1;var o=!1;t&&a.reverse();for(var s=a.length,l=a[0],u=l,c=1;c<s;c++){var h=a[c],v=h.getBBox(),p=su(e,u,h,i);p?(h.hide(),o=!0):u=h}return o}function ch(e,r,t){var n=(t==null?void 0:t.minGap)||0,i=r.getChildren().slice();if(i.length<2)return!1;var a=!1,o=i[0],s=o.getBBox(),l=i[1],u=i.length,c=uh(o),h=Math.abs(e?l.attr("y")-o.attr("y"):l.attr("x")-o.attr("x")),v=0;if(e){var p=Math.abs(Math.cos(c));if(is(p,0,Math.PI/180)){var g=iu(i);v=(g+n)/h}else v=(s.height/p+n)/h}else{var p=Math.abs(Math.sin(c));if(is(p,0,Math.PI/180)){var g=iu(i);v=(g+n)/h}else v=(s.height/p+n)/h}if(v>1){v=Math.ceil(v);for(var y=0;y<u;y++)y%v!=0&&(i[y].hide(),a=!0)}return a}function Ux(){return fh}function Hx(e,r,t,n){return Ra(e,r,!1,n)}function Gx(e,r,t,n){return Ra(e,r,!0,n)}function Yx(e,r,t,n){var i=(n==null?void 0:n.minGap)||0,a=r.getChildren().slice();if(a.length<=2)return!1;for(var o=!1,s=a.length,l=a[0],u=a[s-1],c=l,h=1;h<s-1;h++){var v=a[h],p=v.getBBox(),g=su(e,c,v,i);g?(v.hide(),o=!0):c=v}var y=su(e,c,u,i);return y&&(c.hide(),o=!0),o}function fh(e,r,t,n){var i=ch(e,r,n);return Ra(e,r,!1)&&(i=!0),i}function Xx(e,r,t,n){var i=r.getChildren().slice(),a=ch(e,r,n);if(i.length>2){var o=i[0],s=i[i.length-1];o.get("visible")||(o.show(),Ra(e,r,!1,n)&&(a=!0)),s.get("visible")||(s.show(),Ra(e,r,!0,n)&&(a=!0))}return a}function Wx(e,r){(0,f.S6)(e,function(t){var n=t.attr("x"),i=t.attr("y"),a=bi({x:n,y:i},r);t.attr("matrix",a)})}function hh(e,r,t,n){var i=r.getChildren();if(!i.length||!e&&i.length<2)return!1;var a=iu(i),o=!1;if(e)o=!!t&&a>t;else{var s=Math.abs(i[1].attr("x")-i[0].attr("x"));o=a>s}if(o){var l=n(t,a);Wx(i,l)}return o}function Zx(){return vh}function vh(e,r,t,n){return hh(e,r,t,function(){return(0,f.hj)(n)?n:e?Ge.verticalAxisRotate:Ge.horizontalAxisRotate})}function qx(e,r,t){return hh(e,r,t,function(n,i){if(!n)return e?Ge.verticalAxisRotate:Ge.horizontalAxisRotate;if(e)return-Math.acos(n/i);var a=0;return n>i?a=Math.PI/4:(a=Math.asin(n/i),a>Math.PI/4&&(a=Math.PI/4)),a})}var $x=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,d.pi)((0,d.pi)({},t),{type:"line",locationType:"region",start:null,end:null})},r.prototype.getLinePath=function(){var t=this.get("start"),n=this.get("end"),i=[];return i.push(["M",t.x,t.y]),i.push(["L",n.x,n.y]),i},r.prototype.getInnerLayoutBBox=function(){var t=this.get("start"),n=this.get("end"),i=e.prototype.getInnerLayoutBBox.call(this),a=Math.min(t.x,n.x,i.x),o=Math.min(t.y,n.y,i.y),s=Math.max(t.x,n.x,i.maxX),l=Math.max(t.y,n.y,i.maxY);return{x:a,y:o,minX:a,minY:o,maxX:s,maxY:l,width:s-a,height:l-o}},r.prototype.isVertical=function(){var t=this.get("start"),n=this.get("end");return(0,f.vQ)(t.x,n.x)},r.prototype.isHorizontal=function(){var t=this.get("start"),n=this.get("end");return(0,f.vQ)(t.y,n.y)},r.prototype.getTickPoint=function(t){var n=this,i=n.get("start"),a=n.get("end"),o=a.x-i.x,s=a.y-i.y;return{x:i.x+o*t,y:i.y+s*t}},r.prototype.getSideVector=function(t){var n=this.getAxisVector(),i=ye.Fv([0,0],n),a=this.get("verticalFactor"),o=[i[1],i[0]*-1];return ye.bA([0,0],o,t*a)},r.prototype.getAxisVector=function(){var t=this.get("start"),n=this.get("end");return[n.x-t.x,n.y-t.y]},r.prototype.processOverlap=function(t){var n=this,i=this.isVertical(),a=this.isHorizontal();if(!(!i&&!a)){var o=this.get("label"),s=this.get("title"),l=this.get("verticalLimitLength"),u=o.offset,c=l,h=0,v=0;s&&(h=s.style.fontSize,v=s.spacing),c&&(c=c-u-v-h);var p=this.get("overlapOrder");if((0,f.S6)(p,function(x){o[x]&&n.canProcessOverlap(x)&&n.autoProcessOverlap(x,o[x],t,c)}),s&&(0,f.UM)(s.offset)){var g=t.getCanvasBBox(),y=i?g.width:g.height;s.offset=u+y+v+h/2}}},r.prototype.canProcessOverlap=function(t){var n=this.get("label");return t==="autoRotate"?(0,f.UM)(n.rotate):!0},r.prototype.autoProcessOverlap=function(t,n,i,a){var o=this,s=this.isVertical(),l=!1,u=mt[t];if(n===!0){var c=this.get("label");l=u.getDefault()(s,i,a)}else if((0,f.mf)(n))l=n(s,i,a);else if((0,f.Kn)(n)){var h=n;u[h.type]&&(l=u[h.type](s,i,a,h.cfg))}else u[n]&&(l=u[n](s,i,a));if(t==="autoRotate"){if(l){var v=i.getChildren(),p=this.get("verticalFactor");(0,f.S6)(v,function(y){var x=y.attr("textAlign");if(x==="center"){var m=p>0?"end":"start";y.attr("textAlign",m)}})}}else if(t==="autoHide"){var g=i.getChildren().slice(0);(0,f.S6)(g,function(y){y.get("visible")||(o.get("isRegister")&&o.unregisterElement(y),y.remove())})}},r}(sh),jx=$x,Kx=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,d.pi)((0,d.pi)({},t),{type:"circle",locationType:"circle",center:null,radius:null,startAngle:-Math.PI/2,endAngle:Math.PI*3/2})},r.prototype.getLinePath=function(){var t=this.get("center"),n=t.x,i=t.y,a=this.get("radius"),o=a,s=this.get("startAngle"),l=this.get("endAngle"),u=[];if(Math.abs(l-s)===Math.PI*2)u=[["M",n,i-o],["A",a,o,0,1,1,n,i+o],["A",a,o,0,1,1,n,i-o],["Z"]];else{var c=this.getCirclePoint(s),h=this.getCirclePoint(l),v=Math.abs(l-s)>Math.PI?1:0,p=s>l?0:1;u=[["M",n,i],["L",c.x,c.y],["A",a,o,0,v,p,h.x,h.y],["L",n,i]]}return u},r.prototype.getTickPoint=function(t){var n=this.get("startAngle"),i=this.get("endAngle"),a=n+(i-n)*t;return this.getCirclePoint(a)},r.prototype.getSideVector=function(t,n){var i=this.get("center"),a=[n.x-i.x,n.y-i.y],o=this.get("verticalFactor"),s=ye.kE(a);return ye.bA(a,a,o*t/s),a},r.prototype.getAxisVector=function(t){var n=this.get("center"),i=[t.x-n.x,t.y-n.y];return[i[1],-1*i[0]]},r.prototype.getCirclePoint=function(t,n){var i=this.get("center");return n=n||this.get("radius"),{x:i.x+Math.cos(t)*n,y:i.y+Math.sin(t)*n}},r.prototype.canProcessOverlap=function(t){var n=this.get("label");return t==="autoRotate"?(0,f.UM)(n.rotate):!0},r.prototype.processOverlap=function(t){var n=this,i=this.get("label"),a=this.get("title"),o=this.get("verticalLimitLength"),s=i.offset,l=o,u=0,c=0;a&&(u=a.style.fontSize,c=a.spacing),l&&(l=l-s-c-u);var h=this.get("overlapOrder");if((0,f.S6)(h,function(p){i[p]&&n.canProcessOverlap(p)&&n.autoProcessOverlap(p,i[p],t,l)}),a&&(0,f.UM)(a.offset)){var v=t.getCanvasBBox().height;a.offset=s+v+c+u/2}},r.prototype.autoProcessOverlap=function(t,n,i,a){var o=this,s=!1,l=mt[t];if(a>0)if(n===!0)s=l.getDefault()(!1,i,a);else if((0,f.mf)(n))s=n(!1,i,a);else if((0,f.Kn)(n)){var u=n;l[u.type]&&(s=l[u.type](!1,i,a,u.cfg))}else l[n]&&(s=l[n](!1,i,a));if(t==="autoRotate"){if(s){var c=i.getChildren(),h=this.get("verticalFactor");(0,f.S6)(c,function(p){var g=p.attr("textAlign");if(g==="center"){var y=h>0?"end":"start";p.attr("textAlign",y)}})}}else if(t==="autoHide"){var v=i.getChildren().slice(0);(0,f.S6)(v,function(p){p.get("visible")||(o.get("isRegister")&&o.unregisterElement(p),p.remove())})}},r}(sh),Jx=Kx,Qx=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,d.pi)((0,d.pi)({},t),{name:"crosshair",type:"base",line:{},text:null,textBackground:{},capture:!1,defaultCfg:{line:{style:{lineWidth:1,stroke:Ge.lineColor}},text:{position:"start",offset:10,autoRotate:!1,content:null,style:{fill:Ge.textColor,textAlign:"center",textBaseline:"middle",fontFamily:Ge.fontFamily}},textBackground:{padding:5,style:{stroke:Ge.lineColor}}}})},r.prototype.renderInner=function(t){this.get("line")&&this.renderLine(t),this.get("text")&&(this.renderText(t),this.renderBackground(t))},r.prototype.renderText=function(t){var n=this.get("text"),i=n.style,a=n.autoRotate,o=n.content;if(!(0,f.UM)(o)){var s=this.getTextPoint(),l=null;if(a){var u=this.getRotateAngle();l=bi(s,u)}this.addShape(t,{type:"text",name:"crosshair-text",id:this.getElementId("text"),attrs:(0,d.pi)((0,d.pi)((0,d.pi)({},s),{text:o,matrix:l}),i)})}},r.prototype.renderLine=function(t){var n=this.getLinePath(),i=this.get("line"),a=i.style;this.addShape(t,{type:"path",name:"crosshair-line",id:this.getElementId("line"),attrs:(0,d.pi)({path:n},a)})},r.prototype.renderBackground=function(t){var n=this.getElementId("text"),i=t.findById(n),a=this.get("textBackground");if(a&&i){var o=i.getBBox(),s=ns(a.padding),l=a.style,u=this.addShape(t,{type:"rect",name:"crosshair-text-background",id:this.getElementId("text-background"),attrs:(0,d.pi)({x:o.x-s[3],y:o.y-s[0],width:o.width+s[1]+s[3],height:o.height+s[0]+s[2],matrix:i.attr("matrix")},l)});u.toBack()}},r}(Ar),lu=Qx,t1=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,d.pi)((0,d.pi)({},t),{type:"line",locationType:"region",start:null,end:null})},r.prototype.getRotateAngle=function(){var t=this.getLocation(),n=t.start,i=t.end,a=this.get("text").position,o=Math.atan2(i.y-n.y,i.x-n.x),s=a==="start"?o-Math.PI/2:o+Math.PI/2;return s},r.prototype.getTextPoint=function(){var t=this.getLocation(),n=t.start,i=t.end,a=this.get("text"),o=a.position,s=a.offset;return ah(n,i,o,s)},r.prototype.getLinePath=function(){var t=this.getLocation(),n=t.start,i=t.end;return[["M",n.x,n.y],["L",i.x,i.y]]},r}(lu),ph=t1,e1=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,d.pi)((0,d.pi)({},t),{type:"circle",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:Math.PI*3/2})},r.prototype.getRotateAngle=function(){var t=this.getLocation(),n=t.startAngle,i=t.endAngle,a=this.get("text").position,o=a==="start"?n+Math.PI/2:i-Math.PI/2;return o},r.prototype.getTextPoint=function(){var t=this.get("text"),n=t.position,i=t.offset,a=this.getLocation(),o=a.center,s=a.radius,l=a.startAngle,u=a.endAngle,c=n==="start"?l:u,h=this.getRotateAngle()-Math.PI,v=ta(o,s,c),p=Math.cos(h)*i,g=Math.sin(h)*i;return{x:v.x+p,y:v.y+g}},r.prototype.getLinePath=function(){var t=this.getLocation(),n=t.center,i=t.radius,a=t.startAngle,o=t.endAngle,s=null;if(o-a==Math.PI*2){var l=n.x,u=n.y;s=[["M",l,u-i],["A",i,i,0,1,1,l,u+i],["A",i,i,0,1,1,l,u-i],["Z"]]}else{var c=ta(n,i,a),h=ta(n,i,o),v=Math.abs(o-a)>Math.PI?1:0,p=a>o?0:1;s=[["M",c.x,c.y],["A",i,i,0,v,p,h.x,h.y]]}return s},r}(lu),r1=e1,Na="g2-crosshair",uu=Na+"-line",cu=Na+"-text",za,n1=(za={},za[""+Na]={position:"relative"},za[""+uu]={position:"absolute",backgroundColor:"rgba(0, 0, 0, 0.25)"},za[""+cu]={position:"absolute",color:Ge.textColor,fontFamily:Ge.fontFamily},za),i1=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,d.pi)((0,d.pi)({},t),{name:"crosshair",type:"html",locationType:"region",start:{x:0,y:0},end:{x:0,y:0},capture:!1,text:null,containerTpl:'<div class="'+Na+'"></div>',crosshairTpl:'<div class="'+uu+'"></div>',textTpl:'<span class="'+cu+'">{content}</span>',domStyles:null,containerClassName:Na,defaultStyles:n1,defaultCfg:{text:{position:"start",content:null,align:"center",offset:10}}})},r.prototype.render=function(){this.resetText(),this.resetPosition()},r.prototype.initCrossHair=function(){var t=this.getContainer(),n=this.get("crosshairTpl"),i=Z(n);t.appendChild(i),this.applyStyle(uu,i),this.set("crosshairEl",i)},r.prototype.getTextPoint=function(){var t=this.getLocation(),n=t.start,i=t.end,a=this.get("text"),o=a.position,s=a.offset;return ah(n,i,o,s)},r.prototype.resetText=function(){var t=this.get("text"),n=this.get("textEl");if(t){var i=t.content;if(!n){var a=this.getContainer(),o=(0,f.ng)(this.get("textTpl"),t);n=Z(o),a.appendChild(n),this.applyStyle(cu,n),this.set("textEl",n)}n.innerHTML=i}else n&&n.remove()},r.prototype.isVertical=function(t,n){return t.x===n.x},r.prototype.resetPosition=function(){var t=this.get("crosshairEl");t||(this.initCrossHair(),t=this.get("crosshairEl"));var n=this.get("start"),i=this.get("end"),a=Math.min(n.x,i.x),o=Math.min(n.y,i.y);this.isVertical(n,i)?nt(t,{width:"1px",height:Br(Math.abs(i.y-n.y))}):nt(t,{height:"1px",width:Br(Math.abs(i.x-n.x))}),nt(t,{top:Br(o),left:Br(a)}),this.alignText()},r.prototype.alignText=function(){var t=this.get("textEl");if(t){var n=this.get("text").align,i=t.clientWidth,a=this.getTextPoint();switch(n){case"center":a.x=a.x-i/2;break;case"right":a.x=a.x-i;case"left":break}nt(t,{top:Br(a.y),left:Br(a.x)})}},r.prototype.updateInner=function(t){(0,f.wH)(t,"text")&&this.resetText(),e.prototype.updateInner.call(this,t)},r}(au),a1=i1,o1=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,d.pi)((0,d.pi)({},t),{name:"grid",line:{},alternateColor:null,capture:!1,items:[],closed:!1,defaultCfg:{line:{type:"line",style:{lineWidth:1,stroke:Ge.lineColor}}}})},r.prototype.getLineType=function(){var t=this.get("line")||this.get("defaultCfg").line;return t.type},r.prototype.renderInner=function(t){this.drawGrid(t)},r.prototype.getAlternatePath=function(t,n){var i=this.getGridPath(t),a=n.slice(0).reverse(),o=this.getGridPath(a,!0),s=this.get("closed");return s?i=i.concat(o):(o[0][0]="L",i=i.concat(o),i.push(["Z"])),i},r.prototype.getPathStyle=function(){return this.get("line").style},r.prototype.drawGrid=function(t){var n=this,i=this.get("line"),a=this.get("items"),o=this.get("alternateColor"),s=null;(0,f.S6)(a,function(l,u){var c=l.id||u;if(i){var h=n.getPathStyle();h=(0,f.mf)(h)?h(l,u,a):h;var v=n.getElementId("line-"+c),p=n.getGridPath(l.points);n.addShape(t,{type:"path",name:"grid-line",id:v,attrs:(0,f.CD)({path:p},h)})}if(o&&u>0){var g=n.getElementId("region-"+c),y=u%2==0;if((0,f.HD)(o))y&&n.drawAlternateRegion(g,t,s.points,l.points,o);else{var x=y?o[1]:o[0];n.drawAlternateRegion(g,t,s.points,l.points,x)}}s=l})},r.prototype.drawAlternateRegion=function(t,n,i,a,o){var s=this.getAlternatePath(i,a);this.addShape(n,{type:"path",id:t,name:"grid-region",attrs:{path:s,fill:o}})},r}(Ar),dh=o1;function s1(e,r,t,n){var i=t-e,a=n-r;return Math.sqrt(i*i+a*a)}var l1=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,d.pi)((0,d.pi)({},t),{type:"circle",center:null,closed:!0})},r.prototype.getGridPath=function(t,n){var i=this.getLineType(),a=this.get("closed"),o=[];if(t.length)if(i==="circle"){var s=this.get("center"),l=t[0],u=s1(s.x,s.y,l.x,l.y),c=n?0:1;a?(o.push(["M",s.x,s.y-u]),o.push(["A",u,u,0,0,c,s.x,s.y+u]),o.push(["A",u,u,0,0,c,s.x,s.y-u]),o.push(["Z"])):(0,f.S6)(t,function(h,v){v===0?o.push(["M",h.x,h.y]):o.push(["A",u,u,0,0,c,h.x,h.y])})}else(0,f.S6)(t,function(h,v){v===0?o.push(["M",h.x,h.y]):o.push(["L",h.x,h.y])}),a&&o.push(["Z"]);return o},r}(dh),u1=l1,c1=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,d.pi)((0,d.pi)({},t),{type:"line"})},r.prototype.getGridPath=function(t){var n=[];return(0,f.S6)(t,function(i,a){a===0?n.push(["M",i.x,i.y]):n.push(["L",i.x,i.y])}),n},r}(dh),f1=c1,h1=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,d.pi)((0,d.pi)({},t),{name:"legend",layout:"horizontal",locationType:"point",x:0,y:0,offsetX:0,offsetY:0,title:null,background:null})},r.prototype.getLayoutBBox=function(){var t=e.prototype.getLayoutBBox.call(this),n=this.get("maxWidth"),i=this.get("maxHeight"),a=t.width,o=t.height;return n&&(a=Math.min(a,n)),i&&(o=Math.min(o,i)),Da(t.minX,t.minY,a,o)},r.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetLocation()},r.prototype.resetLocation=function(){var t=this.get("x"),n=this.get("y"),i=this.get("offsetX"),a=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t+i,y:n+a})},r.prototype.applyOffset=function(){this.resetLocation()},r.prototype.getDrawPoint=function(){return this.get("currentPoint")},r.prototype.setDrawPoint=function(t){return this.set("currentPoint",t)},r.prototype.renderInner=function(t){this.resetDraw(),this.get("title")&&this.drawTitle(t),this.drawLegendContent(t),this.get("background")&&this.drawBackground(t)},r.prototype.drawBackground=function(t){var n=this.get("background"),i=t.getBBox(),a=ns(n.padding),o=(0,d.pi)({x:0,y:0,width:i.width+a[1]+a[3],height:i.height+a[0]+a[2]},n.style),s=this.addShape(t,{type:"rect",id:this.getElementId("background"),name:"legend-background",attrs:o});s.toBack()},r.prototype.drawTitle=function(t){var n=this.get("currentPoint"),i=this.get("title"),a=i.spacing,o=i.style,s=i.text,l=this.addShape(t,{type:"text",id:this.getElementId("title"),name:"legend-title",attrs:(0,d.pi)({text:s,x:n.x,y:n.y},o)}),u=l.getBBox();this.set("currentPoint",{x:n.x,y:u.maxY+a})},r.prototype.resetDraw=function(){var t=this.get("background"),n={x:0,y:0};if(t){var i=ns(t.padding);n.x=i[3],n.y=i[0]}this.set("currentPoint",n)},r}(Ar),gh=h1,fu={marker:{style:{inactiveFill:"#000",inactiveOpacity:.45,fill:"#000",opacity:1,size:12}},text:{style:{fill:"#ccc",fontSize:12}}},os={fill:Ge.textColor,fontSize:12,textAlign:"start",textBaseline:"middle",fontFamily:Ge.fontFamily,fontWeight:"normal",lineHeight:12},hu="navigation-arrow-right",vu="navigation-arrow-left",yh={right:90*Math.PI/180,left:(360-90)*Math.PI/180,up:0,down:180*Math.PI/180},v1=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.currentPageIndex=1,t.totalPagesCnt=1,t.pageWidth=0,t.pageHeight=0,t.startX=0,t.startY=0,t.onNavigationBack=function(){var n=t.getElementByLocalId("item-group");if(t.currentPageIndex>1){t.currentPageIndex-=1,t.updateNavigation();var i=t.getCurrentNavigationMatrix();t.get("animate")?n.animate({matrix:i},100):n.attr({matrix:i})}},t.onNavigationAfter=function(){var n=t.getElementByLocalId("item-group");if(t.currentPageIndex<t.totalPagesCnt){t.currentPageIndex+=1,t.updateNavigation();var i=t.getCurrentNavigationMatrix();t.get("animate")?n.animate({matrix:i},100):n.attr({matrix:i})}},t}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,d.pi)((0,d.pi)({},t),{name:"legend",type:"category",itemSpacing:24,itemMarginBottom:8,maxItemWidth:null,itemWidth:null,itemHeight:null,itemName:{},itemValue:null,maxWidth:null,maxHeight:null,marker:{},radio:null,items:[],itemStates:{},itemBackground:{},pageNavigator:{},defaultCfg:{title:{spacing:5,style:{fill:Ge.textColor,fontSize:12,textAlign:"start",textBaseline:"top"}},background:{padding:5,style:{stroke:Ge.lineColor}},itemBackground:{style:{opacity:0,fill:"#fff"}},pageNavigator:fu,itemName:{spacing:16,style:os},marker:{spacing:8,style:{r:6,symbol:"circle"}},itemValue:{alignRight:!1,formatter:null,style:os,spacing:6},itemStates:{active:{nameStyle:{opacity:.8}},unchecked:{nameStyle:{fill:Ge.uncheckedColor},markerStyle:{fill:Ge.uncheckedColor,stroke:Ge.uncheckedColor}},inactive:{nameStyle:{fill:Ge.uncheckedColor},markerStyle:{opacity:.2}}}}})},r.prototype.isList=function(){return!0},r.prototype.getItems=function(){return this.get("items")},r.prototype.setItems=function(t){this.update({items:t})},r.prototype.updateItem=function(t,n){(0,f.CD)(t,n),this.clear(),this.render()},r.prototype.clearItems=function(){var t=this.getElementByLocalId("item-group");t&&t.clear()},r.prototype.setItemState=function(t,n,i){t[n]=i;var a=this.getElementByLocalId("item-"+t.id);if(a){var o=this.getItems(),s=o.indexOf(t),l=this.createOffScreenGroup(),u=this.drawItem(t,s,this.getItemHeight(),l);this.updateElements(u,a),this.clearUpdateStatus(a)}},r.prototype.hasState=function(t,n){return!!t[n]},r.prototype.getItemStates=function(t){var n=this.get("itemStates"),i=[];return(0,f.S6)(n,function(a,o){t[o]&&i.push(o)}),i},r.prototype.clearItemsState=function(t){var n=this,i=this.getItemsByState(t);(0,f.S6)(i,function(a){n.setItemState(a,t,!1)})},r.prototype.getItemsByState=function(t){var n=this,i=this.getItems();return(0,f.hX)(i,function(a){return n.hasState(a,t)})},r.prototype.drawLegendContent=function(t){this.processItems(),this.drawItems(t)},r.prototype.processItems=function(){var t=this.get("items");(0,f.S6)(t,function(n){n.id||(n.id=n.name)})},r.prototype.drawItems=function(t){var n=this,i=this.addGroup(t,{id:this.getElementId("item-container-group"),name:"legend-item-container-group"}),a=this.addGroup(i,{id:this.getElementId("item-group"),name:"legend-item-group"}),o=this.getItemHeight(),s=this.get("itemWidth"),l=this.get("itemSpacing"),u=this.get("itemMarginBottom"),c=this.get("currentPoint"),h=c.x,v=c.y,p=this.get("layout"),g=this.get("items"),y=!1,x=0,m=this.get("maxWidth"),w=this.get("maxHeight");(0,f.S6)(g,function(M,S){var A=n.drawItem(M,S,o,a),D=A.getBBox(),V=s||D.width;V>x&&(x=V),p==="horizontal"?(m&&m<c.x+V-h&&(y=!0,c.x=h,c.y+=o+u),n.moveElementTo(A,c),c.x+=V+l):(w&&w<c.y+o+u-v&&(y=!0,c.x+=x+l,c.y=v,x=0),n.moveElementTo(A,c),c.y+=o+u)}),y&&this.get("flipPage")&&(this.pageHeight=0,this.pageWidth=0,this.totalPagesCnt=1,this.startX=h,this.startY=v,this.adjustNavigation(t,a))},r.prototype.getItemHeight=function(){var t=this.get("itemHeight");if(!t){var n=(this.get("itemName")||{}).style;if((0,f.mf)(n)){var i=this.getItems();i.forEach(function(a,o){var s=(0,d.pi)((0,d.pi)({},os),n(a,o,i)).fontSize;t<s&&(t=s)})}else n&&(t=n.fontSize)}return t},r.prototype.drawMarker=function(t,n,i,a){var o=(0,d.pi)((0,d.pi)((0,d.pi)({x:0,y:a/2},n.style),{symbol:(0,f.U2)(i.marker,"symbol","circle")}),(0,f.U2)(i.marker,"style",{})),s=this.addShape(t,{type:"marker",id:this.getElementId("item-"+i.id+"-marker"),name:"legend-item-marker",attrs:o}),l=s.getBBox();s.attr("x",l.width/2);var u=s.attr(),c=u.stroke,h=u.fill;return c&&s.set("isStroke",!0),h&&s.set("isFill",!0),s},r.prototype.drawItemText=function(t,n,i,a,o,s,l){var u=i.formatter,c=i.style,h=(0,d.pi)((0,d.pi)({x:s,y:o/2,text:u?u(a[n],a,l):a[n]},os),(0,f.mf)(c)?c(a,l,this.getItems()):c);return this.addShape(t,{type:"text",id:this.getElementId("item-"+a.id+"-"+n),name:"legend-item-"+n,attrs:h})},r.prototype.drawRadio=function(t,n,i,a,o){var s,l,u=n.style||{},c=(s=u.r)!==null&&s!==void 0?s:a/2,h=c*3.6/8,v=[o+c,a/2-c],p=v[0],g=v[1],y=[p+c,g+c],x=y[0],m=y[1],w=[p,m+c],M=w[0],S=w[1],A=[o,g+c],D=A[0],V=A[1],K=i.showRadio,Mt=(0,d.pi)((0,d.pi)({path:[["M",p,g],["A",c,c,0,0,1,x,m],["L",x-h,m],["L",x,m],["A",c,c,0,0,1,M,S],["L",M,S-h],["L",M,S],["A",c,c,0,0,1,D,V],["L",D+h,V],["L",D,V],["A",c,c,0,0,1,p,g],["L",p,g+h]],stroke:"#000000",fill:"#ffffff"},u),{opacity:K?(l=u==null?void 0:u.opacity)!==null&&l!==void 0?l:.45:0}),ot=this.addShape(t,{type:"path",id:this.getElementId("item-"+i.id+"-radio"),name:"legend-item-radio",attrs:Mt});return ot.set("tip",n.tip),ot},r.prototype.drawItem=function(t,n,i,a){var o="item-"+t.id,s=this.addGroup(a,{name:"legend-item-container",id:this.getElementId("item-container-"+o),delegateObject:{item:t,index:n}}),l=this.addGroup(s,{name:"legend-item",id:this.getElementId(o),delegateObject:{item:t,index:n}}),u=this.get("marker"),c=this.get("itemName"),h=this.get("itemValue"),v=this.get("itemBackground"),p=this.get("radio"),g=this.getLimitItemWidth(),y=0;if(u){var x=this.drawMarker(l,u,t,i),m=u.spacing,w=(0,f.U2)(t,["marker","spacing"]);(0,f.hj)(w)&&(m=w),y=x.getBBox().maxX+m}if(c){var M=this.drawItemText(l,"name",c,t,i,y,n);g&&Oa(!0,M,(0,f.uZ)(g-y,0,g)),y=M.getBBox().maxX+c.spacing}if(h){var S=this.drawItemText(l,"value",h,t,i,y,n);g&&(h.alignRight?(S.attr({textAlign:"right",x:g}),Oa(!0,S,(0,f.uZ)(g-y,0,g),"head")):Oa(!0,S,(0,f.uZ)(g-y,0,g))),y=S.getBBox().maxX+h.spacing}if(p&&this.drawRadio(l,p,t,i,y),v){var A=l.getBBox(),D=this.addShape(l,{type:"rect",name:"legend-item-background",id:this.getElementId(o+"-background"),attrs:(0,d.pi)({x:0,y:0,width:A.width,height:i},v.style)});D.toBack()}return this.applyItemStates(t,l),l},r.prototype.adjustNavigation=function(t,n){var i=this,a=this.startX,o=this.startY,s=this.get("layout"),l=n.findAll(function(ot){return ot.get("name")==="legend-item"}),u=this.get("maxWidth"),c=this.get("maxHeight"),h=this.get("itemWidth"),v=this.get("itemSpacing"),p=this.getItemHeight(),g=(0,f.b$)({},fu,this.get("pageNavigator")),y=this.drawNavigation(t,s,"00/00",g),x=y.getBBox(),m={x:a,y:o},w=1,M=0,S=0,A=0,D=this.get("itemMarginBottom");if(s==="horizontal"){var V=this.get("maxRow")||1,K=p+(V===1?0:D);this.pageHeight=K*V,(0,f.S6)(l,function(ot){var Lt=ot.getBBox(),Qt=h||Lt.width;(M&&M<m.x+Qt+v||u<m.x+Qt+v+x.width)&&(w===1&&(M=m.x+v,i.pageWidth=M,i.moveElementTo(y,{x:u-v-x.width-x.minX,y:m.y+p/2-x.height/2-x.minY})),w+=1,m.x=a,m.y+=K),i.moveElementTo(ot,m),ot.getParent().setClip({type:"rect",attrs:{x:m.x,y:m.y,width:Qt+v,height:p}}),m.x+=Qt+v})}else{(0,f.S6)(l,function(ot){var Lt=ot.getBBox();Lt.width>S&&(S=Lt.width)}),A=S,S+=v,u&&(S=Math.min(u,S),A=Math.min(u,A)),this.pageWidth=S,this.pageHeight=c-Math.max(x.height,p+D);var Mt=Math.floor(this.pageHeight/(p+D));(0,f.S6)(l,function(ot,Lt){Lt!==0&&Lt%Mt==0&&(w+=1,m.x+=S,m.y=o),i.moveElementTo(ot,m),ot.getParent().setClip({type:"rect",attrs:{x:m.x,y:m.y,width:S,height:p}}),m.y+=p+D}),this.totalPagesCnt=w,this.moveElementTo(y,{x:a+A/2-x.width/2-x.minX,y:c-x.height-x.minY})}this.pageHeight&&this.pageWidth&&n.getParent().setClip({type:"rect",attrs:{x:this.startX,y:this.startY,width:this.pageWidth,height:this.pageHeight}}),s==="horizontal"&&this.get("maxRow")?this.totalPagesCnt=Math.ceil(w/this.get("maxRow")):this.totalPagesCnt=w,this.currentPageIndex>this.totalPagesCnt&&(this.currentPageIndex=1),this.updateNavigation(y),n.attr("matrix",this.getCurrentNavigationMatrix())},r.prototype.drawNavigation=function(t,n,i,a){var o={x:0,y:0},s=this.addGroup(t,{id:this.getElementId("navigation-group"),name:"legend-navigation"}),l=(0,f.U2)(a.marker,"style",{}),u=l.size,c=u===void 0?12:u,h=(0,d._T)(l,["size"]),v=this.drawArrow(s,o,vu,n==="horizontal"?"up":"left",c,h);v.on("click",this.onNavigationBack);var p=v.getBBox();o.x+=p.width+2;var g=this.addShape(s,{type:"text",id:this.getElementId("navigation-text"),name:"navigation-text",attrs:(0,d.pi)({x:o.x,y:o.y+c/2,text:i,textBaseline:"middle"},(0,f.U2)(a.text,"style"))}),y=g.getBBox();o.x+=y.width+2;var x=this.drawArrow(s,o,hu,n==="horizontal"?"down":"right",c,h);return x.on("click",this.onNavigationAfter),s},r.prototype.updateNavigation=function(t){var n=(0,f.b$)({},fu,this.get("pageNavigator")),i=n.marker.style,a=i.fill,o=i.opacity,s=i.inactiveFill,l=i.inactiveOpacity,u=this.currentPageIndex+"/"+this.totalPagesCnt,c=t?t.getChildren()[1]:this.getElementByLocalId("navigation-text"),h=t?t.findById(this.getElementId(vu)):this.getElementByLocalId(vu),v=t?t.findById(this.getElementId(hu)):this.getElementByLocalId(hu);c.attr("text",u),h.attr("opacity",this.currentPageIndex===1?l:o),h.attr("fill",this.currentPageIndex===1?s:a),h.attr("cursor",this.currentPageIndex===1?"not-allowed":"pointer"),v.attr("opacity",this.currentPageIndex===this.totalPagesCnt?l:o),v.attr("fill",this.currentPageIndex===this.totalPagesCnt?s:a),v.attr("cursor",this.currentPageIndex===this.totalPagesCnt?"not-allowed":"pointer");var p=h.getBBox().maxX+2;c.attr("x",p),p+=c.getBBox().width+2,this.updateArrowPath(v,{x:p,y:0})},r.prototype.drawArrow=function(t,n,i,a,o,s){var l=n.x,u=n.y,c=this.addShape(t,{type:"path",id:this.getElementId(i),name:i,attrs:(0,d.pi)({size:o,direction:a,path:[["M",l+o/2,u],["L",l,u+o],["L",l+o,u+o],["Z"]],cursor:"pointer"},s)});return c.attr("matrix",bi({x:l+o/2,y:u+o/2},yh[a])),c},r.prototype.updateArrowPath=function(t,n){var i=n.x,a=n.y,o=t.attr(),s=o.size,l=o.direction,u=bi({x:i+s/2,y:a+s/2},yh[l]);t.attr("path",[["M",i+s/2,a],["L",i,a+s],["L",i+s,a+s],["Z"]]),t.attr("matrix",u)},r.prototype.getCurrentNavigationMatrix=function(){var t=this,n=t.currentPageIndex,i=t.pageWidth,a=t.pageHeight,o=this.get("layout"),s=o==="horizontal"?{x:0,y:a*(1-n)}:{x:i*(1-n),y:0};return eu(s)},r.prototype.applyItemStates=function(t,n){var i=this.getItemStates(t),a=i.length>0;if(a){var o=n.getChildren(),s=this.get("itemStates");(0,f.S6)(o,function(l){var u=l.get("name"),c=u.split("-")[2],h=Ba(t,c,s);h&&(l.attr(h),c==="marker"&&!(l.get("isStroke")&&l.get("isFill"))&&(l.get("isStroke")&&l.attr("fill",null),l.get("isFill")&&l.attr("stroke",null)))})}},r.prototype.getLimitItemWidth=function(){var t=this.get("itemWidth"),n=this.get("maxItemWidth");return n?t&&(n=t<=n?t:n):t&&(n=t),n},r}(gh),p1=v1,d1=1.4,mh=.4,g1=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,d.pi)((0,d.pi)({},t),{type:"continue",min:0,max:100,value:null,colors:[],track:{},rail:{},label:{},handler:{},slidable:!0,tip:null,step:null,maxWidth:null,maxHeight:null,defaultCfg:{label:{align:"rail",spacing:5,formatter:null,style:{fontSize:12,fill:Ge.textColor,textBaseline:"middle",fontFamily:Ge.fontFamily}},handler:{size:10,style:{fill:"#fff",stroke:"#333"}},track:{},rail:{type:"color",size:20,defaultLength:100,style:{fill:"#DCDEE2"}},title:{spacing:5,style:{fill:Ge.textColor,fontSize:12,textAlign:"start",textBaseline:"top"}}}})},r.prototype.isSlider=function(){return!0},r.prototype.getValue=function(){return this.getCurrentValue()},r.prototype.getRange=function(){return{min:this.get("min"),max:this.get("max")}},r.prototype.setRange=function(t,n){this.update({min:t,max:n})},r.prototype.setValue=function(t){var n=this.getValue();this.set("value",t);var i=this.get("group");this.resetTrackClip(),this.get("slidable")&&this.resetHandlers(i),this.delegateEmit("valuechanged",{originValue:n,value:t})},r.prototype.initEvent=function(){var t=this.get("group");this.bindSliderEvent(t),this.bindRailEvent(t),this.bindTrackEvent(t)},r.prototype.drawLegendContent=function(t){this.drawRail(t),this.drawLabels(t),this.fixedElements(t),this.resetTrack(t),this.resetTrackClip(t),this.get("slidable")&&this.resetHandlers(t)},r.prototype.bindSliderEvent=function(t){this.bindHandlersEvent(t)},r.prototype.bindHandlersEvent=function(t){var n=this;t.on("legend-handler-min:drag",function(i){var a=n.getValueByCanvasPoint(i.x,i.y),o=n.getCurrentValue(),s=o[1];s<a&&(s=a),n.setValue([a,s])}),t.on("legend-handler-max:drag",function(i){var a=n.getValueByCanvasPoint(i.x,i.y),o=n.getCurrentValue(),s=o[0];s>a&&(s=a),n.setValue([s,a])})},r.prototype.bindRailEvent=function(t){},r.prototype.bindTrackEvent=function(t){var n=this,i=null;t.on("legend-track:dragstart",function(a){i={x:a.x,y:a.y}}),t.on("legend-track:drag",function(a){if(!!i){var o=n.getValueByCanvasPoint(i.x,i.y),s=n.getValueByCanvasPoint(a.x,a.y),l=n.getCurrentValue(),u=l[1]-l[0],c=n.getRange(),h=s-o;h<0?l[0]+h>c.min?n.setValue([l[0]+h,l[1]+h]):n.setValue([c.min,c.min+u]):h>0&&(h>0&&l[1]+h<c.max?n.setValue([l[0]+h,l[1]+h]):n.setValue([c.max-u,c.max])),i={x:a.x,y:a.y}}}),t.on("legend-track:dragend",function(a){i=null})},r.prototype.drawLabels=function(t){this.drawLabel("min",t),this.drawLabel("max",t)},r.prototype.drawLabel=function(t,n){var i=this.get("label"),a=i.style,o=i.align,s=i.formatter,l=this.get(t),u=this.getLabelAlignAttrs(t,o),c="label-"+t;this.addShape(n,{type:"text",id:this.getElementId(c),name:"legend-label-"+t,attrs:(0,d.pi)((0,d.pi)({x:0,y:0,text:(0,f.mf)(s)?s(l):l},a),u)})},r.prototype.getLabelAlignAttrs=function(t,n){var i=this.isVertical(),a="center",o="middle";return i?(a="start",n!=="rail"?t==="min"?o="top":o="bottom":o="top"):n!=="rail"?(o="top",t==="min"?a="start":a="end"):(a="start",o="middle"),{textAlign:a,textBaseline:o}},r.prototype.getRailPath=function(t,n,i,a){var o=this.get("rail"),s=o.size,l=o.defaultLength,u=o.type,c=this.isVertical(),h=l,v=i,p=a;v||(v=c?s:h),p||(p=c?h:s);var g=[];return u==="color"?(g.push(["M",t,n]),g.push(["L",t+v,n]),g.push(["L",t+v,n+p]),g.push(["L",t,n+p]),g.push(["Z"])):(g.push(["M",t+v,n]),g.push(["L",t+v,n+p]),g.push(["L",t,n+p]),g.push(["Z"])),g},r.prototype.drawRail=function(t){var n=this.get("rail"),i=n.style;this.addShape(t,{type:"path",id:this.getElementId("rail"),name:"legend-rail",attrs:(0,d.pi)({path:this.getRailPath(0,0)},i)})},r.prototype.getTrackColor=function(t){var n=t.length;if(!n)return null;if(n===1)return t[0];var i;this.isVertical()?i="l(90)":i="l(0)";for(var a=0;a<n;a++){var o=a/(n-1);i+=" "+o+":"+t[a]}return i},r.prototype.getTrackPath=function(t){var n=this.getRailShape(t),i=n.attr("path");return(0,f.d9)(i)},r.prototype.getClipTrackAttrs=function(t){var n=this.getCurrentValue(),i=n[0],a=n[1],o=this.getRailBBox(t),s=this.getPointByValue(i,t),l=this.getPointByValue(a,t),u=this.isVertical(),c,h,v,p;return u?(c=o.minX,h=s.y,v=o.width,p=l.y-s.y):(c=s.x,h=o.minY,v=l.x-s.x,p=o.height),{x:c,y:h,width:v,height:p}},r.prototype.getTrackAttrs=function(t){var n=this.get("track"),i=this.get("colors"),a=this.getTrackPath(t);return(0,f.CD)({path:a,fill:this.getTrackColor(i)},n.style)},r.prototype.resetTrackClip=function(t){var n=t||this.get("group"),i=this.getElementId("track"),a=n.findById(i),o=a.getClip(),s=this.getClipTrackAttrs(t);o?o.attr(s):a.setClip({type:"rect",attrs:s})},r.prototype.resetTrack=function(t){var n=this.getElementId("track"),i=t.findById(n),a=this.getTrackAttrs(t);i?i.attr(a):this.addShape(t,{type:"path",id:n,draggable:this.get("slidable"),name:"legend-track",attrs:a})},r.prototype.getPointByValue=function(t,n){var i=this.getRange(),a=i.min,o=i.max,s=(t-a)/(o-a),l=this.getRailBBox(n),u=this.isVertical(),c={x:0,y:0};return u?(c.x=l.minX+l.width/2,c.y=Ai(l.minY,l.maxY,s)):(c.x=Ai(l.minX,l.maxX,s),c.y=l.minY+l.height/2),c},r.prototype.getRailShape=function(t){var n=t||this.get("group");return n.findById(this.getElementId("rail"))},r.prototype.getRailBBox=function(t){var n=this.getRailShape(t),i=n.getBBox();return i},r.prototype.getRailCanvasBBox=function(){var t=this.get("group"),n=t.findById(this.getElementId("rail")),i=n.getCanvasBBox();return i},r.prototype.isVertical=function(){return this.get("layout")==="vertical"},r.prototype.getValueByCanvasPoint=function(t,n){var i=this.getRange(),a=i.min,o=i.max,s=this.getRailCanvasBBox(),l=this.isVertical(),u=this.get("step"),c;l?c=(n-s.minY)/s.height:c=(t-s.minX)/s.width;var h=Ai(a,o,c);if(u){var v=Math.round((h-a)/u);h=a+v*u}return h>o&&(h=o),h<a&&(h=a),h},r.prototype.getCurrentValue=function(){var t=this.get("value");if(!t){var n=this.get("values");return n?[Math.max(Math.min.apply(Math,(0,d.pr)(n,[this.get("max")])),this.get("min")),Math.min(Math.max.apply(Math,(0,d.pr)(n,[this.get("min")])),this.get("max"))]:[this.get("min"),this.get("max")]}return t},r.prototype.resetHandlers=function(t){var n=this.getCurrentValue(),i=n[0],a=n[1];this.resetHandler(t,"min",i),this.resetHandler(t,"max",a)},r.prototype.getHandlerPath=function(t,n){var i=this.isVertical(),a=[],o=t.size,s=n.x,l=n.y,u=o*d1,c=o/2,h=o/6;if(i){var v=s+u*mh;a.push(["M",s,l]),a.push(["L",v,l+c]),a.push(["L",s+u,l+c]),a.push(["L",s+u,l-c]),a.push(["L",v,l-c]),a.push(["Z"]),a.push(["M",v,l+h]),a.push(["L",s+u-2,l+h]),a.push(["M",v,l-h]),a.push(["L",s+u-2,l-h])}else{var p=l+u*mh;a.push(["M",s,l]),a.push(["L",s-c,p]),a.push(["L",s-c,l+u]),a.push(["L",s+c,l+u]),a.push(["L",s+c,p]),a.push(["Z"]),a.push(["M",s-h,p]),a.push(["L",s-h,l+u-2]),a.push(["M",s+h,p]),a.push(["L",s+h,l+u-2])}return a},r.prototype.resetHandler=function(t,n,i){var a=this.getPointByValue(i,t),o=this.get("handler"),s=this.getHandlerPath(o,a),l=this.getElementId("handler-"+n),u=t.findById(l),c=this.isVertical();u?u.attr("path",s):this.addShape(t,{type:"path",name:"legend-handler-"+n,draggable:!0,id:l,attrs:(0,d.pi)((0,d.pi)({path:s},o.style),{cursor:c?"ns-resize":"ew-resize"})})},r.prototype.fixedElements=function(t){var n=t.findById(this.getElementId("rail")),i=t.findById(this.getElementId("label-min")),a=t.findById(this.getElementId("label-max")),o=this.getDrawPoint();this.isVertical()?this.fixedVertail(i,a,n,o):this.fixedHorizontal(i,a,n,o)},r.prototype.fitRailLength=function(t,n,i,a){var o=this.isVertical(),s=o?"height":"width",l=this.get("label"),u=l.align,c=l.spacing,h=this.get("max"+(0,f.jC)(s));if(h){var v=u==="rail"?i[s]+t[s]+n[s]+c*2:i[s],p=v-h;p>0&&this.changeRailLength(a,s,i[s]-p)}},r.prototype.changeRailLength=function(t,n,i){var a=t.getBBox(),o;n==="height"?o=this.getRailPath(a.x,a.y,a.width,i):o=this.getRailPath(a.x,a.y,i,a.height),t.attr("path",o)},r.prototype.changeRailPosition=function(t,n,i){var a=t.getBBox(),o=this.getRailPath(n,i,a.width,a.height);t.attr("path",o)},r.prototype.fixedHorizontal=function(t,n,i,a){var o=this.get("label"),s=o.align,l=o.spacing,u=i.getBBox(),c=t.getBBox(),h=n.getBBox(),v=u.height;this.fitRailLength(c,h,u,i),u=i.getBBox(),s==="rail"?(t.attr({x:a.x,y:a.y+v/2}),this.changeRailPosition(i,a.x+c.width+l,a.y),n.attr({x:a.x+c.width+u.width+l*2,y:a.y+v/2})):s==="top"?(t.attr({x:a.x,y:a.y}),n.attr({x:a.x+u.width,y:a.y}),this.changeRailPosition(i,a.x,a.y+c.height+l)):(this.changeRailPosition(i,a.x,a.y),t.attr({x:a.x,y:a.y+u.height+l}),n.attr({x:a.x+u.width,y:a.y+u.height+l}))},r.prototype.fixedVertail=function(t,n,i,a){var o=this.get("label"),s=o.align,l=o.spacing,u=i.getBBox(),c=t.getBBox(),h=n.getBBox();if(this.fitRailLength(c,h,u,i),u=i.getBBox(),s==="rail")t.attr({x:a.x,y:a.y}),this.changeRailPosition(i,a.x,a.y+c.height+l),n.attr({x:a.x,y:a.y+c.height+u.height+l*2});else if(s==="right")t.attr({x:a.x+u.width+l,y:a.y}),this.changeRailPosition(i,a.x,a.y),n.attr({x:a.x+u.width+l,y:a.y+u.height});else{var v=Math.max(c.width,h.width);t.attr({x:a.x,y:a.y}),this.changeRailPosition(i,a.x+v+l,a.y),n.attr({x:a.x,y:a.y+u.height})}},r}(gh),y1=g1,On="g2-tooltip",Bn="g2-tooltip-title",Va="g2-tooltip-list",ss="g2-tooltip-list-item",ls="g2-tooltip-marker",us="g2-tooltip-value",xh="g2-tooltip-name",pu="g2-tooltip-crosshair-x",du="g2-tooltip-crosshair-y",wn,m1=(wn={},wn[""+On]={position:"absolute",visibility:"visible",zIndex:8,transition:"visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1)",backgroundColor:"rgba(255, 255, 255, 0.9)",boxShadow:"0px 0px 10px #aeaeae",borderRadius:"3px",color:"rgb(87, 87, 87)",fontSize:"12px",fontFamily:Ge.fontFamily,lineHeight:"20px",padding:"10px 10px 6px 10px"},wn[""+Bn]={marginBottom:"4px"},wn[""+Va]={margin:"0px",listStyleType:"none",padding:"0px"},wn[""+ss]={listStyleType:"none",marginBottom:"4px"},wn[""+ls]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},wn[""+us]={display:"inline-block",float:"right",marginLeft:"30px"},wn[""+pu]={position:"absolute",width:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},wn[""+du]={position:"absolute",height:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},wn);function x1(e,r,t,n,i){var a={left:e<i.x,right:e+t>i.x+i.width,top:r<i.y,bottom:r+n>i.y+i.height};return a}function w1(e,r,t,n,i,a){var o=e,s=r;switch(a){case"left":o=e-n-t,s=r-i/2;break;case"right":o=e+t,s=r-i/2;break;case"top":o=e-n/2,s=r-i-t;break;case"bottom":o=e-n/2,s=r+t;break;default:o=e+t,s=r-i-t;break}return{x:o,y:s}}function M1(e,r,t,n,i,a,o){var s=w1(e,r,t,n,i,a);if(o){var l=x1(s.x,s.y,n,i,o);a==="auto"?(l.right&&(s.x=Math.max(0,e-n-t)),l.top&&(s.y=Math.max(0,r-i-t))):a==="top"||a==="bottom"?(l.left&&(s.x=o.x),l.right&&(s.x=o.x+o.width-n),a==="top"&&l.top&&(s.y=r+t),a==="bottom"&&l.bottom&&(s.y=r-i-t)):(l.top&&(s.y=o.y),l.bottom&&(s.y=o.y+o.height-i),a==="left"&&l.left&&(s.x=e+t),a==="right"&&l.right&&(s.x=e-n-t))}return s}function S1(e,r){var t=!1;return(0,f.S6)(r,function(n){if((0,f.wH)(e,n))return t=!0,!1}),t}var C1=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,d.pi)((0,d.pi)({},t),{name:"tooltip",type:"html",x:0,y:0,items:[],customContent:null,containerTpl:'<div class="'+On+'"><div class="'+Bn+'"></div><ul class="'+Va+'"></ul></div>',itemTpl:'<li class="'+ss+`" data-index={index}>
  43. <span class="`+ls+`" style="background:{color}"></span>
  44. <span class="`+xh+`">{name}</span>:
  45. <span class="`+us+`">{value}</span>
  46. </li>`,xCrosshairTpl:'<div class="'+pu+'"></div>',yCrosshairTpl:'<div class="'+du+'"></div>',title:null,showTitle:!0,region:null,crosshairsRegion:null,containerClassName:On,crosshairs:null,offset:10,position:"right",domStyles:null,defaultStyles:m1})},r.prototype.render=function(){this.get("customContent")?this.renderCustomContent():(this.resetTitle(),this.renderItems()),this.resetPosition()},r.prototype.clear=function(){this.clearCrosshairs(),this.setTitle(""),this.clearItemDoms()},r.prototype.show=function(){var t=this.getContainer();!t||this.destroyed||(this.set("visible",!0),nt(t,{visibility:"visible"}),this.setCrossHairsVisible(!0))},r.prototype.hide=function(){var t=this.getContainer();!t||this.destroyed||(this.set("visible",!1),nt(t,{visibility:"hidden"}),this.setCrossHairsVisible(!1))},r.prototype.getLocation=function(){return{x:this.get("x"),y:this.get("y")}},r.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetPosition()},r.prototype.setCrossHairsVisible=function(t){var n=t?"":"none",i=this.get("xCrosshairDom"),a=this.get("yCrosshairDom");i&&nt(i,{display:n}),a&&nt(a,{display:n})},r.prototype.initContainer=function(){if(e.prototype.initContainer.call(this),this.get("customContent")){this.get("container")&&this.get("container").remove();var t=this.getHtmlContentNode();this.get("parent").appendChild(t),this.set("container",t),this.resetStyles(),this.applyStyles()}},r.prototype.updateInner=function(t){this.get("customContent")?this.renderCustomContent():(S1(t,["title","showTitle"])&&this.resetTitle(),(0,f.wH)(t,"items")&&this.renderItems()),e.prototype.updateInner.call(this,t)},r.prototype.initDom=function(){this.cacheDoms()},r.prototype.removeDom=function(){e.prototype.removeDom.call(this),this.clearCrosshairs()},r.prototype.resetPosition=function(){var t=this.get("x"),n=this.get("y"),i=this.get("offset"),a=this.getOffset(),o=a.offsetX,s=a.offsetY,l=this.get("position"),u=this.get("region"),c=this.getContainer(),h=this.getBBox(),v=h.width,p=h.height,g;u&&(g=ka(u));var y=M1(t,n,i,v,p,l,g);nt(c,{left:Br(y.x+o),top:Br(y.y+s)}),this.resetCrosshairs()},r.prototype.renderCustomContent=function(){var t=this.getHtmlContentNode(),n=this.get("parent"),i=this.get("container");i&&i.parentNode===n?n.replaceChild(t,i):n.appendChild(t),this.set("container",t),this.resetStyles(),this.applyStyles()},r.prototype.getHtmlContentNode=function(){var t,n=this.get("customContent");if(n){var i=n(this.get("title"),this.get("items"));(0,f.kK)(i)?t=i:t=Z(i)}return t},r.prototype.cacheDoms=function(){var t=this.getContainer(),n=t.getElementsByClassName(Bn)[0],i=t.getElementsByClassName(Va)[0];this.set("titleDom",n),this.set("listDom",i)},r.prototype.resetTitle=function(){var t=this.get("title"),n=this.get("showTitle");n&&t?this.setTitle(t):this.setTitle("")},r.prototype.setTitle=function(t){var n=this.get("titleDom");n&&(n.innerText=t)},r.prototype.resetCrosshairs=function(){var t=this.get("crosshairsRegion"),n=this.get("crosshairs");if(!t||!n)this.clearCrosshairs();else{var i=ka(t),a=this.get("xCrosshairDom"),o=this.get("yCrosshairDom");n==="x"?(this.resetCrosshair("x",i),o&&(o.remove(),this.set("yCrosshairDom",null))):n==="y"?(this.resetCrosshair("y",i),a&&(a.remove(),this.set("xCrosshairDom",null))):(this.resetCrosshair("x",i),this.resetCrosshair("y",i)),this.setCrossHairsVisible(this.get("visible"))}},r.prototype.resetCrosshair=function(t,n){var i=this.checkCrosshair(t),a=this.get(t);t==="x"?nt(i,{left:Br(a),top:Br(n.y),height:Br(n.height)}):nt(i,{top:Br(a),left:Br(n.x),width:Br(n.width)})},r.prototype.checkCrosshair=function(t){var n=t+"CrosshairDom",i=t+"CrosshairTpl",a="CROSSHAIR_"+t.toUpperCase(),o=vt[a],s=this.get(n),l=this.get("parent");return s||(s=Z(this.get(i)),this.applyStyle(o,s),l.appendChild(s),this.set(n,s)),s},r.prototype.renderItems=function(){this.clearItemDoms();var t=this.get("items"),n=this.get("itemTpl"),i=this.get("listDom");i&&((0,f.S6)(t,function(a){var o=Pn.toCSSGradient(a.color),s=(0,d.pi)((0,d.pi)({},a),{color:o}),l=(0,f.ng)(n,s),u=Z(l);i.appendChild(u)}),this.applyChildrenStyles(i,this.get("domStyles")))},r.prototype.clearItemDoms=function(){this.get("listDom")&&ru(this.get("listDom"))},r.prototype.clearCrosshairs=function(){var t=this.get("xCrosshairDom"),n=this.get("yCrosshairDom");t&&t.remove(),n&&n.remove(),this.set("xCrosshairDom",null),this.set("yCrosshairDom",null)},r}(au),b1=C1,A1={opacity:0},T1={stroke:"#C5C5C5",strokeOpacity:.85},E1={fill:"#CACED4",opacity:.85},_1=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/ig,F1=/[^\s\,]+/ig;function D6(e){var r=e||[];if(isArray(r))return r;if(isString(r))return r=r.match(_1),each(r,function(t,n){if(t=t.match(F1),t[0].length>1){var i=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=i}each(t,function(a,o){isNaN(a)||(t[o]=+a)}),r[n]=t}),r}var O6=null;function I1(e,r,t,n){var i=[],a=!!n,o,s,l,u,c,h,v;if(a){l=n[0],u=n[1];for(var p=0,g=e.length;p<g;p+=1){var y=e[p];l=ye.VV([0,0],l,y),u=ye.Fp([0,0],u,y)}}for(var p=0,x=e.length;p<x;p+=1){var y=e[p];if(p===0&&!t)v=y;else if(p===x-1&&!t)h=y,i.push(v),i.push(h);else{var m=[p?p-1:x-1,p-1][t?0:1];o=e[m],s=e[t?(p+1)%x:p+1];var w=[0,0];w=ye.lu(w,s,o),w=ye.bA(w,w,r);var M=ye.TE(y,o),S=ye.TE(y,s),A=M+S;A!==0&&(M/=A,S/=A);var D=ye.bA([0,0],w,-M),V=ye.bA([0,0],w,S);h=ye.IH([0,0],y,D),c=ye.IH([0,0],y,V),c=ye.VV([0,0],c,ye.Fp([0,0],s,y)),c=ye.Fp([0,0],c,ye.VV([0,0],s,y)),D=ye.lu([0,0],c,y),D=ye.bA([0,0],D,-M/S),h=ye.IH([0,0],y,D),h=ye.VV([0,0],h,ye.Fp([0,0],o,y)),h=ye.Fp([0,0],h,ye.VV([0,0],o,y)),V=ye.lu([0,0],y,h),V=ye.bA([0,0],V,S/M),c=ye.IH([0,0],y,V),a&&(h=ye.Fp([0,0],h,l),h=ye.VV([0,0],h,u),c=ye.Fp([0,0],c,l),c=ye.VV([0,0],c,u)),i.push(v),i.push(h),v=c}}return t&&i.push(i.shift()),i}function L1(e,r,t){r===void 0&&(r=!1),t===void 0&&(t=[[0,0],[1,1]]);for(var n=!!r,i=[],a=0,o=e.length;a<o;a+=2)i.push([e[a],e[a+1]]);for(var s=I1(i,.4,n,t),l=i.length,u=[],c,h,v,a=0;a<l-1;a+=1)c=s[a*2],h=s[a*2+1],v=i[a+1],u.push(["C",c[0],c[1],h[0],h[1],v[0],v[1]]);return n&&(c=s[l],h=s[l+1],v=i[0],u.push(["C",c[0],c[1],h[0],h[1],v[0],v[1]])),u}var P1=L1;function k1(e,r,t){var n=null,i=t;return r<i&&(i=r,n="add"),e<i&&(i=e,n="del"),{type:n,min:i}}var D1=function(e,r){var t=e.length,n=r.length,i,a,o=0;if(t===0||n===0)return null;for(var s=[],l=0;l<=t;l++)s[l]=[],s[l][0]={min:l};for(var u=0;u<=n;u++)s[0][u]={min:u};for(var l=1;l<=t;l++){i=e[l-1];for(var u=1;u<=n;u++){a=r[u-1],isEqual(i,a)?o=0:o=1;var c=s[l-1][u].min+1,h=s[l][u-1].min+1,v=s[l-1][u-1].min+o;s[l][u]=k1(c,h,v)}}return s};function B6(e,r){var t=D1(e,r),n=e.length,i=r.length,a=[],o=1,s=1;if(t[n][i]!==n){for(var l=1;l<=n;l++){var u=t[l][l].min;s=l;for(var c=o;c<=i;c++)t[l][c].min<u&&(u=t[l][c].min,s=c);o=s,t[l][o].type&&a.push({index:l-1,type:t[l][o].type})}for(var l=a.length-1;l>=0;l--)o=a[l].index,a[l].type==="add"?e.splice(o,0,[].concat(e[o])):e.splice(o,1)}if(n=e.length,n<i)for(var l=0;l<i-n;l++)e[n-1][0]==="z"||e[n-1][0]==="Z"?e.splice(n-2,0,e[n-2]):e.push(e[n-1]);return e}var Ua=`
  47. \v\f\r \xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029`,O1=new RegExp("([a-z])["+Ua+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+Ua+"]*,?["+Ua+"]*)+)","ig"),B1=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+Ua+"]*,?["+Ua+"]*","ig");function R6(e){if(!e)return null;if(isArray(e))return e;var r={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},t=[];return String(e).replace(O1,function(n,i,a){var o=[],s=i.toLowerCase();if(a.replace(B1,function(l,u){u&&o.push(+u)}),s==="m"&&o.length>2&&(t.push([i].concat(o.splice(0,2))),s="l",i=i==="m"?"l":"L"),s==="o"&&o.length===1&&t.push([i,o[0]]),s==="r")t.push([i].concat(o));else for(;o.length>=r[s]&&(t.push([i].concat(o.splice(0,r[s]))),!!r[s]););return""}),t}var R1=/[a-z]/;function wh(e,r){return[r[0]+(r[0]-e[0]),r[1]+(r[1]-e[1])]}function N6(e){var r=parsePathString(e);if(!r||!r.length)return[["M",0,0]];for(var t=!1,n=0;n<r.length;n++){var i=r[n][0];if(R1.test(i)||["V","H","T","S"].indexOf(i)>=0){t=!0;break}}if(!t)return r;var a=[],o=0,s=0,l=0,u=0,c=0,h,v,p=r[0];(p[0]==="M"||p[0]==="m")&&(o=+p[1],s=+p[2],l=o,u=s,c++,a[0]=["M",o,s]);for(var n=c,g=r.length;n<g;n++){var y=r[n],x=a[n-1],m=[],i=y[0],w=i.toUpperCase();if(i!==w)switch(m[0]=w,w){case"A":m[1]=y[1],m[2]=y[2],m[3]=y[3],m[4]=y[4],m[5]=y[5],m[6]=+y[6]+o,m[7]=+y[7]+s;break;case"V":m[1]=+y[1]+s;break;case"H":m[1]=+y[1]+o;break;case"M":l=+y[1]+o,u=+y[2]+s,m[1]=l,m[2]=u;break;default:for(var M=1,S=y.length;M<S;M++)m[M]=+y[M]+(M%2?o:s)}else m=r[n];switch(w){case"Z":o=+l,s=+u;break;case"H":o=m[1],m=["L",o,s];break;case"V":s=m[1],m=["L",o,s];break;case"T":o=m[1],s=m[2];var A=wh([x[1],x[2]],[x[3],x[4]]);m=["Q",A[0],A[1],o,s];break;case"S":o=m[m.length-2],s=m[m.length-1];var D=x.length,V=wh([x[D-4],x[D-3]],[x[D-2],x[D-1]]);m=["C",V[0],V[1],m[1],m[2],o,s];break;case"M":l=m[m.length-2],u=m[m.length-1];break;default:o=m[m.length-2],s=m[m.length-1]}a.push(m)}return a}var Ha=Math.PI*2,gu=function(e,r,t,n,i,a,o){var s=e.x,l=e.y;s*=r,l*=t;var u=n*s-i*l,c=i*s+n*l;return{x:u+a,y:c+o}},N1=function(e,r){var t=r===1.5707963267948966?.551915024494:r===-1.5707963267948966?-.551915024494:4/3*Math.tan(r/4),n=Math.cos(e),i=Math.sin(e),a=Math.cos(e+r),o=Math.sin(e+r);return[{x:n-i*t,y:i+n*t},{x:a+o*t,y:o-a*t},{x:a,y:o}]},Mh=function(e,r,t,n){var i=e*n-r*t<0?-1:1,a=e*t+r*n;return a>1&&(a=1),a<-1&&(a=-1),i*Math.acos(a)},z1=function(e,r,t,n,i,a,o,s,l,u,c,h){var v=Math.pow(i,2),p=Math.pow(a,2),g=Math.pow(c,2),y=Math.pow(h,2),x=v*p-v*y-p*g;x<0&&(x=0),x/=v*y+p*g,x=Math.sqrt(x)*(o===s?-1:1);var m=x*i/a*h,w=x*-a/i*c,M=u*m-l*w+(e+t)/2,S=l*m+u*w+(r+n)/2,A=(c-m)/i,D=(h-w)/a,V=(-c-m)/i,K=(-h-w)/a,Mt=Mh(1,0,A,D),ot=Mh(A,D,V,K);return s===0&&ot>0&&(ot-=Ha),s===1&&ot<0&&(ot+=Ha),[M,S,Mt,ot]},V1=function(e){var r=e.px,t=e.py,n=e.cx,i=e.cy,a=e.rx,o=e.ry,s=e.xAxisRotation,l=s===void 0?0:s,u=e.largeArcFlag,c=u===void 0?0:u,h=e.sweepFlag,v=h===void 0?0:h,p=[];if(a===0||o===0)return[{x1:0,y1:0,x2:0,y2:0,x:n,y:i}];var g=Math.sin(l*Ha/360),y=Math.cos(l*Ha/360),x=y*(r-n)/2+g*(t-i)/2,m=-g*(r-n)/2+y*(t-i)/2;if(x===0&&m===0)return[{x1:0,y1:0,x2:0,y2:0,x:n,y:i}];a=Math.abs(a),o=Math.abs(o);var w=Math.pow(x,2)/Math.pow(a,2)+Math.pow(m,2)/Math.pow(o,2);w>1&&(a*=Math.sqrt(w),o*=Math.sqrt(w));var M=z1(r,t,n,i,a,o,c,v,g,y,x,m),S=M[0],A=M[1],D=M[2],V=M[3],K=Math.abs(V)/(Ha/4);Math.abs(1-K)<1e-7&&(K=1);var Mt=Math.max(Math.ceil(K),1);V/=Mt;for(var ot=0;ot<Mt;ot++)p.push(N1(D,V)),D+=V;return p.map(function(Lt){var Qt=gu(Lt[0],a,o,y,g,S,A),ge=Qt.x,we=Qt.y,Ae=gu(Lt[1],a,o,y,g,S,A),zt=Ae.x,ie=Ae.y,fe=gu(Lt[2],a,o,y,g,S,A),ue=fe.x,he=fe.y;return{x1:ge,y1:we,x2:zt,y2:ie,x:ue,y:he}})};function z6(e,r,t,n,i,a,o,s,l){var u=V1({px:e,py:r,cx:s,cy:l,rx:t,ry:n,xAxisRotation:i,largeArcFlag:a,sweepFlag:o});return u.reduce(function(c,h){var v=h.x1,p=h.y1,g=h.x2,y=h.y2,x=h.x,m=h.y;return c.push(v,p,g,y,x,m),c},[])}function V6(e,r){"TQ".indexOf(e[0])<0&&(r.qx=null,r.qy=null);var t=e.slice(1),n=t[0],i=t[1];switch(e[0]){case"M":return r.x=n,r.y=i,e;case"A":return["C"].concat(arcToCubic.apply(0,[r.x1,r.y1].concat(e.slice(1))));case"Q":return r.qx=n,r.qy=i,["C"].concat(quadToCubic.apply(0,[r.x1,r.y1].concat(e.slice(1))));case"L":return["C"].concat(lineToCubic(r.x1,r.y1,e[1],e[2]));case"H":return["C"].concat(lineToCubic(r.x1,r.y1,e[1],r.y1));case"V":return["C"].concat(lineToCubic(r.x1,r.y1,r.x1,e[1]));case"Z":return["C"].concat(lineToCubic(r.x1,r.y1,r.x,r.y));default:}return e}function U6(e,r){r===void 0&&(r=!1);for(var t=path2Absolute(e),n={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null},i=[],a="",o=t.length,s,l,u=[],c=0;c<o;c+=1)t[c]&&(a=t[c][0]),i[c]=a,t[c]=segmentToCubic(t[c],n),U1(t,i,c),o=t.length,a==="Z"&&u.push(c),s=t[c],l=s.length,n.x1=+s[l-2],n.y1=+s[l-1],n.x2=+s[l-4]||n.x1,n.y2=+s[l-3]||n.y1;return r?[t,u]:t}function U1(e,r,t){if(e[t].length>7){e[t].shift();for(var n=e[t],i=t;n.length;)r[t]="A",e.splice(i+=1,0,["C"].concat(n.splice(0,6)));e.splice(t,1)}}var Sh=function(e,r,t,n,i){var a=-3*r+9*t-9*n+3*i,o=e*a+6*r-12*t+6*n;return e*o-3*r+3*t},Ch=function(e,r,t,n,i,a,o,s,l){l===null&&(l=1),l=l>1?1:l<0?0:l;for(var u=l/2,c=12,h=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],v=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],p=0,g=0;g<c;g++){var y=u*h[g]+u,x=Sh(y,e,t,i,o),m=Sh(y,r,n,a,s),w=x*x+m*m;p+=v[g]*Math.sqrt(w)}return u*p},H1=function(e,r,t,n,i,a,o,s){for(var l=[],u=[[],[]],c,h,v,p,g=0;g<2;++g){if(g===0?(h=6*e-12*t+6*i,c=-3*e+9*t-9*i+3*o,v=3*t-3*e):(h=6*r-12*n+6*a,c=-3*r+9*n-9*a+3*s,v=3*n-3*r),Math.abs(c)<1e-12){if(Math.abs(h)<1e-12)continue;p=-v/h,p>0&&p<1&&l.push(p);continue}var y=h*h-4*v*c,x=Math.sqrt(y);if(!(y<0)){var m=(-h+x)/(2*c);m>0&&m<1&&l.push(m);var w=(-h-x)/(2*c);w>0&&w<1&&l.push(w)}}for(var M=l.length,S=M,A;M--;)p=l[M],A=1-p,u[0][M]=A*A*A*e+3*A*A*p*t+3*A*p*p*i+p*p*p*o,u[1][M]=A*A*A*r+3*A*A*p*n+3*A*p*p*a+p*p*p*s;return u[0][S]=e,u[1][S]=r,u[0][S+1]=o,u[1][S+1]=s,u[0].length=u[1].length=S+2,{min:{x:Math.min.apply(0,u[0]),y:Math.min.apply(0,u[1])},max:{x:Math.max.apply(0,u[0]),y:Math.max.apply(0,u[1])}}},G1=function(e,r,t,n,i,a,o,s){if(!(Math.max(e,t)<Math.min(i,o)||Math.min(e,t)>Math.max(i,o)||Math.max(r,n)<Math.min(a,s)||Math.min(r,n)>Math.max(a,s))){var l=(e*n-r*t)*(i-o)-(e-t)*(i*s-a*o),u=(e*n-r*t)*(a-s)-(r-n)*(i*s-a*o),c=(e-t)*(a-s)-(r-n)*(i-o);if(!!c){var h=l/c,v=u/c,p=+h.toFixed(2),g=+v.toFixed(2);if(!(p<+Math.min(e,t).toFixed(2)||p>+Math.max(e,t).toFixed(2)||p<+Math.min(i,o).toFixed(2)||p>+Math.max(i,o).toFixed(2)||g<+Math.min(r,n).toFixed(2)||g>+Math.max(r,n).toFixed(2)||g<+Math.min(a,s).toFixed(2)||g>+Math.max(a,s).toFixed(2)))return{x:h,y:v}}}},Qn=function(e,r,t){return r>=e.x&&r<=e.x+e.width&&t>=e.y&&t<=e.y+e.height},yu=function(e,r,t,n){return e===null&&(e=r=t=n=0),r===null&&(r=e.y,t=e.width,n=e.height,e=e.x),{x:e,y:r,width:t,w:t,height:n,h:n,x2:e+t,y2:r+n,cx:e+t/2,cy:r+n/2,r1:Math.min(t,n)/2,r2:Math.max(t,n)/2,r0:Math.sqrt(t*t+n*n)/2,path:rectPath(e,r,t,n),vb:[e,r,t,n].join(" ")}},Y1=function(e,r){return e=yu(e),r=yu(r),Qn(r,e.x,e.y)||Qn(r,e.x2,e.y)||Qn(r,e.x,e.y2)||Qn(r,e.x2,e.y2)||Qn(e,r.x,r.y)||Qn(e,r.x2,r.y)||Qn(e,r.x,r.y2)||Qn(e,r.x2,r.y2)||(e.x<r.x2&&e.x>r.x||r.x<e.x2&&r.x>e.x)&&(e.y<r.y2&&e.y>r.y||r.y<e.y2&&r.y>e.y)},bh=function(e,r,t,n,i,a,o,s){isArray(e)||(e=[e,r,t,n,i,a,o,s]);var l=H1.apply(null,e);return yu(l.min.x,l.min.y,l.max.x-l.min.x,l.max.y-l.min.y)},Ah=function(e,r,t,n,i,a,o,s,l){var u=1-l,c=Math.pow(u,3),h=Math.pow(u,2),v=l*l,p=v*l,g=c*e+h*3*l*t+u*3*l*l*i+p*o,y=c*r+h*3*l*n+u*3*l*l*a+p*s,x=e+2*l*(t-e)+v*(i-2*t+e),m=r+2*l*(n-r)+v*(a-2*n+r),w=t+2*l*(i-t)+v*(o-2*i+t),M=n+2*l*(a-n)+v*(s-2*a+n),S=u*e+l*t,A=u*r+l*n,D=u*i+l*o,V=u*a+l*s,K=90-Math.atan2(x-w,m-M)*180/Math.PI;return{x:g,y,m:{x,y:m},n:{x:w,y:M},start:{x:S,y:A},end:{x:D,y:V},alpha:K}},X1=function(e,r,t){var n=bh(e),i=bh(r);if(!Y1(n,i))return t?0:[];for(var a=Ch.apply(0,e),o=Ch.apply(0,r),s=~~(a/8),l=~~(o/8),u=[],c=[],h={},v=t?0:[],p=0;p<s+1;p++){var g=Ah.apply(0,e.concat(p/s));u.push({x:g.x,y:g.y,t:p/s})}for(var p=0;p<l+1;p++){var g=Ah.apply(0,r.concat(p/l));c.push({x:g.x,y:g.y,t:p/l})}for(var p=0;p<s;p++)for(var y=0;y<l;y++){var x=u[p],m=u[p+1],w=c[y],M=c[y+1],S=Math.abs(m.x-x.x)<.001?"y":"x",A=Math.abs(M.x-w.x)<.001?"y":"x",D=G1(x.x,x.y,m.x,m.y,w.x,w.y,M.x,M.y);if(D){if(h[D.x.toFixed(4)]===D.y.toFixed(4))continue;h[D.x.toFixed(4)]=D.y.toFixed(4);var V=x.t+Math.abs((D[S]-x[S])/(m[S]-x[S]))*(m.t-x.t),K=w.t+Math.abs((D[A]-w[A])/(M[A]-w[A]))*(M.t-w.t);V>=0&&V<=1&&K>=0&&K<=1&&(t?v++:v.push({x:D.x,y:D.y,t1:V,t2:K}))}}return v},W1=function(e,r,t){e=path2Curve(e),r=path2Curve(r);for(var n,i,a,o,s,l,u,c,h,v,p=t?0:[],g=0,y=e.length;g<y;g++){var x=e[g];if(x[0]==="M")n=s=x[1],i=l=x[2];else{x[0]==="C"?(h=[n,i].concat(x.slice(1)),n=h[6],i=h[7]):(h=[n,i,n,i,s,l,s,l],n=s,i=l);for(var m=0,w=r.length;m<w;m++){var M=r[m];if(M[0]==="M")a=u=M[1],o=c=M[2];else{M[0]==="C"?(v=[a,o].concat(M.slice(1)),a=v[6],o=v[7]):(v=[a,o,a,o,u,c,u,c],a=u,o=c);var S=X1(h,v,t);if(t)p+=S;else{for(var A=0,D=S.length;A<D;A++)S[A].segment1=g,S[A].segment2=m,S[A].bez1=h,S[A].bez2=v;p=p.concat(S)}}}}}return p};function H6(e,r){return W1(e,r)}function cs(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function mu(e,r){return cs(e)*cs(r)?(e[0]*r[0]+e[1]*r[1])/(cs(e)*cs(r)):1}function Th(e,r){return(e[0]*r[1]<e[1]*r[0]?-1:1)*Math.acos(mu(e,r))}function Eh(e,r){return e[0]===r[0]&&e[1]===r[1]}function G6(e,r){var t=r[1],n=r[2],i=mod(toRadian(r[3]),Math.PI*2),a=r[4],o=r[5],s=e[0],l=e[1],u=r[6],c=r[7],h=Math.cos(i)*(s-u)/2+Math.sin(i)*(l-c)/2,v=-1*Math.sin(i)*(s-u)/2+Math.cos(i)*(l-c)/2,p=h*h/(t*t)+v*v/(n*n);p>1&&(t*=Math.sqrt(p),n*=Math.sqrt(p));var g=t*t*(v*v)+n*n*(h*h),y=g?Math.sqrt((t*t*(n*n)-g)/g):1;a===o&&(y*=-1),isNaN(y)&&(y=0);var x=n?y*t*v/n:0,m=t?y*-n*h/t:0,w=(s+u)/2+Math.cos(i)*x-Math.sin(i)*m,M=(l+c)/2+Math.sin(i)*x+Math.cos(i)*m,S=[(h-x)/t,(v-m)/n],A=[(-1*h-x)/t,(-1*v-m)/n],D=Th([1,0],S),V=Th(S,A);return mu(S,A)<=-1&&(V=Math.PI),mu(S,A)>=1&&(V=0),o===0&&V>0&&(V=V-2*Math.PI),o===1&&V<0&&(V=V+2*Math.PI),{cx:w,cy:M,rx:Eh(e,[u,c])?0:t,ry:Eh(e,[u,c])?0:n,startAngle:D,endAngle:D+V,xRotation:i,arcFlag:a,sweepFlag:o}}function _h(e,r){return[r[0]+(r[0]-e[0]),r[1]+(r[1]-e[1])]}function Y6(e){e=parsePath(e);for(var r=[],t=null,n=null,i=null,a=0,o=e.length,s=0;s<o;s++){var l=e[s];n=e[s+1];var u=l[0],c={command:u,prePoint:t,params:l,startTangent:null,endTangent:null};switch(u){case"M":i=[l[1],l[2]],a=s;break;case"A":var h=getArcParams(t,l);c.arcParams=h;break;default:break}if(u==="Z")t=i,n=e[a+1];else{var v=l.length;t=[l[v-2],l[v-1]]}n&&n[0]==="Z"&&(n=e[a],r[a]&&(r[a].prePoint=t)),c.currentPoint=t,r[a]&&isSamePoint(t,r[a].currentPoint)&&(r[a].prePoint=c.prePoint);var p=n?[n[n.length-2],n[n.length-1]]:null;c.nextPoint=p;var g=c.prePoint;if(["L","H","V"].includes(u))c.startTangent=[g[0]-t[0],g[1]-t[1]],c.endTangent=[t[0]-g[0],t[1]-g[1]];else if(u==="Q"){var y=[l[1],l[2]];c.startTangent=[g[0]-y[0],g[1]-y[1]],c.endTangent=[t[0]-y[0],t[1]-y[1]]}else if(u==="T"){var x=r[s-1],y=_h(x.currentPoint,g);x.command==="Q"?(c.command="Q",c.startTangent=[g[0]-y[0],g[1]-y[1]],c.endTangent=[t[0]-y[0],t[1]-y[1]]):(c.command="TL",c.startTangent=[g[0]-t[0],g[1]-t[1]],c.endTangent=[t[0]-g[0],t[1]-g[1]])}else if(u==="C"){var m=[l[1],l[2]],w=[l[3],l[4]];c.startTangent=[g[0]-m[0],g[1]-m[1]],c.endTangent=[t[0]-w[0],t[1]-w[1]],c.startTangent[0]===0&&c.startTangent[1]===0&&(c.startTangent=[m[0]-w[0],m[1]-w[1]]),c.endTangent[0]===0&&c.endTangent[1]===0&&(c.endTangent=[w[0]-m[0],w[1]-m[1]])}else if(u==="S"){var x=r[s-1],m=_h(x.currentPoint,g),w=[l[1],l[2]];x.command==="C"?(c.command="C",c.startTangent=[g[0]-m[0],g[1]-m[1]],c.endTangent=[t[0]-w[0],t[1]-w[1]]):(c.command="SQ",c.startTangent=[g[0]-w[0],g[1]-w[1]],c.endTangent=[t[0]-w[0],t[1]-w[1]])}else if(u==="A"){var M=.001,S=c.arcParams||{},A=S.cx,D=A===void 0?0:A,V=S.cy,K=V===void 0?0:V,Mt=S.rx,ot=Mt===void 0?0:Mt,Lt=S.ry,Qt=Lt===void 0?0:Lt,ge=S.sweepFlag,we=ge===void 0?0:ge,Ae=S.startAngle,zt=Ae===void 0?0:Ae,ie=S.endAngle,fe=ie===void 0?0:ie;we===0&&(M*=-1);var ue=ot*Math.cos(zt-M)+D,he=Qt*Math.sin(zt-M)+K;c.startTangent=[ue-i[0],he-i[1]];var Te=ot*Math.cos(zt+fe+M)+D,Be=Qt*Math.sin(zt+fe-M)+K;c.endTangent=[g[0]-Te,g[1]-Be]}r.push(c)}return r}function Fh(e){for(var r=[],t=e.length,n=0;n<t-1;n++){var i=e[n],a=e[n+1];r.push({from:{x:i[0],y:i[1]},to:{x:a[0],y:a[1]}})}if(r.length>1){var o=e[0],s=e[t-1];r.push({from:{x:s[0],y:s[1]},to:{x:o[0],y:o[1]}})}return r}function Z1(e,r){var t=!1;return each(e,function(n){if(getLineIntersect(n.from,n.to,r.from,r.to))return t=!0,!1}),t}function Ih(e){var r=e.map(function(n){return n[0]}),t=e.map(function(n){return n[1]});return{minX:Math.min.apply(null,r),maxX:Math.max.apply(null,r),minY:Math.min.apply(null,t),maxY:Math.max.apply(null,t)}}function q1(e,r){return!(r.minX>e.maxX||r.maxX<e.minX||r.minY>e.maxY||r.maxY<e.minY)}function X6(e,r){if(e.length<2||r.length<2)return!1;var t=Ih(e),n=Ih(r);if(!q1(t,n))return!1;var i=!1;if(each(r,function(l){if(isPointInPolygon(e,l[0],l[1]))return i=!0,!1}),i||(each(e,function(l){if(isPointInPolygon(r,l[0],l[1]))return i=!0,!1}),i))return!0;var a=Fh(e),o=Fh(r),s=!1;return each(o,function(l){if(Z1(a,l))return s=!0,!1}),s}function $1(e){return(0,f.UI)(e,function(r,t){var n=t===0?"M":"L",i=r[0],a=r[1];return[n,i,a]})}function Lh(e){return $1(e)}function j1(e){if(e.length<=2)return Lh(e);var r=[];(0,f.S6)(e,function(o){(0,f.Xy)(o,r.slice(r.length-2))||r.push(o[0],o[1])});var t=P1(r,!1),n=(0,f.YM)(e),i=n[0],a=n[1];return t.unshift(["M",i,a]),t}function K1(e,r,t,n){n===void 0&&(n=!0);var i=new Mr({values:e}),a=new jn({values:(0,f.UI)(e,function(s,l){return l})}),o=(0,f.UI)(e,function(s,l){return[a.scale(l)*r,t-i.scale(s)*t]});return n?j1(o):Lh(o)}function J1(e,r){var t=new Mr({values:e}),n=t.max<0?t.max:Math.max(0,t.min);return r-t.scale(n)*r}function Q1(e,r,t,n){var i=(0,d.pr)(e),a=J1(n,t);return i.push(["L",r,a]),i.push(["L",0,a]),i.push(["Z"]),i}var tw=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,d.pi)((0,d.pi)({},t),{name:"trend",x:0,y:0,width:200,height:16,smooth:!0,isArea:!1,data:[],backgroundStyle:A1,lineStyle:T1,areaStyle:E1})},r.prototype.renderInner=function(t){var n=this.cfg,i=n.width,a=n.height,o=n.data,s=n.smooth,l=n.isArea,u=n.backgroundStyle,c=n.lineStyle,h=n.areaStyle;this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:(0,d.pi)({x:0,y:0,width:i,height:a},u)});var v=K1(o,i,a,s);if(this.addShape(t,{id:this.getElementId("line"),type:"path",attrs:(0,d.pi)({path:v},c)}),l){var p=Q1(v,i,a,o);this.addShape(t,{id:this.getElementId("area"),type:"path",attrs:(0,d.pi)({path:p},h)})}},r.prototype.applyOffset=function(){var t=this.cfg,n=t.x,i=t.y;this.moveElementTo(this.get("group"),{x:n,y:i})},r}(Ar),W6=null,Ph={fill:"#F7F7F7",stroke:"#BFBFBF",radius:2,opacity:1,cursor:"ew-resize",highLightFill:"#FFF"},kh=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,d.pi)((0,d.pi)({},t),{name:"handler",x:0,y:0,width:10,height:24,style:Ph})},r.prototype.renderInner=function(t){var n=this.cfg,i=n.width,a=n.height,o=n.style,s=o.fill,l=o.stroke,u=o.radius,c=o.opacity,h=o.cursor;this.addShape(t,{type:"rect",id:this.getElementId("background"),attrs:{x:0,y:0,width:i,height:a,fill:s,stroke:l,radius:u,opacity:c,cursor:h}});var v=1/3*i,p=2/3*i,g=1/4*a,y=3/4*a;this.addShape(t,{id:this.getElementId("line-left"),type:"line",attrs:{x1:v,y1:g,x2:v,y2:y,stroke:l,cursor:h}}),this.addShape(t,{id:this.getElementId("line-right"),type:"line",attrs:{x1:p,y1:g,x2:p,y2:y,stroke:l,cursor:h}})},r.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},r.prototype.initEvent=function(){this.bindEvents()},r.prototype.bindEvents=function(){var t=this;this.get("group").on("mouseenter",function(){var n=t.get("style").highLightFill;t.getElementByLocalId("background").attr("fill",n),t.draw()}),this.get("group").on("mouseleave",function(){var n=t.get("style").fill;t.getElementByLocalId("background").attr("fill",n),t.draw()})},r.prototype.draw=function(){var t=this.get("container").get("canvas");t&&t.draw()},r}(Ar),Z6=null,ew={fill:"#416180",opacity:.05},rw={fill:"#5B8FF9",opacity:.15,cursor:"move"},fs=10,nw={width:fs,height:24},iw={textBaseline:"middle",fill:"#000",opacity:.45},aw="sliderchange",ow=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.onMouseDown=function(n){return function(i){t.currentTarget=n;var a=i.originalEvent;a.stopPropagation(),a.preventDefault(),t.prevX=(0,f.U2)(a,"touches.0.pageX",a.pageX),t.prevY=(0,f.U2)(a,"touches.0.pageY",a.pageY);var o=t.getContainerDOM();o.addEventListener("mousemove",t.onMouseMove),o.addEventListener("mouseup",t.onMouseUp),o.addEventListener("mouseleave",t.onMouseUp),o.addEventListener("touchmove",t.onMouseMove),o.addEventListener("touchend",t.onMouseUp),o.addEventListener("touchcancel",t.onMouseUp)}},t.onMouseMove=function(n){var i=t.cfg.width,a=[t.get("start"),t.get("end")];n.stopPropagation(),n.preventDefault();var o=(0,f.U2)(n,"touches.0.pageX",n.pageX),s=(0,f.U2)(n,"touches.0.pageY",n.pageY),l=o-t.prevX,u=t.adjustOffsetRange(l/i);t.updateStartEnd(u),t.updateUI(t.getElementByLocalId("foreground"),t.getElementByLocalId("minText"),t.getElementByLocalId("maxText")),t.prevX=o,t.prevY=s,t.draw(),t.emit(aw,[t.get("start"),t.get("end")].sort()),t.delegateEmit("valuechanged",{originValue:a,value:[t.get("start"),t.get("end")]})},t.onMouseUp=function(){t.currentTarget&&(t.currentTarget=void 0);var n=t.getContainerDOM();n&&(n.removeEventListener("mousemove",t.onMouseMove),n.removeEventListener("mouseup",t.onMouseUp),n.removeEventListener("mouseleave",t.onMouseUp),n.removeEventListener("touchmove",t.onMouseMove),n.removeEventListener("touchend",t.onMouseUp),n.removeEventListener("touchcancel",t.onMouseUp))},t}return r.prototype.setRange=function(t,n){this.set("minLimit",t),this.set("maxLimit",n);var i=this.get("start"),a=this.get("end"),o=(0,f.uZ)(i,t,n),s=(0,f.uZ)(a,t,n);!this.get("isInit")&&(i!==o||a!==s)&&this.setValue([o,s])},r.prototype.getRange=function(){return{min:this.get("minLimit")||0,max:this.get("maxLimit")||1}},r.prototype.setValue=function(t){var n=this.getRange();if((0,f.kJ)(t)&&t.length===2){var i=[this.get("start"),this.get("end")];this.update({start:(0,f.uZ)(t[0],n.min,n.max),end:(0,f.uZ)(t[1],n.min,n.max)}),this.get("updateAutoRender")||this.render(),this.delegateEmit("valuechanged",{originValue:i,value:t})}},r.prototype.getValue=function(){return[this.get("start"),this.get("end")]},r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,d.pi)((0,d.pi)({},t),{name:"slider",x:0,y:0,width:100,height:16,backgroundStyle:{},foregroundStyle:{},handlerStyle:{},textStyle:{},defaultCfg:{backgroundStyle:ew,foregroundStyle:rw,handlerStyle:nw,textStyle:iw}})},r.prototype.update=function(t){var n=t.start,i=t.end,a=(0,d.pi)({},t);(0,f.UM)(n)||(a.start=(0,f.uZ)(n,0,1)),(0,f.UM)(i)||(a.end=(0,f.uZ)(i,0,1)),e.prototype.update.call(this,a),this.minHandler=this.getChildComponentById(this.getElementId("minHandler")),this.maxHandler=this.getChildComponentById(this.getElementId("maxHandler")),this.trend=this.getChildComponentById(this.getElementId("trend"))},r.prototype.init=function(){this.set("start",(0,f.uZ)(this.get("start"),0,1)),this.set("end",(0,f.uZ)(this.get("end"),0,1)),e.prototype.init.call(this)},r.prototype.render=function(){e.prototype.render.call(this),this.updateUI(this.getElementByLocalId("foreground"),this.getElementByLocalId("minText"),this.getElementByLocalId("maxText"))},r.prototype.renderInner=function(t){var n=this.cfg,i=n.start,a=n.end,o=n.width,s=n.height,l=n.trendCfg,u=l===void 0?{}:l,c=n.minText,h=n.maxText,v=n.backgroundStyle,p=v===void 0?{}:v,g=n.foregroundStyle,y=g===void 0?{}:g,x=n.textStyle,m=x===void 0?{}:x,w=(0,f.b$)({},Ph,this.cfg.handlerStyle),M=i*o,S=a*o;(0,f.dp)((0,f.U2)(u,"data"))&&(this.trend=this.addComponent(t,(0,d.pi)({component:tw,id:this.getElementId("trend"),x:0,y:0,width:o,height:s},u))),this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:(0,d.pi)({x:0,y:0,width:o,height:s},p)});var A=this.addShape(t,{id:this.getElementId("minText"),type:"text",attrs:(0,d.pi)({y:s/2,textAlign:"right",text:c,silent:!1},m)}),D=this.addShape(t,{id:this.getElementId("maxText"),type:"text",attrs:(0,d.pi)({y:s/2,textAlign:"left",text:h,silent:!1},m)}),V=this.addShape(t,{id:this.getElementId("foreground"),name:"foreground",type:"rect",attrs:(0,d.pi)({y:0,height:s},y)}),K=(0,f.U2)(w,"width",fs),Mt=(0,f.U2)(w,"height",24);this.minHandler=this.addComponent(t,{component:kh,id:this.getElementId("minHandler"),name:"handler-min",x:0,y:(s-Mt)/2,width:K,height:Mt,cursor:"ew-resize",style:w}),this.maxHandler=this.addComponent(t,{component:kh,id:this.getElementId("maxHandler"),name:"handler-max",x:0,y:(s-Mt)/2,width:K,height:Mt,cursor:"ew-resize",style:w})},r.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},r.prototype.initEvent=function(){this.bindEvents()},r.prototype.updateUI=function(t,n,i){var a=this.cfg,o=a.start,s=a.end,l=a.width,u=a.minText,c=a.maxText,h=a.handlerStyle,v=a.height,p=o*l,g=s*l;this.trend&&(this.trend.update({width:l,height:v}),this.get("updateAutoRender")||this.trend.render()),t.attr("x",p),t.attr("width",g-p);var y=(0,f.U2)(h,"width",fs);n.attr("text",u),i.attr("text",c);var x=this._dodgeText([p,g],n,i),m=x[0],w=x[1];this.minHandler&&(this.minHandler.update({x:p-y/2}),this.get("updateAutoRender")||this.minHandler.render()),(0,f.S6)(m,function(M,S){return n.attr(S,M)}),this.maxHandler&&(this.maxHandler.update({x:g-y/2}),this.get("updateAutoRender")||this.maxHandler.render()),(0,f.S6)(w,function(M,S){return i.attr(S,M)})},r.prototype.bindEvents=function(){var t=this.get("group");t.on("handler-min:mousedown",this.onMouseDown("minHandler")),t.on("handler-min:touchstart",this.onMouseDown("minHandler")),t.on("handler-max:mousedown",this.onMouseDown("maxHandler")),t.on("handler-max:touchstart",this.onMouseDown("maxHandler"));var n=t.findById(this.getElementId("foreground"));n.on("mousedown",this.onMouseDown("foreground")),n.on("touchstart",this.onMouseDown("foreground"))},r.prototype.adjustOffsetRange=function(t){var n=this.cfg,i=n.start,a=n.end;switch(this.currentTarget){case"minHandler":{var o=0-i,s=1-i;return Math.min(s,Math.max(o,t))}case"maxHandler":{var o=0-a,s=1-a;return Math.min(s,Math.max(o,t))}case"foreground":{var o=0-i,s=1-a;return Math.min(s,Math.max(o,t))}}},r.prototype.updateStartEnd=function(t){var n=this.cfg,i=n.start,a=n.end;switch(this.currentTarget){case"minHandler":i+=t;break;case"maxHandler":a+=t;break;case"foreground":i+=t,a+=t;break}this.set("start",i),this.set("end",a)},r.prototype._dodgeText=function(t,n,i){var a,o,s=this.cfg,l=s.handlerStyle,u=s.width,c=2,h=(0,f.U2)(l,"width",fs),v=t[0],p=t[1],g=!1;v>p&&(a=[p,v],v=a[0],p=a[1],o=[i,n],n=o[0],i=o[1],g=!0);var y=n.getBBox(),x=i.getBBox(),m=y.width>v-c?{x:v+h/2+c,textAlign:"left"}:{x:v-h/2-c,textAlign:"right"},w=x.width>u-p-c?{x:p-h/2-c,textAlign:"right"}:{x:p+h/2+c,textAlign:"left"};return g?[w,m]:[m,w]},r.prototype.draw=function(){var t=this.get("container"),n=t&&t.get("canvas");n&&n.draw()},r.prototype.getContainerDOM=function(){var t=this.get("container"),n=t&&t.get("canvas");return n&&n.get("container")},r}(Ar),q6=null;function ea(e,r,t){if(e){if(typeof e.addEventListener=="function")return e.addEventListener(r,t,!1),{remove:function(){e.removeEventListener(r,t,!1)}};if(typeof e.attachEvent=="function")return e.attachEvent("on"+r,t),{remove:function(){e.detachEvent("on"+r,t)}}}}var sw={trackColor:"rgba(0,0,0,0)",thumbColor:"rgba(0,0,0,0.15)",size:8,lineCap:"round"},xu={default:sw,hover:{thumbColor:"rgba(0,0,0,0.2)"}},lw=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.clearEvents=f.ZT,t.onStartEvent=function(n){return function(i){t.isMobile=n,i.originalEvent.preventDefault();var a=n?(0,f.U2)(i.originalEvent,"touches.0.clientX"):i.clientX,o=n?(0,f.U2)(i.originalEvent,"touches.0.clientY"):i.clientY;t.startPos=t.cfg.isHorizontal?a:o,t.bindLaterEvent()}},t.bindLaterEvent=function(){var n=t.getContainerDOM(),i=[];t.isMobile?i=[ea(n,"touchmove",t.onMouseMove),ea(n,"touchend",t.onMouseUp),ea(n,"touchcancel",t.onMouseUp)]:i=[ea(n,"mousemove",t.onMouseMove),ea(n,"mouseup",t.onMouseUp),ea(n,"mouseleave",t.onMouseUp)],t.clearEvents=function(){i.forEach(function(a){a.remove()})}},t.onMouseMove=function(n){var i=t.cfg,a=i.isHorizontal,o=i.thumbOffset;n.preventDefault();var s=t.isMobile?(0,f.U2)(n,"touches.0.clientX"):n.clientX,l=t.isMobile?(0,f.U2)(n,"touches.0.clientY"):n.clientY,u=a?s:l,c=u-t.startPos;t.startPos=u,t.updateThumbOffset(o+c)},t.onMouseUp=function(n){n.preventDefault(),t.clearEvents()},t.onTrackClick=function(n){var i=t.cfg,a=i.isHorizontal,o=i.x,s=i.y,l=i.thumbLen,u=t.getContainerDOM(),c=u.getBoundingClientRect(),h=n.clientX,v=n.clientY,p=a?h-c.left-o-l/2:v-c.top-s-l/2,g=t.validateRange(p);t.updateThumbOffset(g)},t.onThumbMouseOver=function(){var n=t.cfg.theme.hover.thumbColor;t.getElementByLocalId("thumb").attr("stroke",n),t.draw()},t.onThumbMouseOut=function(){var n=t.cfg.theme.default.thumbColor;t.getElementByLocalId("thumb").attr("stroke",n),t.draw()},t}return r.prototype.setRange=function(t,n){this.set("minLimit",t),this.set("maxLimit",n);var i=this.getValue(),a=(0,f.uZ)(i,t,n);i!==a&&!this.get("isInit")&&this.setValue(a)},r.prototype.getRange=function(){var t=this.get("minLimit")||0,n=this.get("maxLimit")||1;return{min:t,max:n}},r.prototype.setValue=function(t){var n=this.getRange(),i=this.getValue();this.update({thumbOffset:(this.get("trackLen")-this.get("thumbLen"))*(0,f.uZ)(t,n.min,n.max)}),this.delegateEmit("valuechange",{originalValue:i,value:this.getValue()})},r.prototype.getValue=function(){return(0,f.uZ)(this.get("thumbOffset")/(this.get("trackLen")-this.get("thumbLen")),0,1)},r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,d.pi)((0,d.pi)({},t),{name:"scrollbar",isHorizontal:!0,minThumbLen:20,thumbOffset:0,theme:xu})},r.prototype.renderInner=function(t){this.renderTrackShape(t),this.renderThumbShape(t)},r.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},r.prototype.initEvent=function(){this.bindEvents()},r.prototype.renderTrackShape=function(t){var n=this.cfg,i=n.trackLen,a=n.theme,o=a===void 0?{default:{}}:a,s=(0,f.b$)({},xu,o).default,l=s.lineCap,u=s.trackColor,c=s.size,h=(0,f.U2)(this.cfg,"size",c),v=this.get("isHorizontal")?{x1:0+h/2,y1:h/2,x2:i-h/2,y2:h/2,lineWidth:h,stroke:u,lineCap:l}:{x1:h/2,y1:0+h/2,x2:h/2,y2:i-h/2,lineWidth:h,stroke:u,lineCap:l};return this.addShape(t,{id:this.getElementId("track"),name:"track",type:"line",attrs:v})},r.prototype.renderThumbShape=function(t){var n=this.cfg,i=n.thumbOffset,a=n.thumbLen,o=n.theme,s=(0,f.b$)({},xu,o).default,l=s.size,u=s.lineCap,c=s.thumbColor,h=(0,f.U2)(this.cfg,"size",l),v=this.get("isHorizontal")?{x1:i+h/2,y1:h/2,x2:i+a-h/2,y2:h/2,lineWidth:h,stroke:c,lineCap:u,cursor:"default"}:{x1:h/2,y1:i+h/2,x2:h/2,y2:i+a-h/2,lineWidth:h,stroke:c,lineCap:u,cursor:"default"};return this.addShape(t,{id:this.getElementId("thumb"),name:"thumb",type:"line",attrs:v})},r.prototype.bindEvents=function(){var t=this.get("group");t.on("mousedown",this.onStartEvent(!1)),t.on("mouseup",this.onMouseUp),t.on("touchstart",this.onStartEvent(!0)),t.on("touchend",this.onMouseUp);var n=t.findById(this.getElementId("track"));n.on("click",this.onTrackClick);var i=t.findById(this.getElementId("thumb"));i.on("mouseover",this.onThumbMouseOver),i.on("mouseout",this.onThumbMouseOut)},r.prototype.getContainerDOM=function(){var t=this.get("container"),n=t&&t.get("canvas");return n&&n.get("container")},r.prototype.validateRange=function(t){var n=this.cfg,i=n.thumbLen,a=n.trackLen,o=t;return t+i>a?o=a-i:t+i<i&&(o=0),o},r.prototype.draw=function(){var t=this.get("container"),n=t&&t.get("canvas");n&&n.draw()},r.prototype.updateThumbOffset=function(t){var n=this.cfg,i=n.thumbOffset,a=n.isHorizontal,o=n.thumbLen,s=n.size,l=this.validateRange(t);if(l!==i){var u=this.getElementByLocalId("thumb");a?u.attr({x1:l+s/2,x2:l+o-s/2}):u.attr({y1:l+s/2,y2:l+o-s/2}),this.emitOffsetChange(l)}},r.prototype.emitOffsetChange=function(t){var n=this.cfg,i=n.thumbOffset,a=n.trackLen,o=n.thumbLen;this.cfg.thumbOffset=t,this.emit("scrollchange",{thumbOffset:t,ratio:(0,f.uZ)(t/(a-o),0,1)}),this.delegateEmit("valuechange",{originalValue:i,value:t})},r}(Ar),uw=jx,cw=Jx,fw=f1,hw=u1,Dh=p1,vw=y1,hs=b1;function pw(e){if((0,f.xb)(e))return null;var r=e[0].x,t=e[0].x,n=e[0].y,i=e[0].y;return(0,f.S6)(e,function(a){r=r>a.x?a.x:r,t=t<a.x?a.x:t,n=n>a.y?a.y:n,i=i<a.y?a.y:i}),{minX:r,maxX:t,minY:n,maxY:i,centerX:(r+t)/2,centerY:(n+i)/2}}function Oh(e){return Array.from(new Set(e)).length===1}function Bh(e){return((0,f.VV)(e)+(0,f.Fp)(e))/2}function vr(e,r,t,n){return{x:e+t*Math.cos(n),y:r+t*Math.sin(n)}}function ti(e,r,t,n,i,a){a===void 0&&(a=0);var o=vr(e,r,t,n),s=vr(e,r,t,i),l=vr(e,r,a,n),u=vr(e,r,a,i);if(i-n==Math.PI*2){var c=vr(e,r,t,n+Math.PI),h=vr(e,r,a,n+Math.PI),v=[["M",o.x,o.y],["A",t,t,0,1,1,c.x,c.y],["A",t,t,0,1,1,s.x,s.y],["M",l.x,l.y]];return a&&(v.push(["A",a,a,0,1,0,h.x,h.y]),v.push(["A",a,a,0,1,0,u.x,u.y])),v.push(["M",o.x,o.y]),v.push(["Z"]),v}var p=i-n<=Math.PI?0:1,g=[["M",o.x,o.y],["A",t,t,0,p,1,s.x,s.y],["L",u.x,u.y]];return a&&g.push(["A",a,a,0,p,0,l.x,l.y]),g.push(["L",o.x,o.y]),g.push(["Z"]),g}function Rh(e,r,t,n,i){var a=vr(e,r,t,n),o=vr(e,r,t,i);if((0,f.vQ)(i-n,Math.PI*2)){var s=vr(e,r,t,n+Math.PI);return[["M",a.x,a.y],["A",t,t,0,1,1,s.x,s.y],["A",t,t,0,1,1,a.x,a.y],["A",t,t,0,1,0,s.x,s.y],["A",t,t,0,1,0,a.x,a.y],["Z"]]}var l=i-n<=Math.PI?0:1;return[["M",a.x,a.y],["A",t,t,0,l,1,o.x,o.y]]}function Ga(e,r){var t=e.points,n=pw(t),i,a,o=r.startAngle,s=r.endAngle,l=s-o;return r.isTransposed?(i=n.maxY*l,a=n.minY*l):(i=n.maxX*l,a=n.minX*l),i+=o,a+=o,{startAngle:a,endAngle:i}}function dw(e,r){if((0,f.hj)(e)&&(0,f.hj)(r))return[e,r];if(e=e,r=r,Oh(e)||Oh(r))return[Bh(e),Bh(r)];for(var t=-1,n=0,i=0,a,o=e.length-1,s,l=0;++t<e.length;)a=o,o=t,l+=s=e[a]*r[o]-e[o]*r[a],n+=(e[a]+e[o])*s,i+=(r[a]+r[o])*s;return l*=3,[n/l,i/l]}function Nh(e,r){var t=e.attr(),n=r.attr();return(0,f.S6)(t,function(i,a){n[a]===void 0&&(n[a]=void 0)}),n}function ra(e,r,t){var n=Math.min(r,t),i=Math.max(r,t);return e>=n&&e<=i}function gw(e,r,t){if((0,f.HD)(e))return e.padEnd(r,t);if((0,f.kJ)(e)){var n=e.length;if(n<r)for(var i=r-n,a=0;a<i;a++)e.push(t)}return e}function Nr(e,r){return typeof e=="object"&&r.forEach(function(t){delete e[t]}),e}function ei(e,r,t){var n,i;r===void 0&&(r=[]),t===void 0&&(t=new Map);try{for(var a=(0,d.XA)(e),o=a.next();!o.done;o=a.next()){var s=o.value;t.has(s)||(r.push(s),t.set(s,!0))}}catch(l){n={error:l}}finally{try{o&&!o.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return r}var Pr=function(){function e(r,t,n,i){r===void 0&&(r=0),t===void 0&&(t=0),n===void 0&&(n=0),i===void 0&&(i=0),this.x=r,this.y=t,this.height=i,this.width=n}return e.fromRange=function(r,t,n,i){return new e(r,t,n-r,i-t)},e.fromObject=function(r){return new e(r.minX,r.minY,r.width,r.height)},Object.defineProperty(e.prototype,"minX",{get:function(){return this.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxX",{get:function(){return this.x+this.width},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"minY",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxY",{get:function(){return this.y+this.height},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tl",{get:function(){return{x:this.x,y:this.y}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tr",{get:function(){return{x:this.maxX,y:this.y}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bl",{get:function(){return{x:this.x,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"br",{get:function(){return{x:this.maxX,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"top",{get:function(){return{x:this.x+this.width/2,y:this.minY}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"right",{get:function(){return{x:this.maxX,y:this.y+this.height/2}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bottom",{get:function(){return{x:this.x+this.width/2,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"left",{get:function(){return{x:this.minX,y:this.y+this.height/2}},enumerable:!1,configurable:!0}),e.prototype.isEqual=function(r){return this.x===r.x&&this.y===r.y&&this.width===r.width&&this.height===r.height},e.prototype.contains=function(r){return r.minX>=this.minX&&r.maxX<=this.maxX&&r.minY>=this.minY&&r.maxY<=this.maxY},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.add=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];var n=this.clone();return(0,f.S6)(r,function(i){n.x=Math.min(i.x,n.x),n.y=Math.min(i.y,n.y),n.width=Math.max(i.maxX,n.maxX)-n.x,n.height=Math.max(i.maxY,n.maxY)-n.y}),n},e.prototype.merge=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];var n=this.clone();return(0,f.S6)(r,function(i){n.x=Math.max(i.x,n.x),n.y=Math.max(i.y,n.y),n.width=Math.min(i.maxX,n.maxX)-n.x,n.height=Math.min(i.maxY,n.maxY)-n.y}),n},e.prototype.cut=function(r,t){var n=r.width,i=r.height;switch(t){case J.TOP:case J.TOP_LEFT:case J.TOP_RIGHT:return e.fromRange(this.minX,this.minY+i,this.maxX,this.maxY);case J.RIGHT:case J.RIGHT_TOP:case J.RIGHT_BOTTOM:return e.fromRange(this.minX,this.minY,this.maxX-n,this.maxY);case J.BOTTOM:case J.BOTTOM_LEFT:case J.BOTTOM_RIGHT:return e.fromRange(this.minX,this.minY,this.maxX,this.maxY-i);case J.LEFT:case J.LEFT_TOP:case J.LEFT_BOTTOM:return e.fromRange(this.minX+n,this.minY,this.maxX,this.maxY);default:return this}},e.prototype.shrink=function(r){var t=(0,d.CR)(r,4),n=t[0],i=t[1],a=t[2],o=t[3];return new e(this.x+o,this.y+n,this.width-o-i,this.height-n-a)},e.prototype.expand=function(r){var t=(0,d.CR)(r,4),n=t[0],i=t[1],a=t[2],o=t[3];return new e(this.x-o,this.y-n,this.width+o+i,this.height+n+a)},e.prototype.exceed=function(r){return[Math.max(-this.minY+r.minY,0),Math.max(this.maxX-r.maxX,0),Math.max(this.maxY-r.maxY,0),Math.max(-this.minX+r.minX,0)]},e.prototype.collide=function(r){return this.minX<r.maxX&&this.maxX>r.minX&&this.minY<r.maxY&&this.maxY>r.minY},e.prototype.size=function(){return this.width*this.height},e.prototype.isPointIn=function(r){return r.x>=this.minX&&r.x<=this.maxX&&r.y>=this.minY&&r.y<=this.maxY},e}(),$6=function(e,r){var t=r.start,n=r.end;return new Pr(e.x+e.width*t.x,e.y+e.height*t.y,e.width*Math.abs(n.x-t.x),e.height*Math.abs(n.y-t.y))};function yw(e){return[[e.minX,e.minY],[e.maxX,e.minY],[e.maxX,e.maxY],[e.minX,e.maxY]]}function Ya(e){if(e.isPolar&&!e.isTransposed)return(e.endAngle-e.startAngle)*e.getRadius();var r=e.convert({x:0,y:0}),t=e.convert({x:1,y:0});return Math.sqrt(Math.pow(t.x-r.x,2)+Math.pow(t.y-r.y,2))}function mw(e){if(e.isPolar){var r=e.startAngle,t=e.endAngle;return t-r==Math.PI*2}return!1}function vs(e,r){var t=e.getCenter();return Math.sqrt(Math.pow(r.x-t.x,2)+Math.pow(r.y-t.y,2))}function xw(e,r){var t=!1;if(e)if(e.type==="theta"){var n=e.start,i=e.end;t=ra(r.x,n.x,i.x)&&ra(r.y,n.y,i.y)}else{var a=e.invert(r);t=ra(a.x,0,1)&&ra(a.y,0,1)}return t}function na(e,r){var t=e.getCenter();return Math.atan2(r.y-t.y,r.x-t.x)}function wu(e,r){r===void 0&&(r=0);var t=e.start,n=e.end,i=e.getWidth(),a=e.getHeight();if(e.isPolar){var o=e.startAngle,s=e.endAngle,l=e.getCenter(),u=e.getRadius();return{type:"path",startState:{path:ti(l.x,l.y,u+r,o,o)},endState:function(h){var v=(s-o)*h+o,p=ti(l.x,l.y,u+r,o,v);return{path:p}},attrs:{path:ti(l.x,l.y,u+r,o,s)}}}var c;return e.isTransposed?c={height:a+r*2}:c={width:i+r*2},{type:"rect",startState:{x:t.x-r,y:n.y-r,width:e.isTransposed?i+r*2:0,height:e.isTransposed?0:a+r*2},endState:c,attrs:{x:t.x-r,y:n.y-r,width:i+r*2,height:a+r*2}}}function ww(e,r){r===void 0&&(r=0);var t=e.start,n=e.end,i=e.getWidth(),a=e.getHeight(),o=Math.min(t.x,n.x),s=Math.min(t.y,n.y);return Pr.fromRange(o-r,s-r,o+i+r,s+a+r)}var Mw=/^(?:(?!0000)[0-9]{4}([-/.]+)(?:(?:0?[1-9]|1[0-2])\1(?:0?[1-9]|1[0-9]|2[0-8])|(?:0?[13-9]|1[0-2])\1(?:29|30)|(?:0?[13578]|1[02])\1(?:31))|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)([-/.]+)0?2\2(?:29))(\s+([01]|([01][0-9]|2[0-3])):([0-9]|[0-5][0-9]):([0-9]|[0-5][0-9]))?$/;function Sw(e){var r="linear";return Mw.test(e)?r="timeCat":(0,f.HD)(e)&&(r="cat"),r}function zh(e,r,t,n){return r===void 0&&(r={}),r.type?r.type:e.type!=="identity"&&$t.includes(t)&&["interval"].includes(n)||e.isCategory?"cat":e.type}function Cw(e,r,t){var n=r||[];if((0,f.hj)(e)||(0,f.UM)((0,f.Wx)(n,e))&&(0,f.xb)(t)){var i=$l("identity");return new i({field:e.toString(),values:[e]})}var a=(0,f.I)(n,e),o=(0,f.U2)(t,"type",Sw(a[0])),s=$l(o);return new s((0,d.pi)({field:e,values:a},t))}function bw(e,r){if(e.type!=="identity"&&r.type!=="identity"){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n]);e.change(t)}}function Xa(e){return e.alias||e.field}function Vh(e,r,t){var n=e.values,i=n.length,a;if(i===1)a=[.5,1];else{var o=1,s=0;mw(r)?r.isTransposed?(o=(0,f.U2)(t,"widthRatio.multiplePie",1/1.3),s=1/i*o,a=[s/2,1-s/2]):a=[0,1-1/i]:(s=1/i/2,a=[s,1-s])}return a}function Aw(e){var r=e.values.filter(function(t){return!(0,f.UM)(t)&&!isNaN(t)});return Math.max.apply(Math,(0,d.ev)((0,d.ev)([],(0,d.CR)(r),!1),[(0,f.UM)(e.max)?-Infinity:e.max],!1))}function Tw(e){var r,t;switch(e){case J.TOP:r={x:0,y:1},t={x:1,y:1};break;case J.RIGHT:r={x:1,y:0},t={x:1,y:1};break;case J.BOTTOM:r={x:0,y:0},t={x:1,y:0};break;case J.LEFT:r={x:0,y:0},t={x:0,y:1};break;default:r=t={x:0,y:0}}return{start:r,end:t}}function Ew(e){var r,t;return e.isTransposed?(r={x:0,y:0},t={x:1,y:0}):(r={x:0,y:0},t={x:0,y:1}),{start:r,end:t}}function ps(e,r){var t={start:{x:0,y:0},end:{x:0,y:0}};e.isRect?t=Tw(r):e.isPolar&&(t=Ew(e));var n=t.start,i=t.end;return{start:e.convert(n),end:e.convert(i)}}function j6(e,r){if(e.isRect)return e.isTransposed?[DIRECTION.RIGHT,DIRECTION.BOTTOM].includes(r)?1:-1:[DIRECTION.BOTTOM,DIRECTION.RIGHT].includes(r)?-1:1;if(e.isPolar){var t=e.x.start;return t<0?-1:1}return 1}function Uh(e){var r=e.start,t=e.end;return r.x===t.x}function Hh(e,r){var t=e.start,n=e.end,i=Uh(e);return i?(t.y-n.y)*(r.x-t.x)>0?1:-1:(n.x-t.x)*(t.y-r.y)>0?-1:1}function ds(e,r){var t=(0,f.U2)(e,["components","axis"],{});return(0,f.b$)({},(0,f.U2)(t,["common"],{}),(0,f.b$)({},(0,f.U2)(t,[r],{})))}function Gh(e,r,t){var n=(0,f.U2)(e,["components","axis"],{});return(0,f.b$)({},(0,f.U2)(n,["common","title"],{}),(0,f.b$)({},(0,f.U2)(n,[r,"title"],{})),t)}function Mu(e){var r=e.x,t=e.y,n=e.circleCenter,i=t.start>t.end,a=e.isTransposed?e.convert({x:i?0:1,y:0}):e.convert({x:0,y:i?0:1}),o=[a.x-n.x,a.y-n.y],s=[1,0],l=a.y>n.y?ye.EU(o,s):ye.EU(o,s)*-1,u=l+(r.end-r.start),c=Math.sqrt(Math.pow(a.x-n.x,2)+Math.pow(a.y-n.y,2));return{center:n,radius:c,startAngle:l,endAngle:u}}function gs(e,r){return(0,f.jn)(e)?e===!1?!1:{}:(0,f.U2)(e,[r])}function Yh(e,r){return(0,f.U2)(e,"position",r)}function Xh(e,r){return(0,f.U2)(r,["title","text"],Xa(e))}var ia=function(){function e(r,t){this.destroyed=!1,this.facets=[],this.view=r,this.cfg=(0,f.b$)({},this.getDefaultCfg(),t)}return e.prototype.init=function(){this.container||(this.container=this.createContainer());var r=this.view.getData();this.facets=this.generateFacets(r)},e.prototype.render=function(){this.renderViews()},e.prototype.update=function(){},e.prototype.clear=function(){this.clearFacetViews()},e.prototype.destroy=function(){this.clear(),this.container&&(this.container.remove(!0),this.container=void 0),this.destroyed=!0,this.view=void 0,this.facets=[]},e.prototype.facetToView=function(r){var t=r.region,n=r.data,i=r.padding,a=i===void 0?this.cfg.padding:i,o=this.view.createView({region:t,padding:a});o.data(n||[]),r.view=o,this.beforeEachView(o,r);var s=this.cfg.eachView;return s&&s(o,r),this.afterEachView(o,r),o},e.prototype.createContainer=function(){var r=this.view.getLayer(rt.FORE);return r.addGroup()},e.prototype.renderViews=function(){this.createFacetViews()},e.prototype.createFacetViews=function(){var r=this;return this.facets.map(function(t){return r.facetToView(t)})},e.prototype.clearFacetViews=function(){var r=this;(0,f.S6)(this.facets,function(t){t.view&&(r.view.removeView(t.view),t.view=void 0)})},e.prototype.parseSpacing=function(){var r=this.view.viewBBox,t=r.width,n=r.height,i=this.cfg.spacing;return i.map(function(a,o){return(0,f.hj)(a)?a/(o===0?t:n):parseFloat(a)/100})},e.prototype.getFieldValues=function(r,t){var n=[],i={};return(0,f.S6)(r,function(a){var o=a[t];!(0,f.UM)(o)&&!i[o]&&(n.push(o),i[o]=!0)}),n},e.prototype.getRegion=function(r,t,n,i){var a=(0,d.CR)(this.parseSpacing(),2),o=a[0],s=a[1],l=(1+o)/(t===0?1:t)-o,u=(1+s)/(r===0?1:r)-s,c={x:(l+o)*n,y:(u+s)*i},h={x:c.x+l,y:c.y+u};return{start:c,end:h}},e.prototype.getDefaultCfg=function(){return{eachView:void 0,showTitle:!0,spacing:[0,0],padding:10,fields:[]}},e.prototype.getDefaultTitleCfg=function(){var r=this.view.getTheme().fontFamily;return{style:{fontSize:14,fill:"#666",fontFamily:r}}},e.prototype.processAxis=function(r,t){var n=r.getOptions(),i=n.coordinate,a=r.geometries,o=(0,f.U2)(i,"type","rect");if(o==="rect"&&a.length){(0,f.UM)(n.axes)&&(n.axes={});var s=n.axes,l=(0,d.CR)(a[0].getXYFields(),2),u=l[0],c=l[1],h=gs(s,u),v=gs(s,c);h!==!1&&(n.axes[u]=this.getXAxisOption(u,s,h,t)),v!==!1&&(n.axes[c]=this.getYAxisOption(c,s,v,t))}},e.prototype.getFacetDataFilter=function(r){return function(t){return(0,f.yW)(r,function(n){var i=n.field,a=n.value;return!(0,f.UM)(a)&&i?t[i]===a:!0})}},e}(),Wh={},_w=function(e){return Wh[(0,f.vl)(e)]},aa=function(e,r){Wh[(0,f.vl)(e)]=r},Fw=function(){function e(r,t){this.context=r,this.cfg=t,r.addAction(this)}return e.prototype.applyCfg=function(r){(0,f.f0)(this,r)},e.prototype.init=function(){this.applyCfg(this.cfg)},e.prototype.destroy=function(){this.context.removeAction(this),this.context=null},e}(),ar=Fw,Iw=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.execute=function(){this.callback&&this.callback(this.context)},r.prototype.destroy=function(){e.prototype.destroy.call(this),this.callback=null},r}(ar),Lw=Iw,ys={};function Pw(e,r){var t=ys[e],n=null;if(t){var i=t.ActionClass,a=t.cfg;n=new i(r,a),n.name=e,n.init()}return n}function ms(e){var r=ys[e];return(0,f.U2)(r,"ActionClass")}function be(e,r,t){ys[e]={ActionClass:r,cfg:t}}function K6(e){delete ys[e]}function kw(e,r){var t=new Lw(r);return t.callback=e,t.name="callback",t}function Dw(e,r){var t=[];if(e.length){t.push(["M",e[0].x,e[0].y]);for(var n=1,i=e.length;n<i;n+=1){var a=e[n];t.push(["L",a.x,a.y])}r&&t.push(["Z"])}return t}function Su(e,r){for(var t=[e[0]],n=1,i=e.length;n<i;n=n+2){var a=r.convert({x:e[n],y:e[n+1]});t.push(a.x,a.y)}return t}function Zh(e,r){var t=r.isTransposed,n=e[1],i=e[6],a=e[7],o=r.convert({x:i,y:a}),s=t?0:1;return["A",n,n,0,0,s,o.x,o.y]}function Ow(e,r,t){var n=t.isTransposed,i=t.startAngle,a=t.endAngle,o=e[0].toLowerCase()==="a"?{x:e[6],y:e[7]}:{x:e[1],y:e[2]},s={x:r[1],y:r[2]},l=[],u=n?"y":"x",c=Math.abs(s[u]-o[u])*(a-i),h=s[u]>=o[u]?1:0,v=c>Math.PI?1:0,p=t.convert(s),g=vs(t,p);if(g>=.5)if(c===Math.PI*2){var y={x:(s.x+o.x)/2,y:(s.y+o.y)/2},x=t.convert(y);l.push(["A",g,g,0,v,h,x.x,x.y]),l.push(["A",g,g,0,v,h,p.x,p.y])}else l.push(["A",g,g,0,v,h,p.x,p.y]);return l}function Bw(e){(0,f.S6)(e,function(r,t){var n=r;if(n[0].toLowerCase()==="a"){var i=e[t-1],a=e[t+1];a&&a[0].toLowerCase()==="a"?i&&i[0].toLowerCase()==="l"&&(i[0]="M"):i&&i[0].toLowerCase()==="a"&&a&&a[0].toLowerCase()==="l"&&(a[0]="M")}})}var Rw=function(e,r,t,n){var i,a=[],o=!!n,s,l,u,c,h,v,p;if(o){i=(0,d.CR)(n,2),u=i[0],c=i[1];for(var g=0,y=e.length;g<y;g++){var x=e[g];u=ye.VV([0,0],u,x),c=ye.Fp([0,0],c,x)}}for(var g=0,m=e.length;g<m;g++){var x=e[g];if(g===0&&!t)p=x;else if(g===m-1&&!t)v=x,a.push(p),a.push(v);else{s=e[t?g?g-1:m-1:g-1],l=e[t?(g+1)%m:g+1];var w=[0,0];w=ye.lu(w,l,s),w=ye.bA(w,w,r);var M=ye.TE(x,s),S=ye.TE(x,l),A=M+S;A!==0&&(M/=A,S/=A);var D=ye.bA([0,0],w,-M),V=ye.bA([0,0],w,S);v=ye.IH([0,0],x,D),h=ye.IH([0,0],x,V),h=ye.VV([0,0],h,ye.Fp([0,0],l,x)),h=ye.Fp([0,0],h,ye.VV([0,0],l,x)),D=ye.lu([0,0],h,x),D=ye.bA([0,0],D,-M/S),v=ye.IH([0,0],x,D),v=ye.VV([0,0],v,ye.Fp([0,0],s,x)),v=ye.Fp([0,0],v,ye.VV([0,0],s,x)),V=ye.lu([0,0],x,v),V=ye.bA([0,0],V,S/M),h=ye.IH([0,0],x,V),o&&(v=ye.Fp([0,0],v,u),v=ye.VV([0,0],v,c),h=ye.Fp([0,0],h,u),h=ye.VV([0,0],h,c)),a.push(p),a.push(v),p=h}}return t&&a.push(a.shift()),a};function qh(e,r,t){for(var n=!!r,i=[],a=0,o=e.length;a<o;a+=2)i.push([e[a],e[a+1]]);for(var s=Rw(i,.4,n,t),l=i.length,u=[],c,h,v,a=0;a<l-1;a++)c=s[a*2],h=s[a*2+1],v=i[a+1],u.push(["C",c[0],c[1],h[0],h[1],v[0],v[1]]);return n&&(c=s[l],h=s[l+1],v=i[0],u.push(["C",c[0],c[1],h[0],h[1],v[0],v[1]])),u}function Wa(e,r){return Dw(e,r)}function xs(e,r,t){var n=[],i=e[0],a=null;if(e.length<=2)return Wa(e,r);for(var o=0,s=e.length;o<s;o++){var l=e[o];(!a||!(a.x===l.x&&a.y===l.y))&&(n.push(l.x),n.push(l.y),a=l)}var u=t||[[0,0],[1,1]],c=qh(n,r,u);return c.unshift(["M",i.x,i.y]),c}function Nw(e,r){var t=[];return(0,f.S6)(r,function(n){var i=n[0];switch(i.toLowerCase()){case"m":case"l":case"c":t.push(Su(n,e));break;case"a":t.push(Zh(n,e));break;case"z":default:t.push(n);break}}),t}function zw(e,r){var t=[],n,i,a,o;return(0,f.S6)(r,function(s,l){var u=s[0];switch(u.toLowerCase()){case"m":case"c":case"q":t.push(Su(s,e));break;case"l":n=r[l-1],i=s,a=e.isTransposed,o=a?n[n.length-2]===i[1]:n[n.length-1]===i[2],o?t=t.concat(Ow(n,i,e)):t.push(Su(s,e));break;case"a":t.push(Zh(s,e));break;case"z":default:t.push(s);break}}),Bw(t),t}var Vw=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/ig,Uw=/[^\s\,]+/ig;function J6(e){var r=e||[];if(isArray(r))return r;if(isString(r))return r=r.match(Vw),each(r,function(t,n){if(t=t.match(Uw),t[0].length>1){var i=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=i}each(t,function(a,o){isNaN(a)||(t[o]=+a)}),r[n]=t}),r}var Q6=null;function Hw(e,r,t){var n=null,i=t;return r<i&&(i=r,n="add"),e<i&&(i=e,n="del"),{type:n,min:i}}var Gw=function(e,r){var t=e.length,n=r.length,i,a,o=0;if(t===0||n===0)return null;for(var s=[],l=0;l<=t;l++)s[l]=[],s[l][0]={min:l};for(var u=0;u<=n;u++)s[0][u]={min:u};for(var l=1;l<=t;l++){i=e[l-1];for(var u=1;u<=n;u++){a=r[u-1],isEqual(i,a)?o=0:o=1;var c=s[l-1][u].min+1,h=s[l][u-1].min+1,v=s[l-1][u-1].min+o;s[l][u]=Hw(c,h,v)}}return s};function t5(e,r){var t=Gw(e,r),n=e.length,i=r.length,a=[],o=1,s=1;if(t[n][i]!==n){for(var l=1;l<=n;l++){var u=t[l][l].min;s=l;for(var c=o;c<=i;c++)t[l][c].min<u&&(u=t[l][c].min,s=c);o=s,t[l][o].type&&a.push({index:l-1,type:t[l][o].type})}for(var l=a.length-1;l>=0;l--)o=a[l].index,a[l].type==="add"?e.splice(o,0,[].concat(e[o])):e.splice(o,1)}if(n=e.length,n<i)for(var l=0;l<i-n;l++)e[n-1][0]==="z"||e[n-1][0]==="Z"?e.splice(n-2,0,e[n-2]):e.push(e[n-1]);return e}var Za=`
  48. \v\f\r \xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029`,Yw=new RegExp("([a-z])["+Za+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+Za+"]*,?["+Za+"]*)+)","ig"),Xw=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+Za+"]*,?["+Za+"]*","ig");function Ww(e){if(!e)return null;if((0,f.kJ)(e))return e;var r={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},t=[];return String(e).replace(Yw,function(n,i,a){var o=[],s=i.toLowerCase();if(a.replace(Xw,function(l,u){u&&o.push(+u)}),s==="m"&&o.length>2&&(t.push([i].concat(o.splice(0,2))),s="l",i=i==="m"?"l":"L"),s==="o"&&o.length===1&&t.push([i,o[0]]),s==="r")t.push([i].concat(o));else for(;o.length>=r[s]&&(t.push([i].concat(o.splice(0,r[s]))),!!r[s]););return""}),t}var Zw=/[a-z]/;function $h(e,r){return[r[0]+(r[0]-e[0]),r[1]+(r[1]-e[1])]}function e5(e){var r=parsePathString(e);if(!r||!r.length)return[["M",0,0]];for(var t=!1,n=0;n<r.length;n++){var i=r[n][0];if(Zw.test(i)||["V","H","T","S"].indexOf(i)>=0){t=!0;break}}if(!t)return r;var a=[],o=0,s=0,l=0,u=0,c=0,h,v,p=r[0];(p[0]==="M"||p[0]==="m")&&(o=+p[1],s=+p[2],l=o,u=s,c++,a[0]=["M",o,s]);for(var n=c,g=r.length;n<g;n++){var y=r[n],x=a[n-1],m=[],i=y[0],w=i.toUpperCase();if(i!==w)switch(m[0]=w,w){case"A":m[1]=y[1],m[2]=y[2],m[3]=y[3],m[4]=y[4],m[5]=y[5],m[6]=+y[6]+o,m[7]=+y[7]+s;break;case"V":m[1]=+y[1]+s;break;case"H":m[1]=+y[1]+o;break;case"M":l=+y[1]+o,u=+y[2]+s,m[1]=l,m[2]=u;break;default:for(var M=1,S=y.length;M<S;M++)m[M]=+y[M]+(M%2?o:s)}else m=r[n];switch(w){case"Z":o=+l,s=+u;break;case"H":o=m[1],m=["L",o,s];break;case"V":s=m[1],m=["L",o,s];break;case"T":o=m[1],s=m[2];var A=$h([x[1],x[2]],[x[3],x[4]]);m=["Q",A[0],A[1],o,s];break;case"S":o=m[m.length-2],s=m[m.length-1];var D=x.length,V=$h([x[D-4],x[D-3]],[x[D-2],x[D-1]]);m=["C",V[0],V[1],m[1],m[2],o,s];break;case"M":l=m[m.length-2],u=m[m.length-1];break;default:o=m[m.length-2],s=m[m.length-1]}a.push(m)}return a}var qa=Math.PI*2,Cu=function(e,r,t,n,i,a,o){var s=e.x,l=e.y;s*=r,l*=t;var u=n*s-i*l,c=i*s+n*l;return{x:u+a,y:c+o}},qw=function(e,r){var t=r===1.5707963267948966?.551915024494:r===-1.5707963267948966?-.551915024494:4/3*Math.tan(r/4),n=Math.cos(e),i=Math.sin(e),a=Math.cos(e+r),o=Math.sin(e+r);return[{x:n-i*t,y:i+n*t},{x:a+o*t,y:o-a*t},{x:a,y:o}]},jh=function(e,r,t,n){var i=e*n-r*t<0?-1:1,a=e*t+r*n;return a>1&&(a=1),a<-1&&(a=-1),i*Math.acos(a)},$w=function(e,r,t,n,i,a,o,s,l,u,c,h){var v=Math.pow(i,2),p=Math.pow(a,2),g=Math.pow(c,2),y=Math.pow(h,2),x=v*p-v*y-p*g;x<0&&(x=0),x/=v*y+p*g,x=Math.sqrt(x)*(o===s?-1:1);var m=x*i/a*h,w=x*-a/i*c,M=u*m-l*w+(e+t)/2,S=l*m+u*w+(r+n)/2,A=(c-m)/i,D=(h-w)/a,V=(-c-m)/i,K=(-h-w)/a,Mt=jh(1,0,A,D),ot=jh(A,D,V,K);return s===0&&ot>0&&(ot-=qa),s===1&&ot<0&&(ot+=qa),[M,S,Mt,ot]},jw=function(e){var r=e.px,t=e.py,n=e.cx,i=e.cy,a=e.rx,o=e.ry,s=e.xAxisRotation,l=s===void 0?0:s,u=e.largeArcFlag,c=u===void 0?0:u,h=e.sweepFlag,v=h===void 0?0:h,p=[];if(a===0||o===0)return[{x1:0,y1:0,x2:0,y2:0,x:n,y:i}];var g=Math.sin(l*qa/360),y=Math.cos(l*qa/360),x=y*(r-n)/2+g*(t-i)/2,m=-g*(r-n)/2+y*(t-i)/2;if(x===0&&m===0)return[{x1:0,y1:0,x2:0,y2:0,x:n,y:i}];a=Math.abs(a),o=Math.abs(o);var w=Math.pow(x,2)/Math.pow(a,2)+Math.pow(m,2)/Math.pow(o,2);w>1&&(a*=Math.sqrt(w),o*=Math.sqrt(w));var M=$w(r,t,n,i,a,o,c,v,g,y,x,m),S=M[0],A=M[1],D=M[2],V=M[3],K=Math.abs(V)/(qa/4);Math.abs(1-K)<1e-7&&(K=1);var Mt=Math.max(Math.ceil(K),1);V/=Mt;for(var ot=0;ot<Mt;ot++)p.push(qw(D,V)),D+=V;return p.map(function(Lt){var Qt=Cu(Lt[0],a,o,y,g,S,A),ge=Qt.x,we=Qt.y,Ae=Cu(Lt[1],a,o,y,g,S,A),zt=Ae.x,ie=Ae.y,fe=Cu(Lt[2],a,o,y,g,S,A),ue=fe.x,he=fe.y;return{x1:ge,y1:we,x2:zt,y2:ie,x:ue,y:he}})};function r5(e,r,t,n,i,a,o,s,l){var u=jw({px:e,py:r,cx:s,cy:l,rx:t,ry:n,xAxisRotation:i,largeArcFlag:a,sweepFlag:o});return u.reduce(function(c,h){var v=h.x1,p=h.y1,g=h.x2,y=h.y2,x=h.x,m=h.y;return c.push(v,p,g,y,x,m),c},[])}function n5(e,r){"TQ".indexOf(e[0])<0&&(r.qx=null,r.qy=null);var t=e.slice(1),n=t[0],i=t[1];switch(e[0]){case"M":return r.x=n,r.y=i,e;case"A":return["C"].concat(arcToCubic.apply(0,[r.x1,r.y1].concat(e.slice(1))));case"Q":return r.qx=n,r.qy=i,["C"].concat(quadToCubic.apply(0,[r.x1,r.y1].concat(e.slice(1))));case"L":return["C"].concat(lineToCubic(r.x1,r.y1,e[1],e[2]));case"H":return["C"].concat(lineToCubic(r.x1,r.y1,e[1],r.y1));case"V":return["C"].concat(lineToCubic(r.x1,r.y1,r.x1,e[1]));case"Z":return["C"].concat(lineToCubic(r.x1,r.y1,r.x,r.y));default:}return e}function i5(e,r){r===void 0&&(r=!1);for(var t=path2Absolute(e),n={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null},i=[],a="",o=t.length,s,l,u=[],c=0;c<o;c+=1)t[c]&&(a=t[c][0]),i[c]=a,t[c]=segmentToCubic(t[c],n),Kw(t,i,c),o=t.length,a==="Z"&&u.push(c),s=t[c],l=s.length,n.x1=+s[l-2],n.y1=+s[l-1],n.x2=+s[l-4]||n.x1,n.y2=+s[l-3]||n.y1;return r?[t,u]:t}function Kw(e,r,t){if(e[t].length>7){e[t].shift();for(var n=e[t],i=t;n.length;)r[t]="A",e.splice(i+=1,0,["C"].concat(n.splice(0,6)));e.splice(t,1)}}var Kh=function(e,r,t,n,i){var a=-3*r+9*t-9*n+3*i,o=e*a+6*r-12*t+6*n;return e*o-3*r+3*t},Jh=function(e,r,t,n,i,a,o,s,l){l===null&&(l=1),l=l>1?1:l<0?0:l;for(var u=l/2,c=12,h=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],v=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],p=0,g=0;g<c;g++){var y=u*h[g]+u,x=Kh(y,e,t,i,o),m=Kh(y,r,n,a,s),w=x*x+m*m;p+=v[g]*Math.sqrt(w)}return u*p},Jw=function(e,r,t,n,i,a,o,s){for(var l=[],u=[[],[]],c,h,v,p,g=0;g<2;++g){if(g===0?(h=6*e-12*t+6*i,c=-3*e+9*t-9*i+3*o,v=3*t-3*e):(h=6*r-12*n+6*a,c=-3*r+9*n-9*a+3*s,v=3*n-3*r),Math.abs(c)<1e-12){if(Math.abs(h)<1e-12)continue;p=-v/h,p>0&&p<1&&l.push(p);continue}var y=h*h-4*v*c,x=Math.sqrt(y);if(!(y<0)){var m=(-h+x)/(2*c);m>0&&m<1&&l.push(m);var w=(-h-x)/(2*c);w>0&&w<1&&l.push(w)}}for(var M=l.length,S=M,A;M--;)p=l[M],A=1-p,u[0][M]=A*A*A*e+3*A*A*p*t+3*A*p*p*i+p*p*p*o,u[1][M]=A*A*A*r+3*A*A*p*n+3*A*p*p*a+p*p*p*s;return u[0][S]=e,u[1][S]=r,u[0][S+1]=o,u[1][S+1]=s,u[0].length=u[1].length=S+2,{min:{x:Math.min.apply(0,u[0]),y:Math.min.apply(0,u[1])},max:{x:Math.max.apply(0,u[0]),y:Math.max.apply(0,u[1])}}},Qw=function(e,r,t,n,i,a,o,s){if(!(Math.max(e,t)<Math.min(i,o)||Math.min(e,t)>Math.max(i,o)||Math.max(r,n)<Math.min(a,s)||Math.min(r,n)>Math.max(a,s))){var l=(e*n-r*t)*(i-o)-(e-t)*(i*s-a*o),u=(e*n-r*t)*(a-s)-(r-n)*(i*s-a*o),c=(e-t)*(a-s)-(r-n)*(i-o);if(!!c){var h=l/c,v=u/c,p=+h.toFixed(2),g=+v.toFixed(2);if(!(p<+Math.min(e,t).toFixed(2)||p>+Math.max(e,t).toFixed(2)||p<+Math.min(i,o).toFixed(2)||p>+Math.max(i,o).toFixed(2)||g<+Math.min(r,n).toFixed(2)||g>+Math.max(r,n).toFixed(2)||g<+Math.min(a,s).toFixed(2)||g>+Math.max(a,s).toFixed(2)))return{x:h,y:v}}}},ri=function(e,r,t){return r>=e.x&&r<=e.x+e.width&&t>=e.y&&t<=e.y+e.height},bu=function(e,r,t,n){return e===null&&(e=r=t=n=0),r===null&&(r=e.y,t=e.width,n=e.height,e=e.x),{x:e,y:r,width:t,w:t,height:n,h:n,x2:e+t,y2:r+n,cx:e+t/2,cy:r+n/2,r1:Math.min(t,n)/2,r2:Math.max(t,n)/2,r0:Math.sqrt(t*t+n*n)/2,path:rectPath(e,r,t,n),vb:[e,r,t,n].join(" ")}},tM=function(e,r){return e=bu(e),r=bu(r),ri(r,e.x,e.y)||ri(r,e.x2,e.y)||ri(r,e.x,e.y2)||ri(r,e.x2,e.y2)||ri(e,r.x,r.y)||ri(e,r.x2,r.y)||ri(e,r.x,r.y2)||ri(e,r.x2,r.y2)||(e.x<r.x2&&e.x>r.x||r.x<e.x2&&r.x>e.x)&&(e.y<r.y2&&e.y>r.y||r.y<e.y2&&r.y>e.y)},Qh=function(e,r,t,n,i,a,o,s){isArray(e)||(e=[e,r,t,n,i,a,o,s]);var l=Jw.apply(null,e);return bu(l.min.x,l.min.y,l.max.x-l.min.x,l.max.y-l.min.y)},tv=function(e,r,t,n,i,a,o,s,l){var u=1-l,c=Math.pow(u,3),h=Math.pow(u,2),v=l*l,p=v*l,g=c*e+h*3*l*t+u*3*l*l*i+p*o,y=c*r+h*3*l*n+u*3*l*l*a+p*s,x=e+2*l*(t-e)+v*(i-2*t+e),m=r+2*l*(n-r)+v*(a-2*n+r),w=t+2*l*(i-t)+v*(o-2*i+t),M=n+2*l*(a-n)+v*(s-2*a+n),S=u*e+l*t,A=u*r+l*n,D=u*i+l*o,V=u*a+l*s,K=90-Math.atan2(x-w,m-M)*180/Math.PI;return{x:g,y,m:{x,y:m},n:{x:w,y:M},start:{x:S,y:A},end:{x:D,y:V},alpha:K}},eM=function(e,r,t){var n=Qh(e),i=Qh(r);if(!tM(n,i))return t?0:[];for(var a=Jh.apply(0,e),o=Jh.apply(0,r),s=~~(a/8),l=~~(o/8),u=[],c=[],h={},v=t?0:[],p=0;p<s+1;p++){var g=tv.apply(0,e.concat(p/s));u.push({x:g.x,y:g.y,t:p/s})}for(var p=0;p<l+1;p++){var g=tv.apply(0,r.concat(p/l));c.push({x:g.x,y:g.y,t:p/l})}for(var p=0;p<s;p++)for(var y=0;y<l;y++){var x=u[p],m=u[p+1],w=c[y],M=c[y+1],S=Math.abs(m.x-x.x)<.001?"y":"x",A=Math.abs(M.x-w.x)<.001?"y":"x",D=Qw(x.x,x.y,m.x,m.y,w.x,w.y,M.x,M.y);if(D){if(h[D.x.toFixed(4)]===D.y.toFixed(4))continue;h[D.x.toFixed(4)]=D.y.toFixed(4);var V=x.t+Math.abs((D[S]-x[S])/(m[S]-x[S]))*(m.t-x.t),K=w.t+Math.abs((D[A]-w[A])/(M[A]-w[A]))*(M.t-w.t);V>=0&&V<=1&&K>=0&&K<=1&&(t?v++:v.push({x:D.x,y:D.y,t1:V,t2:K}))}}return v},rM=function(e,r,t){e=path2Curve(e),r=path2Curve(r);for(var n,i,a,o,s,l,u,c,h,v,p=t?0:[],g=0,y=e.length;g<y;g++){var x=e[g];if(x[0]==="M")n=s=x[1],i=l=x[2];else{x[0]==="C"?(h=[n,i].concat(x.slice(1)),n=h[6],i=h[7]):(h=[n,i,n,i,s,l,s,l],n=s,i=l);for(var m=0,w=r.length;m<w;m++){var M=r[m];if(M[0]==="M")a=u=M[1],o=c=M[2];else{M[0]==="C"?(v=[a,o].concat(M.slice(1)),a=v[6],o=v[7]):(v=[a,o,a,o,u,c,u,c],a=u,o=c);var S=eM(h,v,t);if(t)p+=S;else{for(var A=0,D=S.length;A<D;A++)S[A].segment1=g,S[A].segment2=m,S[A].bez1=h,S[A].bez2=v;p=p.concat(S)}}}}}return p};function a5(e,r){return rM(e,r)}function ws(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Au(e,r){return ws(e)*ws(r)?(e[0]*r[0]+e[1]*r[1])/(ws(e)*ws(r)):1}function ev(e,r){return(e[0]*r[1]<e[1]*r[0]?-1:1)*Math.acos(Au(e,r))}function rv(e,r){return e[0]===r[0]&&e[1]===r[1]}function o5(e,r){var t=r[1],n=r[2],i=mod(toRadian(r[3]),Math.PI*2),a=r[4],o=r[5],s=e[0],l=e[1],u=r[6],c=r[7],h=Math.cos(i)*(s-u)/2+Math.sin(i)*(l-c)/2,v=-1*Math.sin(i)*(s-u)/2+Math.cos(i)*(l-c)/2,p=h*h/(t*t)+v*v/(n*n);p>1&&(t*=Math.sqrt(p),n*=Math.sqrt(p));var g=t*t*(v*v)+n*n*(h*h),y=g?Math.sqrt((t*t*(n*n)-g)/g):1;a===o&&(y*=-1),isNaN(y)&&(y=0);var x=n?y*t*v/n:0,m=t?y*-n*h/t:0,w=(s+u)/2+Math.cos(i)*x-Math.sin(i)*m,M=(l+c)/2+Math.sin(i)*x+Math.cos(i)*m,S=[(h-x)/t,(v-m)/n],A=[(-1*h-x)/t,(-1*v-m)/n],D=ev([1,0],S),V=ev(S,A);return Au(S,A)<=-1&&(V=Math.PI),Au(S,A)>=1&&(V=0),o===0&&V>0&&(V=V-2*Math.PI),o===1&&V<0&&(V=V+2*Math.PI),{cx:w,cy:M,rx:rv(e,[u,c])?0:t,ry:rv(e,[u,c])?0:n,startAngle:D,endAngle:D+V,xRotation:i,arcFlag:a,sweepFlag:o}}function nv(e,r){return[r[0]+(r[0]-e[0]),r[1]+(r[1]-e[1])]}function s5(e){e=parsePath(e);for(var r=[],t=null,n=null,i=null,a=0,o=e.length,s=0;s<o;s++){var l=e[s];n=e[s+1];var u=l[0],c={command:u,prePoint:t,params:l,startTangent:null,endTangent:null};switch(u){case"M":i=[l[1],l[2]],a=s;break;case"A":var h=getArcParams(t,l);c.arcParams=h;break;default:break}if(u==="Z")t=i,n=e[a+1];else{var v=l.length;t=[l[v-2],l[v-1]]}n&&n[0]==="Z"&&(n=e[a],r[a]&&(r[a].prePoint=t)),c.currentPoint=t,r[a]&&isSamePoint(t,r[a].currentPoint)&&(r[a].prePoint=c.prePoint);var p=n?[n[n.length-2],n[n.length-1]]:null;c.nextPoint=p;var g=c.prePoint;if(["L","H","V"].includes(u))c.startTangent=[g[0]-t[0],g[1]-t[1]],c.endTangent=[t[0]-g[0],t[1]-g[1]];else if(u==="Q"){var y=[l[1],l[2]];c.startTangent=[g[0]-y[0],g[1]-y[1]],c.endTangent=[t[0]-y[0],t[1]-y[1]]}else if(u==="T"){var x=r[s-1],y=nv(x.currentPoint,g);x.command==="Q"?(c.command="Q",c.startTangent=[g[0]-y[0],g[1]-y[1]],c.endTangent=[t[0]-y[0],t[1]-y[1]]):(c.command="TL",c.startTangent=[g[0]-t[0],g[1]-t[1]],c.endTangent=[t[0]-g[0],t[1]-g[1]])}else if(u==="C"){var m=[l[1],l[2]],w=[l[3],l[4]];c.startTangent=[g[0]-m[0],g[1]-m[1]],c.endTangent=[t[0]-w[0],t[1]-w[1]],c.startTangent[0]===0&&c.startTangent[1]===0&&(c.startTangent=[m[0]-w[0],m[1]-w[1]]),c.endTangent[0]===0&&c.endTangent[1]===0&&(c.endTangent=[w[0]-m[0],w[1]-m[1]])}else if(u==="S"){var x=r[s-1],m=nv(x.currentPoint,g),w=[l[1],l[2]];x.command==="C"?(c.command="C",c.startTangent=[g[0]-m[0],g[1]-m[1]],c.endTangent=[t[0]-w[0],t[1]-w[1]]):(c.command="SQ",c.startTangent=[g[0]-w[0],g[1]-w[1]],c.endTangent=[t[0]-w[0],t[1]-w[1]])}else if(u==="A"){var M=.001,S=c.arcParams||{},A=S.cx,D=A===void 0?0:A,V=S.cy,K=V===void 0?0:V,Mt=S.rx,ot=Mt===void 0?0:Mt,Lt=S.ry,Qt=Lt===void 0?0:Lt,ge=S.sweepFlag,we=ge===void 0?0:ge,Ae=S.startAngle,zt=Ae===void 0?0:Ae,ie=S.endAngle,fe=ie===void 0?0:ie;we===0&&(M*=-1);var ue=ot*Math.cos(zt-M)+D,he=Qt*Math.sin(zt-M)+K;c.startTangent=[ue-i[0],he-i[1]];var Te=ot*Math.cos(zt+fe+M)+D,Be=Qt*Math.sin(zt+fe-M)+K;c.endTangent=[g[0]-Te,g[1]-Be]}r.push(c)}return r}var nM=1e-6;function Tu(e){return Math.abs(e)<nM?0:e<0?-1:1}function iM(e,r,t){return(t[0]-e[0])*(r[1]-e[1])==(r[0]-e[0])*(t[1]-e[1])&&Math.min(e[0],r[0])<=t[0]&&t[0]<=Math.max(e[0],r[0])&&Math.min(e[1],r[1])<=t[1]&&t[1]<=Math.max(e[1],r[1])}function iv(e,r,t){var n=!1,i=e.length;if(i<=2)return!1;for(var a=0;a<i;a++){var o=e[a],s=e[(a+1)%i];if(iM(o,s,[r,t]))return!0;Tu(o[1]-t)>0!=Tu(s[1]-t)>0&&Tu(r-(t-o[1])*(o[0]-s[0])/(o[1]-s[1])-o[0])<0&&(n=!n)}return n}var av=function(e,r,t){return e>=r&&e<=t};function aM(e,r,t,n){var i=.001,a={x:t.x-e.x,y:t.y-e.y},o={x:r.x-e.x,y:r.y-e.y},s={x:n.x-t.x,y:n.y-t.y},l=o.x*s.y-o.y*s.x,u=l*l,c=o.x*o.x+o.y*o.y,h=s.x*s.x+s.y*s.y,v=null;if(u>i*c*h){var p=(a.x*s.y-a.y*s.x)/l,g=(a.x*o.y-a.y*o.x)/l;av(p,0,1)&&av(g,0,1)&&(v={x:e.x+p*o.x,y:e.y+p*o.y})}return v}function ov(e){for(var r=[],t=e.length,n=0;n<t-1;n++){var i=e[n],a=e[n+1];r.push({from:{x:i[0],y:i[1]},to:{x:a[0],y:a[1]}})}if(r.length>1){var o=e[0],s=e[t-1];r.push({from:{x:s[0],y:s[1]},to:{x:o[0],y:o[1]}})}return r}function oM(e,r){var t=!1;return(0,f.S6)(e,function(n){if(aM(n.from,n.to,r.from,r.to))return t=!0,!1}),t}function sv(e){var r=e.map(function(n){return n[0]}),t=e.map(function(n){return n[1]});return{minX:Math.min.apply(null,r),maxX:Math.max.apply(null,r),minY:Math.min.apply(null,t),maxY:Math.max.apply(null,t)}}function sM(e,r){return!(r.minX>e.maxX||r.maxX<e.minX||r.minY>e.maxY||r.maxY<e.minY)}function lM(e,r){if(e.length<2||r.length<2)return!1;var t=sv(e),n=sv(r);if(!sM(t,n))return!1;var i=!1;if((0,f.S6)(r,function(l){if(iv(e,l[0],l[1]))return i=!0,!1}),i||((0,f.S6)(e,function(l){if(iv(r,l[0],l[1]))return i=!0,!1}),i))return!0;var a=ov(e),o=ov(r),s=!1;return(0,f.S6)(o,function(l){if(oM(a,l))return s=!0,!1}),s}function lv(e,r){var t=e.event,n=t.target;return cv(n,r)}function uv(e,r){var t=e.getCanvasBBox(),n=t.width,i=t.height;return n>0&&i>0&&(n>=r||i>=r)}function cv(e,r){var t=e.getCanvasBBox();return uv(e,r)?t:null}function fv(e,r){var t=e.event.maskShapes;return t.map(function(n){return cv(n,r)}).filter(function(n){return!!n})}function uM(e,r){var t=e.event,n=t.target;return hv(n,r)}function hv(e,r){return uv(e,r)?e.attr("path"):null}function cM(e,r){var t=e.event.maskShapes;return t.map(function(n){return hv(n,r)})}function ni(e){var r=e.event,t,n=r.target;return n&&(t=n.get("element")),t}function _i(e){var r=e.event,t=r.target,n;return t&&(n=t.get("delegateObject")),n}function vv(e){var r=e.event.gEvent;return!(r&&r.fromShape&&r.toShape&&r.fromShape.get("element")===r.toShape.get("element"))}function $a(e){return e&&e.component&&e.component.isList()}function pv(e){return e&&e.component&&e.component.isSlider()}function ja(e){var r=e.event,t=r.target;return t&&(t==null?void 0:t.get("name"))==="mask"||Ms(e)}function Ms(e){var r;return((r=e.event.target)===null||r===void 0?void 0:r.get("name"))==="multi-mask"}function Eu(e,r){var t=e.event.target;if(Ms(e))return fM(e,r);if(t.get("type")==="path"){var n=uM(e,r);return n?xv(e.view,n):void 0}var i=lv(e,r);return i?Ss(e.view,i):null}function fM(e,r){var t=e.event.target;if(t.get("type")==="path"){var n=cM(e,r);return n.length>0?n.flatMap(function(a){return xv(e.view,a)}):null}var i=fv(e,r);return i.length>0?i.flatMap(function(a){return Ss(e.view,a)}):null}function dv(e,r,t){if(Ms(e))return hM(e,r,t);var n=lv(e,t);return n?gv(n,e,r):null}function gv(e,r,t){var n=r.view,i=Fu(n,t,{x:e.x,y:e.y}),a=Fu(n,t,{x:e.maxX,y:e.maxY}),o={minX:i.x,minY:i.y,maxX:a.x,maxY:a.y};return Ss(t,o)}function hM(e,r,t){var n=fv(e,t);return n.length>0?n.flatMap(function(i){return gv(i,e,r)}):null}function Cr(e){var r=e.geometries,t=[];return(0,f.S6)(r,function(n){var i=n.elements;t=t.concat(i)}),e.views&&e.views.length&&(0,f.S6)(e.views,function(n){t=t.concat(Cr(n))}),t}function vM(e,r,t){var n=Cr(e);return n.filter(function(i){return ln(i,r)===t})}function yv(e,r){var t=e.geometries,n=[];return(0,f.S6)(t,function(i){var a=i.getElementsBy(function(o){return o.hasState(r)});n=n.concat(a)}),n}function ln(e,r){var t=e.getModel(),n=t.data,i;return(0,f.kJ)(n)?i=n[0][r]:i=n[r],i}function pM(e,r){return!(r.minX>e.maxX||r.maxX<e.minX||r.minY>e.maxY||r.maxY<e.minY)}function Ss(e,r){var t=Cr(e),n=[];return(0,f.S6)(t,function(i){var a=i.shape,o=a.getCanvasBBox();pM(r,o)&&n.push(i)}),n}function mv(e){var r=[];return(0,f.S6)(e,function(t){var n=t[0];if(n!=="A")for(var i=1;i<t.length;i=i+2)r.push([t[i],t[i+1]]);else{var a=t.length;r.push([t[a-2],t[a-1]])}}),r}function xv(e,r){var t=Cr(e),n=mv(r),i=t.filter(function(a){var o=a.shape,s;if(o.get("type")==="path")s=mv(o.attr("path"));else{var l=o.getCanvasBBox();s=yw(l)}return lM(n,s)});return i}function wv(e){return e.getComponents().map(function(r){return r.component})}function _u(e,r){var t=r.x-e.x,n=r.y-e.y;return Math.sqrt(t*t+n*n)}function dM(e,r){if(e.length<=2)return Wa(e,!1);var t=e[0],n=[];(0,f.S6)(e,function(a){n.push(a.x),n.push(a.y)});var i=qh(n,r,null);return i.unshift(["M",t.x,t.y]),i}function Mv(e,r){return e.x<=r.x&&e.maxX>=r.x&&e.y<=r.y&&e.maxY>r.y}function Mn(e){var r=e.parent,t=null;return r&&(t=r.views.filter(function(n){return n!==e})),t}function gM(e,r){var t=e.getCoordinate();return t.invert(r)}function Fu(e,r,t){var n=gM(e,t);return r.getCoordinate().convert(n)}function Sv(e,r,t,n){var i=!1;return(0,f.S6)(e,function(a){if(a[t]===r[t]&&a[n]===r[n])return i=!0,!1}),i}function oa(e,r){var t=e.getScaleByField(r);return!t&&e.views&&(0,f.S6)(e.views,function(n){if(t=oa(n,r),t)return!1}),t}var yM=function(){function e(r){this.actions=[],this.event=null,this.cacheMap={},this.view=r}return e.prototype.cache=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];if(r.length===1)return this.cacheMap[r[0]];r.length===2&&(this.cacheMap[r[0]]=r[1])},e.prototype.getAction=function(r){return this.actions.find(function(t){return t.name===r})},e.prototype.addAction=function(r){this.actions.push(r)},e.prototype.removeAction=function(r){var t=this.actions,n=this.actions.indexOf(r);n>=0&&t.splice(n,1)},e.prototype.getCurrentPoint=function(){var r=this.event;if(r)if(r.target instanceof HTMLElement){var t=this.view.getCanvas(),n=t.getPointByClient(r.clientX,r.clientY);return n}else return{x:r.x,y:r.y};return null},e.prototype.getCurrentShape=function(){return(0,f.U2)(this.event,["gEvent","shape"])},e.prototype.isInPlot=function(){var r=this.getCurrentPoint();return r?this.view.isPointInPlot(r):!1},e.prototype.isInShape=function(r){var t=this.getCurrentShape();return t?t.get("name")===r:!1},e.prototype.isInComponent=function(r){var t=wv(this.view),n=this.getCurrentPoint();return n?!!t.find(function(i){var a=i.getBBox();return r?i.get("name")===r&&Mv(a,n):Mv(a,n)}):!1},e.prototype.destroy=function(){(0,f.S6)(this.actions.slice(),function(r){r.destroy()}),this.view=null,this.event=null,this.actions=null,this.cacheMap=null},e}(),mM=yM,xM=function(){function e(r,t){this.view=r,this.cfg=t}return e.prototype.init=function(){this.initEvents()},e.prototype.initEvents=function(){},e.prototype.clearEvents=function(){},e.prototype.destroy=function(){this.clearEvents()},e}(),wM=xM;function Cv(e,r,t){var n=e.split(":"),i=n[0],a=r.getAction(i)||Pw(i,r);if(!a)throw new Error("There is no action named ".concat(i));var o=n[1];return{action:a,methodName:o,arg:t}}function bv(e){var r=e.action,t=e.methodName,n=e.arg;if(r[t])r[t](n);else throw new Error("Action(".concat(r.name,") doesn't have a method called ").concat(t))}var Xr={START:"start",SHOW_ENABLE:"showEnable",END:"end",ROLLBACK:"rollback",PROCESSING:"processing"},MM=function(e){(0,d.ZT)(r,e);function r(t,n){var i=e.call(this,t,n)||this;return i.callbackCaches={},i.emitCaches={},i.steps=n,i}return r.prototype.init=function(){this.initContext(),e.prototype.init.call(this)},r.prototype.destroy=function(){e.prototype.destroy.call(this),this.steps=null,this.context&&(this.context.destroy(),this.context=null),this.callbackCaches=null,this.view=null},r.prototype.initEvents=function(){var t=this;(0,f.S6)(this.steps,function(n,i){(0,f.S6)(n,function(a){var o=t.getActionCallback(i,a);o&&t.bindEvent(a.trigger,o)})})},r.prototype.clearEvents=function(){var t=this;(0,f.S6)(this.steps,function(n,i){(0,f.S6)(n,function(a){var o=t.getActionCallback(i,a);o&&t.offEvent(a.trigger,o)})})},r.prototype.initContext=function(){var t=this.view,n=new mM(t);this.context=n;var i=this.steps;(0,f.S6)(i,function(a){(0,f.S6)(a,function(o){if((0,f.mf)(o.action))o.actionObject={action:kw(o.action,n),methodName:"execute"};else if((0,f.HD)(o.action))o.actionObject=Cv(o.action,n,o.arg);else if((0,f.kJ)(o.action)){var s=o.action,l=(0,f.kJ)(o.arg)?o.arg:[o.arg];o.actionObject=[],(0,f.S6)(s,function(u,c){o.actionObject.push(Cv(u,n,l[c]))})}})})},r.prototype.isAllowStep=function(t){var n=this.currentStepName,i=this.steps;if(n===t||t===Xr.SHOW_ENABLE)return!0;if(t===Xr.PROCESSING)return n===Xr.START;if(t===Xr.START)return n!==Xr.PROCESSING;if(t===Xr.END)return n===Xr.PROCESSING||n===Xr.START;if(t===Xr.ROLLBACK){if(i[Xr.END])return n===Xr.END;if(n===Xr.START)return!0}return!1},r.prototype.isAllowExecute=function(t,n){if(this.isAllowStep(t)){var i=this.getKey(t,n);return n.once&&this.emitCaches[i]?!1:n.isEnable?n.isEnable(this.context):!0}return!1},r.prototype.enterStep=function(t){this.currentStepName=t,this.emitCaches={}},r.prototype.afterExecute=function(t,n){t!==Xr.SHOW_ENABLE&&this.currentStepName!==t&&this.enterStep(t);var i=this.getKey(t,n);this.emitCaches[i]=!0},r.prototype.getKey=function(t,n){return t+n.trigger+n.action},r.prototype.getActionCallback=function(t,n){var i=this,a=this.context,o=this.callbackCaches,s=n.actionObject;if(n.action&&s){var l=this.getKey(t,n);if(!o[l]){var u=function(c){a.event=c,i.isAllowExecute(t,n)?((0,f.kJ)(s)?(0,f.S6)(s,function(h){a.event=c,bv(h)}):(a.event=c,bv(s)),i.afterExecute(t,n),n.callback&&(a.event=c,n.callback(a))):a.event=null};n.debounce?o[l]=(0,f.Ds)(u,n.debounce.wait,n.debounce.immediate):n.throttle?o[l]=(0,f.P2)(u,n.throttle.wait,{leading:n.throttle.leading,trailing:n.throttle.trailing}):o[l]=u}return o[l]}return null},r.prototype.bindEvent=function(t,n){var i=t.split(":");i[0]==="window"?window.addEventListener(i[1],n):i[0]==="document"?document.addEventListener(i[1],n):this.view.on(t,n)},r.prototype.offEvent=function(t,n){var i=t.split(":");i[0]==="window"?window.removeEventListener(i[1],n):i[0]==="document"?document.removeEventListener(i[1],n):this.view.off(t,n)},r}(wM),SM=MM,Av={};function CM(e){return Av[(0,f.vl)(e)]}function Pe(e,r){Av[(0,f.vl)(e)]=r}function bM(e,r,t){var n=CM(e);if(!n)return null;if((0,f.PO)(n)){var i=(0,f.CD)((0,f.d9)(n),t);return new SM(r,i)}else{var a=n;return new a(r,t)}}function AM(e){return{title:{autoRotate:!0,position:"center",spacing:e.axisTitleSpacing,style:{fill:e.axisTitleTextFillColor,fontSize:e.axisTitleTextFontSize,lineHeight:e.axisTitleTextLineHeight,textBaseline:"middle",fontFamily:e.fontFamily},iconStyle:{fill:e.axisDescriptionIconFillColor}},label:{autoRotate:!1,autoEllipsis:!1,autoHide:{type:"equidistance",cfg:{minGap:6}},offset:e.axisLabelOffset,style:{fill:e.axisLabelFillColor,fontSize:e.axisLabelFontSize,lineHeight:e.axisLabelLineHeight,fontFamily:e.fontFamily}},line:{style:{lineWidth:e.axisLineBorder,stroke:e.axisLineBorderColor}},grid:{line:{type:"line",style:{stroke:e.axisGridBorderColor,lineWidth:e.axisGridBorder,lineDash:e.axisGridLineDash}},alignTick:!0,animate:!0},tickLine:{style:{lineWidth:e.axisTickLineBorder,stroke:e.axisTickLineBorderColor},alignTick:!0,length:e.axisTickLineLength},subTickLine:null,animate:!0}}function TM(e){return{title:null,marker:{symbol:"circle",spacing:e.legendMarkerSpacing,style:{r:e.legendCircleMarkerSize,fill:e.legendMarkerColor}},itemName:{spacing:5,style:{fill:e.legendItemNameFillColor,fontFamily:e.fontFamily,fontSize:e.legendItemNameFontSize,lineHeight:e.legendItemNameLineHeight,fontWeight:e.legendItemNameFontWeight,textAlign:"start",textBaseline:"middle"}},itemStates:{active:{nameStyle:{opacity:.8}},unchecked:{nameStyle:{fill:"#D8D8D8"},markerStyle:{fill:"#D8D8D8",stroke:"#D8D8D8"}},inactive:{nameStyle:{fill:"#D8D8D8"},markerStyle:{opacity:.2}}},flipPage:!0,pageNavigator:{marker:{style:{size:e.legendPageNavigatorMarkerSize,inactiveFill:e.legendPageNavigatorMarkerInactiveFillColor,inactiveOpacity:e.legendPageNavigatorMarkerInactiveFillOpacity,fill:e.legendPageNavigatorMarkerFillColor,opacity:e.legendPageNavigatorMarkerFillOpacity}},text:{style:{fill:e.legendPageNavigatorTextFillColor,fontSize:e.legendPageNavigatorTextFontSize}}},animate:!1,maxItemWidth:200,itemSpacing:e.legendItemSpacing,itemMarginBottom:e.legendItemMarginBottom,padding:e.legendPadding}}function Tv(e){var r,t={point:{default:{fill:e.pointFillColor,r:e.pointSize,stroke:e.pointBorderColor,lineWidth:e.pointBorder,fillOpacity:e.pointFillOpacity},active:{stroke:e.pointActiveBorderColor,lineWidth:e.pointActiveBorder},selected:{stroke:e.pointSelectedBorderColor,lineWidth:e.pointSelectedBorder},inactive:{fillOpacity:e.pointInactiveFillOpacity,strokeOpacity:e.pointInactiveBorderOpacity}},hollowPoint:{default:{fill:e.hollowPointFillColor,lineWidth:e.hollowPointBorder,stroke:e.hollowPointBorderColor,strokeOpacity:e.hollowPointBorderOpacity,r:e.hollowPointSize},active:{stroke:e.hollowPointActiveBorderColor,strokeOpacity:e.hollowPointActiveBorderOpacity},selected:{lineWidth:e.hollowPointSelectedBorder,stroke:e.hollowPointSelectedBorderColor,strokeOpacity:e.hollowPointSelectedBorderOpacity},inactive:{strokeOpacity:e.hollowPointInactiveBorderOpacity}},area:{default:{fill:e.areaFillColor,fillOpacity:e.areaFillOpacity,stroke:null},active:{fillOpacity:e.areaActiveFillOpacity},selected:{fillOpacity:e.areaSelectedFillOpacity},inactive:{fillOpacity:e.areaInactiveFillOpacity}},hollowArea:{default:{fill:null,stroke:e.hollowAreaBorderColor,lineWidth:e.hollowAreaBorder,strokeOpacity:e.hollowAreaBorderOpacity},active:{fill:null,lineWidth:e.hollowAreaActiveBorder},selected:{fill:null,lineWidth:e.hollowAreaSelectedBorder},inactive:{strokeOpacity:e.hollowAreaInactiveBorderOpacity}},interval:{default:{fill:e.intervalFillColor,fillOpacity:e.intervalFillOpacity},active:{stroke:e.intervalActiveBorderColor,lineWidth:e.intervalActiveBorder},selected:{stroke:e.intervalSelectedBorderColor,lineWidth:e.intervalSelectedBorder},inactive:{fillOpacity:e.intervalInactiveFillOpacity,strokeOpacity:e.intervalInactiveBorderOpacity}},hollowInterval:{default:{fill:e.hollowIntervalFillColor,stroke:e.hollowIntervalBorderColor,lineWidth:e.hollowIntervalBorder,strokeOpacity:e.hollowIntervalBorderOpacity},active:{stroke:e.hollowIntervalActiveBorderColor,lineWidth:e.hollowIntervalActiveBorder,strokeOpacity:e.hollowIntervalActiveBorderOpacity},selected:{stroke:e.hollowIntervalSelectedBorderColor,lineWidth:e.hollowIntervalSelectedBorder,strokeOpacity:e.hollowIntervalSelectedBorderOpacity},inactive:{stroke:e.hollowIntervalInactiveBorderColor,lineWidth:e.hollowIntervalInactiveBorder,strokeOpacity:e.hollowIntervalInactiveBorderOpacity}},line:{default:{stroke:e.lineBorderColor,lineWidth:e.lineBorder,strokeOpacity:e.lineBorderOpacity,fill:null,lineAppendWidth:10,lineCap:"round",lineJoin:"round"},active:{lineWidth:e.lineActiveBorder},selected:{lineWidth:e.lineSelectedBorder},inactive:{strokeOpacity:e.lineInactiveBorderOpacity}}},n=AM(e),i=TM(e);return{background:e.backgroundColor,defaultColor:e.brandColor,subColor:e.subColor,semanticRed:e.paletteSemanticRed,semanticGreen:e.paletteSemanticGreen,padding:"auto",fontFamily:e.fontFamily,columnWidthRatio:1/2,maxColumnWidth:null,minColumnWidth:null,roseWidthRatio:.9999999,multiplePieWidthRatio:1/1.3,colors10:e.paletteQualitative10,colors20:e.paletteQualitative20,sequenceColors:e.paletteSequence,shapes:{point:["hollow-circle","hollow-square","hollow-bowtie","hollow-diamond","hollow-hexagon","hollow-triangle","hollow-triangle-down","circle","square","bowtie","diamond","hexagon","triangle","triangle-down","cross","tick","plus","hyphen","line"],line:["line","dash","dot","smooth"],area:["area","smooth","line","smooth-line"],interval:["rect","hollow-rect","line","tick"]},sizes:[1,10],geometries:{interval:{rect:{default:{style:t.interval.default},active:{style:t.interval.active},inactive:{style:t.interval.inactive},selected:{style:function(a){var o=a.geometry.coordinate;if(o.isPolar&&o.isTransposed){var s=Ga(a.getModel(),o),l=s.startAngle,u=s.endAngle,c=(l+u)/2,h=7.5,v=h*Math.cos(c),p=h*Math.sin(c);return{matrix:nr.vs(null,[["t",v,p]])}}return t.interval.selected}}},"hollow-rect":{default:{style:t.hollowInterval.default},active:{style:t.hollowInterval.active},inactive:{style:t.hollowInterval.inactive},selected:{style:t.hollowInterval.selected}},line:{default:{style:t.hollowInterval.default},active:{style:t.hollowInterval.active},inactive:{style:t.hollowInterval.inactive},selected:{style:t.hollowInterval.selected}},tick:{default:{style:t.hollowInterval.default},active:{style:t.hollowInterval.active},inactive:{style:t.hollowInterval.inactive},selected:{style:t.hollowInterval.selected}},funnel:{default:{style:t.interval.default},active:{style:t.interval.active},inactive:{style:t.interval.inactive},selected:{style:t.interval.selected}},pyramid:{default:{style:t.interval.default},active:{style:t.interval.active},inactive:{style:t.interval.inactive},selected:{style:t.interval.selected}}},line:{line:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},dot:{default:{style:(0,d.pi)((0,d.pi)({},t.line.default),{lineCap:null,lineDash:[1,1]})},active:{style:(0,d.pi)((0,d.pi)({},t.line.active),{lineCap:null,lineDash:[1,1]})},inactive:{style:(0,d.pi)((0,d.pi)({},t.line.inactive),{lineCap:null,lineDash:[1,1]})},selected:{style:(0,d.pi)((0,d.pi)({},t.line.selected),{lineCap:null,lineDash:[1,1]})}},dash:{default:{style:(0,d.pi)((0,d.pi)({},t.line.default),{lineCap:null,lineDash:[5.5,1]})},active:{style:(0,d.pi)((0,d.pi)({},t.line.active),{lineCap:null,lineDash:[5.5,1]})},inactive:{style:(0,d.pi)((0,d.pi)({},t.line.inactive),{lineCap:null,lineDash:[5.5,1]})},selected:{style:(0,d.pi)((0,d.pi)({},t.line.selected),{lineCap:null,lineDash:[5.5,1]})}},smooth:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},hv:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},vh:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},hvh:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},vhv:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}}},polygon:{polygon:{default:{style:t.interval.default},active:{style:t.interval.active},inactive:{style:t.interval.inactive},selected:{style:t.interval.selected}}},point:{circle:{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},square:{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},bowtie:{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},diamond:{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},hexagon:{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},triangle:{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},"triangle-down":{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},"hollow-circle":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},"hollow-square":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},"hollow-bowtie":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},"hollow-diamond":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},"hollow-hexagon":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},"hollow-triangle":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},"hollow-triangle-down":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},cross:{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},tick:{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},plus:{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},hyphen:{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},line:{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}}},area:{area:{default:{style:t.area.default},active:{style:t.area.active},inactive:{style:t.area.inactive},selected:{style:t.area.selected}},smooth:{default:{style:t.area.default},active:{style:t.area.active},inactive:{style:t.area.inactive},selected:{style:t.area.selected}},line:{default:{style:t.hollowArea.default},active:{style:t.hollowArea.active},inactive:{style:t.hollowArea.inactive},selected:{style:t.hollowArea.selected}},"smooth-line":{default:{style:t.hollowArea.default},active:{style:t.hollowArea.active},inactive:{style:t.hollowArea.inactive},selected:{style:t.hollowArea.selected}}},schema:{candle:{default:{style:t.hollowInterval.default},active:{style:t.hollowInterval.active},inactive:{style:t.hollowInterval.inactive},selected:{style:t.hollowInterval.selected}},box:{default:{style:t.hollowInterval.default},active:{style:t.hollowInterval.active},inactive:{style:t.hollowInterval.inactive},selected:{style:t.hollowInterval.selected}}},edge:{line:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},vhv:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},smooth:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},arc:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}}},violin:{violin:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},smooth:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},hollow:{default:{style:t.hollowArea.default},active:{style:t.hollowArea.active},inactive:{style:t.hollowArea.inactive},selected:{style:t.hollowArea.selected}},"hollow-smooth":{default:{style:t.hollowArea.default},active:{style:t.hollowArea.active},inactive:{style:t.hollowArea.inactive},selected:{style:t.hollowArea.selected}}}},components:{axis:{common:n,top:{position:"top",grid:null,title:null,verticalLimitLength:1/2},bottom:{position:"bottom",grid:null,title:null,verticalLimitLength:1/2},left:{position:"left",title:null,line:null,tickLine:null,verticalLimitLength:1/3},right:{position:"right",title:null,line:null,tickLine:null,verticalLimitLength:1/3},circle:{title:null,grid:(0,f.b$)({},n.grid,{line:{type:"line"}})},radius:{title:null,grid:(0,f.b$)({},n.grid,{line:{type:"circle"}})}},legend:{common:i,right:{layout:"vertical",padding:e.legendVerticalPadding},left:{layout:"vertical",padding:e.legendVerticalPadding},top:{layout:"horizontal",padding:e.legendHorizontalPadding},bottom:{layout:"horizontal",padding:e.legendHorizontalPadding},continuous:{title:null,background:null,track:{},rail:{type:"color",size:e.sliderRailHeight,defaultLength:e.sliderRailWidth,style:{fill:e.sliderRailFillColor,stroke:e.sliderRailBorderColor,lineWidth:e.sliderRailBorder}},label:{align:"rail",spacing:4,formatter:null,style:{fill:e.sliderLabelTextFillColor,fontSize:e.sliderLabelTextFontSize,lineHeight:e.sliderLabelTextLineHeight,textBaseline:"middle",fontFamily:e.fontFamily}},handler:{size:e.sliderHandlerWidth,style:{fill:e.sliderHandlerFillColor,stroke:e.sliderHandlerBorderColor}},slidable:!0,padding:i.padding}},tooltip:{showContent:!0,follow:!0,showCrosshairs:!1,showMarkers:!0,shared:!1,enterable:!1,position:"auto",marker:{symbol:"circle",stroke:"#fff",shadowBlur:10,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0,0,0,0.09)",lineWidth:2,r:4},crosshairs:{line:{style:{stroke:e.tooltipCrosshairsBorderColor,lineWidth:e.tooltipCrosshairsBorder}},text:null,textBackground:{padding:2,style:{fill:"rgba(0, 0, 0, 0.25)",lineWidth:0,stroke:null}},follow:!1},domStyles:(r={},r["".concat(On)]={position:"absolute",visibility:"hidden",zIndex:8,transition:"left 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s, top 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s",backgroundColor:e.tooltipContainerFillColor,opacity:e.tooltipContainerFillOpacity,boxShadow:e.tooltipContainerShadow,borderRadius:"".concat(e.tooltipContainerBorderRadius,"px"),color:e.tooltipTextFillColor,fontSize:"".concat(e.tooltipTextFontSize,"px"),fontFamily:e.fontFamily,lineHeight:"".concat(e.tooltipTextLineHeight,"px"),padding:"0 12px 0 12px"},r["".concat(Bn)]={marginBottom:"12px",marginTop:"12px"},r["".concat(Va)]={margin:0,listStyleType:"none",padding:0},r["".concat(ss)]={listStyleType:"none",padding:0,marginBottom:"12px",marginTop:"12px",marginLeft:0,marginRight:0},r["".concat(ls)]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},r["".concat(us)]={display:"inline-block",float:"right",marginLeft:"30px"},r)},annotation:{arc:{style:{stroke:e.annotationArcBorderColor,lineWidth:e.annotationArcBorder},animate:!0},line:{style:{stroke:e.annotationLineBorderColor,lineDash:e.annotationLineDash,lineWidth:e.annotationLineBorder},text:{position:"start",autoRotate:!0,style:{fill:e.annotationTextFillColor,stroke:e.annotationTextBorderColor,lineWidth:e.annotationTextBorder,fontSize:e.annotationTextFontSize,textAlign:"start",fontFamily:e.fontFamily,textBaseline:"bottom"}},animate:!0},text:{style:{fill:e.annotationTextFillColor,stroke:e.annotationTextBorderColor,lineWidth:e.annotationTextBorder,fontSize:e.annotationTextFontSize,textBaseline:"middle",textAlign:"start",fontFamily:e.fontFamily},animate:!0},region:{top:!1,style:{lineWidth:e.annotationRegionBorder,stroke:e.annotationRegionBorderColor,fill:e.annotationRegionFillColor,fillOpacity:e.annotationRegionFillOpacity},animate:!0},image:{top:!1,animate:!0},dataMarker:{top:!0,point:{style:{r:3,stroke:e.brandColor,lineWidth:2}},line:{style:{stroke:e.annotationLineBorderColor,lineWidth:e.annotationLineBorder},length:e.annotationDataMarkerLineLength},text:{style:{textAlign:"start",fill:e.annotationTextFillColor,stroke:e.annotationTextBorderColor,lineWidth:e.annotationTextBorder,fontSize:e.annotationTextFontSize,fontFamily:e.fontFamily}},direction:"upward",autoAdjust:!0,animate:!0},dataRegion:{style:{region:{fill:e.annotationRegionFillColor,fillOpacity:e.annotationRegionFillOpacity},text:{textAlign:"center",textBaseline:"bottom",fill:e.annotationTextFillColor,stroke:e.annotationTextBorderColor,lineWidth:e.annotationTextBorder,fontSize:e.annotationTextFontSize,fontFamily:e.fontFamily}},animate:!0}},slider:{common:{padding:[8,8,8,8],backgroundStyle:{fill:e.cSliderBackgroundFillColor,opacity:e.cSliderBackgroundFillOpacity},foregroundStyle:{fill:e.cSliderForegroundFillColor,opacity:e.cSliderForegroundFillOpacity},handlerStyle:{width:e.cSliderHandlerWidth,height:e.cSliderHandlerHeight,fill:e.cSliderHandlerFillColor,opacity:e.cSliderHandlerFillOpacity,stroke:e.cSliderHandlerBorderColor,lineWidth:e.cSliderHandlerBorder,radius:e.cSliderHandlerBorderRadius,highLightFill:e.cSliderHandlerHighlightFillColor},textStyle:{fill:e.cSliderTextFillColor,opacity:e.cSliderTextFillOpacity,fontSize:e.cSliderTextFontSize,lineHeight:e.cSliderTextLineHeight,fontWeight:e.cSliderTextFontWeight,stroke:e.cSliderTextBorderColor,lineWidth:e.cSliderTextBorder}}},scrollbar:{common:{padding:[8,8,8,8]},default:{style:{trackColor:e.scrollbarTrackFillColor,thumbColor:e.scrollbarThumbFillColor}},hover:{style:{thumbColor:e.scrollbarThumbHighlightFillColor}}}},labels:{offset:12,style:{fill:e.labelFillColor,fontSize:e.labelFontSize,fontFamily:e.fontFamily,stroke:e.labelBorderColor,lineWidth:e.labelBorder},fillColorDark:e.labelFillColorDark,fillColorLight:e.labelFillColorLight,autoRotate:!0},innerLabels:{style:{fill:e.innerLabelFillColor,fontSize:e.innerLabelFontSize,fontFamily:e.fontFamily,stroke:e.innerLabelBorderColor,lineWidth:e.innerLabelBorder},autoRotate:!0},overflowLabels:{style:{fill:e.overflowLabelFillColor,fontSize:e.overflowLabelFontSize,fontFamily:e.fontFamily,stroke:e.overflowLabelBorderColor,lineWidth:e.overflowLabelBorder}},pieLabels:{labelHeight:14,offset:10,labelLine:{style:{lineWidth:e.labelLineBorder}},autoRotate:!0}}}var Je={100:"#000",95:"#0D0D0D",85:"#262626",65:"#595959",45:"#8C8C8C",25:"#BFBFBF",15:"#D9D9D9",6:"#F0F0F0"},sa={100:"#FFFFFF",95:"#F2F2F2",85:"#D9D9D9",65:"#A6A6A6",45:"#737373",25:"#404040",15:"#262626",6:"#0F0F0F"},EM=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#6F5EF9","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],_M=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#6F5EF9","#D3CEFD","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],FM=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"],Ev=function(e){e===void 0&&(e={});var r=e.paletteQualitative10,t=r===void 0?EM:r,n=e.paletteQualitative20,i=n===void 0?_M:n,a=e.brandColor,o=a===void 0?t[0]:a,s={backgroundColor:"transparent",brandColor:o,subColor:"rgba(0,0,0,0.05)",paletteQualitative10:t,paletteQualitative20:i,paletteSemanticRed:"#F4664A",paletteSemanticGreen:"#30BF78",paletteSemanticYellow:"#FAAD14",paletteSequence:FM,fontFamily:`"Segoe UI", Roboto, "Helvetica Neue", Arial,
  49. "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
  50. "Noto Color Emoji"`,axisLineBorderColor:Je[25],axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:Je[65],axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisDescriptionIconFillColor:sa[85],axisTickLineBorderColor:Je[25],axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:Je[15],axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:Je[45],axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:Je[15],axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:Je[45],legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:o,legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:Je[65],legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:"normal",legendItemSpacing:24,legendItemMarginBottom:12,legendPadding:[8,8,8,8],legendHorizontalPadding:[8,0,8,0],legendVerticalPadding:[0,8,0,8],legendPageNavigatorMarkerSize:12,legendPageNavigatorMarkerInactiveFillColor:Je[100],legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:Je[100],legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:Je[45],legendPageNavigatorTextFontSize:12,sliderRailFillColor:Je[15],sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:Je[45],sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:Je[6],sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:Je[25],annotationArcBorderColor:Je[15],annotationArcBorder:1,annotationLineBorderColor:Je[25],annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:Je[65],annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:Je[100],annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:Je[25],tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"rgb(255, 255, 255)",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 0px 10px #aeaeae",tooltipContainerBorderRadius:3,tooltipTextFillColor:Je[65],tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:Je[65],labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:sa[100],innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:Je[65],overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:sa[100],overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:Je[25],cSliderRailHieght:16,cSliderBackgroundFillColor:"#416180",cSliderBackgroundFillOpacity:.05,cSliderForegroundFillColor:"#5B8FF9",cSliderForegroundFillOpacity:.15,cSliderHandlerHeight:24,cSliderHandlerWidth:10,cSliderHandlerFillColor:"#F7F7F7",cSliderHandlerFillOpacity:1,cSliderHandlerHighlightFillColor:"#FFF",cSliderHandlerBorderColor:"#BFBFBF",cSliderHandlerBorder:1,cSliderHandlerBorderRadius:2,cSliderTextFillColor:"#000",cSliderTextFillOpacity:.45,cSliderTextFontSize:12,cSliderTextLineHeight:12,cSliderTextFontWeight:"normal",cSliderTextBorderColor:null,cSliderTextBorder:0,scrollbarTrackFillColor:"rgba(0,0,0,0)",scrollbarThumbFillColor:"rgba(0,0,0,0.15)",scrollbarThumbHighlightFillColor:"rgba(0,0,0,0.2)",pointFillColor:o,pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:sa[100],pointBorderOpacity:1,pointActiveBorderColor:Je[100],pointSelectedBorder:2,pointSelectedBorderColor:Je[100],pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:o,hollowPointBorderOpacity:.95,hollowPointFillColor:sa[100],hollowPointActiveBorder:1,hollowPointActiveBorderColor:Je[100],hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:Je[100],hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:o,lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:o,areaFillOpacity:.25,areaActiveFillColor:o,areaActiveFillOpacity:.5,areaSelectedFillColor:o,areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:o,hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:Je[100],hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:Je[100],hollowAreaInactiveBorderOpacity:.3,intervalFillColor:o,intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:Je[100],intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:Je[100],intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:o,hollowIntervalBorderOpacity:1,hollowIntervalFillColor:sa[100],hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:Je[100],hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:Je[100],hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3};return(0,d.pi)((0,d.pi)({},s),e)},l5=Ev();function Cs(e){var r=e.styleSheet,t=r===void 0?{}:r,n=(0,d._T)(e,["styleSheet"]),i=Ev(t);return(0,f.b$)({},Tv(i),n)}var IM=Cs({}),Iu={default:IM};function Ka(e){return(0,f.U2)(Iu,(0,f.vl)(e),Iu.default)}function LM(e,r){Iu[(0,f.vl)(e)]=Cs(r)}function _v(e,r,t){var n=t.translate(e),i=t.translate(r);return(0,f.vQ)(n,i)}function PM(e,r){var t=r.coordinate,n=r.getXScale(),i=n.range,a=i[i.length-1],o=i[0],s=t.invert(e),l=s.x;return t.isPolar&&l>(1+a)/2&&(l=o),n.translate(n.invert(l))}function Fv(e,r,t){var n=t.coordinate,i=t.getYScale(),a=i.field,o=n.invert(r),s=i.invert(o.y),l=(0,f.sE)(e,function(u){var c=u[re];return c[a][0]<=s&&c[a][1]>=s});return l||e[e.length-1]}var kM=(0,f.HP)(function(e){if(e.isCategory)return 1;for(var r=e.values,t=r.length,n=e.translate(r[0]),i=n,a=0;a<t;a++){var o=r[a],s=e.translate(o);s<n&&(n=s),s>i&&(i=s)}return(i-n)/(t-1)});function DM(e,r,t){var n=r.getAttribute("position"),i=n.getFields(),a=r.scales,o=(0,f.mf)(t)||!t?i[0]:t,s=a[o],l=s?s.getText(e[o]):e[o]||o;return(0,f.mf)(t)?t(l,e):l}function OM(e){var r=(0,f.VO)(e.attributes);return(0,f.hX)(r,function(t){return(0,f.FX)($t,t.type)})}function Iv(e){var r,t,n=OM(e),i;try{for(var a=(0,d.XA)(n),o=a.next();!o.done;o=a.next()){var s=o.value,l=s.getScale(s.type);if(l&&l.isLinear){var u=(0,f.U2)(e.scaleDefs,l.field),c=zh(l,u,s.type,e.type);if(c!=="cat"){i=l;break}}}}catch(p){r={error:p}}finally{try{o&&!o.done&&(t=a.return)&&t.call(a)}finally{if(r)throw r.error}}var h=e.getXScale(),v=e.getYScale();return i||v||h}function BM(e,r){var t=r.field,n=e[t];if((0,f.kJ)(n)){var i=n.map(function(a){return r.getText(a)});return i.join("-")}return r.getText(n)}function RM(e,r){var t,n=r.getGroupScales();if(n.length&&(t=n[0]),t){var i=t.field;return t.getText(e[i])}var a=Iv(r);return Xa(a)}function Lv(e,r,t){if(r.length===0)return null;var n=t.type,i=t.getXScale(),a=t.getYScale(),o=i.field,s=a.field,l=null;if(n==="heatmap"||n==="point"){for(var u=t.coordinate,c=u.invert(e),h=i.invert(c.x),v=a.invert(c.y),p=Infinity,g=0;g<r.length;g++){var y=r[g],x=y[re],m=Math.pow(x[o]-h,2)+Math.pow(x[s]-v,2);m<p&&(p=m,l=y)}return l}var w=r[0],M=r[r.length-1],S=PM(e,t),A=w[re][o],D=w[re][s],V=M[re][o],K=a.isLinear&&(0,f.kJ)(D);if((0,f.kJ)(A)){for(var g=0;g<r.length;g++){var Mt=r[g],x=Mt[re];if(i.translate(x[o][0])<=S&&i.translate(x[o][1])>=S)if(K)(0,f.kJ)(l)||(l=[]),l.push(Mt);else{l=Mt;break}}(0,f.kJ)(l)&&(l=Fv(l,e,t))}else{var ot=void 0;if(!i.isLinear&&i.type!=="timeCat"){for(var g=0;g<r.length;g++){var Mt=r[g],x=Mt[re];if(_v(x[o],S,i))if(K)(0,f.kJ)(l)||(l=[]),l.push(Mt);else{l=Mt;break}else i.translate(x[o])<=S&&(M=Mt,ot=r[g+1])}(0,f.kJ)(l)&&(l=Fv(l,e,t))}else{if((S>i.translate(V)||S<i.translate(A))&&(S>i.max||S<i.min))return null;for(var Lt=0,Qt=r.length-1,ge=void 0;Lt<=Qt;){ge=Math.floor((Lt+Qt)/2);var we=r[ge][re][o];if(_v(we,S,i))return r[ge];i.translate(we)<=i.translate(S)?(Lt=ge+1,M=r[ge],ot=r[ge+1]):(Qt===0&&(M=r[0]),Qt=ge-1)}}M&&ot&&Math.abs(i.translate(M[re][o])-S)>Math.abs(i.translate(ot[re][o])-S)&&(M=ot)}var Ae=kM(t.getXScale());return!l&&Math.abs(i.translate(M[re][o])-S)<=Ae/2&&(l=M),l}function Lu(e,r,t,n){var i,a;t===void 0&&(t=""),n===void 0&&(n=!1);var o=e[re],s=DM(o,r,t),l=r.tooltipOption,u=r.theme.defaultColor,c=[],h,v;function p(Mt,ot){if(n||!(0,f.UM)(ot)&&ot!==""){var Lt={title:s,data:o,mappingData:e,name:Mt,value:ot,color:e.color||u,marker:!0};c.push(Lt)}}if((0,f.Kn)(l)){var g=l.fields,y=l.callback;if(y){var x=g.map(function(Mt){return e[re][Mt]}),m=y.apply(void 0,(0,d.ev)([],(0,d.CR)(x),!1)),w=(0,d.pi)({data:e[re],mappingData:e,title:s,color:e.color||u,marker:!0},m);c.push(w)}else{var M=r.scales;try{for(var S=(0,d.XA)(g),A=S.next();!A.done;A=S.next()){var D=A.value;if(!(0,f.UM)(o[D])){var V=M[D];h=Xa(V),v=V.getText(o[D]),p(h,v)}}}catch(Mt){i={error:Mt}}finally{try{A&&!A.done&&(a=S.return)&&a.call(S)}finally{if(i)throw i.error}}}}else{var K=Iv(r);v=BM(o,K),h=RM(o,r),p(h,v)}return c}function Pv(e,r,t,n){var i,a,o=n.showNil,s=[],l=e.dataArray;if(!(0,f.xb)(l)){e.sort(l);try{for(var u=(0,d.XA)(l),c=u.next();!c.done;c=u.next()){var h=c.value,v=Lv(r,h,e);if(v){var p=e.getElementId(v),g=e.elementsMap[p];if(e.type==="heatmap"||g.visible){var y=Lu(v,e,t,o);y.length&&s.push(y)}}}}catch(x){i={error:x}}finally{try{c&&!c.done&&(a=u.return)&&a.call(u)}finally{if(i)throw i.error}}}return s}function kv(e,r,t,n){var i=n.showNil,a=[],o=e.container,s=o.getShape(r.x,r.y);if(s&&s.get("visible")&&s.get("origin")){var l=s.get("origin").mappingData,u=Lu(l,e,t,i);u.length&&a.push(u)}return a}function Pu(e,r,t){var n,i,a=[],o=e.geometries,s=t.shared,l=t.title,u=t.reversed;try{for(var c=(0,d.XA)(o),h=c.next();!h.done;h=c.next()){var v=h.value;if(v.visible&&v.tooltipOption!==!1){var p=v.type,g=void 0;["point","edge","polygon"].includes(p)?g=kv(v,r,l,t):["area","line","path","heatmap"].includes(p)||s!==!1?g=Pv(v,r,l,t):g=kv(v,r,l,t),g.length&&(u&&g.reverse(),a.push(g))}}}catch(y){n={error:y}}finally{try{h&&!h.done&&(i=c.return)&&i.call(c)}finally{if(n)throw n.error}}return a}function NM(e,r,t){var n,i,a=Pu(e,r,t);try{for(var o=(0,d.XA)(e.views),s=o.next();!s.done;s=o.next()){var l=s.value;a=a.concat(Pu(l,r,t))}}catch(u){n={error:u}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return a}function zM(e){return!(0,f.hj)(e)&&!(0,f.kJ)(e)}function ku(e){e===void 0&&(e=0);var r=(0,f.kJ)(e)?e:[e];switch(r.length){case 0:r=[0,0,0,0];break;case 1:r=new Array(4).fill(r[0]);break;case 2:r=(0,d.ev)((0,d.ev)([],(0,d.CR)(r),!1),(0,d.CR)(r),!1);break;case 3:r=(0,d.ev)((0,d.ev)([],(0,d.CR)(r),!1),[r[1]],!1);break;default:r=r.slice(0,4);break}return r}var bs={};function Fi(e,r){bs[e]=r}function u5(e){delete bs[e]}function VM(){return Object.keys(bs)}function UM(e){return bs[e]}var HM=function(){function e(r){this.option=this.wrapperOption(r)}return e.prototype.update=function(r){return this.option=this.wrapperOption(r),this},e.prototype.hasAction=function(r){var t=this.option.actions;return(0,f.G)(t,function(n){return n[0]===r})},e.prototype.create=function(r,t){var n=this.option,i=n.type,a=n.cfg,o=i==="theta",s=(0,d.pi)({start:r,end:t},a),l=Xm(o?"polar":i);return this.coordinate=new l(s),this.coordinate.type=i,o&&(this.hasAction("transpose")||this.transpose()),this.execActions(),this.coordinate},e.prototype.adjust=function(r,t){return this.coordinate.update({start:r,end:t}),this.coordinate.resetMatrix(),this.execActions(["scale","rotate","translate"]),this.coordinate},e.prototype.rotate=function(r){return this.option.actions.push(["rotate",r]),this},e.prototype.reflect=function(r){return this.option.actions.push(["reflect",r]),this},e.prototype.scale=function(r,t){return this.option.actions.push(["scale",r,t]),this},e.prototype.transpose=function(){return this.option.actions.push(["transpose"]),this},e.prototype.getOption=function(){return this.option},e.prototype.getCoordinate=function(){return this.coordinate},e.prototype.wrapperOption=function(r){return(0,d.pi)({type:"rect",actions:[],cfg:{}},r)},e.prototype.execActions=function(r){var t=this,n=this.option.actions;(0,f.S6)(n,function(i){var a,o=(0,d.CR)(i),s=o[0],l=o.slice(1),u=(0,f.UM)(r)?!0:r.includes(s);u&&(a=t.coordinate)[s].apply(a,(0,d.ev)([],(0,d.CR)(l),!1))})},e}(),GM=HM,YM=function(){function e(r,t,n){this.view=r,this.gEvent=t,this.data=n,this.type=t.type}return e.fromData=function(r,t,n){return new e(r,new _.Event(t,{}),n)},Object.defineProperty(e.prototype,"target",{get:function(){return this.gEvent.target},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"event",{get:function(){return this.gEvent.originalEvent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"x",{get:function(){return this.gEvent.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this.gEvent.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clientX",{get:function(){return this.gEvent.clientX},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clientY",{get:function(){return this.gEvent.clientY},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return"[Event (type=".concat(this.type,")]")},e.prototype.clone=function(){return new e(this.view,this.gEvent,this.data)},e}(),lr=YM;function XM(e){var r=e.getController("axis"),t=e.getController("legend"),n=e.getController("annotation"),i=e.getController("slider"),a=e.getController("scrollbar");[r,i,a,t,n].forEach(function(o){o&&o.layout()})}var WM=function(){function e(){this.scales=new Map,this.syncScales=new Map}return e.prototype.createScale=function(r,t,n,i){var a=n,o=this.getScaleMeta(i);if(t.length===0&&o){var s=o.scale,l={type:s.type};s.isCategory&&(l.values=s.values),a=(0,f.b$)(l,o.scaleDef,n)}var u=Cw(r,t,a);return this.cacheScale(u,n,i),u},e.prototype.sync=function(r,t){var n=this;this.syncScales.forEach(function(i,a){var o=Number.MAX_SAFE_INTEGER,s=Number.MIN_SAFE_INTEGER,l=[];(0,f.S6)(i,function(u){var c=n.getScale(u);s=(0,f.hj)(c.max)?Math.max(s,c.max):s,o=(0,f.hj)(c.min)?Math.min(o,c.min):o,(0,f.S6)(c.values,function(h){l.includes(h)||l.push(h)})}),(0,f.S6)(i,function(u){var c=n.getScale(u);if(c.isContinuous)c.change({min:o,max:s,values:l});else if(c.isCategory){var h=c.range,v=n.getScaleMeta(u);l&&!(0,f.U2)(v,["scaleDef","range"])&&(h=Vh((0,f.b$)({},c,{values:l}),r,t)),c.change({values:l,range:h})}})})},e.prototype.cacheScale=function(r,t,n){var i=this.getScaleMeta(n);i&&i.scale.type===r.type?(bw(i.scale,r),i.scaleDef=t):(i={key:n,scale:r,scaleDef:t},this.scales.set(n,i));var a=this.getSyncKey(i);if(i.syncKey=a,this.removeFromSyncScales(n),a){var o=this.syncScales.get(a);o||(o=[],this.syncScales.set(a,o)),o.push(n)}},e.prototype.getScale=function(r){var t=this.getScaleMeta(r);if(!t){var n=(0,f.Z$)(r.split("-")),i=this.syncScales.get(n);i&&i.length&&(t=this.getScaleMeta(i[0]))}return t&&t.scale},e.prototype.deleteScale=function(r){var t=this.getScaleMeta(r);if(t){var n=t.syncKey,i=this.syncScales.get(n);if(i&&i.length){var a=i.indexOf(r);a!==-1&&i.splice(a,1)}}this.scales.delete(r)},e.prototype.clear=function(){this.scales.clear(),this.syncScales.clear()},e.prototype.removeFromSyncScales=function(r){var t=this;this.syncScales.forEach(function(n,i){var a=n.indexOf(r);if(a!==-1)return n.splice(a,1),n.length===0&&t.syncScales.delete(i),!1})},e.prototype.getSyncKey=function(r){var t=r.scale,n=r.scaleDef,i=t.field,a=(0,f.U2)(n,["sync"]);return a===!0?i:a===!1?void 0:a},e.prototype.getScaleMeta=function(r){return this.scales.get(r)},e}(),As=function(){function e(r,t,n,i){r===void 0&&(r=0),t===void 0&&(t=0),n===void 0&&(n=0),i===void 0&&(i=0),this.top=r,this.right=t,this.bottom=n,this.left=i}return e.instance=function(r,t,n,i){return r===void 0&&(r=0),t===void 0&&(t=0),n===void 0&&(n=0),i===void 0&&(i=0),new e(r,t,n,i)},e.prototype.max=function(r){var t=(0,d.CR)(r,4),n=t[0],i=t[1],a=t[2],o=t[3];return this.top=Math.max(this.top,n),this.right=Math.max(this.right,i),this.bottom=Math.max(this.bottom,a),this.left=Math.max(this.left,o),this},e.prototype.shrink=function(r){var t=(0,d.CR)(r,4),n=t[0],i=t[1],a=t[2],o=t[3];return this.top+=n,this.right+=i,this.bottom+=a,this.left+=o,this},e.prototype.inc=function(r,t){var n=r.width,i=r.height;switch(t){case J.TOP:case J.TOP_LEFT:case J.TOP_RIGHT:this.top+=i;break;case J.RIGHT:case J.RIGHT_TOP:case J.RIGHT_BOTTOM:this.right+=n;break;case J.BOTTOM:case J.BOTTOM_LEFT:case J.BOTTOM_RIGHT:this.bottom+=i;break;case J.LEFT:case J.LEFT_TOP:case J.LEFT_BOTTOM:this.left+=n;break;default:break}return this},e.prototype.getPadding=function(){return[this.top,this.right,this.bottom,this.left]},e.prototype.clone=function(){return new(e.bind.apply(e,(0,d.ev)([void 0],(0,d.CR)(this.getPadding()),!1)))},e}();function ZM(e){var r=e.padding;if(!zM(r))return new(As.bind.apply(As,(0,d.ev)([void 0],(0,d.CR)(ku(r)),!1)));var t=e.viewBBox,n=new As,i=[],a=[],o=[];return(0,f.S6)(e.getComponents(),function(s){var l=s.type;l===St.AXIS?i.push(s):[St.LEGEND,St.SLIDER,St.SCROLLBAR].includes(l)?a.push(s):l!==St.GRID&&l!==St.TOOLTIP&&o.push(s)}),(0,f.S6)(i,function(s){var l=s.component,u=l.getLayoutBBox(),c=new Pr(u.x,u.y,u.width,u.height),h=c.exceed(t);n.max(h)}),(0,f.S6)(a,function(s){var l=s.component,u=s.direction,c=l.getLayoutBBox(),h=l.get("padding"),v=new Pr(c.x,c.y,c.width,c.height).expand(h);n.inc(v,u)}),(0,f.S6)(o,function(s){var l=s.component,u=s.direction,c=l.getLayoutBBox(),h=new Pr(c.x,c.y,c.width,c.height);n.inc(h,u)}),n}function qM(e,r,t){var n=t.instance();r.forEach(function(i){i.autoPadding=n.max(i.autoPadding.getPadding())})}var Dv=function(e){(0,d.ZT)(r,e);function r(t){var n=e.call(this,{visible:t.visible})||this;n.views=[],n.geometries=[],n.controllers=[],n.interactions={},n.limitInPlot=!1,n.options={data:[],animate:!0},n.usedControllers=VM(),n.scalePool=new WM,n.layoutFunc=XM,n.isPreMouseInPlot=!1,n.isDataChanged=!1,n.isCoordinateChanged=!1,n.createdScaleKeys=new Map,n.onCanvasEvent=function(M){var S=M.name;if(!S.includes(":")){var A=n.createViewEvent(M);n.doPlotEvent(A),n.emit(S,A)}},n.onDelegateEvents=function(M){var S=M.name;if(!!S.includes(":")){var A=n.createViewEvent(M);n.emit(S,A)}};var i=t.id,a=i===void 0?(0,f.EL)("view"):i,o=t.parent,s=t.canvas,l=t.backgroundGroup,u=t.middleGroup,c=t.foregroundGroup,h=t.region,v=h===void 0?{start:{x:0,y:0},end:{x:1,y:1}}:h,p=t.padding,g=t.appendPadding,y=t.theme,x=t.options,m=t.limitInPlot,w=t.syncViewPadding;return n.parent=o,n.canvas=s,n.backgroundGroup=l,n.middleGroup=u,n.foregroundGroup=c,n.region=v,n.padding=p,n.appendPadding=g,n.options=(0,d.pi)((0,d.pi)({},n.options),x),n.limitInPlot=m,n.id=a,n.syncViewPadding=w,n.themeObject=(0,f.Kn)(y)?(0,f.b$)({},Ka("default"),Cs(y)):Ka(y),n.init(),n}return r.prototype.setLayout=function(t){this.layoutFunc=t},r.prototype.init=function(){this.calculateViewBBox(),this.initEvents(),this.initComponentController(),this.initOptions()},r.prototype.render=function(t,n){t===void 0&&(t=!1),this.emit(X.BEFORE_RENDER,lr.fromData(this,X.BEFORE_RENDER,n)),this.paint(t),this.emit(X.AFTER_RENDER,lr.fromData(this,X.AFTER_RENDER,n)),this.visible===!1&&this.changeVisible(!1)},r.prototype.clear=function(){var t=this;this.emit(X.BEFORE_CLEAR),this.filteredData=[],this.coordinateInstance=void 0,this.isDataChanged=!1,this.isCoordinateChanged=!1;for(var n=this.geometries,i=0;i<n.length;i++)n[i].clear(),n[i].container.remove(!0),n[i].labelsContainer.remove(!0);this.geometries=[];for(var a=this.controllers,i=0;i<a.length;i++)a[i].name==="annotation"?a[i].clear(!0):a[i].clear();this.createdScaleKeys.forEach(function(s,l){t.getRootView().scalePool.deleteScale(l)}),this.createdScaleKeys.clear();for(var o=this.views,i=0;i<o.length;i++)o[i].clear();this.emit(X.AFTER_CLEAR)},r.prototype.destroy=function(){this.emit(X.BEFORE_DESTROY);var t=this.interactions;(0,f.S6)(t,function(s){s&&s.destroy()}),this.clear();for(var n=this.controllers,i=0,a=n.length;i<a;i++){var o=n[i];o.destroy()}this.backgroundGroup.remove(!0),this.middleGroup.remove(!0),this.foregroundGroup.remove(!0),e.prototype.destroy.call(this)},r.prototype.changeVisible=function(t){e.prototype.changeVisible.call(this,t);for(var n=this.geometries,i=0,a=n.length;i<a;i++){var o=n[i];o.changeVisible(t)}for(var s=this.controllers,i=0,a=s.length;i<a;i++){var l=s[i];l.changeVisible(t)}return this.foregroundGroup.set("visible",t),this.middleGroup.set("visible",t),this.backgroundGroup.set("visible",t),this.getCanvas().draw(),this},r.prototype.data=function(t){return(0,f.t8)(this.options,"data",t),this.isDataChanged=!0,this},r.prototype.source=function(t){return console.warn("This method will be removed at G2 V4.1. Please use chart.data() instead."),this.data(t)},r.prototype.filter=function(t,n){return(0,f.mf)(n)?((0,f.t8)(this.options,["filters",t],n),this):(!n&&(0,f.U2)(this.options,["filters",t])&&delete this.options.filters[t],this)},r.prototype.axis=function(t,n){return(0,f.jn)(t)?(0,f.t8)(this.options,["axes"],t):(0,f.t8)(this.options,["axes",t],n),this},r.prototype.legend=function(t,n){return(0,f.jn)(t)?(0,f.t8)(this.options,["legends"],t):(0,f.HD)(t)?((0,f.t8)(this.options,["legends",t],n),(0,f.PO)(n)&&(n==null?void 0:n.selected)&&(0,f.t8)(this.options,["filters",t],function(i){var a;return(a=n==null?void 0:n.selected[i])!==null&&a!==void 0?a:!0})):(0,f.t8)(this.options,["legends"],t),this},r.prototype.scale=function(t,n){var i=this;return(0,f.HD)(t)?(0,f.t8)(this.options,["scales",t],n):(0,f.Kn)(t)&&(0,f.S6)(t,function(a,o){(0,f.t8)(i.options,["scales",o],a)}),this},r.prototype.tooltip=function(t){return(0,f.t8)(this.options,"tooltip",t),this},r.prototype.annotation=function(){return this.getController("annotation")},r.prototype.guide=function(){return console.warn("This method will be removed at G2 V4.1. Please use chart.annotation() instead."),this.annotation()},r.prototype.coordinate=function(t,n){return(0,f.HD)(t)?(0,f.t8)(this.options,"coordinate",{type:t,cfg:n}):(0,f.t8)(this.options,"coordinate",t),this.coordinateController.update(this.options.coordinate),this.coordinateController},r.prototype.coord=function(t,n){return console.warn("This method will be removed at G2 V4.1. Please use chart.coordinate() instead."),this.coordinate(t,n)},r.prototype.facet=function(t,n){this.facetInstance&&this.facetInstance.destroy();var i=_w(t);if(!i)throw new Error("facet '".concat(t,"' is not exist!"));return this.facetInstance=new i(this,(0,d.pi)((0,d.pi)({},n),{type:t})),this},r.prototype.animate=function(t){return(0,f.t8)(this.options,"animate",t),this},r.prototype.updateOptions=function(t){return this.clear(),(0,f.CD)(this.options,t),this.views.forEach(function(n){return n.destroy()}),this.views=[],this.initOptions(),this.coordinateBBox=this.viewBBox,this},r.prototype.option=function(t,n){if(r.prototype[t])throw new Error(`Can't use built in variable name "`.concat(t,'", please change another one.'));return(0,f.t8)(this.options,t,n),this},r.prototype.theme=function(t){return this.themeObject=(0,f.Kn)(t)?(0,f.b$)({},this.themeObject,Cs(t)):Ka(t),this},r.prototype.interaction=function(t,n){var i=this.interactions[t];i&&i.destroy();var a=bM(t,this,n);return a&&(a.init(),this.interactions[t]=a),this},r.prototype.removeInteraction=function(t){var n=this.interactions[t];n&&(n.destroy(),this.interactions[t]=void 0)},r.prototype.changeData=function(t){this.isDataChanged=!0,this.emit(X.BEFORE_CHANGE_DATA,lr.fromData(this,X.BEFORE_CHANGE_DATA,null)),this.data(t),this.paint(!0);for(var n=this.views,i=0,a=n.length;i<a;i++){var o=n[i];o.changeData(t)}this.emit(X.AFTER_CHANGE_DATA,lr.fromData(this,X.AFTER_CHANGE_DATA,null))},r.prototype.createView=function(t){this.parent&&this.parent.parent&&console.warn("The view nesting recursive feature will be removed at G2 V4.1. Please avoid to use it.");var n={data:this.options.data,scales:(0,f.d9)(this.options.scales),axes:(0,f.d9)(this.options.axes),coordinate:(0,f.d9)(this.coordinateController.getOption()),tooltip:(0,f.d9)(this.options.tooltip),legends:(0,f.d9)(this.options.legends),animate:this.options.animate,visible:this.visible},i=new r((0,d.pi)((0,d.pi)({parent:this,canvas:this.canvas,backgroundGroup:this.backgroundGroup.addGroup({zIndex:wt.BG}),middleGroup:this.middleGroup.addGroup({zIndex:wt.MID}),foregroundGroup:this.foregroundGroup.addGroup({zIndex:wt.FORE}),theme:this.themeObject,padding:this.padding},t),{options:(0,d.pi)((0,d.pi)({},n),(0,f.U2)(t,"options",{}))}));return this.views.push(i),i},r.prototype.view=function(t){return console.warn("This method will be removed at G2 V4.1. Please use chart.createView() instead."),this.createView(t)},r.prototype.removeView=function(t){var n=(0,f.Od)(this.views,function(i){return i===t})[0];return n&&n.destroy(),n},r.prototype.getCoordinate=function(){return this.coordinateInstance},r.prototype.getTheme=function(){return this.themeObject},r.prototype.getXScale=function(){var t=this.geometries[0];return t?t.getXScale():null},r.prototype.getYScales=function(){var t={},n=[];return this.geometries.forEach(function(i){var a=i.getYScale(),o=a.field;t[o]||(t[o]=!0,n.push(a))}),n},r.prototype.getScalesByDim=function(t){for(var n=this.geometries,i={},a=0,o=n.length;a<o;a++){var s=n[a],l=t==="x"?s.getXScale():s.getYScale();l&&!i[l.field]&&(i[l.field]=l)}return i},r.prototype.getScale=function(t,n){var i=n||this.getScaleKey(t);return this.getRootView().scalePool.getScale(i)},r.prototype.getScaleByField=function(t,n){return this.getScale(t,n)},r.prototype.getOptions=function(){return this.options},r.prototype.getData=function(){return this.filteredData},r.prototype.getOriginalData=function(){return this.options.data},r.prototype.getPadding=function(){return this.autoPadding.getPadding()},r.prototype.getGeometries=function(){return this.geometries},r.prototype.getElements=function(){return(0,f.u4)(this.geometries,function(t,n){return t.concat(n.getElements())},[])},r.prototype.getElementsBy=function(t){return this.getElements().filter(function(n){return t(n)})},r.prototype.getLayer=function(t){return t===rt.BG?this.backgroundGroup:t===rt.MID?this.middleGroup:t===rt.FORE?this.foregroundGroup:this.foregroundGroup},r.prototype.isPointInPlot=function(t){return xw(this.getCoordinate(),t)},r.prototype.getLegendAttributes=function(){return(0,f.xH)(this.geometries.map(function(t){return t.getGroupAttributes()}))},r.prototype.getGroupScales=function(){var t=this.geometries.map(function(n){return n.getGroupScales()});return ei((0,f.xH)(t))},r.prototype.getCanvas=function(){return this.getRootView().canvas},r.prototype.getRootView=function(){for(var t=this;;){if(t.parent){t=t.parent;continue}break}return t},r.prototype.getXY=function(t){var n=this.getCoordinate(),i=this.getScalesByDim("x"),a=this.getScalesByDim("y"),o,s;if((0,f.S6)(t,function(l,u){i[u]&&(o=i[u].scale(l)),a[u]&&(s=a[u].scale(l))}),!(0,f.UM)(o)&&!(0,f.UM)(s))return n.convert({x:o,y:s})},r.prototype.getController=function(t){return(0,f.sE)(this.controllers,function(n){return n.name===t})},r.prototype.showTooltip=function(t){var n=this.getController("tooltip");return n&&n.showTooltip(t),this},r.prototype.hideTooltip=function(){var t=this.getController("tooltip");return t&&t.hideTooltip(),this},r.prototype.lockTooltip=function(){var t=this.getController("tooltip");return t&&t.lockTooltip(),this},r.prototype.unlockTooltip=function(){var t=this.getController("tooltip");return t&&t.unlockTooltip(),this},r.prototype.isTooltipLocked=function(){var t=this.getController("tooltip");return t&&t.isTooltipLocked()},r.prototype.getTooltipItems=function(t){var n=this.getController("tooltip");return n?n.getTooltipItems(t):[]},r.prototype.getSnapRecords=function(t){for(var n=this.geometries,i=[],a=0,o=n.length;a<o;a++){var s=n[a],l=s.dataArray;s.sort(l);for(var u=void 0,c=0,h=l.length;c<h;c++){var v=l[c];u=Lv(t,v,s),u&&i.push(u)}}for(var p=this.views,a=0,o=p.length;a<o;a++){var g=p[a],y=g.getSnapRecords(t);i=i.concat(y)}return i},r.prototype.getComponents=function(){for(var t=[],n=this.controllers,i=0,a=n.length;i<a;i++){var o=n[i];t=t.concat(o.getComponents())}return t},r.prototype.filterData=function(t){var n=this.options.filters;return(0,f.dp)(n)===0?t:(0,f.hX)(t,function(i,a){var o=Object.keys(n);return o.every(function(s){var l=n[s];return l(i[s],i,a)})})},r.prototype.filterFieldData=function(t,n){var i=this.options.filters,a=(0,f.U2)(i,t);return(0,f.o8)(a)?n:n.filter(function(o,s){return a(o[t],o,s)})},r.prototype.adjustCoordinate=function(){var t=this.getCoordinate(),n=t.start,i=t.end,a=this.coordinateBBox.bl,o=this.coordinateBBox.tr;if((0,f.Xy)(n,a)&&(0,f.Xy)(i,o)){this.isCoordinateChanged=!1;return}this.isCoordinateChanged=!0,this.coordinateInstance=this.coordinateController.adjust(a,o)},r.prototype.paint=function(t){this.renderDataRecursive(t),this.syncScale(),this.emit(X.BEFORE_PAINT),this.renderPaddingRecursive(t),this.renderLayoutRecursive(t),this.renderBackgroundStyleShape(),this.renderPaintRecursive(t),this.emit(X.AFTER_PAINT),this.isDataChanged=!1},r.prototype.renderBackgroundStyleShape=function(){if(!this.parent){var t=(0,f.U2)(this.themeObject,"background");if(t){this.backgroundStyleRectShape||(this.backgroundStyleRectShape=this.backgroundGroup.addShape("rect",{attrs:{},zIndex:-1,capture:!1}),this.backgroundStyleRectShape.toBack());var n=this.viewBBox,i=n.x,a=n.y,o=n.width,s=n.height;this.backgroundStyleRectShape.attr({fill:t,x:i,y:a,width:o,height:s})}else this.backgroundStyleRectShape&&(this.backgroundStyleRectShape.remove(!0),this.backgroundStyleRectShape=void 0)}},r.prototype.renderPaddingRecursive=function(t){this.calculateViewBBox(),this.adjustCoordinate(),this.initComponents(t),this.autoPadding=ZM(this).shrink(ku(this.appendPadding)),this.coordinateBBox=this.viewBBox.shrink(this.autoPadding.getPadding()),this.adjustCoordinate();var n=this.controllers.find(function(l){return l.name==="tooltip"});n.update();for(var i=this.views,a=0,o=i.length;a<o;a++){var s=i[a];s.renderPaddingRecursive(t)}},r.prototype.renderLayoutRecursive=function(t){var n=this.syncViewPadding===!0?qM:(0,f.mf)(this.syncViewPadding)?this.syncViewPadding:void 0;n&&(n(this,this.views,As),this.views.forEach(function(l){l.coordinateBBox=l.viewBBox.shrink(l.autoPadding.getPadding()),l.adjustCoordinate()})),this.doLayout();for(var i=this.views,a=0,o=i.length;a<o;a++){var s=i[a];s.renderLayoutRecursive(t)}},r.prototype.renderPaintRecursive=function(t){var n=this.middleGroup;if(this.limitInPlot){var i=wu(this.coordinateInstance),a=i.type,o=i.attrs;n.setClip({type:a,attrs:o})}else n.setClip(void 0);this.paintGeometries(t),this.renderComponents(t);for(var s=this.views,l=0,u=s.length;l<u;l++){var c=s[l];c.renderPaintRecursive(t)}},r.prototype.createScale=function(t,n,i,a){var o=(0,f.U2)(this.options.scales,[t]),s=(0,d.pi)((0,d.pi)({},o),i);return this.parent?this.parent.createScale(t,n,s,a):this.scalePool.createScale(t,n,s,a)},r.prototype.renderDataRecursive=function(t){this.doFilterData(),this.createCoordinate(),this.initGeometries(t),this.renderFacet(t);for(var n=this.views,i=0,a=n.length;i<a;i++){var o=n[i];o.renderDataRecursive(t)}},r.prototype.calculateViewBBox=function(){var t,n,i,a;if(this.parent){var o=this.parent.coordinateBBox;t=o.x,n=o.y,i=o.width,a=o.height}else t=0,n=0,i=this.canvas.get("width"),a=this.canvas.get("height");var s=this.region,l=s.start,u=s.end,c=new Pr(t+i*l.x,n+a*l.y,i*(u.x-l.x),a*(u.y-l.y));(!this.viewBBox||!this.viewBBox.isEqual(c))&&(this.viewBBox=new Pr(t+i*l.x,n+a*l.y,i*(u.x-l.x),a*(u.y-l.y))),this.coordinateBBox=this.viewBBox},r.prototype.initEvents=function(){this.foregroundGroup.on("*",this.onDelegateEvents),this.middleGroup.on("*",this.onDelegateEvents),this.backgroundGroup.on("*",this.onDelegateEvents),this.canvas.on("*",this.onCanvasEvent)},r.prototype.initComponentController=function(){for(var t=this.usedControllers,n=0,i=t.length;n<i;n++){var a=t[n],o=UM(a);o&&this.controllers.push(new o(this))}},r.prototype.createViewEvent=function(t){var n=t.shape,i=t.name,a=n?n.get("origin"):null,o=new lr(this,t,a);return o.type=i,o},r.prototype.doPlotEvent=function(t){var n=t.type,i=t.x,a=t.y,o={x:i,y:a},s=["mousedown","mouseup","mousemove","mouseleave","mousewheel","touchstart","touchmove","touchend","touchcancel","click","dblclick","contextmenu"];if(s.includes(n)){var l=this.isPointInPlot(o),u=t.clone();if(l){var c="plot:".concat(n);u.type=c,this.emit(c,u),(n==="mouseleave"||n==="touchend")&&(this.isPreMouseInPlot=!1)}n==="mousemove"||n==="touchmove"?(this.isPreMouseInPlot&&!l?(n==="mousemove"&&(u.type=_t.MOUSE_LEAVE,this.emit(_t.MOUSE_LEAVE,u)),u.type=_t.LEAVE,this.emit(_t.LEAVE,u)):!this.isPreMouseInPlot&&l&&(n==="mousemove"&&(u.type=_t.MOUSE_ENTER,this.emit(_t.MOUSE_ENTER,u)),u.type=_t.ENTER,this.emit(_t.ENTER,u)),this.isPreMouseInPlot=l):(n==="mouseleave"||n==="touchend")&&this.isPreMouseInPlot&&(n==="mouseleave"&&(u.type=_t.MOUSE_LEAVE,this.emit(_t.MOUSE_LEAVE,u)),u.type=_t.LEAVE,this.emit(_t.LEAVE,u),this.isPreMouseInPlot=!1)}},r.prototype.doFilterData=function(){var t=this.options.data;this.filteredData=this.filterData(t)},r.prototype.initGeometries=function(t){this.createOrUpdateScales();for(var n=this.getCoordinate(),i=(0,f.U2)(this.options,"scales",{}),a=this.geometries,o=0,s=a.length;o<s;o++){var l=a[o];l.scales=this.getGeometryScales();var u={coordinate:n,scaleDefs:i,data:this.filteredData,theme:this.themeObject,isDataChanged:this.isDataChanged,isCoordinateChanged:this.isCoordinateChanged};t?l.update(u):l.init(u)}this.adjustScales()},r.prototype.createOrUpdateScales=function(){for(var t=this.getScaleFields(),n=this.getGroupedFields(),i=this.getOptions(),a=i.data,o=i.scales,s=o===void 0?{}:o,l=this.filteredData,u=0,c=t.length;u<c;u++){var h=t[u],v=s[h],p=this.getScaleKey(h);this.createScale(h,n.includes(h)?a:l,v,p),this.createdScaleKeys.set(p,!0)}},r.prototype.syncScale=function(){this.getRootView().scalePool.sync(this.getCoordinate(),this.theme)},r.prototype.getGeometryScales=function(){for(var t=this.getScaleFields(),n={},i=0;i<t.length;i++){var a=t[i];n[a]=this.getScaleByField(a)}return n},r.prototype.getScaleFields=function(){for(var t=[],n=new Map,i=this.geometries,a=0;a<i.length;a++){var o=i[a],s=o.getScaleFields();ei(s,t,n)}return t},r.prototype.getGroupedFields=function(){for(var t=[],n=new Map,i=this.geometries,a=0;a<i.length;a++){var o=i[a],s=o.getGroupFields();ei(s,t,n)}return t},r.prototype.adjustScales=function(){this.adjustCategoryScaleRange()},r.prototype.adjustCategoryScaleRange=function(){var t=this,n=(0,d.ev)([this.getXScale()],(0,d.CR)(this.getYScales()),!1).filter(function(o){return!!o}),i=this.getCoordinate(),a=this.options.scales;(0,f.S6)(n,function(o){var s=o.field,l=o.values,u=o.isCategory,c=o.isIdentity;(u||c)&&l&&!(0,f.U2)(a,[s,"range"])&&(o.range=Vh(o,i,t.theme))})},r.prototype.initComponents=function(t){for(var n=this.controllers,i=0;i<n.length;i++){var a=n[i];t?a.update():(a.clear(),a.render())}},r.prototype.doLayout=function(){this.layoutFunc(this)},r.prototype.createCoordinate=function(){var t=this.coordinateBBox.bl,n=this.coordinateBBox.tr;this.coordinateInstance=this.coordinateController.create(t,n)},r.prototype.paintGeometries=function(t){for(var n=this.options.animate,i=this.getCoordinate(),a={x:this.viewBBox.x,y:this.viewBBox.y,minX:this.viewBBox.minX,minY:this.viewBBox.minY,maxX:this.viewBBox.maxX,maxY:this.viewBBox.maxY,width:this.viewBBox.width,height:this.viewBBox.height},o=this.geometries,s=0;s<o.length;s++){var l=o[s];l.coordinate=i,l.canvasRegion=a,n||l.animate(!1),l.paint(t)}},r.prototype.renderComponents=function(t){for(var n=this.getComponents(),i=0;i<n.length;i++){var a=n[i];a.component.render()}},r.prototype.renderFacet=function(t){this.facetInstance&&(t?this.facetInstance.update():(this.facetInstance.clear(),this.facetInstance.init(),this.facetInstance.render()))},r.prototype.initOptions=function(){var t=this,n=this.options,i=n.geometries,a=i===void 0?[]:i,o=n.interactions,s=o===void 0?[]:o,l=n.views,u=l===void 0?[]:l,c=n.annotations,h=c===void 0?[]:c,v=n.coordinate,p=n.events,g=n.facets;this.coordinateController?v&&this.coordinateController.update(v):this.coordinateController=new GM(v);for(var y=0;y<a.length;y++){var x=a[y];this.createGeometry(x)}for(var m=0;m<s.length;m++){var w=s[m],M=w.type,S=w.cfg;this.interaction(M,S)}for(var A=0;A<u.length;A++){var D=u[A];this.createView(D)}for(var V=this.getController("annotation"),K=0;K<h.length;K++){var Mt=h[K];V.annotation(Mt)}p&&(0,f.S6)(p,function(ot,Lt){t.on(Lt,ot)}),g&&(0,f.S6)(g,function(ot){var Lt=ot.type,Qt=(0,d._T)(ot,["type"]);t.facet(Lt,Qt)})},r.prototype.createGeometry=function(t){var n=t.type,i=t.cfg,a=i===void 0?{}:i;if(this[n]){var o=this[n](a);(0,f.S6)(t,function(s,l){(0,f.mf)(o[l])&&o[l](s)})}},r.prototype.getScaleKey=function(t){return"".concat(this.id,"-").concat(t)},r}(k);function Sn(e,r){Dv.prototype[e.toLowerCase()]=function(t){t===void 0&&(t={});var n=(0,d.pi)({container:this.middleGroup.addGroup(),labelsContainer:this.foregroundGroup.addGroup()},t),i=new r(n);return this.geometries.push(i),i}}var $M=Dv,jM=function(e){(0,d.ZT)(r,e);function r(t){var n=this,i=t.container,a=t.width,o=t.height,s=t.autoFit,l=s===void 0?!1:s,u=t.padding,c=t.appendPadding,h=t.renderer,v=h===void 0?"canvas":h,p=t.pixelRatio,g=t.localRefresh,y=g===void 0?!0:g,x=t.visible,m=x===void 0?!0:x,w=t.supportCSSTransform,M=w===void 0?!1:w,S=t.defaultInteractions,A=S===void 0?["tooltip","legend-filter","legend-active","continuous-filter","ellipsis-text","axis-description"]:S,D=t.options,V=t.limitInPlot,K=t.theme,Mt=t.syncViewPadding,ot=(0,f.HD)(i)?document.getElementById(i):i,Lt=Z('<div style="position:relative;"></div>');ot.appendChild(Lt);var Qt=O(ot,l,a,o),ge=Ht(v),we=new ge.Canvas((0,d.pi)({container:Lt,pixelRatio:p,localRefresh:y,supportCSSTransform:M},Qt));return n=e.call(this,{parent:null,canvas:we,backgroundGroup:we.addGroup({zIndex:wt.BG}),middleGroup:we.addGroup({zIndex:wt.MID}),foregroundGroup:we.addGroup({zIndex:wt.FORE}),padding:u,appendPadding:c,visible:m,options:D,limitInPlot:V,theme:K,syncViewPadding:Mt})||this,n.onResize=(0,f.Ds)(function(){n.forceFit()},300),n.ele=ot,n.canvas=we,n.width=Qt.width,n.height=Qt.height,n.autoFit=l,n.localRefresh=y,n.renderer=v,n.wrapperElement=Lt,n.updateCanvasStyle(),n.bindAutoFit(),n.initDefaultInteractions(A),n}return r.prototype.initDefaultInteractions=function(t){var n=this;(0,f.S6)(t,function(i){n.interaction(i)})},r.prototype.aria=function(t){var n="aria-label";t===!1?this.ele.removeAttribute(n):this.ele.setAttribute(n,t.label)},r.prototype.changeSize=function(t,n){return this.width===t&&this.height===n?this:(this.emit(X.BEFORE_CHANGE_SIZE),this.width=t,this.height=n,this.canvas.changeSize(t,n),this.render(!0),this.emit(X.AFTER_CHANGE_SIZE),this)},r.prototype.clear=function(){e.prototype.clear.call(this),this.aria(!1)},r.prototype.destroy=function(){e.prototype.destroy.call(this),this.unbindAutoFit(),this.canvas.destroy(),L(this.wrapperElement),this.wrapperElement=null},r.prototype.changeVisible=function(t){return e.prototype.changeVisible.call(this,t),this.wrapperElement.style.display=t?"":"none",this},r.prototype.forceFit=function(){if(!this.destroyed){var t=O(this.ele,!0,this.width,this.height),n=t.width,i=t.height;this.changeSize(n,i)}},r.prototype.updateCanvasStyle=function(){nt(this.canvas.get("el"),{display:"inline-block",verticalAlign:"middle"})},r.prototype.bindAutoFit=function(){this.autoFit&&window.addEventListener("resize",this.onResize)},r.prototype.unbindAutoFit=function(){this.autoFit&&window.removeEventListener("resize",this.onResize)},r}($M),KM=jM,la=function(){function e(r){this.visible=!0,this.components=[],this.view=r}return e.prototype.clear=function(r){(0,f.S6)(this.components,function(t){t.component.destroy()}),this.components=[]},e.prototype.destroy=function(){this.clear()},e.prototype.getComponents=function(){return this.components},e.prototype.changeVisible=function(r){this.visible!==r&&(this.components.forEach(function(t){r?t.component.show():t.component.hide()}),this.visible=r)},e}();function JM(e){for(var r=[],t=function(i){var a=e[i],o=(0,f.sE)(r,function(s){return s.color===a.color&&s.name===a.name&&s.value===a.value&&s.title===a.title});o||r.push(a)},n=0;n<e.length;n++)t(n);return r}var QM=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.isLocked=!1,t}return Object.defineProperty(r.prototype,"name",{get:function(){return"tooltip"},enumerable:!1,configurable:!0}),r.prototype.init=function(){},r.prototype.isVisible=function(){var t=this.view.getOptions().tooltip;return t!==!1},r.prototype.render=function(){},r.prototype.showTooltip=function(t){if(this.point=t,!!this.isVisible()){var n=this.view,i=this.getTooltipItems(t);if(!i.length){this.hideTooltip();return}var a=this.getTitle(i),o={x:i[0].x,y:i[0].y};n.emit("tooltip:show",lr.fromData(n,"tooltip:show",(0,d.pi)({items:i,title:a},t)));var s=this.getTooltipCfg(),l=s.follow,u=s.showMarkers,c=s.showCrosshairs,h=s.showContent,v=s.marker,p=this.items,g=this.title;if(!(0,f.Xy)(g,a)||!(0,f.Xy)(p,i)?(n.emit("tooltip:change",lr.fromData(n,"tooltip:change",(0,d.pi)({items:i,title:a},t))),((0,f.mf)(h)?h(i):h)&&(this.tooltip||this.renderTooltip(),this.tooltip.update((0,f.CD)({},s,{items:this.getItemsAfterProcess(i),title:a},l?t:{})),this.tooltip.show()),u&&this.renderTooltipMarkers(i,v)):(this.tooltip&&l&&(this.tooltip.update(t),this.tooltip.show()),this.tooltipMarkersGroup&&this.tooltipMarkersGroup.show()),this.items=i,this.title=a,c){var y=(0,f.U2)(s,["crosshairs","follow"],!1);this.renderCrosshairs(y?t:o,s)}}},r.prototype.hideTooltip=function(){var t=this.getTooltipCfg().follow;if(!t){this.point=null;return}var n=this.tooltipMarkersGroup;n&&n.hide();var i=this.xCrosshair,a=this.yCrosshair;i&&i.hide(),a&&a.hide();var o=this.tooltip;o&&o.hide(),this.view.emit("tooltip:hide",lr.fromData(this.view,"tooltip:hide",{})),this.point=null},r.prototype.lockTooltip=function(){this.isLocked=!0,this.tooltip&&this.tooltip.setCapture(!0)},r.prototype.unlockTooltip=function(){this.isLocked=!1;var t=this.getTooltipCfg();this.tooltip&&this.tooltip.setCapture(t.capture)},r.prototype.isTooltipLocked=function(){return this.isLocked},r.prototype.clear=function(){var t=this,n=t.tooltip,i=t.xCrosshair,a=t.yCrosshair,o=t.tooltipMarkersGroup;n&&(n.hide(),n.clear()),i&&i.clear(),a&&a.clear(),o&&o.clear(),(n==null?void 0:n.get("customContent"))&&(this.tooltip.destroy(),this.tooltip=null),this.title=null,this.items=null},r.prototype.destroy=function(){this.tooltip&&this.tooltip.destroy(),this.xCrosshair&&this.xCrosshair.destroy(),this.yCrosshair&&this.yCrosshair.destroy(),this.guideGroup&&this.guideGroup.remove(!0),this.reset()},r.prototype.reset=function(){this.items=null,this.title=null,this.tooltipMarkersGroup=null,this.tooltipCrosshairsGroup=null,this.xCrosshair=null,this.yCrosshair=null,this.tooltip=null,this.guideGroup=null,this.isLocked=!1,this.point=null},r.prototype.changeVisible=function(t){if(this.visible!==t){var n=this,i=n.tooltip,a=n.tooltipMarkersGroup,o=n.xCrosshair,s=n.yCrosshair;t?(i&&i.show(),a&&a.show(),o&&o.show(),s&&s.show()):(i&&i.hide(),a&&a.hide(),o&&o.hide(),s&&s.hide()),this.visible=t}},r.prototype.getTooltipItems=function(t){var n,i,a,o,s,l,u=this.findItemsFromView(this.view,t);if(u.length){u=(0,f.xH)(u);try{for(var c=(0,d.XA)(u),h=c.next();!h.done;h=c.next()){var v=h.value;try{for(var p=(a=void 0,(0,d.XA)(v)),g=p.next();!g.done;g=p.next()){var y=g.value,x=y.mappingData,m=x.x,w=x.y;y.x=(0,f.kJ)(m)?m[m.length-1]:m,y.y=(0,f.kJ)(w)?w[w.length-1]:w}}catch(ot){a={error:ot}}finally{try{g&&!g.done&&(o=p.return)&&o.call(p)}finally{if(a)throw a.error}}}}catch(ot){n={error:ot}}finally{try{h&&!h.done&&(i=c.return)&&i.call(c)}finally{if(n)throw n.error}}var M=this.getTooltipCfg().shared;if(M===!1&&u.length>1){var S=u[0],A=Math.abs(t.y-S[0].y);try{for(var D=(0,d.XA)(u),V=D.next();!V.done;V=D.next()){var K=V.value,Mt=Math.abs(t.y-K[0].y);Mt<=A&&(S=K,A=Mt)}}catch(ot){s={error:ot}}finally{try{V&&!V.done&&(l=D.return)&&l.call(D)}finally{if(s)throw s.error}}u=[S]}return JM((0,f.xH)(u))}return[]},r.prototype.layout=function(){},r.prototype.update=function(){if(this.point&&this.showTooltip(this.point),this.tooltip){var t=this.view.getCanvas();this.tooltip.set("region",{start:{x:0,y:0},end:{x:t.get("width"),y:t.get("height")}})}},r.prototype.isCursorEntered=function(t){if(this.tooltip){var n=this.tooltip.getContainer(),i=this.tooltip.get("capture");if(n&&i){var a=n.getBoundingClientRect(),o=a.x,s=a.y,l=a.width,u=a.height;return new Pr(o,s,l,u).isPointIn(t)}}return!1},r.prototype.getTooltipCfg=function(){var t=this.view,n=t.getOptions().tooltip,i=this.processCustomContent(n),a=t.getTheme(),o=(0,f.U2)(a,["components","tooltip"],{}),s=(0,f.U2)(i,"enterable",o.enterable);return(0,f.b$)({},o,i,{capture:!!(s||this.isLocked)})},r.prototype.processCustomContent=function(t){if((0,f.jn)(t)||!(0,f.U2)(t,"customContent"))return t;var n=t.customContent,i=function(a,o){var s=n(a,o)||"";return(0,f.HD)(s)?'<div class="g2-tooltip">'+s+"</div>":s};return(0,d.pi)((0,d.pi)({},t),{customContent:i})},r.prototype.getTitle=function(t){var n=t[0].title||t[0].name;return this.title=n,n},r.prototype.renderTooltip=function(){var t=this.view.getCanvas(),n={start:{x:0,y:0},end:{x:t.get("width"),y:t.get("height")}},i=this.getTooltipCfg(),a=new hs((0,d.pi)((0,d.pi)({parent:t.get("el").parentNode,region:n},i),{visible:!1,crosshairs:null}));a.init(),this.tooltip=a},r.prototype.renderTooltipMarkers=function(t,n){var i,a,o=this.getTooltipMarkersGroup(),s=this.view.getRootView(),l=s.limitInPlot;try{for(var u=(0,d.XA)(t),c=u.next();!c.done;c=u.next()){var h=c.value,v=h.x,p=h.y;if(l||(o==null?void 0:o.getClip())){var g=wu(s.getCoordinate()),y=g.type,x=g.attrs;o==null||o.setClip({type:y,attrs:x})}else o==null||o.setClip(void 0);var m=this.view.getTheme(),w=(0,f.U2)(m,["components","tooltip","marker"],{}),M=(0,d.pi)((0,d.pi)({fill:h.color,symbol:"circle",shadowColor:h.color},(0,f.mf)(n)?(0,d.pi)((0,d.pi)({},w),n(h)):n),{x:v,y:p});o.addShape("marker",{attrs:M})}}catch(S){i={error:S}}finally{try{c&&!c.done&&(a=u.return)&&a.call(u)}finally{if(i)throw i.error}}},r.prototype.renderCrosshairs=function(t,n){var i=(0,f.U2)(n,["crosshairs","type"],"x");i==="x"?(this.yCrosshair&&this.yCrosshair.hide(),this.renderXCrosshairs(t,n)):i==="y"?(this.xCrosshair&&this.xCrosshair.hide(),this.renderYCrosshairs(t,n)):i==="xy"&&(this.renderXCrosshairs(t,n),this.renderYCrosshairs(t,n))},r.prototype.renderXCrosshairs=function(t,n){var i=this.getViewWithGeometry(this.view).getCoordinate(),a,o;if(i.isRect)i.isTransposed?(a={x:i.start.x,y:t.y},o={x:i.end.x,y:t.y}):(a={x:t.x,y:i.end.y},o={x:t.x,y:i.start.y});else{var s=na(i,t),l=i.getCenter(),u=i.getRadius();o=vr(l.x,l.y,u,s),a=l}var c=(0,f.b$)({start:a,end:o,container:this.getTooltipCrosshairsGroup()},(0,f.U2)(n,"crosshairs",{}),this.getCrosshairsText("x",t,n));delete c.type;var h=this.xCrosshair;h?h.update(c):(h=new ph(c),h.init()),h.render(),h.show(),this.xCrosshair=h},r.prototype.renderYCrosshairs=function(t,n){var i=this.getViewWithGeometry(this.view).getCoordinate(),a,o;if(i.isRect){var s=void 0,l=void 0;i.isTransposed?(s={x:t.x,y:i.end.y},l={x:t.x,y:i.start.y}):(s={x:i.start.x,y:t.y},l={x:i.end.x,y:t.y}),a={start:s,end:l},o="Line"}else a={center:i.getCenter(),radius:vs(i,t),startAngle:i.startAngle,endAngle:i.endAngle},o="Circle";a=(0,f.b$)({container:this.getTooltipCrosshairsGroup()},a,(0,f.U2)(n,"crosshairs",{}),this.getCrosshairsText("y",t,n)),delete a.type;var u=this.yCrosshair;u?i.isRect&&u.get("type")==="circle"||!i.isRect&&u.get("type")==="line"?(u=new ct[o](a),u.init()):u.update(a):(u=new ct[o](a),u.init()),u.render(),u.show(),this.yCrosshair=u},r.prototype.getCrosshairsText=function(t,n,i){var a=(0,f.U2)(i,["crosshairs","text"]),o=(0,f.U2)(i,["crosshairs","follow"]),s=this.items;if(a){var l=this.getViewWithGeometry(this.view),u=s[0],c=l.getXScale(),h=l.getYScales()[0],v=void 0,p=void 0;if(o){var g=this.view.getCoordinate().invert(n);v=c.invert(g.x),p=h.invert(g.y)}else v=u.data[c.field],p=u.data[h.field];var y=t==="x"?v:p;return(0,f.mf)(a)?a=a(t,y,s,n):a.content=y,{text:a}}},r.prototype.getGuideGroup=function(){if(!this.guideGroup){var t=this.view.foregroundGroup;this.guideGroup=t.addGroup({name:"tooltipGuide",capture:!1})}return this.guideGroup},r.prototype.getTooltipMarkersGroup=function(){var t=this.tooltipMarkersGroup;return t&&!t.destroyed?(t.clear(),t.show()):(t=this.getGuideGroup().addGroup({name:"tooltipMarkersGroup"}),t.toFront(),this.tooltipMarkersGroup=t),t},r.prototype.getTooltipCrosshairsGroup=function(){var t=this.tooltipCrosshairsGroup;return t||(t=this.getGuideGroup().addGroup({name:"tooltipCrosshairsGroup",capture:!1}),t.toBack(),this.tooltipCrosshairsGroup=t),t},r.prototype.findItemsFromView=function(t,n){var i,a;if(t.getOptions().tooltip===!1)return[];var o=this.getTooltipCfg(),s=Pu(t,n,o);try{for(var l=(0,d.XA)(t.views),u=l.next();!u.done;u=l.next()){var c=u.value;s=s.concat(this.findItemsFromView(c,n))}}catch(h){i={error:h}}finally{try{u&&!u.done&&(a=l.return)&&a.call(l)}finally{if(i)throw i.error}}return s},r.prototype.getViewWithGeometry=function(t){var n=this;return t.geometries.length?t:(0,f.sE)(t.views,function(i){return n.getViewWithGeometry(i)})},r.prototype.getItemsAfterProcess=function(t){var n=this.getTooltipCfg().customItems,i=n||function(a){return a};return i(t)},r}(la),Ov=QM,Bv={};function Rv(e){return Bv[e.toLowerCase()]}function Wr(e,r){Bv[e.toLowerCase()]=r}var ua={appear:{duration:450,easing:"easeQuadOut"},update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},t2={interval:function(e){return{enter:{animation:e.isRect?e.isTransposed?"scale-in-x":"scale-in-y":"fade-in"},update:{animation:e.isPolar&&e.isTransposed?"sector-path-update":null},leave:{animation:"fade-out"}}},line:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},path:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},point:{appear:{animation:"zoom-in"},enter:{animation:"zoom-in"},leave:{animation:"zoom-out"}},area:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},polygon:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},schema:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},edge:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},label:{appear:{animation:"fade-in",delay:450},enter:{animation:"fade-in"},update:{animation:"position-update"},leave:{animation:"fade-out"}}},Nv={line:function(){return{animation:"wave-in"}},area:function(){return{animation:"wave-in"}},path:function(){return{animation:"fade-in"}},interval:function(e){var r;return e.isRect?r=e.isTransposed?"grow-in-x":"grow-in-y":(r="grow-in-xy",e.isPolar&&e.isTransposed&&(r="wave-in")),{animation:r}},schema:function(e){var r;return e.isRect?r=e.isTransposed?"grow-in-x":"grow-in-y":r="grow-in-xy",{animation:r}},polygon:function(){return{animation:"fade-in",duration:500}},edge:function(){return{animation:"fade-in"}}};function e2(e,r){return{delay:(0,f.mf)(e.delay)?e.delay(r):e.delay,easing:(0,f.mf)(e.easing)?e.easing(r):e.easing,duration:(0,f.mf)(e.duration)?e.duration(r):e.duration,callback:e.callback,repeat:e.repeat}}function zv(e,r,t){var n=t2[e];return n&&((0,f.mf)(n)&&(n=n(r)),n=(0,f.b$)({},ua,n),t)?n[t]:n}function ca(e,r,t){var n=(0,f.U2)(e.get("origin"),"data",re),i=r.animation,a=e2(r,n);if(i){var o=Rv(i);o&&o(e,a,t)}else e.animate(t.toAttrs,a)}function r2(e,r,t,n,i){if(Nv[t]){var a=Nv[t](n),o=Rv((0,f.U2)(a,"animation",""));if(o){var s=(0,d.pi)((0,d.pi)((0,d.pi)({},ua.appear),a),r);e.stopAnimate(),o(e,s,{coordinate:n,minYPoint:i,toAttrs:null})}}}var Du="element-background",n2=function(e){(0,d.ZT)(r,e);function r(t){var n=e.call(this,t)||this;n.labelShape=[],n.states=[];var i=t.shapeFactory,a=t.container,o=t.offscreenGroup,s=t.elementIndex,l=t.visible,u=l===void 0?!0:l;return n.shapeFactory=i,n.container=a,n.offscreenGroup=o,n.visible=u,n.elementIndex=s,n}return r.prototype.draw=function(t,n){n===void 0&&(n=!1),this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.drawShape(t,n),this.visible===!1&&this.changeVisible(!1)},r.prototype.update=function(t){var n=this,i=n.shapeFactory,a=n.shape;if(!!a){this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.setShapeInfo(a,t);var o=this.getOffscreenGroup(),s=i.drawShape(this.shapeType,t,o);s.cfg.data=this.data,s.cfg.origin=t,s.cfg.element=this,this.syncShapeStyle(a,s,this.getStates(),this.getAnimateCfg("update"))}},r.prototype.destroy=function(){var t=this,n=t.shapeFactory,i=t.shape;if(i){var a=this.getAnimateCfg("leave");a?ca(i,a,{coordinate:n.coordinate,toAttrs:(0,d.pi)({},i.attr())}):i.remove(!0)}this.states=[],this.shapeFactory=void 0,this.container=void 0,this.shape=void 0,this.animate=void 0,this.geometry=void 0,this.labelShape=[],this.model=void 0,this.data=void 0,this.offscreenGroup=void 0,this.statesStyle=void 0,e.prototype.destroy.call(this)},r.prototype.changeVisible=function(t){e.prototype.changeVisible.call(this,t),t?(this.shape&&this.shape.show(),this.labelShape&&this.labelShape.forEach(function(n){n.show()})):(this.shape&&this.shape.hide(),this.labelShape&&this.labelShape.forEach(function(n){n.hide()}))},r.prototype.setState=function(t,n){var i=this,a=i.states,o=i.shapeFactory,s=i.model,l=i.shape,u=i.shapeType,c=a.indexOf(t);if(n){if(c>-1)return;a.push(t),(t==="active"||t==="selected")&&(l==null||l.toFront())}else{if(c===-1)return;if(a.splice(c,1),t==="active"||t==="selected"){var h=this.geometry,v=h.sortZIndex,p=h.zIndexReversed,g=p?this.geometry.elements.length-this.elementIndex:this.elementIndex;v?l.setZIndex(g):l.set("zIndex",g)}}var y=o.drawShape(u,s,this.getOffscreenGroup());a.length?this.syncShapeStyle(l,y,a,null):this.syncShapeStyle(l,y,["reset"],null),y.remove(!0);var x={state:t,stateStatus:n,element:this,target:this.container};this.container.emit("statechange",x),eh(this.shape,"statechange",x)},r.prototype.clearStates=function(){var t=this,n=this.states;(0,f.S6)(n,function(i){t.setState(i,!1)}),this.states=[]},r.prototype.hasState=function(t){return this.states.includes(t)},r.prototype.getStates=function(){return this.states},r.prototype.getData=function(){return this.data},r.prototype.getModel=function(){return this.model},r.prototype.getBBox=function(){var t=this,n=t.shape,i=t.labelShape,a={x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0};return n&&(a=n.getCanvasBBox()),i&&i.forEach(function(o){var s=o.getCanvasBBox();a.x=Math.min(s.x,a.x),a.y=Math.min(s.y,a.y),a.minX=Math.min(s.minX,a.minX),a.minY=Math.min(s.minY,a.minY),a.maxX=Math.max(s.maxX,a.maxX),a.maxY=Math.max(s.maxY,a.maxY)}),a.width=a.maxX-a.minX,a.height=a.maxY-a.minY,a},r.prototype.getStatesStyle=function(){if(!this.statesStyle){var t=this,n=t.shapeType,i=t.geometry,a=t.shapeFactory,o=i.stateOption,s=a.defaultShapeType,l=a.theme[n]||a.theme[s];this.statesStyle=(0,f.b$)({},l,o)}return this.statesStyle},r.prototype.getStateStyle=function(t,n){var i=this.getStatesStyle(),a=(0,f.U2)(i,[t,"style"],{}),o=a[n]||a;return(0,f.mf)(o)?o(this):o},r.prototype.getAnimateCfg=function(t){var n=this,i=this.animate;if(i){var a=i[t];return a&&(0,d.pi)((0,d.pi)({},a),{callback:function(){var o;(0,f.mf)(a.callback)&&a.callback(),(o=n.geometry)===null||o===void 0||o.emit(at.AFTER_DRAW_ANIMATE)}})}return null},r.prototype.drawShape=function(t,n){var i;n===void 0&&(n=!1);var a=this,o=a.shapeFactory,s=a.container,l=a.shapeType;if(this.shape=o.drawShape(l,t,s),this.shape){this.setShapeInfo(this.shape,t);var u=this.shape.cfg.name;u?(0,f.HD)(u)&&(this.shape.cfg.name=["element",u]):this.shape.cfg.name=["element",this.shapeFactory.geometryType];var c=n?"enter":"appear",h=this.getAnimateCfg(c);h&&((i=this.geometry)===null||i===void 0||i.emit(at.BEFORE_DRAW_ANIMATE),ca(this.shape,h,{coordinate:o.coordinate,toAttrs:(0,d.pi)({},this.shape.attr())}))}},r.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var t=this.container.getGroupBase();this.offscreenGroup=new t({})}return this.offscreenGroup},r.prototype.setShapeInfo=function(t,n){var i=this;if(t.cfg.origin=n,t.cfg.element=this,t.isGroup()){var a=t.get("children");a.forEach(function(o){i.setShapeInfo(o,n)})}},r.prototype.syncShapeStyle=function(t,n,i,a,o){var s=this,l;if(i===void 0&&(i=[]),o===void 0&&(o=0),!(!t||!n)){var u=t.get("clipShape"),c=n.get("clipShape");if(this.syncShapeStyle(u,c,i,a),t.isGroup())for(var h=t.get("children"),v=n.get("children"),p=0;p<h.length;p++)this.syncShapeStyle(h[p],v[p],i,a,o+p);else{if(!(0,f.xb)(i)&&!(0,f.Xy)(i,["reset"])){var g=t.get("name");(0,f.kJ)(g)&&(g=g[1]),(0,f.S6)(i,function(x){if(n.get("name")!==Du){var m=s.getStateStyle(x,g||o);n.attr(m)}})}var y=Nh(t,n);this.animate?a?((l=this.geometry)===null||l===void 0||l.emit(at.BEFORE_DRAW_ANIMATE),ca(t,a,{coordinate:this.shapeFactory.coordinate,toAttrs:y,shapeModel:this.model})):(0,f.xb)(i)?t.attr(y):(t.stopAnimate(),t.animate(y,{duration:300})):t.attr(y)}}},r.prototype.getShapeType=function(t){var n=(0,f.U2)(t,"shape");return(0,f.kJ)(n)?n[0]:n},r}(k),Vv=n2,Uv={},Hv={};function i2(e){return Uv[e.toLowerCase()]}function Ja(e,r){Uv[e.toLowerCase()]=r}function a2(e){return Hv[e.toLowerCase()]}function zr(e,r){Hv[e.toLowerCase()]=r}var o2={coordinate:null,defaultShapeType:null,theme:null,getShapePoints:function(e,r){var t=this.getShape(e);return t.getPoints?t.getPoints(r):this.getDefaultPoints(r)},getShape:function(e){var r=this[e]||this[this.defaultShapeType];return r.coordinate=this.coordinate,r},getDefaultPoints:function(){return[]},getDefaultStyle:function(e){return(0,f.U2)(e,[this.defaultShapeType,"default","style"],{})},getMarker:function(e,r){var t=this.getShape(e);if(!t.getMarker){var n=this.defaultShapeType;t=this.getShape(n)}var i=this.theme,a=(0,f.U2)(i,[e,"default"],{}),o=t.getMarker(r);return(0,f.b$)({},a,o)},drawShape:function(e,r,t){var n=this.getShape(e);return n.draw(r,t)}},s2={coordinate:null,parsePath:function(e){var r=this.coordinate,t=Ww(e);return r.isPolar?t=zw(r,t):t=Nw(r,t),t},parsePoint:function(e){var r=this.coordinate;return r.convert(e)},parsePoints:function(e){var r=this.coordinate;return e.map(function(t){return r.convert(t)})},draw:function(e,r){}},Ou={};function ii(e,r){var t=(0,f.jC)(e),n=(0,d.pi)((0,d.pi)((0,d.pi)({},o2),r),{geometryType:e});return Ou[t]=n,n}function $e(e,r,t){var n=(0,f.jC)(e),i=Ou[n],a=(0,d.pi)((0,d.pi)({},s2),t);return i[r]=a,a}function Gv(e){var r=(0,f.jC)(e);return Ou[r]}function l2(e,r,t){var n,i;if(t===void 0&&(t={}),!r)return[e];var a=(0,f.Ms)(e,r),o=[];if(r.length===1&&t[r[0]]){var s=t[r[0]];try{for(var l=(0,d.XA)(s),u=l.next();!u.done;u=l.next()){var c=u.value,h=a["_".concat(c)];h&&o.push(h)}}catch(g){n={error:g}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(n)throw n.error}}}else for(var v in a)if(a.hasOwnProperty(v)){var p=a[v];o.push(p)}return o}function Yv(e,r){return(0,f.G)(["color","shape","size","x","y","isInCircle","data","style","defaultStyle","points","mappingData"],function(t){return!(0,f.Xy)(e[t],r[t])})}function Qa(e){return(0,f.kJ)(e)?e:e.split("*")}function Xv(e,r){for(var t=[],n=[],i=[],a=new Map,o=0;o<r.length;o++){var s=r[o];e[s]?n.push(s):t.push(s),a.set(s,!0)}return Object.keys(e).forEach(function(l){a.has(l)||i.push(l)}),{added:t,updated:n,removed:i}}var u2=function(e){(0,d.ZT)(r,e);function r(t){var n=e.call(this,t)||this;n.type="base",n.attributes={},n.elements=[],n.elementsMap={},n.animateOption=!0,n.attributeOption={},n.lastElementsMap={},n.generatePoints=!1,n.beforeMappingData=null,n.adjusts={},n.idFields=[],n.hasSorted=!1,n.isCoordinateChanged=!1;var i=t.container,a=t.labelsContainer,o=t.coordinate,s=t.data,l=t.sortable,u=l===void 0?!1:l,c=t.visible,h=c===void 0?!0:c,v=t.theme,p=t.scales,g=p===void 0?{}:p,y=t.scaleDefs,x=y===void 0?{}:y,m=t.intervalPadding,w=t.dodgePadding,M=t.maxColumnWidth,S=t.minColumnWidth,A=t.columnWidthRatio,D=t.roseWidthRatio,V=t.multiplePieWidthRatio,K=t.zIndexReversed,Mt=t.sortZIndex,ot=t.useDeferredLabel;return n.container=i,n.labelsContainer=a,n.coordinate=o,n.data=s,n.sortable=u,n.visible=h,n.userTheme=v,n.scales=g,n.scaleDefs=x,n.intervalPadding=m,n.dodgePadding=w,n.maxColumnWidth=M,n.minColumnWidth=S,n.columnWidthRatio=A,n.roseWidthRatio=D,n.multiplePieWidthRatio=V,n.zIndexReversed=K,n.sortZIndex=Mt,n.useDeferredLabel=ot?typeof ot=="number"?ot:Infinity:null,n}return r.prototype.position=function(t){var n=t;(0,f.PO)(t)||(n={fields:Qa(t)});var i=(0,f.U2)(n,"fields");return i.length===1&&(i.unshift("1"),(0,f.t8)(n,"fields",i)),(0,f.t8)(this.attributeOption,"position",n),this},r.prototype.color=function(t,n){return this.createAttrOption("color",t,n),this},r.prototype.shape=function(t,n){return this.createAttrOption("shape",t,n),this},r.prototype.size=function(t,n){return this.createAttrOption("size",t,n),this},r.prototype.adjust=function(t){var n=t;return((0,f.HD)(t)||(0,f.PO)(t))&&(n=[t]),(0,f.S6)(n,function(i,a){(0,f.Kn)(i)||(n[a]={type:i})}),this.adjustOption=n,this},r.prototype.style=function(t,n){if((0,f.HD)(t)){var i=Qa(t);this.styleOption={fields:i,callback:n}}else{var a=t,i=a.fields,o=a.callback,s=a.cfg;i||o||s?this.styleOption=t:this.styleOption={cfg:t}}return this},r.prototype.tooltip=function(t,n){if((0,f.HD)(t)){var i=Qa(t);this.tooltipOption={fields:i,callback:n}}else this.tooltipOption=t;return this},r.prototype.animate=function(t){return this.animateOption=t,this},r.prototype.label=function(t,n,i){if((0,f.HD)(t)){var a={},o=Qa(t);a.fields=o,(0,f.mf)(n)?a.callback=n:(0,f.PO)(n)&&(a.cfg=n),i&&(a.cfg=i),this.labelOption=a}else this.labelOption=t;return this},r.prototype.state=function(t){return this.stateOption=t,this},r.prototype.customInfo=function(t){return this.customOption=t,this},r.prototype.init=function(t){t===void 0&&(t={}),this.setCfg(t),this.initAttributes(),this.processData(this.data),this.adjustScale()},r.prototype.update=function(t){t===void 0&&(t={});var n=t.data,i=t.isDataChanged,a=t.isCoordinateChanged,o=this,s=o.attributeOption,l=o.lastAttributeOption;(0,f.Xy)(s,l)?n&&(i||!(0,f.Xy)(n,this.data))?(this.setCfg(t),this.initAttributes(),this.processData(n)):this.setCfg(t):this.init(t),this.adjustScale(),this.isCoordinateChanged=a},r.prototype.paint=function(t){var n=this;t===void 0&&(t=!1),this.animateOption&&(this.animateOption=(0,f.b$)({},zv(this.type,this.coordinate),this.animateOption)),this.defaultSize=void 0,this.elementsMap={},this.elements=[];var i=this.getOffscreenGroup();i.clear();var a=this.beforeMappingData,o=this.beforeMapping(a);this.dataArray=new Array(o.length);for(var s=0;s<o.length;s++){var l=o[s];this.dataArray[s]=this.mapping(l)}if(this.updateElements(this.dataArray,t),this.lastElementsMap=this.elementsMap,this.canDoGroupAnimation(t)){var u=this.container,c=this.type,h=this.coordinate,v=(0,f.U2)(this.animateOption,"appear"),p=this.getYScale(),g=h.convert({x:0,y:p.scale(this.getYMinValue())});r2(u,v,c,h,g)}if(this.labelOption){var y=this.useDeferredLabel,x=function(){return n.renderLabels((0,f.xH)(n.dataArray),t)}.bind(this);if(typeof y=="number"){var m=typeof y=="number"&&y!==Infinity?y:0;if(!window.requestIdleCallback)setTimeout(x,m);else{var w=m&&m!==Infinity?{timeout:m}:void 0;window.requestIdleCallback(x,w)}}else x()}this.lastAttributeOption=(0,d.pi)({},this.attributeOption),this.visible===!1&&this.changeVisible(!1)},r.prototype.clear=function(){var t=this,n=t.container,i=t.geometryLabel,a=t.offscreenGroup;n&&n.clear(),i&&i.clear(),a&&a.clear(),this.scaleDefs=void 0,this.attributes={},this.scales={},this.elementsMap={},this.lastElementsMap={},this.elements=[],this.adjusts={},this.dataArray=null,this.beforeMappingData=null,this.lastAttributeOption=void 0,this.defaultSize=void 0,this.idFields=[],this.groupScales=void 0,this.hasSorted=!1,this.isCoordinateChanged=!1},r.prototype.destroy=function(){this.clear();var t=this.container;t.remove(!0),this.offscreenGroup&&(this.offscreenGroup.remove(!0),this.offscreenGroup=null),this.geometryLabel&&(this.geometryLabel.destroy(),this.geometryLabel=null),this.theme=void 0,this.shapeFactory=void 0,e.prototype.destroy.call(this)},r.prototype.getGroupScales=function(){return this.groupScales},r.prototype.getAttribute=function(t){return this.attributes[t]},r.prototype.getXScale=function(){return this.getAttribute("position").scales[0]},r.prototype.getYScale=function(){return this.getAttribute("position").scales[1]},r.prototype.getGroupAttributes=function(){var t=[];return(0,f.S6)(this.attributes,function(n){$t.includes(n.type)&&t.push(n)}),t},r.prototype.getDefaultValue=function(t){var n,i=this.getAttribute(t);return i&&(0,f.xb)(i.scales)&&(n=i.values[0]),n},r.prototype.getAttributeValues=function(t,n){for(var i=[],a=t.scales,o=0,s=a.length;o<s;o++){var l=a[o],u=l.field;l.isIdentity?i.push(l.values):i.push(n[u])}return t.mapping.apply(t,(0,d.ev)([],(0,d.CR)(i),!1))},r.prototype.getAdjust=function(t){return this.adjusts[t]},r.prototype.getCoordinate=function(){return this.coordinate},r.prototype.getData=function(){return this.data},r.prototype.getShapeMarker=function(t,n){var i=this.getShapeFactory();return i.getMarker(t,n)},r.prototype.getElementsBy=function(t){return this.elements.filter(function(n){return t(n)})},r.prototype.getElements=function(){return this.elements},r.prototype.getElementId=function(t){t=(0,f.kJ)(t)?t[0]:t;var n=t[re];if(this.idFields.length){for(var i=n[this.idFields[0]],a=1;a<this.idFields.length;a++)i+="-"+n[this.idFields[a]];return i}var o=this.type,s=this.getXScale(),l=this.getYScale(),u=s.field||"x",c=l.field||"y",h=n[c],v;s.type==="identity"?v=s.values[0]:v=n[u];var p;o==="interval"||o==="schema"?p="".concat(v):o==="line"||o==="area"||o==="path"?p=o:p="".concat(v,"-").concat(h);for(var g=this.groupScales,a=0,y=g.length;a<y;a++){var x=g[a],m=x.field;p="".concat(p,"-").concat(n[m])}var w=this.getAdjust("dodge");if(w){var M=w.dodgeBy;M&&(p="".concat(p,"-").concat(n[M]))}return this.getAdjust("jitter")&&(p="".concat(p,"-").concat(t.x,"-").concat(t.y)),p},r.prototype.getScaleFields=function(){var t=[],n=new Map,i=this,a=i.attributeOption,o=i.labelOption,s=i.tooltipOption;for(var l in a)if(a.hasOwnProperty(l)){var u=a[l];u.fields?ei(u.fields,t,n):u.values&&ei(u.values,t,n)}return o&&o.fields&&ei(o.fields,t,n),(0,f.Kn)(s)&&s.fields&&ei(s.fields,t,n),t},r.prototype.changeVisible=function(t){e.prototype.changeVisible.call(this,t);for(var n=this.elements,i=0,a=n.length;i<a;i++){var o=n[i];o.changeVisible(t)}t?(this.container&&this.container.show(),this.labelsContainer&&this.labelsContainer.show()):(this.container&&this.container.hide(),this.labelsContainer&&this.labelsContainer.hide())},r.prototype.getFields=function(){var t=new Map,n=[];return Object.values(this.attributeOption).forEach(function(i){var a=(i==null?void 0:i.fields)||[];a.forEach(function(o){t.has(o)||n.push(o),t.set(o,!0)})},[]),n},r.prototype.getGroupFields=function(){for(var t=[],n=new Map,i=0,a=$t.length;i<a;i++){var o=$t[i],s=this.attributeOption[o];s&&s.fields&&ei(s.fields,t,n)}return t},r.prototype.getXYFields=function(){var t=(0,d.CR)(this.attributeOption.position.fields,2),n=t[0],i=t[1];return[n,i]},r.prototype.getXField=function(){return(0,f.U2)(this.getXYFields(),[0])},r.prototype.getYField=function(){return(0,f.U2)(this.getXYFields(),[1])},r.prototype.getShapes=function(){return this.elements.map(function(t){return t.shape})},r.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var t=this.container.getGroupBase();this.offscreenGroup=new t({})}return this.offscreenGroup},r.prototype.sort=function(t){if(!this.hasSorted)for(var n=this.getXScale(),i=n.field,a=0;a<t.length;a++){var o=t[a];o.sort(function(s,l){return n.translate(s[re][i])-n.translate(l[re][i])})}this.hasSorted=!0},r.prototype.adjustScale=function(){var t=this.getYScale();t&&this.getAdjust("stack")&&this.updateStackRange(t,this.beforeMappingData)},r.prototype.getShapeFactory=function(){var t=this.shapeType;if(!!Gv(t))return this.shapeFactory||(this.shapeFactory=(0,f.d9)(Gv(t))),this.shapeFactory.coordinate=this.coordinate,this.shapeFactory.theme=this.theme.geometries[t]||{},this.shapeFactory},r.prototype.createShapePointsCfg=function(t){var n=this.getXScale(),i=this.getYScale(),a=this.normalizeValues(t[n.field],n),o;return i?o=this.normalizeValues(t[i.field],i):o=t.y?t.y:.1,{x:a,y:o,y0:i?i.scale(this.getYMinValue()):void 0}},r.prototype.createElement=function(t,n,i){i===void 0&&(i=!1);var a=this.container,o=this.getDrawCfg(t),s=this.getShapeFactory(),l=new Vv({shapeFactory:s,container:a,offscreenGroup:this.getOffscreenGroup(),elementIndex:n});return l.animate=this.animateOption,l.geometry=this,l.draw(o,i),l},r.prototype.getDrawCfg=function(t){var n=t[re],i={mappingData:t,data:n,x:t.x,y:t.y,color:t.color,size:t.size,isInCircle:this.coordinate.isPolar,customInfo:this.customOption},a=t.shape;!a&&this.getShapeFactory()&&(a=this.getShapeFactory().defaultShapeType),i.shape=a;var o=this.theme.geometries[this.shapeType];i.defaultStyle=(0,f.U2)(o,[a,"default"],{}).style,!i.defaultStyle&&this.getShapeFactory()&&(i.defaultStyle=this.getShapeFactory().getDefaultStyle(o));var s=this.styleOption;return s&&(i.style=this.getStyleCfg(s,n)),this.generatePoints&&(i.points=t.points,i.nextPoints=t.nextPoints),i},r.prototype.updateElements=function(t,n){var i,a,o,s,l,u;n===void 0&&(n=!1);for(var c=new Map,h=[],v=new Map,p=0,g=0;g<t.length;g++)for(var y=t[g],x=0;x<y.length;x++){var m=y[x],w=this.getElementId(m),M=c.has(w)?"".concat(w,"-").concat(g,"-").concat(x):w;h.push(M),c.set(M,m),v.set(M,p),p++}this.elements=new Array(p);var S=Xv(this.lastElementsMap,h),A=S.added,D=S.updated,V=S.removed;try{for(var K=(0,d.XA)(A),Mt=K.next();!Mt.done;Mt=K.next()){var w=Mt.value,m=c.get(w),g=v.get(w),ot=this.createElement(m,g,n);this.elements[g]=ot,this.elementsMap[w]=ot,ot.shape&&ot.shape.set("zIndex",this.zIndexReversed?this.elements.length-g:g)}}catch(ie){i={error:ie}}finally{try{Mt&&!Mt.done&&(a=K.return)&&a.call(K)}finally{if(i)throw i.error}}try{for(var Lt=(0,d.XA)(D),Qt=Lt.next();!Qt.done;Qt=Lt.next()){var w=Qt.value,ot=this.lastElementsMap[w],m=c.get(w),ge=this.getDrawCfg(m),we=ot.getModel(),g=v.get(w);(this.isCoordinateChanged||Yv(ge,we))&&(ot.animate=this.animateOption,ot.update(ge)),this.elements[g]=ot,this.elementsMap[w]=ot,ot.shape&&ot.shape.set("zIndex",this.zIndexReversed?this.elements.length-g:g)}}catch(ie){o={error:ie}}finally{try{Qt&&!Qt.done&&(s=Lt.return)&&s.call(Lt)}finally{if(o)throw o.error}}this.container&&this.container.sort();try{for(var Ae=(0,d.XA)(V),zt=Ae.next();!zt.done;zt=Ae.next()){var w=zt.value,ot=this.lastElementsMap[w];ot.animate=this.animateOption,ot.destroy()}}catch(ie){l={error:ie}}finally{try{zt&&!zt.done&&(u=Ae.return)&&u.call(Ae)}finally{if(l)throw l.error}}},r.prototype.getLabelType=function(){var t=this,n=t.labelOption,i=t.coordinate,a=t.type,o=i.type,s=i.isTransposed,l=(0,f.U2)(n,["cfg","type"]);return l||(o==="polar"?l=s?"pie":"polar":o==="theta"?l="pie":a==="interval"||a==="polygon"?l="interval":l="base"),l},r.prototype.getYMinValue=function(){var t=this.getYScale(),n=t.min,i=t.max,a;return n>=0?a=n:i<=0?a=i:a=0,a},r.prototype.createAttrOption=function(t,n,i){if((0,f.UM)(n)||(0,f.Kn)(n))(0,f.Kn)(n)&&(0,f.Xy)(Object.keys(n),["values"])?(0,f.t8)(this.attributeOption,t,{fields:n.values}):(0,f.t8)(this.attributeOption,t,n);else{var a={};(0,f.hj)(n)?a.values=[n]:a.fields=Qa(n),i&&((0,f.mf)(i)?a.callback=i:a.values=i),(0,f.t8)(this.attributeOption,t,a)}},r.prototype.initAttributes=function(){var t=this,n=this,i=n.attributes,a=n.attributeOption,o=n.theme,s=n.shapeType;this.groupScales=[];var l={},u=function(v){if(a.hasOwnProperty(v)){var p=a[v];if(!p)return{value:void 0};var g=(0,d.pi)({},p),y=g.callback,x=g.values,m=g.fields,w=m===void 0?[]:m,M=w.map(function(A){var D=t.scales[A];if(!l[A]&&$t.includes(v)){var V=zh(D,(0,f.U2)(t.scaleDefs,A),v,t.type);V==="cat"&&(t.groupScales.push(D),l[A]=!0)}return D});g.scales=M,v!=="position"&&M.length===1&&M[0].type==="identity"?g.values=M[0].values:!y&&!x&&(v==="size"?g.values=o.sizes:v==="shape"?g.values=o.shapes[s]||[]:v==="color"&&(M.length?g.values=M[0].values.length<=10?o.colors10:o.colors20:g.values=o.colors10));var S=Kf(v);i[v]=new S(g)}};for(var c in a){var h=u(c);if(typeof h=="object")return h.value}},r.prototype.processData=function(t){var n,i;this.hasSorted=!1;for(var a=this.getAttribute("position").scales,o=a.filter(function(V){return V.isCategory}),s=this.groupData(t),l=[],u=0,c=s.length;u<c;u++){for(var h=s[u],v=[],p=0,g=h.length;p<g;p++){var y=h[p],x={};for(var m in y)x[m]=y[m];x[re]=y;try{for(var w=(n=void 0,(0,d.XA)(o)),M=w.next();!M.done;M=w.next()){var S=M.value,A=S.field;x[A]=S.translate(x[A])}}catch(V){n={error:V}}finally{try{M&&!M.done&&(i=w.return)&&i.call(w)}finally{if(n)throw n.error}}v.push(x)}l.push(v)}var D=this.adjustData(l);return this.beforeMappingData=D,D},r.prototype.adjustData=function(t){var n=this.adjustOption,i=this,a=i.intervalPadding,o=i.dodgePadding,s=i.theme,l=this.maxColumnWidth||s.maxColumnWidth,u=this.minColumnWidth||s.minColumnWidth,c=this.columnWidthRatio||s.columnWidthRatio,h=t;if(n){var v=this.getXScale(),p=this.getYScale(),g=v.field,y=p?p.field:null,x=Ya(this.coordinate),m=v.values.length,w=this.getAttribute("size"),M=void 0;w&&(M=w.values[0]);for(var S=0,A=n.length;S<A;S++){var D=n[S],V=(0,d.pi)({xField:g,yField:y,intervalPadding:a,dodgePadding:o,xDimensionLength:x,groupNum:m,defaultSize:M,maxColumnWidth:l,minColumnWidth:u,columnWidthRatio:c},D),K=D.type;if(K==="dodge"){var Mt=[];if(v.isCategory||v.type==="identity")Mt.push("x");else if(!p)Mt.push("y");else throw new Error("dodge is not support linear attribute, please use category attribute!");V.adjustNames=Mt,V.dodgeRatio=c}else if(K==="stack"){var ot=this.coordinate;if(!p){V.height=ot.getHeight();var Lt=this.getDefaultValue("size")||3;V.size=Lt}!ot.isTransposed&&(0,f.UM)(V.reverseOrder)&&(V.reverseOrder=!0)}var Qt=Ct(K);V.dimValuesMap={},v&&v.values&&(V.dimValuesMap[v.field]=v.values.map(function(we){return v.translate(we)}));var ge=new Qt(V);h=ge.process(h),this.adjusts[K]=ge}}return h},r.prototype.groupData=function(t){for(var n=this.getGroupScales(),i=this.scaleDefs,a={},o=[],s=0;s<n.length;s++){var l=n[s],u=l.field;o.push(u),(0,f.U2)(i,[u,"values"])&&(a[u]=i[u].values)}return l2(t,o,a)},r.prototype.updateStackRange=function(t,n){for(var i=(0,f.xH)(n),a=t.field,o=t.min,s=t.max,l=0;l<i.length;l++){var u=i[l],c=Math.min.apply(null,u[a]),h=Math.max.apply(null,u[a]);c<o&&(o=c),h>s&&(s=h)}var v=this.scaleDefs,p={};o<t.min&&!(0,f.U2)(v,[a,"min"])&&(p.min=o),s>t.max&&!(0,f.U2)(v,[a,"max"])&&(p.max=s),t.change(p)},r.prototype.beforeMapping=function(t){var n=t;if(this.sortable&&this.sort(n),this.generatePoints)for(var i=0,a=n.length;i<a;i++){var o=n[i];this.generateShapePoints(o);var s=n[i+1];s&&(this.generateShapePoints(s),o[0].nextPoints=s[0].points)}return n},r.prototype.generateShapePoints=function(t){for(var n=this.getShapeFactory(),i=this.getAttribute("shape"),a=0;a<t.length;a++){var o=t[a],s=this.createShapePointsCfg(o),l=i?this.getAttributeValues(i,o):null,u=n.getShapePoints(l,s);o.points=u}},r.prototype.normalizeValues=function(t,n){var i=[];if((0,f.kJ)(t))for(var a=0;a<t.length;a++){var o=t[a];i.push(n.scale(o))}else i=n.scale(t);return i},r.prototype.mapping=function(t){for(var n=this.attributes,i=[],a=0;a<t.length;a++){var o=t[a],s={_origin:o[re],points:o.points,nextPoints:o.nextPoints};for(var l in n)if(n.hasOwnProperty(l)){var u=n[l],c=u.names,h=this.getAttributeValues(u,o);if(c.length>1)for(var v=0;v<h.length;v+=1){var p=h[v],g=c[v];s[g]=(0,f.kJ)(p)&&p.length===1?p[0]:p}else s[c[0]]=h.length===1?h[0]:h}this.convertPoint(s),i.push(s)}return i},r.prototype.convertPoint=function(t){var n=t.x,i=t.y,a,o,s,l=this.coordinate;if((0,f.kJ)(n)&&(0,f.kJ)(i)){a=[],o=[];for(var u=0,c=0,h=n.length,v=i.length;u<h&&c<v;u+=1,c+=1)s=l.convert({x:n[u],y:i[c]}),a.push(s.x),o.push(s.y)}else if((0,f.kJ)(i)){o=[];for(var p=0;p<i.length;p++){var g=i[p];s=l.convert({x:n,y:g}),a&&a!==s.x?((0,f.kJ)(a)||(a=[a]),a.push(s.x)):a=s.x,o.push(s.y)}}else if((0,f.kJ)(n)){a=[];for(var p=0;p<n.length;p++){var y=n[p];s=l.convert({x:y,y:i}),o&&o!==s.y?((0,f.kJ)(o)||(o=[o]),o.push(s.y)):o=s.y,a.push(s.x)}}else{var x=l.convert({x:n,y:i});a=x.x,o=x.y}t.x=a,t.y=o},r.prototype.getStyleCfg=function(t,n){var i=t.fields,a=i===void 0?[]:i,o=t.callback,s=t.cfg;if(s)return s;var l=a.map(function(u){return n[u]});return o.apply(void 0,(0,d.ev)([],(0,d.CR)(l),!1))},r.prototype.setCfg=function(t){var n=this,i=t.coordinate,a=t.data,o=t.theme,s=t.scaleDefs;i&&(this.coordinate=i),a&&(this.data=a),s&&(this.scaleDefs=s,this.idFields=[],(0,f.S6)(s,function(l,u){l&&l.key&&n.idFields.push(u)})),o&&(this.theme=this.userTheme?(0,f.b$)({},o,this.userTheme):o)},r.prototype.renderLabels=function(t,n){return n===void 0&&(n=!1),(0,d.mG)(this,void 0,void 0,function(){var i,a,o,s,l,u,c,h,v,p,g,y,x=this;return(0,d.Jh)(this,function(m){switch(m.label){case 0:return i=this.geometryLabel,this.emit(at.BEFORE_RENDER_LABEL),i||(a=this.getLabelType(),o=i2(a),i=new o(this),this.geometryLabel=i),[4,i.render(t,n)];case 1:m.sent(),s=i.labelsRenderer.shapesMap,l=new Map,(0,f.S6)(s,function(w,M){for(var S=w.getChildren()||[],A=0;A<S.length;A++){var D=S[A],V=x.elementsMap[D.get("elementId")||M.split(" ")[0]];if(V){D.cfg.name=["element","label"],D.cfg.element=V;var K=l.get(V)||new Set;K.add(w),l.set(V,K)}}});try{for(u=(0,d.XA)(l.entries()),c=u.next();!c.done;c=u.next())h=(0,d.CR)(c.value,2),v=h[0],p=h[1],v.labelShape=(0,d.ev)([],(0,d.CR)(p),!1)}catch(w){g={error:w}}finally{try{c&&!c.done&&(y=u.return)&&y.call(u)}finally{if(g)throw g.error}}return this.emit(at.AFTER_RENDER_LABEL),[2]}})})},r.prototype.canDoGroupAnimation=function(t){return!t&&this.animateOption&&((0,f.U2)(this.animateOption,"appear")===void 0||(0,f.U2)(this.animateOption,"appear")&&(0,f.U2)(this.animateOption,["appear","animation"])===void 0)},r}(k),ai=u2,Ts=nr.vs;function to(e,r,t){var n=Ts(e.getMatrix(),[["t",r,t]]);e.setMatrix(n)}function c2(e,r){var t=e.attr(),n=t.x,i=t.y,a=Ts(e.getMatrix(),[["t",-n,-i],["r",r],["t",n,i]]);return a}function Bu(e,r){var t=c2(e,r);e.setMatrix(t)}function c5(){return[1,0,0,0,1,0,0,0,1]}function f2(e,r){var t=e.getBBox(),n=(t.minX+t.maxX)/2,i=(t.minY+t.maxY)/2;e.applyToMatrix([n,i,1]);var a=Ts(e.getMatrix(),[["t",-n,-i],["s",r,r],["t",n,i]]);e.setMatrix(a)}function oi(e){return e.find(function(r){return r.get("type")==="text"})}function Wv(e,r,t){t===void 0&&(t=[0,0,0,0]);var n=e&&e.getChildren()[0];if(n){var i=n.clone();(r==null?void 0:r.rotate)&&Bu(i,-r.rotate);var a=i.getCanvasBBox(),o=a.x,s=a.y,l=a.width,u=a.height;i.destroy();var c=t;return(0,f.UM)(c)?c=[2,2,2,2]:(0,f.hj)(c)&&(c=new Array(4).fill(c)),{x:o-c[3],y:s-c[0],width:l+c[1]+c[3],height:u+c[0]+c[2],rotation:(r==null?void 0:r.rotate)||0}}return{x:0,y:0,width:0,height:0,rotation:0}}function h2(e,r,t){t===void 0&&(t=0);var n=Math.max(0,Math.min(e.x+e.width+t,r.x+r.width+t)-Math.max(e.x-t,r.x-t)),i=Math.max(0,Math.min(e.y+e.height+t,r.y+r.height+t)-Math.max(e.y-t,r.y-t));return n*i}function v2(e,r){var t=e.getBBox();return(0,f.G)(r,function(n){var i=n.getBBox();return h2(t,i,2)>0})}function Zv(e,r,t){var n=t.data,i=t.origin,a=t.animateCfg,o=t.coordinate,s=(0,f.U2)(a,"update");e.set("data",n),e.set("origin",i),e.set("animateCfg",a),e.set("coordinate",o),e.set("visible",r.get("visible")),(e.getChildren()||[]).forEach(function(l,u){var c=r.getChildByIndex(u);if(!c)e.removeChild(l),l.remove(!0);else{l.set("data",n),l.set("origin",i),l.set("animateCfg",a),l.set("coordinate",o);var h=Nh(l,c);s?ca(l,s,{toAttrs:h,coordinate:o}):l.attr(h),c.isGroup()&&Zv(l,c,t)}}),(0,f.S6)(r.getChildren(),function(l,u){u>=e.getCount()&&(l.destroyed||e.add(l))})}var p2=function(){function e(r){this.shapesMap={};var t=r.layout,n=r.container;this.layout=t,this.container=n}return e.prototype.render=function(r,t,n){return n===void 0&&(n=!1),(0,d.mG)(this,void 0,void 0,function(){var i,a,o,s,l,u,c,h,v=this;return(0,d.Jh)(this,function(p){switch(p.label){case 0:if(i={},a=this.createOffscreenGroup(),!r.length)return[3,2];try{for(o=(0,d.XA)(r),s=o.next();!s.done;s=o.next())l=s.value,l&&(i[l.id]=this.renderLabel(l,a))}catch(g){c={error:g}}finally{try{s&&!s.done&&(h=o.return)&&h.call(o)}finally{if(c)throw c.error}}return[4,this.doLayout(r,t,i)];case 1:p.sent(),this.renderLabelLine(r,i),this.renderLabelBackground(r,i),this.adjustLabel(r,i),p.label=2;case 2:return u=this.shapesMap,(0,f.S6)(i,function(g,y){if(g.destroyed)delete i[y];else{if(u[y]){var x=g.get("data"),m=g.get("origin"),w=g.get("coordinate"),M=g.get("animateCfg"),S=u[y];Zv(S,i[y],{data:x,origin:m,animateCfg:M,coordinate:w}),i[y]=S}else{if(v.container.destroyed)return;v.container.add(g);var A=(0,f.U2)(g.get("animateCfg"),n?"enter":"appear");A&&ca(g,A,{toAttrs:(0,d.pi)({},g.attr()),coordinate:g.get("coordinate")})}delete u[y]}}),(0,f.S6)(u,function(g){var y=(0,f.U2)(g.get("animateCfg"),"leave");y?ca(g,y,{toAttrs:null,coordinate:g.get("coordinate")}):g.remove(!0)}),this.shapesMap=i,a.destroy(),[2]}})})},e.prototype.clear=function(){this.container.clear(),this.shapesMap={}},e.prototype.destroy=function(){this.container.destroy(),this.shapesMap=null},e.prototype.renderLabel=function(r,t){var n=r.id,i=r.elementId,a=r.data,o=r.mappingData,s=r.coordinate,l=r.animate,u=r.content,c=r.capture,h={id:n,elementId:i,capture:c,data:a,origin:(0,d.pi)((0,d.pi)({},o),{data:o[re]}),coordinate:s},v=t.addGroup((0,d.pi)({name:"label",animateCfg:this.animate===!1||l===null||l===!1?!1:(0,f.b$)({},this.animate,l)},h)),p;if(u.isGroup&&u.isGroup()||u.isShape&&u.isShape()){var g=u.getCanvasBBox(),y=g.width,x=g.height,m=(0,f.U2)(r,"textAlign","left"),w=r.x,M=r.y-x/2;m==="center"?w=w-y/2:(m==="right"||m==="end")&&(w=w-y),to(u,w,M),p=u,v.add(u)}else{var S=(0,f.U2)(r,["style","fill"]);p=v.addShape("text",(0,d.pi)({attrs:(0,d.pi)((0,d.pi)({x:r.x,y:r.y,textAlign:r.textAlign,textBaseline:(0,f.U2)(r,"textBaseline","middle"),text:r.content},r.style),{fill:(0,f.Ft)(S)?r.color:S})},h))}return r.rotate&&Bu(p,r.rotate),v},e.prototype.doLayout=function(r,t,n){return(0,d.mG)(this,void 0,void 0,function(){var i,a=this;return(0,d.Jh)(this,function(o){switch(o.label){case 0:return this.layout?(i=(0,f.kJ)(this.layout)?this.layout:[this.layout],[4,Promise.all(i.map(function(s){var l=a2((0,f.U2)(s,"type",""));if(!!l){var u=[],c=[];return(0,f.S6)(n,function(h,v){u.push(h),c.push(t[h.get("elementId")])}),l(r,u,c,a.region,s.cfg)}}))]):[3,2];case 1:o.sent(),o.label=2;case 2:return[2]}})})},e.prototype.renderLabelLine=function(r,t){(0,f.S6)(r,function(n){var i=(0,f.U2)(n,"coordinate");if(!(!n||!i)){var a=i.getCenter(),o=i.getRadius();if(!!n.labelLine){var s=(0,f.U2)(n,"labelLine",{}),l=n.id,u=s.path;if(!u){var c=vr(a.x,a.y,o,n.angle);u=[["M",c.x,c.y],["L",n.x,n.y]]}var h=t[l];h.destroyed||h.addShape("path",{capture:!1,attrs:(0,d.pi)({path:u,stroke:n.color?n.color:(0,f.U2)(n,["style","fill"],"#000"),fill:null},s.style),id:l,origin:n.mappingData,data:n.data,coordinate:n.coordinate})}}})},e.prototype.renderLabelBackground=function(r,t){(0,f.S6)(r,function(n){var i=(0,f.U2)(n,"coordinate"),a=(0,f.U2)(n,"background");if(!(!a||!i)){var o=n.id,s=t[o];if(!s.destroyed){var l=s.getChildren()[0];if(l){var u=Wv(s,n,a.padding),c=u.rotation,h=(0,d._T)(u,["rotation"]),v=s.addShape("rect",{attrs:(0,d.pi)((0,d.pi)({},h),a.style||{}),id:o,origin:n.mappingData,data:n.data,coordinate:n.coordinate});if(v.setZIndex(-1),c){var p=l.getMatrix();v.setMatrix(p)}}}}})},e.prototype.createOffscreenGroup=function(){var r=this.container,t=r.getGroupBase(),n=new t({});return n},e.prototype.adjustLabel=function(r,t){(0,f.S6)(r,function(n){if(n){var i=n.id,a=t[i];if(!a.destroyed){var o=a.findAll(function(s){return s.get("type")!=="path"});(0,f.S6)(o,function(s){s&&(n.offsetX&&s.attr("x",s.attr("x")+n.offsetX),n.offsetY&&s.attr("y",s.attr("y")+n.offsetY))})}}})},e}(),d2=p2;function qv(e){var r=0;return(0,f.S6)(e,function(t){r+=t}),r/e.length}var g2=function(){function e(r){this.geometry=r}return e.prototype.getLabelItems=function(r){var t=this,n=[],i=this.getLabelCfgs(r);return(0,f.S6)(r,function(a,o){var s=i[o];if(!s||(0,f.UM)(a.x)||(0,f.UM)(a.y)){n.push(null);return}var l=(0,f.kJ)(s.content)?s.content:[s.content];s.content=l;var u=l.length;(0,f.S6)(l,function(c,h){if((0,f.UM)(c)||c===""){n.push(null);return}var v=(0,d.pi)((0,d.pi)({},s),t.getLabelPoint(s,a,h));v.textAlign||(v.textAlign=t.getLabelAlign(v,h,u)),v.offset<=0&&(v.labelLine=null),n.push(v)})}),n},e.prototype.render=function(r,t){return t===void 0&&(t=!1),(0,d.mG)(this,void 0,void 0,function(){var n,i,a;return(0,d.Jh)(this,function(o){switch(o.label){case 0:return n=this.getLabelItems(r),i=this.getLabelsRenderer(),a=this.getGeometryShapes(),[4,i.render(n,a,t)];case 1:return o.sent(),[2]}})})},e.prototype.clear=function(){var r=this.labelsRenderer;r&&r.clear()},e.prototype.destroy=function(){var r=this.labelsRenderer;r&&r.destroy(),this.labelsRenderer=null},e.prototype.getCoordinate=function(){return this.geometry.coordinate},e.prototype.getDefaultLabelCfg=function(r,t){var n=this.geometry,i=n.type,a=n.theme;return i==="polygon"||i==="interval"&&t==="middle"||r<0&&!["line","point","path"].includes(i)?(0,f.U2)(a,"innerLabels",{}):(0,f.U2)(a,"labels",{})},e.prototype.getThemedLabelCfg=function(r){var t=this.geometry,n=this.getDefaultLabelCfg(),i=t.type,a=t.theme,o;return i==="polygon"||r.offset<0&&!["line","point","path"].includes(i)?o=(0,f.b$)({},n,a.innerLabels,r):o=(0,f.b$)({},n,a.labels,r),o},e.prototype.setLabelPosition=function(r,t,n,i){},e.prototype.getLabelOffset=function(r){var t=this.getCoordinate(),n=this.getOffsetVector(r);return t.isTransposed?n[0]:n[1]},e.prototype.getLabelOffsetPoint=function(r,t,n){var i=r.offset,a=this.getCoordinate(),o=a.isTransposed,s=o?"x":"y",l=o?1:-1,u={x:0,y:0};return t>0||n===1?u[s]=i*l:u[s]=i*l*-1,u},e.prototype.getLabelPoint=function(r,t,n){var i=this.getCoordinate(),a=r.content.length;function o(x,m,w){w===void 0&&(w=!1);var M=x;return(0,f.kJ)(M)&&(r.content.length===1?w?M=qv(M):M.length<=2?M=M[x.length-1]:M=qv(M):M=M[m]),M}var s={content:r.content[n],x:0,y:0,start:{x:0,y:0},color:"#fff"},l=(0,f.kJ)(t.shape)?t.shape[0]:t.shape,u=l==="funnel"||l==="pyramid";if(this.geometry.type==="polygon"){var c=dw(t.x,t.y);s.x=c[0],s.y=c[1]}else this.geometry.type==="interval"&&!u?(s.x=o(t.x,n,!0),s.y=o(t.y,n)):(s.x=o(t.x,n),s.y=o(t.y,n));if(u){var h=(0,f.U2)(t,"nextPoints"),v=(0,f.U2)(t,"points");if(h){var p=i.convert(v[1]),g=i.convert(h[1]);s.x=(p.x+g.x)/2,s.y=(p.y+g.y)/2}else if(l==="pyramid"){var p=i.convert(v[1]),g=i.convert(v[2]);s.x=(p.x+g.x)/2,s.y=(p.y+g.y)/2}}r.position&&this.setLabelPosition(s,t,n,r.position);var y=this.getLabelOffsetPoint(r,n,a);return s.start={x:s.x,y:s.y},s.x+=y.x,s.y+=y.y,s.color=t.color,s},e.prototype.getLabelAlign=function(r,t,n){var i="center",a=this.getCoordinate();if(a.isTransposed){var o=r.offset;o<0?i="right":o===0?i="center":i="left",n>1&&t===0&&(i==="right"?i="left":i==="left"&&(i="right"))}return i},e.prototype.getLabelId=function(r){var t=this.geometry,n=t.type,i=t.getXScale(),a=t.getYScale(),o=r[re],s=t.getElementId(r);return n==="line"||n==="area"?s+=" ".concat(o[i.field]):n==="path"&&(s+=" ".concat(o[i.field],"-").concat(o[a.field])),s},e.prototype.getLabelsRenderer=function(){var r=this.geometry,t=r.labelsContainer,n=r.labelOption,i=r.canvasRegion,a=r.animateOption,o=this.geometry.coordinate,s=this.labelsRenderer;return s||(s=new d2({container:t,layout:(0,f.U2)(n,["cfg","layout"],{type:this.defaultLayout})}),this.labelsRenderer=s),s.region=i,s.animate=a?zv("label",o):!1,s},e.prototype.getLabelCfgs=function(r){var t=this,n=this.geometry,i=n.labelOption,a=n.scales,o=n.coordinate,s=i,l=s.fields,u=s.callback,c=s.cfg,h=l.map(function(p){return a[p]}),v=[];return(0,f.S6)(r,function(p,g){var y=p[re],x=t.getLabelText(y,h),m;if(u){var w=l.map(function(V){return y[V]});if(m=u.apply(void 0,(0,d.ev)([],(0,d.CR)(w),!1)),(0,f.UM)(m)){v.push(null);return}}var M=(0,d.pi)((0,d.pi)({id:t.getLabelId(p),elementId:t.geometry.getElementId(p),data:y,mappingData:p,coordinate:o},c),m);(0,f.mf)(M.position)&&(M.position=M.position(y,p,g));var S=t.getLabelOffset(M.offset||0),A=t.getDefaultLabelCfg(S,M.position);M=(0,f.b$)({},A,M),M.offset=t.getLabelOffset(M.offset||0);var D=M.content;(0,f.mf)(D)?M.content=D(y,p,g):(0,f.o8)(D)&&(M.content=x[0]),v.push(M)}),v},e.prototype.getLabelText=function(r,t){var n=[];return(0,f.S6)(t,function(i){var a=r[i.field];(0,f.kJ)(a)?a=a.map(function(o){return i.getText(o)}):a=i.getText(a),(0,f.UM)(a)||a===""?n.push(null):n.push(a)}),n},e.prototype.getOffsetVector=function(r){r===void 0&&(r=0);var t=this.getCoordinate(),n=0;return(0,f.hj)(r)&&(n=r),t.isTransposed?t.applyMatrix(n,0):t.applyMatrix(0,n)},e.prototype.getGeometryShapes=function(){var r=this.geometry,t={};return(0,f.S6)(r.elementsMap,function(n,i){t[i]=n.shape}),(0,f.S6)(r.getOffscreenGroup().getChildren(),function(n){var i=r.getElementId(n.get("origin").mappingData);t[i]=n}),t},e}(),Es=g2;function Ru(e,r,t){if(!e)return t;var n;if(e.callback&&e.callback.length>1){var i=Array(e.callback.length-1).fill("");n=e.mapping.apply(e,(0,d.ev)([r],(0,d.CR)(i),!1)).join("")}else n=e.mapping(r).join("");return n||t}var Ii={hexagon:function(e,r,t){var n=t/2*Math.sqrt(3);return[["M",e,r-t],["L",e+n,r-t/2],["L",e+n,r+t/2],["L",e,r+t],["L",e-n,r+t/2],["L",e-n,r-t/2],["Z"]]},bowtie:function(e,r,t){var n=t-1.5;return[["M",e-t,r-n],["L",e+t,r+n],["L",e+t,r-n],["L",e-t,r+n],["Z"]]},cross:function(e,r,t){return[["M",e-t,r-t],["L",e+t,r+t],["M",e+t,r-t],["L",e-t,r+t]]},tick:function(e,r,t){return[["M",e-t/2,r-t],["L",e+t/2,r-t],["M",e,r-t],["L",e,r+t],["M",e-t/2,r+t],["L",e+t/2,r+t]]},plus:function(e,r,t){return[["M",e-t,r],["L",e+t,r],["M",e,r-t],["L",e,r+t]]},hyphen:function(e,r,t){return[["M",e-t,r],["L",e+t,r]]},line:function(e,r,t){return[["M",e,r-t],["L",e,r+t]]}},y2=["line","cross","tick","plus","hyphen"];function m2(e,r){return(0,f.mf)(r)?r(e):(0,f.b$)({},e,r)}function x2(e,r){var t=e.symbol;if((0,f.HD)(t)&&y2.indexOf(t)!==-1){var n=(0,f.U2)(e,"style",{}),i=(0,f.U2)(n,"lineWidth",1),a=n.stroke||n.fill||r;e.style=(0,f.b$)({},e.style,{lineWidth:i,stroke:a,fill:null})}}function $v(e){var r=e.symbol;(0,f.HD)(r)&&Ii[r]&&(e.symbol=Ii[r])}function Nu(e){return e.startsWith(J.LEFT)||e.startsWith(J.RIGHT)?"vertical":"horizontal"}function jv(e,r,t,n,i){var a=t.getScale(t.type);if(a.isCategory){var o=a.field,s=r.getAttribute("color"),l=r.getAttribute("shape"),u=e.getTheme().defaultColor,c=r.coordinate.isPolar;return a.getTicks().map(function(h,v){var p,g=h.text,y=h.value,x=g,m=a.invert(y),w=e.filterFieldData(o,[(p={},p[o]=m,p)]).length===0;(0,f.S6)(e.views,function(V){var K;V.filterFieldData(o,[(K={},K[o]=m,K)]).length||(w=!0)});var M=Ru(s,m,u),S=Ru(l,m,"point"),A=r.getShapeMarker(S,{color:M,isInPolar:c}),D=i;return(0,f.mf)(D)&&(D=D(x,v,(0,d.pi)({name:x,value:m},(0,f.b$)({},n,A)))),A=(0,f.b$)({},n,A,Nr((0,d.pi)({},D),["style"])),x2(A,M),D&&D.style&&(A.style=m2(A.style,D.style)),$v(A),{id:m,name:x,value:m,marker:A,unchecked:w}})}return[]}function w2(e,r,t){return t.map(function(n,i){var a=r;(0,f.mf)(a)&&(a=a(n.name,i,(0,f.b$)({},e,n)));var o=(0,f.mf)(n.marker)?n.marker(n.name,i,(0,f.b$)({},e,n)):n.marker,s=(0,f.b$)({},e,a,o);return $v(s),n.marker=s,n})}function Kv(e,r){var t=(0,f.U2)(e,["components","legend"],{});return(0,f.b$)({},(0,f.U2)(t,["common"],{}),(0,f.b$)({},(0,f.U2)(t,[r],{})))}function zu(e){return e?!1:e==null||isNaN(e)}function Jv(e){if((0,f.kJ)(e))return zu(e[1].y);var r=e.y;return(0,f.kJ)(r)?zu(r[0]):zu(r)}function _s(e,r,t){if(r===void 0&&(r=!1),t===void 0&&(t=!0),!e.length||e.length===1&&!t)return[];if(r){for(var n=[],i=0,a=e.length;i<a;i++){var o=e[i];Jv(o)||n.push(o)}return[n]}for(var s=[],l=[],i=0,a=e.length;i<a;i++){var o=e[i];Jv(o)?l.length&&(l.length===1&&!t||s.push(l),l=[]):l.push(o)}return l.length&&s.push(l),s}function Qv(e){for(var r=[],t=0;t<e.length;t++){var n=e[t];if(n){var i=t===0?"M":"L";r.push([i,n.x,n.y])}}var a=e[0];return a&&(r.push(["L",a.x,a.y]),r.push(["z"])),r}function tp(e){for(var r=e.length/2,t=[],n=[],i=0;i<e.length;i++)i<r?t.push(e[i]):n.push(e[i]);var a=xs(t,!1),o=xs(n,!1);n.length&&a.push(["L",n[0].x,n[0].y]),o.shift();var s=a.concat(o);return t.length&&s.push(["L",t[0].x,t[0].y]),s.push(["z"]),s}function hr(e,r,t,n){n===void 0&&(n="");var i=e.style,a=i===void 0?{}:i,o=e.defaultStyle,s=e.color,l=e.size,u=(0,d.pi)((0,d.pi)({},o),a);return s&&(r&&(a.stroke||(u.stroke=s)),t&&(a.fill||(u.fill=s))),n&&(0,f.UM)(a[n])&&!(0,f.UM)(l)&&(u[n]=l),u}function ep(e){return(0,f.b$)({},{fill:"#CCD6EC",fillOpacity:.3},(0,f.U2)(e,["background","style"]))}function Vu(e){var r=e.x,t=(0,f.kJ)(e.y)?e.y:[e.y];return t.map(function(n,i){return{x:(0,f.kJ)(r)?r[i]:r,y:n}})}var M2={line:function(e,r,t){return[["M",e-t,r],["L",e+t,r]]},dot:function(e,r,t){return[["M",e-t,r],["L",e+t,r]]},dash:function(e,r,t){return[["M",e-t,r],["L",e+t,r]]},smooth:function(e,r,t){return[["M",e-t,r],["A",t/2,t/2,0,1,1,e,r],["A",t/2,t/2,0,1,0,e+t,r]]},hv:function(e,r,t){return[["M",e-t-1,r-2.5],["L",e,r-2.5],["L",e,r+2.5],["L",e+t+1,r+2.5]]},vh:function(e,r,t){return[["M",e-t-1,r+2.5],["L",e,r+2.5],["L",e,r-2.5],["L",e+t+1,r-2.5]]},hvh:function(e,r,t){return[["M",e-(t+1),r+2.5],["L",e-t/2,r+2.5],["L",e-t/2,r-2.5],["L",e+t/2,r-2.5],["L",e+t/2,r+2.5],["L",e+t+1,r+2.5]]},vhv:function(e,r){return[["M",e-5,r+2.5],["L",e-5,r],["L",e,r],["L",e,r-3],["L",e,r+3],["L",e+6.5,r+3]]}};function rp(e,r){var t=e.color;return{symbol:M2[r],style:{lineWidth:2,r:6,stroke:t}}}function S2(e,r,t){for(var n=e.isStack,i=e.connectNulls,a=e.isInCircle,o=e.showSinglePoint,s=hr(e,!0,!1,"lineWidth"),l=_s(e.points,i,o),u=[],c=0,h=l.length;c<h;c++){var v=l[c];u=u.concat(np(v,a,n,r,t,s))}return s.path=u,s}function Uu(e,r,t,n,i){if(e.length===1)return[["M",e[0].x,e[0].y-i.lineWidth/2],["L",e[0].x,e[0].y],["L",e[0].x,e[0].y+i.lineWidth/2]];var a;return t?(r&&e.length&&e.push({x:e[0].x,y:e[0].y}),a=xs(e,!1,n)):(a=Wa(e,!1),r&&a.push(["Z"])),a}function C2(e,r,t,n,i,a){var o=[],s=[];(0,f.S6)(e,function(c){var h=Vu(c);o.push(h[1]),s.push(h[0])});var l=Uu(o,r,n,i,a),u=Uu(s,r,n,i,a);return t?l:l.concat(u)}function np(e,r,t,n,i,a){if(e.length){var o=e[0];return(0,f.kJ)(o.y)?C2(e,r,t,n,i,a):Uu(e,r,n,i,a)}return[]}var f5=ii("line",{defaultShapeType:"line"});(0,f.S6)(["line","dot","dash","smooth"],function(e){$e("line",e,{draw:function(r,t){var n=e==="smooth",i;if(n){var a=this.coordinate,o=a.start,s=a.end;i=[[o.x,s.y],[s.x,o.y]]}var l=S2(r,n,i),u=t.addShape({type:"path",attrs:l,name:"line",capture:!n});return u},getMarker:function(r){return rp(r,e)}})});var h5=null,v5="4.2.9",Vr={getLegendItems:jv,translate:to,rotate:Bu,zoom:f2,transform:Ts,getAngle:Ga,getSectorPath:ti,polarToCartesian:vr,getDelegationObject:_i,getTooltipItems:Lu,getMappingValue:Ru,getPath:np,getPathPoints:_s},si={100:"#000",95:"#0D0D0D",85:"#262626",65:"#595959",45:"#8C8C8C",25:"#BFBFBF",15:"#D9D9D9",6:"#F0F0F0"},rr={100:"#FFFFFF",95:"#F2F2F2",85:"#D9D9D9",65:"#A6A6A6",45:"#737373",25:"#404040",15:"#262626",6:"#0F0F0F"},un=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#E86452","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],b2=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#E86452","#F8D0CB","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],A2=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"],T2=function(e){e===void 0&&(e={});var r=e.paletteQualitative10,t=r===void 0?un:r,n=e.paletteQualitative20,i=n===void 0?b2:n,a=e.brandColor,o=a===void 0?t[0]:a,s={backgroundColor:"#141414",brandColor:o,subColor:"rgba(255,255,255,0.05)",paletteQualitative10:t,paletteQualitative20:i,paletteSemanticRed:"#F4664A",paletteSemanticGreen:"#30BF78",paletteSemanticYellow:"#FAAD14",paletteSequence:A2,fontFamily:`"Segoe UI", Roboto, "Helvetica Neue", Arial,
  51. "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
  52. "Noto Color Emoji"`,axisLineBorderColor:rr[25],axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:rr[65],axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisDescriptionIconFillColor:si[85],axisTickLineBorderColor:rr[25],axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:rr[15],axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:rr[45],axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:rr[15],axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:rr[45],legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:un[0],legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:rr[65],legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:"normal",legendItemSpacing:24,legendItemMarginBottom:12,legendSpacing:16,legendPadding:[8,8,8,8],legendHorizontalPadding:[8,0,8,0],legendVerticalPadding:[0,8,0,8],legendPageNavigatorMarkerSize:12,legendPageNavigatorMarkerInactiveFillColor:rr[45],legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:rr[45],legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:rr[65],legendPageNavigatorTextFontSize:12,sliderRailFillColor:rr[15],sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:rr[45],sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:si[6],sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:si[25],annotationArcBorderColor:rr[15],annotationArcBorder:1,annotationLineBorderColor:rr[25],annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:rr[65],annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:rr[100],annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:rr[25],tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"#1f1f1f",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 2px 4px rgba(0,0,0,.5)",tooltipContainerBorderRadius:3,tooltipTextFillColor:rr[65],tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:rr[65],labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:si[100],innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:rr[65],overflowLabelFillColorDark:"#2c3542",overflowLabelFillColorLight:"#ffffff",overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:si[100],overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:rr[25],cSliderRailHieght:16,cSliderBackgroundFillColor:"#416180",cSliderBackgroundFillOpacity:.05,cSliderForegroundFillColor:"#5B8FF9",cSliderForegroundFillOpacity:.15,cSliderHandlerHeight:24,cSliderHandlerWidth:10,cSliderHandlerFillColor:"#F7F7F7",cSliderHandlerFillOpacity:1,cSliderHandlerHighlightFillColor:"#FFF",cSliderHandlerBorderColor:"#BFBFBF",cSliderHandlerBorder:1,cSliderHandlerBorderRadius:2,cSliderTextFillColor:"#fff",cSliderTextFillOpacity:.45,cSliderTextFontSize:12,cSliderTextLineHeight:12,cSliderTextFontWeight:"normal",cSliderTextBorderColor:null,cSliderTextBorder:0,scrollbarTrackFillColor:"rgba(255,255,255,0.65)",scrollbarThumbFillColor:"rgba(0,0,0,0.35)",scrollbarThumbHighlightFillColor:"rgba(0,0,0,0.45)",pointFillColor:un[0],pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:si[100],pointBorderOpacity:1,pointActiveBorderColor:rr[100],pointSelectedBorder:2,pointSelectedBorderColor:rr[100],pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:un[0],hollowPointBorderOpacity:.95,hollowPointFillColor:si[100],hollowPointActiveBorder:1,hollowPointActiveBorderColor:rr[100],hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:rr[100],hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:un[0],lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:un[0],areaFillOpacity:.25,areaActiveFillColor:un[0],areaActiveFillOpacity:.5,areaSelectedFillColor:un[0],areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:un[0],hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:rr[100],hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:rr[100],hollowAreaInactiveBorderOpacity:.3,intervalFillColor:un[0],intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:rr[100],intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:rr[100],intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:un[0],hollowIntervalBorderOpacity:1,hollowIntervalFillColor:si[100],hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:rr[100],hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:rr[100],hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3};return(0,d.pi)((0,d.pi)({},s),e)},E2=T2();function _2(){return window?window.devicePixelRatio:1}function ip(e,r,t,n){var i=e-t,a=r-n;return Math.sqrt(i*i+a*a)}function Li(e,r,t,n,i,a){return i>=e&&i<=e+t&&a>=r&&a<=r+n}function eo(e,r){return!(r.minX>e.maxX||r.maxX<e.minX||r.minY>e.maxY||r.maxY<e.minY)}function F2(e,r){return!e||!r?e||r:{minX:Math.min(e.minX,r.minX),minY:Math.min(e.minY,r.minY),maxX:Math.max(e.maxX,r.maxX),maxY:Math.max(e.maxY,r.maxY)}}function ap(e,r){return e[0]===r[0]&&e[1]===r[1]}var I2=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,L2=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,P2=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,op=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function sp(e,r){var t=e.match(op);(0,f.S6)(t,function(n){var i=n.split(":");r.addColorStop(i[0],i[1])})}function k2(e,r,t){var n=I2.exec(t),i=parseFloat(n[1])%360*(Math.PI/180),a=n[2],o=r.getBBox(),s,l;i>=0&&i<1/2*Math.PI?(s={x:o.minX,y:o.minY},l={x:o.maxX,y:o.maxY}):1/2*Math.PI<=i&&i<Math.PI?(s={x:o.maxX,y:o.minY},l={x:o.minX,y:o.maxY}):Math.PI<=i&&i<3/2*Math.PI?(s={x:o.maxX,y:o.maxY},l={x:o.minX,y:o.minY}):(s={x:o.minX,y:o.maxY},l={x:o.maxX,y:o.minY});var u=Math.tan(i),c=u*u,h=(l.x-s.x+u*(l.y-s.y))/(c+1)+s.x,v=u*(l.x-s.x+u*(l.y-s.y))/(c+1)+s.y,p=e.createLinearGradient(s.x,s.y,h,v);return sp(a,p),p}function D2(e,r,t){var n=L2.exec(t),i=parseFloat(n[1]),a=parseFloat(n[2]),o=parseFloat(n[3]),s=n[4];if(o===0){var l=s.match(op);return l[l.length-1].split(":")[1]}var u=r.getBBox(),c=u.maxX-u.minX,h=u.maxY-u.minY,v=Math.sqrt(c*c+h*h)/2,p=e.createRadialGradient(u.minX+c*i,u.minY+h*a,0,u.minX+c/2,u.minY+h/2,o*v);return sp(s,p),p}function O2(e,r,t){if(r.get("patternSource")&&r.get("patternSource")===t)return r.get("pattern");var n,i,a=P2.exec(t),o=a[1],s=a[2];function l(){n=e.createPattern(i,o),r.set("pattern",n),r.set("patternSource",t)}switch(o){case"a":o="repeat";break;case"x":o="repeat-x";break;case"y":o="repeat-y";break;case"n":o="no-repeat";break;default:o="no-repeat"}return i=new Image,s.match(/^data:/i)||(i.crossOrigin="Anonymous"),i.src=s,i.complete?l():(i.onload=l,i.src=i.src),n}function B2(e,r,t){var n=r.getBBox();if(isNaN(n.x)||isNaN(n.y)||isNaN(n.width)||isNaN(n.height))return t;if((0,f.HD)(t)){if(t[1]==="("||t[2]==="("){if(t[0]==="l")return k2(e,r,t);if(t[0]==="r")return D2(e,r,t);if(t[0]==="p")return O2(e,r,t)}return t}if(t instanceof CanvasPattern)return t}function R2(e){var r=0,t=0,n=0,i=0;return(0,f.kJ)(e)?e.length===1?r=t=n=i=e[0]:e.length===2?(r=n=e[0],t=i=e[1]):e.length===3?(r=e[0],t=i=e[1],n=e[2]):(r=e[0],t=e[1],n=e[2],i=e[3]):r=t=n=i=e,[r,t,n,i]}function Fs(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Hu(e,r){return Fs(e)*Fs(r)?(e[0]*r[0]+e[1]*r[1])/(Fs(e)*Fs(r)):1}function lp(e,r){return(e[0]*r[1]<e[1]*r[0]?-1:1)*Math.acos(Hu(e,r))}function Is(e,r){var t=r[1],n=r[2],i=(0,f.wQ)((0,f.c$)(r[3]),Math.PI*2),a=r[4],o=r[5],s=e[0],l=e[1],u=r[6],c=r[7],h=Math.cos(i)*(s-u)/2+Math.sin(i)*(l-c)/2,v=-1*Math.sin(i)*(s-u)/2+Math.cos(i)*(l-c)/2,p=h*h/(t*t)+v*v/(n*n);p>1&&(t*=Math.sqrt(p),n*=Math.sqrt(p));var g=t*t*(v*v)+n*n*(h*h),y=g?Math.sqrt((t*t*(n*n)-g)/g):1;a===o&&(y*=-1),isNaN(y)&&(y=0);var x=n?y*t*v/n:0,m=t?y*-n*h/t:0,w=(s+u)/2+Math.cos(i)*x-Math.sin(i)*m,M=(l+c)/2+Math.sin(i)*x+Math.cos(i)*m,S=[(h-x)/t,(v-m)/n],A=[(-1*h-x)/t,(-1*v-m)/n],D=lp([1,0],S),V=lp(S,A);return Hu(S,A)<=-1&&(V=Math.PI),Hu(S,A)>=1&&(V=0),o===0&&V>0&&(V=V-2*Math.PI),o===1&&V<0&&(V=V+2*Math.PI),{cx:w,cy:M,rx:ap(e,[u,c])?0:t,ry:ap(e,[u,c])?0:n,startAngle:D,endAngle:D+V,xRotation:i,arcFlag:a,sweepFlag:o}}var Ls=Math.sin,Ps=Math.cos,Gu=Math.atan2,ks=Math.PI;function up(e,r,t,n,i,a,o){var s=r.stroke,l=r.lineWidth,u=t-i,c=n-a,h=Gu(c,u),v=new ec({type:"path",canvas:e.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*Ps(ks/6)+","+10*Ls(ks/6)+" L0,0 L"+10*Ps(ks/6)+",-"+10*Ls(ks/6),stroke:s,lineWidth:l}});v.translate(i,a),v.rotateAtPoint(i,a,h),e.set(o?"startArrowShape":"endArrowShape",v)}function cp(e,r,t,n,i,a,o){var s=r.startArrow,l=r.endArrow,u=r.stroke,c=r.lineWidth,h=o?s:l,v=h.d,p=h.fill,g=h.stroke,y=h.lineWidth,x=(0,d._T)(h,["d","fill","stroke","lineWidth"]),m=t-i,w=n-a,M=Gu(w,m);v&&(i=i-Ps(M)*v,a=a-Ls(M)*v);var S=new ec({type:"path",canvas:e.get("canvas"),isArrowShape:!0,attrs:(0,d.pi)((0,d.pi)({},x),{stroke:g||u,lineWidth:y||c,fill:p})});S.translate(i,a),S.rotateAtPoint(i,a,M),e.set(o?"startArrowShape":"endArrowShape",S)}function Pi(e,r,t,n,i){var a=Gu(n-r,t-e);return{dx:Ps(a)*i,dy:Ls(a)*i}}function Yu(e,r,t,n,i,a){typeof r.startArrow=="object"?cp(e,r,t,n,i,a,!0):r.startArrow?up(e,r,t,n,i,a,!0):e.set("startArrowShape",null)}function Xu(e,r,t,n,i,a){typeof r.endArrow=="object"?cp(e,r,t,n,i,a,!1):r.endArrow?up(e,r,t,n,i,a,!1):e.set("startArrowShape",null)}var fp={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function fa(e,r){var t=r.attr();for(var n in t){var i=t[n],a=fp[n]?fp[n]:n;a==="matrix"&&i?e.transform(i[0],i[1],i[3],i[4],i[6],i[7]):a==="lineDash"&&e.setLineDash?(0,f.kJ)(i)&&e.setLineDash(i):(a==="strokeStyle"||a==="fillStyle"?i=B2(e,r,i):a==="globalAlpha"&&(i=i*e.globalAlpha),e[a]=i)}}function Wu(e,r,t){for(var n=0;n<r.length;n++){var i=r[n];i.cfg.visible?i.draw(e,t):i.skipDraw()}}function N2(e,r,t){var n=e.get("refreshElements");(0,f.S6)(n,function(i){if(i!==e)for(var a=i.cfg.parent;a&&a!==e&&!a.cfg.refresh;)a.cfg.refresh=!0,a=a.cfg.parent}),n[0]===e?qu(r,t):Zu(r,t)}function Zu(e,r){for(var t=0;t<e.length;t++){var n=e[t];if(n.cfg.visible)if(n.cfg.hasChanged)n.cfg.refresh=!0,n.isGroup()&&qu(n.cfg.children,r);else if(n.cfg.refresh)n.isGroup()&&Zu(n.cfg.children,r);else{var i=z2(n,r);n.cfg.refresh=i,i&&n.isGroup()&&Zu(n.cfg.children,r)}}}function hp(e){for(var r=0;r<e.length;r++){var t=e[r];t.cfg.hasChanged=!1,t.isGroup()&&!t.destroyed&&hp(t.cfg.children)}}function qu(e,r){for(var t=0;t<e.length;t++){var n=e[t];n.cfg.refresh=!0,n.isGroup()&&qu(n.get("children"),r)}}function z2(e,r){var t=e.cfg.cacheCanvasBBox,n=e.cfg.isInView&&t&&eo(t,r);return n}function vp(e,r,t,n){var i=t.path,a=t.startArrow,o=t.endArrow;if(!!i){var s=[0,0],l=[0,0],u={dx:0,dy:0};r.beginPath();for(var c=0;c<i.length;c++){var h=i[c],v=h[0];if(c===0&&a&&a.d){var p=e.getStartTangent();u=Pi(p[0][0],p[0][1],p[1][0],p[1][1],a.d)}else if(c===i.length-2&&i[c+1][0]==="Z"&&o&&o.d){var g=i[c+1];if(g[0]==="Z"){var p=e.getEndTangent();u=Pi(p[0][0],p[0][1],p[1][0],p[1][1],o.d)}}else if(c===i.length-1&&o&&o.d&&i[0]!=="Z"){var p=e.getEndTangent();u=Pi(p[0][0],p[0][1],p[1][0],p[1][1],o.d)}var y=u.dx,x=u.dy;switch(v){case"M":r.moveTo(h[1]-y,h[2]-x),l=[h[1],h[2]];break;case"L":r.lineTo(h[1]-y,h[2]-x);break;case"Q":r.quadraticCurveTo(h[1],h[2],h[3]-y,h[4]-x);break;case"C":r.bezierCurveTo(h[1],h[2],h[3],h[4],h[5]-y,h[6]-x);break;case"A":{var m=void 0;n?(m=n[c],m||(m=Is(s,h),n[c]=m)):m=Is(s,h);var w=m.cx,M=m.cy,S=m.rx,A=m.ry,D=m.startAngle,V=m.endAngle,K=m.xRotation,Mt=m.sweepFlag;if(r.ellipse)r.ellipse(w,M,S,A,K,D,V,1-Mt);else{var ot=S>A?S:A,Lt=S>A?1:S/A,Qt=S>A?A/S:1;r.translate(w,M),r.rotate(K),r.scale(Lt,Qt),r.arc(0,0,ot,D,V,1-Mt),r.scale(1/Lt,1/Qt),r.rotate(-K),r.translate(-w,-M)}break}case"Z":r.closePath();break;default:break}if(v==="Z")s=l;else{var ge=h.length;s=[h[ge-2],h[ge-1]]}}}}function pp(e,r){var t=e.get("canvas");t&&(r==="remove"&&(e._cacheCanvasBBox=e.get("cacheCanvasBBox")),e.get("hasChanged")||(e.set("hasChanged",!0),e.cfg.parent&&e.cfg.parent.get("hasChanged")||(t.refreshElement(e,r,t),t.get("autoDraw")&&t.draw())))}function V2(e){var r;if(e.destroyed)r=e._cacheCanvasBBox;else{var t=e.get("cacheCanvasBBox"),n=t&&!!(t.width&&t.height),i=e.getCanvasBBox(),a=i&&!!(i.width&&i.height);n&&a?r=F2(t,i):n?r=t:a&&(r=i)}return r}function U2(e){if(!e.length)return null;var r=[],t=[],n=[],i=[];return(0,f.S6)(e,function(a){var o=V2(a);o&&(r.push(o.minX),t.push(o.minY),n.push(o.maxX),i.push(o.maxY))}),{minX:(0,f.VV)(r),minY:(0,f.VV)(t),maxX:(0,f.Fp)(n),maxY:(0,f.Fp)(i)}}function H2(e,r){return!e||!r||!eo(e,r)?null:{minX:Math.max(e.minX,r.minX),minY:Math.max(e.minY,r.minY),maxX:Math.min(e.maxX,r.maxX),maxY:Math.min(e.maxY,r.maxY)}}var G2=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.onCanvasChange=function(t){pp(this,t)},r.prototype.getShapeBase=function(){return xt},r.prototype.getGroupBase=function(){return r},r.prototype._applyClip=function(t,n){n&&(t.save(),fa(t,n),n.createPath(t),t.restore(),t.clip(),n._afterDraw())},r.prototype.cacheCanvasBBox=function(){var t=this.cfg.children,n=[],i=[];(0,f.S6)(t,function(v){var p=v.cfg.cacheCanvasBBox;p&&v.cfg.isInView&&(n.push(p.minX,p.maxX),i.push(p.minY,p.maxY))});var a=null;if(n.length){var o=(0,f.VV)(n),s=(0,f.Fp)(n),l=(0,f.VV)(i),u=(0,f.Fp)(i);a={minX:o,minY:l,x:o,y:l,maxX:s,maxY:u,width:s-o,height:u-l};var c=this.cfg.canvas;if(c){var h=c.getViewRange();this.set("isInView",eo(a,h))}}else this.set("isInView",!1);this.set("cacheCanvasBBox",a)},r.prototype.draw=function(t,n){var i=this.cfg.children,a=n?this.cfg.refresh:!0;i.length&&a&&(t.save(),fa(t,this),this._applyClip(t,this.getClip()),Wu(t,i,n),t.restore(),this.cacheCanvasBBox()),this.cfg.refresh=null,this.set("hasChanged",!1)},r.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("hasChanged",!1)},r}(_.AbstractGroup),$u=G2,Y2=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,d.pi)((0,d.pi)({},t),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},r.prototype.getShapeBase=function(){return xt},r.prototype.getGroupBase=function(){return $u},r.prototype.onCanvasChange=function(t){pp(this,t)},r.prototype.calculateBBox=function(){var t=this.get("type"),n=this.getHitLineWidth(),i=(0,_.getBBoxMethod)(t),a=i(this),o=n/2,s=a.x-o,l=a.y-o,u=a.x+a.width+o,c=a.y+a.height+o;return{x:s,minX:s,y:l,minY:l,width:a.width+n,height:a.height+n,maxX:u,maxY:c}},r.prototype.isFill=function(){return!!this.attrs.fill||this.isClipShape()},r.prototype.isStroke=function(){return!!this.attrs.stroke},r.prototype._applyClip=function(t,n){n&&(t.save(),fa(t,n),n.createPath(t),t.restore(),t.clip(),n._afterDraw())},r.prototype.draw=function(t,n){var i=this.cfg.clipShape;if(n){if(this.cfg.refresh===!1){this.set("hasChanged",!1);return}var a=this.getCanvasBBox();if(!eo(n,a)){this.set("hasChanged",!1),this.cfg.isInView&&this._afterDraw();return}}t.save(),fa(t,this),this._applyClip(t,i),this.drawPath(t),t.restore(),this._afterDraw()},r.prototype.getCanvasViewBox=function(){var t=this.cfg.canvas;return t?t.getViewRange():null},r.prototype.cacheCanvasBBox=function(){var t=this.getCanvasViewBox();if(t){var n=this.getCanvasBBox(),i=eo(n,t);this.set("isInView",i),i?this.set("cacheCanvasBBox",n):this.set("cacheCanvasBBox",null)}},r.prototype._afterDraw=function(){this.cacheCanvasBBox(),this.set("hasChanged",!1),this.set("refresh",null)},r.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("isInView",null),this.set("hasChanged",!1)},r.prototype.drawPath=function(t){this.createPath(t),this.strokeAndFill(t),this.afterDrawPath(t)},r.prototype.fill=function(t){t.fill()},r.prototype.stroke=function(t){t.stroke()},r.prototype.strokeAndFill=function(t){var n=this.attrs,i=n.lineWidth,a=n.opacity,o=n.strokeOpacity,s=n.fillOpacity;this.isFill()&&(!(0,f.UM)(s)&&s!==1?(t.globalAlpha=s,this.fill(t),t.globalAlpha=a):this.fill(t)),this.isStroke()&&i>0&&(!(0,f.UM)(o)&&o!==1&&(t.globalAlpha=o),this.stroke(t)),this.afterDrawPath(t)},r.prototype.createPath=function(t){},r.prototype.afterDrawPath=function(t){},r.prototype.isInShape=function(t,n){var i=this.isStroke(),a=this.isFill(),o=this.getHitLineWidth();return this.isInStrokeOrPath(t,n,i,a,o)},r.prototype.isInStrokeOrPath=function(t,n,i,a,o){return!1},r.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var t=this.attrs;return t.lineWidth+t.lineAppendWidth},r}(_.AbstractShape),cn=Y2,X2=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,d.pi)((0,d.pi)({},t),{x:0,y:0,r:0})},r.prototype.isInStrokeOrPath=function(t,n,i,a,o){var s=this.attr(),l=s.x,u=s.y,c=s.r,h=o/2,v=ip(l,u,t,n);return a&&i?v<=c+h:a?v<=c:i?v>=c-h&&v<=c+h:!1},r.prototype.createPath=function(t){var n=this.attr(),i=n.x,a=n.y,o=n.r;t.beginPath(),t.arc(i,a,o,0,Math.PI*2,!1),t.closePath()},r}(cn),W2=X2;function Ds(e,r,t,n){return e/(t*t)+r/(n*n)}var Z2=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,d.pi)((0,d.pi)({},t),{x:0,y:0,rx:0,ry:0})},r.prototype.isInStrokeOrPath=function(t,n,i,a,o){var s=this.attr(),l=o/2,u=s.x,c=s.y,h=s.rx,v=s.ry,p=(t-u)*(t-u),g=(n-c)*(n-c);return a&&i?Ds(p,g,h+l,v+l)<=1:a?Ds(p,g,h,v)<=1:i?Ds(p,g,h-l,v-l)>=1&&Ds(p,g,h+l,v+l)<=1:!1},r.prototype.createPath=function(t){var n=this.attr(),i=n.x,a=n.y,o=n.rx,s=n.ry;if(t.beginPath(),t.ellipse)t.ellipse(i,a,o,s,0,0,Math.PI*2,!1);else{var l=o>s?o:s,u=o>s?1:o/s,c=o>s?s/o:1;t.save(),t.translate(i,a),t.scale(u,c),t.arc(0,0,l,0,Math.PI*2),t.restore(),t.closePath()}},r}(cn),q2=Z2;function dp(e){return e instanceof HTMLElement&&(0,f.HD)(e.nodeName)&&e.nodeName.toUpperCase()==="CANVAS"}var $2=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,d.pi)((0,d.pi)({},t),{x:0,y:0,width:0,height:0})},r.prototype.initAttrs=function(t){this._setImage(t.img)},r.prototype.isStroke=function(){return!1},r.prototype.isOnlyHitBox=function(){return!0},r.prototype._afterLoading=function(){if(this.get("toDraw")===!0){var t=this.get("canvas");t?t.draw():this.createPath(this.get("context"))}},r.prototype._setImage=function(t){var n=this,i=this.attrs;if((0,f.HD)(t)){var a=new Image;a.onload=function(){if(n.destroyed)return!1;n.attr("img",a),n.set("loading",!1),n._afterLoading();var o=n.get("callback");o&&o.call(n)},a.crossOrigin="Anonymous",a.src=t,this.set("loading",!0)}else t instanceof Image?(i.width||(i.width=t.width),i.height||(i.height=t.height)):dp(t)&&(i.width||(i.width=Number(t.getAttribute("width"))),i.height||(i.height,Number(t.getAttribute("height"))))},r.prototype.onAttrChange=function(t,n,i){e.prototype.onAttrChange.call(this,t,n,i),t==="img"&&this._setImage(n)},r.prototype.createPath=function(t){if(this.get("loading")){this.set("toDraw",!0),this.set("context",t);return}var n=this.attr(),i=n.x,a=n.y,o=n.width,s=n.height,l=n.sx,u=n.sy,c=n.swidth,h=n.sheight,v=n.img;(v instanceof Image||dp(v))&&(!(0,f.UM)(l)&&!(0,f.UM)(u)&&!(0,f.UM)(c)&&!(0,f.UM)(h)?t.drawImage(v,l,u,c,h,i,a,o,s):t.drawImage(v,i,a,o,s))},r}(cn),j2=$2,kr=et(89838);function li(e,r,t,n,i,a,o){var s=Math.min(e,t),l=Math.max(e,t),u=Math.min(r,n),c=Math.max(r,n),h=i/2;return a>=s-h&&a<=l+h&&o>=u-h&&o<=c+h?kr.x1.pointToLine(e,r,t,n,a,o)<=i/2:!1}var K2=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,d.pi)((0,d.pi)({},t),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},r.prototype.initAttrs=function(t){this.setArrow()},r.prototype.onAttrChange=function(t,n,i){e.prototype.onAttrChange.call(this,t,n,i),this.setArrow()},r.prototype.setArrow=function(){var t=this.attr(),n=t.x1,i=t.y1,a=t.x2,o=t.y2,s=t.startArrow,l=t.endArrow;s&&Yu(this,t,a,o,n,i),l&&Xu(this,t,n,i,a,o)},r.prototype.isInStrokeOrPath=function(t,n,i,a,o){if(!i||!o)return!1;var s=this.attr(),l=s.x1,u=s.y1,c=s.x2,h=s.y2;return li(l,u,c,h,o,t,n)},r.prototype.createPath=function(t){var n=this.attr(),i=n.x1,a=n.y1,o=n.x2,s=n.y2,l=n.startArrow,u=n.endArrow,c={dx:0,dy:0},h={dx:0,dy:0};l&&l.d&&(c=Pi(i,a,o,s,n.startArrow.d)),u&&u.d&&(h=Pi(i,a,o,s,n.endArrow.d)),t.beginPath(),t.moveTo(i+c.dx,a+c.dy),t.lineTo(o-h.dx,s-h.dy)},r.prototype.afterDrawPath=function(t){var n=this.get("startArrowShape"),i=this.get("endArrowShape");n&&n.draw(t),i&&i.draw(t)},r.prototype.getTotalLength=function(){var t=this.attr(),n=t.x1,i=t.y1,a=t.x2,o=t.y2;return kr.x1.length(n,i,a,o)},r.prototype.getPoint=function(t){var n=this.attr(),i=n.x1,a=n.y1,o=n.x2,s=n.y2;return kr.x1.pointAt(i,a,o,s,t)},r}(cn),J2=K2,Q2=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/ig,tS=/[^\s\,]+/ig;function eS(e){var r=e||[];if((0,f.kJ)(r))return r;if((0,f.HD)(r))return r=r.match(Q2),(0,f.S6)(r,function(t,n){if(t=t.match(tS),t[0].length>1){var i=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=i}(0,f.S6)(t,function(a,o){isNaN(a)||(t[o]=+a)}),r[n]=t}),r}var rS=eS;function nS(e,r,t){var n=null,i=t;return r<i&&(i=r,n="add"),e<i&&(i=e,n="del"),{type:n,min:i}}var iS=function(e,r){var t=e.length,n=r.length,i,a,o=0;if(t===0||n===0)return null;for(var s=[],l=0;l<=t;l++)s[l]=[],s[l][0]={min:l};for(var u=0;u<=n;u++)s[0][u]={min:u};for(var l=1;l<=t;l++){i=e[l-1];for(var u=1;u<=n;u++){a=r[u-1],isEqual(i,a)?o=0:o=1;var c=s[l-1][u].min+1,h=s[l][u-1].min+1,v=s[l-1][u-1].min+o;s[l][u]=nS(c,h,v)}}return s};function p5(e,r){var t=iS(e,r),n=e.length,i=r.length,a=[],o=1,s=1;if(t[n][i]!==n){for(var l=1;l<=n;l++){var u=t[l][l].min;s=l;for(var c=o;c<=i;c++)t[l][c].min<u&&(u=t[l][c].min,s=c);o=s,t[l][o].type&&a.push({index:l-1,type:t[l][o].type})}for(var l=a.length-1;l>=0;l--)o=a[l].index,a[l].type==="add"?e.splice(o,0,[].concat(e[o])):e.splice(o,1)}if(n=e.length,n<i)for(var l=0;l<i-n;l++)e[n-1][0]==="z"||e[n-1][0]==="Z"?e.splice(n-2,0,e[n-2]):e.push(e[n-1]);return e}var ro=`
  53. \v\f\r \xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029`,aS=new RegExp("([a-z])["+ro+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+ro+"]*,?["+ro+"]*)+)","ig"),oS=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+ro+"]*,?["+ro+"]*","ig");function sS(e){if(!e)return null;if((0,f.kJ)(e))return e;var r={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},t=[];return String(e).replace(aS,function(n,i,a){var o=[],s=i.toLowerCase();if(a.replace(oS,function(l,u){u&&o.push(+u)}),s==="m"&&o.length>2&&(t.push([i].concat(o.splice(0,2))),s="l",i=i==="m"?"l":"L"),s==="o"&&o.length===1&&t.push([i,o[0]]),s==="r")t.push([i].concat(o));else for(;o.length>=r[s]&&(t.push([i].concat(o.splice(0,r[s]))),!!r[s]););return""}),t}var lS=/[a-z]/;function gp(e,r){return[r[0]+(r[0]-e[0]),r[1]+(r[1]-e[1])]}function yp(e){var r=sS(e);if(!r||!r.length)return[["M",0,0]];for(var t=!1,n=0;n<r.length;n++){var i=r[n][0];if(lS.test(i)||["V","H","T","S"].indexOf(i)>=0){t=!0;break}}if(!t)return r;var a=[],o=0,s=0,l=0,u=0,c=0,h,v,p=r[0];(p[0]==="M"||p[0]==="m")&&(o=+p[1],s=+p[2],l=o,u=s,c++,a[0]=["M",o,s]);for(var n=c,g=r.length;n<g;n++){var y=r[n],x=a[n-1],m=[],i=y[0],w=i.toUpperCase();if(i!==w)switch(m[0]=w,w){case"A":m[1]=y[1],m[2]=y[2],m[3]=y[3],m[4]=y[4],m[5]=y[5],m[6]=+y[6]+o,m[7]=+y[7]+s;break;case"V":m[1]=+y[1]+s;break;case"H":m[1]=+y[1]+o;break;case"M":l=+y[1]+o,u=+y[2]+s,m[1]=l,m[2]=u;break;default:for(var M=1,S=y.length;M<S;M++)m[M]=+y[M]+(M%2?o:s)}else m=r[n];switch(w){case"Z":o=+l,s=+u;break;case"H":o=m[1],m=["L",o,s];break;case"V":s=m[1],m=["L",o,s];break;case"T":o=m[1],s=m[2];var A=gp([x[1],x[2]],[x[3],x[4]]);m=["Q",A[0],A[1],o,s];break;case"S":o=m[m.length-2],s=m[m.length-1];var D=x.length,V=gp([x[D-4],x[D-3]],[x[D-2],x[D-1]]);m=["C",V[0],V[1],m[1],m[2],o,s];break;case"M":l=m[m.length-2],u=m[m.length-1];break;default:o=m[m.length-2],s=m[m.length-1]}a.push(m)}return a}var no=Math.PI*2,ju=function(e,r,t,n,i,a,o){var s=e.x,l=e.y;s*=r,l*=t;var u=n*s-i*l,c=i*s+n*l;return{x:u+a,y:c+o}},uS=function(e,r){var t=r===1.5707963267948966?.551915024494:r===-1.5707963267948966?-.551915024494:4/3*Math.tan(r/4),n=Math.cos(e),i=Math.sin(e),a=Math.cos(e+r),o=Math.sin(e+r);return[{x:n-i*t,y:i+n*t},{x:a+o*t,y:o-a*t},{x:a,y:o}]},mp=function(e,r,t,n){var i=e*n-r*t<0?-1:1,a=e*t+r*n;return a>1&&(a=1),a<-1&&(a=-1),i*Math.acos(a)},cS=function(e,r,t,n,i,a,o,s,l,u,c,h){var v=Math.pow(i,2),p=Math.pow(a,2),g=Math.pow(c,2),y=Math.pow(h,2),x=v*p-v*y-p*g;x<0&&(x=0),x/=v*y+p*g,x=Math.sqrt(x)*(o===s?-1:1);var m=x*i/a*h,w=x*-a/i*c,M=u*m-l*w+(e+t)/2,S=l*m+u*w+(r+n)/2,A=(c-m)/i,D=(h-w)/a,V=(-c-m)/i,K=(-h-w)/a,Mt=mp(1,0,A,D),ot=mp(A,D,V,K);return s===0&&ot>0&&(ot-=no),s===1&&ot<0&&(ot+=no),[M,S,Mt,ot]},fS=function(e){var r=e.px,t=e.py,n=e.cx,i=e.cy,a=e.rx,o=e.ry,s=e.xAxisRotation,l=s===void 0?0:s,u=e.largeArcFlag,c=u===void 0?0:u,h=e.sweepFlag,v=h===void 0?0:h,p=[];if(a===0||o===0)return[{x1:0,y1:0,x2:0,y2:0,x:n,y:i}];var g=Math.sin(l*no/360),y=Math.cos(l*no/360),x=y*(r-n)/2+g*(t-i)/2,m=-g*(r-n)/2+y*(t-i)/2;if(x===0&&m===0)return[{x1:0,y1:0,x2:0,y2:0,x:n,y:i}];a=Math.abs(a),o=Math.abs(o);var w=Math.pow(x,2)/Math.pow(a,2)+Math.pow(m,2)/Math.pow(o,2);w>1&&(a*=Math.sqrt(w),o*=Math.sqrt(w));var M=cS(r,t,n,i,a,o,c,v,g,y,x,m),S=M[0],A=M[1],D=M[2],V=M[3],K=Math.abs(V)/(no/4);Math.abs(1-K)<1e-7&&(K=1);var Mt=Math.max(Math.ceil(K),1);V/=Mt;for(var ot=0;ot<Mt;ot++)p.push(uS(D,V)),D+=V;return p.map(function(Lt){var Qt=ju(Lt[0],a,o,y,g,S,A),ge=Qt.x,we=Qt.y,Ae=ju(Lt[1],a,o,y,g,S,A),zt=Ae.x,ie=Ae.y,fe=ju(Lt[2],a,o,y,g,S,A),ue=fe.x,he=fe.y;return{x1:ge,y1:we,x2:zt,y2:ie,x:ue,y:he}})};function d5(e,r,t,n,i,a,o,s,l){var u=fS({px:e,py:r,cx:s,cy:l,rx:t,ry:n,xAxisRotation:i,largeArcFlag:a,sweepFlag:o});return u.reduce(function(c,h){var v=h.x1,p=h.y1,g=h.x2,y=h.y2,x=h.x,m=h.y;return c.push(v,p,g,y,x,m),c},[])}function g5(e,r){"TQ".indexOf(e[0])<0&&(r.qx=null,r.qy=null);var t=e.slice(1),n=t[0],i=t[1];switch(e[0]){case"M":return r.x=n,r.y=i,e;case"A":return["C"].concat(arcToCubic.apply(0,[r.x1,r.y1].concat(e.slice(1))));case"Q":return r.qx=n,r.qy=i,["C"].concat(quadToCubic.apply(0,[r.x1,r.y1].concat(e.slice(1))));case"L":return["C"].concat(lineToCubic(r.x1,r.y1,e[1],e[2]));case"H":return["C"].concat(lineToCubic(r.x1,r.y1,e[1],r.y1));case"V":return["C"].concat(lineToCubic(r.x1,r.y1,r.x1,e[1]));case"Z":return["C"].concat(lineToCubic(r.x1,r.y1,r.x,r.y));default:}return e}function y5(e,r){r===void 0&&(r=!1);for(var t=path2Absolute(e),n={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null},i=[],a="",o=t.length,s,l,u=[],c=0;c<o;c+=1)t[c]&&(a=t[c][0]),i[c]=a,t[c]=segmentToCubic(t[c],n),hS(t,i,c),o=t.length,a==="Z"&&u.push(c),s=t[c],l=s.length,n.x1=+s[l-2],n.y1=+s[l-1],n.x2=+s[l-4]||n.x1,n.y2=+s[l-3]||n.y1;return r?[t,u]:t}function hS(e,r,t){if(e[t].length>7){e[t].shift();for(var n=e[t],i=t;n.length;)r[t]="A",e.splice(i+=1,0,["C"].concat(n.splice(0,6)));e.splice(t,1)}}var xp=function(e,r,t,n,i){var a=-3*r+9*t-9*n+3*i,o=e*a+6*r-12*t+6*n;return e*o-3*r+3*t},wp=function(e,r,t,n,i,a,o,s,l){l===null&&(l=1),l=l>1?1:l<0?0:l;for(var u=l/2,c=12,h=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],v=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],p=0,g=0;g<c;g++){var y=u*h[g]+u,x=xp(y,e,t,i,o),m=xp(y,r,n,a,s),w=x*x+m*m;p+=v[g]*Math.sqrt(w)}return u*p},vS=function(e,r,t,n,i,a,o,s){for(var l=[],u=[[],[]],c,h,v,p,g=0;g<2;++g){if(g===0?(h=6*e-12*t+6*i,c=-3*e+9*t-9*i+3*o,v=3*t-3*e):(h=6*r-12*n+6*a,c=-3*r+9*n-9*a+3*s,v=3*n-3*r),Math.abs(c)<1e-12){if(Math.abs(h)<1e-12)continue;p=-v/h,p>0&&p<1&&l.push(p);continue}var y=h*h-4*v*c,x=Math.sqrt(y);if(!(y<0)){var m=(-h+x)/(2*c);m>0&&m<1&&l.push(m);var w=(-h-x)/(2*c);w>0&&w<1&&l.push(w)}}for(var M=l.length,S=M,A;M--;)p=l[M],A=1-p,u[0][M]=A*A*A*e+3*A*A*p*t+3*A*p*p*i+p*p*p*o,u[1][M]=A*A*A*r+3*A*A*p*n+3*A*p*p*a+p*p*p*s;return u[0][S]=e,u[1][S]=r,u[0][S+1]=o,u[1][S+1]=s,u[0].length=u[1].length=S+2,{min:{x:Math.min.apply(0,u[0]),y:Math.min.apply(0,u[1])},max:{x:Math.max.apply(0,u[0]),y:Math.max.apply(0,u[1])}}},pS=function(e,r,t,n,i,a,o,s){if(!(Math.max(e,t)<Math.min(i,o)||Math.min(e,t)>Math.max(i,o)||Math.max(r,n)<Math.min(a,s)||Math.min(r,n)>Math.max(a,s))){var l=(e*n-r*t)*(i-o)-(e-t)*(i*s-a*o),u=(e*n-r*t)*(a-s)-(r-n)*(i*s-a*o),c=(e-t)*(a-s)-(r-n)*(i-o);if(!!c){var h=l/c,v=u/c,p=+h.toFixed(2),g=+v.toFixed(2);if(!(p<+Math.min(e,t).toFixed(2)||p>+Math.max(e,t).toFixed(2)||p<+Math.min(i,o).toFixed(2)||p>+Math.max(i,o).toFixed(2)||g<+Math.min(r,n).toFixed(2)||g>+Math.max(r,n).toFixed(2)||g<+Math.min(a,s).toFixed(2)||g>+Math.max(a,s).toFixed(2)))return{x:h,y:v}}}},ui=function(e,r,t){return r>=e.x&&r<=e.x+e.width&&t>=e.y&&t<=e.y+e.height},Ku=function(e,r,t,n){return e===null&&(e=r=t=n=0),r===null&&(r=e.y,t=e.width,n=e.height,e=e.x),{x:e,y:r,width:t,w:t,height:n,h:n,x2:e+t,y2:r+n,cx:e+t/2,cy:r+n/2,r1:Math.min(t,n)/2,r2:Math.max(t,n)/2,r0:Math.sqrt(t*t+n*n)/2,path:rectPath(e,r,t,n),vb:[e,r,t,n].join(" ")}},dS=function(e,r){return e=Ku(e),r=Ku(r),ui(r,e.x,e.y)||ui(r,e.x2,e.y)||ui(r,e.x,e.y2)||ui(r,e.x2,e.y2)||ui(e,r.x,r.y)||ui(e,r.x2,r.y)||ui(e,r.x,r.y2)||ui(e,r.x2,r.y2)||(e.x<r.x2&&e.x>r.x||r.x<e.x2&&r.x>e.x)&&(e.y<r.y2&&e.y>r.y||r.y<e.y2&&r.y>e.y)},Mp=function(e,r,t,n,i,a,o,s){isArray(e)||(e=[e,r,t,n,i,a,o,s]);var l=vS.apply(null,e);return Ku(l.min.x,l.min.y,l.max.x-l.min.x,l.max.y-l.min.y)},Sp=function(e,r,t,n,i,a,o,s,l){var u=1-l,c=Math.pow(u,3),h=Math.pow(u,2),v=l*l,p=v*l,g=c*e+h*3*l*t+u*3*l*l*i+p*o,y=c*r+h*3*l*n+u*3*l*l*a+p*s,x=e+2*l*(t-e)+v*(i-2*t+e),m=r+2*l*(n-r)+v*(a-2*n+r),w=t+2*l*(i-t)+v*(o-2*i+t),M=n+2*l*(a-n)+v*(s-2*a+n),S=u*e+l*t,A=u*r+l*n,D=u*i+l*o,V=u*a+l*s,K=90-Math.atan2(x-w,m-M)*180/Math.PI;return{x:g,y,m:{x,y:m},n:{x:w,y:M},start:{x:S,y:A},end:{x:D,y:V},alpha:K}},gS=function(e,r,t){var n=Mp(e),i=Mp(r);if(!dS(n,i))return t?0:[];for(var a=wp.apply(0,e),o=wp.apply(0,r),s=~~(a/8),l=~~(o/8),u=[],c=[],h={},v=t?0:[],p=0;p<s+1;p++){var g=Sp.apply(0,e.concat(p/s));u.push({x:g.x,y:g.y,t:p/s})}for(var p=0;p<l+1;p++){var g=Sp.apply(0,r.concat(p/l));c.push({x:g.x,y:g.y,t:p/l})}for(var p=0;p<s;p++)for(var y=0;y<l;y++){var x=u[p],m=u[p+1],w=c[y],M=c[y+1],S=Math.abs(m.x-x.x)<.001?"y":"x",A=Math.abs(M.x-w.x)<.001?"y":"x",D=pS(x.x,x.y,m.x,m.y,w.x,w.y,M.x,M.y);if(D){if(h[D.x.toFixed(4)]===D.y.toFixed(4))continue;h[D.x.toFixed(4)]=D.y.toFixed(4);var V=x.t+Math.abs((D[S]-x[S])/(m[S]-x[S]))*(m.t-x.t),K=w.t+Math.abs((D[A]-w[A])/(M[A]-w[A]))*(M.t-w.t);V>=0&&V<=1&&K>=0&&K<=1&&(t?v++:v.push({x:D.x,y:D.y,t1:V,t2:K}))}}return v},yS=function(e,r,t){e=path2Curve(e),r=path2Curve(r);for(var n,i,a,o,s,l,u,c,h,v,p=t?0:[],g=0,y=e.length;g<y;g++){var x=e[g];if(x[0]==="M")n=s=x[1],i=l=x[2];else{x[0]==="C"?(h=[n,i].concat(x.slice(1)),n=h[6],i=h[7]):(h=[n,i,n,i,s,l,s,l],n=s,i=l);for(var m=0,w=r.length;m<w;m++){var M=r[m];if(M[0]==="M")a=u=M[1],o=c=M[2];else{M[0]==="C"?(v=[a,o].concat(M.slice(1)),a=v[6],o=v[7]):(v=[a,o,a,o,u,c,u,c],a=u,o=c);var S=gS(h,v,t);if(t)p+=S;else{for(var A=0,D=S.length;A<D;A++)S[A].segment1=g,S[A].segment2=m,S[A].bez1=h,S[A].bez2=v;p=p.concat(S)}}}}}return p};function m5(e,r){return yS(e,r)}function Os(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Ju(e,r){return Os(e)*Os(r)?(e[0]*r[0]+e[1]*r[1])/(Os(e)*Os(r)):1}function Cp(e,r){return(e[0]*r[1]<e[1]*r[0]?-1:1)*Math.acos(Ju(e,r))}function Qu(e,r){return e[0]===r[0]&&e[1]===r[1]}function mS(e,r){var t=r[1],n=r[2],i=(0,f.wQ)((0,f.c$)(r[3]),Math.PI*2),a=r[4],o=r[5],s=e[0],l=e[1],u=r[6],c=r[7],h=Math.cos(i)*(s-u)/2+Math.sin(i)*(l-c)/2,v=-1*Math.sin(i)*(s-u)/2+Math.cos(i)*(l-c)/2,p=h*h/(t*t)+v*v/(n*n);p>1&&(t*=Math.sqrt(p),n*=Math.sqrt(p));var g=t*t*(v*v)+n*n*(h*h),y=g?Math.sqrt((t*t*(n*n)-g)/g):1;a===o&&(y*=-1),isNaN(y)&&(y=0);var x=n?y*t*v/n:0,m=t?y*-n*h/t:0,w=(s+u)/2+Math.cos(i)*x-Math.sin(i)*m,M=(l+c)/2+Math.sin(i)*x+Math.cos(i)*m,S=[(h-x)/t,(v-m)/n],A=[(-1*h-x)/t,(-1*v-m)/n],D=Cp([1,0],S),V=Cp(S,A);return Ju(S,A)<=-1&&(V=Math.PI),Ju(S,A)>=1&&(V=0),o===0&&V>0&&(V=V-2*Math.PI),o===1&&V<0&&(V=V+2*Math.PI),{cx:w,cy:M,rx:Qu(e,[u,c])?0:t,ry:Qu(e,[u,c])?0:n,startAngle:D,endAngle:D+V,xRotation:i,arcFlag:a,sweepFlag:o}}function bp(e,r){return[r[0]+(r[0]-e[0]),r[1]+(r[1]-e[1])]}function xS(e){e=rS(e);for(var r=[],t=null,n=null,i=null,a=0,o=e.length,s=0;s<o;s++){var l=e[s];n=e[s+1];var u=l[0],c={command:u,prePoint:t,params:l,startTangent:null,endTangent:null};switch(u){case"M":i=[l[1],l[2]],a=s;break;case"A":var h=mS(t,l);c.arcParams=h;break;default:break}if(u==="Z")t=i,n=e[a+1];else{var v=l.length;t=[l[v-2],l[v-1]]}n&&n[0]==="Z"&&(n=e[a],r[a]&&(r[a].prePoint=t)),c.currentPoint=t,r[a]&&Qu(t,r[a].currentPoint)&&(r[a].prePoint=c.prePoint);var p=n?[n[n.length-2],n[n.length-1]]:null;c.nextPoint=p;var g=c.prePoint;if(["L","H","V"].includes(u))c.startTangent=[g[0]-t[0],g[1]-t[1]],c.endTangent=[t[0]-g[0],t[1]-g[1]];else if(u==="Q"){var y=[l[1],l[2]];c.startTangent=[g[0]-y[0],g[1]-y[1]],c.endTangent=[t[0]-y[0],t[1]-y[1]]}else if(u==="T"){var x=r[s-1],y=bp(x.currentPoint,g);x.command==="Q"?(c.command="Q",c.startTangent=[g[0]-y[0],g[1]-y[1]],c.endTangent=[t[0]-y[0],t[1]-y[1]]):(c.command="TL",c.startTangent=[g[0]-t[0],g[1]-t[1]],c.endTangent=[t[0]-g[0],t[1]-g[1]])}else if(u==="C"){var m=[l[1],l[2]],w=[l[3],l[4]];c.startTangent=[g[0]-m[0],g[1]-m[1]],c.endTangent=[t[0]-w[0],t[1]-w[1]],c.startTangent[0]===0&&c.startTangent[1]===0&&(c.startTangent=[m[0]-w[0],m[1]-w[1]]),c.endTangent[0]===0&&c.endTangent[1]===0&&(c.endTangent=[w[0]-m[0],w[1]-m[1]])}else if(u==="S"){var x=r[s-1],m=bp(x.currentPoint,g),w=[l[1],l[2]];x.command==="C"?(c.command="C",c.startTangent=[g[0]-m[0],g[1]-m[1]],c.endTangent=[t[0]-w[0],t[1]-w[1]]):(c.command="SQ",c.startTangent=[g[0]-w[0],g[1]-w[1]],c.endTangent=[t[0]-w[0],t[1]-w[1]])}else if(u==="A"){var M=.001,S=c.arcParams||{},A=S.cx,D=A===void 0?0:A,V=S.cy,K=V===void 0?0:V,Mt=S.rx,ot=Mt===void 0?0:Mt,Lt=S.ry,Qt=Lt===void 0?0:Lt,ge=S.sweepFlag,we=ge===void 0?0:ge,Ae=S.startAngle,zt=Ae===void 0?0:Ae,ie=S.endAngle,fe=ie===void 0?0:ie;we===0&&(M*=-1);var ue=ot*Math.cos(zt-M)+D,he=Qt*Math.sin(zt-M)+K;c.startTangent=[ue-i[0],he-i[1]];var Te=ot*Math.cos(zt+fe+M)+D,Be=Qt*Math.sin(zt+fe-M)+K;c.endTangent=[g[0]-Te,g[1]-Be]}r.push(c)}return r}function Ap(e){for(var r=[],t=e.length,n=0;n<t-1;n++){var i=e[n],a=e[n+1];r.push({from:{x:i[0],y:i[1]},to:{x:a[0],y:a[1]}})}if(r.length>1){var o=e[0],s=e[t-1];r.push({from:{x:s[0],y:s[1]},to:{x:o[0],y:o[1]}})}return r}function wS(e,r){var t=!1;return each(e,function(n){if(getLineIntersect(n.from,n.to,r.from,r.to))return t=!0,!1}),t}function Tp(e){var r=e.map(function(n){return n[0]}),t=e.map(function(n){return n[1]});return{minX:Math.min.apply(null,r),maxX:Math.max.apply(null,r),minY:Math.min.apply(null,t),maxY:Math.max.apply(null,t)}}function MS(e,r){return!(r.minX>e.maxX||r.maxX<e.minX||r.minY>e.maxY||r.maxY<e.minY)}function x5(e,r){if(e.length<2||r.length<2)return!1;var t=Tp(e),n=Tp(r);if(!MS(t,n))return!1;var i=!1;if(each(r,function(l){if(isPointInPolygon(e,l[0],l[1]))return i=!0,!1}),i||(each(e,function(l){if(isPointInPolygon(r,l[0],l[1]))return i=!0,!1}),i))return!0;var a=Ap(e),o=Ap(r),s=!1;return each(o,function(l){if(wS(a,l))return s=!0,!1}),s}var SS={circle:function(e,r,t){return[["M",e-t,r],["A",t,t,0,1,0,e+t,r],["A",t,t,0,1,0,e-t,r]]},square:function(e,r,t){return[["M",e-t,r-t],["L",e+t,r-t],["L",e+t,r+t],["L",e-t,r+t],["Z"]]},diamond:function(e,r,t){return[["M",e-t,r],["L",e,r-t],["L",e+t,r],["L",e,r+t],["Z"]]},triangle:function(e,r,t){var n=t*Math.sin(1/3*Math.PI);return[["M",e-t,r+n],["L",e,r-n],["L",e+t,r+n],["Z"]]},"triangle-down":function(e,r,t){var n=t*Math.sin(1/3*Math.PI);return[["M",e-t,r-n],["L",e+t,r-n],["L",e,r+n],["Z"]]}},CS=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.initAttrs=function(t){this._resetParamsCache()},r.prototype._resetParamsCache=function(){this.set("paramsCache",{})},r.prototype.onAttrChange=function(t,n,i){e.prototype.onAttrChange.call(this,t,n,i),["symbol","x","y","r","radius"].indexOf(t)!==-1&&this._resetParamsCache()},r.prototype.isOnlyHitBox=function(){return!0},r.prototype._getR=function(t){return(0,f.UM)(t.r)?t.radius:t.r},r.prototype._getPath=function(){var t=this.attr(),n=t.x,i=t.y,a=t.symbol||"circle",o=this._getR(t),s,l;if((0,f.mf)(a))s=a,l=s(n,i,o),l=yp(l);else{if(s=r.Symbols[a],!s)return console.warn(a+" marker is not supported."),null;l=s(n,i,o)}return l},r.prototype.createPath=function(t){var n=this._getPath(),i=this.get("paramsCache");vp(this,t,{path:n},i)},r.Symbols=SS,r}(cn),bS=CS;function Ep(e,r,t){var n=(0,_.getOffScreenContext)();return e.createPath(n),n.isPointInPath(r,t)}var AS=1e-6;function tc(e){return Math.abs(e)<AS?0:e<0?-1:1}function TS(e,r,t){return(t[0]-e[0])*(r[1]-e[1])==(r[0]-e[0])*(t[1]-e[1])&&Math.min(e[0],r[0])<=t[0]&&t[0]<=Math.max(e[0],r[0])&&Math.min(e[1],r[1])<=t[1]&&t[1]<=Math.max(e[1],r[1])}function _p(e,r,t){var n=!1,i=e.length;if(i<=2)return!1;for(var a=0;a<i;a++){var o=e[a],s=e[(a+1)%i];if(TS(o,s,[r,t]))return!0;tc(o[1]-t)>0!=tc(s[1]-t)>0&&tc(r-(t-o[1])*(o[0]-s[0])/(o[1]-s[1])-o[0])<0&&(n=!n)}return n}function io(e,r,t,n,i,a,o,s){var l=(Math.atan2(s-r,o-e)+Math.PI*2)%(Math.PI*2);if(l<n||l>i)return!1;var u={x:e+t*Math.cos(l),y:r+t*Math.sin(l)};return ip(u.x,u.y,o,s)<=a/2}var ES=nr.vs;function _S(e){for(var r=!1,t=e.length,n=0;n<t;n++){var i=e[n],a=i[0];if(a==="C"||a==="A"||a==="Q"){r=!0;break}}return r}function FS(e,r,t,n,i){for(var a=!1,o=r/2,s=0;s<e.length;s++){var l=e[s],u=l.currentPoint,c=l.params,h=l.prePoint,v=l.box;if(!(v&&!Li(v.x-o,v.y-o,v.width+r,v.height+r,t,n))){switch(l.command){case"L":case"Z":a=li(h[0],h[1],u[0],u[1],r,t,n);break;case"Q":var p=kr.lD.pointDistance(h[0],h[1],c[1],c[2],c[3],c[4],t,n);a=p<=r/2;break;case"C":var g=kr.Ll.pointDistance(h[0],h[1],c[1],c[2],c[3],c[4],c[5],c[6],t,n,i);a=g<=r/2;break;case"A":var y=l.arcParams,x=y.cx,m=y.cy,w=y.rx,M=y.ry,S=y.startAngle,A=y.endAngle,D=y.xRotation,V=[t,n,1],K=w>M?w:M,Mt=w>M?1:w/M,ot=w>M?M/w:1,Lt=ES(null,[["t",-x,-m],["r",-D],["s",1/Mt,1/ot]]);La(V,V,Lt),a=io(0,0,K,S,A,r,V[0],V[1]);break;default:break}if(a)break}}return a}function IS(e){for(var r=e.length,t=[],n=[],i=[],a=0;a<r;a++){var o=e[a],s=o[0];s==="M"?(i.length&&(n.push(i),i=[]),i.push([o[1],o[2]])):s==="Z"?i.length&&(t.push(i),i=[]):i.push([o[1],o[2]])}return i.length>0&&n.push(i),{polygons:t,polylines:n}}var Bs=(0,d.pi)({hasArc:_S,extractPolygons:IS,isPointInStroke:FS},_.PathUtil);function Fp(e,r,t){for(var n=!1,i=0;i<e.length;i++){var a=e[i];if(n=_p(a,r,t),n)break}return n}var LS=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,d.pi)((0,d.pi)({},t),{startArrow:!1,endArrow:!1})},r.prototype.initAttrs=function(t){this._setPathArr(t.path),this.setArrow()},r.prototype.onAttrChange=function(t,n,i){e.prototype.onAttrChange.call(this,t,n,i),t==="path"&&this._setPathArr(n),this.setArrow()},r.prototype._setPathArr=function(t){this.attrs.path=yp(t);var n=Bs.hasArc(t);this.set("hasArc",n),this.set("paramsCache",{}),this.set("segments",null),this.set("curve",null),this.set("tCache",null),this.set("totalLength",null)},r.prototype.getSegments=function(){var t=this.get("segements");return t||(t=xS(this.attr("path")),this.set("segments",t)),t},r.prototype.setArrow=function(){var t=this.attr(),n=t.startArrow,i=t.endArrow;if(n){var a=this.getStartTangent();Yu(this,t,a[0][0],a[0][1],a[1][0],a[1][1])}if(i){var a=this.getEndTangent();Xu(this,t,a[0][0],a[0][1],a[1][0],a[1][1])}},r.prototype.isInStrokeOrPath=function(t,n,i,a,o){var s=this.getSegments(),l=this.get("hasArc"),u=!1;if(i){var c=this.getTotalLength();u=Bs.isPointInStroke(s,o,t,n,c)}if(!u&&a)if(l)u=Ep(this,t,n);else{var h=this.attr("path"),v=Bs.extractPolygons(h);u=Fp(v.polygons,t,n)||Fp(v.polylines,t,n)}return u},r.prototype.createPath=function(t){var n=this.attr(),i=this.get("paramsCache");vp(this,t,n,i)},r.prototype.afterDrawPath=function(t){var n=this.get("startArrowShape"),i=this.get("endArrowShape");n&&n.draw(t),i&&i.draw(t)},r.prototype.getTotalLength=function(){var t=this.get("totalLength");return(0,f.UM)(t)?(this._calculateCurve(),this._setTcache(),this.get("totalLength")):t},r.prototype.getPoint=function(t){var n=this.get("tCache");n||(this._calculateCurve(),this._setTcache(),n=this.get("tCache"));var i,a,o=this.get("curve");if(!n||n.length===0)return o?{x:o[0][1],y:o[0][2]}:null;(0,f.S6)(n,function(c,h){t>=c[0]&&t<=c[1]&&(i=(t-c[0])/(c[1]-c[0]),a=h)});var s=o[a];if((0,f.UM)(s)||(0,f.UM)(a))return null;var l=s.length,u=o[a+1];return kr.Ll.pointAt(s[l-2],s[l-1],u[1],u[2],u[3],u[4],u[5],u[6],i)},r.prototype._calculateCurve=function(){var t=this.attr().path;this.set("curve",Bs.pathToCurve(t))},r.prototype._setTcache=function(){var t=0,n=0,i=[],a,o,s,l,u=this.get("curve");if(!!u){if((0,f.S6)(u,function(c,h){s=u[h+1],l=c.length,s&&(t+=kr.Ll.length(c[l-2],c[l-1],s[1],s[2],s[3],s[4],s[5],s[6])||0)}),this.set("totalLength",t),t===0){this.set("tCache",[]);return}(0,f.S6)(u,function(c,h){s=u[h+1],l=c.length,s&&(a=[],a[0]=n/t,o=kr.Ll.length(c[l-2],c[l-1],s[1],s[2],s[3],s[4],s[5],s[6]),n+=o||0,a[1]=n/t,i.push(a))}),this.set("tCache",i)}},r.prototype.getStartTangent=function(){var t=this.getSegments(),n;if(t.length>1){var i=t[0].currentPoint,a=t[1].currentPoint,o=t[1].startTangent;n=[],o?(n.push([i[0]-o[0],i[1]-o[1]]),n.push([i[0],i[1]])):(n.push([a[0],a[1]]),n.push([i[0],i[1]]))}return n},r.prototype.getEndTangent=function(){var t=this.getSegments(),n=t.length,i;if(n>1){var a=t[n-2].currentPoint,o=t[n-1].currentPoint,s=t[n-1].endTangent;i=[],s?(i.push([o[0]-s[0],o[1]-s[1]]),i.push([o[0],o[1]])):(i.push([a[0],a[1]]),i.push([o[0],o[1]]))}return i},r}(cn),ec=LS;function Ip(e,r,t,n,i){var a=e.length;if(a<2)return!1;for(var o=0;o<a-1;o++){var s=e[o][0],l=e[o][1],u=e[o+1][0],c=e[o+1][1];if(li(s,l,u,c,r,t,n))return!0}if(i){var h=e[0],v=e[a-1];if(li(h[0],h[1],v[0],v[1],r,t,n))return!0}return!1}var PS=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.isInStrokeOrPath=function(t,n,i,a,o){var s=this.attr().points,l=!1;return i&&(l=Ip(s,o,t,n,!0)),!l&&a&&(l=_p(s,t,n)),l},r.prototype.createPath=function(t){var n=this.attr(),i=n.points;if(!(i.length<2)){t.beginPath();for(var a=0;a<i.length;a++){var o=i[a];a===0?t.moveTo(o[0],o[1]):t.lineTo(o[0],o[1])}t.closePath()}},r}(cn),kS=PS,DS=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,d.pi)((0,d.pi)({},t),{startArrow:!1,endArrow:!1})},r.prototype.initAttrs=function(t){this.setArrow()},r.prototype.onAttrChange=function(t,n,i){e.prototype.onAttrChange.call(this,t,n,i),this.setArrow(),["points"].indexOf(t)!==-1&&this._resetCache()},r.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},r.prototype.setArrow=function(){var t=this.attr(),n=this.attrs,i=n.points,a=n.startArrow,o=n.endArrow,s=i.length,l=i[0][0],u=i[0][1],c=i[s-1][0],h=i[s-1][1];a&&Yu(this,t,i[1][0],i[1][1],l,u),o&&Xu(this,t,i[s-2][0],i[s-2][1],c,h)},r.prototype.isFill=function(){return!1},r.prototype.isInStrokeOrPath=function(t,n,i,a,o){if(!i||!o)return!1;var s=this.attr().points;return Ip(s,o,t,n,!1)},r.prototype.isStroke=function(){return!0},r.prototype.createPath=function(t){var n=this.attr(),i=n.points,a=n.startArrow,o=n.endArrow,s=i.length;if(!(i.length<2)){var l=i[0][0],u=i[0][1],c=i[s-1][0],h=i[s-1][1];if(a&&a.d){var v=Pi(l,u,i[1][0],i[1][1],a.d);l+=v.dx,u+=v.dy}if(o&&o.d){var v=Pi(i[s-2][0],i[s-2][1],c,h,o.d);c-=v.dx,h-=v.dy}t.beginPath(),t.moveTo(l,u);for(var p=0;p<s-1;p++){var g=i[p];t.lineTo(g[0],g[1])}t.lineTo(c,h)}},r.prototype.afterDrawPath=function(t){var n=this.get("startArrowShape"),i=this.get("endArrowShape");n&&n.draw(t),i&&i.draw(t)},r.prototype.getTotalLength=function(){var t=this.attr().points,n=this.get("totalLength");return(0,f.UM)(n)?(this.set("totalLength",kr.aH.length(t)),this.get("totalLength")):n},r.prototype.getPoint=function(t){var n=this.attr().points,i=this.get("tCache");i||(this._setTcache(),i=this.get("tCache"));var a,o;return(0,f.S6)(i,function(s,l){t>=s[0]&&t<=s[1]&&(a=(t-s[0])/(s[1]-s[0]),o=l)}),kr.x1.pointAt(n[o][0],n[o][1],n[o+1][0],n[o+1][1],a)},r.prototype._setTcache=function(){var t=this.attr().points;if(!(!t||t.length===0)){var n=this.getTotalLength();if(!(n<=0)){var i=0,a=[],o,s;(0,f.S6)(t,function(l,u){t[u+1]&&(o=[],o[0]=i/n,s=kr.x1.length(l[0],l[1],t[u+1][0],t[u+1][1]),i+=s,o[1]=i/n,a.push(o))}),this.set("tCache",a)}}},r.prototype.getStartTangent=function(){var t=this.attr().points,n=[];return n.push([t[1][0],t[1][1]]),n.push([t[0][0],t[0][1]]),n},r.prototype.getEndTangent=function(){var t=this.attr().points,n=t.length-1,i=[];return i.push([t[n-1][0],t[n-1][1]]),i.push([t[n][0],t[n][1]]),i},r}(cn),OS=DS;function BS(e,r,t,n,i,a,o){var s=i/2;return Li(e-s,r-s,t,i,a,o)||Li(e+t-s,r-s,i,n,a,o)||Li(e+s,r+n-s,t,i,a,o)||Li(e-s,r+s,i,n,a,o)}function RS(e,r,t,n,i,a,o,s){var l=a/2;return li(e+i,r,e+t-i,r,a,o,s)||li(e+t,r+i,e+t,r+n-i,a,o,s)||li(e+t-i,r+n,e+i,r+n,a,o,s)||li(e,r+n-i,e,r+i,a,o,s)||io(e+t-i,r+i,i,1.5*Math.PI,2*Math.PI,a,o,s)||io(e+t-i,r+n-i,i,0,.5*Math.PI,a,o,s)||io(e+i,r+n-i,i,.5*Math.PI,Math.PI,a,o,s)||io(e+i,r+i,i,Math.PI,1.5*Math.PI,a,o,s)}var NS=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,d.pi)((0,d.pi)({},t),{x:0,y:0,width:0,height:0,radius:0})},r.prototype.isInStrokeOrPath=function(t,n,i,a,o){var s=this.attr(),l=s.x,u=s.y,c=s.width,h=s.height,v=s.radius;if(v){var g=!1;return i&&(g=RS(l,u,c,h,v,o,t,n)),!g&&a&&(g=Ep(this,t,n)),g}else{var p=o/2;if(a&&i)return Li(l-p,u-p,c+p,h+p,t,n);if(a)return Li(l,u,c,h,t,n);if(i)return BS(l,u,c,h,o,t,n)}},r.prototype.createPath=function(t){var n=this.attr(),i=n.x,a=n.y,o=n.width,s=n.height,l=n.radius;if(t.beginPath(),l===0)t.rect(i,a,o,s);else{var u=R2(l),c=u[0],h=u[1],v=u[2],p=u[3];t.moveTo(i+c,a),t.lineTo(i+o-h,a),h!==0&&t.arc(i+o-h,a+h,h,-Math.PI/2,0),t.lineTo(i+o,a+s-v),v!==0&&t.arc(i+o-v,a+s-v,v,0,Math.PI/2),t.lineTo(i+p,a+s),p!==0&&t.arc(i+p,a+s-p,p,Math.PI/2,Math.PI),t.lineTo(i,a+c),c!==0&&t.arc(i+c,a+c,c,Math.PI,Math.PI*1.5),t.closePath()}},r}(cn),zS=NS,VS=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,d.pi)((0,d.pi)({},t),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},r.prototype.isOnlyHitBox=function(){return!0},r.prototype.initAttrs=function(t){this._assembleFont(),t.text&&this._setText(t.text)},r.prototype._assembleFont=function(){var t=this.attrs;t.font=(0,_.assembleFont)(t)},r.prototype._setText=function(t){var n=null;(0,f.HD)(t)&&t.indexOf(`
  54. `)!==-1&&(n=t.split(`
  55. `)),this.set("textArr",n)},r.prototype.onAttrChange=function(t,n,i){e.prototype.onAttrChange.call(this,t,n,i),t.startsWith("font")&&this._assembleFont(),t==="text"&&this._setText(n)},r.prototype._getSpaceingY=function(){var t=this.attrs,n=t.lineHeight,i=t.fontSize*1;return n?n-i:i*.14},r.prototype._drawTextArr=function(t,n,i){var a=this.attrs,o=a.textBaseline,s=a.x,l=a.y,u=a.fontSize*1,c=this._getSpaceingY(),h=(0,_.getTextHeight)(a.text,a.fontSize,a.lineHeight),v;(0,f.S6)(n,function(p,g){v=l+g*(c+u)-h+u,o==="middle"&&(v+=h-u-(h-u)/2),o==="top"&&(v+=h-u),(0,f.UM)(p)||(i?t.fillText(p,s,v):t.strokeText(p,s,v))})},r.prototype._drawText=function(t,n){var i=this.attr(),a=i.x,o=i.y,s=this.get("textArr");if(s)this._drawTextArr(t,s,n);else{var l=i.text;(0,f.UM)(l)||(n?t.fillText(l,a,o):t.strokeText(l,a,o))}},r.prototype.strokeAndFill=function(t){var n=this.attrs,i=n.lineWidth,a=n.opacity,o=n.strokeOpacity,s=n.fillOpacity;this.isStroke()&&i>0&&(!(0,f.UM)(o)&&o!==1&&(t.globalAlpha=a),this.stroke(t)),this.isFill()&&(!(0,f.UM)(s)&&s!==1?(t.globalAlpha=s,this.fill(t),t.globalAlpha=a):this.fill(t)),this.afterDrawPath(t)},r.prototype.fill=function(t){this._drawText(t,!0)},r.prototype.stroke=function(t){this._drawText(t,!1)},r}(cn),US=VS;function HS(e,r){if(r){var t=(0,_.invert)(r);return(0,_.multiplyVec2)(t,e)}return e}function Lp(e,r,t){var n=e.getTotalMatrix();if(n){var i=HS([r,t,1],n),a=i[0],o=i[1];return[a,o]}return[r,t]}function Pp(e,r,t){if(e.isCanvas&&e.isCanvas())return!0;if(!(0,_.isAllowCapture)(e)||e.cfg.isInView===!1)return!1;if(e.cfg.clipShape){var n=Lp(e,r,t),i=n[0],a=n[1];if(e.isClipped(i,a))return!1}var o=e.cfg.cacheCanvasBBox||e.getCanvasBBox();return r>=o.minX&&r<=o.maxX&&t>=o.minY&&t<=o.maxY}function kp(e,r,t){if(!Pp(e,r,t))return null;for(var n=null,i=e.getChildren(),a=i.length,o=a-1;o>=0;o--){var s=i[o];if(s.isGroup())n=kp(s,r,t);else if(Pp(s,r,t)){var l=s,u=Lp(s,r,t),c=u[0],h=u[1];l.isInShape(c,h)&&(n=s)}if(n)break}return n}var GS=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return t.renderer="canvas",t.autoDraw=!0,t.localRefresh=!0,t.refreshElements=[],t.clipView=!0,t.quickHit=!1,t},r.prototype.onCanvasChange=function(t){(t==="attr"||t==="sort"||t==="changeSize")&&(this.set("refreshElements",[this]),this.draw())},r.prototype.getShapeBase=function(){return xt},r.prototype.getGroupBase=function(){return $u},r.prototype.getPixelRatio=function(){var t=this.get("pixelRatio")||_2();return t>=1?Math.ceil(t):1},r.prototype.getViewRange=function(){return{minX:0,minY:0,maxX:this.cfg.width,maxY:this.cfg.height}},r.prototype.createDom=function(){var t=document.createElement("canvas"),n=t.getContext("2d");return this.set("context",n),t},r.prototype.setDOMSize=function(t,n){e.prototype.setDOMSize.call(this,t,n);var i=this.get("context"),a=this.get("el"),o=this.getPixelRatio();a.width=o*t,a.height=o*n,o>1&&i.scale(o,o)},r.prototype.clear=function(){e.prototype.clear.call(this),this._clearFrame();var t=this.get("context"),n=this.get("el");t.clearRect(0,0,n.width,n.height)},r.prototype.getShape=function(t,n){var i;return this.get("quickHit")?i=kp(this,t,n):i=e.prototype.getShape.call(this,t,n,null),i},r.prototype._getRefreshRegion=function(){var t=this.get("refreshElements"),n=this.getViewRange(),i;if(t.length&&t[0]===this)i=n;else if(i=U2(t),i){i.minX=Math.floor(i.minX),i.minY=Math.floor(i.minY),i.maxX=Math.ceil(i.maxX),i.maxY=Math.ceil(i.maxY),i.maxY+=1;var a=this.get("clipView");a&&(i=H2(i,n))}return i},r.prototype.refreshElement=function(t){var n=this.get("refreshElements");n.push(t)},r.prototype._clearFrame=function(){var t=this.get("drawFrame");t&&((0,f.VS)(t),this.set("drawFrame",null),this.set("refreshElements",[]))},r.prototype.draw=function(){var t=this.get("drawFrame");this.get("autoDraw")&&t||this._startDraw()},r.prototype._drawAll=function(){var t=this.get("context"),n=this.get("el"),i=this.getChildren();t.clearRect(0,0,n.width,n.height),fa(t,this),Wu(t,i),this.set("refreshElements",[])},r.prototype._drawRegion=function(){var t=this.get("context"),n=this.get("refreshElements"),i=this.getChildren(),a=this._getRefreshRegion();a?(t.clearRect(a.minX,a.minY,a.maxX-a.minX,a.maxY-a.minY),t.save(),t.beginPath(),t.rect(a.minX,a.minY,a.maxX-a.minX,a.maxY-a.minY),t.clip(),fa(t,this),N2(this,i,a),Wu(t,i,a),t.restore()):n.length&&hp(n),(0,f.S6)(n,function(o){o.get("hasChanged")&&o.set("hasChanged",!1)}),this.set("refreshElements",[])},r.prototype._startDraw=function(){var t=this,n=this.get("drawFrame");n||(n=(0,f.U7)(function(){t.get("localRefresh")?t._drawRegion():t._drawAll(),t.set("drawFrame",null)}),this.set("drawFrame",n))},r.prototype.skipDraw=function(){},r.prototype.removeDom=function(){var t=this.get("el");t.width=0,t.height=0,t.parentNode.removeChild(t)},r}(_.AbstractCanvas),YS=GS,XS="0.5.12",rc={rect:"path",circle:"circle",line:"line",path:"path",marker:"path",text:"text",polyline:"polyline",polygon:"polygon",image:"image",ellipse:"ellipse",dom:"foreignObject"},Ze={opacity:"opacity",fillStyle:"fill",fill:"fill",fillOpacity:"fill-opacity",strokeStyle:"stroke",strokeOpacity:"stroke-opacity",stroke:"stroke",x:"x",y:"y",r:"r",rx:"rx",ry:"ry",width:"width",height:"height",x1:"x1",x2:"x2",y1:"y1",y2:"y2",lineCap:"stroke-linecap",lineJoin:"stroke-linejoin",lineWidth:"stroke-width",lineDash:"stroke-dasharray",lineDashOffset:"stroke-dashoffset",miterLimit:"stroke-miterlimit",font:"font",fontSize:"font-size",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",fontFamily:"font-family",startArrow:"marker-start",endArrow:"marker-end",path:"d",class:"class",id:"id",style:"style",preserveAspectRatio:"preserveAspectRatio"},w5=null;function Qr(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function Dp(e){var r=rc[e.type],t=e.getParent();if(!r)throw new Error("the type "+e.type+" is not supported by svg");var n=Qr(r);if(e.get("id")&&(n.id=e.get("id")),e.set("el",n),e.set("attrs",{}),t){var i=t.get("el");i||(i=t.createDom(),t.set("el",i)),i.appendChild(n)}return n}function Op(e,r){var t=e.get("el"),n=(0,f.qo)(t.children).sort(r),i=document.createDocumentFragment();n.forEach(function(a){i.appendChild(a)}),t.appendChild(i)}function WS(e,r){var t=e.parentNode,n=Array.from(t.childNodes).filter(function(s){return s.nodeType===1&&s.nodeName.toLowerCase()!=="defs"}),i=n[r],a=n.indexOf(e);if(i){if(a>r)t.insertBefore(e,i);else if(a<r){var o=n[r+1];o?t.insertBefore(e,o):t.appendChild(e)}}else t.appendChild(e)}function ZS(e,r){var t=e.cfg.el,n=e.attr(),i={dx:n.shadowOffsetX,dy:n.shadowOffsetY,blur:n.shadowBlur,color:n.shadowColor};if(!i.dx&&!i.dy&&!i.blur&&!i.color)t.removeAttribute("filter");else{var a=r.find("filter",i);a||(a=r.addShadow(i)),t.setAttribute("filter","url(#"+a+")")}}function ao(e){var r=e.attr().matrix;if(r){for(var t=e.cfg.el,n=[],i=0;i<9;i+=3)n.push(r[i]+","+r[i+1]);n=n.join(","),n.indexOf("NaN")===-1?t.setAttribute("transform","matrix("+n+")"):console.warn("invalid matrix:",r)}}function oo(e,r){var t=e.getClip(),n=e.get("el");if(!t)n.removeAttribute("clip-path");else if(t&&!n.hasAttribute("clip-path")){Dp(t),t.createPath(r);var i=r.addClip(t);n.setAttribute("clip-path","url(#"+i+")")}}function Bp(e,r){r.forEach(function(t){t.draw(e)})}function Rp(e,r){var t=e.get("canvas");if(t&&t.get("autoDraw")){var n=t.get("context"),i=e.getParent(),a=i?i.getChildren():[t],o=e.get("el");if(r==="remove"){var s=e.get("isClipShape");if(s){var l=o&&o.parentNode,u=l&&l.parentNode;l&&u&&u.removeChild(l)}else o&&o.parentNode&&o.parentNode.removeChild(o)}else if(r==="show")o.setAttribute("visibility","visible");else if(r==="hide")o.setAttribute("visibility","hidden");else if(r==="zIndex")WS(o,a.indexOf(e));else if(r==="sort"){var c=e.get("children");c&&c.length&&Op(e,function(h,v){return c.indexOf(h)-c.indexOf(v)?1:0})}else r==="clear"?o&&(o.innerHTML=""):r==="matrix"?ao(e):r==="clip"?oo(e,n):r==="attr"||r==="add"&&e.draw(n)}}var qS=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.isEntityGroup=function(){return!0},r.prototype.createDom=function(){var t=Qr("g");this.set("el",t);var n=this.getParent();if(n){var i=n.get("el");i||(i=n.createDom(),n.set("el",i)),i.appendChild(t)}return t},r.prototype.afterAttrsChange=function(t){e.prototype.afterAttrsChange.call(this,t);var n=this.get("canvas");if(n&&n.get("autoDraw")){var i=n.get("context");this.createPath(i,t)}},r.prototype.onCanvasChange=function(t){Rp(this,t)},r.prototype.getShapeBase=function(){return Ot},r.prototype.getGroupBase=function(){return r},r.prototype.draw=function(t){var n=this.getChildren(),i=this.get("el");this.get("destroyed")?i&&i.parentNode.removeChild(i):(i||this.createDom(),oo(this,t),this.createPath(t),n.length&&Bp(t,n))},r.prototype.createPath=function(t,n){var i=this.attr(),a=this.get("el");(0,f.S6)(n||i,function(o,s){Ze[s]&&a.setAttribute(Ze[s],o)}),ao(this)},r}(_.AbstractGroup),nc=qS,$S=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="svg",t.canFill=!1,t.canStroke=!1,t}return r.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,d.pi)((0,d.pi)({},t),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},r.prototype.afterAttrsChange=function(t){e.prototype.afterAttrsChange.call(this,t);var n=this.get("canvas");if(n&&n.get("autoDraw")){var i=n.get("context");this.draw(i,t)}},r.prototype.getShapeBase=function(){return Ot},r.prototype.getGroupBase=function(){return nc},r.prototype.onCanvasChange=function(t){Rp(this,t)},r.prototype.calculateBBox=function(){var t=this.get("el"),n=null;if(t)n=t.getBBox();else{var i=(0,_.getBBoxMethod)(this.get("type"));i&&(n=i(this))}if(n){var a=n.x,o=n.y,s=n.width,l=n.height,u=this.getHitLineWidth(),c=u/2,h=a-c,v=o-c,p=a+s+c,g=o+l+c;return{x:h,y:v,minX:h,minY:v,maxX:p,maxY:g,width:s+u,height:l+u}}return{x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0}},r.prototype.isFill=function(){var t=this.attr(),n=t.fill,i=t.fillStyle;return(n||i||this.isClipShape())&&this.canFill},r.prototype.isStroke=function(){var t=this.attr(),n=t.stroke,i=t.strokeStyle;return(n||i)&&this.canStroke},r.prototype.draw=function(t,n){var i=this.get("el");this.get("destroyed")?i&&i.parentNode.removeChild(i):(i||Dp(this),oo(this,t),this.createPath(t,n),this.shadow(t,n),this.strokeAndFill(t,n),this.transform(n))},r.prototype.createPath=function(t,n){},r.prototype.strokeAndFill=function(t,n){var i=n||this.attr(),a=i.fill,o=i.fillStyle,s=i.stroke,l=i.strokeStyle,u=i.fillOpacity,c=i.strokeOpacity,h=i.lineWidth,v=this.get("el");this.canFill&&(n?"fill"in i?this._setColor(t,"fill",a):"fillStyle"in i&&this._setColor(t,"fill",o):this._setColor(t,"fill",a||o),u&&v.setAttribute(Ze.fillOpacity,u)),this.canStroke&&h>0&&(n?"stroke"in i?this._setColor(t,"stroke",s):"strokeStyle"in i&&this._setColor(t,"stroke",l):this._setColor(t,"stroke",s||l),c&&v.setAttribute(Ze.strokeOpacity,c),h&&v.setAttribute(Ze.lineWidth,h))},r.prototype._setColor=function(t,n,i){var a=this.get("el");if(!i){a.setAttribute(Ze[n],"none");return}if(i=i.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(i)){var o=t.find("gradient",i);o||(o=t.addGradient(i)),a.setAttribute(Ze[n],"url(#"+o+")")}else if(/^[p,P]{1}[\s]*\(/.test(i)){var o=t.find("pattern",i);o||(o=t.addPattern(i)),a.setAttribute(Ze[n],"url(#"+o+")")}else a.setAttribute(Ze[n],i)},r.prototype.shadow=function(t,n){var i=this.attr(),a=n||i,o=a.shadowOffsetX,s=a.shadowOffsetY,l=a.shadowBlur,u=a.shadowColor;(o||s||l||u)&&ZS(this,t)},r.prototype.transform=function(t){var n=this.attr(),i=(t||n).matrix;i&&ao(this)},r.prototype.isInShape=function(t,n){return this.isPointInPath(t,n)},r.prototype.isPointInPath=function(t,n){var i=this.get("el"),a=this.get("canvas"),o=a.get("el").getBoundingClientRect(),s=t+o.left,l=n+o.top,u=document.elementFromPoint(s,l);return!!(u&&u.isEqualNode(i))},r.prototype.getHitLineWidth=function(){var t=this.attrs,n=t.lineWidth,i=t.lineAppendWidth;return this.isStroke()?n+i:0},r}(_.AbstractShape),tn=$S,jS=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="circle",t.canFill=!0,t.canStroke=!0,t}return r.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,d.pi)((0,d.pi)({},t),{x:0,y:0,r:0})},r.prototype.createPath=function(t,n){var i=this.attr(),a=this.get("el");(0,f.S6)(n||i,function(o,s){s==="x"||s==="y"?a.setAttribute("c"+s,o):Ze[s]&&a.setAttribute(Ze[s],o)})},r}(tn),KS=jS,JS=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="dom",t.canFill=!1,t.canStroke=!1,t}return r.prototype.createPath=function(t,n){var i=this.attr(),a=this.get("el");if((0,f.S6)(n||i,function(u,c){Ze[c]&&a.setAttribute(Ze[c],u)}),typeof i.html=="function"){var o=i.html.call(this,i);if(o instanceof Element||o instanceof HTMLDocument){for(var s=a.childNodes,l=s.length-1;l>=0;l--)a.removeChild(s[l]);a.appendChild(o)}else a.innerHTML=o}else a.innerHTML=i.html},r}(tn),QS=JS,tC=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="ellipse",t.canFill=!0,t.canStroke=!0,t}return r.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,d.pi)((0,d.pi)({},t),{x:0,y:0,rx:0,ry:0})},r.prototype.createPath=function(t,n){var i=this.attr(),a=this.get("el");(0,f.S6)(n||i,function(o,s){s==="x"||s==="y"?a.setAttribute("c"+s,o):Ze[s]&&a.setAttribute(Ze[s],o)})},r}(tn),eC=tC,rC=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="image",t.canFill=!1,t.canStroke=!1,t}return r.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,d.pi)((0,d.pi)({},t),{x:0,y:0,width:0,height:0})},r.prototype.createPath=function(t,n){var i=this,a=this.attr(),o=this.get("el");(0,f.S6)(n||a,function(s,l){l==="img"?i._setImage(a.img):Ze[l]&&o.setAttribute(Ze[l],s)})},r.prototype.setAttr=function(t,n){this.attrs[t]=n,t==="img"&&this._setImage(n)},r.prototype._setImage=function(t){var n=this.attr(),i=this.get("el");if((0,f.HD)(t))i.setAttribute("href",t);else if(t instanceof window.Image)n.width||(i.setAttribute("width",t.width),this.attr("width",t.width)),n.height||(i.setAttribute("height",t.height),this.attr("height",t.height)),i.setAttribute("href",t.src);else if(t instanceof HTMLElement&&(0,f.HD)(t.nodeName)&&t.nodeName.toUpperCase()==="CANVAS")i.setAttribute("href",t.toDataURL());else if(t instanceof ImageData){var a=document.createElement("canvas");a.setAttribute("width",""+t.width),a.setAttribute("height",""+t.height),a.getContext("2d").putImageData(t,0,0),n.width||(i.setAttribute("width",""+t.width),this.attr("width",t.width)),n.height||(i.setAttribute("height",""+t.height),this.attr("height",t.height)),i.setAttribute("href",a.toDataURL())}},r}(tn),nC=rC,iC=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="line",t.canFill=!1,t.canStroke=!0,t}return r.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,d.pi)((0,d.pi)({},t),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},r.prototype.createPath=function(t,n){var i=this.attr(),a=this.get("el");(0,f.S6)(n||i,function(o,s){if(s==="startArrow"||s==="endArrow")if(o){var l=(0,f.Kn)(o)?t.addArrow(i,Ze[s]):t.getDefaultArrow(i,Ze[s]);a.setAttribute(Ze[s],"url(#"+l+")")}else a.removeAttribute(Ze[s]);else Ze[s]&&a.setAttribute(Ze[s],o)})},r.prototype.getTotalLength=function(){var t=this.attr(),n=t.x1,i=t.y1,a=t.x2,o=t.y2;return kr.x1.length(n,i,a,o)},r.prototype.getPoint=function(t){var n=this.attr(),i=n.x1,a=n.y1,o=n.x2,s=n.y2;return kr.x1.pointAt(i,a,o,s,t)},r}(tn),aC=iC,Rs={circle:function(e,r,t){return[["M",e,r],["m",-t,0],["a",t,t,0,1,0,t*2,0],["a",t,t,0,1,0,-t*2,0]]},square:function(e,r,t){return[["M",e-t,r-t],["L",e+t,r-t],["L",e+t,r+t],["L",e-t,r+t],["Z"]]},diamond:function(e,r,t){return[["M",e-t,r],["L",e,r-t],["L",e+t,r],["L",e,r+t],["Z"]]},triangle:function(e,r,t){var n=t*Math.sin(1/3*Math.PI);return[["M",e-t,r+n],["L",e,r-n],["L",e+t,r+n],["z"]]},triangleDown:function(e,r,t){var n=t*Math.sin(1/3*Math.PI);return[["M",e-t,r-n],["L",e+t,r-n],["L",e,r+n],["Z"]]}},Np={get:function(e){return Rs[e]},register:function(e,r){Rs[e]=r},remove:function(e){delete Rs[e]},getAll:function(){return Rs}},oC=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="marker",t.canFill=!0,t.canStroke=!0,t}return r.prototype.createPath=function(t){var n=this.get("el");n.setAttribute("d",this._assembleMarker())},r.prototype._assembleMarker=function(){var t=this._getPath();return(0,f.kJ)(t)?t.map(function(n){return n.join(" ")}).join(""):t},r.prototype._getPath=function(){var t=this.attr(),n=t.x,i=t.y,a=t.r||t.radius,o=t.symbol||"circle",s;return(0,f.mf)(o)?s=o:s=Np.get(o),s?s(n,i,a):(console.warn(s+" symbol is not exist."),null)},r.symbolsFactory=Np,r}(tn),sC=oC,lC=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="path",t.canFill=!0,t.canStroke=!0,t}return r.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,d.pi)((0,d.pi)({},t),{startArrow:!1,endArrow:!1})},r.prototype.createPath=function(t,n){var i=this,a=this.attr(),o=this.get("el");(0,f.S6)(n||a,function(s,l){if(l==="path"&&(0,f.kJ)(s))o.setAttribute("d",i._formatPath(s));else if(l==="startArrow"||l==="endArrow")if(s){var u=(0,f.Kn)(s)?t.addArrow(a,Ze[l]):t.getDefaultArrow(a,Ze[l]);o.setAttribute(Ze[l],"url(#"+u+")")}else o.removeAttribute(Ze[l]);else Ze[l]&&o.setAttribute(Ze[l],s)})},r.prototype._formatPath=function(t){var n=t.map(function(i){return i.join(" ")}).join("");return~n.indexOf("NaN")?"":n},r.prototype.getTotalLength=function(){var t=this.get("el");return t?t.getTotalLength():null},r.prototype.getPoint=function(t){var n=this.get("el"),i=this.getTotalLength();if(i===0)return null;var a=n?n.getPointAtLength(t*i):null;return a?{x:a.x,y:a.y}:null},r}(tn),uC=lC,cC=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="polygon",t.canFill=!0,t.canStroke=!0,t}return r.prototype.createPath=function(t,n){var i=this.attr(),a=this.get("el");(0,f.S6)(n||i,function(o,s){s==="points"&&(0,f.kJ)(o)&&o.length>=2?a.setAttribute("points",o.map(function(l){return l[0]+","+l[1]}).join(" ")):Ze[s]&&a.setAttribute(Ze[s],o)})},r}(tn),fC=cC,hC=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="polyline",t.canFill=!0,t.canStroke=!0,t}return r.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,d.pi)((0,d.pi)({},t),{startArrow:!1,endArrow:!1})},r.prototype.onAttrChange=function(t,n,i){e.prototype.onAttrChange.call(this,t,n,i),["points"].indexOf(t)!==-1&&this._resetCache()},r.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},r.prototype.createPath=function(t,n){var i=this.attr(),a=this.get("el");(0,f.S6)(n||i,function(o,s){s==="points"&&(0,f.kJ)(o)&&o.length>=2?a.setAttribute("points",o.map(function(l){return l[0]+","+l[1]}).join(" ")):Ze[s]&&a.setAttribute(Ze[s],o)})},r.prototype.getTotalLength=function(){var t=this.attr().points,n=this.get("totalLength");return(0,f.UM)(n)?(this.set("totalLength",kr.aH.length(t)),this.get("totalLength")):n},r.prototype.getPoint=function(t){var n=this.attr().points,i=this.get("tCache");i||(this._setTcache(),i=this.get("tCache"));var a,o;return(0,f.S6)(i,function(s,l){t>=s[0]&&t<=s[1]&&(a=(t-s[0])/(s[1]-s[0]),o=l)}),kr.x1.pointAt(n[o][0],n[o][1],n[o+1][0],n[o+1][1],a)},r.prototype._setTcache=function(){var t=this.attr().points;if(!(!t||t.length===0)){var n=this.getTotalLength();if(!(n<=0)){var i=0,a=[],o,s;(0,f.S6)(t,function(l,u){t[u+1]&&(o=[],o[0]=i/n,s=kr.x1.length(l[0],l[1],t[u+1][0],t[u+1][1]),i+=s,o[1]=i/n,a.push(o))}),this.set("tCache",a)}}},r.prototype.getStartTangent=function(){var t=this.attr().points,n=[];return n.push([t[1][0],t[1][1]]),n.push([t[0][0],t[0][1]]),n},r.prototype.getEndTangent=function(){var t=this.attr().points,n=t.length-1,i=[];return i.push([t[n-1][0],t[n-1][1]]),i.push([t[n][0],t[n][1]]),i},r}(tn),vC=hC,pC=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,dC=/[^\s,]+/gi;function gC(e){var r=0,t=0,n=0,i=0;return(0,f.kJ)(e)?e.length===1?r=t=n=i=e[0]:e.length===2?(r=n=e[0],t=i=e[1]):e.length===3?(r=e[0],t=i=e[1],n=e[2]):(r=e[0],t=e[1],n=e[2],i=e[3]):r=t=n=i=e,{r1:r,r2:t,r3:n,r4:i}}function M5(e){if(e=e||[],isArray(e))return e;if(isString(e))return e=e.match(pC),each(e,function(r,t){if(r=r.match(dC),r[0].length>1){var n=r[0].charAt(0);r.splice(1,0,r[0].substr(1)),r[0]=n}each(r,function(i,a){isNaN(i)||(r[a]=+i)}),e[t]=r}),e}var yC=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="rect",t.canFill=!0,t.canStroke=!0,t}return r.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,d.pi)((0,d.pi)({},t),{x:0,y:0,width:0,height:0,radius:0})},r.prototype.createPath=function(t,n){var i=this,a=this.attr(),o=this.get("el"),s=!1,l=["x","y","width","height","radius"];(0,f.S6)(n||a,function(u,c){l.indexOf(c)!==-1&&!s?(o.setAttribute("d",i._assembleRect(a)),s=!0):l.indexOf(c)===-1&&Ze[c]&&o.setAttribute(Ze[c],u)})},r.prototype._assembleRect=function(t){var n=t.x,i=t.y,a=t.width,o=t.height,s=t.radius;if(!s)return"M "+n+","+i+" l "+a+",0 l 0,"+o+" l"+-a+" 0 z";var l=gC(s);(0,f.kJ)(s)?s.length===1?l.r1=l.r2=l.r3=l.r4=s[0]:s.length===2?(l.r1=l.r3=s[0],l.r2=l.r4=s[1]):s.length===3?(l.r1=s[0],l.r2=l.r4=s[1],l.r3=s[2]):(l.r1=s[0],l.r2=s[1],l.r3=s[2],l.r4=s[3]):l.r1=l.r2=l.r3=l.r4=s;var u=[["M "+(n+l.r1)+","+i],["l "+(a-l.r1-l.r2)+",0"],["a "+l.r2+","+l.r2+",0,0,1,"+l.r2+","+l.r2],["l 0,"+(o-l.r2-l.r3)],["a "+l.r3+","+l.r3+",0,0,1,"+-l.r3+","+l.r3],["l "+(l.r3+l.r4-a)+",0"],["a "+l.r4+","+l.r4+",0,0,1,"+-l.r4+","+-l.r4],["l 0,"+(l.r4+l.r1-o)],["a "+l.r1+","+l.r1+",0,0,1,"+l.r1+","+-l.r1],["z"]];return u.join(" ")},r}(tn),mC=yC,xC=et(43631),zp=.3,wC={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},MC={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",hanging:"hanging"},SC={left:"left",start:"left",center:"middle",right:"end",end:"end"},CC=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="text",t.canFill=!0,t.canStroke=!0,t}return r.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,d.pi)((0,d.pi)({},t),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},r.prototype.createPath=function(t,n){var i=this,a=this.attr(),o=this.get("el");this._setFont(),(0,f.S6)(n||a,function(s,l){l==="text"?i._setText(""+s):l==="matrix"&&s?ao(i):Ze[l]&&o.setAttribute(Ze[l],s)}),o.setAttribute("paint-order","stroke"),o.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")},r.prototype._setFont=function(){var t=this.get("el"),n=this.attr(),i=n.textBaseline,a=n.textAlign,o=(0,xC.qY)();o&&o.name==="firefox"?t.setAttribute("dominant-baseline",MC[i]||"alphabetic"):t.setAttribute("alignment-baseline",wC[i]||"baseline"),t.setAttribute("text-anchor",SC[a]||"left")},r.prototype._setText=function(t){var n=this.get("el"),i=this.attr(),a=i.x,o=i.textBaseline,s=o===void 0?"bottom":o;if(!t)n.innerHTML="";else if(~t.indexOf(`
  56. `)){var l=t.split(`
  57. `),u=l.length-1,c="";(0,f.S6)(l,function(h,v){v===0?s==="alphabetic"?c+='<tspan x="'+a+'" dy="'+-u+'em">'+h+"</tspan>":s==="top"?c+='<tspan x="'+a+'" dy="0.9em">'+h+"</tspan>":s==="middle"?c+='<tspan x="'+a+'" dy="'+-(u-1)/2+'em">'+h+"</tspan>":s==="bottom"?c+='<tspan x="'+a+'" dy="-'+(u+zp)+'em">'+h+"</tspan>":s==="hanging"&&(c+='<tspan x="'+a+'" dy="'+(-(u-1)-zp)+'em">'+h+"</tspan>"):c+='<tspan x="'+a+'" dy="1em">'+h+"</tspan>"}),n.innerHTML=c}else n.innerHTML=t},r}(tn),bC=CC,AC=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,TC=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,EC=/[\d.]+:(#[^\s]+|[^)]+\))/gi;function Vp(e){var r=e.match(EC);if(!r)return"";var t="";return r.sort(function(n,i){return n=n.split(":"),i=i.split(":"),Number(n[0])-Number(i[0])}),(0,f.S6)(r,function(n){n=n.split(":"),t+='<stop offset="'+n[0]+'" stop-color="'+n[1]+'"></stop>'}),t}function _C(e,r){var t=AC.exec(e),n=(0,f.wQ)((0,f.c$)(parseFloat(t[1])),Math.PI*2),i=t[2],a,o;n>=0&&n<.5*Math.PI?(a={x:0,y:0},o={x:1,y:1}):.5*Math.PI<=n&&n<Math.PI?(a={x:1,y:0},o={x:0,y:1}):Math.PI<=n&&n<1.5*Math.PI?(a={x:1,y:1},o={x:0,y:0}):(a={x:0,y:1},o={x:1,y:0});var s=Math.tan(n),l=s*s,u=(o.x-a.x+s*(o.y-a.y))/(l+1)+a.x,c=s*(o.x-a.x+s*(o.y-a.y))/(l+1)+a.y;r.setAttribute("x1",a.x),r.setAttribute("y1",a.y),r.setAttribute("x2",u),r.setAttribute("y2",c),r.innerHTML=Vp(i)}function FC(e,r){var t=TC.exec(e),n=parseFloat(t[1]),i=parseFloat(t[2]),a=parseFloat(t[3]),o=t[4];r.setAttribute("cx",n),r.setAttribute("cy",i),r.setAttribute("r",a),r.innerHTML=Vp(o)}var IC=function(){function e(r){this.cfg={};var t=null,n=(0,f.EL)("gradient_");return r.toLowerCase()[0]==="l"?(t=Qr("linearGradient"),_C(r,t)):(t=Qr("radialGradient"),FC(r,t)),t.setAttribute("id",n),this.el=t,this.id=n,this.cfg=r,this}return e.prototype.match=function(r,t){return this.cfg===t},e}(),LC=IC,PC={shadowColor:"color",shadowOpacity:"opacity",shadowBlur:"blur",shadowOffsetX:"dx",shadowOffsetY:"dy"},kC={x:"-40%",y:"-40%",width:"200%",height:"200%"},DC=function(){function e(r){this.type="filter",this.cfg={},this.type="filter";var t=Qr("filter");return(0,f.S6)(kC,function(n,i){t.setAttribute(i,n)}),this.el=t,this.id=(0,f.EL)("filter_"),this.el.id=this.id,this.cfg=r,this._parseShadow(r,t),this}return e.prototype.match=function(r,t){if(this.type!==r)return!1;var n=!0,i=this.cfg;return(0,f.S6)(Object.keys(i),function(a){if(i[a]!==t[a])return n=!1,!1}),n},e.prototype.update=function(r,t){var n=this.cfg;return n[PC[r]]=t,this._parseShadow(n,this.el),this},e.prototype._parseShadow=function(r,t){var n=`<feDropShadow
  58. dx="`+(r.dx||0)+`"
  59. dy="`+(r.dy||0)+`"
  60. stdDeviation="`+(r.blur?r.blur/10:0)+`"
  61. flood-color="`+(r.color?r.color:"#000")+`"
  62. flood-opacity="`+(r.opacity?r.opacity:1)+`"
  63. />`;t.innerHTML=n},e}(),OC=DC,BC=function(){function e(r,t){this.cfg={};var n=Qr("marker"),i=(0,f.EL)("marker_");n.setAttribute("id",i);var a=Qr("path");a.setAttribute("stroke",r.stroke||"none"),a.setAttribute("fill",r.fill||"none"),n.appendChild(a),n.setAttribute("overflow","visible"),n.setAttribute("orient","auto-start-reverse"),this.el=n,this.child=a,this.id=i;var o=r[t==="marker-start"?"startArrow":"endArrow"];return this.stroke=r.stroke||"#000",o===!0?this._setDefaultPath(t,a):(this.cfg=o,this._setMarker(r.lineWidth,a)),this}return e.prototype.match=function(){return!1},e.prototype._setDefaultPath=function(r,t){var n=this.el;t.setAttribute("d","M0,0 L"+10*Math.cos(Math.PI/6)+",5 L0,10"),n.setAttribute("refX",""+10*Math.cos(Math.PI/6)),n.setAttribute("refY",""+5)},e.prototype._setMarker=function(r,t){var n=this.el,i=this.cfg.path,a=this.cfg.d;(0,f.kJ)(i)&&(i=i.map(function(o){return o.join(" ")}).join("")),t.setAttribute("d",i),n.appendChild(t),a&&n.setAttribute("refX",""+a/r)},e.prototype.update=function(r){var t=this.child;t.attr?t.attr("fill",r):t.setAttribute("fill",r)},e}(),Up=BC,RC=function(){function e(r){this.type="clip",this.cfg={};var t=Qr("clipPath");this.el=t,this.id=(0,f.EL)("clip_"),t.id=this.id;var n=r.cfg.el;return t.appendChild(n),this.cfg=r,this}return e.prototype.match=function(){return!1},e.prototype.remove=function(){var r=this.el;r.parentNode.removeChild(r)},e}(),NC=RC,zC=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,VC=function(){function e(r){this.cfg={};var t=Qr("pattern");t.setAttribute("patternUnits","userSpaceOnUse");var n=Qr("image");t.appendChild(n);var i=(0,f.EL)("pattern_");t.id=i,this.el=t,this.id=i,this.cfg=r;var a=zC.exec(r),o=a[2];n.setAttribute("href",o);var s=new Image;o.match(/^data:/i)||(s.crossOrigin="Anonymous"),s.src=o;function l(){t.setAttribute("width",""+s.width),t.setAttribute("height",""+s.height)}return s.complete?l():(s.onload=l,s.src=s.src),this}return e.prototype.match=function(r,t){return this.cfg===t},e}(),UC=VC,HC=function(){function e(r){var t=Qr("defs"),n=(0,f.EL)("defs_");t.id=n,r.appendChild(t),this.children=[],this.defaultArrow={},this.el=t,this.canvas=r}return e.prototype.find=function(r,t){for(var n=this.children,i=null,a=0;a<n.length;a++)if(n[a].match(r,t)){i=n[a].id;break}return i},e.prototype.findById=function(r){for(var t=this.children,n=null,i=0;i<t.length;i++)if(t[i].id===r){n=t[i];break}return n},e.prototype.add=function(r){this.children.push(r),r.canvas=this.canvas,r.parent=this},e.prototype.getDefaultArrow=function(r,t){var n=r.stroke||r.strokeStyle;if(this.defaultArrow[n])return this.defaultArrow[n].id;var i=new Up(r,t);return this.defaultArrow[n]=i,this.el.appendChild(i.el),this.add(i),i.id},e.prototype.addGradient=function(r){var t=new LC(r);return this.el.appendChild(t.el),this.add(t),t.id},e.prototype.addArrow=function(r,t){var n=new Up(r,t);return this.el.appendChild(n.el),this.add(n),n.id},e.prototype.addShadow=function(r){var t=new OC(r);return this.el.appendChild(t.el),this.add(t),t.id},e.prototype.addPattern=function(r){var t=new UC(r);return this.el.appendChild(t.el),this.add(t),t.id},e.prototype.addClip=function(r){var t=new NC(r);return this.el.appendChild(t.el),this.add(t),t.id},e}(),GC=HC,YC=function(e){(0,d.ZT)(r,e);function r(t){return e.call(this,(0,d.pi)((0,d.pi)({},t),{autoDraw:!0,renderer:"svg"}))||this}return r.prototype.getShapeBase=function(){return Ot},r.prototype.getGroupBase=function(){return nc},r.prototype.getShape=function(t,n,i){var a=i.target||i.srcElement;if(!rc[a.tagName]){for(var o=a.parentNode;o&&!rc[o.tagName];)o=o.parentNode;a=o}return this.find(function(s){return s.get("el")===a})},r.prototype.createDom=function(){var t=Qr("svg"),n=new GC(t);return t.setAttribute("width",""+this.get("width")),t.setAttribute("height",""+this.get("height")),this.set("context",n),t},r.prototype.onCanvasChange=function(t){var n=this.get("context"),i=this.get("el");if(t==="sort"){var a=this.get("children");a&&a.length&&Op(this,function(s,l){return a.indexOf(s)-a.indexOf(l)?1:0})}else if(t==="clear"){if(i){i.innerHTML="";var o=n.el;o.innerHTML="",i.appendChild(o)}}else t==="matrix"?ao(this):t==="clip"?oo(this,n):t==="changeSize"&&(i.setAttribute("width",""+this.get("width")),i.setAttribute("height",""+this.get("height")))},r.prototype.draw=function(){var t=this.get("context"),n=this.getChildren();oo(this,t),n.length&&Bp(t,n)},r}(_.AbstractCanvas),XC=YC,WC="0.5.6",ZC=function(e){(0,d.ZT)(r,e);function r(t){var n=e.call(this,t)||this;n.type="path",n.shapeType="line";var i=t.connectNulls,a=i===void 0?!1:i,o=t.showSinglePoint,s=o===void 0?!0:o;return n.connectNulls=a,n.showSinglePoint=s,n}return r.prototype.updateElements=function(t,n){var i,a,o,s,l,u;n===void 0&&(n=!1);for(var c=new Map,h=new Map,v=[],p=0,g=0;g<t.length;g++){var y=t[g],x=this.getElementId(y);v.push(x),c.set(x,y),h.set(x,p),p++}this.elements=new Array(p);var m=Xv(this.lastElementsMap,v),w=m.added,M=m.updated,S=m.removed;try{for(var A=(0,d.XA)(w),D=A.next();!D.done;D=A.next()){var x=D.value,y=c.get(x),V=this.getShapeFactory(),K=this.getShapeInfo(y),g=h.get(x),Mt=new Vv({shapeFactory:V,container:this.container,offscreenGroup:this.getOffscreenGroup(),elementIndex:g});Mt.geometry=this,Mt.animate=this.animateOption,Mt.draw(K,n),this.elementsMap[x]=Mt,this.elements[g]=Mt}}catch(Ae){i={error:Ae}}finally{try{D&&!D.done&&(a=A.return)&&a.call(A)}finally{if(i)throw i.error}}try{for(var ot=(0,d.XA)(M),Lt=ot.next();!Lt.done;Lt=ot.next()){var x=Lt.value,y=c.get(x),Mt=this.lastElementsMap[x],g=h.get(x),K=this.getShapeInfo(y),Qt=Mt.getModel();(this.isCoordinateChanged||Yv(Qt,K))&&(Mt.animate=this.animateOption,Mt.update(K)),this.elementsMap[x]=Mt,this.elements[g]=Mt}}catch(Ae){o={error:Ae}}finally{try{Lt&&!Lt.done&&(s=ot.return)&&s.call(ot)}finally{if(o)throw o.error}}try{for(var ge=(0,d.XA)(S),we=ge.next();!we.done;we=ge.next()){var x=we.value,Mt=this.lastElementsMap[x];Mt.animate=this.animateOption,Mt.destroy()}}catch(Ae){l={error:Ae}}finally{try{we&&!we.done&&(u=ge.return)&&u.call(ge)}finally{if(l)throw l.error}}},r.prototype.getPointsAndData=function(t){for(var n=[],i=[],a=0,o=t.length;a<o;a++){var s=t[a];n.push({x:s.x,y:s.y}),i.push(s[re])}return{points:n,data:i}},r.prototype.getShapeInfo=function(t){var n=this.getDrawCfg(t[0]),i=this.getPointsAndData(t),a=i.points,o=i.data;return n.mappingData=t,n.data=o,n.isStack=!!this.getAdjust("stack"),n.points=a,n.connectNulls=this.connectNulls,n.showSinglePoint=this.showSinglePoint,n},r}(ai),ic=ZC;function qC(e,r,t,n,i){var a=[];if(e.length){for(var o=[],s=[],l=0,u=e.length;l<u;l++){var c=e[l];o.push(c[1]),s.push(c[0])}s=s.reverse(),(0,f.S6)([o,s],function(h,v){var p=[],g=n.parsePoints(h),y=g[0];o.length===1&&s.length===1?p=v===0?[["M",y.x-.5,y.y],["L",y.x+.5,y.y]]:[["L",y.x+.5,y.y],["L",y.x-.5,y.y]]:(r&&g.push({x:y.x,y:y.y}),t?p=xs(g,!1,i):p=Wa(g,!1),v>0&&(p[0][0]="L")),a=a.concat(p)}),a.push(["Z"])}return a}function Ns(e,r,t,n,i){for(var a=hr(e,r,!r,"lineWidth"),o=e.connectNulls,s=e.isInCircle,l=e.points,u=e.showSinglePoint,c=_s(l,o,u),h=[],v=0,p=c.length;v<p;v++){var g=c[v];h=h.concat(qC(g,s,t,n,i))}return a.path=h,a}function Hp(e){var r=e.start,t=e.end;return[[r.x,t.y],[t.x,r.y]]}var S5=ii("area",{defaultShapeType:"area",getDefaultPoints:function(e){var r=e.x,t=e.y0,n=(0,f.kJ)(e.y)?e.y:[t,e.y];return n.map(function(i){return{x:r,y:i}})}});$e("area","area",{draw:function(e,r){var t=Ns(e,!1,!1,this),n=r.addShape({type:"path",attrs:t,name:"area"});return n},getMarker:function(e){var r=e.color;return{symbol:function(t,n,i){return i===void 0&&(i=5.5),[["M",t-i,n-4],["L",t+i,n-4],["L",t+i,n+4],["L",t-i,n+4],["Z"]]},style:{r:5,fill:r,fillOpacity:1}}}});var C5=null,$C=function(e){(0,d.ZT)(r,e);function r(t){var n=e.call(this,t)||this;n.type="area",n.shapeType="area",n.generatePoints=!0,n.startOnZero=!0;var i=t.startOnZero,a=i===void 0?!0:i,o=t.sortable,s=o===void 0?!1:o,l=t.showSinglePoint,u=l===void 0?!1:l;return n.startOnZero=a,n.sortable=s,n.showSinglePoint=u,n}return r.prototype.getPointsAndData=function(t){for(var n=[],i=[],a=0,o=t.length;a<o;a++){var s=t[a];n.push(s.points),i.push(s[re])}return{points:n,data:i}},r.prototype.getYMinValue=function(){if(this.startOnZero)return e.prototype.getYMinValue.call(this);var t=this.getYScale();return t.min},r}(ic),jC=$C,b5=ii("edge",{defaultShapeType:"line",getDefaultPoints:function(e){return Vu(e)}});$e("edge","line",{draw:function(e,r){var t=hr(e,!0,!1,"lineWidth"),n=Wa(this.parsePoints(e.points),this.coordinate.isPolar);return r.addShape("path",{attrs:(0,d.pi)((0,d.pi)({},t),{path:n})})},getMarker:function(e){return{symbol:"circle",style:{r:4.5,fill:e.color}}}});var A5=null,KC=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="edge",t.shapeType="edge",t.generatePoints=!0,t}return r}(ai),JC=KC,QC=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="heatmap",t.paletteCache={},t}return r.prototype.updateElements=function(t,n){n===void 0&&(n=!1);for(var i=0;i<t.length;i++){var a=t[i],o=this.prepareRange(a),s=this.prepareSize(),l=(0,f.U2)(this.styleOption,["cfg","shadowBlur"]);(0,f.hj)(l)||(l=s/2),this.prepareGreyScaleBlurredCircle(s,l),this.drawWithRange(a,o,s,l)}},r.prototype.color=function(t,n){return this.createAttrOption("color",t,typeof n!="function"?n:""),this},r.prototype.clear=function(){e.prototype.clear.call(this),this.clearShadowCanvasCtx(),this.paletteCache={}},r.prototype.prepareRange=function(t){var n=this.getAttribute("color"),i=n.getFields()[0],a=Infinity,o=-Infinity;return t.forEach(function(s){var l=s[re][i];l>o&&(o=l),l<a&&(a=l)}),a===o&&(a=o-1),[a,o]},r.prototype.prepareSize=function(){var t=this.getDefaultValue("size");return(0,f.hj)(t)||(t=this.getDefaultSize()),t},r.prototype.prepareGreyScaleBlurredCircle=function(t,n){var i=this.getGrayScaleBlurredCanvas(),a=t+n,o=i.getContext("2d");i.width=i.height=a*2,o.clearRect(0,0,i.width,i.height),o.shadowOffsetX=o.shadowOffsetY=a*2,o.shadowBlur=n,o.shadowColor="black",o.beginPath(),o.arc(-a,-a,t,0,Math.PI*2,!0),o.closePath(),o.fill()},r.prototype.drawWithRange=function(t,n,i,a){var o,s,l=this.coordinate,u=l.start,c=l.end,h=this.coordinate.getWidth(),v=this.coordinate.getHeight(),p=this.getAttribute("color"),g=p.getFields()[0];this.clearShadowCanvasCtx();var y=this.getShadowCanvasCtx();n&&(t=t.filter(function(ot){return ot[re][g]<=n[1]&&ot[re][g]>=n[0]}));var x=this.scales[g];try{for(var m=(0,d.XA)(t),w=m.next();!w.done;w=m.next()){var M=w.value,S=this.getDrawCfg(M),A=S.x,D=S.y,V=x.scale(M[re][g]);this.drawGrayScaleBlurredCircle(A-u.x,D-c.y,i+a,V,y)}}catch(ot){o={error:ot}}finally{try{w&&!w.done&&(s=m.return)&&s.call(m)}finally{if(o)throw o.error}}var K=y.getImageData(0,0,h,v);this.clearShadowCanvasCtx(),this.colorize(K),y.putImageData(K,0,0);var Mt=this.getImageShape();Mt.attr("x",u.x),Mt.attr("y",c.y),Mt.attr("width",h),Mt.attr("height",v),Mt.attr("img",y.canvas),Mt.set("origin",this.getShapeInfo(t))},r.prototype.getDefaultSize=function(){var t=this.getAttribute("position"),n=this.coordinate;return Math.min(n.getWidth()/(t.scales[0].ticks.length*4),n.getHeight()/(t.scales[1].ticks.length*4))},r.prototype.clearShadowCanvasCtx=function(){var t=this.getShadowCanvasCtx();t.clearRect(0,0,t.canvas.width,t.canvas.height)},r.prototype.getShadowCanvasCtx=function(){var t=this.shadowCanvas;return t||(t=document.createElement("canvas"),this.shadowCanvas=t),t.width=this.coordinate.getWidth(),t.height=this.coordinate.getHeight(),t.getContext("2d")},r.prototype.getGrayScaleBlurredCanvas=function(){return this.grayScaleBlurredCanvas||(this.grayScaleBlurredCanvas=document.createElement("canvas")),this.grayScaleBlurredCanvas},r.prototype.drawGrayScaleBlurredCircle=function(t,n,i,a,o){var s=this.getGrayScaleBlurredCanvas();o.globalAlpha=a,o.drawImage(s,t-i,n-i)},r.prototype.colorize=function(t){for(var n=this.getAttribute("color"),i=t.data,a=this.paletteCache,o=3;o<i.length;o+=4){var s=i[o];if((0,f.hj)(s)){var l=a[s]?a[s]:Pn.rgb2arr(n.gradient(s/256));i[o-3]=l[0],i[o-2]=l[1],i[o-1]=l[2],i[o]=s}}},r.prototype.getImageShape=function(){var t=this.imageShape;if(t)return t;var n=this.container;return t=n.addShape({type:"image",attrs:{}}),this.imageShape=t,t},r.prototype.getShapeInfo=function(t){var n=this.getDrawCfg(t[0]),i=t.map(function(a){return a[re]});return(0,d.pi)((0,d.pi)({},n),{mappingData:t,data:i})},r}(ai),tb=QC;function ac(e){var r,t,n=e.x,i=e.y,a=e.y0,o=e.size,s,l;(0,f.kJ)(i)?(r=(0,d.CR)(i,2),s=r[0],l=r[1]):(s=a,l=i);var u,c;(0,f.kJ)(n)?(t=(0,d.CR)(n,2),u=t[0],c=t[1]):(u=n-o/2,c=n+o/2);var h=[{x:u,y:s},{x:u,y:l}];return h.push({x:c,y:l},{x:c,y:s}),h}function oc(e,r){r===void 0&&(r=!0);var t=[],n=e[0];t.push(["M",n.x,n.y]);for(var i=1,a=e.length;i<a;i++)t.push(["L",e[i].x,e[i].y]);return r&&(t.push(["L",n.x,n.y]),t.push(["z"])),t}function Gp(e,r){var t=0,n=0,i=0,a=0;return(0,f.kJ)(e)?e.length===1?t=n=i=a=e[0]:e.length===2?(t=i=e[0],n=a=e[1]):e.length===3?(t=e[0],n=a=e[1],i=e[2]):(t=e[0],n=e[1],i=e[2],a=e[3]):t=n=i=a=e,t+n>r&&(t=t?r/(1+n/t):0,n=r-t),i+a>r&&(i=i?r/(1+a/i):0,a=r-i),[t||0,n||0,i||0,a||0]}function Yp(e,r,t){var n=[];if(t.isRect){var i=t.isTransposed?{x:t.start.x,y:r[0].y}:{x:r[0].x,y:t.start.y},a=t.isTransposed?{x:t.end.x,y:r[2].y}:{x:r[3].x,y:t.end.y},o=(0,f.U2)(e,["background","style","radius"]);if(o){var s=t.isTransposed?Math.abs(r[0].y-r[2].y):r[2].x-r[1].x,l=t.isTransposed?t.getWidth():t.getHeight(),u=(0,d.CR)(Gp(o,Math.min(s,l)),4),c=u[0],h=u[1],v=u[2],p=u[3],g=t.isTransposed&&t.isReflect("y"),y=g?0:1,x=function(D){return g?-D:D};n.push(["M",i.x,a.y+x(c)]),c!==0&&n.push(["A",c,c,0,0,y,i.x+c,a.y]),n.push(["L",a.x-h,a.y]),h!==0&&n.push(["A",h,h,0,0,y,a.x,a.y+x(h)]),n.push(["L",a.x,i.y-x(v)]),v!==0&&n.push(["A",v,v,0,0,y,a.x-v,i.y]),n.push(["L",i.x+p,i.y]),p!==0&&n.push(["A",p,p,0,0,y,i.x,i.y-x(p)])}else n.push(["M",i.x,i.y]),n.push(["L",a.x,i.y]),n.push(["L",a.x,a.y]),n.push(["L",i.x,a.y]),n.push(["L",i.x,i.y]);n.push(["z"])}if(t.isPolar){var m=t.getCenter(),w=Ga(e,t),M=w.startAngle,S=w.endAngle;if(t.type!=="theta"&&!t.isTransposed)n=ti(m.x,m.y,t.getRadius(),M,S);else{var A=function(K){return Math.pow(K,2)},c=Math.sqrt(A(m.x-r[0].x)+A(m.y-r[0].y)),h=Math.sqrt(A(m.x-r[2].x)+A(m.y-r[2].y));n=ti(m.x,m.y,c,t.startAngle,t.endAngle,h)}}return n}function eb(e,r,t){var n=t.getWidth(),i=t.getHeight(),a=t.type==="rect",o=[],s=(e[2].x-e[1].x)/2,l=t.isTransposed?s*i/n:s*n/i;return r==="round"?(a?(o.push(["M",e[0].x,e[0].y+l]),o.push(["L",e[1].x,e[1].y-l]),o.push(["A",s,s,0,0,1,e[2].x,e[2].y-l]),o.push(["L",e[3].x,e[3].y+l]),o.push(["A",s,s,0,0,1,e[0].x,e[0].y+l])):(o.push(["M",e[0].x,e[0].y]),o.push(["L",e[1].x,e[1].y]),o.push(["A",s,s,0,0,1,e[2].x,e[2].y]),o.push(["L",e[3].x,e[3].y]),o.push(["A",s,s,0,0,1,e[0].x,e[0].y])),o.push(["z"])):o=oc(e),o}function Xp(e,r,t){var n=[];return(0,f.UM)(r)?t?n.push(["M",e[0].x,e[0].y],["L",e[1].x,e[1].y],["L",(e[2].x+e[3].x)/2,(e[2].y+e[3].y)/2],["Z"]):n.push(["M",e[0].x,e[0].y],["L",e[1].x,e[1].y],["L",e[2].x,e[2].y],["L",e[3].x,e[3].y],["Z"]):n.push(["M",e[0].x,e[0].y],["L",e[1].x,e[1].y],["L",r[1].x,r[1].y],["L",r[0].x,r[0].y],["Z"]),n}function so(e,r){return[r,e]}function rb(e,r,t){var n,i,a,o,s,l,u,c=(0,d.CR)((0,d.ev)([],(0,d.CR)(e),!1),4),h=c[0],v=c[1],p=c[2],g=c[3],y=(0,d.CR)(typeof t=="number"?Array(4).fill(t):t,4),x=y[0],m=y[1],w=y[2],M=y[3];r.isTransposed&&(n=(0,d.CR)(so(v,g),2),v=n[0],g=n[1]),r.isReflect("y")&&(i=(0,d.CR)(so(h,v),2),h=i[0],v=i[1],a=(0,d.CR)(so(p,g),2),p=a[0],g=a[1]),r.isReflect("x")&&(o=(0,d.CR)(so(h,g),2),h=o[0],g=o[1],s=(0,d.CR)(so(v,p),2),v=s[0],p=s[1]);var S=[],A=function(D){return Math.abs(D)};return l=(0,d.CR)(Gp([x,m,w,M],Math.min(A(g.x-h.x),A(v.y-h.y))).map(function(D){return A(D)}),4),x=l[0],m=l[1],w=l[2],M=l[3],r.isTransposed&&(u=(0,d.CR)([M,x,m,w],4),x=u[0],m=u[1],w=u[2],M=u[3]),h.y<v.y?(S.push(["M",g.x,g.y+w]),w!==0&&S.push(["A",w,w,0,0,0,g.x-w,g.y]),S.push(["L",h.x+M,h.y]),M!==0&&S.push(["A",M,M,0,0,0,h.x,h.y+M]),S.push(["L",v.x,v.y-x]),x!==0&&S.push(["A",x,x,0,0,0,v.x+x,v.y]),S.push(["L",p.x-m,p.y]),m!==0&&S.push(["A",m,m,0,0,0,p.x,p.y-m]),S.push(["L",g.x,g.y+w]),S.push(["z"])):g.x<h.x?(S.push(["M",p.x+m,p.y]),m!==0&&S.push(["A",m,m,0,0,0,p.x,p.y+m]),S.push(["L",g.x,g.y-w]),w!==0&&S.push(["A",w,w,0,0,0,g.x+w,g.y]),S.push(["L",h.x-M,h.y]),M!==0&&S.push(["A",M,M,0,0,0,h.x,h.y-M]),S.push(["L",v.x,v.y+x]),x!==0&&S.push(["A",x,x,0,0,0,v.x-x,v.y]),S.push(["L",p.x+m,p.y]),S.push(["z"])):(S.push(["M",v.x,v.y+x]),x!==0&&S.push(["A",x,x,0,0,1,v.x+x,v.y]),S.push(["L",p.x-m,p.y]),m!==0&&S.push(["A",m,m,0,0,1,p.x,p.y+m]),S.push(["L",g.x,g.y-w]),w!==0&&S.push(["A",w,w,0,0,1,g.x-w,g.y]),S.push(["L",h.x+M,h.y]),M!==0&&S.push(["A",M,M,0,0,1,h.x,h.y-M]),S.push(["L",v.x,v.y+x]),S.push(["z"])),S}var T5=ii("interval",{defaultShapeType:"rect",getDefaultPoints:function(e){return ac(e)}});$e("interval","rect",{draw:function(e,r){var t=hr(e,!1,!0),n=r,i=e==null?void 0:e.background;if(i){n=r.addGroup({name:"interval-group"});var a=ep(e),o=Yp(e,this.parsePoints(e.points),this.coordinate);n.addShape("path",{attrs:(0,d.pi)((0,d.pi)({},a),{path:o}),zIndex:-1,name:Du})}var s;t.radius&&this.coordinate.isRect?s=rb(this.parsePoints(e.points),this.coordinate,t.radius):s=this.parsePath(eb(e.points,t.lineCap,this.coordinate));var l=n.addShape("path",{attrs:(0,d.pi)((0,d.pi)({},t),{path:s}),name:"interval"});return i?n:l},getMarker:function(e){var r=e.color,t=e.isInPolar;return t?{symbol:"circle",style:{r:4.5,fill:r}}:{symbol:"square",style:{r:4,fill:r}}}});var E5=null;function nb(e,r){var t=e.length,n=e;(0,f.HD)(n[0])&&(n=e.map(function(s){return r.translate(s)}));for(var i=n[1]-n[0],a=2;a<t;a++){var o=n[a]-n[a-1];i>o&&(i=o)}return i}function ib(e,r){if(r){var t=(0,f.xH)(e),n=(0,f.I)(t,r);return n.length}return e.length}function sc(e){var r=e.theme,t=e.coordinate,n=e.getXScale(),i=n.values,a=e.beforeMappingData,o=i.length,s=Ya(e.coordinate),l=e.intervalPadding,u=e.dodgePadding,c=e.maxColumnWidth||r.maxColumnWidth,h=e.minColumnWidth||r.minColumnWidth,v=e.columnWidthRatio||r.columnWidthRatio,p=e.multiplePieWidthRatio||r.multiplePieWidthRatio,g=e.roseWidthRatio||r.roseWidthRatio;if(n.isLinear&&i.length>1){i.sort();var y=nb(i,n);o=(n.max-n.min)/y,i.length>o&&(o=i.length)}var x=n.range,m=1/o,w=1;if(t.isPolar?t.isTransposed&&o>1?w=p:w=g:(n.isLinear&&(m*=x[1]-x[0]),w=v),!(0,f.UM)(l)&&l>=0){var M=l/s;m=(1-(o-1)*M)/o}else m*=w;if(e.getAdjust("dodge")){var S=e.getAdjust("dodge"),A=S.dodgeBy,D=ib(a,A);if(!(0,f.UM)(u)&&u>=0){var V=u/s;m=(m-V*(D-1))/D}else!(0,f.UM)(l)&&l>=0&&(m*=w),m=m/D;m=m>=0?m:0}if(!(0,f.UM)(c)&&c>=0){var K=c/s;m>K&&(m=K)}if(!(0,f.UM)(h)&&h>=0){var Mt=h/s;m<Mt&&(m=Mt)}return m}var ab=function(e){(0,d.ZT)(r,e);function r(t){var n=e.call(this,t)||this;n.type="interval",n.shapeType="interval",n.generatePoints=!0;var i=t.background;return n.background=i,n}return r.prototype.createShapePointsCfg=function(t){var n=e.prototype.createShapePointsCfg.call(this,t),i,a=this.getAttribute("size");if(a){i=this.getAttributeValues(a,t)[0];var o=this.coordinate,s=Ya(o);i=i/s}else this.defaultSize||(this.defaultSize=sc(this)),i=this.defaultSize;return n.size=i,n},r.prototype.adjustScale=function(){e.prototype.adjustScale.call(this);var t=this.getYScale();if(this.coordinate.type==="theta")t.change({nice:!1,min:0,max:Aw(t)});else{var n=this.scaleDefs,i=t.field,a=t.min,o=t.max,s=t.type;s!=="time"&&(a>0&&!(0,f.U2)(n,[i,"min"])&&t.change({min:0}),o<=0&&!(0,f.U2)(n,[i,"max"])&&t.change({max:0}))}},r.prototype.getDrawCfg=function(t){var n=e.prototype.getDrawCfg.call(this,t);return n.background=this.background,n},r}(ai),ob=ab,sb=function(e){(0,d.ZT)(r,e);function r(t){var n=e.call(this,t)||this;n.type="line";var i=t.sortable,a=i===void 0?!1:i;return n.sortable=a,n}return r}(ic),lb=sb,Wp=["circle","square","bowtie","diamond","hexagon","triangle","triangle-down"],ub=["cross","tick","plus","hyphen","line"];function lc(e,r,t,n,i){var a,o,s=hr(r,i,!i,"r"),l=e.parsePoints(r.points),u=l[0];if(r.isStack)u=l[1];else if(l.length>1){var c=t.addGroup();try{for(var h=(0,d.XA)(l),v=h.next();!v.done;v=h.next()){var p=v.value;c.addShape({type:"marker",attrs:(0,d.pi)((0,d.pi)((0,d.pi)({},s),{symbol:Ii[n]||n}),p)})}}catch(g){a={error:g}}finally{try{v&&!v.done&&(o=h.return)&&o.call(h)}finally{if(a)throw a.error}}return c}return t.addShape({type:"marker",attrs:(0,d.pi)((0,d.pi)((0,d.pi)({},s),{symbol:Ii[n]||n}),u)})}var _5=ii("point",{defaultShapeType:"hollow-circle",getDefaultPoints:function(e){return Vu(e)}});(0,f.S6)(Wp,function(e){$e("point","hollow-".concat(e),{draw:function(r,t){return lc(this,r,t,e,!0)},getMarker:function(r){var t=r.color;return{symbol:Ii[e]||e,style:{r:4.5,stroke:t,fill:null}}}})});var F5=null,cb=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="point",t.shapeType="point",t.generatePoints=!0,t}return r.prototype.getDrawCfg=function(t){var n=e.prototype.getDrawCfg.call(this,t);return(0,d.pi)((0,d.pi)({},n),{isStack:!!this.getAdjust("stack")})},r}(ai),fb=cb;function hb(e){for(var r=e[0],t=1,n=[["M",r.x,r.y]];t<e.length;){var i=e[t];(i.x!==e[t-1].x||i.y!==e[t-1].y)&&(n.push(["L",i.x,i.y]),i.x===r.x&&i.y===r.y&&t<e.length-1&&(r=e[t+1],n.push(["Z"]),n.push(["M",r.x,r.y]),t++)),t++}return(0,f.Xy)((0,f.Z$)(n),r)||n.push(["L",r.x,r.y]),n.push(["Z"]),n}var I5=ii("polygon",{defaultShapeType:"polygon",getDefaultPoints:function(e){var r=[];return(0,f.S6)(e.x,function(t,n){var i=e.y[n];r.push({x:t,y:i})}),r}});$e("polygon","polygon",{draw:function(e,r){if(!(0,f.xb)(e.points)){var t=hr(e,!0,!0),n=this.parsePath(hb(e.points));return r.addShape("path",{attrs:(0,d.pi)((0,d.pi)({},t),{path:n}),name:"polygon"})}},getMarker:function(e){var r=e.color;return{symbol:"square",style:{r:4,fill:r}}}});var L5=null,vb=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="polygon",t.shapeType="polygon",t.generatePoints=!0,t}return r.prototype.createShapePointsCfg=function(t){var n=e.prototype.createShapePointsCfg.call(this,t),i=n.x,a=n.y,o;if(!((0,f.kJ)(i)&&(0,f.kJ)(a))){var s=this.getXScale(),l=this.getYScale(),u=s.values.length,c=l.values.length,h=.5*1/u,v=.5*1/c;s.isCategory&&l.isCategory?(i=[i-h,i-h,i+h,i+h],a=[a-v,a+v,a+v,a-v]):(0,f.kJ)(i)?(o=i,i=[o[0],o[0],o[1],o[1]],a=[a-v/2,a+v/2,a+v/2,a-v/2]):(0,f.kJ)(a)&&(o=a,a=[o[0],o[1],o[1],o[0]],i=[i-h/2,i-h/2,i+h/2,i+h/2]),n.x=i,n.y=a}return n},r}(ai),pb=vb,P5=ii("schema",{defaultShapeType:""}),k5=null,db=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="schema",t.shapeType="schema",t.generatePoints=!0,t}return r.prototype.createShapePointsCfg=function(t){var n=e.prototype.createShapePointsCfg.call(this,t),i,a=this.getAttribute("size");if(a){i=this.getAttributeValues(a,t)[0];var o=this.coordinate,s=Ya(o);i=i/s}else this.defaultSize||(this.defaultSize=sc(this)),i=this.defaultSize;return n.size=i,n},r}(ai),gb=db;function yb(e){if(!(0,f.kJ)(e))return[];var r=(0,f.Fp)(e);return(0,f.UI)(e,function(t){return t/r})}var D5=ii("violin",{defaultShapeType:"violin",getDefaultPoints:function(e){var r=e.size/2,t=[],n=yb(e._size);return(0,f.S6)(e.y,function(i,a){var o=n[a]*r,s=a===0,l=a===e.y.length-1;t.push({isMin:s,isMax:l,x:e.x-o,y:i}),t.unshift({isMin:s,isMax:l,x:e.x+o,y:i})}),t}});$e("violin","violin",{draw:function(e,r){var t=hr(e,!0,!0),n=this.parsePath(Qv(e.points));return r.addShape("path",{attrs:(0,d.pi)((0,d.pi)({},t),{path:n}),name:"violin"})},getMarker:function(e){var r=e.color;return{symbol:"circle",style:{r:4,fill:r}}}});var O5=null,mb=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="violin",t.shapeType="violin",t.generatePoints=!0,t}return r.prototype.createShapePointsCfg=function(t){var n=e.prototype.createShapePointsCfg.call(this,t),i,a=this.getAttribute("size");if(a){i=this.getAttributeValues(a,t)[0];var o=this.coordinate,s=Ya(o);i=i/s}else this.defaultSize||(this.defaultSize=sc(this)),i=this.defaultSize;return n.size=i,n._size=(0,f.U2)(t[re],[this._sizeField]),n},r.prototype.initAttributes=function(){var t=this.attributeOption,n=t.size?t.size.fields[0]:this._sizeField?this._sizeField:"size";this._sizeField=n,delete t.size,e.prototype.initAttributes.call(this)},r}(ai),xb=mb;$e("area","line",{draw:function(e,r){var t=Ns(e,!0,!1,this),n=r.addShape({type:"path",attrs:t,name:"area"});return n},getMarker:function(e){var r=e.color;return{symbol:function(t,n,i){return i===void 0&&(i=5.5),[["M",t-i,n-4],["L",t+i,n-4],["L",t+i,n+4],["L",t-i,n+4],["Z"]]},style:{r:5,stroke:r,fill:null}}}}),$e("area","smooth",{draw:function(e,r){var t=this.coordinate,n=Ns(e,!1,!0,this,Hp(t)),i=r.addShape({type:"path",attrs:n,name:"area"});return i},getMarker:function(e){var r=e.color;return{symbol:function(t,n,i){return i===void 0&&(i=5.5),[["M",t-i,n-4],["L",t+i,n-4],["L",t+i,n+4],["L",t-i,n+4],["Z"]]},style:{r:5,fill:r,fillOpacity:1}}}}),$e("area","smooth-line",{draw:function(e,r){var t=this.coordinate,n=Ns(e,!0,!0,this,Hp(t)),i=r.addShape({type:"path",attrs:n,name:"area"});return i},getMarker:function(e){var r=e.color;return{symbol:function(t,n,i){return i===void 0&&(i=5.5),[["M",t-i,n-4],["L",t+i,n-4],["L",t+i,n+4],["L",t-i,n+4],["Z"]]},style:{r:5,stroke:r,fill:null}}}});function uc(e,r){return["C",e.x*1/2+r.x*1/2,e.y,e.x*1/2+r.x*1/2,r.y,r.x,r.y]}function cc(e,r){var t=[];t.push({x:r.x,y:r.y}),t.push(e);var n=["Q"];return(0,f.S6)(t,function(i){n.push(i.x,i.y)}),n}function wb(e,r,t){var n=cc(r,t),i=[["M",e.x,e.y]];return i.push(n),i}function Mb(e,r){var t=cc(e[1],r),n=cc(e[3],r),i=[["M",e[0].x,e[0].y]];return i.push(n),i.push(["L",e[3].x,e[3].y]),i.push(["L",e[2].x,e[2].y]),i.push(t),i.push(["L",e[1].x,e[1].y]),i.push(["L",e[0].x,e[0].y]),i.push(["Z"]),i}$e("edge","arc",{draw:function(e,r){var t=hr(e,!0,!1,"lineWidth"),n=e.points,i=n.length>2?"weight":"normal",a;if(e.isInCircle){var o={x:0,y:1};return i==="normal"?a=wb(n[0],n[1],o):(t.fill=t.stroke,a=Mb(n,o)),a=this.parsePath(a),r.addShape("path",{attrs:(0,d.pi)((0,d.pi)({},t),{path:a})})}else{if(i==="normal")return n=this.parsePoints(n),a=Rh((n[1].x+n[0].x)/2,n[0].y,Math.abs(n[1].x-n[0].x)/2,Math.PI,Math.PI*2),r.addShape("path",{attrs:(0,d.pi)((0,d.pi)({},t),{path:a})});var s=uc(n[1],n[3]),l=uc(n[2],n[0]);return a=[["M",n[0].x,n[0].y],["L",n[1].x,n[1].y],s,["L",n[3].x,n[3].y],["L",n[2].x,n[2].y],l,["Z"]],a=this.parsePath(a),t.fill=t.stroke,r.addShape("path",{attrs:(0,d.pi)((0,d.pi)({},t),{path:a})})}},getMarker:function(e){return{symbol:"circle",style:{r:4.5,fill:e.color}}}});function Sb(e,r){var t=uc(e,r),n=[["M",e.x,e.y]];return n.push(t),n}$e("edge","smooth",{draw:function(e,r){var t=hr(e,!0,!1,"lineWidth"),n=e.points,i=this.parsePath(Sb(n[0],n[1]));return r.addShape("path",{attrs:(0,d.pi)((0,d.pi)({},t),{path:i})})},getMarker:function(e){return{symbol:"circle",style:{r:4.5,fill:e.color}}}});var zs=1/3;function Cb(e,r){var t=[];t.push({x:e.x,y:e.y*(1-zs)+r.y*zs}),t.push({x:r.x,y:e.y*(1-zs)+r.y*zs}),t.push(r);var n=[["M",e.x,e.y]];return(0,f.S6)(t,function(i){n.push(["L",i.x,i.y])}),n}$e("edge","vhv",{draw:function(e,r){var t=hr(e,!0,!1,"lineWidth"),n=e.points,i=this.parsePath(Cb(n[0],n[1]));return r.addShape("path",{attrs:(0,d.pi)((0,d.pi)({},t),{path:i})})},getMarker:function(e){return{symbol:"circle",style:{r:4.5,fill:e.color}}}}),$e("interval","funnel",{getPoints:function(e){return e.size=e.size*2,ac(e)},draw:function(e,r){var t=hr(e,!1,!0),n=this.parsePath(Xp(e.points,e.nextPoints,!1)),i=r.addShape("path",{attrs:(0,d.pi)((0,d.pi)({},t),{path:n}),name:"interval"});return i},getMarker:function(e){var r=e.color;return{symbol:"square",style:{r:4,fill:r}}}}),$e("interval","hollow-rect",{draw:function(e,r){var t=hr(e,!0,!1),n=r,i=e==null?void 0:e.background;if(i){n=r.addGroup();var a=ep(e),o=Yp(e,this.parsePoints(e.points),this.coordinate);n.addShape("path",{attrs:(0,d.pi)((0,d.pi)({},a),{path:o}),zIndex:-1,name:Du})}var s=this.parsePath(oc(e.points)),l=n.addShape("path",{attrs:(0,d.pi)((0,d.pi)({},t),{path:s}),name:"interval"});return i?n:l},getMarker:function(e){var r=e.color,t=e.isInPolar;return t?{symbol:"circle",style:{r:4.5,stroke:r,fill:null}}:{symbol:"square",style:{r:4,stroke:r,fill:null}}}});function bb(e){var r=e.x,t=e.y,n=e.y0;return(0,f.kJ)(t)?t.map(function(i,a){return{x:(0,f.kJ)(r)?r[a]:r,y:i}}):[{x:r,y:n},{x:r,y:t}]}$e("interval","line",{getPoints:function(e){return bb(e)},draw:function(e,r){var t=hr(e,!0,!1,"lineWidth"),n=Nr((0,d.pi)({},t),["fill"]),i=this.parsePath(oc(e.points,!1)),a=r.addShape("path",{attrs:(0,d.pi)((0,d.pi)({},n),{path:i}),name:"interval"});return a},getMarker:function(e){var r=e.color;return{symbol:function(t,n,i){return[["M",t,n-i],["L",t,n+i]]},style:{r:5,stroke:r}}}}),$e("interval","pyramid",{getPoints:function(e){return e.size=e.size*2,ac(e)},draw:function(e,r){var t=hr(e,!1,!0),n=this.parsePath(Xp(e.points,e.nextPoints,!0)),i=r.addShape("path",{attrs:(0,d.pi)((0,d.pi)({},t),{path:n}),name:"interval"});return i},getMarker:function(e){var r=e.color;return{symbol:"square",style:{r:4,fill:r}}}});function Ab(e){var r,t=e.x,n=e.y,i=e.y0,a=e.size,o,s;(0,f.kJ)(n)?(r=(0,d.CR)(n,2),o=r[0],s=r[1]):(o=i,s=n);var l=t+a/2,u=t-a/2;return[{x:t,y:o},{x:t,y:s},{x:u,y:o},{x:l,y:o},{x:u,y:s},{x:l,y:s}]}function Tb(e){return[["M",e[0].x,e[0].y],["L",e[1].x,e[1].y],["M",e[2].x,e[2].y],["L",e[3].x,e[3].y],["M",e[4].x,e[4].y],["L",e[5].x,e[5].y]]}$e("interval","tick",{getPoints:function(e){return Ab(e)},draw:function(e,r){var t=hr(e,!0,!1),n=this.parsePath(Tb(e.points)),i=r.addShape("path",{attrs:(0,d.pi)((0,d.pi)({},t),{path:n}),name:"interval"});return i},getMarker:function(e){var r=e.color;return{symbol:function(t,n,i){return[["M",t-i/2,n-i],["L",t+i/2,n-i],["M",t,n-i],["L",t,n+i],["M",t-i/2,n+i],["L",t+i/2,n+i]]},style:{r:5,stroke:r}}}});var Eb=function(e,r,t){var n=e.x,i=e.y,a=r.x,o=r.y,s;switch(t){case"hv":s=[{x:a,y:i}];break;case"vh":s=[{x:n,y:o}];break;case"hvh":var l=(a+n)/2;s=[{x:l,y:i},{x:l,y:o}];break;case"vhv":var u=(i+o)/2;s=[{x:n,y:u},{x:a,y:u}];break;default:break}return s};function _b(e,r){var t=[];return(0,f.S6)(e,function(n,i){var a=e[i+1];if(t.push(n),a){var o=Eb(n,a,r);t=t.concat(o)}}),t}function Fb(e){return e.map(function(r,t){return t===0?["M",r.x,r.y]:["L",r.x,r.y]})}function Ib(e,r){var t=_s(e.points,e.connectNulls,e.showSinglePoint),n=[];return(0,f.S6)(t,function(i){var a=_b(i,r);n=n.concat(Fb(a))}),(0,d.pi)((0,d.pi)({},hr(e,!0,!1,"lineWidth")),{path:n})}(0,f.S6)(["hv","vh","hvh","vhv"],function(e){$e("line",e,{draw:function(r,t){var n=Ib(r,e),i=t.addShape({type:"path",attrs:n,name:"line"});return i},getMarker:function(r){return rp(r,e)}})}),(0,f.S6)(ub,function(e){$e("point",e,{draw:function(r,t){return lc(this,r,t,e,!0)},getMarker:function(r){var t=r.color;return{symbol:Ii[e],style:{r:4.5,stroke:t,fill:null}}}})}),$e("point","image",{draw:function(e,r){var t,n,i=hr(e,!1,!1,"r").r,a=this.parsePoints(e.points),o=a[0];if(e.isStack)o=a[1];else if(a.length>1){var s=r.addGroup();try{for(var l=(0,d.XA)(a),u=l.next();!u.done;u=l.next()){var c=u.value;s.addShape("image",{attrs:{x:c.x-i/2,y:c.y-i,width:i,height:i,img:e.shape[1]}})}}catch(h){t={error:h}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}return s}return r.addShape("image",{attrs:{x:o.x-i/2,y:o.y-i,width:i,height:i,img:e.shape[1]}})},getMarker:function(e){var r=e.color;return{symbol:"circle",style:{r:4.5,fill:r}}}}),(0,f.S6)(Wp,function(e){$e("point",e,{draw:function(r,t){return lc(this,r,t,e,!1)},getMarker:function(r){var t=r.color;return{symbol:Ii[e]||e,style:{r:4.5,fill:t}}}})});function Zp(e){var r=(0,f.kJ)(e)?e:[e],t=r[0],n=r[r.length-1],i=r.length>1?r[1]:t,a=r.length>3?r[3]:n,o=r.length>2?r[2]:i;return{min:t,max:n,min1:i,max1:a,median:o}}function qp(e,r,t){var n=t/2,i;if((0,f.kJ)(r)){var a=Zp(r),o=a.min,s=a.max,l=a.median,u=a.min1,c=a.max1,h=e-n,v=e+n;i=[[h,s],[v,s],[e,s],[e,c],[h,u],[h,c],[v,c],[v,u],[e,u],[e,o],[h,o],[v,o],[h,l],[v,l]]}else{r=(0,f.UM)(r)?.5:r;var p=Zp(e),o=p.min,s=p.max,l=p.median,u=p.min1,c=p.max1,g=r-n,y=r+n;i=[[o,g],[o,y],[o,r],[u,r],[u,g],[u,y],[c,y],[c,g],[c,r],[s,r],[s,g],[s,y],[l,g],[l,y]]}return i.map(function(x){return{x:x[0],y:x[1]}})}function Lb(e){return[["M",e[0].x,e[0].y],["L",e[1].x,e[1].y],["M",e[2].x,e[2].y],["L",e[3].x,e[3].y],["M",e[4].x,e[4].y],["L",e[5].x,e[5].y],["L",e[6].x,e[6].y],["L",e[7].x,e[7].y],["L",e[4].x,e[4].y],["Z"],["M",e[8].x,e[8].y],["L",e[9].x,e[9].y],["M",e[10].x,e[10].y],["L",e[11].x,e[11].y],["M",e[12].x,e[12].y],["L",e[13].x,e[13].y]]}$e("schema","box",{getPoints:function(e){var r=e.x,t=e.y,n=e.size;return qp(r,t,n)},draw:function(e,r){var t=hr(e,!0,!1),n=this.parsePath(Lb(e.points)),i=r.addShape("path",{attrs:(0,d.pi)((0,d.pi)({},t),{path:n,name:"schema"})});return i},getMarker:function(e){var r=e.color;return{symbol:function(t,n,i){var a=[n-6,n-3,n,n+3,n+6],o=qp(t,a,i);return[["M",o[0].x+1,o[0].y],["L",o[1].x-1,o[1].y],["M",o[2].x,o[2].y],["L",o[3].x,o[3].y],["M",o[4].x,o[4].y],["L",o[5].x,o[5].y],["L",o[6].x,o[6].y],["L",o[7].x,o[7].y],["L",o[4].x,o[4].y],["Z"],["M",o[8].x,o[8].y],["L",o[9].x,o[9].y],["M",o[10].x+1,o[10].y],["L",o[11].x-1,o[11].y],["M",o[12].x,o[12].y],["L",o[13].x,o[13].y]]},style:{r:6,lineWidth:1,stroke:r}}}});function Pb(e){var r=(0,f.kJ)(e)?e:[e],t=r.sort(function(n,i){return i-n});return gw(t,4,t[t.length-1])}function $p(e,r,t){var n=Pb(r);return[{x:e,y:n[0]},{x:e,y:n[1]},{x:e-t/2,y:n[2]},{x:e-t/2,y:n[1]},{x:e+t/2,y:n[1]},{x:e+t/2,y:n[2]},{x:e,y:n[2]},{x:e,y:n[3]}]}function kb(e){return[["M",e[0].x,e[0].y],["L",e[1].x,e[1].y],["M",e[2].x,e[2].y],["L",e[3].x,e[3].y],["L",e[4].x,e[4].y],["L",e[5].x,e[5].y],["Z"],["M",e[6].x,e[6].y],["L",e[7].x,e[7].y]]}$e("schema","candle",{getPoints:function(e){var r=e.x,t=e.y,n=e.size;return $p(r,t,n)},draw:function(e,r){var t=hr(e,!0,!0),n=this.parsePath(kb(e.points)),i=r.addShape("path",{attrs:(0,d.pi)((0,d.pi)({},t),{path:n,name:"schema"})});return i},getMarker:function(e){var r=e.color;return{symbol:function(t,n,i){var a=[n+7.5,n+3,n-3,n-7.5],o=$p(t,a,i);return[["M",o[0].x,o[0].y],["L",o[1].x,o[1].y],["M",o[2].x,o[2].y],["L",o[3].x,o[3].y],["L",o[4].x,o[4].y],["L",o[5].x,o[5].y],["Z"],["M",o[6].x,o[6].y],["L",o[7].x,o[7].y]]},style:{lineWidth:1,stroke:r,fill:r,r:6}}}});function Db(e,r){var t=Math.abs(e[0].x-e[2].x),n=Math.abs(e[0].y-e[2].y),i=Math.min(t,n);r&&(i=(0,f.uZ)(r,0,Math.min(t,n))),i=i/2;var a=(e[0].x+e[2].x)/2,o=(e[0].y+e[2].y)/2;return{x:a-i,y:o-i,width:i*2,height:i*2}}$e("polygon","square",{draw:function(e,r){if(!(0,f.xb)(e.points)){var t=hr(e,!0,!0),n=this.parsePoints(e.points);return r.addShape("rect",{attrs:(0,d.pi)((0,d.pi)({},t),Db(n,e.size)),name:"polygon"})}},getMarker:function(e){var r=e.color;return{symbol:"square",style:{r:4,fill:r}}}}),$e("violin","smooth",{draw:function(e,r){var t=hr(e,!0,!0),n=this.parsePath(tp(e.points));return r.addShape("path",{attrs:(0,d.pi)((0,d.pi)({},t),{path:n})})},getMarker:function(e){var r=e.color;return{symbol:"circle",style:{stroke:null,r:4,fill:r}}}}),$e("violin","hollow",{draw:function(e,r){var t=hr(e,!0,!1),n=this.parsePath(Qv(e.points));return r.addShape("path",{attrs:(0,d.pi)((0,d.pi)({},t),{path:n})})},getMarker:function(e){var r=e.color;return{symbol:"circle",style:{r:4,fill:null,stroke:r}}}}),$e("violin","hollow-smooth",{draw:function(e,r){var t=hr(e,!0,!1),n=this.parsePath(tp(e.points));return r.addShape("path",{attrs:(0,d.pi)((0,d.pi)({},t),{path:n})})},getMarker:function(e){var r=e.color;return{symbol:"circle",style:{r:4,fill:null,stroke:r}}}});var Ob=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getLabelValueDir=function(t){var n="y",i=t.points;return i[0][n]<=i[2][n]?1:-1},r.prototype.getLabelOffsetPoint=function(t,n,i,a){var o,s=e.prototype.getLabelOffsetPoint.call(this,t,n,i),l=this.getCoordinate(),u=l.isTransposed,c=u?"x":"y",h=this.getLabelValueDir(t.mappingData);return s=(0,d.pi)((0,d.pi)({},s),(o={},o[c]=s[c]*h,o)),l.isReflect("x")&&(s=(0,d.pi)((0,d.pi)({},s),{x:s.x*-1})),l.isReflect("y")&&(s=(0,d.pi)((0,d.pi)({},s),{y:s.y*-1})),s},r.prototype.getThemedLabelCfg=function(t){var n=this.geometry,i=this.getDefaultLabelCfg(),a=n.theme;return(0,f.b$)({},i,a.labels,t.position==="middle"?{offset:0}:{},t)},r.prototype.setLabelPosition=function(t,n,i,a){var o=this.getCoordinate(),s=o.isTransposed,l=n.points,u=o.convert(l[0]),c=o.convert(l[2]),h=this.getLabelValueDir(n),v,p,g,y,x=(0,f.kJ)(n.shape)?n.shape[0]:n.shape;if(x==="funnel"||x==="pyramid"){var m=(0,f.U2)(n,"nextPoints"),w=(0,f.U2)(n,"points");if(m){var M=o.convert(w[0]),S=o.convert(w[1]),A=o.convert(m[0]),D=o.convert(m[1]);s?(v=Math.min(A.y,M.y),g=Math.max(A.y,M.y),p=(S.x+D.x)/2,y=(M.x+A.x)/2):(v=Math.min((S.y+D.y)/2,(M.y+A.y)/2),g=Math.max((S.y+D.y)/2,(M.y+A.y)/2),p=D.x,y=M.x)}else v=Math.min(c.y,u.y),g=Math.max(c.y,u.y),p=c.x,y=u.x}else v=Math.min(c.y,u.y),g=Math.max(c.y,u.y),p=c.x,y=u.x;switch(a){case"right":t.x=p,t.y=(v+g)/2,t.textAlign=(0,f.U2)(t,"textAlign",h>0?"left":"right");break;case"left":t.x=y,t.y=(v+g)/2,t.textAlign=(0,f.U2)(t,"textAlign",h>0?"left":"right");break;case"bottom":s&&(t.x=(p+y)/2),t.y=g,t.textAlign=(0,f.U2)(t,"textAlign","center"),t.textBaseline=(0,f.U2)(t,"textBaseline",h>0?"bottom":"top");break;case"middle":s&&(t.x=(p+y)/2),t.y=(v+g)/2,t.textAlign=(0,f.U2)(t,"textAlign","center"),t.textBaseline=(0,f.U2)(t,"textBaseline","middle");break;case"top":s&&(t.x=(p+y)/2),t.y=v,t.textAlign=(0,f.U2)(t,"textAlign","center"),t.textBaseline=(0,f.U2)(t,"textBaseline",h>0?"bottom":"top");break;default:break}},r}(Es),Bb=Ob,Vs=Math.PI/2,Rb=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getLabelOffset=function(t){var n=this.getCoordinate(),i=0;if((0,f.hj)(t))i=t;else if((0,f.HD)(t)&&t.indexOf("%")!==-1){var a=n.getRadius();n.innerRadius>0&&(a=a*(1-n.innerRadius)),i=parseFloat(t)*.01*a}return i},r.prototype.getLabelItems=function(t){var n=e.prototype.getLabelItems.call(this,t),i=this.geometry.getYScale();return(0,f.UI)(n,function(a){if(a&&i){var o=i.scale((0,f.U2)(a.data,i.field));return(0,d.pi)((0,d.pi)({},a),{percent:o})}return a})},r.prototype.getLabelAlign=function(t){var n=this.getCoordinate(),i;if(t.labelEmit)i=t.angle<=Math.PI/2&&t.angle>=-Math.PI/2?"left":"right";else if(!n.isTransposed)i="center";else{var a=n.getCenter(),o=t.offset;Math.abs(t.x-a.x)<1?i="center":t.angle>Math.PI||t.angle<=0?i=o>0?"left":"right":i=o>0?"right":"left"}return i},r.prototype.getLabelPoint=function(t,n,i){var a=1,o,s=t.content[i];this.isToMiddle(n)?o=this.getMiddlePoint(n.points):(t.content.length===1&&i===0?i=1:i===0&&(a=-1),o=this.getArcPoint(n,i));var l=t.offset*a,u=this.getPointAngle(o),c=t.labelEmit,h=this.getCirclePoint(u,l,o,c);return h.r===0?h.content="":(h.content=s,h.angle=u,h.color=n.color),h.rotate=t.autoRotate?this.getLabelRotate(u,l,c):t.rotate,h.start={x:o.x,y:o.y},h},r.prototype.getArcPoint=function(t,n){return n===void 0&&(n=0),!(0,f.kJ)(t.x)&&!(0,f.kJ)(t.y)?{x:t.x,y:t.y}:{x:(0,f.kJ)(t.x)?t.x[n]:t.x,y:(0,f.kJ)(t.y)?t.y[n]:t.y}},r.prototype.getPointAngle=function(t){return na(this.getCoordinate(),t)},r.prototype.getCirclePoint=function(t,n,i,a){var o=this.getCoordinate(),s=o.getCenter(),l=vs(o,i);if(l===0)return(0,d.pi)((0,d.pi)({},s),{r:l});var u=t;if(o.isTransposed&&l>n&&!a){var c=Math.asin(n/(2*l));u=t+c*2}else l=l+n;return{x:s.x+l*Math.cos(u),y:s.y+l*Math.sin(u),r:l}},r.prototype.getLabelRotate=function(t,n,i){var a=t+Vs;return i&&(a-=Vs),a&&(a>Vs?a=a-Math.PI:a<-Vs&&(a=a+Math.PI)),a},r.prototype.getMiddlePoint=function(t){var n=this.getCoordinate(),i=t.length,a={x:0,y:0};return(0,f.S6)(t,function(o){a.x+=o.x,a.y+=o.y}),a.x/=i,a.y/=i,a=n.convert(a),a},r.prototype.isToMiddle=function(t){return t.x.length>2},r}(Es),jp=Rb,Nb=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.defaultLayout="distribute",t}return r.prototype.getDefaultLabelCfg=function(t,n){var i=e.prototype.getDefaultLabelCfg.call(this,t,n);return(0,f.b$)({},i,(0,f.U2)(this.geometry.theme,"pieLabels",{}))},r.prototype.getLabelOffset=function(t){return e.prototype.getLabelOffset.call(this,t)||0},r.prototype.getLabelRotate=function(t,n,i){var a;return n<0&&(a=t,a>Math.PI/2&&(a=a-Math.PI),a<-Math.PI/2&&(a=a+Math.PI)),a},r.prototype.getLabelAlign=function(t){var n=this.getCoordinate(),i=n.getCenter(),a;return t.angle<=Math.PI/2&&t.x>=i.x?a="left":a="right",t.offset<=0&&(a==="right"?a="left":a="right"),a},r.prototype.getArcPoint=function(t){return t},r.prototype.getPointAngle=function(t){var n=this.getCoordinate(),i={x:(0,f.kJ)(t.x)?t.x[0]:t.x,y:t.y[0]},a={x:(0,f.kJ)(t.x)?t.x[1]:t.x,y:t.y[1]},o,s=na(n,i);if(t.points&&t.points[0].y===t.points[1].y)o=s;else{var l=na(n,a);s>=l&&(l=l+Math.PI*2),o=s+(l-s)/2}return o},r.prototype.getCirclePoint=function(t,n){var i=this.getCoordinate(),a=i.getCenter(),o=i.getRadius()+n;return(0,d.pi)((0,d.pi)({},vr(a.x,a.y,o,t)),{angle:t,r:o})},r}(jp),zb=Nb,Kp=4;function Vb(e,r,t,n,i,a){var o,s,l=!0,u=n.start,c=n.end,h=Math.min(u.y,c.y),v=Math.abs(u.y-c.y),p,g=0,y=Number.MIN_VALUE,x=r.map(function(V){return V.y>g&&(g=V.y),V.y<y&&(y=V.y),{size:t,targets:[V.y-h]}});for(y-=h,g-h>v&&(v=g-h);l;)for(x.forEach(function(V){var K=(Math.min.apply(y,V.targets)+Math.max.apply(y,V.targets))/2;V.pos=Math.min(Math.max(y,K-V.size/2),v-V.size)}),l=!1,p=x.length;p--;)if(p>0){var m=x[p-1],w=x[p];m.pos+m.size>w.pos&&(m.size+=w.size,m.targets=m.targets.concat(w.targets),m.pos+m.size>v&&(m.pos=v-m.size),x.splice(p,1),l=!0)}p=0,x.forEach(function(V){var K=h+t/2;V.targets.forEach(function(){r[p].y=V.pos+K,K+=t,p++})});var M={};try{for(var S=(0,d.XA)(e),A=S.next();!A.done;A=S.next()){var D=A.value;M[D.get("id")]=D}}catch(V){o={error:V}}finally{try{A&&!A.done&&(s=S.return)&&s.call(S)}finally{if(o)throw o.error}}r.forEach(function(V){var K=V.r*V.r,Mt=Math.pow(Math.abs(V.y-i.y),2);if(K<Mt)V.x=i.x;else{var ot=Math.sqrt(K-Mt);a?V.x=i.x+ot:V.x=i.x-ot}var Lt=M[V.id];Lt.attr("x",V.x),Lt.attr("y",V.y);var Qt=(0,f.sE)(Lt.getChildren(),function(ge){return ge.get("type")==="text"});Qt&&(Qt.attr("y",V.y),Qt.attr("x",V.x))})}function Ub(e,r,t,n){if(!(!e.length||!r.length)){var i=e[0]?e[0].offset:0,a=r[0].get("coordinate"),o=a.getRadius(),s=a.getCenter();if(i>0){var l=14,u=o+i,c=u*2+l*2,h={start:a.start,end:a.end},v=[[],[]];e.forEach(function(p){!p||(p.textAlign==="right"?v[0].push(p):v[1].push(p))}),v.forEach(function(p,g){var y=c/l;p.length>y&&(p.sort(function(x,m){return m["..percent"]-x["..percent"]}),p.splice(y,p.length-y)),p.sort(function(x,m){return x.y-m.y}),Vb(r,p,l,h,s,g)})}(0,f.S6)(e,function(p){if(p&&p.labelLine){var g=p.offset,y=p.angle,x=vr(s.x,s.y,o,y),m=vr(s.x,s.y,o+g/2,y),w=p.x+(0,f.U2)(p,"offsetX",0),M=p.y+(0,f.U2)(p,"offsetY",0),S={x:w-Math.cos(y)*Kp,y:M-Math.sin(y)*Kp};(0,f.Kn)(p.labelLine)||(p.labelLine={}),p.labelLine.path=["M ".concat(x.x),"".concat(x.y," Q").concat(m.x),"".concat(m.y," ").concat(S.x),S.y].join(",")}})}}function Jp(e,r,t){var n=e.filter(function(g){return!g.invisible});n.sort(function(g,y){return g.y-y.y});var i=!0,a=t.minY,o=t.maxY,s=Math.abs(a-o),l,u=0,c=Number.MIN_VALUE,h=n.map(function(g){return g.y>u&&(u=g.y),g.y<c&&(c=g.y),{content:g.content,size:r,targets:[g.y-a],pos:null}});for(c-=a,u-a>s&&(s=u-a);i;)for(h.forEach(function(g){var y=(Math.min.apply(c,g.targets)+Math.max.apply(c,g.targets))/2;g.pos=Math.min(Math.max(c,y-g.size/2),s-g.size),g.pos=Math.max(0,g.pos)}),i=!1,l=h.length;l--;)if(l>0){var v=h[l-1],p=h[l];v.pos+v.size>p.pos&&(v.size+=p.size,v.targets=v.targets.concat(p.targets),v.pos+v.size>s&&(v.pos=s-v.size),h.splice(l,1),i=!0)}l=0,h.forEach(function(g){var y=a+r/2;g.targets.forEach(function(){n[l].y=g.pos+y,y+=r,l++})})}var Qp=4;function Hb(e,r){var t=r.getCenter(),n=r.getRadius();if(e&&e.labelLine){var i=e.angle,a=e.offset,o=vr(t.x,t.y,n,i),s=e.x+(0,f.U2)(e,"offsetX",0)*(Math.cos(i)>0?1:-1),l=e.y+(0,f.U2)(e,"offsetY",0)*(Math.sin(i)>0?1:-1),u={x:s-Math.cos(i)*Qp,y:l-Math.sin(i)*Qp},c=e.labelLine.smooth,h=[],v=u.x-t.x,p=u.y-t.y,g=Math.atan(p/v);if(v<0&&(g+=Math.PI),c===!1){(0,f.Kn)(e.labelLine)||(e.labelLine={});var y=0;(i<0&&i>-Math.PI/2||i>Math.PI*1.5)&&u.y>o.y&&(y=1),i>=0&&i<Math.PI/2&&u.y>o.y&&(y=1),i>=Math.PI/2&&i<Math.PI&&o.y>u.y&&(y=1),(i<-Math.PI/2||i>=Math.PI&&i<Math.PI*1.5)&&o.y>u.y&&(y=1);var x=a/2>4?4:Math.max(a/2-1,0),m=vr(t.x,t.y,n+x,i),w=vr(t.x,t.y,n+a/2,g),M=0;h.push("M ".concat(o.x," ").concat(o.y)),h.push("L ".concat(m.x," ").concat(m.y)),h.push("A ".concat(t.x," ").concat(t.y," 0 ").concat(M," ").concat(y," ").concat(w.x," ").concat(w.y)),h.push("L ".concat(u.x," ").concat(u.y))}else{var m=vr(t.x,t.y,n+(a/2>4?4:Math.max(a/2-1,0)),i),S=o.x<t.x?1:-1;h.push("M ".concat(u.x," ").concat(u.y));var A=(o.y-t.y)/(o.x-t.x),D=(u.y-t.y)/(u.x-t.x);Math.abs(A-D)>Math.pow(Math.E,-16)&&h.push.apply(h,["C",u.x+S*4,u.y,2*m.x-o.x,2*m.y-o.y,o.x,o.y]),h.push("L ".concat(o.x," ").concat(o.y))}e.labelLine.path=h.join(" ")}}function Gb(e,r,t,n){var i,a,o=(0,f.hX)(e,function(K){return!(0,f.UM)(K)}),s=r[0]&&r[0].get("coordinate");if(!!s){var l=s.getCenter(),u=s.getRadius(),c={};try{for(var h=(0,d.XA)(r),v=h.next();!v.done;v=h.next()){var p=v.value;c[p.get("id")]=p}}catch(K){i={error:K}}finally{try{v&&!v.done&&(a=h.return)&&a.call(h)}finally{if(i)throw i.error}}var g=(0,f.U2)(o[0],"labelHeight",14),y=(0,f.U2)(o[0],"offset",0);if(!(y<=0)){var x="left",m="right",w=(0,f.vM)(o,function(K){return K.x<l.x?x:m}),M=s.start,S=s.end,A=Math.min((u+y+g)*2,s.getHeight()),D=A/2,V={minX:M.x,maxX:S.x,minY:l.y-D,maxY:l.y+D};(0,f.S6)(w,function(K,Mt){var ot=Math.floor(A/g);K.length>ot&&(K.sort(function(Lt,Qt){return Qt.percent-Lt.percent}),(0,f.S6)(K,function(Lt,Qt){Qt+1>ot&&(c[Lt.id].set("visible",!1),Lt.invisible=!0)})),Jp(K,g,V)}),(0,f.S6)(w,function(K,Mt){(0,f.S6)(K,function(ot){var Lt=Mt===m,Qt=c[ot.id],ge=Qt.getChildByIndex(0);if(ge){var we=u+y,Ae=ot.y-l.y,zt=Math.pow(we,2),ie=Math.pow(Ae,2),fe=zt-ie>0?zt-ie:0,ue=Math.sqrt(fe),he=Math.abs(Math.cos(ot.angle)*we);Lt?ot.x=l.x+Math.max(ue,he):ot.x=l.x-Math.max(ue,he)}ge&&(ge.attr("y",ot.y),ge.attr("x",ot.x)),Hb(ot,s)})})}}}var fc=4,Yb=4,td=4;function Xb(e,r,t){var n=r.getCenter(),i=r.getRadius(),a={x:e.x-(t?td:-td),y:e.y},o=vr(n.x,n.y,i+fc,e.angle),s={x:a.x,y:a.y},l={x:o.x,y:o.y},u=vr(n.x,n.y,i,e.angle),c="";if(a.y!==o.y){var h=t?4:-4;s.y=a.y,e.angle<0&&e.angle>=-Math.PI/2&&(s.x=Math.max(o.x,a.x-h),a.y<o.y?l.y=s.y:(l.y=o.y,l.x=Math.max(l.x,s.x-h))),e.angle>0&&e.angle<Math.PI/2&&(s.x=Math.max(o.x,a.x-h),a.y>o.y?l.y=s.y:(l.y=o.y,l.x=Math.max(l.x,s.x-h))),e.angle>Math.PI/2&&(s.x=Math.min(o.x,a.x-h),a.y>o.y?l.y=s.y:(l.y=o.y,l.x=Math.min(l.x,s.x-h))),e.angle<-Math.PI/2&&(s.x=Math.min(o.x,a.x-h),a.y<o.y?l.y=s.y:(l.y=o.y,l.x=Math.min(l.x,s.x-h)))}c=["M ".concat(a.x,",").concat(a.y),"L ".concat(s.x,",").concat(s.y),"L ".concat(l.x,",").concat(l.y),"L ".concat(o.x,",").concat(o.y),"L ".concat(u.x,",").concat(u.y)].join(" "),e.labelLine=(0,f.b$)({},e.labelLine,{path:c})}function Wb(e,r,t,n){var i,a,o=r[0]&&r[0].get("coordinate");if(!!o){var s=o.getCenter(),l=o.getRadius(),u={};try{for(var c=(0,d.XA)(r),h=c.next();!h.done;h=c.next()){var v=h.value;u[v.get("id")]=v}}catch(K){i={error:K}}finally{try{h&&!h.done&&(a=c.return)&&a.call(c)}finally{if(i)throw i.error}}var p=(0,f.U2)(e[0],"labelHeight",14),g=Math.max((0,f.U2)(e[0],"offset",0),fc);(0,f.S6)(e,function(K){if(!!K){var Mt=(0,f.U2)(u,[K.id]);if(!!Mt){var ot=K.x>s.x||K.x===s.x&&K.y>s.y,Lt=(0,f.UM)(K.offsetX)?Yb:K.offsetX,Qt=vr(s.x,s.y,l+fc,K.angle),ge=g+Lt;K.x=s.x+(ot?1:-1)*(l+ge),K.y=Qt.y}}});var y=o.start,x=o.end,m="left",w="right",M=(0,f.vM)(e,function(K){return K.x<s.x?m:w}),S=(l+g)*2+p;(0,f.S6)(M,function(K){var Mt=K.length*p;Mt>S&&(S=Math.min(Mt,Math.abs(y.y-x.y)))});var A={minX:y.x,maxX:x.x,minY:s.y-S/2,maxY:s.y+S/2};(0,f.S6)(M,function(K,Mt){var ot=S/p;K.length>ot&&(K.sort(function(Lt,Qt){return Qt.percent-Lt.percent}),(0,f.S6)(K,function(Lt,Qt){Qt>ot&&(u[Lt.id].set("visible",!1),Lt.invisible=!0)})),Jp(K,p,A)});var D=A.minY,V=A.maxY;(0,f.S6)(M,function(K,Mt){var ot=Mt===w;(0,f.S6)(K,function(Lt){var Qt=(0,f.U2)(u,Lt&&[Lt.id]);if(!!Qt){if(Lt.y<D||Lt.y>V){Qt.set("visible",!1);return}var ge=Qt.getChildByIndex(0),we=ge.getCanvasBBox(),Ae={x:ot?we.x:we.maxX,y:we.y+we.height/2};to(ge,Lt.x-Ae.x,Lt.y-Ae.y),Lt.labelLine&&Xb(Lt,o,ot)}})})}}function Zb(e,r,t,n){(0,f.S6)(r,function(i){var a=n.minX,o=n.minY,s=n.maxX,l=n.maxY,u=i.getCanvasBBox(),c=u.minX,h=u.minY,v=u.maxX,p=u.maxY,g=u.x,y=u.y,x=u.width,m=u.height,w=g,M=y;(c<a||v<a)&&(w=a),(h<o||p<o)&&(M=o),c>s?w=s-x:v>s&&(w=w-(v-s)),h>l?M=l-m:p>l&&(M=M-(p-l)),(w!==g||M!==y)&&to(i,w-g,M-y)})}function qb(e,r,t,n){(0,f.S6)(r,function(i,a){var o=i.getCanvasBBox(),s=t[a].getBBox();(o.minX<s.minX||o.minY<s.minY||o.maxX>s.maxX||o.maxY>s.maxY)&&i.remove(!0)})}var $b=100,ed=function(){function e(r){r===void 0&&(r={}),this.bitmap={};var t=r.xGap,n=t===void 0?1:t,i=r.yGap,a=i===void 0?8:i;this.xGap=n,this.yGap=a}return e.prototype.hasGap=function(r){for(var t=!0,n=this.bitmap,i=Math.round(r.minX),a=Math.round(r.maxX),o=Math.round(r.minY),s=Math.round(r.maxY),l=i;l<=a;l+=1){if(!n[l]){n[l]={};continue}if(l===i||l===a){for(var u=o;u<=s;u++)if(n[l][u]){t=!1;break}}else if(n[l][o]||n[l][s]){t=!1;break}}return t},e.prototype.fillGap=function(r){for(var t=this.bitmap,n=Math.round(r.minX),i=Math.round(r.maxX),a=Math.round(r.minY),o=Math.round(r.maxY),s=n;s<=i;s+=1)t[s]||(t[s]={});for(var s=n;s<=i;s+=this.xGap){for(var l=a;l<=o;l+=this.yGap)t[s][l]=!0;t[s][o]=!0}if(this.yGap!==1)for(var s=a;s<=o;s+=1)t[n][s]=!0,t[i][s]=!0;if(this.xGap!==1)for(var s=n;s<=i;s+=1)t[s][a]=!0,t[s][o]=!0},e.prototype.destroy=function(){this.bitmap={}},e}();function jb(e,r,t){t===void 0&&(t=$b);var n=-1,i=e.attr(),a=i.x,o=i.y,s=e.getCanvasBBox(),l=Math.sqrt(s.width*s.width+s.height*s.height),u,c=-n,h=0,v=0,p=function(m){var w=m*.1;return[w*Math.cos(w),w*Math.sin(w)]};if(r.hasGap(s))return r.fillGap(s),!0;for(var g=!1,y=0,x={};Math.min(Math.abs(h),Math.abs(v))<l&&y<t;)if(u=p(c+=n),h=~~u[0],v=~~u[1],!(!h&&!v||x["".concat(h,"-").concat(v)])&&(e.attr({x:a+h,y:o+v}),h+v<0&&e.attr("textAlign","right"),y++,r.hasGap(e.getCanvasBBox()))){r.fillGap(e.getCanvasBBox()),g=!0,x["".concat(h,"-").concat(v)]=!0;break}return g}function Kb(e,r,t,n){var i=e.getCanvasBBox(),a=i.width,o=i.height,s={x:r,y:t,textAlign:"center"};switch(n){case 0:s.y-=o+1,s.x+=1,s.textAlign="left";break;case 1:s.y-=o+1,s.x-=1,s.textAlign="right";break;case 2:s.y+=o+1,s.x-=1,s.textAlign="right";break;case 3:s.y+=o+1,s.x+=1,s.textAlign="left";break;case 5:s.y-=o*2+2;break;case 6:s.y+=o*2+2;break;case 7:s.x+=a+1,s.textAlign="left";break;case 8:s.x-=a+1,s.textAlign="right";break;default:break}return e.attr(s),e.getCanvasBBox()}function Jb(e,r,t,n){var i=new ed;(0,f.S6)(r,function(a){var o=a.find(function(s){return s.get("type")==="text"});jb(o,i)||a.remove(!0)}),i.destroy()}function Qb(e,r,t,n){var i=new ed;(0,f.S6)(r,function(a){for(var o=a.find(function(p){return p.get("type")==="text"}),s=o.attr(),l=s.x,u=s.y,c=!1,h=0;h<=8;h++){var v=Kb(o,l,u,h);if(i.hasGap(v)){i.fillGap(v),c=!0;break}}c||a.remove(!0)}),i.destroy()}function tA(e,r){return(e[0]||0)*(r[0]||0)+(e[1]||0)*(r[1]||0)+(e[2]||0)*(r[2]||0)}function rd(e){if(e.length>4)return[];var r=function(i,a){return[a.x-i.x,a.y-i.y]},t=r(e[0],e[1]),n=r(e[1],e[2]);return[t,n]}function Us(e,r,t){r===void 0&&(r=0),t===void 0&&(t={x:0,y:0});var n=e.x,i=e.y;return{x:(n-t.x)*Math.cos(-r)+(i-t.y)*Math.sin(-r)+t.x,y:(t.x-n)*Math.sin(-r)+(i-t.y)*Math.cos(-r)+t.y}}function nd(e){var r=[{x:e.x,y:e.y},{x:e.x+e.width,y:e.y},{x:e.x+e.width,y:e.y+e.height},{x:e.x,y:e.y+e.height}],t=e.rotation;return t?[Us(r[0],t,r[0]),Us(r[1],t,r[0]),Us(r[2],t,r[0]),Us(r[3],t,r[0])]:r}function id(e,r){if(e.length>4)return{min:0,max:0};var t=[];return e.forEach(function(n){t.push(tA([n.x,n.y],r))}),{min:Math.min.apply(Math,(0,d.ev)([],(0,d.CR)(t),!1)),max:Math.max.apply(Math,(0,d.ev)([],(0,d.CR)(t),!1))}}function eA(e,r){return e.max>r.min&&e.min<r.max}function rA(e){return typeof e=="number"&&!Number.isNaN(e)&&e!==Infinity&&e!==-Infinity}function ad(e){return["x","y","width","height"].every(function(r){return rA(e[r])})}function nA(e,r,t){return t===void 0&&(t=0),!(r.x>e.x+e.width+t||r.x+r.width<e.x-t||r.y>e.y+e.height+t||r.y+r.height<e.y-t)}function iA(e,r,t){if(t===void 0&&(t=0),!ad(e)||!ad(r))return!1;if(!e.rotation&&!r.rotation)return nA(e,r,t);for(var n=nd(e),i=nd(r),a=rd(n).concat(rd(i)),o=0;o<a.length;o++){var s=a[o],l=id(n,s),u=id(i,s);if(!eA(l,u))return!1}return!0}var aA=function(){function e(r){var t=this;this.queue=[],this.worker=new Worker(r),this.worker.onmessage=function(n){var i;(i=t.queue.shift())===null||i===void 0||i.resolve(n)},this.worker.onmessageerror=function(n){var i;console.warn("[AntV G2] Web worker is not available"),(i=t.queue.shift())===null||i===void 0||i.reject(n)}}return e.prototype.post=function(r,t){var n=this;return new Promise(function(i,a){n.queue.push({resolve:i,reject:a});try{n.worker.postMessage(r)}catch(o){console.warn("[AntV G2] Web worker is not available"),(0,f.mf)(t)&&t()}})},e.prototype.destroy=function(){this.worker.terminate()},e}();function oA(e){if(typeof window!="undefined"){var r;try{r=new Blob([e.toString()],{type:"application/javascript"})}catch(t){r=new window.BlobBuilder,r.append(e.toString()),r=r.getBlob()}return new aA(URL.createObjectURL(r))}}var sA=function(e){function r(){function u(M,S){return(M[0]||0)*(S[0]||0)+(M[1]||0)*(S[1]||0)+(M[2]||0)*(S[2]||0)}function c(M){if(M.length>4)return[];var S=function(V,K){return[K.x-V.x,K.y-V.y]},A=S(M[0],M[1]),D=S(M[1],M[2]);return[A,D]}function h(M,S,A){S===void 0&&(S=0),A===void 0&&(A={x:0,y:0});var D=M.x,V=M.y;return{x:(D-A.x)*Math.cos(-S)+(V-A.y)*Math.sin(-S)+A.x,y:(A.x-D)*Math.sin(-S)+(V-A.y)*Math.cos(-S)+A.y}}function v(M){var S=[{x:M.x,y:M.y},{x:M.x+M.width,y:M.y},{x:M.x+M.width,y:M.y+M.height},{x:M.x,y:M.y+M.height}],A=M.rotation;return A?[h(S[0],A,S[0]),h(S[1],A,S[0]),h(S[2],A,S[0]),h(S[3],A,S[0])]:S}function p(M,S){if(M.length>4)return{min:0,max:0};var A=[];return M.forEach(function(D){A.push(u([D.x,D.y],S))}),{min:Math.min.apply(null,A),max:Math.max.apply(null,A)}}function g(M,S){return M.max>S.min&&M.min<S.max}function y(M){return typeof M=="number"&&!Number.isNaN(M)&&M!==Infinity&&M!==-Infinity}function x(M){return["x","y","width","height"].every(function(S){return y(M[S])})}function m(M,S,A){return A===void 0&&(A=0),!(S.x>M.x+M.width+A||S.x+S.width<M.x-A||S.y>M.y+M.height+A||S.y+S.height<M.y-A)}function w(M,S,A){if(A===void 0&&(A=0),!x(M)||!x(S))return!1;if(!M.rotation&&!S.rotation)return m(M,S,A);for(var D=v(M),V=v(S),K=c(D).concat(c(V)),Mt=0;Mt<K.length;Mt++){var ot=K[Mt],Lt=p(D,ot),Qt=p(V,ot);if(!g(Lt,Qt))return!1}return!0}return{intersect:w}}var t=r().intersect;function n(u){for(var c=u.slice(),h=0;h<c.length;h++){var v=c[h];if(v.visible)for(var p=h+1;p<c.length;p++){var g=c[p];v!==g&&g.visible&&t(v,g)&&(g.visible=!1)}}return c}var i={"hide-overlap":n};try{var a=JSON.parse(e.data);if(!a||!a.type||!i[a.type])return;var o=a.type,s=a.items,l=i[o](s);self.postMessage(l)}catch(u){throw u}},lA=`
  64. self.onmessage = `.concat(sA.toString(),`
  65. `),hc=function(e){for(var r=e.slice(),t=0;t<r.length;t++){var n=r[t];if(n.visible)for(var i=t+1;i<r.length;i++){var a=r[i];n!==a&&a.visible&&iA(n,a)&&(a.visible=!1)}}return r},vc=new Map,od=oA(lA);function uA(e,r,t,n){return(0,d.mG)(this,void 0,void 0,function(){var i,a,o,s,l,u;return(0,d.Jh)(this,function(c){switch(c.label){case 0:return i=r.map(function(h,v){return(0,d.pi)((0,d.pi)({},Wv(h,e[v],(0,f.U2)(e[v],"background.padding"))),{visible:!0})}),a=JSON.stringify(i),o=function(h){return vc.set(a,h),(0,f.S6)(h,function(v,p){var g=v.visible,y=r[p];g?y==null||y.show():y==null||y.hide()}),h},vc.get(a)?(o(vc.get(a)),[3,7]):[3,1];case 1:if(!od)return[3,6];c.label=2;case 2:return c.trys.push([2,4,,5]),s=JSON.stringify({type:"hide-overlap",items:i}),[4,od.post(s,function(){return o(hc(i))})];case 3:return l=c.sent(),o(Array.isArray(l.data)?l.data:[]),[3,5];case 4:return u=c.sent(),console.error(u),o(hc(i)),[3,5];case 5:return[3,7];case 6:o(hc(i)),c.label=7;case 7:return[2]}})})}var sd={"#5B8FF9":!0},cA=function(e){var r=Pn.toRGB(e).toUpperCase();if(sd[r])return sd[r];var t=(0,d.CR)(Pn.rgb2arr(r),3),n=t[0],i=t[1],a=t[2],o=(n*299+i*587+a*114)/1e3<128;return o};function fA(e,r,t){if(t.length!==0){var n=t[0].get("element"),i=n.geometry.theme,a=i.labels||{},o=a.fillColorLight,s=a.fillColorDark;t.forEach(function(l,u){var c=r[u],h=c.find(function(m){return m.get("type")==="text"}),v=Pr.fromObject(l.getBBox()),p=Pr.fromObject(h.getCanvasBBox()),g=!v.contains(p),y=l.attr("fill"),x=cA(y);g?h.attr(i.overflowLabels.style):x?o&&h.attr("fill",o):s&&h.attr("fill",s)})}}function hA(e,r,t){var n=e.coordinate,i=oi(r),a=Pr.fromObject(i.getCanvasBBox()),o=Pr.fromObject(t.getBBox());return n.isTransposed?o.height>=a.height:o.width>=a.width}function vA(e,r,t){var n=!!e.getAdjust("stack");return n||r.every(function(i,a){var o=t[a];return hA(e,i,o)})}function pA(e,r,t){var n=e.coordinate,i=Pr.fromObject(t.getBBox()),a=oi(r);n.isTransposed?a.attr({x:i.minX+i.width/2,textAlign:"center"}):a.attr({y:i.minY+i.height/2,textBaseline:"middle"})}function dA(e,r,t){var n;if(t.length!==0){var i=(n=t[0])===null||n===void 0?void 0:n.get("element"),a=i==null?void 0:i.geometry;if(!(!a||a.type!=="interval")){var o=vA(a,r,t);o&&t.forEach(function(s,l){var u=r[l];pA(a,u,s)})}}}function gA(e){var r=500,t=[],n=Math.max(Math.floor(e.length/r),1);return(0,f.S6)(e,function(i,a){a%n==0?t.push(i):i.set("visible",!1)}),t}function yA(e,r,t){var n;if(t.length!==0){var i=(n=t[0])===null||n===void 0?void 0:n.get("element"),a=i==null?void 0:i.geometry;if(!(!a||a.type!=="interval")){var o=gA(r),s=(0,d.CR)(a.getXYFields(),1),l=s[0],u=[],c=[],h=(0,f.vM)(o,function(x){return x.get("data")[l]}),v=(0,f.jj)((0,f.UI)(o,function(x){return x.get("data")[l]})),p;o.forEach(function(x){x.set("visible",!0)});var g=function(x){x&&(x.length&&c.push(x.pop()),c.push.apply(c,(0,d.ev)([],(0,d.CR)(x),!1)))};for((0,f.dp)(v)>0&&(p=v.shift(),g(h[p])),(0,f.dp)(v)>0&&(p=v.pop(),g(h[p])),(0,f.S6)(v.reverse(),function(x){g(h[x])});c.length>0;){var y=c.shift();y.get("visible")&&(v2(y,u)?y.set("visible",!1):u.push(y))}}}}function mA(e,r){var t=e.getXYFields()[1],n=[],i=r.sort(function(a,o){return a.get("data")[t]-a.get("data")[t]});return i.length>0&&n.push(i.shift()),i.length>0&&n.push(i.pop()),n.push.apply(n,(0,d.ev)([],(0,d.CR)(i),!1)),n}function ld(e,r,t){return e.some(function(n){return t(n,r)})}function xA(e,r,t){t===void 0&&(t=0);var n=Math.max(0,Math.min(e.x+e.width+t,r.x+r.width+t)-Math.max(e.x-t,r.x-t)),i=Math.max(0,Math.min(e.y+e.height+t,r.y+r.height+t)-Math.max(e.y-t,r.y-t));return n*i}function ud(e,r){return ld(e,r,function(t,n){var i=oi(t),a=oi(n);return xA(i.getCanvasBBox(),a.getCanvasBBox(),2)>0})}function wA(e,r,t,n,i){var a,o;if(t.length!==0){var s=(a=t[0])===null||a===void 0?void 0:a.get("element"),l=s==null?void 0:s.geometry;if(!(!l||l.type!=="point")){var u=(0,d.CR)(l.getXYFields(),2),c=u[0],h=u[1],v=(0,f.vM)(r,function(y){return y.get("data")[c]}),p=[],g=i&&i.offset||((o=e[0])===null||o===void 0?void 0:o.offset)||12;(0,f.UI)((0,f.XP)(v).reverse(),function(y){for(var x=mA(l,v[y]);x.length;){var m=x.shift(),w=oi(m);if(ld(p,m,function(A,D){return A.get("data")[c]===D.get("data")[c]&&A.get("data")[h]===D.get("data")[h]})){w.set("visible",!1);continue}var M=ud(p,m),S=!1;if(M&&(w.attr("y",w.attr("y")+2*g),S=ud(p,m)),S){w.set("visible",!1);continue}p.push(m)}})}}}function MA(e,r){var t=e.getXYFields()[1],n=[],i=r.sort(function(a,o){return a.get("data")[t]-a.get("data")[t]});return i.length>0&&n.push(i.shift()),i.length>0&&n.push(i.pop()),n.push.apply(n,(0,d.ev)([],(0,d.CR)(i),!1)),n}function cd(e,r,t){return e.some(function(n){return t(n,r)})}function SA(e,r,t){t===void 0&&(t=0);var n=Math.max(0,Math.min(e.x+e.width+t,r.x+r.width+t)-Math.max(e.x-t,r.x-t)),i=Math.max(0,Math.min(e.y+e.height+t,r.y+r.height+t)-Math.max(e.y-t,r.y-t));return n*i}function fd(e,r){return cd(e,r,function(t,n){var i=oi(t),a=oi(n);return SA(i.getCanvasBBox(),a.getCanvasBBox(),2)>0})}function CA(e,r,t,n,i){var a,o;if(t.length!==0){var s=(a=t[0])===null||a===void 0?void 0:a.get("element"),l=s==null?void 0:s.geometry;if(!(!l||["path","line","area"].indexOf(l.type)<0)){var u=(0,d.CR)(l.getXYFields(),2),c=u[0],h=u[1],v=(0,f.vM)(r,function(y){return y.get("data")[c]}),p=[],g=i&&i.offset||((o=e[0])===null||o===void 0?void 0:o.offset)||12;(0,f.UI)((0,f.XP)(v).reverse(),function(y){for(var x=MA(l,v[y]);x.length;){var m=x.shift(),w=oi(m);if(cd(p,m,function(A,D){return A.get("data")[c]===D.get("data")[c]&&A.get("data")[h]===D.get("data")[h]})){w.set("visible",!1);continue}var M=fd(p,m),S=!1;if(M&&(w.attr("y",w.attr("y")+2*g),S=fd(p,m)),S){w.set("visible",!1);continue}p.push(m)}})}}}var pc;function bA(){return pc||(pc=document.createElement("canvas").getContext("2d")),pc}var Hs=(0,f.HP)(function(e,r){r===void 0&&(r={});var t=r.fontSize,n=r.fontFamily,i=r.fontWeight,a=r.fontStyle,o=r.fontVariant,s=bA();return s.font=[a,o,i,"".concat(t,"px"),n].join(" "),s.measureText((0,f.HD)(e)?e:"").width},function(e,r){return r===void 0&&(r={}),(0,d.ev)([e],(0,d.CR)((0,f.VO)(r)),!1).join("")}),AA=function(e,r,t){var n=16,i=Hs("...",t),a;(0,f.HD)(e)?a=e:a=(0,f.BB)(e);var o=r,s=[],l,u;if(Hs(e,t)<=r)return e;for(;l=a.substr(0,n),u=Hs(l,t),!(u+i>o&&u>o);)if(s.push(l),o-=u,a=a.substr(n),!a)return s.join("");for(;l=a.substr(0,1),u=Hs(l,t),!(u+i>o);)if(s.push(l),o-=u,a=a.substr(1),!a)return s.join("");return"".concat(s.join(""),"...")};function TA(e,r,t,n,i){if(!(r.length<=0)){var a=(i==null?void 0:i.direction)||["top","right","bottom","left"],o=(i==null?void 0:i.action)||"translate",s=(i==null?void 0:i.margin)||0,l=r[0].get("coordinate");if(!!l){var u=ww(l,s),c=u.minX,h=u.minY,v=u.maxX,p=u.maxY;(0,f.S6)(r,function(g){var y=g.getCanvasBBox(),x=y.minX,m=y.minY,w=y.maxX,M=y.maxY,S=y.x,A=y.y,D=y.width,V=y.height,K=S,Mt=A;if(a.indexOf("left")>=0&&(x<c||w<c)&&(K=c),a.indexOf("top")>=0&&(m<h||M<h)&&(Mt=h),a.indexOf("right")>=0&&(x>v?K=v-D:w>v&&(K=K-(w-v))),a.indexOf("bottom")>=0&&(m>p?Mt=p-V:M>p&&(Mt=Mt-(M-p))),K!==S||Mt!==A){var ot=K-S;if(o==="translate")to(g,ot,Mt-A);else if(o==="ellipsis"){var Lt=g.findAll(function(Qt){return Qt.get("type")==="text"});Lt.forEach(function(Qt){var ge=(0,f.ei)(Qt.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),we=Qt.getCanvasBBox(),Ae=AA(Qt.attr("text"),we.width-Math.abs(ot),ge);Qt.attr("text",Ae)})}else g.hide()}})}}}function EA(e,r,t){var n={fillOpacity:(0,f.UM)(e.attr("fillOpacity"))?1:e.attr("fillOpacity"),strokeOpacity:(0,f.UM)(e.attr("strokeOpacity"))?1:e.attr("strokeOpacity"),opacity:(0,f.UM)(e.attr("opacity"))?1:e.attr("opacity")};e.attr({fillOpacity:0,strokeOpacity:0,opacity:0}),e.animate(n,r)}function _A(e,r,t){var n={fillOpacity:0,strokeOpacity:0,opacity:0},i=r.easing,a=r.duration,o=r.delay;e.animate(n,a,i,function(){e.remove(!0)},o)}function FA(e,r,t){var n,i=(0,d.CR)(r,2),a=i[0],o=i[1];return e.applyToMatrix([a,o,1]),t==="x"?(e.setMatrix(nr.vs(e.getMatrix(),[["t",-a,-o],["s",.01,1],["t",a,o]])),n=nr.vs(e.getMatrix(),[["t",-a,-o],["s",100,1],["t",a,o]])):t==="y"?(e.setMatrix(nr.vs(e.getMatrix(),[["t",-a,-o],["s",1,.01],["t",a,o]])),n=nr.vs(e.getMatrix(),[["t",-a,-o],["s",1,100],["t",a,o]])):t==="xy"&&(e.setMatrix(nr.vs(e.getMatrix(),[["t",-a,-o],["s",.01,.01],["t",a,o]])),n=nr.vs(e.getMatrix(),[["t",-a,-o],["s",100,100],["t",a,o]])),n}function dc(e,r,t,n,i){var a=t.start,o=t.end,s=t.getWidth(),l=t.getHeight(),u,c;i==="y"?(u=a.x+s/2,c=n.y<a.y?n.y:a.y):i==="x"?(u=n.x>a.x?n.x:a.x,c=a.y+l/2):i==="xy"&&(t.isPolar?(u=t.getCenter().x,c=t.getCenter().y):(u=(a.x+o.x)/2,c=(a.y+o.y)/2));var h=FA(e,[u,c],i);e.animate({matrix:h},r)}function IA(e,r,t){var n=t.coordinate,i=t.minYPoint;dc(e,r,n,i,"x")}function LA(e,r,t){var n=t.coordinate,i=t.minYPoint;dc(e,r,n,i,"y")}function PA(e,r,t){var n=t.coordinate,i=t.minYPoint;dc(e,r,n,i,"xy")}function kA(e,r,t){var n=e.getTotalLength();e.attr("lineDash",[n]),e.animate(function(i){return{lineDashOffset:(1-i)*n}},r)}function DA(e,r,t){var n=t.toAttrs,i=n.x,a=n.y;delete n.x,delete n.y,e.attr(n),e.animate({x:i,y:a},r)}function OA(e,r,t){var n=e.getBBox(),i=e.get("origin").mappingData,a=i.points,o=a[0].y-a[1].y>0?n.maxX:n.minX,s=(n.minY+n.maxY)/2;e.applyToMatrix([o,s,1]);var l=nr.vs(e.getMatrix(),[["t",-o,-s],["s",.01,1],["t",o,s]]);e.setMatrix(l),e.animate({matrix:nr.vs(e.getMatrix(),[["t",-o,-s],["s",100,1],["t",o,s]])},r)}function BA(e,r,t){var n=e.getBBox(),i=e.get("origin").mappingData,a=(n.minX+n.maxX)/2,o=i.points,s=o[0].y-o[1].y<=0?n.maxY:n.minY;e.applyToMatrix([a,s,1]);var l=nr.vs(e.getMatrix(),[["t",-a,-s],["s",1,.01],["t",a,s]]);e.setMatrix(l),e.animate({matrix:nr.vs(e.getMatrix(),[["t",-a,-s],["s",1,100],["t",a,s]])},r)}function hd(e,r){var t,n=Is(e,r),i=n.startAngle,a=n.endAngle;return!(0,f.vQ)(i,-Math.PI*.5)&&i<-Math.PI*.5&&(i+=Math.PI*2),!(0,f.vQ)(a,-Math.PI*.5)&&a<-Math.PI*.5&&(a+=Math.PI*2),r[5]===0&&(t=(0,d.CR)([a,i],2),i=t[0],a=t[1]),(0,f.vQ)(i,Math.PI*1.5)&&(i=Math.PI*-.5),(0,f.vQ)(a,Math.PI*-.5)&&!(0,f.vQ)(i,a)&&(a=Math.PI*1.5),{startAngle:i,endAngle:a}}function vd(e){var r;return e[0]==="M"||e[0]==="L"?r=[e[1],e[2]]:(e[0]==="a"||e[0]==="A"||e[0]==="C")&&(r=[e[e.length-2],e[e.length-1]]),r}function pd(e){var r,t,n,i=e.filter(function(M){return M[0]==="A"||M[0]==="a"});if(i.length===0)return{startAngle:0,endAngle:0,radius:0,innerRadius:0};var a=i[0],o=i.length>1?i[1]:i[0],s=e.indexOf(a),l=e.indexOf(o),u=vd(e[s-1]),c=vd(e[l-1]),h=hd(u,a),v=h.startAngle,p=h.endAngle,g=hd(c,o),y=g.startAngle,x=g.endAngle;(0,f.vQ)(v,y)&&(0,f.vQ)(p,x)?(t=v,n=p):(t=Math.min(v,y),n=Math.max(p,x));var m=a[1],w=i[i.length-1][1];return m<w?(r=(0,d.CR)([w,m],2),m=r[0],w=r[1]):m===w&&(w=0),{startAngle:t,endAngle:n,radius:m,innerRadius:w}}function RA(e,r,t){var n=t.toAttrs,i=t.coordinate,a=n.path||[],o=a.map(function(w){return w[0]});if(!(a.length<1)){var s=pd(a),l=s.startAngle,u=s.endAngle,c=s.radius,h=s.innerRadius,v=pd(e.attr("path")),p=v.startAngle,g=v.endAngle,y=i.getCenter(),x=l-p,m=u-g;if(x===0&&m===0){e.attr("path",a);return}e.animate(function(w){var M=p+w*x,S=g+w*m;return(0,d.pi)((0,d.pi)({},n),{path:(0,f.Xy)(o,["M","A","A","Z"])?Rh(y.x,y.y,c,M,S):ti(y.x,y.y,c,M,S,h)})},(0,d.pi)((0,d.pi)({},r),{callback:function(){e.attr("path",a)}}))}}function NA(e,r,t){var n=wu(t.coordinate,20),i=n.type,a=n.startState,o=n.endState,s=e.setClip({type:i,attrs:a});t.toAttrs&&e.attr(t.toAttrs),s.animate(o,(0,d.pi)((0,d.pi)({},r),{callback:function(){e&&!e.get("destroyed")&&e.set("clipShape",null),s.remove(!0)}}))}function gc(e,r,t){if(e.isGroup())(0,f.S6)(e.getChildren(),function(s){gc(s,r,t)});else{var n=e.getBBox(),i=(n.minX+n.maxX)/2,a=(n.minY+n.maxY)/2;if(e.applyToMatrix([i,a,1]),t==="zoomIn"){var o=nr.vs(e.getMatrix(),[["t",-i,-a],["s",.01,.01],["t",i,a]]);e.setMatrix(o),e.animate({matrix:nr.vs(e.getMatrix(),[["t",-i,-a],["s",100,100],["t",i,a]])},r)}else e.animate({matrix:nr.vs(e.getMatrix(),[["t",-i,-a],["s",.01,.01],["t",i,a]])},(0,d.pi)((0,d.pi)({},r),{callback:function(){e.remove(!0)}}))}}function zA(e,r,t){gc(e,r,"zoomIn")}function VA(e,r,t){gc(e,r,"zoomOut")}function Rn(e){return[J.TOP,J.BOTTOM].includes(e)?{offsetX:0,offsetY:e===J.TOP?-8:8,style:{textAlign:"center",textBaseline:e===J.TOP?"bottom":"top"}}:[J.LEFT,J.RIGHT].includes(e)?{offsetX:e===J.LEFT?-8:8,offsetY:0,style:{textAlign:e===J.LEFT?"right":"left",textBaseline:"middle",rotate:Math.PI/2}}:{}}function yc(e,r,t){return{x:e.x+r*Math.cos(t),y:e.y+r*Math.sin(t)}}var UA=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){return(0,f.b$)({},e.prototype.getDefaultCfg.call(this),{type:"circle",showTitle:!0,title:e.prototype.getDefaultTitleCfg.call(this)})},r.prototype.render=function(){e.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},r.prototype.getRegion=function(t,n){var i=1/2,a={x:.5,y:.5},o=Math.PI*2/t,s=-1*Math.PI/2+o*n,l=i/(1+1/Math.sin(o/2)),u=yc(a,i-l,s),c=Math.PI*5/4,h=Math.PI*1/4;return{start:yc(u,l,c),end:yc(u,l,h)}},r.prototype.afterEachView=function(t,n){this.processAxis(t,n)},r.prototype.beforeEachView=function(t,n){},r.prototype.generateFacets=function(t){var n=this,i=this.cfg,a=i.fields,o=i.type,s=(0,d.CR)(a,1),l=s[0];if(!l)throw new Error("No `fields` specified!");var u=this.getFieldValues(t,l),c=u.length,h=[];return u.forEach(function(v,p){var g=[{field:l,value:v,values:u}],y=(0,f.hX)(t,n.getFacetDataFilter(g)),x={type:o,data:y,region:n.getRegion(c,p),columnValue:v,columnField:l,columnIndex:p,columnValuesLength:c,rowValue:null,rowField:null,rowIndex:0,rowValuesLength:1};h.push(x)}),h},r.prototype.getXAxisOption=function(t,n,i,a){return i},r.prototype.getYAxisOption=function(t,n,i,a){return i},r.prototype.renderTitle=function(){var t=this;(0,f.S6)(this.facets,function(n){var i=n.columnValue,a=n.view,o=(0,f.U2)(t.cfg.title,"formatter"),s=(0,f.b$)({position:["50%","0%"],content:o?o(i):i},Rn(J.TOP),t.cfg.title);a.annotation().text(s)})},r}(ia),HA=UA,GA=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){return(0,f.b$)({},e.prototype.getDefaultCfg.call(this),{type:"list",cols:null,showTitle:!0,title:e.prototype.getDefaultTitleCfg.call(this)})},r.prototype.render=function(){e.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},r.prototype.afterEachView=function(t,n){this.processAxis(t,n)},r.prototype.beforeEachView=function(t,n){},r.prototype.generateFacets=function(t){var n=this,i=this.cfg.fields,a=this.cfg.cols,o=(0,d.CR)(i,1),s=o[0];if(!s)throw new Error("No `fields` specified!");var l=this.getFieldValues(t,s),u=l.length;a=a||u;var c=this.getPageCount(u,a),h=[];return l.forEach(function(v,p){var g=n.getRowCol(p,a),y=g.row,x=g.col,m=[{field:s,value:v,values:l}],w=(0,f.hX)(t,n.getFacetDataFilter(m)),M={type:n.cfg.type,data:w,region:n.getRegion(c,a,x,y),columnValue:v,rowValue:v,columnField:s,rowField:null,columnIndex:x,rowIndex:y,columnValuesLength:a,rowValuesLength:c,total:u};h.push(M)}),h},r.prototype.getXAxisOption=function(t,n,i,a){return a.rowIndex!==a.rowValuesLength-1&&a.columnValuesLength*a.rowIndex+a.columnIndex+1+a.columnValuesLength<=a.total?(0,d.pi)((0,d.pi)({},i),{label:null,title:null}):i},r.prototype.getYAxisOption=function(t,n,i,a){return a.columnIndex!==0?(0,d.pi)((0,d.pi)({},i),{title:null,label:null}):i},r.prototype.renderTitle=function(){var t=this;(0,f.S6)(this.facets,function(n){var i=n.columnValue,a=n.view,o=(0,f.U2)(t.cfg.title,"formatter"),s=(0,f.b$)({position:["50%","0%"],content:o?o(i):i},Rn(J.TOP),t.cfg.title);a.annotation().text(s)})},r.prototype.getPageCount=function(t,n){return Math.floor((t+n-1)/n)},r.prototype.getRowCol=function(t,n){var i=Math.floor(t/n),a=t%n;return{row:i,col:a}},r}(ia),YA=GA,XA=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){return(0,f.b$)({},e.prototype.getDefaultCfg.call(this),{type:"matrix",showTitle:!1,columnTitle:(0,d.pi)({},e.prototype.getDefaultTitleCfg.call(this)),rowTitle:(0,d.pi)({},e.prototype.getDefaultTitleCfg.call(this))})},r.prototype.render=function(){e.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},r.prototype.afterEachView=function(t,n){this.processAxis(t,n)},r.prototype.beforeEachView=function(t,n){},r.prototype.generateFacets=function(t){for(var n=this.cfg,i=n.fields,a=n.type,o=i.length,s=o,l=[],u=0;u<s;u++)for(var c=i[u],h=0;h<o;h++){var v=i[h],p={type:a,data:t,region:this.getRegion(o,s,u,h),columnValue:c,rowValue:v,columnField:c,rowField:v,columnIndex:u,rowIndex:h,columnValuesLength:s,rowValuesLength:o};l.push(p)}return l},r.prototype.getXAxisOption=function(t,n,i,a){return a.rowIndex!==a.rowValuesLength-1?(0,d.pi)((0,d.pi)({},i),{label:null,title:null}):i},r.prototype.getYAxisOption=function(t,n,i,a){return a.columnIndex!==0?(0,d.pi)((0,d.pi)({},i),{title:null,label:null}):i},r.prototype.renderTitle=function(){var t=this;(0,f.S6)(this.facets,function(n,i){var a=n.columnIndex,o=n.rowIndex,s=n.columnValuesLength,l=n.rowValuesLength,u=n.columnValue,c=n.rowValue,h=n.view;if(o===0){var v=(0,f.U2)(t.cfg.columnTitle,"formatter"),p=(0,f.b$)({position:["50%","0%"],content:v?v(u):u},Rn(J.TOP),t.cfg.columnTitle);h.annotation().text(p)}if(a===s-1){var v=(0,f.U2)(t.cfg.rowTitle,"formatter"),p=(0,f.b$)({position:["100%","50%"],content:v?v(c):c},Rn(J.RIGHT),t.cfg.rowTitle);h.annotation().text(p)}})},r}(ia),WA=XA,ZA=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){return(0,f.b$)({},e.prototype.getDefaultCfg.call(this),{type:"mirror",showTitle:!0,title:e.prototype.getDefaultTitleCfg.call(this),transpose:!1})},r.prototype.render=function(){e.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},r.prototype.beforeEachView=function(t,n){this.cfg.transpose?n.columnIndex%2==0?t.coordinate().transpose().reflect("x"):t.coordinate().transpose():n.rowIndex%2!=0&&t.coordinate().reflect("y")},r.prototype.afterEachView=function(t,n){this.processAxis(t,n)},r.prototype.generateFacets=function(t){var n=this,i=(0,d.CR)(this.cfg.fields,1),a=i[0],o=[],s=1,l=1,u=[""],c=[""],h,v;return this.cfg.transpose?(h=a,u=this.getFieldValues(t,h).slice(0,2),s=u.length):(v=a,c=this.getFieldValues(t,v).slice(0,2),l=c.length),u.forEach(function(p,g){c.forEach(function(y,x){var m=[{field:h,value:p,values:u},{field:v,value:y,values:c}],w=(0,f.hX)(t,n.getFacetDataFilter(m)),M={type:n.cfg.type,data:w,region:n.getRegion(l,s,g,x),columnValue:p,rowValue:y,columnField:h,rowField:v,columnIndex:g,rowIndex:x,columnValuesLength:s,rowValuesLength:l};o.push(M)})}),o},r.prototype.getXAxisOption=function(t,n,i,a){return a.columnIndex===1||a.rowIndex===1?(0,d.pi)((0,d.pi)({},i),{label:null,title:null}):i},r.prototype.getYAxisOption=function(t,n,i,a){return i},r.prototype.renderTitle=function(){var t=this;(0,f.S6)(this.facets,function(n,i){var a=n.columnValue,o=n.rowValue,s=n.view,l=(0,f.U2)(t.cfg.title,"formatter");if(t.cfg.transpose){var u=(0,f.b$)({position:["50%","0%"],content:l?l(a):a},Rn(J.TOP),t.cfg.title);s.annotation().text(u)}else{var u=(0,f.b$)({position:["100%","50%"],content:l?l(o):o},Rn(J.RIGHT),t.cfg.title);s.annotation().text(u)}})},r}(ia),qA=ZA,$A=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.afterEachView=function(t,n){this.processAxis(t,n)},r.prototype.beforeEachView=function(t,n){},r.prototype.getDefaultCfg=function(){return(0,f.b$)({},e.prototype.getDefaultCfg.call(this),{type:"rect",columnTitle:(0,d.pi)({},e.prototype.getDefaultTitleCfg.call(this)),rowTitle:(0,d.pi)({},e.prototype.getDefaultTitleCfg.call(this))})},r.prototype.render=function(){e.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},r.prototype.generateFacets=function(t){var n=this,i=(0,d.CR)(this.cfg.fields,2),a=i[0],o=i[1],s=[],l=1,u=1,c=[""],h=[""];return a&&(c=this.getFieldValues(t,a),l=c.length),o&&(h=this.getFieldValues(t,o),u=h.length),c.forEach(function(v,p){h.forEach(function(g,y){var x=[{field:a,value:v,values:c},{field:o,value:g,values:h}],m=(0,f.hX)(t,n.getFacetDataFilter(x)),w={type:n.cfg.type,data:m,region:n.getRegion(u,l,p,y),columnValue:v,rowValue:g,columnField:a,rowField:o,columnIndex:p,rowIndex:y,columnValuesLength:l,rowValuesLength:u};s.push(w)})}),s},r.prototype.renderTitle=function(){var t=this;(0,f.S6)(this.facets,function(n,i){var a=n.columnIndex,o=n.rowIndex,s=n.columnValuesLength,l=n.columnValue,u=n.rowValue,c=n.view;if(o===0){var h=(0,f.U2)(t.cfg.columnTitle,"formatter"),v=(0,f.b$)({position:["50%","0%"],content:h?h(l):l},Rn(J.TOP),t.cfg.columnTitle);c.annotation().text(v)}if(a===s-1){var h=(0,f.U2)(t.cfg.rowTitle,"formatter"),v=(0,f.b$)({position:["100%","50%"],content:h?h(u):u},Rn(J.RIGHT),t.cfg.rowTitle);c.annotation().text(v)}})},r.prototype.getXAxisOption=function(t,n,i,a){return a.rowIndex!==a.rowValuesLength-1?(0,d.pi)((0,d.pi)({},i),{title:null,label:null}):a.columnIndex!==Math.floor((a.columnValuesLength-1)/2)?(0,d.pi)((0,d.pi)({},i),{title:null}):i},r.prototype.getYAxisOption=function(t,n,i,a){return a.columnIndex!==0?(0,d.pi)((0,d.pi)({},i),{title:null,label:null}):a.rowIndex!==Math.floor((a.rowValuesLength-1)/2)?(0,d.pi)((0,d.pi)({},i),{title:null}):i},r}(ia),jA=$A,KA=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.afterChartRender=function(){t.facets&&t.cfg.line&&(t.container.clear(),t.drawLines(t.facets))},t}return r.prototype.afterEachView=function(t,n){this.processAxis(t,n)},r.prototype.beforeEachView=function(t,n){},r.prototype.init=function(){e.prototype.init.call(this),this.view.on(X.AFTER_RENDER,this.afterChartRender)},r.prototype.getDefaultCfg=function(){return(0,f.b$)({},e.prototype.getDefaultCfg.call(this),{type:"tree",line:{style:{lineWidth:1,stroke:"#ddd"},smooth:!1},showTitle:!0,title:e.prototype.getDefaultTitleCfg.call(this)})},r.prototype.generateFacets=function(t){var n=this.cfg.fields;if(!n.length)throw new Error("Please specify for the fields for rootFacet!");var i=[],a={type:this.cfg.type,data:t,region:null,rowValuesLength:this.getRows(),columnValuesLength:1,rowIndex:0,columnIndex:0,rowField:"",columnField:"",rowValue:"",columnValue:""};return i.push(a),a.children=this.getChildFacets(t,1,i),this.setRegion(i),i},r.prototype.setRegion=function(t){var n=this;this.forceColIndex(t),t.forEach(function(i){i.region=n.getRegion(i.rowValuesLength,i.columnValuesLength,i.columnIndex,i.rowIndex)})},r.prototype.getRegion=function(t,n,i,a){var o=1/n,s=1/t,l={x:o*i,y:s*a},u={x:l.x+o,y:l.y+s*2/3};return{start:l,end:u}},r.prototype.forceColIndex=function(t){var n,i,a=this,o=[],s=0;t.forEach(function(g){a.isLeaf(g)&&(o.push(g),g.columnIndex=s,s++)}),o.forEach(function(g){g.columnValuesLength=o.length});for(var l=this.cfg.fields.length,u=l-1;u>=0;u--){var c=this.getFacetsByLevel(t,u);try{for(var h=(n=void 0,(0,d.XA)(c)),v=h.next();!v.done;v=h.next()){var p=v.value;this.isLeaf(p)||(p.originColIndex=p.columnIndex,p.columnIndex=this.getRegionIndex(p.children),p.columnValuesLength=o.length)}}catch(g){n={error:g}}finally{try{v&&!v.done&&(i=h.return)&&i.call(h)}finally{if(n)throw n.error}}}},r.prototype.getFacetsByLevel=function(t,n){var i=[];return t.forEach(function(a){a.rowIndex===n&&i.push(a)}),i},r.prototype.getRegionIndex=function(t){var n=t[0],i=t[t.length-1];return(i.columnIndex-n.columnIndex)/2+n.columnIndex},r.prototype.isLeaf=function(t){return!t.children||!t.children.length},r.prototype.getRows=function(){return this.cfg.fields.length+1},r.prototype.getChildFacets=function(t,n,i){var a=this,o=this.cfg.fields,s=o.length;if(!(s<n)){var l=[],u=o[n-1],c=this.getFieldValues(t,u);return c.forEach(function(h,v){var p=[{field:u,value:h,values:c}],g=t.filter(a.getFacetDataFilter(p));if(g.length){var y={type:a.cfg.type,data:g,region:null,columnValue:h,rowValue:"",columnField:u,rowField:"",columnIndex:v,rowValuesLength:a.getRows(),columnValuesLength:1,rowIndex:n,children:a.getChildFacets(g,n+1,i)};l.push(y),i.push(y)}}),l}},r.prototype.render=function(){e.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},r.prototype.renderTitle=function(){var t=this;(0,f.S6)(this.facets,function(n){var i=n.columnValue,a=n.view,o=(0,f.U2)(t.cfg.title,"formatter"),s=(0,f.b$)({position:["50%","0%"],content:o?o(i):i},Rn(J.TOP),t.cfg.title);a.annotation().text(s)})},r.prototype.drawLines=function(t){var n=this;t.forEach(function(i){if(!n.isLeaf(i)){var a=i.children;n.addFacetLines(i,a)}})},r.prototype.addFacetLines=function(t,n){var i=this,a=t.view,o=a.coordinateBBox,s={x:o.x+o.width/2,y:o.y+o.height};n.forEach(function(l){var u=l.view.coordinateBBox,c={x:u.bl.x+(u.tr.x-u.bl.x)/2,y:u.tr.y},h={x:s.x,y:s.y+(c.y-s.y)/2},v={x:c.x,y:h.y};i.drawLine([s,h,v,c])})},r.prototype.getPath=function(t){var n=[],i=this.cfg.line.smooth;return i?(n.push(["M",t[0].x,t[0].y]),n.push(["C",t[1].x,t[1].y,t[2].x,t[2].y,t[3].x,t[3].y])):t.forEach(function(a,o){o===0?n.push(["M",a.x,a.y]):n.push(["L",a.x,a.y])}),n},r.prototype.drawLine=function(t){var n=this.getPath(t),i=this.cfg.line.style;this.container.addShape("path",{attrs:(0,f.f0)({path:n},i)})},r.prototype.getXAxisOption=function(t,n,i,a){return a.rowIndex!==a.rowValuesLength-1?(0,d.pi)((0,d.pi)({},i),{title:null,label:null}):i},r.prototype.getYAxisOption=function(t,n,i,a){return a.originColIndex!==0&&a.columnIndex!==0?(0,d.pi)((0,d.pi)({},i),{title:null,label:null}):i},r}(ia),JA=KA;function dd(e){var r=(0,d.ev)([],(0,d.CR)(e),!1);r.sort(function(n,i){return n-i});var t=r.length;return t===0?0:t%2==1?r[(t-1)/2]:(r[t/2]+r[t/2-1])/2}function QA(e){var r=(0,f.u4)(e,function(t,n){return t+=isNaN(n)||!(0,f.hj)(n)?0:n},0);return e.length===0?0:r/e.length}function Gs(e,r){if(!r)return null;var t;switch(e){case"start":return 0;case"center":return .5;case"end":return 1;case"median":{t=r.isCategory?dd(r.values.map(function(n,i){return i})):dd(r.values);break}case"mean":{t=r.isCategory?(r.values.length-1)/2:QA(r.values);break}case"min":t=r.isCategory?0:r[e];break;case"max":t=r.isCategory?r.values.length-1:r[e];break;default:t=e;break}return r.scale(t)}var Ys=["regionFilter","shape"],tT=function(e){(0,d.ZT)(r,e);function r(t){var n=e.call(this,t)||this;return n.cache=new Map,n.foregroundContainer=n.view.getLayer(rt.FORE).addGroup(),n.backgroundContainer=n.view.getLayer(rt.BG).addGroup(),n.option=[],n}return Object.defineProperty(r.prototype,"name",{get:function(){return"annotation"},enumerable:!1,configurable:!0}),r.prototype.init=function(){},r.prototype.layout=function(){this.update()},r.prototype.render=function(){},r.prototype.update=function(){var t=this;this.onAfterRender(function(){var i=new Map;(0,f.S6)(t.option,function(a){if((0,f.q9)(Ys,a.type)){var o=t.updateOrCreate(a);o&&i.set(t.getCacheKey(a),o)}}),t.cache=t.syncCache(i)});var n=new Map;(0,f.S6)(this.option,function(i){if(!(0,f.q9)(Ys,i.type)){var a=t.updateOrCreate(i);a&&n.set(t.getCacheKey(i),a)}}),this.cache=this.syncCache(n)},r.prototype.clear=function(t){t===void 0&&(t=!1),e.prototype.clear.call(this),this.clearComponents(),this.foregroundContainer.clear(),this.backgroundContainer.clear(),t&&(this.option=[])},r.prototype.destroy=function(){this.clear(!0),this.foregroundContainer.remove(!0),this.backgroundContainer.remove(!0)},r.prototype.getComponents=function(){var t=[];return this.cache.forEach(function(n){t.push(n)}),t},r.prototype.clearComponents=function(){this.getComponents().forEach(function(t){t.component.destroy()}),this.cache.clear()},r.prototype.onAfterRender=function(t){var n=!1;this.view.getOptions().animate&&this.view.geometries.forEach(function(i){i.animateOption&&(i.once(at.AFTER_DRAW_ANIMATE,function(){t()}),n=!0)}),n||this.view.getRootView().once(X.AFTER_RENDER,function(){t()})},r.prototype.createAnnotation=function(t){var n=t.type,i=dt[(0,f.jC)(n)];if(i){var a=this.getAnnotationTheme(n),o=this.getAnnotationCfg(n,t,a);if(!o)return null;var s=new i(o);return{component:s,layer:this.isTop(o)?rt.FORE:rt.BG,direction:J.NONE,type:St.ANNOTATION,extra:t}}},r.prototype.annotation=function(t){this.option.push(t)},r.prototype.arc=function(t){return this.annotation((0,d.pi)({type:"arc"},t)),this},r.prototype.image=function(t){return this.annotation((0,d.pi)({type:"image"},t)),this},r.prototype.line=function(t){return this.annotation((0,d.pi)({type:"line"},t)),this},r.prototype.region=function(t){return this.annotation((0,d.pi)({type:"region"},t)),this},r.prototype.text=function(t){return this.annotation((0,d.pi)({type:"text"},t)),this},r.prototype.dataMarker=function(t){return this.annotation((0,d.pi)({type:"dataMarker"},t)),this},r.prototype.dataRegion=function(t){this.annotation((0,d.pi)({type:"dataRegion"},t))},r.prototype.regionFilter=function(t){this.annotation((0,d.pi)({type:"regionFilter"},t))},r.prototype.shape=function(t){this.annotation((0,d.pi)({type:"shape"},t))},r.prototype.html=function(t){this.annotation((0,d.pi)({type:"html"},t))},r.prototype.parsePosition=function(t){var n,i,a=this.view.getXScale(),o=this.view.getScalesByDim("y"),s=(0,f.mf)(t)?t.call(null,a,o):t,l=0,u=0;if((0,f.kJ)(s)){var c=(0,d.CR)(s,2),h=c[0],v=c[1];if((0,f.HD)(h)&&h.indexOf("%")!==-1&&!isNaN(h.slice(0,-1)))return this.parsePercentPosition(s);l=Gs(h,a),u=Gs(v,Object.values(o)[0])}else if(!(0,f.UM)(s))try{for(var p=(0,d.XA)((0,f.XP)(s)),g=p.next();!g.done;g=p.next()){var y=g.value,x=s[y];y===a.field&&(l=Gs(x,a)),o[y]&&(u=Gs(x,o[y]))}}catch(m){n={error:m}}finally{try{g&&!g.done&&(i=p.return)&&i.call(p)}finally{if(n)throw n.error}}return isNaN(l)||isNaN(u)?null:this.view.getCoordinate().convert({x:l,y:u})},r.prototype.getRegionPoints=function(t,n){var i=this,a=this.view.getXScale(),o=this.view.getScalesByDim("y"),s=Object.values(o)[0],l=a.field,u=this.view.getData(),c=(0,f.kJ)(t)?t[0]:t[l],h=(0,f.kJ)(n)?n[0]:n[l],v=[],p;return(0,f.S6)(u,function(g,y){if(g[l]===c&&(p=y),y>=p){var x=i.parsePosition([g[l],g[s.field]]);x&&v.push(x)}if(g[l]===h)return!1}),v},r.prototype.parsePercentPosition=function(t){var n=parseFloat(t[0])/100,i=parseFloat(t[1])/100,a=this.view.getCoordinate(),o=a.start,s=a.end,l={x:Math.min(o.x,s.x),y:Math.min(o.y,s.y)},u=a.getWidth()*n+l.x,c=a.getHeight()*i+l.y;return{x:u,y:c}},r.prototype.getCoordinateBBox=function(){var t=this.view.getCoordinate(),n=t.start,i=t.end,a=t.getWidth(),o=t.getHeight(),s={x:Math.min(n.x,i.x),y:Math.min(n.y,i.y)};return{x:s.x,y:s.y,minX:s.x,minY:s.y,maxX:s.x+a,maxY:s.y+o,width:a,height:o}},r.prototype.getAnnotationCfg=function(t,n,i){var a=this,o=this.view.getCoordinate(),s=this.view.getCanvas(),l={};if((0,f.UM)(n))return null;var u=n.start,c=n.end,h=n.position,v=this.parsePosition(u),p=this.parsePosition(c),g=this.parsePosition(h);if(["arc","image","line","region","regionFilter"].includes(t)&&(!v||!p))return null;if(["text","dataMarker","html"].includes(t)&&!g)return null;if(t==="arc"){var y=n,x=y.start,m=y.end,w=(0,d._T)(y,["start","end"]),M=na(o,v),S=na(o,p);M>S&&(S=Math.PI*2+S),l=(0,d.pi)((0,d.pi)({},w),{center:o.getCenter(),radius:vs(o,v),startAngle:M,endAngle:S})}else if(t==="image"){var A=n,D=A.start,V=A.end,w=(0,d._T)(A,["start","end"]);l=(0,d.pi)((0,d.pi)({},w),{start:v,end:p,src:n.src})}else if(t==="line"){var K=n,Mt=K.start,ot=K.end,w=(0,d._T)(K,["start","end"]);l=(0,d.pi)((0,d.pi)({},w),{start:v,end:p,text:(0,f.U2)(n,"text",null)})}else if(t==="region"){var Lt=n,Qt=Lt.start,ge=Lt.end,w=(0,d._T)(Lt,["start","end"]);l=(0,d.pi)((0,d.pi)({},w),{start:v,end:p})}else if(t==="text"){var we=this.view.getData(),Ae=n,zt=Ae.position,ie=Ae.content,w=(0,d._T)(Ae,["position","content"]),fe=ie;(0,f.mf)(ie)&&(fe=ie(we)),l=(0,d.pi)((0,d.pi)((0,d.pi)({},g),w),{content:fe})}else if(t==="dataMarker"){var ue=n,he=ue.position,Te=ue.point,Be=ue.line,Ye=ue.text,Re=ue.autoAdjust,Xe=ue.direction,w=(0,d._T)(ue,["position","point","line","text","autoAdjust","direction"]);l=(0,d.pi)((0,d.pi)((0,d.pi)({},w),g),{coordinateBBox:this.getCoordinateBBox(),point:Te,line:Be,text:Ye,autoAdjust:Re,direction:Xe})}else if(t==="dataRegion"){var er=n,pr=er.start,dr=er.end,_n=er.region,Ye=er.text,Zi=er.lineLength,w=(0,d._T)(er,["start","end","region","text","lineLength"]);l=(0,d.pi)((0,d.pi)({},w),{points:this.getRegionPoints(pr,dr),region:_n,text:Ye,lineLength:Zi})}else if(t==="regionFilter"){var Wn=n,Aa=Wn.start,Ta=Wn.end,Wy=Wn.apply,PR=Wn.color,w=(0,d._T)(Wn,["start","end","apply","color"]),kR=this.view.geometries,Zy=[],Lf=function(Fn){!Fn||(Fn.isGroup()?Fn.getChildren().forEach(function(Lo){return Lf(Lo)}):Zy.push(Fn))};(0,f.S6)(kR,function(Fn){Wy?(0,f.FX)(Wy,Fn.type)&&(0,f.S6)(Fn.elements,function(Lo){Lf(Lo.shape)}):(0,f.S6)(Fn.elements,function(Lo){Lf(Lo.shape)})}),l=(0,d.pi)((0,d.pi)({},w),{color:PR,shapes:Zy,start:v,end:p})}else if(t==="shape"){var qy=n,DR=qy.render,Pf=(0,d._T)(qy,["render"]),OR=function(RR){if((0,f.mf)(n.render))return DR(RR,a.view,{parsePosition:a.parsePosition.bind(a)})};l=(0,d.pi)((0,d.pi)({},Pf),{render:OR})}else if(t==="html"){var kf=n,Df=kf.html,dN=kf.position,Pf=(0,d._T)(kf,["html","position"]),BR=function(Fn){return(0,f.mf)(Df)?Df(Fn,a.view):Df};l=(0,d.pi)((0,d.pi)((0,d.pi)({},Pf),g),{parent:s.get("el").parentNode,html:BR})}var yi=(0,f.b$)({},i,(0,d.pi)((0,d.pi)({},l),{top:n.top,style:n.style,offsetX:n.offsetX,offsetY:n.offsetY}));return t!=="html"&&(yi.container=this.getComponentContainer(yi)),yi.animate=this.view.getOptions().animate&&yi.animate&&(0,f.U2)(n,"animate",yi.animate),yi.animateOption=(0,f.b$)({},ua,yi.animateOption,n.animateOption),yi},r.prototype.isTop=function(t){return(0,f.U2)(t,"top",!0)},r.prototype.getComponentContainer=function(t){return this.isTop(t)?this.foregroundContainer:this.backgroundContainer},r.prototype.getAnnotationTheme=function(t){return(0,f.U2)(this.view.getTheme(),["components","annotation",t],{})},r.prototype.updateOrCreate=function(t){var n=this.cache.get(this.getCacheKey(t));if(n){var i=t.type,a=this.getAnnotationTheme(i),o=this.getAnnotationCfg(i,t,a);o&&Nr(o,["container"]),n.component.update((0,d.pi)((0,d.pi)({},o||{}),{visible:!!o})),(0,f.q9)(Ys,t.type)&&n.component.render()}else n=this.createAnnotation(t),n&&(n.component.init(),(0,f.q9)(Ys,t.type)&&n.component.render());return n},r.prototype.syncCache=function(t){var n=this,i=new Map(this.cache);return t.forEach(function(a,o){i.set(o,a)}),i.forEach(function(a,o){(0,f.sE)(n.option,function(s){return o===n.getCacheKey(s)})||(a.component.destroy(),i.delete(o))}),i},r.prototype.getCacheKey=function(t){return t},r}(la),eT=tT;function gd(e,r){var t=(0,f.b$)({},(0,f.U2)(e,["components","axis","common"]),(0,f.U2)(e,["components","axis",r]));return(0,f.U2)(t,["grid"],{})}function Xs(e,r,t,n){var i=[],a=r.getTicks();return e.isPolar&&a.push({value:1,text:"",tickValue:""}),a.reduce(function(o,s,l){var u=s.value;if(n)i.push({points:[e.convert(t==="y"?{x:0,y:u}:{x:u,y:0}),e.convert(t==="y"?{x:1,y:u}:{x:u,y:1})]});else if(l){var c=o.value,h=(c+u)/2;i.push({points:[e.convert(t==="y"?{x:0,y:h}:{x:h,y:0}),e.convert(t==="y"?{x:1,y:h}:{x:h,y:1})]})}return s},a[0]),i}function mc(e,r,t,n,i){var a=r.values.length,o=[],s=t.getTicks();return s.reduce(function(l,u){var c=l?l.value:u.value,h=u.value,v=(c+h)/2;return i==="x"?o.push({points:[e.convert({x:n?h:v,y:0}),e.convert({x:n?h:v,y:1})]}):o.push({points:(0,f.UI)(Array(a+1),function(p,g){return e.convert({x:g/a,y:n?h:v})})}),u},s[0]),o}function yd(e,r){var t=(0,f.U2)(r,"grid");if(t===null)return!1;var n=(0,f.U2)(e,"grid");return!(t===void 0&&n===null)}var ci=["container"],md=(0,d.pi)((0,d.pi)({},ua),{appear:null}),rT=function(e){(0,d.ZT)(r,e);function r(t){var n=e.call(this,t)||this;return n.cache=new Map,n.gridContainer=n.view.getLayer(rt.BG).addGroup(),n.gridForeContainer=n.view.getLayer(rt.FORE).addGroup(),n.axisContainer=n.view.getLayer(rt.BG).addGroup(),n.axisForeContainer=n.view.getLayer(rt.FORE).addGroup(),n}return Object.defineProperty(r.prototype,"name",{get:function(){return"axis"},enumerable:!1,configurable:!0}),r.prototype.init=function(){},r.prototype.render=function(){this.update()},r.prototype.layout=function(){var t=this,n=this.view.getCoordinate();(0,f.S6)(this.getComponents(),function(i){var a=i.component,o=i.direction,s=i.type,l=i.extra,u=l.dim,c=l.scale,h=l.alignTick,v;if(s===St.AXIS)n.isPolar?u==="x"?v=n.isTransposed?ps(n,o):Mu(n):u==="y"&&(v=n.isTransposed?Mu(n):ps(n,o)):v=ps(n,o);else if(s===St.GRID)if(n.isPolar){var p=void 0;n.isTransposed?p=u==="x"?mc(n,t.view.getYScales()[0],c,h,u):Xs(n,c,u,h):p=u==="x"?Xs(n,c,u,h):mc(n,t.view.getXScale(),c,h,u),v={items:p,center:t.view.getCoordinate().getCenter()}}else v={items:Xs(n,c,u,h)};a.update(v)})},r.prototype.update=function(){this.option=this.view.getOptions().axes;var t=new Map;this.updateXAxes(t),this.updateYAxes(t);var n=new Map;this.cache.forEach(function(i,a){t.has(a)?n.set(a,i):i.component.destroy()}),this.cache=n},r.prototype.clear=function(){e.prototype.clear.call(this),this.cache.clear(),this.gridContainer.clear(),this.gridForeContainer.clear(),this.axisContainer.clear(),this.axisForeContainer.clear()},r.prototype.destroy=function(){e.prototype.destroy.call(this),this.gridContainer.remove(!0),this.gridForeContainer.remove(!0),this.axisContainer.remove(!0),this.axisForeContainer.remove(!0)},r.prototype.getComponents=function(){var t=[];return this.cache.forEach(function(n){t.push(n)}),t},r.prototype.updateXAxes=function(t){var n=this.view.getXScale();if(!(!n||n.isIdentity)){var i=gs(this.option,n.field);if(i!==!1){var a=Yh(i,J.BOTTOM),o=rt.BG,s="x",l=this.view.getCoordinate(),u=this.getId("axis",n.field),c=this.getId("grid",n.field);if(l.isRect){var h=this.cache.get(u);if(h){var v=this.getLineAxisCfg(n,i,a);Nr(v,ci),h.component.update(v),t.set(u,h)}else h=this.createLineAxis(n,i,o,a,s),this.cache.set(u,h),t.set(u,h);var p=this.cache.get(c);if(p){var v=this.getLineGridCfg(n,i,a,s);Nr(v,ci),p.component.update(v),t.set(c,p)}else p=this.createLineGrid(n,i,o,a,s),p&&(this.cache.set(c,p),t.set(c,p))}else if(l.isPolar){var h=this.cache.get(u);if(h){var v=l.isTransposed?this.getLineAxisCfg(n,i,J.RADIUS):this.getCircleAxisCfg(n,i,a);Nr(v,ci),h.component.update(v),t.set(u,h)}else{if(l.isTransposed){if((0,f.o8)(i))return;h=this.createLineAxis(n,i,o,J.RADIUS,s)}else h=this.createCircleAxis(n,i,o,a,s);this.cache.set(u,h),t.set(u,h)}var p=this.cache.get(c);if(p){var v=l.isTransposed?this.getCircleGridCfg(n,i,J.RADIUS,s):this.getLineGridCfg(n,i,J.CIRCLE,s);Nr(v,ci),p.component.update(v),t.set(c,p)}else{if(l.isTransposed){if((0,f.o8)(i))return;p=this.createCircleGrid(n,i,o,J.RADIUS,s)}else p=this.createLineGrid(n,i,o,J.CIRCLE,s);p&&(this.cache.set(c,p),t.set(c,p))}}}}},r.prototype.updateYAxes=function(t){var n=this,i=this.view.getYScales();(0,f.S6)(i,function(a,o){if(!(!a||a.isIdentity)){var s=a.field,l=gs(n.option,s);if(l!==!1){var u=rt.BG,c="y",h=n.getId("axis",s),v=n.getId("grid",s),p=n.view.getCoordinate();if(p.isRect){var g=Yh(l,o===0?J.LEFT:J.RIGHT),y=n.cache.get(h);if(y){var x=n.getLineAxisCfg(a,l,g);Nr(x,ci),y.component.update(x),t.set(h,y)}else y=n.createLineAxis(a,l,u,g,c),n.cache.set(h,y),t.set(h,y);var m=n.cache.get(v);if(m){var x=n.getLineGridCfg(a,l,g,c);Nr(x,ci),m.component.update(x),t.set(v,m)}else m=n.createLineGrid(a,l,u,g,c),m&&(n.cache.set(v,m),t.set(v,m))}else if(p.isPolar){var y=n.cache.get(h);if(y){var x=p.isTransposed?n.getCircleAxisCfg(a,l,J.CIRCLE):n.getLineAxisCfg(a,l,J.RADIUS);Nr(x,ci),y.component.update(x),t.set(h,y)}else{if(p.isTransposed){if((0,f.o8)(l))return;y=n.createCircleAxis(a,l,u,J.CIRCLE,c)}else y=n.createLineAxis(a,l,u,J.RADIUS,c);n.cache.set(h,y),t.set(h,y)}var m=n.cache.get(v);if(m){var x=p.isTransposed?n.getLineGridCfg(a,l,J.CIRCLE,c):n.getCircleGridCfg(a,l,J.RADIUS,c);Nr(x,ci),m.component.update(x),t.set(v,m)}else{if(p.isTransposed){if((0,f.o8)(l))return;m=n.createLineGrid(a,l,u,J.CIRCLE,c)}else m=n.createCircleGrid(a,l,u,J.RADIUS,c);m&&(n.cache.set(v,m),t.set(v,m))}}}}})},r.prototype.createLineAxis=function(t,n,i,a,o){var s={component:new uw(this.getLineAxisCfg(t,n,a)),layer:i,direction:a===J.RADIUS?J.NONE:a,type:St.AXIS,extra:{dim:o,scale:t}};return s.component.set("field",t.field),s.component.init(),s},r.prototype.createLineGrid=function(t,n,i,a,o){var s=this.getLineGridCfg(t,n,a,o);if(s){var l={component:new fw(s),layer:i,direction:J.NONE,type:St.GRID,extra:{dim:o,scale:t,alignTick:(0,f.U2)(s,"alignTick",!0)}};return l.component.init(),l}},r.prototype.createCircleAxis=function(t,n,i,a,o){var s={component:new cw(this.getCircleAxisCfg(t,n,a)),layer:i,direction:a,type:St.AXIS,extra:{dim:o,scale:t}};return s.component.set("field",t.field),s.component.init(),s},r.prototype.createCircleGrid=function(t,n,i,a,o){var s=this.getCircleGridCfg(t,n,a,o);if(s){var l={component:new hw(s),layer:i,direction:J.NONE,type:St.GRID,extra:{dim:o,scale:t,alignTick:(0,f.U2)(s,"alignTick",!0)}};return l.component.init(),l}},r.prototype.getLineAxisCfg=function(t,n,i){var a=(0,f.U2)(n,["top"])?this.axisForeContainer:this.axisContainer,o=this.view.getCoordinate(),s=ps(o,i),l=Xh(t,n),u=ds(this.view.getTheme(),i),c=(0,f.U2)(n,["title"])?(0,f.b$)({title:{style:{text:l}}},{title:Gh(this.view.getTheme(),i,n.title)},n):n,h=(0,f.b$)((0,d.pi)((0,d.pi)({container:a},s),{ticks:t.getTicks().map(function(M){return{id:"".concat(M.tickValue),name:M.text,value:M.value}}),verticalFactor:o.isPolar?Hh(s,o.getCenter())*-1:Hh(s,o.getCenter()),theme:u}),u,c),v=this.getAnimateCfg(h),p=v.animate,g=v.animateOption;h.animateOption=g,h.animate=p;var y=Uh(s),x=(0,f.U2)(h,"verticalLimitLength",y?1/3:1/2);if(x<=1){var m=this.view.getCanvas().get("width"),w=this.view.getCanvas().get("height");h.verticalLimitLength=x*(y?m:w)}return h},r.prototype.getLineGridCfg=function(t,n,i,a){if(!!yd(ds(this.view.getTheme(),i),n)){var o=gd(this.view.getTheme(),i),s=(0,f.b$)({container:(0,f.U2)(n,["top"])?this.gridForeContainer:this.gridContainer},o,(0,f.U2)(n,"grid"),this.getAnimateCfg(n));return s.items=Xs(this.view.getCoordinate(),t,a,(0,f.U2)(s,"alignTick",!0)),s}},r.prototype.getCircleAxisCfg=function(t,n,i){var a=(0,f.U2)(n,["top"])?this.axisForeContainer:this.axisContainer,o=this.view.getCoordinate(),s=t.getTicks().map(function(y){return{id:"".concat(y.tickValue),name:y.text,value:y.value}});!t.isCategory&&Math.abs(o.endAngle-o.startAngle)===Math.PI*2&&s.length&&(s[s.length-1].name="");var l=Xh(t,n),u=ds(this.view.getTheme(),J.CIRCLE),c=(0,f.U2)(n,["title"])?(0,f.b$)({title:{style:{text:l}}},{title:Gh(this.view.getTheme(),i,n.title)},n):n,h=(0,f.b$)((0,d.pi)((0,d.pi)({container:a},Mu(this.view.getCoordinate())),{ticks:s,verticalFactor:1,theme:u}),u,c),v=this.getAnimateCfg(h),p=v.animate,g=v.animateOption;return h.animate=p,h.animateOption=g,h},r.prototype.getCircleGridCfg=function(t,n,i,a){if(!!yd(ds(this.view.getTheme(),i),n)){var o=gd(this.view.getTheme(),J.RADIUS),s=(0,f.b$)({container:(0,f.U2)(n,["top"])?this.gridForeContainer:this.gridContainer,center:this.view.getCoordinate().getCenter()},o,(0,f.U2)(n,"grid"),this.getAnimateCfg(n)),l=(0,f.U2)(s,"alignTick",!0),u=a==="x"?this.view.getYScales()[0]:this.view.getXScale();return s.items=mc(this.view.getCoordinate(),u,t,l,a),s}},r.prototype.getId=function(t,n){var i=this.view.getCoordinate();return"".concat(t,"-").concat(n,"-").concat(i.type)},r.prototype.getAnimateCfg=function(t){return{animate:this.view.getOptions().animate&&(0,f.U2)(t,"animate"),animateOption:t&&t.animateOption?(0,f.b$)({},md,t.animateOption):md}},r}(la),nT=rT;function fi(e,r,t){return t===J.TOP?[e.minX+e.width/2-r.width/2,e.minY]:t===J.BOTTOM?[e.minX+e.width/2-r.width/2,e.maxY-r.height]:t===J.LEFT?[e.minX,e.minY+e.height/2-r.height/2]:t===J.RIGHT?[e.maxX-r.width,e.minY+e.height/2-r.height/2]:t===J.TOP_LEFT||t===J.LEFT_TOP?[e.tl.x,e.tl.y]:t===J.TOP_RIGHT||t===J.RIGHT_TOP?[e.tr.x-r.width,e.tr.y]:t===J.BOTTOM_LEFT||t===J.LEFT_BOTTOM?[e.bl.x,e.bl.y-r.height]:t===J.BOTTOM_RIGHT||t===J.RIGHT_BOTTOM?[e.br.x-r.width,e.br.y-r.height]:[0,0]}function iT(e,r){if(r.isTransposed)switch(e){case DIRECTION.BOTTOM:return DIRECTION.LEFT;case DIRECTION.LEFT:return DIRECTION.BOTTOM;case DIRECTION.RIGHT:return DIRECTION.TOP;case DIRECTION.TOP:return DIRECTION.RIGHT}return e}function xd(e){return e===DIRECTION.LEFT?DIRECTION.RIGHT:e===DIRECTION.RIGHT?DIRECTION.LEFT:e}function wd(e){return e===DIRECTION.TOP?DIRECTION.BOTTOM:e===DIRECTION.BOTTOM?DIRECTION.TOP:e}function aT(e,r){var t=r.matrix[0],n=r.matrix[4],i=e;return t<0&&(i=xd(i)),n<0&&(i=wd(i)),i}function oT(e,r){var t=e;return r.isReflect("x")&&(t=xd(t)),r.isReflect("y")&&(t=wd(t)),t}function B5(e,r){var t=e;return t=iT(t,r),t=aT(t,r),t=oT(t,r),t}function Md(e,r){return(0,f.jn)(e)?e===!1?!1:{}:(0,f.U2)(e,[r],e)}function Ws(e){return(0,f.U2)(e,"position",J.BOTTOM)}var sT=function(e){(0,d.ZT)(r,e);function r(t){var n=e.call(this,t)||this;return n.container=n.view.getLayer(rt.FORE).addGroup(),n}return Object.defineProperty(r.prototype,"name",{get:function(){return"legend"},enumerable:!1,configurable:!0}),r.prototype.init=function(){},r.prototype.render=function(){this.update()},r.prototype.layout=function(){var t=this;this.layoutBBox=this.view.viewBBox,(0,f.S6)(this.components,function(n){var i=n.component,a=n.direction,o=Nu(a),s=i.get("maxWidthRatio"),l=i.get("maxHeightRatio"),u=t.getCategoryLegendSizeCfg(o,s,l),c=i.get("maxWidth"),h=i.get("maxHeight");i.update({maxWidth:Math.min(u.maxWidth,c||0),maxHeight:Math.min(u.maxHeight,h||0)});var v=i.get("padding"),p=i.getLayoutBBox(),g=new Pr(p.x,p.y,p.width,p.height).expand(v),y=(0,d.CR)(fi(t.view.viewBBox,g,a),2),x=y[0],m=y[1],w=(0,d.CR)(fi(t.layoutBBox,g,a),2),M=w[0],S=w[1],A=0,D=0;a.startsWith("top")||a.startsWith("bottom")?(A=x,D=S):(A=M,D=m),i.setLocation({x:A+v[3],y:D+v[0]}),t.layoutBBox=t.layoutBBox.cut(g,a)})},r.prototype.update=function(){var t=this;this.option=this.view.getOptions().legends;var n={},i=function(v,p,g){var y=t.getId(g.field),x=t.getComponentById(y);if(x){var m=void 0,w=Md(t.option,g.field);w!==!1&&((0,f.U2)(w,"custom")?m=t.getCategoryCfg(v,p,g,w,!0):g.isLinear?m=t.getContinuousCfg(v,p,g,w):g.isCategory&&(m=t.getCategoryCfg(v,p,g,w))),m&&(Nr(m,["container"]),x.direction=Ws(w),x.component.update(m),n[y]=!0)}else{var M=t.createFieldLegend(v,p,g);M&&(M.component.init(),t.components.push(M),n[y]=!0)}};if((0,f.U2)(this.option,"custom")){var a="global-custom",o=this.getComponentById(a);if(o){var s=this.getCategoryCfg(void 0,void 0,void 0,this.option,!0);Nr(s,["container"]),o.component.update(s),n[a]=!0}else{var l=this.createCustomLegend(void 0,void 0,void 0,this.option);if(l){l.init();var u=rt.FORE,c=Ws(this.option);this.components.push({id:a,component:l,layer:u,direction:c,type:St.LEGEND,extra:void 0}),n[a]=!0}}}else this.loopLegends(i);var h=[];(0,f.S6)(this.getComponents(),function(v){n[v.id]?h.push(v):v.component.destroy()}),this.components=h},r.prototype.clear=function(){e.prototype.clear.call(this),this.container.clear()},r.prototype.destroy=function(){e.prototype.destroy.call(this),this.container.remove(!0)},r.prototype.getGeometries=function(t){var n=this,i=t.geometries;return(0,f.S6)(t.views,function(a){i=i.concat(n.getGeometries(a))}),i},r.prototype.loopLegends=function(t){var n=this.view.getRootView()===this.view;if(!!n){var i=this.getGeometries(this.view),a={};(0,f.S6)(i,function(o){var s=o.getGroupAttributes();(0,f.S6)(s,function(l){var u=l.getScale(l.type);!u||u.type==="identity"||a[u.field]||(t(o,l,u),a[u.field]=!0)})})}},r.prototype.createFieldLegend=function(t,n,i){var a,o=Md(this.option,i.field),s=rt.FORE,l=Ws(o);if(o!==!1&&((0,f.U2)(o,"custom")?a=this.createCustomLegend(t,n,i,o):i.isLinear?a=this.createContinuousLegend(t,n,i,o):i.isCategory&&(a=this.createCategoryLegend(t,n,i,o))),a)return a.set("field",i.field),{id:this.getId(i.field),component:a,layer:s,direction:l,type:St.LEGEND,extra:{scale:i}}},r.prototype.createCustomLegend=function(t,n,i,a){var o=this.getCategoryCfg(t,n,i,a,!0);return new Dh(o)},r.prototype.createContinuousLegend=function(t,n,i,a){var o=this.getContinuousCfg(t,n,i,Nr(a,["value"]));return new vw(o)},r.prototype.createCategoryLegend=function(t,n,i,a){var o=this.getCategoryCfg(t,n,i,a);return new Dh(o)},r.prototype.getContinuousCfg=function(t,n,i,a){var o=i.getTicks(),s=(0,f.sE)(o,function(y){return y.value===0}),l=(0,f.sE)(o,function(y){return y.value===1}),u=o.map(function(y){var x=y.value,m=y.tickValue,w=n.mapping(i.invert(x)).join("");return{value:m,attrValue:w,color:w,scaleValue:x}});s||u.push({value:i.min,attrValue:n.mapping(i.invert(0)).join(""),color:n.mapping(i.invert(0)).join(""),scaleValue:0}),l||u.push({value:i.max,attrValue:n.mapping(i.invert(1)).join(""),color:n.mapping(i.invert(1)).join(""),scaleValue:1}),u.sort(function(y,x){return y.value-x.value});var c={min:(0,f.YM)(u).value,max:(0,f.Z$)(u).value,colors:[],rail:{type:n.type},track:{}};n.type==="size"&&(c.track={style:{fill:n.type==="size"?this.view.getTheme().defaultColor:void 0}}),n.type==="color"&&(c.colors=u.map(function(y){return y.attrValue}));var h=this.container,v=Ws(a),p=Nu(v),g=(0,f.U2)(a,"title");return g&&(g=(0,f.b$)({text:Xa(i)},g)),c.container=h,c.layout=p,c.title=g,c.animateOption=ua,this.mergeLegendCfg(c,a,"continuous")},r.prototype.getCategoryCfg=function(t,n,i,a,o){var s=this.container,l=(0,f.U2)(a,"position",J.BOTTOM),u=Kv(this.view.getTheme(),l),c=(0,f.U2)(u,["marker"]),h=(0,f.U2)(a,"marker"),v=Nu(l),p=(0,f.U2)(u,["pageNavigator"]),g=(0,f.U2)(a,"pageNavigator"),y=o?w2(c,h,a.items):jv(this.view,t,n,c,h),x=(0,f.U2)(a,"title");x&&(x=(0,f.b$)({text:i?Xa(i):""},x));var m=(0,f.U2)(a,"maxWidthRatio"),w=(0,f.U2)(a,"maxHeightRatio"),M=this.getCategoryLegendSizeCfg(v,m,w);M.container=s,M.layout=v,M.items=y,M.title=x,M.animateOption=ua,M.pageNavigator=(0,f.b$)({},p,g);var S=this.mergeLegendCfg(M,a,l);S.reversed&&S.items.reverse();var A=(0,f.U2)(S,"maxItemWidth");return A&&A<=1&&(S.maxItemWidth=this.view.viewBBox.width*A),S},r.prototype.mergeLegendCfg=function(t,n,i){var a=i.split("-")[0],o=Kv(this.view.getTheme(),a);return(0,f.b$)({},o,t,n)},r.prototype.getId=function(t){return"".concat(this.name,"-").concat(t)},r.prototype.getComponentById=function(t){return(0,f.sE)(this.components,function(n){return n.id===t})},r.prototype.getCategoryLegendSizeCfg=function(t,n,i){n===void 0&&(n=Dt),i===void 0&&(i=Dt);var a=this.view.viewBBox,o=a.width,s=a.height;return t==="vertical"?{maxWidth:o*n,maxHeight:s}:{maxWidth:o,maxHeight:s*i}},r}(la),lT=sT,uT=function(e){(0,d.ZT)(r,e);function r(t){var n=e.call(this,t)||this;return n.onChangeFn=f.ZT,n.resetMeasure=function(){n.clear()},n.onValueChange=function(i){var a=(0,d.CR)(i,2),o=a[0],s=a[1];n.start=o,n.end=s,n.changeViewData(o,s)},n.container=n.view.getLayer(rt.FORE).addGroup(),n.onChangeFn=(0,f.P2)(n.onValueChange,20,{leading:!0}),n.width=0,n.view.on(X.BEFORE_CHANGE_DATA,n.resetMeasure),n.view.on(X.BEFORE_CHANGE_SIZE,n.resetMeasure),n}return Object.defineProperty(r.prototype,"name",{get:function(){return"slider"},enumerable:!1,configurable:!0}),r.prototype.destroy=function(){e.prototype.destroy.call(this),this.view.off(X.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(X.BEFORE_CHANGE_SIZE,this.resetMeasure)},r.prototype.init=function(){},r.prototype.render=function(){this.option=this.view.getOptions().slider;var t=this.getSliderCfg(),n=t.start,i=t.end;(0,f.UM)(this.start)&&(this.start=n,this.end=i);var a=this.view.getOptions().data;this.option&&!(0,f.xb)(a)?this.slider?this.slider=this.updateSlider():(this.slider=this.createSlider(),this.slider.component.on("sliderchange",this.onChangeFn)):this.slider&&(this.slider.component.destroy(),this.slider=void 0)},r.prototype.layout=function(){var t=this;if(this.option&&!this.width&&(this.measureSlider(),setTimeout(function(){t.view.destroyed||t.changeViewData(t.start,t.end)},0)),this.slider){var n=this.view.coordinateBBox.width,i=this.slider.component.get("padding"),a=(0,d.CR)(i,4),o=a[0],s=a[1],l=a[2],u=a[3],c=this.slider.component.getLayoutBBox(),h=new Pr(c.x,c.y,Math.min(c.width,n),c.height).expand(i),v=this.getMinMaxText(this.start,this.end),p=v.minText,g=v.maxText,y=(0,d.CR)(fi(this.view.viewBBox,h,J.BOTTOM),2),x=y[0],m=y[1],w=(0,d.CR)(fi(this.view.coordinateBBox,h,J.BOTTOM),2),M=w[0],S=w[1];this.slider.component.update((0,d.pi)((0,d.pi)({},this.getSliderCfg()),{x:M+u,y:m+o,width:this.width,start:this.start,end:this.end,minText:p,maxText:g})),this.view.viewBBox=this.view.viewBBox.cut(h,J.BOTTOM)}},r.prototype.update=function(){this.render()},r.prototype.createSlider=function(){var t=this.getSliderCfg(),n=new ow((0,d.pi)({container:this.container},t));return n.init(),{component:n,layer:rt.FORE,direction:J.BOTTOM,type:St.SLIDER}},r.prototype.updateSlider=function(){var t=this.getSliderCfg();if(this.width){var n=this.getMinMaxText(this.start,this.end),i=n.minText,a=n.maxText;t=(0,d.pi)((0,d.pi)({},t),{width:this.width,start:this.start,end:this.end,minText:i,maxText:a})}return this.slider.component.update(t),this.slider},r.prototype.measureSlider=function(){var t=this.getSliderCfg().width;this.width=t},r.prototype.getSliderCfg=function(){var t={height:16,start:0,end:1,minText:"",maxText:"",x:0,y:0,width:this.view.coordinateBBox.width};if((0,f.Kn)(this.option)){var n=(0,d.pi)({data:this.getData()},(0,f.U2)(this.option,"trendCfg",{}));t=(0,f.b$)({},t,this.getThemeOptions(),this.option),t=(0,d.pi)((0,d.pi)({},t),{trendCfg:n})}return t.start=(0,f.uZ)(Math.min((0,f.UM)(t.start)?0:t.start,(0,f.UM)(t.end)?1:t.end),0,1),t.end=(0,f.uZ)(Math.max((0,f.UM)(t.start)?0:t.start,(0,f.UM)(t.end)?1:t.end),0,1),t},r.prototype.getData=function(){var t=this.view.getOptions().data,n=(0,d.CR)(this.view.getYScales(),1),i=n[0],a=this.view.getGroupScales();if(a.length){var o=a[0],s=o.field,l=o.ticks;return t.reduce(function(u,c){return c[s]===l[0]&&u.push(c[i.field]),u},[])}return t.map(function(u){return u[i.field]||0})},r.prototype.getThemeOptions=function(){var t=this.view.getTheme();return(0,f.U2)(t,["components","slider","common"],{})},r.prototype.getMinMaxText=function(t,n){var i=this.view.getOptions().data,a=this.view.getXScale(),o=!0,s=(0,f.I)(i,a.field);a.isLinear&&(s=s.sort());var l=o?s:s.reverse(),u=(0,f.dp)(i);if(!a||!u)return{};var c=(0,f.dp)(l),h=Math.round(t*(c-1)),v=Math.round(n*(c-1)),p=(0,f.U2)(l,[h]),g=(0,f.U2)(l,[v]),y=this.getSliderCfg().formatter;return y&&(p=y(p,i[h],h),g=y(g,i[v],v)),{minText:p,maxText:g}},r.prototype.changeViewData=function(t,n){var i=this.view.getOptions().data,a=this.view.getXScale(),o=(0,f.dp)(i);if(!(!a||!o)){var s=!0,l=(0,f.I)(i,a.field),u=this.view.getXScale().isLinear?l.sort(function(g,y){return Number(g)-Number(y)}):l,c=s?u:u.reverse(),h=(0,f.dp)(c),v=Math.round(t*(h-1)),p=Math.round(n*(h-1));this.view.filter(a.field,function(g,y){var x=c.indexOf(g);return x>-1?ra(x,v,p):!0}),this.view.render(!0)}},r.prototype.getComponents=function(){return this.slider?[this.slider]:[]},r.prototype.clear=function(){this.slider&&(this.slider.component.destroy(),this.slider=void 0),this.width=0,this.start=void 0,this.end=void 0},r}(la),cT=uT,Zs=0,Sd=8,fT=32,hT=20,vT=function(e){(0,d.ZT)(r,e);function r(t){var n=e.call(this,t)||this;return n.onChangeFn=f.ZT,n.resetMeasure=function(){n.clear()},n.onValueChange=function(i){var a=i.ratio,o=n.getValidScrollbarCfg().animate;n.ratio=(0,f.uZ)(a,0,1);var s=n.view.getOptions().animate;o||n.view.animate(!1),n.changeViewData(n.getScrollRange(),!0),n.view.animate(s)},n.container=n.view.getLayer(rt.FORE).addGroup(),n.onChangeFn=(0,f.P2)(n.onValueChange,20,{leading:!0}),n.trackLen=0,n.thumbLen=0,n.ratio=0,n.view.on(X.BEFORE_CHANGE_DATA,n.resetMeasure),n.view.on(X.BEFORE_CHANGE_SIZE,n.resetMeasure),n}return Object.defineProperty(r.prototype,"name",{get:function(){return"scrollbar"},enumerable:!1,configurable:!0}),r.prototype.destroy=function(){e.prototype.destroy.call(this),this.view.off(X.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(X.BEFORE_CHANGE_SIZE,this.resetMeasure)},r.prototype.init=function(){},r.prototype.render=function(){this.option=this.view.getOptions().scrollbar,this.option?this.scrollbar?this.scrollbar=this.updateScrollbar():(this.scrollbar=this.createScrollbar(),this.scrollbar.component.on("scrollchange",this.onChangeFn)):this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0)},r.prototype.layout=function(){var t=this;if(this.option&&!this.trackLen&&(this.measureScrollbar(),setTimeout(function(){t.view.destroyed||t.changeViewData(t.getScrollRange(),!0)})),this.scrollbar){var n=this.view.coordinateBBox.width,i=this.scrollbar.component.get("padding"),a=this.scrollbar.component.getLayoutBBox(),o=new Pr(a.x,a.y,Math.min(a.width,n),a.height).expand(i),s=this.getScrollbarComponentCfg(),l=void 0,u=void 0;if(s.isHorizontal){var c=(0,d.CR)(fi(this.view.viewBBox,o,J.BOTTOM),2),h=c[0],v=c[1],p=(0,d.CR)(fi(this.view.coordinateBBox,o,J.BOTTOM),2),g=p[0],y=p[1];l=g,u=v}else{var x=(0,d.CR)(fi(this.view.viewBBox,o,J.RIGHT),2),h=x[0],v=x[1],m=(0,d.CR)(fi(this.view.viewBBox,o,J.RIGHT),2),g=m[0],y=m[1];l=g,u=v}l+=i[3],u+=i[0],this.trackLen?this.scrollbar.component.update((0,d.pi)((0,d.pi)({},s),{x:l,y:u,trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio})):this.scrollbar.component.update((0,d.pi)((0,d.pi)({},s),{x:l,y:u})),this.view.viewBBox=this.view.viewBBox.cut(o,s.isHorizontal?J.BOTTOM:J.RIGHT)}},r.prototype.update=function(){this.render()},r.prototype.getComponents=function(){return this.scrollbar?[this.scrollbar]:[]},r.prototype.clear=function(){this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0),this.trackLen=0,this.thumbLen=0,this.ratio=0,this.cnt=0,this.step=0,this.data=void 0,this.xScaleCfg=void 0,this.yScalesCfg=[]},r.prototype.setValue=function(t){this.onValueChange({ratio:t})},r.prototype.getValue=function(){return this.ratio},r.prototype.getThemeOptions=function(){var t=this.view.getTheme();return(0,f.U2)(t,["components","scrollbar","common"],{})},r.prototype.getScrollbarTheme=function(t){var n=(0,f.U2)(this.view.getTheme(),["components","scrollbar"]),i=t||{},a=i.thumbHighlightColor,o=(0,d._T)(i,["thumbHighlightColor"]);return{default:(0,f.b$)({},(0,f.U2)(n,["default","style"],{}),o),hover:(0,f.b$)({},(0,f.U2)(n,["hover","style"],{}),{thumbColor:a})}},r.prototype.measureScrollbar=function(){var t=this.view.getXScale(),n=this.view.getYScales().slice();this.data=this.getScrollbarData(),this.step=this.getStep(),this.cnt=this.getCnt();var i=this.getScrollbarComponentCfg(),a=i.trackLen,o=i.thumbLen;this.trackLen=a,this.thumbLen=o,this.xScaleCfg={field:t.field,values:t.values||[]},this.yScalesCfg=n},r.prototype.getScrollRange=function(){var t=Math.floor((this.cnt-this.step)*(0,f.uZ)(this.ratio,0,1)),n=Math.min(t+this.step-1,this.cnt-1);return[t,n]},r.prototype.changeViewData=function(t,n){var i=this,a=(0,d.CR)(t,2),o=a[0],s=a[1],l=this.getValidScrollbarCfg().type,u=l!=="vertical",c=(0,f.I)(this.data,this.xScaleCfg.field),h=this.view.getXScale().isLinear?c.sort(function(p,g){return Number(p)-Number(g)}):c,v=u?h:h.reverse();this.yScalesCfg.forEach(function(p){i.view.scale(p.field,{formatter:p.formatter,type:p.type,min:p.min,max:p.max,tickMethod:p.tickMethod})}),this.view.filter(this.xScaleCfg.field,function(p){var g=v.indexOf(p);return g>-1?ra(g,o,s):!0}),this.view.render(!0)},r.prototype.createScrollbar=function(){var t=this.getValidScrollbarCfg().type,n=t!=="vertical",i=new lw((0,d.pi)((0,d.pi)({container:this.container},this.getScrollbarComponentCfg()),{x:0,y:0}));return i.init(),{component:i,layer:rt.FORE,direction:n?J.BOTTOM:J.RIGHT,type:St.SCROLLBAR}},r.prototype.updateScrollbar=function(){var t=this.getScrollbarComponentCfg(),n=this.trackLen?(0,d.pi)((0,d.pi)({},t),{trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio}):(0,d.pi)({},t);return this.scrollbar.component.update(n),this.scrollbar},r.prototype.getStep=function(){if(this.step)return this.step;var t=this.view.coordinateBBox,n=this.getValidScrollbarCfg(),i=n.type,a=n.categorySize,o=i!=="vertical";return Math.floor((o?t.width:t.height)/a)},r.prototype.getCnt=function(){if(this.cnt)return this.cnt;var t=this.view.getXScale(),n=this.getScrollbarData(),i=(0,f.I)(n,t.field);return(0,f.dp)(i)},r.prototype.getScrollbarComponentCfg=function(){var t=this.view,n=t.coordinateBBox,i=t.viewBBox,a=this.getValidScrollbarCfg(),o=a.type,s=a.padding,l=a.width,u=a.height,c=a.style,h=o!=="vertical",v=(0,d.CR)(s,4),p=v[0],g=v[1],y=v[2],x=v[3],m=h?{x:n.minX+x,y:i.maxY-u-y}:{x:i.maxX-l-g,y:n.minY+p},w=this.getStep(),M=this.getCnt(),S=h?n.width-x-g:n.height-p-y,A=Math.max(S*(0,f.uZ)(w/M,0,1),hT);return(0,d.pi)((0,d.pi)({},this.getThemeOptions()),{x:m.x,y:m.y,size:h?u:l,isHorizontal:h,trackLen:S,thumbLen:A,thumbOffset:0,theme:this.getScrollbarTheme(c)})},r.prototype.getValidScrollbarCfg=function(){var t={type:"horizontal",categorySize:fT,width:Sd,height:Sd,padding:[0,0,0,0],animate:!0,style:{}};return(0,f.Kn)(this.option)&&(t=(0,d.pi)((0,d.pi)({},t),this.option)),(!(0,f.Kn)(this.option)||!this.option.padding)&&(t.padding=t.type==="horizontal"?[Zs,0,Zs,0]:[0,Zs,0,Zs]),t},r.prototype.getScrollbarData=function(){var t=this.view.getCoordinate(),n=this.getValidScrollbarCfg(),i=this.view.getOptions().data||[];return t.isReflect("y")&&n.type==="vertical"&&(i=(0,d.ev)([],(0,d.CR)(i),!1).reverse()),i},r}(la),pT=vT,dT={fill:"#CCD6EC",opacity:.3};function gT(e,r,t){var n,i,a,o,s,l,u=NM(e,r,t);if(u.length){u=(0,f.xH)(u);try{for(var c=(0,d.XA)(u),h=c.next();!h.done;h=c.next()){var v=h.value;try{for(var p=(a=void 0,(0,d.XA)(v)),g=p.next();!g.done;g=p.next()){var y=g.value,x=y.mappingData,m=x.x,w=x.y;y.x=(0,f.kJ)(m)?m[m.length-1]:m,y.y=(0,f.kJ)(w)?w[w.length-1]:w}}catch(ot){a={error:ot}}finally{try{g&&!g.done&&(o=p.return)&&o.call(p)}finally{if(a)throw a.error}}}}catch(ot){n={error:ot}}finally{try{h&&!h.done&&(i=c.return)&&i.call(c)}finally{if(n)throw n.error}}var M=t.shared;if(M===!1&&u.length>1){var S=u[0],A=Math.abs(r.y-S[0].y);try{for(var D=(0,d.XA)(u),V=D.next();!V.done;V=D.next()){var K=V.value,Mt=Math.abs(r.y-K[0].y);Mt<=A&&(S=K,A=Mt)}}catch(ot){s={error:ot}}finally{try{V&&!V.done&&(l=D.return)&&l.call(D)}finally{if(s)throw s.error}}u=[S]}return(0,f.jj)((0,f.xH)(u))}return[]}var yT=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.show=function(t){var n=this.context.view,i=this.context.event,a=n.getController("tooltip").getTooltipCfg(),o=gT(n,{x:i.x,y:i.y},a);if(!(0,f.Xy)(o,this.items)&&(this.items=o,o.length)){var s=n.getXScale().field,l=o[0].data[s],u=[],c=n.geometries;if((0,f.S6)(c,function(fe){if(fe.type==="interval"||fe.type==="schema"){var ue=fe.getElementsBy(function(he){var Te=he.getData();return Te[s]===l});u=u.concat(ue)}}),u.length){var h=n.getCoordinate(),v=u[0].shape.getCanvasBBox(),p=u[0].shape.getCanvasBBox(),g=v;(0,f.S6)(u,function(fe){var ue=fe.shape.getCanvasBBox();h.isTransposed?(ue.minY<v.minY&&(v=ue),ue.maxY>p.maxY&&(p=ue)):(ue.minX<v.minX&&(v=ue),ue.maxX>p.maxX&&(p=ue)),g.x=Math.min(ue.minX,g.minX),g.y=Math.min(ue.minY,g.minY),g.width=Math.max(ue.maxX,g.maxX)-g.x,g.height=Math.max(ue.maxY,g.maxY)-g.y});var y=n.backgroundGroup,x=n.coordinateBBox,m=void 0;if(h.isRect){var w=n.getXScale(),M=t||{},S=M.appendRatio,A=M.appendWidth;(0,f.UM)(A)&&(S=(0,f.UM)(S)?w.isLinear?0:.25:S,A=h.isTransposed?S*p.height:S*v.width);var D=void 0,V=void 0,K=void 0,Mt=void 0;h.isTransposed?(D=x.minX,V=Math.min(p.minY,v.minY)-A,K=x.width,Mt=g.height+A*2):(D=Math.min(v.minX,p.minX)-A,V=x.minY,K=g.width+A*2,Mt=x.height),m=[["M",D,V],["L",D+K,V],["L",D+K,V+Mt],["L",D,V+Mt],["Z"]]}else{var ot=(0,f.YM)(u),Lt=(0,f.Z$)(u),Qt=Ga(ot.getModel(),h).startAngle,ge=Ga(Lt.getModel(),h).endAngle,we=h.getCenter(),Ae=h.getRadius(),zt=h.innerRadius*Ae;m=ti(we.x,we.y,Ae,Qt,ge,zt)}if(this.regionPath)this.regionPath.attr("path",m),this.regionPath.show();else{var ie=(0,f.U2)(t,"style",dT);this.regionPath=y.addShape({type:"path",name:"active-region",capture:!1,attrs:(0,d.pi)((0,d.pi)({},ie),{path:m})})}}}},r.prototype.hide=function(){this.regionPath&&this.regionPath.hide(),this.items=null},r.prototype.destroy=function(){this.hide(),this.regionPath&&this.regionPath.remove(!0),e.prototype.destroy.call(this)},r}(ar),mT=yT,xT=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.timeStamp=0,t}return r.prototype.show=function(){var t=this.context,n=t.event,i=t.view,a=i.isTooltipLocked();if(!a){var o=this.timeStamp,s=+new Date,l=(0,f.U2)(t.view.getOptions(),"tooltip.showDelay",16);if(s-o>l){var u=this.location,c={x:n.x,y:n.y};(!u||!(0,f.Xy)(u,c))&&this.showTooltip(i,c),this.timeStamp=s,this.location=c}}},r.prototype.hide=function(){var t=this.context.view,n=t.getController("tooltip"),i=this.context.event,a=i.clientX,o=i.clientY;n.isCursorEntered({x:a,y:o})||t.isTooltipLocked()||(this.hideTooltip(t),this.location=null)},r.prototype.showTooltip=function(t,n){t.showTooltip(n)},r.prototype.hideTooltip=function(t){t.hideTooltip()},r}(ar),Cd=xT,wT=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.showTooltip=function(t,n){var i=Mn(t);(0,f.S6)(i,function(a){var o=Fu(t,a,n);a.showTooltip(o)})},r.prototype.hideTooltip=function(t){var n=Mn(t);(0,f.S6)(n,function(i){i.hideTooltip()})},r}(Cd),MT=wT,ST=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.timeStamp=0,t}return r.prototype.destroy=function(){e.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},r.prototype.show=function(){var t=this.context,n=t.event,i=this.timeStamp,a=+new Date;if(a-i>16){var o=this.location,s={x:n.x,y:n.y};(!o||!(0,f.Xy)(o,s))&&this.showTooltip(s),this.timeStamp=a,this.location=s}},r.prototype.hide=function(){this.hideTooltip(),this.location=null},r.prototype.showTooltip=function(t){var n=this.context,i=n.event,a=i.target;if(a&&a.get("tip")){this.tooltip||this.renderTooltip();var o=a.get("tip");this.tooltip.update((0,d.pi)({title:o},t)),this.tooltip.show()}},r.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},r.prototype.renderTooltip=function(){var t,n=this.context.view,i=n.canvas,a={start:{x:0,y:0},end:{x:i.get("width"),y:i.get("height")}},o=n.getTheme(),s=(0,f.U2)(o,["components","tooltip","domStyles"],{}),l=new hs({parent:i.get("el").parentNode,region:a,visible:!1,crosshairs:null,domStyles:(0,d.pi)({},(0,f.b$)({},s,(t={},t[On]={"max-width":"50%"},t[Bn]={"word-break":"break-all"},t)))});l.init(),l.setCapture(!1),this.tooltip=l},r}(ar),CT=ST,bT=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName="",t}return r.prototype.hasState=function(t){return t.hasState(this.stateName)},r.prototype.setElementState=function(t,n){t.setState(this.stateName,n)},r.prototype.setState=function(){this.setStateEnable(!0)},r.prototype.clear=function(){var t=this.context.view;this.clearViewState(t)},r.prototype.clearViewState=function(t){var n=this,i=yv(t,this.stateName);(0,f.S6)(i,function(a){n.setElementState(a,!1)})},r}(ar),xc=bT;function bd(e){return(0,f.U2)(e.get("delegateObject"),"item")}var AT=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.ignoreListItemStates=["unchecked"],t}return r.prototype.isItemIgnore=function(t,n){var i=this.ignoreListItemStates,a=i.filter(function(o){return n.hasState(t,o)});return!!a.length},r.prototype.setStateByComponent=function(t,n,i){var a=this.context.view,o=t.get("field"),s=Cr(a);this.setElementsStateByItem(s,o,n,i)},r.prototype.setStateByElement=function(t,n){this.setElementState(t,n)},r.prototype.isMathItem=function(t,n,i){var a=this.context.view,o=oa(a,n),s=ln(t,n);return!(0,f.UM)(s)&&i.name===o.getText(s)},r.prototype.setElementsStateByItem=function(t,n,i,a){var o=this;(0,f.S6)(t,function(s){o.isMathItem(s,n,i)&&s.setState(o.stateName,a)})},r.prototype.setStateEnable=function(t){var n=ni(this.context);if(n)vv(this.context)&&this.setStateByElement(n,t);else{var i=_i(this.context);if($a(i)){var a=i.item,o=i.component;if(a&&o&&!this.isItemIgnore(a,o)){var s=this.context.event.gEvent;if(s&&s.fromShape&&s.toShape&&bd(s.fromShape)===bd(s.toShape))return;this.setStateByComponent(o,a,t)}}}},r.prototype.toggle=function(){var t=ni(this.context);if(t){var n=t.hasState(this.stateName);this.setElementState(t,!n)}},r.prototype.reset=function(){this.setStateEnable(!1)},r}(xc),wc=AT,TT=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName="active",t}return r.prototype.active=function(){this.setState()},r}(wc),ET=TT,_T=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.cache={},t}return r.prototype.getColorScale=function(t,n){var i=n.geometry.getAttribute("color");if(!i)return null;var a=t.getScaleByField(i.getFields()[0]);return a},r.prototype.getLinkPath=function(t,n){var i=this.context.view,a=i.getCoordinate().isTransposed,o=t.shape.getCanvasBBox(),s=n.shape.getCanvasBBox(),l=a?[["M",o.minX,o.minY],["L",s.minX,s.maxY],["L",s.maxX,s.maxY],["L",o.maxX,o.minY],["Z"]]:[["M",o.maxX,o.minY],["L",s.minX,s.minY],["L",s.minX,s.maxY],["L",o.maxX,o.maxY],["Z"]];return l},r.prototype.addLinkShape=function(t,n,i,a){var o={opacity:.4,fill:n.shape.attr("fill")};t.addShape({type:"path",attrs:(0,d.pi)((0,d.pi)({},(0,f.b$)({},o,(0,f.mf)(a)?a(o,n):a)),{path:this.getLinkPath(n,i)})})},r.prototype.linkByElement=function(t,n){var i=this,a=this.context.view,o=this.getColorScale(a,t);if(!!o){var s=ln(t,o.field);if(!this.cache[s]){var l=vM(a,o.field,s),u=this.linkGroup,c=u.addGroup();this.cache[s]=c;var h=l.length;(0,f.S6)(l,function(v,p){if(p<h-1){var g=l[p+1];i.addLinkShape(c,v,g,n)}})}}},r.prototype.removeLink=function(t){var n=this.getColorScale(this.context.view,t);if(!!n){var i=ln(t,n.field);this.cache[i]&&(this.cache[i].remove(),this.cache[i]=null)}},r.prototype.link=function(t){var n=this.context;this.linkGroup||(this.linkGroup=n.view.foregroundGroup.addGroup({id:"link-by-color-group",capture:!1}));var i=ni(n);i&&this.linkByElement(i,t==null?void 0:t.style)},r.prototype.unlink=function(){var t=ni(this.context);t&&this.removeLink(t)},r.prototype.clear=function(){this.linkGroup&&this.linkGroup.clear(),this.cache={}},r.prototype.destroy=function(){e.prototype.destroy.call(this),this.linkGroup&&this.linkGroup.remove()},r}(ar),FT=_T,IT=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.startPoint=null,t.endPoint=null,t.isStarted=!1,t.effectSiblings=!1,t.effectByRecord=!1,t}return r.prototype.getCurrentPoint=function(){var t=this.context.event;return{x:t.x,y:t.y}},r.prototype.start=function(){this.clear(),this.startPoint=this.getCurrentPoint(),this.isStarted=!0},r.prototype.getIntersectElements=function(){var t=null;if(ja(this.context))t=Eu(this.context,10);else{var n=this.startPoint,i=this.isStarted?this.getCurrentPoint():this.endPoint;if(!n||!i)return;var a={minX:Math.min(n.x,i.x),minY:Math.min(n.y,i.y),maxX:Math.max(n.x,i.x),maxY:Math.max(n.y,i.y)},o=this.context.view;t=Ss(o,a)}return t},r.prototype.setStateEnable=function(t){if(this.effectSiblings&&!this.effectByRecord)this.setSiblingsState(t);else{var n=Cr(this.context.view),i=this.getIntersectElements();i&&i.length?this.effectByRecord?this.setSiblingsStateByRecord(i,t):this.setElementsState(i,t,n):this.clear()}},r.prototype.setSiblingsStateByRecord=function(t,n){var i=this,a=this.context.view,o=Mn(a),s=t.map(function(c){return c.getModel().data}),l=a.getXScale().field,u=a.getYScales()[0].field;(0,f.S6)(o,function(c){var h=Cr(c),v=h.filter(function(p){var g=p.getModel().data;return Sv(s,g,l,u)});i.setElementsState(v,n,h)})},r.prototype.setSiblingsState=function(t){var n=this,i=this.context.view,a=Mn(i);ja(this.context)&&(0,f.S6)(a,function(o){var s=Cr(o),l=dv(n.context,o,10);l&&l.length?n.setElementsState(l,t,s):n.clearViewState(o)})},r.prototype.setElementsState=function(t,n,i){var a=this;(0,f.S6)(i,function(o){t.includes(o)?a.setElementState(o,n):a.setElementState(o,!1)})},r.prototype.end=function(){this.isStarted=!1,this.endPoint=this.getCurrentPoint()},r.prototype.clear=function(){var t=this,n=this.context.view;if(this.effectSiblings){var i=Mn(n);(0,f.S6)(i,function(a){t.clearViewState(a)})}else this.clearViewState(n)},r}(xc),Mc=IT,LT=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName="active",t}return r.prototype.active=function(){this.setState()},r}(Mc),PT=LT,kT=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.setStateEnable=function(t){var n=ni(this.context);if(n){if(!vv(this.context))return;t?(this.clear(),this.setElementState(n,!0)):this.hasState(n)&&this.setElementState(n,!1)}},r.prototype.toggle=function(){var t=ni(this.context);if(t){var n=this.hasState(t);n||this.clear(),this.setElementState(t,!n)}},r.prototype.reset=function(){this.setStateEnable(!1)},r}(xc),Sc=kT,DT=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName="active",t}return r.prototype.active=function(){this.setState()},r}(Sc),OT=DT,lo="inactive",uo="active";function Cc(e){var r=Cr(e);(0,f.S6)(r,function(t){t.hasState(uo)&&t.setState(uo,!1),t.hasState(lo)&&t.setState(lo,!1)})}function Ad(e,r,t){(0,f.S6)(e,function(n){r(n)?(n.hasState(lo)&&n.setState(lo,!1),n.setState(uo,t)):(n.hasState(uo)&&n.setState(uo,!1),n.setState(lo,t))})}var ki=Rt.INACTIVE,Nn=Rt.ACTIVE,BT=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName=Nn,t}return r.prototype.setElementsStateByItem=function(t,n,i,a){var o=this,s=function(l){return o.isMathItem(l,n,i)};this.setHighlightBy(t,s,a)},r.prototype.setElementHighlight=function(t,n){n(t)?(t.hasState(ki)&&t.setState(ki,!1),t.setState(Nn,!0)):t.hasState(Nn)||t.setState(ki,!0)},r.prototype.setHighlightBy=function(t,n,i){var a=this;if(i)(0,f.S6)(t,function(l){a.setElementHighlight(l,n)});else{var o=yv(this.context.view,Nn),s=!0;(0,f.S6)(o,function(l){if(!n(l))return s=!1,!1}),s?this.clear():(0,f.S6)(t,function(l){n(l)&&(l.hasState(Nn)&&l.setState(Nn,!1),l.setState(ki,!0))})}},r.prototype.setElementState=function(t,n){var i=this.context.view,a=Cr(i);this.setHighlightBy(a,function(o){return t===o},n)},r.prototype.highlight=function(){this.setState()},r.prototype.clear=function(){var t=this.context.view;Cc(t)},r}(wc),bc=BT,RT=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.setStateByElement=function(t,n){var i=this.context.view,a=t.geometry.getAttribute("color");if(!!a){var o=i.getScaleByField(a.getFields()[0]),s=ln(t,o.field),l=Cr(i),u=l.filter(function(c){return ln(c,o.field)===s});this.setHighlightBy(l,function(c){return u.includes(c)},n)}},r}(bc),NT=RT,zT=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.setElementHighlight=function(t,n){n(t)?(t.hasState(ki)&&t.setState(ki,!1),t.setState(Nn,!0)):(t.setState(ki,!0),t.hasState(Nn)&&t.setState(Nn,!1))},r.prototype.setStateByElement=function(t,n){var i=this.context.view,a=i.getXScale(),o=ln(t,a.field),s=Cr(i),l=s.filter(function(u){return ln(u,a.field)===o});this.setHighlightBy(s,function(u){return l.includes(u)},n)},r.prototype.toggle=function(){var t=ni(this.context);if(t){var n=t.hasState(this.stateName);this.setStateByElement(t,!n)}},r}(bc),VT=zT,Cn;(function(e){e.BEFORE_HIGHLIGHT="element-range-highlight:beforehighlight",e.AFTER_HIGHLIGHT="element-range-highlight:afterhighlight",e.BEFORE_CLEAR="element-range-highlight:beforeclear",e.AFTER_CLEAR="element-range-highlight:afterclear"})(Cn||(Cn={}));var UT=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName="active",t}return r.prototype.clearViewState=function(t){Cc(t)},r.prototype.highlight=function(){var t=this.context,n=t.view,i=t.event,a=this.getIntersectElements(),o={view:n,event:i,highlightElements:a};n.emit(Cn.BEFORE_HIGHLIGHT,lr.fromData(n,Cn.BEFORE_HIGHLIGHT,o)),this.setState(),n.emit(Cn.AFTER_HIGHLIGHT,lr.fromData(n,Cn.AFTER_HIGHLIGHT,o))},r.prototype.clear=function(){var t=this.context.view;t.emit(Cn.BEFORE_CLEAR,lr.fromData(t,Cn.BEFORE_CLEAR,{})),e.prototype.clear.call(this),t.emit(Cn.AFTER_CLEAR,lr.fromData(t,Cn.AFTER_CLEAR,{}))},r.prototype.setElementsState=function(t,n,i){Ad(i,function(a){return t.indexOf(a)>=0},n)},r}(Mc),Td=UT,HT=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName="active",t}return r.prototype.highlight=function(){this.setState()},r.prototype.setElementState=function(t,n){var i=this.context.view,a=Cr(i);Ad(a,function(o){return t===o},n)},r.prototype.clear=function(){var t=this.context.view;Cc(t)},r}(Sc),GT=HT,YT=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName="selected",t}return r.prototype.selected=function(){this.setState()},r}(Mc),XT=YT,WT=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName="selected",t}return r.prototype.selected=function(){this.setState()},r}(wc),ZT=WT,qT=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName="selected",t}return r.prototype.selected=function(){this.setState()},r}(Sc),$T=qT,jT=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName="",t.ignoreItemStates=[],t}return r.prototype.getTriggerListInfo=function(){var t=_i(this.context),n=null;return $a(t)&&(n={item:t.item,list:t.component}),n},r.prototype.getAllowComponents=function(){var t=this,n=this.context.view,i=wv(n),a=[];return(0,f.S6)(i,function(o){o.isList()&&t.allowSetStateByElement(o)&&a.push(o)}),a},r.prototype.hasState=function(t,n){return t.hasState(n,this.stateName)},r.prototype.clearAllComponentsState=function(){var t=this,n=this.getAllowComponents();(0,f.S6)(n,function(i){i.clearItemsState(t.stateName)})},r.prototype.allowSetStateByElement=function(t){var n=t.get("field");if(!n)return!1;if(this.cfg&&this.cfg.componentNames){var i=t.get("name");if(this.cfg.componentNames.indexOf(i)===-1)return!1}var a=this.context.view,o=oa(a,n);return o&&o.isCategory},r.prototype.allowSetStateByItem=function(t,n){var i=this.ignoreItemStates;if(i.length){var a=i.filter(function(o){return n.hasState(t,o)});return a.length===0}return!0},r.prototype.setStateByElement=function(t,n,i){var a=t.get("field"),o=this.context.view,s=oa(o,a),l=ln(n,a),u=s.getText(l);this.setItemsState(t,u,i)},r.prototype.setStateEnable=function(t){var n=this,i=ni(this.context);if(i){var a=this.getAllowComponents();(0,f.S6)(a,function(u){n.setStateByElement(u,i,t)})}else{var o=_i(this.context);if($a(o)){var s=o.item,l=o.component;this.allowSetStateByElement(l)&&this.allowSetStateByItem(s,l)&&this.setItemState(l,s,t)}}},r.prototype.setItemsState=function(t,n,i){var a=this,o=t.getItems();(0,f.S6)(o,function(s){s.name===n&&a.setItemState(t,s,i)})},r.prototype.setItemState=function(t,n,i){t.setItemState(n,this.stateName,i)},r.prototype.setState=function(){this.setStateEnable(!0)},r.prototype.reset=function(){this.setStateEnable(!1)},r.prototype.toggle=function(){var t=this.getTriggerListInfo();if(t&&t.item){var n=t.list,i=t.item,a=this.hasState(n,i);this.setItemState(n,i,!a)}},r.prototype.clear=function(){var t=this.getTriggerListInfo();t?t.list.clearItemsState(this.stateName):this.clearAllComponentsState()},r}(ar),Di=jT,KT=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName="active",t}return r.prototype.active=function(){this.setState()},r}(Di),JT=KT,Ed="inactive",_d="active";function QT(e){var r=e.getItems();(0,f.S6)(r,function(t){e.hasState(t,_d)&&e.setItemState(t,_d,!1),e.hasState(t,Ed)&&e.setItemState(t,Ed,!1)})}var co="inactive",Oi="active",tE=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName=Oi,t.ignoreItemStates=["unchecked"],t}return r.prototype.setItemsState=function(t,n,i){this.setHighlightBy(t,function(a){return a.name===n},i)},r.prototype.setItemState=function(t,n,i){var a=t.getItems();this.setHighlightBy(t,function(o){return o===n},i)},r.prototype.setHighlightBy=function(t,n,i){var a=t.getItems();if(i)(0,f.S6)(a,function(l){n(l)?(t.hasState(l,co)&&t.setItemState(l,co,!1),t.setItemState(l,Oi,!0)):t.hasState(l,Oi)||t.setItemState(l,co,!0)});else{var o=t.getItemsByState(Oi),s=!0;(0,f.S6)(o,function(l){if(!n(l))return s=!1,!1}),s?this.clear():(0,f.S6)(a,function(l){n(l)&&(t.hasState(l,Oi)&&t.setItemState(l,Oi,!1),t.setItemState(l,co,!0))})}},r.prototype.highlight=function(){this.setState()},r.prototype.clear=function(){var t=this.getTriggerListInfo();if(t)QT(t.list);else{var n=this.getAllowComponents();(0,f.S6)(n,function(i){i.clearItemsState(Oi),i.clearItemsState(co)})}},r}(Di),Ac=tE,eE=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName="selected",t}return r.prototype.selected=function(){this.setState()},r}(Di),rE=eE,nE=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName="unchecked",t}return r.prototype.unchecked=function(){this.setState()},r}(Di),iE=nE,ha="unchecked",qs="checked",aE=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName=qs,t}return r.prototype.setItemState=function(t,n,i){this.setCheckedBy(t,function(a){return a===n},i)},r.prototype.setCheckedBy=function(t,n,i){var a=t.getItems();i&&(0,f.S6)(a,function(o){n(o)?(t.hasState(o,ha)&&t.setItemState(o,ha,!1),t.setItemState(o,qs,!0)):t.hasState(o,qs)||t.setItemState(o,ha,!0)})},r.prototype.toggle=function(){var t=this.getTriggerListInfo();if(t&&t.item){var n=t.list,i=t.item,a=!(0,f.G)(n.getItems(),function(o){return n.hasState(o,ha)});a||n.hasState(i,ha)?this.setItemState(n,i,!0):this.reset()}},r.prototype.checked=function(){this.setState()},r.prototype.reset=function(){var t=this.getAllowComponents();(0,f.S6)(t,function(n){n.clearItemsState(qs),n.clearItemsState(ha)})},r}(Di),oE=aE,va="unchecked",sE=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.toggle=function(){var t,n,i,a,o,s,l,u,c=this.getTriggerListInfo();if(c==null?void 0:c.item){var h=c.list,v=c.item,p=h.getItems(),g=p.filter(function(ot){return!h.hasState(ot,va)}),y=p.filter(function(ot){return h.hasState(ot,va)}),x=g[0];if(p.length===g.length)try{for(var m=(0,d.XA)(p),w=m.next();!w.done;w=m.next()){var M=w.value;h.setItemState(M,va,M.id!==v.id)}}catch(ot){t={error:ot}}finally{try{w&&!w.done&&(n=m.return)&&n.call(m)}finally{if(t)throw t.error}}else if(p.length-y.length==1)if(x.id===v.id)try{for(var S=(0,d.XA)(p),A=S.next();!A.done;A=S.next()){var M=A.value;h.setItemState(M,va,!1)}}catch(ot){i={error:ot}}finally{try{A&&!A.done&&(a=S.return)&&a.call(S)}finally{if(i)throw i.error}}else try{for(var D=(0,d.XA)(p),V=D.next();!V.done;V=D.next()){var M=V.value;h.setItemState(M,va,M.id!==v.id)}}catch(ot){o={error:ot}}finally{try{V&&!V.done&&(s=D.return)&&s.call(D)}finally{if(o)throw o.error}}else try{for(var K=(0,d.XA)(p),Mt=K.next();!Mt.done;Mt=K.next()){var M=Mt.value;h.setItemState(M,va,M.id!==v.id)}}catch(ot){l={error:ot}}finally{try{Mt&&!Mt.done&&(u=K.return)&&u.call(K)}finally{if(l)throw l.error}}}},r}(Di),lE=sE,Fd="showRadio",Tc="legend-radio-tip",uE=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.timeStamp=0,t}return r.prototype.show=function(){var t=this.getTriggerListInfo();if(t==null?void 0:t.item){var n=t.list,i=t.item;n.setItemState(i,Fd,!0)}},r.prototype.hide=function(){var t=this.getTriggerListInfo();if(t==null?void 0:t.item){var n=t.list,i=t.item;n.setItemState(i,Fd,!1)}},r.prototype.destroy=function(){e.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},r.prototype.showTip=function(){var t=this.context,n=t.event,i=this.timeStamp,a=+new Date,o=this.context.event.target;if(a-i>16&&o.get("name")==="legend-item-radio"){var s=this.location,l={x:n.x,y:n.y};this.timeStamp=a,this.location=l,(!s||!(0,f.Xy)(s,l))&&this.showTooltip(l)}},r.prototype.hideTip=function(){this.hideTooltip(),this.location=null},r.prototype.showTooltip=function(t){var n=this.context,i=n.event,a=i.target;if(a&&a.get("tip")){this.tooltip||this.renderTooltip();var o=n.view.getCanvas().get("el").getBoundingClientRect(),s=o.x,l=o.y;this.tooltip.update((0,d.pi)((0,d.pi)({title:a.get("tip")},t),{x:t.x+s,y:t.y+l})),this.tooltip.show()}},r.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},r.prototype.renderTooltip=function(){var t,n=(t={},t[On]={padding:"6px 8px",transform:"translate(-50%, -80%)",background:"rgba(0,0,0,0.75)",color:"#fff","border-radius":"2px","z-index":100},t[Bn]={"font-size":"12px","line-height":"14px","margin-bottom":0,"word-break":"break-all"},t);document.getElementById(Tc)&&document.body.removeChild(document.getElementById(Tc));var i=new hs({parent:document.body,region:null,visible:!1,crosshairs:null,domStyles:n,containerId:Tc});i.init(),i.setCapture(!1),this.tooltip=i},r}(Di),cE=uE,fE=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.maskShape=null,t.points=[],t.starting=!1,t.moving=!1,t.preMovePoint=null,t.shapeType="path",t}return r.prototype.getCurrentPoint=function(){var t=this.context.event;return{x:t.x,y:t.y}},r.prototype.emitEvent=function(t){var n="mask:".concat(t),i=this.context.view,a=this.context.event;i.emit(n,{target:this.maskShape,shape:this.maskShape,points:this.points,x:a.x,y:a.y})},r.prototype.createMask=function(){var t=this.context.view,n=this.getMaskAttrs(),i=t.foregroundGroup.addShape({type:this.shapeType,name:"mask",draggable:!0,attrs:(0,d.pi)({fill:"#C5D4EB",opacity:.3},n)});return i},r.prototype.getMaskPath=function(){return[]},r.prototype.show=function(){this.maskShape&&(this.maskShape.show(),this.emitEvent("show"))},r.prototype.start=function(t){this.starting=!0,this.moving=!1,this.points=[this.getCurrentPoint()],this.maskShape||(this.maskShape=this.createMask(),this.maskShape.set("capture",!1)),this.updateMask(t==null?void 0:t.maskStyle),this.emitEvent("start")},r.prototype.moveStart=function(){this.moving=!0,this.preMovePoint=this.getCurrentPoint()},r.prototype.move=function(){if(!(!this.moving||!this.maskShape)){var t=this.getCurrentPoint(),n=this.preMovePoint,i=t.x-n.x,a=t.y-n.y,o=this.points;(0,f.S6)(o,function(s){s.x+=i,s.y+=a}),this.updateMask(),this.emitEvent("change"),this.preMovePoint=t}},r.prototype.updateMask=function(t){var n=(0,f.b$)({},this.getMaskAttrs(),t);this.maskShape.attr(n)},r.prototype.moveEnd=function(){this.moving=!1,this.preMovePoint=null},r.prototype.end=function(){this.starting=!1,this.emitEvent("end"),this.maskShape&&this.maskShape.set("capture",!0)},r.prototype.hide=function(){this.maskShape&&(this.maskShape.hide(),this.emitEvent("hide"))},r.prototype.resize=function(){this.starting&&this.maskShape&&(this.points.push(this.getCurrentPoint()),this.updateMask(),this.emitEvent("change"))},r.prototype.destroy=function(){this.points=[],this.maskShape&&this.maskShape.remove(),this.maskShape=null,this.preMovePoint=null,e.prototype.destroy.call(this)},r}(ar),Ec=fE;function Id(e){var r=(0,f.Z$)(e),t=0,n=0,i=0;if(e.length){var a=e[0];t=_u(a,r)/2,n=(r.x+a.x)/2,i=(r.y+a.y)/2}return{x:n,y:i,r:t}}var hE=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.shapeType="circle",t}return r.prototype.getMaskAttrs=function(){return Id(this.points)},r}(Ec),vE=hE;function Ld(e){return{start:(0,f.YM)(e),end:(0,f.Z$)(e)}}function Pd(e,r){var t=Math.min(e.x,r.x),n=Math.min(e.y,r.y),i=Math.abs(r.x-e.x),a=Math.abs(r.y-e.y);return{x:t,y:n,width:i,height:a}}var pE=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.shapeType="rect",t}return r.prototype.getRegion=function(){return Ld(this.points)},r.prototype.getMaskAttrs=function(){var t=this.getRegion(),n=t.start,i=t.end;return Pd(n,i)},r}(Ec),kd=pE;function Dd(e){e.x=(0,f.uZ)(e.x,0,1),e.y=(0,f.uZ)(e.y,0,1)}function Od(e,r,t,n){var i=null,a=null,o=n.invert((0,f.YM)(e)),s=n.invert((0,f.Z$)(e));return t&&(Dd(o),Dd(s)),r==="x"?(i=n.convert({x:o.x,y:0}),a=n.convert({x:s.x,y:1})):(i=n.convert({x:0,y:o.y}),a=n.convert({x:1,y:s.y})),{start:i,end:a}}var dE=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.dim="x",t.inPlot=!0,t}return r.prototype.getRegion=function(){var t=this.context.view.getCoordinate();return Od(this.points,this.dim,this.inPlot,t)},r}(kd),Bd=dE;function _c(e){var r=[];return e.length&&((0,f.S6)(e,function(t,n){n===0?r.push(["M",t.x,t.y]):r.push(["L",t.x,t.y])}),r.push(["L",e[0].x,e[0].y])),r}function Rd(e){return{path:_c(e)}}var gE=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getMaskPath=function(){return _c(this.points)},r.prototype.getMaskAttrs=function(){return Rd(this.points)},r.prototype.addPoint=function(){this.resize()},r}(Ec),Nd=gE;function Fc(e){return dM(e,!0)}function zd(e){return{path:Fc(e)}}var yE=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getMaskPath=function(){return Fc(this.points)},r.prototype.getMaskAttrs=function(){return zd(this.points)},r}(Nd),mE=yE,xE=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.maskShapes=[],t.starting=!1,t.moving=!1,t.recordPoints=null,t.preMovePoint=null,t.shapeType="path",t.maskType="multi-mask",t}return r.prototype.getCurrentPoint=function(){var t=this.context.event;return{x:t.x,y:t.y}},r.prototype.emitEvent=function(t){var n="".concat(this.maskType,":").concat(t),i=this.context.view,a=this.context.event,o={type:this.shapeType,name:this.maskType,get:function(s){return o.hasOwnProperty(s)?o[s]:void 0}};i.emit(n,{target:o,maskShapes:this.maskShapes,multiPoints:this.recordPoints,x:a.x,y:a.y})},r.prototype.createMask=function(t){var n=this.context.view,i=this.recordPoints[t],a=this.getMaskAttrs(i),o=n.foregroundGroup.addShape({type:this.shapeType,name:"mask",draggable:!0,attrs:(0,d.pi)({fill:"#C5D4EB",opacity:.3},a)});this.maskShapes.push(o)},r.prototype.getMaskPath=function(t){return[]},r.prototype.show=function(){this.maskShapes.length>0&&(this.maskShapes.forEach(function(t){return t.show()}),this.emitEvent("show"))},r.prototype.start=function(t){this.recordPointStart(),this.starting=!0,this.moving=!1;var n=this.recordPoints.length-1;this.createMask(n),this.updateShapesCapture(!1),this.updateMask(t==null?void 0:t.maskStyle),this.emitEvent("start")},r.prototype.moveStart=function(){this.moving=!0,this.preMovePoint=this.getCurrentPoint(),this.updateShapesCapture(!1)},r.prototype.move=function(){if(!(!this.moving||this.maskShapes.length===0)){var t=this.getCurrentPoint(),n=this.preMovePoint,i=t.x-n.x,a=t.y-n.y,o=this.getCurMaskShapeIndex();o>-1&&(this.recordPoints[o].forEach(function(s){s.x+=i,s.y+=a}),this.updateMask(),this.emitEvent("change"),this.preMovePoint=t)}},r.prototype.updateMask=function(t){var n=this;this.recordPoints.forEach(function(i,a){var o=(0,f.b$)({},n.getMaskAttrs(i),t);n.maskShapes[a].attr(o)})},r.prototype.resize=function(){this.starting&&this.maskShapes.length>0&&(this.recordPointContinue(),this.updateMask(),this.emitEvent("change"))},r.prototype.moveEnd=function(){this.moving=!1,this.preMovePoint=null,this.updateShapesCapture(!0)},r.prototype.end=function(){this.starting=!1,this.emitEvent("end"),this.updateShapesCapture(!0)},r.prototype.hide=function(){this.maskShapes.length>0&&(this.maskShapes.forEach(function(t){return t.hide()}),this.emitEvent("hide"))},r.prototype.remove=function(){var t=this.getCurMaskShapeIndex();t>-1&&(this.recordPoints.splice(t,1),this.maskShapes[t].remove(),this.maskShapes.splice(t,1),this.preMovePoint=null,this.updateShapesCapture(!0),this.emitEvent("change"))},r.prototype.clearAll=function(){this.recordPointClear(),this.maskShapes.forEach(function(t){return t.remove()}),this.maskShapes=[],this.preMovePoint=null},r.prototype.clear=function(){var t=this.getCurMaskShapeIndex();t===-1?(this.recordPointClear(),this.maskShapes.forEach(function(n){return n.remove()}),this.maskShapes=[],this.emitEvent("clearAll")):(this.recordPoints.splice(t,1),this.maskShapes[t].remove(),this.maskShapes.splice(t,1),this.preMovePoint=null,this.emitEvent("clearSingle")),this.preMovePoint=null},r.prototype.destroy=function(){this.clear(),e.prototype.destroy.call(this)},r.prototype.getRecordPoints=function(){var t;return(0,d.ev)([],(0,d.CR)((t=this.recordPoints)!==null&&t!==void 0?t:[]),!1)},r.prototype.recordPointStart=function(){var t=this.getRecordPoints(),n=this.getCurrentPoint();this.recordPoints=(0,d.ev)((0,d.ev)([],(0,d.CR)(t),!1),[[n]],!1)},r.prototype.recordPointContinue=function(){var t=this.getRecordPoints(),n=this.getCurrentPoint(),i=t.splice(-1,1)[0]||[];i.push(n),this.recordPoints=(0,d.ev)((0,d.ev)([],(0,d.CR)(t),!1),[i],!1)},r.prototype.recordPointClear=function(){this.recordPoints=[]},r.prototype.updateShapesCapture=function(t){this.maskShapes.forEach(function(n){return n.set("capture",t)})},r.prototype.getCurMaskShapeIndex=function(){var t=this.getCurrentPoint();return this.maskShapes.findIndex(function(n){var i=n.attrs,a=i.width,o=i.height,s=i.r,l=a===0||o===0||s===0;return!l&&n.isHit(t.x,t.y)})},r}(ar),Ic=xE,wE=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.shapeType="rect",t}return r.prototype.getRegion=function(t){return Ld(t)},r.prototype.getMaskAttrs=function(t){var n=this.getRegion(t),i=n.start,a=n.end;return Pd(i,a)},r}(Ic),Vd=wE,ME=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.dim="x",t.inPlot=!0,t}return r.prototype.getRegion=function(t){var n=this.context.view.getCoordinate();return Od(t,this.dim,this.inPlot,n)},r}(Vd),Ud=ME,SE=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.shapeType="circle",t.getMaskAttrs=Id,t}return r}(Ic),CE=SE,bE=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.getMaskPath=_c,t.getMaskAttrs=Rd,t}return r.prototype.addPoint=function(){this.resize()},r}(Ic),Hd=bE,AE=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.getMaskPath=Fc,t.getMaskAttrs=zd,t}return r}(Hd),TE=AE,EE=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.setCursor=function(t){var n=this.context.view;n.getCanvas().setCursor(t)},r.prototype.default=function(){this.setCursor("default")},r.prototype.pointer=function(){this.setCursor("pointer")},r.prototype.move=function(){this.setCursor("move")},r.prototype.crosshair=function(){this.setCursor("crosshair")},r.prototype.wait=function(){this.setCursor("wait")},r.prototype.help=function(){this.setCursor("help")},r.prototype.text=function(){this.setCursor("text")},r.prototype.eResize=function(){this.setCursor("e-resize")},r.prototype.wResize=function(){this.setCursor("w-resize")},r.prototype.nResize=function(){this.setCursor("n-resize")},r.prototype.sResize=function(){this.setCursor("s-resize")},r.prototype.neResize=function(){this.setCursor("ne-resize")},r.prototype.nwResize=function(){this.setCursor("nw-resize")},r.prototype.seResize=function(){this.setCursor("se-resize")},r.prototype.swResize=function(){this.setCursor("sw-resize")},r.prototype.nsResize=function(){this.setCursor("ns-resize")},r.prototype.ewResize=function(){this.setCursor("ew-resize")},r.prototype.zoomIn=function(){this.setCursor("zoom-in")},r.prototype.zoomOut=function(){this.setCursor("zoom-out")},r}(ar),_E=EE,FE=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.filterView=function(t,n,i){var a=this;t.getScaleByField(n)&&t.filter(n,i),t.views&&t.views.length&&(0,f.S6)(t.views,function(o){a.filterView(o,n,i)})},r.prototype.filter=function(){var t=_i(this.context);if(t){var n=this.context.view,i=t.component,a=i.get("field");if($a(t)){if(a){var o=i.getItemsByState("unchecked"),s=oa(n,a),l=o.map(function(p){return p.name});l.length?this.filterView(n,a,function(p){var g=s.getText(p);return!l.includes(g)}):this.filterView(n,a,null),n.render(!0)}}else if(pv(t)){var u=i.getValue(),c=(0,d.CR)(u,2),h=c[0],v=c[1];this.filterView(n,a,function(p){return p>=h&&p<=v}),n.render(!0)}}},r}(ar),IE=FE;function Gd(e,r,t,n){var i=Math.min(t[r],n[r]),a=Math.max(t[r],n[r]),o=(0,d.CR)(e.range,2),s=o[0],l=o[1];if(i<s&&(i=s),a>l&&(a=l),i===l&&a===l)return null;var u=e.invert(i),c=e.invert(a);if(e.isCategory){var h=e.values.indexOf(u),v=e.values.indexOf(c),p=e.values.slice(h,v+1);return function(g){return p.includes(g)}}else return function(g){return g>=u&&g<=c}}var Ur;(function(e){e.FILTER="brush-filter-processing",e.RESET="brush-filter-reset",e.BEFORE_FILTER="brush-filter:beforefilter",e.AFTER_FILTER="brush-filter:afterfilter",e.BEFORE_RESET="brush-filter:beforereset",e.AFTER_RESET="brush-filter:afterreset"})(Ur||(Ur={}));var LE=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.dims=["x","y"],t.startPoint=null,t.isStarted=!1,t}return r.prototype.hasDim=function(t){return this.dims.includes(t)},r.prototype.start=function(){var t=this.context;this.isStarted=!0,this.startPoint=t.getCurrentPoint()},r.prototype.filter=function(){var t,n;if(ja(this.context)){var i=this.context.event.target,a=i.getCanvasBBox();t={x:a.x,y:a.y},n={x:a.maxX,y:a.maxY}}else{if(!this.isStarted)return;t=this.startPoint,n=this.context.getCurrentPoint()}if(!(Math.abs(t.x-n.x)<5||Math.abs(t.x-n.y)<5)){var o=this.context,s=o.view,l=o.event,u={view:s,event:l,dims:this.dims};s.emit(Ur.BEFORE_FILTER,lr.fromData(s,Ur.BEFORE_FILTER,u));var c=s.getCoordinate(),h=c.invert(n),v=c.invert(t);if(this.hasDim("x")){var p=s.getXScale(),g=Gd(p,"x",h,v);this.filterView(s,p.field,g)}if(this.hasDim("y")){var y=s.getYScales()[0],g=Gd(y,"y",h,v);this.filterView(s,y.field,g)}this.reRender(s,{source:Ur.FILTER}),s.emit(Ur.AFTER_FILTER,lr.fromData(s,Ur.AFTER_FILTER,u))}},r.prototype.end=function(){this.isStarted=!1},r.prototype.reset=function(){var t=this.context.view;if(t.emit(Ur.BEFORE_RESET,lr.fromData(t,Ur.BEFORE_RESET,{})),this.isStarted=!1,this.hasDim("x")){var n=t.getXScale();this.filterView(t,n.field,null)}if(this.hasDim("y")){var i=t.getYScales()[0];this.filterView(t,i.field,null)}this.reRender(t,{source:Ur.RESET}),t.emit(Ur.AFTER_RESET,lr.fromData(t,Ur.AFTER_RESET,{}))},r.prototype.filterView=function(t,n,i){t.filter(n,i)},r.prototype.reRender=function(t,n){t.render(!0,n)},r}(ar),$s=LE,PE=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.filterView=function(t,n,i){var a=Mn(t);(0,f.S6)(a,function(o){o.filter(n,i)})},r.prototype.reRender=function(t){var n=Mn(t);(0,f.S6)(n,function(i){i.render(!0)})},r}($s),Lc=PE,kE=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.filter=function(){var t=_i(this.context),n=this.context.view,i=Cr(n);if(ja(this.context)){var a=Eu(this.context,10);a&&(0,f.S6)(i,function(y){a.includes(y)?y.show():y.hide()})}else if(t){var o=t.component,s=o.get("field");if($a(t)){if(s){var l=o.getItemsByState("unchecked"),u=oa(n,s),c=l.map(function(y){return y.name});(0,f.S6)(i,function(y){var x=ln(y,s),m=u.getText(x);c.indexOf(m)>=0?y.hide():y.show()})}}else if(pv(t)){var h=o.getValue(),v=(0,d.CR)(h,2),p=v[0],g=v[1];(0,f.S6)(i,function(y){var x=ln(y,s);x>=p&&x<=g?y.show():y.hide()})}}},r.prototype.clear=function(){var t=Cr(this.context.view);(0,f.S6)(t,function(n){n.show()})},r.prototype.reset=function(){this.clear()},r}(ar),DE=kE,OE=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.byRecord=!1,t}return r.prototype.filter=function(){ja(this.context)&&(this.byRecord?this.filterByRecord():this.filterByBBox())},r.prototype.filterByRecord=function(){var t=this.context.view,n=Eu(this.context,10);if(!!n){var i=t.getXScale().field,a=t.getYScales()[0].field,o=n.map(function(l){return l.getModel().data}),s=Mn(t);(0,f.S6)(s,function(l){var u=Cr(l);(0,f.S6)(u,function(c){var h=c.getModel().data;Sv(o,h,i,a)?c.show():c.hide()})})}},r.prototype.filterByBBox=function(){var t=this,n=this.context.view,i=Mn(n);(0,f.S6)(i,function(a){var o=dv(t.context,a,10),s=Cr(a);o&&(0,f.S6)(s,function(l){o.includes(l)?l.show():l.hide()})})},r.prototype.reset=function(){var t=Mn(this.context.view);(0,f.S6)(t,function(n){var i=Cr(n);(0,f.S6)(i,function(a){a.show()})})},r}(ar),Yd=OE,BE=10,RE=5,NE=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.buttonGroup=null,t.buttonCfg={name:"button",text:"button",textStyle:{x:0,y:0,fontSize:12,fill:"#333333",cursor:"pointer"},padding:[8,10],style:{fill:"#f7f7f7",stroke:"#cccccc",cursor:"pointer"},activeStyle:{fill:"#e6e6e6"}},t}return r.prototype.getButtonCfg=function(){return(0,f.b$)(this.buttonCfg,this.cfg)},r.prototype.drawButton=function(){var t=this.getButtonCfg(),n=this.context.view.foregroundGroup.addGroup({name:t.name}),i=n.addShape({type:"text",name:"button-text",attrs:(0,d.pi)({text:t.text},t.textStyle)}),a=i.getBBox(),o=ku(t.padding),s=n.addShape({type:"rect",name:"button-rect",attrs:(0,d.pi)({x:a.x-o[3],y:a.y-o[0],width:a.width+o[1]+o[3],height:a.height+o[0]+o[2]},t.style)});s.toBack(),n.on("mouseenter",function(){s.attr(t.activeStyle)}),n.on("mouseleave",function(){s.attr(t.style)}),this.buttonGroup=n},r.prototype.resetPosition=function(){var t=this.context.view,n=t.getCoordinate(),i=n.convert({x:1,y:1}),a=this.buttonGroup,o=a.getBBox(),s=nr.vs(null,[["t",i.x-o.width-BE,i.y+o.height+RE]]);a.setMatrix(s)},r.prototype.show=function(){this.buttonGroup||this.drawButton(),this.resetPosition(),this.buttonGroup.show()},r.prototype.hide=function(){this.buttonGroup&&this.buttonGroup.hide()},r.prototype.destroy=function(){var t=this.buttonGroup;t&&t.remove(),e.prototype.destroy.call(this)},r}(ar),zE=NE,VE=4,UE=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.starting=!1,t.dragStart=!1,t}return r.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint()},r.prototype.drag=function(){if(!!this.startPoint){var t=this.context.getCurrentPoint(),n=this.context.view,i=this.context.event;this.dragStart?n.emit("drag",{target:i.target,x:i.x,y:i.y}):_u(t,this.startPoint)>VE&&(n.emit("dragstart",{target:i.target,x:i.x,y:i.y}),this.dragStart=!0)}},r.prototype.end=function(){if(this.dragStart){var t=this.context.view,n=this.context.event;t.emit("dragend",{target:n.target,x:n.x,y:n.y})}this.starting=!1,this.dragStart=!1},r}(ar),HE=UE,GE=5,YE=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.starting=!1,t.isMoving=!1,t.startPoint=null,t.startMatrix=null,t}return r.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint(),this.startMatrix=this.context.view.middleGroup.getMatrix()},r.prototype.move=function(){if(!!this.starting){var t=this.startPoint,n=this.context.getCurrentPoint(),i=_u(t,n);if(i>GE&&!this.isMoving&&(this.isMoving=!0),this.isMoving){var a=this.context.view,o=nr.vs(this.startMatrix,[["t",n.x-t.x,n.y-t.y]]);a.backgroundGroup.setMatrix(o),a.foregroundGroup.setMatrix(o),a.middleGroup.setMatrix(o)}}},r.prototype.end=function(){this.isMoving&&(this.isMoving=!1),this.startMatrix=null,this.starting=!1,this.startPoint=null},r.prototype.reset=function(){this.starting=!1,this.startPoint=null,this.isMoving=!1;var t=this.context.view;t.backgroundGroup.resetMatrix(),t.foregroundGroup.resetMatrix(),t.middleGroup.resetMatrix(),this.isMoving=!1},r}(ar),XE=YE,Xd="x",Wd="y",WE=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.dims=[Xd,Wd],t.cfgFields=["dims"],t.cacheScaleDefs={},t}return r.prototype.hasDim=function(t){return this.dims.includes(t)},r.prototype.getScale=function(t){var n=this.context.view;return t==="x"?n.getXScale():n.getYScales()[0]},r.prototype.resetDim=function(t){var n=this.context.view;if(this.hasDim(t)&&this.cacheScaleDefs[t]){var i=this.getScale(t);n.scale(i.field,this.cacheScaleDefs[t]),this.cacheScaleDefs[t]=null}},r.prototype.reset=function(){this.resetDim(Xd),this.resetDim(Wd);var t=this.context.view;t.render(!0)},r}(ar),Zd=WE,ZE=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.startPoint=null,t.starting=!1,t.startCache={},t}return r.prototype.start=function(){var t=this;this.startPoint=this.context.getCurrentPoint(),this.starting=!0;var n=this.dims;(0,f.S6)(n,function(i){var a=t.getScale(i),o=a.min,s=a.max,l=a.values;t.startCache[i]={min:o,max:s,values:l}})},r.prototype.end=function(){this.startPoint=null,this.starting=!1,this.startCache={}},r.prototype.translate=function(){var t=this;if(!!this.starting){var n=this.startPoint,i=this.context.view.getCoordinate(),a=this.context.getCurrentPoint(),o=i.invert(n),s=i.invert(a),l=s.x-o.x,u=s.y-o.y,c=this.context.view,h=this.dims;(0,f.S6)(h,function(v){t.translateDim(v,{x:l*-1,y:u*-1})}),c.render(!0)}},r.prototype.translateDim=function(t,n){if(this.hasDim(t)){var i=this.getScale(t);i.isLinear&&this.translateLinear(t,i,n)}},r.prototype.translateLinear=function(t,n,i){var a=this.context.view,o=this.startCache[t],s=o.min,l=o.max,u=l-s,c=i[t]*u;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:n.nice,min:s,max:l}),a.scale(n.field,{nice:!1,min:s+c,max:l+c})},r.prototype.reset=function(){e.prototype.reset.call(this),this.startPoint=null,this.starting=!1},r}(Zd),qE=ZE,$E=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.zoomRatio=.05,t}return r.prototype.zoomIn=function(){this.zoom(this.zoomRatio)},r.prototype.zoom=function(t){var n=this,i=this.dims;(0,f.S6)(i,function(a){n.zoomDim(a,t)}),this.context.view.render(!0)},r.prototype.zoomOut=function(){this.zoom(-1*this.zoomRatio)},r.prototype.zoomDim=function(t,n){if(this.hasDim(t)){var i=this.getScale(t);i.isLinear&&this.zoomLinear(t,i,n)}},r.prototype.zoomLinear=function(t,n,i){var a=this.context.view;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:n.nice,min:n.min,max:n.max});var o=this.cacheScaleDefs[t],s=o.max-o.min,l=n.min,u=n.max,c=i*s,h=l-c,v=u+c,p=v-h,g=p/s;v>h&&g<100&&g>.01&&a.scale(n.field,{nice:!1,min:l-c,max:u+c})},r}(Zd),jE=$E;function KE(e){var r=e.gEvent.originalEvent;return r.deltaY>0}var JE=1,QE=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.scroll=function(t){var n=this.context,i=n.view,a=n.event;if(!!i.getOptions().scrollbar){var o=(t==null?void 0:t.wheelDelta)||JE,s=i.getController("scrollbar"),l=i.getXScale(),u=i.getOptions().data,c=(0,f.dp)((0,f.I)(u,l.field)),h=(0,f.dp)(l.values),v=s.getValue(),p=Math.floor((c-h)*v),g=p+(KE(a)?o:-o),y=o/(c-h)/1e4,x=(0,f.uZ)(g/(c-h)+y,0,1);s.setValue(x)}},r}(ar),t_=QE,e_="aixs-description-tooltip",r_=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.show=function(){var t=this.context,n=_i(t).axis,i=n.cfg.title,a=i.description,o=i.text,s=i.descriptionTooltipStyle,l=t.event,u=l.x,c=l.y;this.tooltip||this.renderTooltip(),this.tooltip.update({title:o||"",customContent:function(){return`
  66. <div class="`.concat(On,'" style={').concat(s,`}>
  67. <div class="`).concat(Bn,`">
  68. \u5B57\u6BB5\u8BF4\u660E\uFF1A`).concat(a,`
  69. </div>
  70. </div>
  71. `)},x:u,y:c}),this.tooltip.show()},r.prototype.destroy=function(){e.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},r.prototype.hide=function(){this.tooltip&&this.tooltip.hide()},r.prototype.renderTooltip=function(){var t,n=this.context.view,i=n.canvas,a={start:{x:0,y:0},end:{x:i.get("width"),y:i.get("height")}},o=new hs({parent:i.get("el").parentNode,region:a,visible:!1,containerId:e_,domStyles:(0,d.pi)({},(0,f.b$)({},(t={},t[On]={"max-width":"50%",padding:"10px","line-height":"15px","font-size":"12px",color:"rgba(0, 0, 0, .65)"},t[Bn]={"word-break":"break-all","margin-bottom":"3px"},t)))});o.init(),o.setCapture(!1),this.tooltip=o},r}(ar),n_=r_;LM("dark",Tv(E2)),At("canvas",jt),At("svg",Pt),Sn("Polygon",pb),Sn("Interval",ob),Sn("Schema",gb),Sn("Path",ic),Sn("Point",fb),Sn("Line",lb),Sn("Area",jC),Sn("Edge",JC),Sn("Heatmap",tb),Sn("Violin",xb),Ja("base",Es),Ja("interval",Bb),Ja("pie",zb),Ja("polar",jp),zr("overlap",Qb),zr("distribute",Ub),zr("fixed-overlap",Jb),zr("hide-overlap",uA),zr("limit-in-shape",qb),zr("limit-in-canvas",Zb),zr("limit-in-plot",TA),zr("pie-outer",Gb),zr("adjust-color",fA),zr("interval-adjust-position",dA),zr("interval-hide-overlap",yA),zr("point-adjust-position",wA),zr("pie-spider",Wb),zr("path-adjust-position",CA),Wr("fade-in",EA),Wr("fade-out",_A),Wr("grow-in-x",IA),Wr("grow-in-xy",PA),Wr("grow-in-y",LA),Wr("scale-in-x",OA),Wr("scale-in-y",BA),Wr("wave-in",NA),Wr("zoom-in",zA),Wr("zoom-out",VA),Wr("position-update",DA),Wr("sector-path-update",RA),Wr("path-in",kA),aa("rect",jA),aa("mirror",qA),aa("list",YA),aa("matrix",WA),aa("circle",HA),aa("tree",JA),Fi("axis",nT),Fi("legend",lT),Fi("tooltip",Ov),Fi("annotation",eT),Fi("slider",cT),Fi("scrollbar",pT),be("tooltip",Cd),be("sibling-tooltip",MT),be("ellipsis-text",CT),be("element-active",ET),be("element-single-active",OT),be("element-range-active",PT),be("element-highlight",bc),be("element-highlight-by-x",VT),be("element-highlight-by-color",NT),be("element-single-highlight",GT),be("element-range-highlight",Td),be("element-sibling-highlight",Td,{effectSiblings:!0,effectByRecord:!0}),be("element-selected",ZT),be("element-single-selected",$T),be("element-range-selected",XT),be("element-link-by-color",FT),be("active-region",mT),be("list-active",JT),be("list-selected",rE),be("list-highlight",Ac),be("list-unchecked",iE),be("list-checked",oE),be("list-focus",lE),be("list-radio",cE),be("legend-item-highlight",Ac,{componentNames:["legend"]}),be("axis-label-highlight",Ac,{componentNames:["axis"]}),be("axis-description",n_),be("rect-mask",kd),be("x-rect-mask",Bd,{dim:"x"}),be("y-rect-mask",Bd,{dim:"y"}),be("circle-mask",vE),be("path-mask",Nd),be("smooth-path-mask",mE),be("rect-multi-mask",Vd),be("x-rect-multi-mask",Ud,{dim:"x"}),be("y-rect-multi-mask",Ud,{dim:"y"}),be("circle-multi-mask",CE),be("path-multi-mask",Hd),be("smooth-path-multi-mask",TE),be("cursor",_E),be("data-filter",IE),be("brush",$s),be("brush-x",$s,{dims:["x"]}),be("brush-y",$s,{dims:["y"]}),be("sibling-filter",Lc),be("sibling-x-filter",Lc),be("sibling-y-filter",Lc),be("element-filter",DE),be("element-sibling-filter",Yd),be("element-sibling-filter-record",Yd,{byRecord:!0}),be("view-drag",HE),be("view-move",XE),be("scale-translate",qE),be("scale-zoom",jE),be("reset-button",zE,{name:"reset-button",text:"reset"}),be("mousewheel-scroll",t_);function zn(e){return e.isInPlot()}Pe("tooltip",{start:[{trigger:"plot:mousemove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"plot:touchmove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"plot:mouseleave",action:"tooltip:hide"},{trigger:"plot:leave",action:"tooltip:hide"},{trigger:"plot:touchend",action:"tooltip:hide"}]}),Pe("ellipsis-text",{start:[{trigger:"legend-item-name:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"legend-item-name:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"legend-item-name:mouseleave",action:"ellipsis-text:hide"},{trigger:"legend-item-name:touchend",action:"ellipsis-text:hide"},{trigger:"axis-label:mouseleave",action:"ellipsis-text:hide"},{trigger:"axis-label:mouseout",action:"ellipsis-text:hide"},{trigger:"axis-label:touchend",action:"ellipsis-text:hide"}]}),Pe("element-active",{start:[{trigger:"element:mouseenter",action:"element-active:active"}],end:[{trigger:"element:mouseleave",action:"element-active:reset"}]}),Pe("element-selected",{start:[{trigger:"element:click",action:"element-selected:toggle"}]}),Pe("element-highlight",{start:[{trigger:"element:mouseenter",action:"element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight:reset"}]}),Pe("element-highlight-by-x",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-x:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-x:reset"}]}),Pe("element-highlight-by-color",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-color:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-color:reset"}]}),Pe("legend-active",{start:[{trigger:"legend-item:mouseenter",action:["list-active:active","element-active:active"]}],end:[{trigger:"legend-item:mouseleave",action:["list-active:reset","element-active:reset"]}]}),Pe("legend-highlight",{start:[{trigger:"legend-item:mouseenter",action:["legend-item-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"legend-item:mouseleave",action:["legend-item-highlight:reset","element-highlight:reset"]}]}),Pe("axis-label-highlight",{start:[{trigger:"axis-label:mouseenter",action:["axis-label-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"axis-label:mouseleave",action:["axis-label-highlight:reset","element-highlight:reset"]}]}),Pe("element-list-highlight",{start:[{trigger:"element:mouseenter",action:["list-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"element:mouseleave",action:["list-highlight:reset","element-highlight:reset"]}]}),Pe("element-range-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"mask:mouseenter",action:"cursor:move"},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:function(e){return!e.isInShape("mask")},action:["rect-mask:start","rect-mask:show"]},{trigger:"mask:dragstart",action:["rect-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:drag",action:["rect-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end"]},{trigger:"mask:dragend",action:["rect-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(e){return!e.isInPlot()},action:["element-range-highlight:clear","rect-mask:end","rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear","rect-mask:hide"]}]}),Pe("brush",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:zn,action:["brush:start","rect-mask:start","rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:zn,action:["rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:zn,action:["brush:filter","brush:end","rect-mask:end","rect-mask:hide","reset-button:show"]}],rollback:[{trigger:"reset-button:click",action:["brush:reset","reset-button:hide","cursor:crosshair"]}]}),Pe("brush-visible",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"plot:mousedown",action:["rect-mask:start","rect-mask:show"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end","rect-mask:hide","element-filter:filter","element-range-highlight:clear"]}],rollback:[{trigger:"dblclick",action:["element-filter:clear"]}]}),Pe("brush-x",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:zn,action:["brush-x:start","x-rect-mask:start","x-rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:zn,action:["x-rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:zn,action:["brush-x:filter","brush-x:end","x-rect-mask:end","x-rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]}),Pe("element-path-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:zn,action:"path-mask:start"},{trigger:"mousedown",isEnable:zn,action:"path-mask:show"}],processing:[{trigger:"mousemove",action:"path-mask:addPoint"}],end:[{trigger:"mouseup",action:"path-mask:end"}],rollback:[{trigger:"dblclick",action:"path-mask:hide"}]}),Pe("brush-x-multi",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"mask:mouseenter",action:"cursor:move"},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"mousedown",isEnable:zn,action:["x-rect-multi-mask:start","x-rect-multi-mask:show"]},{trigger:"mask:dragstart",action:["x-rect-multi-mask:moveStart"]}],processing:[{trigger:"mousemove",isEnable:function(e){return!Ms(e)},action:["x-rect-multi-mask:resize"]},{trigger:"multi-mask:change",action:"element-range-highlight:highlight"},{trigger:"mask:drag",action:["x-rect-multi-mask:move"]}],end:[{trigger:"mouseup",action:["x-rect-multi-mask:end"]},{trigger:"mask:dragend",action:["x-rect-multi-mask:moveEnd"]}],rollback:[{trigger:"dblclick",action:["x-rect-multi-mask:clear","cursor:crosshair"]},{trigger:"multi-mask:clearAll",action:["element-range-highlight:clear"]},{trigger:"multi-mask:clearSingle",action:["element-range-highlight:highlight"]}]}),Pe("element-single-selected",{start:[{trigger:"element:click",action:"element-single-selected:toggle"}]}),Pe("legend-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:["cursor:pointer","list-radio:show"]},{trigger:"legend-item:mouseleave",action:["cursor:default","list-radio:hide"]}],start:[{trigger:"legend-item:click",isEnable:function(e){return!e.isInShape("legend-item-radio")},action:["legend-item-highlight:reset","element-highlight:reset","list-unchecked:toggle","data-filter:filter","list-radio:show"]},{trigger:"legend-item-radio:mouseenter",action:["list-radio:showTip"]},{trigger:"legend-item-radio:mouseleave",action:["list-radio:hideTip"]},{trigger:"legend-item-radio:click",action:["list-focus:toggle","data-filter:filter","list-radio:show"]}]}),Pe("continuous-filter",{start:[{trigger:"legend:valuechanged",action:"data-filter:filter"}]}),Pe("continuous-visible-filter",{start:[{trigger:"legend:valuechanged",action:"element-filter:filter"}]}),Pe("legend-visible-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:"cursor:pointer"},{trigger:"legend-item:mouseleave",action:"cursor:default"}],start:[{trigger:"legend-item:click",action:["legend-item-highlight:reset","element-highlight:reset","list-unchecked:toggle","element-filter:filter"]}]}),Pe("active-region",{start:[{trigger:"plot:mousemove",action:"active-region:show"}],end:[{trigger:"plot:mouseleave",action:"active-region:hide"}]}),Pe("axis-description",{start:[{trigger:"axis-description:mousemove",action:"axis-description:show"}],end:[{trigger:"axis-description:mouseleave",action:"axis-description:hide"}]});function qd(e){return e.gEvent.preventDefault(),e.gEvent.originalEvent.deltaY>0}Pe("view-zoom",{start:[{trigger:"plot:mousewheel",isEnable:function(e){return qd(e.event)},action:"scale-zoom:zoomOut",throttle:{wait:100,leading:!0,trailing:!1}},{trigger:"plot:mousewheel",isEnable:function(e){return!qd(e.event)},action:"scale-zoom:zoomIn",throttle:{wait:100,leading:!0,trailing:!1}}]}),Pe("sibling-tooltip",{start:[{trigger:"plot:mousemove",action:"sibling-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"sibling-tooltip:hide"}]}),Pe("plot-mousewheel-scroll",{start:[{trigger:"plot:mousewheel",action:"mousewheel-scroll:scroll"}]});var Hr=["type","alias","tickCount","tickInterval","min","max","nice","minLimit","maxLimit","range","tickMethod","base","exponent","mask","sync"],fn;(function(e){e.ERROR="error",e.WARN="warn",e.INFO="log"})(fn||(fn={}));var $d="AntV/G2Plot";function jd(e){for(var r=[],t=1;t<arguments.length;t++)r[t-1]=arguments[t];var n=0;return $d+": "+e.replace(/%s/g,function(){return""+r[n++]})}function R5(e,r){for(var t=[],n=2;n<arguments.length;n++)t[n-2]=arguments[n];if(!e){var i=new Error(jd.apply(void 0,__spreadArrays([r],t)));throw i.name=$d,i}}function Vn(e,r,t){for(var n=[],i=3;i<arguments.length;i++)n[i-3]=arguments[i];r||console[e](jd.apply(void 0,(0,d.pr)([t],n)))}function Qe(e,r){var t={};return e!==null&&typeof e=="object"&&r.forEach(function(n){var i=e[n];i!==void 0&&(t[n]=i)}),t}function Pc(e,r){if(!e)return{};var t=e.filter(function(a){var o=(0,f.U2)(a,[r]);return(0,f.hj)(o)&&!isNaN(o)}),n=t.every(function(a){return(0,f.U2)(a,[r])>=0}),i=t.every(function(a){return(0,f.U2)(a,[r])<=0});return n?{min:0}:i?{max:0}:{}}function Kd(e,r,t,n,i){if(i===void 0&&(i=[]),!Array.isArray(e))return{nodes:[],links:[]};var a=[],o={},s=-1;return e.forEach(function(l){var u=l[r],c=l[t],h=l[n],v=Qe(l,i);o[u]||(o[u]=(0,d.pi)({id:++s,name:u},v)),o[c]||(o[c]=(0,d.pi)({id:++s,name:c},v)),a.push((0,d.pi)({source:o[u].id,target:o[c].id,value:h},v))}),{nodes:Object.values(o).sort(function(l,u){return l.id-u.id}),links:a}}function pa(e,r){var t=(0,f.hX)(e,function(n){var i=n[r];return i===null||typeof i=="number"&&!isNaN(i)});return Vn(fn.WARN,t.length===e.length,"illegal data existed in chart data."),t}var i_=5,a_={}.toString,Jd=function(e,r){return a_.call(e)==="[object "+r+"]"},o_=function(e){return Jd(e,"Array")},s_=function(e){return typeof e=="object"&&e!==null},Qd=function(e){if(!s_(e)||!Jd(e,"Object"))return!1;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(e)===r},tg=function(e,r,t,n){t=t||0,n=n||i_;for(var i in r)if(Object.prototype.hasOwnProperty.call(r,i)){var a=r[i];a?Qd(a)?(Qd(e[i])||(e[i]={}),t<n?tg(e[i],a,t+1,n):e[i]=r[i]):o_(a)?(e[i]=[],e[i]=e[i].concat(a)):e[i]=a:e[i]=a}},It=function(e){for(var r=[],t=1;t<arguments.length;t++)r[t-1]=arguments[t];for(var n=0;n<r.length;n+=1)tg(e,r[n]);return e};function kc(e){if(!e)return{width:0,height:0};var r=getComputedStyle(e);return{width:(e.clientWidth||parseInt(r.width,10))-parseInt(r.paddingLeft,10)-parseInt(r.paddingRight,10),height:(e.clientHeight||parseInt(r.height,10))-parseInt(r.paddingTop,10)-parseInt(r.paddingBottom,10)}}function Fe(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return function(t){return e.reduce(function(n,i){return i(n)},t)}}function Tr(e,r){return e.geometries.find(function(t){return t.type===r})}function js(e){return(0,f.u4)(e.geometries,function(r,t){return r.concat(t.elements)},[])}function fo(e){return(0,f.U2)(e,["views","length"],0)<=0?js(e):(0,f.u4)(e.views,function(r,t){return r.concat(fo(t))},js(e))}function l_(e){return(0,f.U2)(e,["views","length"],0)<=0?e.geometries:(0,f.u4)(e.views,function(r,t){return r.concat(t.geometries)},e.geometries)}function Sr(e){if(!(0,f.P9)(e,"Object"))return e;var r=(0,d.pi)({},e);return r.formatter&&!r.content&&(r.content=r.formatter),r}var Dc;function u_(){return Dc||(Dc=document.createElement("canvas").getContext("2d")),Dc}var N5=(0,f.HP)(function(e,r){r===void 0&&(r={});var t=r.fontSize,n=r.fontFamily,i=n===void 0?"sans-serif":n,a=r.fontWeight,o=r.fontStyle,s=r.fontVariant,l=u_();l.font=[o,a,s,t+"px",i].join(" ");var u=l.measureText((0,f.HD)(e)?e:"");return u.width},function(e,r){return r===void 0&&(r={}),(0,d.pr)([e],(0,f.VO)(r)).join("")});function Bi(e){return typeof e=="number"&&!isNaN(e)}function c_(e,r,t){var n=Math.min(r,t),i=Math.max(r,t);return e>=n&&e<=i}function hi(e){if((0,f.hj)(e))return[e,e,e,e];if((0,f.kJ)(e)){var r=e.length;if(r===1)return[e[0],e[0],e[0],e[0]];if(r===2)return[e[0],e[1],e[0],e[1]];if(r===3)return[e[0],e[1],e[2],e[1]];if(r===4)return e}return[0,0,0,0]}function Ks(e,r,t){r===void 0&&(r="bottom"),t===void 0&&(t=25);var n=hi(e),i=[r.startsWith("top")?t:0,r.startsWith("right")?t:0,r.startsWith("bottom")?t:0,r.startsWith("left")?t:0];return[n[0]+i[0],n[1]+i[1],n[2]+i[2],n[3]+i[3]]}function Oc(e){var r=e.map(function(n){return hi(n)}),t=[0,0,0,0];return r.length>0&&(t=t.map(function(n,i){return r.forEach(function(a,o){n+=r[o][i]}),n})),t}function f_(e,r){var t=[];if(e.length){t.push(["M",e[0].x,e[0].y]);for(var n=1,i=e.length;n<i;n+=1){var a=e[n];t.push(["L",a.x,a.y])}r&&t.push(["Z"])}return t}var h_=function(e,r,t,n){var i=[],a,o,s=!!n,l,u;if(s){l=[Infinity,Infinity],u=[-Infinity,-Infinity];for(var c=0,h=e.length;c<h;c++){var v=e[c];l=ye.VV([0,0],l,v),u=ye.Fp([0,0],u,v)}l=ye.VV([0,0],l,n[0]),u=ye.Fp([0,0],u,n[1])}for(var c=0,p=e.length;c<p;c++){var v=e[c];if(t)a=e[c?c-1:p-1],o=e[(c+1)%p];else if(c===0||c===p-1){i.push(v);continue}else a=e[c-1],o=e[c+1];var g=[0,0];g=ye.lu(g,o,a),g=ye.bA(g,g,r);var y=ye.TE(v,a),x=ye.TE(v,o),m=y+x;m!==0&&(y/=m,x/=m);var w=ye.bA([0,0],g,-y),M=ye.bA([0,0],g,x),S=ye.IH([0,0],v,w),A=ye.IH([0,0],v,M);s&&(S=ye.Fp([0,0],S,l),S=ye.VV([0,0],S,u),A=ye.Fp([0,0],A,l),A=ye.VV([0,0],A,u)),i.push(S),i.push(A)}return t&&i.push(i.shift()),i};function v_(e,r,t){for(var n=!!r,i=[],a=0,o=e.length;a<o;a+=2)i.push([e[a],e[a+1]]);for(var s=h_(i,.4,n,t),l=i.length,u=[],c,h,v,a=0;a<l-1;a++)c=s[a*2],h=s[a*2+1],v=i[a+1],u.push(["C",c[0],c[1],h[0],h[1],v[0],v[1]]);return n&&(c=s[l],h=s[l+1],v=i[0],u.push(["C",c[0],c[1],h[0],h[1],v[0],v[1]])),u}function p_(e,r,t){var n=[],i=e[0],a=null;if(e.length<=2)return f_(e,r);for(var o=0,s=e.length;o<s;o++){var l=e[o];(!a||!(a.x===l.x&&a.y===l.y))&&(n.push(l.x),n.push(l.y),a=l)}var u=t||[[0,0],[1,1]],c=v_(n,r,u);return c.unshift(["M",i.x,i.y]),c}function eg(e){if(!e)return e;var r=e.match(/(([A-Z]{0,1}[a-z]*[^A-Z])|([A-Z]{1}))/g);return r.map(function(t){return t.toLowerCase()}).join("-")}function rg(e){var r={overflow:"hidden","white-space":"nowrap","text-overflow":"ellipsis",display:"flex",justifyContent:"center",alignItems:"center"},t=["stroke","lineWidth","shadowColor","strokeOpacity","shadowBlur","shadowOffsetX","shadowOffsetY","fill"];(0,f.U2)(e,"fill")&&(r.color=e.fill);var n=Qe(e,t),i=n.shadowColor,a=n.shadowBlur,o=a===void 0?0:a,s=n.shadowOffsetX,l=s===void 0?0:s,u=n.shadowOffsetY,c=u===void 0?0:u;r["text-shadow"]=""+[i,l+"px",c+"px",o+"px"].join(" ");var h=Qe(e,t),v=h.stroke,p=h.lineWidth,g=p===void 0?0:p;return r["-webkit-text-stroke"]=""+[g+"px",v].join(" "),(0,f.S6)(e,function(y,x){["fontSize"].includes(x)&&(0,f.hj)(y)?r[eg(x)]=y+"px":x&&!t.includes(x)&&(r[eg(x)]=""+y)}),r}function ng(e,r){e.style["pointer-events"]="none",(0,f.S6)(r,function(t,n){n&&t&&(e.style[n]=t)})}var Js=function(e,r,t){var n=r.statistic,i=r.plotType,a=n.title,o=n.content;[a,o].forEach(function(s,l){if(!!s){var u="";l===0?u=o?"translate(-50%, -100%)":"translate(-50%, -50%)":u=a?"translate(-50%, 0)":"translate(-50%, -50%)";var c=(0,f.mf)(s.style)?s.style(t):s.style;e.annotation().html((0,d.pi)({position:["50%","50%"],html:function(h,v){var p=v.getCoordinate(),g=0;if(i==="pie"||i==="ring-progress")g=p.getRadius()*p.innerRadius*2;else if(i==="liquid"){var y=(0,f.U2)(v.geometries,[0,"elements",0,"shape"]);if(y){var x=y.find(function(S){return S.get("name")==="wrap"}),m=x.getCanvasBBox().width;g=m}}else g||(g=p.getWidth());ng(h,(0,d.pi)({width:g+"px",transform:u},rg(c)));var w=v.getData();if(s.customHtml)return s.customHtml(h,v,t,w);var M=s.content;return s.formatter&&(M=s.formatter(t,w)),M?(0,f.HD)(M)?M:""+M:"<div></div>"},key:(l===0?"top":"bottom")+"-statistic"},Qe(s,["offsetX","offsetY","rotate","style","formatter"])))}})},d_=function(e,r,t){var n=r.statistic,i=n.title,a=n.content;[i,a].forEach(function(o){if(!!o){var s=(0,f.mf)(o.style)?o.style(t):o.style;e.annotation().html((0,d.pi)({position:["50%","100%"],html:function(l,u){var c=u.getCoordinate(),h=u.views[0].getCoordinate(),v=h.getCenter(),p=h.getRadius(),g=Math.max(Math.sin(h.startAngle),Math.sin(h.endAngle))*p,y=v.y+g-c.y.start-parseFloat((0,f.U2)(s,"fontSize",0)),x=c.getRadius()*c.innerRadius*2;ng(l,(0,d.pi)({width:x+"px",transform:"translate(-50%, "+y+"px)"},rg(s)));var m=u.getData();if(o.customHtml)return o.customHtml(l,u,t,m);var w=o.content;return o.formatter&&(w=o.formatter(t,m)),w?(0,f.HD)(w)?w:""+w:"<div></div>"}},Qe(o,["offsetX","offsetY","rotate","style","formatter"])))}})};function ig(e,r){return r?(0,f.u4)(r,function(t,n,i){return t.replace(new RegExp("{\\s*"+i+"\\s*}","g"),n)},e):e}function Ue(e,r){return e.views.find(function(t){return t.id===r})}function ho(e){var r=e.parent;return r?r.views:[]}function ag(e){return ho(e).filter(function(r){return r!==e})}function vo(e,r,t){t===void 0&&(t=e.geometries),typeof r=="boolean"?e.animate(r):e.animate(!0),(0,f.S6)(t,function(n){var i;(0,f.mf)(r)?i=r(n.type||n.shapeType,n)||!0:i=r,n.animate(i)})}function Qs(){return typeof window=="object"?window==null?void 0:window.devicePixelRatio:2}function Bc(e,r){r===void 0&&(r=e);var t=document.createElement("canvas"),n=Qs();t.width=e*n,t.height=r*n,t.style.width=e+"px",t.style.height=r+"px";var i=t.getContext("2d");return i.scale(n,n),t}function Rc(e,r,t,n){n===void 0&&(n=t);var i=r.backgroundColor,a=r.opacity;e.globalAlpha=a,e.fillStyle=i,e.beginPath(),e.fillRect(0,0,t,n),e.closePath()}function og(e,r,t){var n=e+r;return t?n*2:n}function sg(e,r){var t=r?[[e*(1/4),e*(1/4)],[e*(3/4),e*(3/4)]]:[[e*(1/2),e*(1/2)]];return t}function Nc(e,r){var t=r*Math.PI/180,n={a:Math.cos(t)*(1/e),b:Math.sin(t)*(1/e),c:-Math.sin(t)*(1/e),d:Math.cos(t)*(1/e),e:0,f:0};return n}var g_={size:6,padding:2,backgroundColor:"transparent",opacity:1,rotation:0,fill:"#fff",fillOpacity:.5,stroke:"transparent",lineWidth:0,isStagger:!0};function y_(e,r,t,n){var i=r.size,a=r.fill,o=r.lineWidth,s=r.stroke,l=r.fillOpacity;e.beginPath(),e.globalAlpha=l,e.fillStyle=a,e.strokeStyle=s,e.lineWidth=o,e.arc(t,n,i/2,0,2*Math.PI,!1),e.fill(),o&&e.stroke(),e.closePath()}function m_(e){var r=It({},g_,e),t=r.size,n=r.padding,i=r.isStagger,a=r.rotation,o=og(t,n,i),s=sg(o,i),l=Bc(o,o),u=l.getContext("2d");Rc(u,r,o);for(var c=0,h=s;c<h.length;c++){var v=h[c],p=v[0],g=v[1];y_(u,r,p,g)}var y=u.createPattern(l,"repeat");if(y){var x=Qs(),m=Nc(x,a);y.setTransform(m)}return y}var x_={rotation:45,spacing:5,opacity:1,backgroundColor:"transparent",strokeOpacity:.5,stroke:"#fff",lineWidth:2};function w_(e,r,t){var n=r.stroke,i=r.lineWidth,a=r.strokeOpacity,o=new Path2D(t);e.globalAlpha=a,e.lineCap="square",e.strokeStyle=i?n:"transparent",e.lineWidth=i,e.stroke(o)}function M_(e){var r=It({},x_,e),t=r.spacing,n=r.rotation,i=r.lineWidth,a=t+i||1,o=t+i||1,s=`
  72. M 0 0 L `+a+` 0
  73. M 0 `+o+" L "+a+" "+o+`
  74. `,l=Bc(a,o),u=l.getContext("2d");Rc(u,r,a,o),w_(u,r,s);var c=u.createPattern(l,"repeat");if(c){var h=Qs(),v=Nc(h,n);c.setTransform(v)}return c}var S_={size:6,padding:1,isStagger:!0,backgroundColor:"transparent",opacity:1,rotation:0,fill:"#fff",fillOpacity:.5,stroke:"transparent",lineWidth:0};function C_(e,r,t,n){var i=r.stroke,a=r.size,o=r.fill,s=r.lineWidth,l=r.fillOpacity;e.globalAlpha=l,e.strokeStyle=i,e.lineWidth=s,e.fillStyle=o,e.strokeRect(t-a/2,n-a/2,a,a),e.fillRect(t-a/2,n-a/2,a,a)}function b_(e){var r=It({},S_,e),t=r.size,n=r.padding,i=r.isStagger,a=r.rotation,o=og(t,n,i),s=sg(o,i),l=Bc(o,o),u=l.getContext("2d");Rc(u,r,o);for(var c=0,h=s;c<h.length;c++){var v=h[c],p=v[0],g=v[1];C_(u,r,p,g)}var y=u.createPattern(l,"repeat");if(y){var x=Qs(),m=Nc(x,a);y.setTransform(m)}return y}function A_(e){var r=e.type,t=e.cfg,n;switch(r){case"dot":n=m_(t);break;case"line":n=M_(t);break;case"square":n=b_(t);break;default:break}return n}function Zr(e){var r=this;return function(t){var n,i=t.options,a=t.chart,o=i.pattern;if(!o)return t;var s=function(l){for(var u,c,h,v=[],p=1;p<arguments.length;p++)v[p-1]=arguments[p];var g=a.getTheme().defaultColor,y=g,x=(c=(u=a.geometries)===null||u===void 0?void 0:u[0])===null||c===void 0?void 0:c.getAttribute("color");if(x){var m=x.getFields()[0],w=(0,f.U2)(l,m);y=Vr.getMappingValue(x,w,((h=x.values)===null||h===void 0?void 0:h[0])||g)}var M=o;typeof o=="function"&&(M=o.call(r,l,y)),M instanceof CanvasPattern||(M=A_(It({},{cfg:{backgroundColor:y}},M)));var S=i[e];return(0,d.pi)((0,d.pi)({},typeof S=="function"?S.call.apply(S,(0,d.pr)([r,l],v)):S||{}),{fill:M||y})};return It({},t,{options:(n={},n[e]=s,n)})}}function Ri(e){var r=e.chart,t=e.options,n=t.legend,i=t.colorField,a=t.seriesField;return n===!1?r.legend(!1):(i||a)&&r.legend(i||a,n),e}function yr(e){var r=e.chart,t=e.options,n=t.tooltip;return n!==void 0&&r.tooltip(n),e}function or(e){var r=e.chart,t=e.options,n=t.interactions;return(0,f.S6)(n,function(i){i.enable===!1?r.removeInteraction(i.type):r.interaction(i.type,i.cfg||{})}),e}function tr(e){var r=e.chart,t=e.options,n=t.animation;return vo(r,n),e}function We(e){var r=e.chart,t=e.options,n=t.theme;return n&&r.theme(n),e}function vi(e){var r=e.chart,t=e.options,n=t.state;return n&&(0,f.S6)(r.geometries,function(i){i.state(n)}),e}function po(e){var r=e.chart,t=e.options,n=t.slider;return r.option("slider",n),e}function zc(e){var r=e.chart,t=e.options,n=t.scrollbar;return r.option("scrollbar",n),e}function ur(e,r){return function(t){var n=t.chart,i=t.options,a={};return(0,f.S6)(e,function(o,s){a[s]=Qe(o,Hr)}),a=It({},r,i.meta,a),n.scale(a),t}}function sr(e){return function(r){var t=r.chart,n=r.options,i=t.getController("annotation");return(0,f.S6)((0,d.pr)(n.annotations||[],e||[]),function(a){i.annotation(a)}),r}}function Ni(e){var r=e.chart,t=e.options,n=t.yAxis,i=t.limitInPlot,a=i;return(0,f.Kn)(n)&&(0,f.UM)(i)&&(Object.values(Qe(n,["min","max","minLimit","maxLimit"])).some(function(o){return!(0,f.UM)(o)})?a=!0:a=!1),r.limitInPlot=a,e}function lg(e){return e===void 0&&(e="rect"),function(r){var t=r.chart,n=r.options,i=n.coordinate,a=Array.from(i||[]).map(function(o){return o.type==="reflectX"?["reflect","x"]:o.type==="reflectY"?["reflect","y"]:o.type==="transpose"?["transpose"]:null}).filter(function(o){return!!o});return a.length!==0&&t.coordinate({type:e,actions:a}),r}}var ug={locale:"en-US"};function z5(e){each(e,function(r,t){return ug[t]=r})}var tl={};function cg(e,r){tl[e]=r}function el(e){return{get:function(r,t){return ig((0,f.U2)(tl[e],r)||(0,f.U2)(tl[ug.locale],r)||(0,f.U2)(tl["en-US"],r)||r,t)}}}var T_={locale:"en-US",general:{increase:"Increase",decrease:"Decrease",root:"Root"},statistic:{total:"Total"},conversionTag:{label:"Rate"},legend:{},tooltip:{},slider:{},scrollbar:{},waterfall:{total:"Total"}},E_={locale:"zh-CN",general:{increase:"\u589E\u52A0",decrease:"\u51CF\u5C11",root:"\u521D\u59CB"},statistic:{total:"\u603B\u8BA1"},conversionTag:{label:"\u8F6C\u5316\u7387"},legend:{},tooltip:{},slider:{},scrollbar:{},waterfall:{total:"\u603B\u8BA1"}};function en(e,r){if(e===!1)return{fields:!1};var t=(0,f.U2)(e,"fields"),n=(0,f.U2)(e,"formatter");return n&&!t&&(t=r),{fields:t,formatter:n}}function rl(e,r){var t=e.type,n=e.xField,i=e.yField,a=e.colorField,o=e.shapeField,s=e.sizeField,l=e.styleField,u=e.rawFields,c=[];if(u=((0,f.mf)(u)?u(t,r):u)||[],r==="color")c=(0,d.pr)([a||n],u);else if(r==="shape")c=(0,d.pr)([o||n],u);else if(r==="size")c=(0,d.pr)([s||n],u);else{c=(0,d.pr)([n,i,a,o,s,l],u);var h=["x","y","color","shape","size","style"].indexOf(r),v=c[h];c.splice(h,1),c.unshift(v)}var p=(0,f.jj)(c.filter(function(y){return!!y})),g=t==="line"&&[n,i].includes(p.join("*"))?"":p.join("*");return{mappingFields:p,tileMappingField:g}}function da(e,r){if(!!r)return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i={};return e.forEach(function(a,o){i[a]=t[o]}),delete i.undefined,r(i)}}function Gr(e){var r=e.chart,t=e.options,n=t.type,i=t.args,a=t.mapping,o=t.xField,s=t.yField,l=t.colorField,u=t.shapeField,c=t.sizeField,h=t.tooltipFields,v=t.label,p=t.state,g=t.customInfo;if(!a)return e;var y=a.color,x=a.shape,m=a.size,w=a.style,M=a.tooltip,S=r[n](i).position(o+"*"+s);if((0,f.HD)(y))l?S.color(l,y):S.color(y);else if((0,f.mf)(y)){var A=rl(t,"color"),D=A.mappingFields,V=A.tileMappingField;S.color(V,da(D,y))}else l&&S.color(l,y);if((0,f.HD)(x))u?S.shape(u,[x]):S.shape(x);else if((0,f.mf)(x)){var K=rl(t,"shape"),D=K.mappingFields,V=K.tileMappingField;S.shape(V,da(D,x))}else u&&S.shape(u,x);if((0,f.hj)(m))c?S.size(c,m):S.size(m);else if((0,f.mf)(m)){var Mt=rl(t,"size"),D=Mt.mappingFields,V=Mt.tileMappingField;S.size(V,da(D,m))}else c&&S.size(c,m);if((0,f.mf)(w)){var ot=rl(t,"style"),D=ot.mappingFields,V=ot.tileMappingField;S.style(V,da(D,w))}else(0,f.Kn)(w)&&S.style(w);if(h===!1?S.tooltip(!1):(0,f.xb)(h)||S.tooltip(h.join("*"),da(h,M)),v===!1)S.label(!1);else if(v){var Lt=v.callback,Qt=v.fields,ge=(0,d._T)(v,["callback","fields"]);S.label({fields:Qt||[s],callback:Lt,cfg:Sr(ge)})}return p&&S.state(p),g&&S.customInfo(g),[o,s].filter(function(we){return we!==l}).forEach(function(we){r.legend(we,!1)}),(0,d.pi)((0,d.pi)({},e),{ext:{geometry:S}})}function nl(e){var r=e.options,t=r.area,n=r.xField,i=r.yField,a=r.seriesField,o=r.smooth,s=r.tooltip,l=r.useDeferredLabel,u=en(s,[n,i,a]),c=u.fields,h=u.formatter;return t?Gr(It({},e,{options:{type:"area",colorField:a,tooltipFields:c,mapping:(0,d.pi)({shape:o?"smooth":"area",tooltip:h},t),args:{useDeferredLabel:l}}})):e}function fg(e){var r=e.options,t=r.edge,n=r.xField,i=r.yField,a=r.seriesField,o=r.tooltip,s=r.useDeferredLabel,l=en(o,[n,i,a]),u=l.fields,c=l.formatter;return t?Gr(It({},e,{options:{type:"edge",colorField:a,tooltipFields:u,mapping:(0,d.pi)({tooltip:c},t),args:{useDeferredLabel:s}}})):e}function __(e){var r=e.chart,t=e.options,n=e.ext,i=t.seriesField,a=t.isGroup,o=t.isStack,s=t.marginRatio,l=t.widthRatio,u=t.groupField,c=t.theme,h=[];if(i&&(a&&h.push({type:"dodge",dodgeBy:u||i,marginRatio:s}),o&&h.push({type:"stack",marginRatio:s})),h.length&&(n==null?void 0:n.geometry)){var v=n==null?void 0:n.geometry;v.adjust(h)}return(0,f.UM)(l)||r.theme(It({},(0,f.Kn)(c)?c:Ka(c),{columnWidthRatio:l})),e}function Er(e){var r=e.options,t=r.xField,n=r.yField,i=r.interval,a=r.seriesField,o=r.tooltip,s=r.minColumnWidth,l=r.maxColumnWidth,u=r.columnBackground,c=r.dodgePadding,h=r.intervalPadding,v=r.useDeferredLabel,p=en(o,[t,n,a]),g=p.fields,y=p.formatter,x=(i?Gr(It({},e,{options:{type:"interval",colorField:a,tooltipFields:g,mapping:(0,d.pi)({tooltip:y},i),args:{dodgePadding:c,intervalPadding:h,minColumnWidth:s,maxColumnWidth:l,background:u,useDeferredLabel:v}}})):e).ext;return __((0,d.pi)((0,d.pi)({},e),{ext:x}))}function ga(e){var r=e.options,t=r.line,n=r.stepType,i=r.xField,a=r.yField,o=r.seriesField,s=r.smooth,l=r.connectNulls,u=r.tooltip,c=r.useDeferredLabel,h=en(u,[i,a,o]),v=h.fields,p=h.formatter;return t?Gr(It({},e,{options:{type:"line",colorField:o,tooltipFields:v,mapping:(0,f.b$)({shape:n||(s?"smooth":"line"),tooltip:p},t),args:{connectNulls:l,useDeferredLabel:c}}})):e}function qr(e){var r=e.options,t=r.point,n=r.xField,i=r.yField,a=r.seriesField,o=r.sizeField,s=r.shapeField,l=r.tooltip,u=r.useDeferredLabel,c=en(l,[n,i,a,o,s]),h=c.fields,v=c.formatter;return t?Gr(It({},e,{options:{type:"point",colorField:a,shapeField:s,tooltipFields:h,mapping:(0,d.pi)({tooltip:v},t),args:{useDeferredLabel:u}}})):e}function il(e){var r=e.options,t=r.polygon,n=r.xField,i=r.yField,a=r.seriesField,o=r.tooltip,s=r.useDeferredLabel,l=en(o,[n,i,a]),u=l.fields,c=l.formatter;return t?Gr(It({},e,{options:{type:"polygon",colorField:a,tooltipFields:u,mapping:(0,d.pi)({tooltip:c},t),args:{useDeferredLabel:s}}})):e}function Vc(e){var r=e.options,t=r.schema,n=r.xField,i=r.yField,a=r.seriesField,o=r.tooltip,s=r.useDeferredLabel,l=en(o,[n,i,a]),u=l.fields,c=l.formatter;return t?Gr(It({},e,{options:{type:"schema",colorField:a,tooltipFields:u,mapping:(0,d.pi)({tooltip:c},t),args:{useDeferredLabel:s}}})):e}function F_(e){var r=e.options,t=r.violin,n=r.xField,i=r.yField,a=r.seriesField,o=r.sizeField,s=r.tooltip,l=en(s,[n,i,a,o]),u=l.fields,c=l.formatter;return t?Gr(It({},e,{options:{type:"violin",colorField:a,tooltipFields:u,mapping:(0,d.pi)({tooltip:c},t)}})):e}var I_=et(18587),hg="data-chart-source-type",vg=["padding","appendPadding","renderer","pixelRatio","syncViewPadding","supportCSSTransform","limitInPlot"],Oe=function(e){(0,d.ZT)(r,e);function r(t,n){var i=e.call(this)||this;return i.container=typeof t=="string"?document.getElementById(t):t,i.options=It({},i.getDefaultOptions(),n),i.createG2(),i.bindEvents(),i}return r.getDefaultOptions=function(){return{renderer:"canvas",xAxis:{nice:!0,label:{autoRotate:!1,autoHide:{type:"equidistance",cfg:{minGap:6}}}},yAxis:{nice:!0,label:{autoHide:!0,autoRotate:!1}},animation:!0}},r.prototype.createG2=function(){var t=this.options,n=t.width,i=t.height,a=t.defaultInteractions;this.chart=new KM((0,d.pi)((0,d.pi)((0,d.pi)((0,d.pi)({container:this.container,autoFit:!1},this.getChartSize(n,i)),{localRefresh:!1}),Qe(this.options,vg)),{defaultInteractions:a})),this.container.setAttribute(hg,"G2Plot")},r.prototype.getChartSize=function(t,n){var i=kc(this.container);return{width:t||i.width||400,height:n||i.height||400}},r.prototype.bindEvents=function(){var t=this;this.chart&&this.chart.on("*",function(n){(n==null?void 0:n.type)&&t.emit(n.type,n)})},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.render=function(){this.chart.clear(),this.chart.options={data:[],animate:!0},this.chart.views=[],this.execAdaptor(),this.chart.render(),this.bindSizeSensor()},r.prototype.update=function(t){this.updateOption(t),this.render()},r.prototype.updateOption=function(t){this.options=It({},this.options,t)},r.prototype.setState=function(t,n,i){i===void 0&&(i=!0);var a=fo(this.chart);(0,f.S6)(a,function(o){n(o.getData())&&o.setState(t,i)})},r.prototype.getStates=function(){var t=fo(this.chart),n=[];return(0,f.S6)(t,function(i){var a=i.getData(),o=i.getStates();(0,f.S6)(o,function(s){n.push({data:a,state:s,geometry:i.geometry,element:i})})}),n},r.prototype.changeData=function(t){this.update({data:t})},r.prototype.changeSize=function(t,n){this.chart.changeSize(t,n)},r.prototype.addAnnotations=function(t,n){n=n||this.chart;var i=(0,d.pr)(t),a=n.getController("annotation"),o=a.getComponents().map(function(u){return u.extra});a.clear(!0);for(var s=function(u){var c=o[u],h=i.findIndex(function(v){return v.id&&v.id===c.id});h!==-1&&(c=It({},c,i[h]),i.splice(h,1)),a.annotation(c)},l=0;l<o.length;l++)s(l);i.forEach(function(u){return a.annotation(u)}),n.render(!0)},r.prototype.removeAnnotations=function(t){var n=this.chart.getController("annotation"),i=n.getComponents().map(function(s){return s.extra});n.clear(!0);for(var a=function(s){var l=i[s];t.find(function(u){return u.id&&u.id===l.id})||n.annotation(l)},o=0;o<i.length;o++)a(o);this.chart.render(!0)},r.prototype.destroy=function(){this.unbindSizeSensor(),this.chart.destroy(),this.off(),this.container.removeAttribute(hg)},r.prototype.execAdaptor=function(){var t=this.getSchemaAdaptor(),n=this.options,i=n.padding,a=n.appendPadding;this.chart.padding=i,this.chart.appendPadding=a,t({chart:this.chart,options:this.options})},r.prototype.triggerResize=function(){this.chart.forceFit()},r.prototype.bindSizeSensor=function(){var t=this;if(!this.unbind){var n=this.options.autoFit,i=n===void 0?!0:n;i&&(this.unbind=(0,I_.ak)(this.container,function(){var a=kc(t.container),o=a.width,s=a.height;(o!==t.chart.width||s!==t.chart.height)&&t.triggerResize()}))}},r.prototype.unbindSizeSensor=function(){this.unbind&&(this.unbind(),this.unbind=void 0)},r}(tt.Z);function pg(e,r,t,n){var i=(0,f.u4)(e,function(a,o){var s=o[t],l=a.has(s)?a.get(s):0,u=o[r];return l=Bi(u)?l+u:l,a.set(s,l),a},new Map);return(0,f.UI)(e,function(a){var o,s=a[r],l=a[t],u=Bi(s)&&i.get(l)!==0?s/i.get(l):0;return(0,d.pi)((0,d.pi)({},a),(o={},o[n]=u,o))})}function L_(e,r,t,n){var i=(0,f.u4)(e,function(a,o){var s=(0,f.u4)(t,function(c,h){return""+c+o[h]},""),l=a.has(s)?a.get(s):0,u=o[r];return l=Bi(u)?l+u:l,a.set(s,l),a},new Map);return(0,f.UI)(e,function(a){var o,s=a[r],l=(0,f.u4)(t,function(c,h){return""+c+a[h]},""),u=Bi(s)&&i.get(l)!==0?s/i.get(l):0;return(0,d.pi)((0,d.pi)({},a),(o={},o[n]=u,o))})}function go(e,r,t,n,i){return i?pg(e,r,t,n):e}function P_(e){var r=e.chart,t=e.options,n=t.data,i=t.color,a=t.lineStyle,o=t.lineShape,s=t.point,l=t.area,u=t.seriesField,c=s==null?void 0:s.state,h=l==null?void 0:l.state;r.data(n);var v=It({},e,{options:{shapeField:u,line:{color:i,style:a,shape:o},point:s&&(0,d.pi)({color:i,shape:"circle"},s),area:l&&(0,d.pi)({color:i},l),label:void 0}}),p=It({},v,{options:{tooltip:!1,state:c}}),g=It({},v,{options:{tooltip:!1,state:h}});return ga(v),qr(p),nl(g),e}function al(e){var r,t,n=e.options,i=n.xAxis,a=n.yAxis,o=n.xField,s=n.yField,l=n.data;return Fe(ur((r={},r[o]=i,r[s]=a,r),(t={},t[o]={type:"cat"},t[s]=Pc(l,s),t)))(e)}function k_(e){var r=e.chart,t=e.options,n=t.reflect;if(n){var i=n;(0,f.kJ)(i)||(i=[i]);var a=i.map(function(o){return["reflect",o]});r.coordinate({type:"rect",actions:a})}return e}function dg(e){var r=e.chart,t=e.options,n=t.xAxis,i=t.yAxis,a=t.xField,o=t.yField;return n===!1?r.axis(a,!1):r.axis(a,n),i===!1?r.axis(o,!1):r.axis(o,i),e}function gg(e){var r=e.chart,t=e.options,n=t.legend,i=t.seriesField;return n&&i?r.legend(i,n):n===!1&&r.legend(!1),e}function D_(e){var r=e.chart,t=e.options,n=t.label,i=t.yField,a=Tr(r,"line");if(!n)a.label(!1);else{var o=n.callback,s=(0,d._T)(n,["callback"]);a.label({fields:[i],callback:o,cfg:(0,d.pi)({layout:[{type:"limit-in-plot"},{type:"path-adjust-position"},{type:"point-adjust-position"},{type:"limit-in-plot",cfg:{action:"hide"}}]},Sr(s))})}return e}function O_(e){var r=e.chart,t=e.options,n=t.isStack;return n&&(0,f.S6)(r.geometries,function(i){i.adjust("stack")}),e}function yg(e){return Fe(P_,al,O_,We,k_,dg,gg,yr,D_,po,zc,or,tr,sr(),Ni)(e)}function B_(e){var r=e.chart,t=e.options,n=t.data,i=t.areaStyle,a=t.color,o=t.point,s=t.line,l=t.isPercent,u=t.xField,c=t.yField,h=t.tooltip,v=t.seriesField,p=t.startOnZero,g=o==null?void 0:o.state,y=go(n,c,u,c,l);r.data(y);var x=l?(0,d.pi)({formatter:function(S){return{name:S[v]||S[u],value:(Number(S[c])*100).toFixed(2)+"%"}}},h):h,m=It({},e,{options:{area:{color:a,style:i},point:o&&(0,d.pi)({color:a},o),tooltip:x,label:void 0,args:{startOnZero:p}}}),w={chart:r,options:It({line:{size:2}},(0,f.CE)(t,["state"]),{line:s&&(0,d.pi)({color:a},s),sizeField:v,state:s==null?void 0:s.state,tooltip:!1,label:void 0,args:{startOnZero:p}})},M=It({},m,{options:{tooltip:!1,state:g}});return nl(m),ga(w),qr(M),e}function R_(e){var r=e.chart,t=e.options,n=t.label,i=t.yField,a=Tr(r,"area");if(!n)a.label(!1);else{var o=n.callback,s=(0,d._T)(n,["callback"]);a.label({fields:[i],callback:o,cfg:(0,d.pi)({layout:[{type:"limit-in-plot"},{type:"path-adjust-position"},{type:"point-adjust-position"},{type:"limit-in-plot",cfg:{action:"hide"}}]},Sr(s))})}return e}function N_(e){var r=e.chart,t=e.options,n=t.isStack,i=t.isPercent,a=t.seriesField;return(i||n)&&a&&(0,f.S6)(r.geometries,function(o){o.adjust("stack")}),e}function mg(e){return Fe(We,Zr("areaStyle"),lg("rect"),B_,al,N_,dg,gg,yr,R_,po,sr(),or,tr,Ni)(e)}var z_=It({},Oe.getDefaultOptions(),{tooltip:{shared:!0,showMarkers:!0,showCrosshairs:!0,crosshairs:{type:"x"}},isStack:!0,line:{},legend:{position:"top-left",radio:{}}}),V_=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="area",t}return r.getDefaultOptions=function(){return z_},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.changeData=function(t){this.updateOption({data:t});var n=this.options,i=n.isPercent,a=n.xField,o=n.yField,s=this,l=s.chart,u=s.options;al({chart:l,options:u}),this.chart.changeData(go(t,o,a,o,i))},r.prototype.getSchemaAdaptor=function(){return mg},r}(Oe),U_=10,H_=5,G_={padding:[8,10],text:"reset",textStyle:{default:{x:0,y:0,fontSize:12,fill:"#333333",cursor:"pointer"}},buttonStyle:{default:{fill:"#f7f7f7",stroke:"#cccccc",cursor:"pointer"},active:{fill:"#e6e6e6"}}},Y_=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.buttonGroup=null,t.buttonCfg=(0,d.pi)({name:"button"},G_),t}return r.prototype.getButtonCfg=function(){var t=this.context.view,n=(0,f.U2)(t,["interactions","filter-action","cfg","buttonConfig"]);return It(this.buttonCfg,n,this.cfg)},r.prototype.drawButton=function(){var t=this.getButtonCfg(),n=this.context.view.foregroundGroup.addGroup({name:t.name}),i=this.drawText(n);this.drawBackground(n,i.getBBox()),this.buttonGroup=n},r.prototype.drawText=function(t){var n,i=this.getButtonCfg();return t.addShape({type:"text",name:"button-text",attrs:(0,d.pi)({text:i.text},(n=i.textStyle)===null||n===void 0?void 0:n.default)})},r.prototype.drawBackground=function(t,n){var i,a=this.getButtonCfg(),o=hi(a.padding),s=t.addShape({type:"rect",name:"button-rect",attrs:(0,d.pi)({x:n.x-o[3],y:n.y-o[0],width:n.width+o[1]+o[3],height:n.height+o[0]+o[2]},(i=a.buttonStyle)===null||i===void 0?void 0:i.default)});return s.toBack(),t.on("mouseenter",function(){var l;s.attr((l=a.buttonStyle)===null||l===void 0?void 0:l.active)}),t.on("mouseleave",function(){var l;s.attr((l=a.buttonStyle)===null||l===void 0?void 0:l.default)}),s},r.prototype.resetPosition=function(){var t=this.context.view,n=t.getCoordinate(),i=n.convert({x:1,y:1}),a=this.buttonGroup,o=a.getBBox(),s=Vr.transform(null,[["t",i.x-o.width-U_,i.y+o.height+H_]]);a.setMatrix(s)},r.prototype.show=function(){this.buttonGroup||this.drawButton(),this.resetPosition(),this.buttonGroup.show()},r.prototype.hide=function(){this.buttonGroup&&this.buttonGroup.hide()},r.prototype.destroy=function(){var t=this.buttonGroup;t&&t.remove(),e.prototype.destroy.call(this)},r}(ar);be("brush-reset-button",Y_,{name:"brush-reset-button"}),Pe("filter-action",{});function Un(e){return e.isInPlot()}function zi(e,r,t){var n=t||{},i=n.mask,a=n.isStartEnable,o=r||"rect";switch(e){case"brush":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair",isEnable:a||function(){return!0}},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:a||Un,action:["brush:start",o+"-mask:start",o+"-mask:show"],arg:[null,{maskStyle:i==null?void 0:i.style}]}],processing:[{trigger:"mousemove",isEnable:Un,action:[o+"-mask:resize"]}],end:[{trigger:"mouseup",isEnable:Un,action:["brush:filter","brush:end",o+"-mask:end",o+"-mask:hide","brush-reset-button:show"]}],rollback:[{trigger:"brush-reset-button:click",action:["brush:reset","brush-reset-button:hide","cursor:crosshair"]}]};case"brush-highlight":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair",isEnable:a||function(){return!0}},{trigger:"plot:mousemove",action:"cursor:crosshair",isEnable:a||function(){return!0}},{trigger:"plot:mousemove",action:"cursor:default",isEnable:function(s){return a?!a(s):!1}},{trigger:"mask:mouseenter",action:"cursor:move",isEnable:a||function(){return!0}},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:a||function(s){return!s.isInShape("mask")},action:[o+"-mask:start",o+"-mask:show"],arg:[{maskStyle:i==null?void 0:i.style}]},{trigger:"mask:dragstart",action:[o+"-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:[o+"-mask:resize"]},{trigger:"mask:drag",action:[o+"-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:[o+"-mask:end"]},{trigger:"mask:dragend",action:[o+"-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(s){return!s.isInPlot()},action:["element-range-highlight:clear",o+"-mask:end",o+"-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear",o+"-mask:hide"]}]};case"brush-x":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair",isEnable:a||function(){return!0}},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:a||Un,action:["brush-x:start",o+"-mask:start",o+"-mask:show"],arg:[null,{maskStyle:i==null?void 0:i.style}]}],processing:[{trigger:"mousemove",isEnable:Un,action:[o+"-mask:resize"]}],end:[{trigger:"mouseup",isEnable:Un,action:["brush-x:filter","brush-x:end",o+"-mask:end",o+"-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]};case"brush-x-highlight":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair",isEnable:a||function(){return!0}},{trigger:"mask:mouseenter",action:"cursor:move",isEnable:a||function(){return!0}},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:a||function(s){return!s.isInShape("mask")},action:[o+"-mask:start",o+"-mask:show"],arg:[{maskStyle:i==null?void 0:i.style}]},{trigger:"mask:dragstart",action:[o+"-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:[o+"-mask:resize"]},{trigger:"mask:drag",action:[o+"-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:[o+"-mask:end"]},{trigger:"mask:dragend",action:[o+"-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(s){return!s.isInPlot()},action:["element-range-highlight:clear",o+"-mask:end",o+"-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear",o+"-mask:hide"]}]};case"brush-y":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair",isEnable:a||function(){return!0}},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:a||Un,action:["brush-y:start",o+"-mask:start",o+"-mask:show"],arg:[null,{maskStyle:i==null?void 0:i.style}]}],processing:[{trigger:"mousemove",isEnable:Un,action:[o+"-mask:resize"]}],end:[{trigger:"mouseup",isEnable:Un,action:["brush-y:filter","brush-y:end",o+"-mask:end",o+"-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-y:reset"]}]};case"brush-y-highlight":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair",isEnable:a||function(){return!0}},{trigger:"mask:mouseenter",action:"cursor:move",isEnable:a||function(){return!0}},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:a||function(s){return!s.isInShape("mask")},action:[o+"-mask:start",o+"-mask:show"],arg:[{maskStyle:i==null?void 0:i.style}]},{trigger:"mask:dragstart",action:[o+"-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:[o+"-mask:resize"]},{trigger:"mask:drag",action:[o+"-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:[o+"-mask:end"]},{trigger:"mask:dragend",action:[o+"-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(s){return!s.isInPlot()},action:["element-range-highlight:clear",o+"-mask:end",o+"-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear",o+"-mask:hide"]}]};default:return{}}}Pe("brush",zi("brush")),Pe("brush-highlight",zi("brush-highlight")),Pe("brush-x",zi("brush-x","x-rect")),Pe("brush-y",zi("brush-y","y-rect")),Pe("brush-x-highlight",zi("brush-x-highlight","x-rect")),Pe("brush-y-highlight",zi("brush-y-highlight","y-rect"));var xg=["brush","brush-x","brush-y","brush-highlight","brush-x-highlight","brush-y-highlight"];function wg(e){var r=e.options,t=r.brush,n=(0,f.hX)(r.interactions||[],function(i){return xg.indexOf(i.type)===-1});return(t==null?void 0:t.enabled)&&(xg.forEach(function(i){var a=!1;switch(t.type){case"x-rect":a=i===(t.action==="highlight"?"brush-x-highlight":"brush-x");break;case"y-rect":a=i===(t.action==="highlight"?"brush-y-highlight":"brush-y");break;default:a=i===(t.action==="highlight"?"brush-highlight":"brush");break}var o={type:i,enable:a};t&&(o.cfg=zi(i,t.type,t)),n.push(o)}),(t==null?void 0:t.action)!=="highlight"&&n.push({type:"filter-action",cfg:{buttonConfig:t.button}})),It({},e,{options:{interactions:n}})}var Vi={hover:"__interval-connected-area-hover__",click:"__interval-connected-area-click__"},Uc=function(e,r){return e==="hover"?[{trigger:"interval:mouseenter",action:["element-highlight-by-color:highlight","element-link-by-color:link"],arg:[null,{style:r}]}]:[{trigger:"interval:click",action:["element-highlight-by-color:clear","element-highlight-by-color:highlight","element-link-by-color:clear","element-link-by-color:unlink","element-link-by-color:link"],arg:[null,null,null,null,{style:r}]}]};Pe(Vi.hover,{start:Uc(Vi.hover),end:[{trigger:"interval:mouseleave",action:["element-highlight-by-color:reset","element-link-by-color:unlink"]}]}),Pe(Vi.click,{start:Uc(Vi.click),end:[{trigger:"document:mousedown",action:["element-highlight-by-color:clear","element-link-by-color:clear"]}]});function X_(e){return e===void 0&&(e=!1),function(r){var t=r.chart,n=r.options,i=n.connectedArea,a=function(){t.removeInteraction(Vi.hover),t.removeInteraction(Vi.click)};if(!e&&i){var o=i.trigger||"hover";a(),t.interaction(Vi[o],{start:Uc(o,i.style)})}else a();return r}}function Mg(e,r){return!(0,f.hj)(e)||!(0,f.hj)(r)||e===0&&r===0?"-":e===r?"100%":e===0?"\u221E":(100*r/e).toFixed(2)+"%"}function W_(e,r){return It({size:r?32:80,spacing:r?8:12,offset:r?32:0,arrow:e.arrow!==!1&&{headSize:12,style:{fill:"rgba(0, 0, 0, 0.05)"}},text:e.text!==!1&&{style:{fontSize:12,fill:"rgba(0, 0, 0, 0.85)",textAlign:"center",textBaseline:"middle"},formatter:Mg}},e)}function ol(e,r){return(0,f.UI)(r.getModel().points,function(t){return e.convertPoint(t)})}function Z_(e,r,t){var n=e.view,i=e.geometry,a=e.group,o=e.options,s=e.horizontal,l=o.offset,u=o.size,c=o.arrow,h=n.getCoordinate(),v=ol(h,r)[3],p=ol(h,t)[0],g=p.y-v.y,y=p.x-v.x;if(typeof c!="boolean"){var x=c.headSize,m=o.spacing,w;s?(y-x)/2<m?(m=Math.max(1,(y-x)/2),w=[[v.x+m,v.y-l],[v.x+m,v.y-l-u],[p.x-m,p.y-l-u/2]]):w=[[v.x+m,v.y-l],[v.x+m,v.y-l-u],[p.x-m-x,p.y-l-u],[p.x-m,p.y-l-u/2],[p.x-m-x,p.y-l]]:(g-x)/2<m?(m=Math.max(1,(g-x)/2),w=[[v.x+l,v.y+m],[v.x+l+u,v.y+m],[p.x+l+u/2,p.y-m]]):w=[[v.x+l,v.y+m],[v.x+l+u,v.y+m],[p.x+l+u,p.y-m-x],[p.x+l+u/2,p.y-m],[p.x+l,p.y-m-x]],a.addShape("polygon",{id:n.id+"-conversion-tag-arrow-"+i.getElementId(r.getModel().mappingData),name:"conversion-tag-arrow",origin:{element:r,nextElement:t},attrs:(0,d.pi)((0,d.pi)({},c.style||{}),{points:w})})}}function q_(e,r,t){var n,i,a,o=e.view,s=e.geometry,l=e.group,u=e.options,c=e.field,h=e.horizontal,v=u.offset,p=u.size;if(typeof u.text!="boolean"){var g=o.getCoordinate(),y=((n=u.text)===null||n===void 0?void 0:n.formatter)&&((i=u.text)===null||i===void 0?void 0:i.formatter(r.getData()[c],t.getData()[c])),x=ol(g,r)[h?3:0],m=ol(g,t)[h?0:3],w=l.addShape("text",{id:o.id+"-conversion-tag-text-"+s.getElementId(r.getModel().mappingData),name:"conversion-tag-text",origin:{element:r,nextElement:t},attrs:(0,d.pi)((0,d.pi)({},((a=u.text)===null||a===void 0?void 0:a.style)||{}),{text:y,x:h?(x.x+m.x)/2:x.x+v+p/2,y:h?x.y-v-p/2:(x.y+m.y)/2})});if(h){var M=m.x-x.x,S=w.getBBox().width;if(S>M){var A=S/y.length,D=Math.max(1,Math.ceil(M/A)-1),V=y.slice(0,D)+"...";w.attr("text",V)}}}}function $_(e,r,t){Z_(e,r,t),q_(e,r,t)}function j_(e,r,t){return r===void 0&&(r=!0),t===void 0&&(t=!1),function(n){var i=n.options,a=n.chart,o=i.conversionTag,s=i.theme;return o&&!t&&(a.theme(It({},(0,f.Kn)(s)?s:Ka(s),{columnWidthRatio:1/3})),a.annotation().shape({render:function(l,u){var c=l.addGroup({id:a.id+"-conversion-tag-group",name:"conversion-tag-group"}),h=(0,f.sE)(a.geometries,function(g){return g.type==="interval"}),v={view:u,geometry:h,group:c,field:e,horizontal:r,options:W_(o,r)},p=h.elements;(0,f.S6)(p,function(g,y){y>0&&$_(v,p[y-1],g)})}})),n}}function K_(e){var r=e.options,t=r.legend,n=r.seriesField,i=r.isStack;return n?t!==!1&&(t=(0,d.pi)({position:i?"right-top":"top-left"},t)):t=!1,e.options.legend=t,e}function J_(e){var r=e.chart,t=e.options,n=t.data,i=t.columnStyle,a=t.color,o=t.columnWidthRatio,s=t.isPercent,l=t.isGroup,u=t.isStack,c=t.xField,h=t.yField,v=t.seriesField,p=t.groupField,g=t.tooltip,y=t.shape,x=s&&l&&u?L_(n,h,[c,p],h):go(n,h,c,h,s),m=[];u&&v&&!l?x.forEach(function(S){var A=m.find(function(D){return D[c]===S[c]&&D[v]===S[v]});A?A[h]+=S[h]||0:m.push((0,d.pi)({},S))}):m=x,r.data(m);var w=s?(0,d.pi)({formatter:function(S){return{name:l&&u?S[v]+" - "+S[p]:S[v]||S[c],value:(Number(S[h])*100).toFixed(2)+"%"}}},g):g,M=It({},e,{options:{data:m,widthRatio:o,tooltip:w,interval:{shape:y,style:i,color:a}}});return Er(M),M}function Hc(e){var r,t,n=e.options,i=n.xAxis,a=n.yAxis,o=n.xField,s=n.yField,l=n.data,u=n.isPercent,c=u?{max:1,min:0,minLimit:0,maxLimit:1}:{};return Fe(ur((r={},r[o]=i,r[s]=a,r),(t={},t[o]={type:"cat"},t[s]=(0,d.pi)((0,d.pi)({},Pc(l,s)),c),t)))(e)}function Q_(e){var r=e.chart,t=e.options,n=t.xAxis,i=t.yAxis,a=t.xField,o=t.yField;return n===!1?r.axis(a,!1):r.axis(a,n),i===!1?r.axis(o,!1):r.axis(o,i),e}function tF(e){var r=e.chart,t=e.options,n=t.legend,i=t.seriesField;return n&&i?r.legend(i,n):n===!1&&r.legend(!1),e}function eF(e){var r=e.chart,t=e.options,n=t.label,i=t.yField,a=t.isRange,o=Tr(r,"interval");if(!n)o.label(!1);else{var s=n.callback,l=(0,d._T)(n,["callback"]);o.label({fields:[i],callback:s,cfg:(0,d.pi)({layout:(l==null?void 0:l.position)?void 0:[{type:"interval-adjust-position"},{type:"interval-hide-overlap"},{type:"adjust-color"},{type:"limit-in-plot",cfg:{action:"hide"}}]},Sr(a?(0,d.pi)({content:function(u){var c;return(c=u[i])===null||c===void 0?void 0:c.join("-")}},l):l))})}return e}function rF(e){var r=e.chart,t=e.options,n=t.tooltip,i=t.isGroup,a=t.isStack,o=t.groupField,s=t.data,l=t.xField,u=t.yField,c=t.seriesField;if(n===!1)r.tooltip(!1);else{var h=n;if(i&&a){var v=h.customItems,p=(h==null?void 0:h.formatter)||function(g){return{name:g[c]+" - "+g[o],value:g[u]}};h=(0,d.pi)((0,d.pi)({},h),{customItems:function(g){var y=[];return(0,f.S6)(g,function(x){var m=(0,f.hX)(s,function(w){return(0,f.BD)(w,Qe(x.data,[l,c]))});m.forEach(function(w){y.push((0,d.pi)((0,d.pi)((0,d.pi)({},x),{value:w[u],data:w,mappingData:{_origin:w}}),p(w)))})}),v?v(y):y}})}r.tooltip(h)}return e}function sl(e,r){r===void 0&&(r=!1);var t=e.options,n=t.seriesField;return Fe(K_,We,Zr("columnStyle"),vi,lg("rect"),J_,Hc,Q_,tF,rF,po,zc,eF,wg,or,tr,sr(),j_(t.yField,!r,!!n),X_(!t.isStack),Ni)(e)}function nF(e){var r=e.options,t=r.xField,n=r.yField,i=r.xAxis,a=r.yAxis,o={left:"bottom",right:"top",top:"left",bottom:"right"},s=a!==!1?(0,d.pi)({position:o[(a==null?void 0:a.position)||"left"]},a):!1,l=i!==!1?(0,d.pi)({position:o[(i==null?void 0:i.position)||"bottom"]},i):!1;return(0,d.pi)((0,d.pi)({},e),{options:(0,d.pi)((0,d.pi)({},r),{xField:n,yField:t,xAxis:s,yAxis:l})})}function iF(e){var r=e.options,t=r.label;return t&&!t.position&&(t.position="left",t.layout||(t.layout=[{type:"interval-adjust-position"},{type:"interval-hide-overlap"},{type:"adjust-color"},{type:"limit-in-plot",cfg:{action:"hide"}}])),It({},e,{options:{label:t}})}function aF(e){var r=e.options,t=r.seriesField,n=r.isStack,i=r.legend;return t?i!==!1&&(i=(0,d.pi)({position:n?"top-left":"right-top"},i||{})):i=!1,It({},e,{options:{legend:i}})}function oF(e){var r=e.options,t=[{type:"transpose"},{type:"reflectY"}].concat(r.coordinate||[]);return It({},e,{options:{coordinate:t}})}function sF(e){var r=e.chart,t=e.options,n=t.barStyle,i=t.barWidthRatio,a=t.minBarWidth,o=t.maxBarWidth,s=t.barBackground;return sl({chart:r,options:(0,d.pi)((0,d.pi)({},t),{columnStyle:n,columnWidthRatio:i,minColumnWidth:a,maxColumnWidth:o,columnBackground:s})},!0)}function Sg(e){return Fe(nF,iF,aF,yr,oF,sF)(e)}var lF=It({},Oe.getDefaultOptions(),{barWidthRatio:.6,marginRatio:1/32,tooltip:{shared:!0,showMarkers:!1,offset:20},legend:{radio:{}},interactions:[{type:"active-region"}]}),uF=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="bar",t}return r.getDefaultOptions=function(){return lF},r.prototype.changeData=function(t){var n,i;this.updateOption({data:t});var a=this,o=a.chart,s=a.options,l=s.isPercent,u=s.xField,c=s.yField,h=s.xAxis,v=s.yAxis;n=[c,u],u=n[0],c=n[1],i=[v,h],h=i[0],v=i[1];var p=(0,d.pi)((0,d.pi)({},s),{xField:u,yField:c,yAxis:v,xAxis:h});Hc({chart:o,options:p}),o.changeData(go(t,u,c,u,l))},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return Sg},r}(Oe),cF=It({},Oe.getDefaultOptions(),{columnWidthRatio:.6,marginRatio:1/32,tooltip:{shared:!0,showMarkers:!1,offset:20},legend:{radio:{}},interactions:[{type:"active-region"}]}),fF=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="column",t}return r.getDefaultOptions=function(){return cF},r.prototype.changeData=function(t){this.updateOption({data:t});var n=this.options,i=n.yField,a=n.xField,o=n.isPercent,s=this,l=s.chart,u=s.options;Hc({chart:l,options:u}),this.chart.changeData(go(t,i,a,i,o))},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return sl},r}(Oe),Gc,pi="$$percentage$$",di="$$mappingValue$$",Hn="$$conversion$$",Yc="$$totalPercentage$$",yo="$$x$$",mo="$$y$$",hF={appendPadding:[0,80],minSize:0,maxSize:1,meta:(Gc={},Gc[di]={min:0,max:1,nice:!1},Gc),label:{style:{fill:"#fff",fontSize:12}},tooltip:{showTitle:!1,showMarkers:!1,shared:!1},conversionTag:{offsetX:10,offsetY:0,style:{fontSize:12,fill:"rgba(0,0,0,0.45)"}}},Cg="CONVERSION_TAG_NAME";function Xc(e,r,t){var n=[],i=t.yField,a=t.maxSize,o=t.minSize,s=(0,f.U2)((0,f.UT)(r,i),[i]),l=(0,f.hj)(a)?a:1,u=(0,f.hj)(o)?o:0;return n=(0,f.UI)(e,function(c,h){var v=(c[i]||0)/s;return c[pi]=v,c[di]=(l-u)*v+u,c[Hn]=[(0,f.U2)(e,[h-1,i]),c[i]],c}),n}function Wc(e){return function(r){var t=r.chart,n=r.options,i=n.conversionTag,a=n.filteredData,o=a||t.getOptions().data;if(i){var s=i.formatter;o.forEach(function(l,u){if(!(u<=0||Number.isNaN(l[di]))){var c=e(l,u,o,{top:!0,name:Cg,text:{content:(0,f.mf)(s)?s(l,o):s,offsetX:i.offsetX,offsetY:i.offsetY,position:"end",autoRotate:!1,style:(0,d.pi)({textAlign:"start",textBaseline:"middle"},i.style)}});t.annotation().line(c)}})}return r}}function vF(e){var r=e.chart,t=e.options,n=t.data,i=n===void 0?[]:n,a=t.yField,o=t.maxSize,s=t.minSize,l=Xc(i,i,{yField:a,maxSize:o,minSize:s});return r.data(l),e}function pF(e){var r=e.chart,t=e.options,n=t.xField,i=t.yField,a=t.color,o=t.tooltip,s=t.label,l=t.shape,u=l===void 0?"funnel":l,c=t.funnelStyle,h=t.state,v=en(o,[n,i]),p=v.fields,g=v.formatter;Gr({chart:r,options:{type:"interval",xField:n,yField:di,colorField:n,tooltipFields:(0,f.kJ)(p)&&p.concat([pi,Hn]),mapping:{shape:u,tooltip:g,color:a,style:c},label:s,state:h}});var y=Tr(e.chart,"interval");return y.adjust("symmetric"),e}function dF(e){var r=e.chart,t=e.options,n=t.isTransposed;return r.coordinate({type:"rect",actions:n?[]:[["transpose"],["scale",1,-1]]}),e}function bg(e){var r=e.options,t=e.chart,n=r.maxSize,i=(0,f.U2)(t,["geometries","0","dataArray"],[]),a=(0,f.U2)(t,["options","data","length"]),o=(0,f.UI)(i,function(l){return(0,f.U2)(l,["0","nextPoints","0","x"])*a-.5}),s=function(l,u,c,h){var v=n-(n-l[di])/2;return(0,d.pi)((0,d.pi)({},h),{start:[o[u-1]||u-.5,v],end:[o[u-1]||u-.5,v+.05]})};return Wc(s)(e),e}function Ag(e){return Fe(vF,pF,dF,bg)(e)}function gF(e){var r,t=e.chart,n=e.options,i=n.data,a=i===void 0?[]:i,o=n.yField;return t.data(a),t.scale((r={},r[o]={sync:!0},r)),e}function yF(e){var r=e.chart,t=e.options,n=t.data,i=t.xField,a=t.yField,o=t.color,s=t.compareField,l=t.isTransposed,u=t.tooltip,c=t.maxSize,h=t.minSize,v=t.label,p=t.funnelStyle,g=t.state,y=t.showFacetTitle;return r.facet("mirror",{fields:[s],transpose:!l,padding:l?0:[32,0,0,0],showTitle:y,eachView:function(x,m){var w=l?m.rowIndex:m.columnIndex;l||x.coordinate({type:"rect",actions:[["transpose"],["scale",w===0?-1:1,-1]]});var M=Xc(m.data,n,{yField:a,maxSize:c,minSize:h});x.data(M);var S=en(u,[i,a,s]),A=S.fields,D=S.formatter,V=l?{offset:w===0?10:-23,position:w===0?"bottom":"top"}:{offset:10,position:"left",style:{textAlign:w===0?"end":"start"}};Gr({chart:x,options:{type:"interval",xField:i,yField:di,colorField:i,tooltipFields:(0,f.kJ)(A)&&A.concat([pi,Hn]),mapping:{shape:"funnel",tooltip:D,color:o,style:p},label:v===!1?!1:It({},V,v),state:g}})}}),e}function Tg(e){var r=e.chart,t=e.index,n=e.options,i=n.conversionTag,a=n.isTransposed;((0,f.hj)(t)?[r]:r.views).forEach(function(o,s){var l=(0,f.U2)(o,["geometries","0","dataArray"],[]),u=(0,f.U2)(o,["options","data","length"]),c=(0,f.UI)(l,function(v){return(0,f.U2)(v,["0","nextPoints","0","x"])*u-.5}),h=function(v,p,g,y){var x=(t||s)===0?-1:1;return It({},y,{start:[c[p-1]||p-.5,v[di]],end:[c[p-1]||p-.5,v[di]+.05],text:a?{style:{textAlign:"start"}}:{offsetX:i!==!1?x*i.offsetX:0,style:{textAlign:(t||s)===0?"end":"start"}}})};Wc(h)(It({},{chart:o,options:n}))})}function mF(e){var r=e.chart;return r.once("beforepaint",function(){return Tg(e)}),e}function xF(e){return Fe(gF,yF,mF)(e)}function wF(e){var r=e.chart,t=e.options,n=t.data,i=n===void 0?[]:n,a=t.yField,o=(0,f.u4)(i,function(u,c){return u+(c[a]||0)},0),s=(0,f.UT)(i,a)[a],l=(0,f.UI)(i,function(u,c){var h=[],v=[];if(u[Yc]=(u[a]||0)/o,c){var p=i[c-1][yo],g=i[c-1][mo];h[0]=p[3],v[0]=g[3],h[1]=p[2],v[1]=g[2]}else h[0]=-.5,v[0]=1,h[1]=.5,v[1]=1;return v[2]=v[1]-u[Yc],h[2]=(v[2]+1)/4,v[3]=v[2],h[3]=-h[2],u[yo]=h,u[mo]=v,u[pi]=(u[a]||0)/s,u[Hn]=[(0,f.U2)(i,[c-1,a]),u[a]],u});return r.data(l),e}function MF(e){var r=e.chart,t=e.options,n=t.xField,i=t.yField,a=t.color,o=t.tooltip,s=t.label,l=t.funnelStyle,u=t.state,c=en(o,[n,i]),h=c.fields,v=c.formatter;return Gr({chart:r,options:{type:"polygon",xField:yo,yField:mo,colorField:n,tooltipFields:(0,f.kJ)(h)&&h.concat([pi,Hn]),label:s,state:u,mapping:{tooltip:v,color:a,style:l}}}),e}function SF(e){var r=e.chart,t=e.options,n=t.isTransposed;return r.coordinate({type:"rect",actions:n?[["transpose"],["reflect","x"]]:[]}),e}function CF(e){var r=function(t,n,i,a){return(0,d.pi)((0,d.pi)({},a),{start:[t[yo][1],t[mo][1]],end:[t[yo][1]+.05,t[mo][1]]})};return Wc(r)(e),e}function bF(e){return Fe(wF,MF,SF,CF)(e)}function AF(e){var r,t=e.chart,n=e.options,i=n.data,a=i===void 0?[]:i,o=n.yField;return t.data(a),t.scale((r={},r[o]={sync:!0},r)),e}function TF(e){var r=e.chart,t=e.options,n=t.seriesField,i=t.isTransposed,a=t.showFacetTitle;return r.facet("rect",{fields:[n],padding:[i?0:32,10,0,10],showTitle:a,eachView:function(o,s){Ag(It({},e,{chart:o,options:{data:s.data}}))}}),e}function EF(e){return Fe(AF,TF)(e)}var _F=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.rendering=!1,t}return r.prototype.change=function(t){var n=this;if(!this.rendering){var i=t.seriesField,a=t.compareField,o=a?Tg:bg,s=this.context.view,l=i||a?s.views:[s];(0,f.UI)(l,function(u,c){var h=u.getController("annotation"),v=(0,f.hX)((0,f.U2)(h,["option"],[]),function(g){var y=g.name;return y!==Cg});h.clear(!0),(0,f.S6)(v,function(g){typeof g=="object"&&u.annotation()[g.type](g)});var p=(0,f.U2)(u,["filteredData"],u.getOptions().data);o({chart:u,index:c,options:(0,d.pi)((0,d.pi)({},t),{filteredData:Xc(p,p,t)})}),u.filterData(p),n.rendering=!0,u.render(!0)})}this.rendering=!1},r}(ar),Eg="funnel-conversion-tag",Zc="funnel-afterrender",_g={trigger:"afterrender",action:Eg+":change"};be(Eg,_F),Pe(Zc,{start:[_g]});function FF(e){var r=e.options,t=r.compareField,n=r.xField,i=r.yField,a=r.locale,o=r.funnelStyle,s=r.data,l=el(a),u={label:t?{fields:[n,i,t,pi,Hn],formatter:function(h){return""+h[i]}}:{fields:[n,i,pi,Hn],offset:0,position:"middle",formatter:function(h){return h[n]+" "+h[i]}},tooltip:{title:n,formatter:function(h){return{name:h[n],value:h[i]}}},conversionTag:{formatter:function(h){return l.get(["conversionTag","label"])+": "+Mg.apply(void 0,h[Hn])}}},c;return(t||o)&&(c=function(h){return It({},t&&{lineWidth:1,stroke:"#fff"},(0,f.mf)(o)?o(h):o)}),It({options:u},e,{options:{funnelStyle:c,data:(0,f.d9)(s)}})}function IF(e){var r=e.options,t=r.compareField,n=r.dynamicHeight,i=r.seriesField;return i?EF(e):t?xF(e):n?bF(e):Ag(e)}function LF(e){var r,t=e.options,n=t.xAxis,i=t.yAxis,a=t.xField,o=t.yField;return Fe(ur((r={},r[a]=n,r[o]=i,r)))(e)}function PF(e){var r=e.chart;return r.axis(!1),e}function kF(e){var r=e.chart,t=e.options,n=t.legend;return n===!1?r.legend(!1):r.legend(n),e}function DF(e){var r=e.chart,t=e.options,n=t.interactions,i=t.dynamicHeight;return(0,f.S6)(n,function(a){a.enable===!1?r.removeInteraction(a.type):r.interaction(a.type,a.cfg||{})}),i?r.removeInteraction(Zc):r.interaction(Zc,{start:[(0,d.pi)((0,d.pi)({},_g),{arg:t})]}),e}function Fg(e){return Fe(FF,IF,LF,PF,yr,DF,kF,tr,We,sr())(e)}var OF=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="funnel",t}return r.getDefaultOptions=function(){return hF},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return Fg},r.prototype.setState=function(t,n,i){i===void 0&&(i=!0);var a=fo(this.chart);(0,f.S6)(a,function(o){n(o.getData())&&o.setState(t,i)})},r.prototype.getStates=function(){var t=fo(this.chart),n=[];return(0,f.S6)(t,function(i){var a=i.getData(),o=i.getStates();(0,f.S6)(o,function(s){n.push({data:a,state:s,geometry:i.geometry,element:i})})}),n},r.CONVERSATION_FIELD=Hn,r.PERCENT_FIELD=pi,r.TOTAL_PERCENT_FIELD=Yc,r}(Oe),ll,qc="range",Ig="type",Gn="percent",BF="#f0f0f0",Lg="indicator-view",Pg="range-view",RF={percent:0,range:{ticks:[]},innerRadius:.9,radius:.95,startAngle:-7/6*Math.PI,endAngle:1/6*Math.PI,syncViewPadding:!0,axis:{line:null,label:{offset:-24,style:{textAlign:"center",textBaseline:"middle"}},subTickLine:{length:-8},tickLine:{length:-12},grid:null},indicator:{pointer:{style:{lineWidth:5,lineCap:"round"}},pin:{style:{r:9.75,lineWidth:4.5,fill:"#fff"}}},statistic:{title:!1},meta:(ll={},ll[qc]={sync:"v"},ll[Gn]={sync:"v",tickCount:5,tickInterval:.2},ll),animation:!1};function NF(e,r){return e.map(function(t,n){var i;return i={},i[qc]=t-(e[n-1]||0),i[Ig]=""+n,i[Gn]=r,i})}function kg(e){var r;return[(r={},r[Gn]=(0,f.uZ)(e,0,1),r)]}function Dg(e,r){var t=(0,f.U2)(r,["ticks"],[]),n=(0,f.dp)(t)?(0,f.jj)(t):[0,(0,f.uZ)(e,0,1),1];return n[0]||n.shift(),NF(n,e)}function zF(e){var r=e.chart,t=e.options,n=t.percent,i=t.range,a=t.radius,o=t.innerRadius,s=t.startAngle,l=t.endAngle,u=t.axis,c=t.indicator,h=t.gaugeStyle,v=t.type,p=t.meter,g=i.color,y=i.width;if(c){var x=kg(n),m=r.createView({id:Lg});m.data(x),m.point().position(Gn+"*1").shape(c.shape||"gauge-indicator").customInfo({defaultColor:r.getTheme().defaultColor,indicator:c}),m.coordinate("polar",{startAngle:s,endAngle:l,radius:o*a}),m.axis(Gn,u),m.scale(Gn,Qe(u,Hr))}var w=Dg(n,t.range),M=r.createView({id:Pg});M.data(w);var S=(0,f.HD)(g)?[g,BF]:g,A=Er({chart:M,options:{xField:"1",yField:qc,seriesField:Ig,rawFields:[Gn],isStack:!0,interval:{color:S,style:h,shape:v==="meter"?"meter-gauge":null},args:{zIndexReversed:!0,sortZIndex:!0},minColumnWidth:y,maxColumnWidth:y}}).ext,D=A.geometry;return D.customInfo({meter:p}),M.coordinate("polar",{innerRadius:o,radius:a,startAngle:s,endAngle:l}).transpose(),e}function VF(e){var r;return Fe(ur((r={range:{min:0,max:1,maxLimit:1,minLimit:0}},r[Gn]={},r)))(e)}function Og(e,r){var t=e.chart,n=e.options,i=n.statistic,a=n.percent;if(t.getController("annotation").clear(!0),i){var o=i.content,s=void 0;o&&(s=It({},{content:(a*100).toFixed(2)+"%",style:{opacity:.75,fontSize:"30px",lineHeight:1,textAlign:"center",color:"rgba(44,53,66,0.85)"}},o)),d_(t,{statistic:(0,d.pi)((0,d.pi)({},i),{content:s})},{percent:a})}return r&&t.render(!0),e}function UF(e){var r=e.chart,t=e.options,n=t.tooltip;return n?r.tooltip(It({showTitle:!1,showMarkers:!1,containerTpl:'<div class="g2-tooltip"><div class="g2-tooltip-list"></div></div>',domStyles:{"g2-tooltip":{padding:"4px 8px",fontSize:"10px"}},customContent:function(i,a){var o=(0,f.U2)(a,[0,"data",Gn],0);return(o*100).toFixed(2)+"%"}},n)):r.tooltip(!1),e}function HF(e){var r=e.chart;return r.legend(!1),e}function Bg(e){return Fe(We,tr,zF,VF,UF,Og,or,sr(),HF)(e)}$e("point","gauge-indicator",{draw:function(e,r){var t=e.customInfo,n=t.indicator,i=t.defaultColor,a=n,o=a.pointer,s=a.pin,l=r.addGroup(),u=this.parsePoint({x:0,y:0});return o&&l.addShape("line",{name:"pointer",attrs:(0,d.pi)({x1:u.x,y1:u.y,x2:e.x,y2:e.y,stroke:i},o.style)}),s&&l.addShape("circle",{name:"pin",attrs:(0,d.pi)({x:u.x,y:u.y,stroke:i},s.style)}),l}}),$e("interval","meter-gauge",{draw:function(e,r){var t=e.customInfo.meter,n=t===void 0?{}:t,i=n.steps,a=i===void 0?50:i,o=n.stepRatio,s=o===void 0?.5:o;a=a<1?1:a,s=(0,f.uZ)(s,0,1);var l=this.coordinate,u=l.startAngle,c=l.endAngle,h=0;if(s>0&&s<1){var v=c-u;h=v/a/(s/(1-s)+1-1/a)}for(var p=h/(1-s)*s,g=r.addGroup(),y=this.coordinate.getCenter(),x=this.coordinate.getRadius(),m=Vr.getAngle(e,this.coordinate),w=m.startAngle,M=m.endAngle,S=w;S<M;){var A=void 0,D=(S-u)%(p+h);D<p?A=S+(p-D):(S+=p+h-D,A=S+p);var V=Vr.getSectorPath(y.x,y.y,x,S,Math.min(A,M),x*this.coordinate.innerRadius);g.addShape("path",{name:"meter-gauge",attrs:{path:V,fill:e.color,stroke:e.color,lineWidth:.5}}),S=A+h}return g}});var GF=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="gauge",t}return r.getDefaultOptions=function(){return RF},r.prototype.changeData=function(t){this.chart.emit(X.BEFORE_CHANGE_DATA,lr.fromData(this.chart,X.BEFORE_CHANGE_DATA,null)),this.updateOption({percent:t});var n=this.chart.views.find(function(a){return a.id===Lg});n&&n.data(kg(t));var i=this.chart.views.find(function(a){return a.id===Pg});i&&i.data(Dg(t,this.options.range)),Og({chart:this.chart,options:this.options},!0),this.chart.emit(X.AFTER_CHANGE_DATA,lr.fromData(this.chart,X.AFTER_CHANGE_DATA,null))},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return Bg},r}(Oe);function Rg(e,r,t){if(t===1)return[0,r];var n=Math.floor(e/r);return[r*n,r*(n+1)]}function YF(e){return Math.ceil(Math.log(e.length)/Math.LN2)+1}function Ng(e,r,t,n,i){var a=(0,f.d9)(e);(0,f.MR)(a,r);var o=(0,f.I)(a,r),s=(0,f.rx)(o),l=s.max-s.min,u=t;if(!t&&n&&(u=n>1?l/(n-1):s.max),!t&&!n){var c=YF(o);u=l/c}var h={},v=(0,f.vM)(a,i);(0,f.xb)(v)?(0,f.S6)(a,function(g){var y=g[r],x=Rg(y,u,n),m=x[0]+"-"+x[1];(0,f.wH)(h,m)||(h[m]={range:x,count:0}),h[m].count+=1}):Object.keys(v).forEach(function(g){(0,f.S6)(v[g],function(y){var x=y[r],m=Rg(x,u,n),w=m[0]+"-"+m[1],M=w+"-"+g;(0,f.wH)(h,M)||(h[M]={range:m,count:0},h[M][i]=g),h[M].count+=1})});var p=[];return(0,f.S6)(h,function(g){p.push(g)}),p}var ul="range",xo="count",XF=It({},Oe.getDefaultOptions(),{columnStyle:{stroke:"#FFFFFF"},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]});function WF(e){var r=e.chart,t=e.options,n=t.data,i=t.binField,a=t.binNumber,o=t.binWidth,s=t.color,l=t.stackField,u=t.legend,c=t.columnStyle,h=Ng(n,i,o,a,l);r.data(h);var v=It({},e,{options:{xField:ul,yField:xo,seriesField:l,isStack:!0,interval:{color:s,style:c}}});return Er(v),u&&l?r.legend(l,u):r.legend(!1),e}function ZF(e){var r,t=e.options,n=t.xAxis,i=t.yAxis;return Fe(ur((r={},r[ul]=n,r[xo]=i,r)))(e)}function qF(e){var r=e.chart,t=e.options,n=t.xAxis,i=t.yAxis;return n===!1?r.axis(ul,!1):r.axis(ul,n),i===!1?r.axis(xo,!1):r.axis(xo,i),e}function $F(e){var r=e.chart,t=e.options,n=t.label,i=Tr(r,"interval");if(!n)i.label(!1);else{var a=n.callback,o=(0,d._T)(n,["callback"]);i.label({fields:[xo],callback:a,cfg:Sr(o)})}return e}function zg(e){return Fe(We,Zr("columnStyle"),WF,ZF,qF,vi,$F,yr,or,tr)(e)}var jF=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="histogram",t}return r.getDefaultOptions=function(){return XF},r.prototype.changeData=function(t){this.updateOption({data:t});var n=this.options,i=n.binField,a=n.binNumber,o=n.binWidth,s=n.stackField;this.chart.changeData(Ng(t,i,o,a,s))},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return zg},r}(Oe),KF=It({},Oe.getDefaultOptions(),{tooltip:{shared:!0,showMarkers:!0,showCrosshairs:!0,crosshairs:{type:"x"}},legend:{position:"top-left",radio:{}},isStack:!1}),JF=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.active=function(){var t=this.getView(),n=this.context.event;if(n.data){var i=n.data.items,a=t.geometries.filter(function(o){return o.type==="point"});(0,f.S6)(a,function(o){(0,f.S6)(o.elements,function(s){var l=(0,f.cx)(i,function(u){return u.data===s.data})!==-1;s.setState("active",l)})})}},r.prototype.reset=function(){var t=this.getView(),n=t.geometries.filter(function(i){return i.type==="point"});(0,f.S6)(n,function(i){(0,f.S6)(i.elements,function(a){a.setState("active",!1)})})},r.prototype.getView=function(){return this.context.view},r}(ar);be("marker-active",JF),Pe("marker-active",{start:[{trigger:"tooltip:show",action:"marker-active:active"}],end:[{trigger:"tooltip:hide",action:"marker-active:reset"}]});var Vg=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="line",t}return r.getDefaultOptions=function(){return KF},r.prototype.changeData=function(t){this.updateOption({data:t});var n=this,i=n.chart,a=n.options;al({chart:i,options:a}),this.chart.changeData(t)},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return yg},r}(Oe),Ug=It({},Oe.getDefaultOptions(),{legend:{position:"right",radio:{}},tooltip:{shared:!1,showTitle:!1,showMarkers:!1},label:{layout:{type:"limit-in-plot",cfg:{action:"ellipsis"}}},pieStyle:{stroke:"white",lineWidth:1},statistic:{title:{style:{fontWeight:300,color:"#4B535E",textAlign:"center",fontSize:"20px",lineHeight:1}},content:{style:{fontWeight:"bold",color:"rgba(44,53,66,0.85)",textAlign:"center",fontSize:"32px",lineHeight:1}}},theme:{components:{annotation:{text:{animate:!1}}}}}),QF=[1,0,0,0,1,0,0,0,1];function $c(e,r){var t=r?(0,d.pr)(r):(0,d.pr)(QF);return Vr.transform(t,e)}var tI=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getActiveElements=function(){var t=Vr.getDelegationObject(this.context);if(t){var n=this.context.view,i=t.component,a=t.item,o=i.get("field");if(o){var s=n.geometries[0].elements;return s.filter(function(l){return l.getModel().data[o]===a.value})}}return[]},r.prototype.getActiveElementLabels=function(){var t=this.context.view,n=this.getActiveElements(),i=t.geometries[0].labelsContainer.getChildren();return i.filter(function(a){return n.find(function(o){return(0,f.Xy)(o.getData(),a.get("data"))})})},r.prototype.transfrom=function(t){t===void 0&&(t=7.5);var n=this.getActiveElements(),i=this.getActiveElementLabels();n.forEach(function(a,o){var s=i[o],l=a.geometry.coordinate;if(l.isPolar&&l.isTransposed){var u=Vr.getAngle(a.getModel(),l),c=u.startAngle,h=u.endAngle,v=(c+h)/2,p=t,g=p*Math.cos(v),y=p*Math.sin(v);a.shape.setMatrix($c([["t",g,y]])),s.setMatrix($c([["t",g,y]]))}})},r.prototype.active=function(){this.transfrom()},r.prototype.reset=function(){this.transfrom(0)},r}(ar);function eI(e){var r=e.event,t,n=r.target;return n&&(t=n.get("element")),t}var rI=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getAnnotations=function(t){var n=t||this.context.view;return n.getController("annotation").option},r.prototype.getInitialAnnotation=function(){return this.initialAnnotation},r.prototype.init=function(){var t=this,n=this.context.view;n.removeInteraction("tooltip"),n.on("afterchangesize",function(){var i=t.getAnnotations(n);t.initialAnnotation=i})},r.prototype.change=function(t){var n=this.context,i=n.view,a=n.event;this.initialAnnotation||(this.initialAnnotation=this.getAnnotations());var o=(0,f.U2)(a,["data","data"]);if(a.type.match("legend-item")){var s=Vr.getDelegationObject(this.context),l=i.getGroupedFields()[0];if(s&&l){var u=s.item;o=i.getData().find(function(p){return p[l]===u.value})}}if(o){var c=(0,f.U2)(t,"annotations",[]),h=(0,f.U2)(t,"statistic",{});i.getController("annotation").clear(!0),(0,f.S6)(c,function(p){typeof p=="object"&&i.annotation()[p.type](p)}),Js(i,{statistic:h,plotType:"pie"},o),i.render(!0)}var v=eI(this.context);v&&v.shape.toFront()},r.prototype.reset=function(){var t=this.context.view,n=t.getController("annotation");n.clear(!0);var i=this.getInitialAnnotation();(0,f.S6)(i,function(a){t.annotation()[a.type](a)}),t.render(!0)},r}(ar),Hg="pie-statistic";be(Hg,rI),Pe("pie-statistic-active",{start:[{trigger:"element:mouseenter",action:"pie-statistic:change"}],end:[{trigger:"element:mouseleave",action:"pie-statistic:reset"}]}),be("pie-legend",tI),Pe("pie-legend-active",{start:[{trigger:"legend-item:mouseenter",action:"pie-legend:active"}],end:[{trigger:"legend-item:mouseleave",action:"pie-legend:reset"}]});function nI(e,r){var t=null;return(0,f.S6)(e,function(n){typeof n[r]=="number"&&(t+=n[r])}),t}function iI(e,r){var t;switch(e){case"inner":return t="-30%",(0,f.HD)(r)&&r.endsWith("%")?parseFloat(r)*.01>0?t:r:r<0?r:t;case"outer":return t=12,(0,f.HD)(r)&&r.endsWith("%")?parseFloat(r)*.01<0?t:r:r>0?r:t;default:return r}}function cl(e,r){return(0,f.yW)(pa(e,r),function(t){return t[r]===0})}function aI(e){var r=e.chart,t=e.options,n=t.data,i=t.angleField,a=t.colorField,o=t.color,s=t.pieStyle,l=t.shape,u=pa(n,i);if(cl(u,i)){var c="$$percentage$$";u=u.map(function(v){var p;return(0,d.pi)((0,d.pi)({},v),(p={},p[c]=1/u.length,p))}),r.data(u);var h=It({},e,{options:{xField:"1",yField:c,seriesField:a,isStack:!0,interval:{color:o,shape:l,style:s},args:{zIndexReversed:!0,sortZIndex:!0}}});Er(h)}else{r.data(u);var h=It({},e,{options:{xField:"1",yField:i,seriesField:a,isStack:!0,interval:{color:o,shape:l,style:s},args:{zIndexReversed:!0,sortZIndex:!0}}});Er(h)}return e}function oI(e){var r,t=e.chart,n=e.options,i=n.meta,a=n.colorField,o=It({},i);return t.scale(o,(r={},r[a]={type:"cat"},r)),e}function sI(e){var r=e.chart,t=e.options,n=t.radius,i=t.innerRadius,a=t.startAngle,o=t.endAngle;return r.coordinate({type:"theta",cfg:{radius:n,innerRadius:i,startAngle:a,endAngle:o}}),e}function lI(e){var r=e.chart,t=e.options,n=t.label,i=t.colorField,a=t.angleField,o=r.geometries[0];if(!n)o.label(!1);else{var s=n.callback,l=(0,d._T)(n,["callback"]),u=Sr(l);if(u.content){var c=u.content;u.content=function(g,y,x){var m=g[i],w=g[a],M=r.getScaleByField(a),S=M==null?void 0:M.scale(w);return(0,f.mf)(c)?c((0,d.pi)((0,d.pi)({},g),{percent:S}),y,x):(0,f.HD)(c)?ig(c,{value:w,name:m,percentage:(0,f.hj)(S)&&!(0,f.UM)(w)?(S*100).toFixed(2)+"%":null}):c}}var h={inner:"",outer:"pie-outer",spider:"pie-spider"},v=u.type?h[u.type]:"pie-outer",p=u.layout?(0,f.kJ)(u.layout)?u.layout:[u.layout]:[];u.layout=(v?[{type:v}]:[]).concat(p),o.label({fields:i?[a,i]:[a],callback:s,cfg:(0,d.pi)((0,d.pi)({},u),{offset:iI(u.type,u.offset),type:"pie"})})}return e}function Gg(e){var r=e.innerRadius,t=e.statistic,n=e.angleField,i=e.colorField,a=e.meta,o=e.locale,s=el(o);if(r&&t){var l=It({},Ug.statistic,t),u=l.title,c=l.content;return u!==!1&&(u=It({},{formatter:function(h){var v=h?h[i]:(0,f.UM)(u.content)?s.get(["statistic","total"]):u.content,p=(0,f.U2)(a,[i,"formatter"])||function(g){return g};return p(v)}},u)),c!==!1&&(c=It({},{formatter:function(h,v){var p=h?h[n]:nI(v,n),g=(0,f.U2)(a,[n,"formatter"])||function(y){return y};return h||(0,f.UM)(c.content)?g(p):c.content}},c)),It({},{statistic:{title:u,content:c}},e)}return e}function Yg(e){var r=e.chart,t=e.options,n=Gg(t),i=n.innerRadius,a=n.statistic;return r.getController("annotation").clear(!0),Fe(sr())(e),i&&a&&Js(r,{statistic:a,plotType:"pie"}),e}function uI(e){var r=e.chart,t=e.options,n=t.tooltip,i=t.colorField,a=t.angleField,o=t.data;if(n===!1)r.tooltip(n);else if(r.tooltip(It({},n,{shared:!1})),cl(o,a)){var s=(0,f.U2)(n,"fields"),l=(0,f.U2)(n,"formatter");(0,f.xb)((0,f.U2)(n,"fields"))&&(s=[i,a],l=l||function(u){return{name:u[i],value:(0,f.BB)(u[a])}}),r.geometries[0].tooltip(s.join("*"),da(s,l))}return e}function cI(e){var r=e.chart,t=e.options,n=Gg(t),i=n.interactions,a=n.statistic,o=n.annotations;return(0,f.S6)(i,function(s){var l,u;if(s.enable===!1)r.removeInteraction(s.type);else if(s.type==="pie-statistic-active"){var c=[];((l=s.cfg)===null||l===void 0?void 0:l.start)||(c=[{trigger:"element:mouseenter",action:Hg+":change",arg:{statistic:a,annotations:o}}]),(0,f.S6)((u=s.cfg)===null||u===void 0?void 0:u.start,function(h){c.push((0,d.pi)((0,d.pi)({},h),{arg:{statistic:a,annotations:o}}))}),r.interaction(s.type,It({},s.cfg,{start:c}))}else r.interaction(s.type,s.cfg||{})}),e}function Xg(e){return Fe(Zr("pieStyle"),aI,oI,We,sI,Ri,uI,lI,vi,Yg,cI,tr)(e)}var fI=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="pie",t}return r.getDefaultOptions=function(){return Ug},r.prototype.changeData=function(t){this.chart.emit(X.BEFORE_CHANGE_DATA,lr.fromData(this.chart,X.BEFORE_CHANGE_DATA,null));var n=this.options,i=this.options.angleField,a=pa(n.data,i),o=pa(t,i);cl(a,i)||cl(o,i)?this.update({data:t}):(this.updateOption({data:t}),this.chart.data(o),Yg({chart:this.chart,options:this.options}),this.chart.render(!0)),this.chart.emit(X.AFTER_CHANGE_DATA,lr.fromData(this.chart,X.AFTER_CHANGE_DATA,null))},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return Xg},r}(Oe),Wg=["#FAAD14","#E8EDF3"],hI={percent:.2,color:Wg,animation:{}};function jc(e){var r=(0,f.uZ)(Bi(e)?e:0,0,1);return[{current:""+r,type:"current",percent:r},{current:""+r,type:"target",percent:1}]}function Zg(e){var r=e.chart,t=e.options,n=t.percent,i=t.progressStyle,a=t.color,o=t.barWidthRatio;r.data(jc(n));var s=It({},e,{options:{xField:"current",yField:"percent",seriesField:"type",widthRatio:o,interval:{style:i,color:(0,f.HD)(a)?[a,Wg[1]]:a},args:{zIndexReversed:!0,sortZIndex:!0}}});return Er(s),r.tooltip(!1),r.axis(!1),r.legend(!1),e}function vI(e){var r=e.chart;return r.coordinate("rect").transpose(),e}function qg(e){return Fe(Zg,ur({}),vI,tr,We,sr())(e)}var pI=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="process",t}return r.getDefaultOptions=function(){return hI},r.prototype.changeData=function(t){this.updateOption({percent:t}),this.chart.changeData(jc(t))},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return qg},r}(Oe);function dI(e){var r=e.chart,t=e.options,n=t.innerRadius,i=t.radius;return r.coordinate("theta",{innerRadius:n,radius:i}),e}function $g(e,r){var t=e.chart,n=e.options,i=n.innerRadius,a=n.statistic,o=n.percent,s=n.meta;if(t.getController("annotation").clear(!0),i&&a){var l=(0,f.U2)(s,["percent","formatter"])||function(c){return(c*100).toFixed(2)+"%"},u=a.content;u&&(u=It({},u,{content:(0,f.UM)(u.content)?l(o):u.content})),Js(t,{statistic:(0,d.pi)((0,d.pi)({},a),{content:u}),plotType:"ring-progress"},{percent:o})}return r&&t.render(!0),e}function jg(e){return Fe(Zg,ur({}),dI,$g,tr,We,sr())(e)}var gI={percent:.2,innerRadius:.8,radius:.98,color:["#FAAD14","#E8EDF3"],statistic:{title:!1,content:{style:{fontSize:"14px",fontWeight:300,fill:"#4D4D4D",textAlign:"center",textBaseline:"middle"}}},animation:{}},yI=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="ring-process",t}return r.getDefaultOptions=function(){return gI},r.prototype.changeData=function(t){this.chart.emit(X.BEFORE_CHANGE_DATA,lr.fromData(this.chart,X.BEFORE_CHANGE_DATA,null)),this.updateOption({percent:t}),this.chart.data(jc(t)),$g({chart:this.chart,options:this.options},!0),this.chart.emit(X.AFTER_CHANGE_DATA,lr.fromData(this.chart,X.AFTER_CHANGE_DATA,null))},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return jg},r}(Oe),Ui=et(56645),mI={exp:Ui.regressionExp,linear:Ui.regressionLinear,loess:Ui.regressionLoess,log:Ui.regressionLog,poly:Ui.regressionPoly,pow:Ui.regressionPow,quad:Ui.regressionQuad};function xI(e,r){var t=10,n={regionStyle:[{position:{start:[e,"max"],end:["max",r]},style:{fill:"#d8d0c0",opacity:.4}},{position:{start:["min","max"],end:[e,r]},style:{fill:"#a3dda1",opacity:.4}},{position:{start:["min",r],end:[e,"min"]},style:{fill:"#d8d0c0",opacity:.4}},{position:{start:[e,r],end:["max","min"]},style:{fill:"#a3dda1",opacity:.4}}],lineStyle:{stroke:"#9ba29a",lineWidth:1},labelStyle:[{position:["max",r],offsetX:-t,offsetY:-t,style:{textAlign:"right",textBaseline:"bottom",fontSize:14,fill:"#ccc"}},{position:["min",r],offsetX:t,offsetY:-t,style:{textAlign:"left",textBaseline:"bottom",fontSize:14,fill:"#ccc"}},{position:["min",r],offsetX:t,offsetY:t,style:{textAlign:"left",textBaseline:"top",fontSize:14,fill:"#ccc"}},{position:["max",r],offsetX:-t,offsetY:t,style:{textAlign:"right",textBaseline:"top",fontSize:14,fill:"#ccc"}}]};return n}var wI=function(e,r){var t=r.view,n=r.options,i=n.xField,a=n.yField,o=t.getScaleByField(i),s=t.getScaleByField(a),l=e.map(function(u){return t.getCoordinate().convert({x:o.scale(u[0]),y:s.scale(u[1])})});return p_(l,!1)},MI=function(e){var r=e.options,t=r.xField,n=r.yField,i=r.data,a=r.regressionLine,o=a.type,s=o===void 0?"linear":o,l=a.algorithm,u;if(l)u=(0,f.kJ)(l)?l:l(i);else{var c=mI[s]().x(function(h){return h[t]}).y(function(h){return h[n]});u=c(i)}return wI(u,e)},SI=function(e){var r,t=e.meta,n=t===void 0?{}:t,i=e.xField,a=e.yField,o=e.data,s=o[0][i],l=o[0][a],u=s>0,c=l>0;function h(v,p){var g=(0,f.U2)(n,[v]);function y(m){return(0,f.U2)(g,m)}var x={};return p==="x"?((0,f.hj)(s)&&((0,f.hj)(y("min"))||(x.min=u?0:s*2),(0,f.hj)(y("max"))||(x.max=u?s*2:0)),x):((0,f.hj)(l)&&((0,f.hj)(y("min"))||(x.min=c?0:l*2),(0,f.hj)(y("max"))||(x.max=c?l*2:0)),x)}return(0,d.pi)((0,d.pi)({},n),(r={},r[i]=(0,d.pi)((0,d.pi)({},n[i]),h(i,"x")),r[a]=(0,d.pi)((0,d.pi)({},n[a]),h(a,"y")),r))};function Kg(e){var r=e.data,t=r===void 0?[]:r,n=e.xField,i=e.yField;if(t.length){for(var a=!0,o=!0,s=t[0],l=void 0,u=1;u<t.length&&(l=t[u],s[n]!==l[n]&&(a=!1),s[i]!==l[i]&&(o=!1),!(!a&&!o));u++)s=l;var c=[];a&&c.push(n),o&&c.push(i);var h=Qe(SI(e),c);return It({},e,{meta:h})}return e}function CI(e){var r=e.chart,t=e.options,n=t.data,i=t.type,a=t.color,o=t.shape,s=t.pointStyle,l=t.shapeField,u=t.colorField,c=t.xField,h=t.yField,v=t.sizeField,p=t.size,g=t.tooltip;v&&(p||(p=[2,8]),(0,f.hj)(p)&&(p=[p,p])),g&&!g.fields&&(g=(0,d.pi)((0,d.pi)({},g),{fields:[c,h,u,v,l]})),r.data(n),qr(It({},e,{options:{seriesField:u,point:{color:a,shape:o,size:p,style:s},tooltip:g}}));var y=Tr(r,"point");return i&&y.adjust(i),e}function fl(e){var r,t=e.options,n=t.xAxis,i=t.yAxis,a=t.xField,o=t.yField,s=Kg(t);return Fe(ur((r={},r[a]=n,r[o]=i,r)))(It({},e,{options:s}))}function bI(e){var r=e.chart,t=e.options,n=t.xAxis,i=t.yAxis,a=t.xField,o=t.yField;return r.axis(a,n),r.axis(o,i),e}function AI(e){var r=e.chart,t=e.options,n=t.legend,i=t.colorField,a=t.shapeField,o=t.sizeField,s=t.shapeLegend,l=t.sizeLegend,u=n!==!1;return i&&r.legend(i,u?n:!1),a&&(s?r.legend(a,s):r.legend(a,s===!1?!1:n)),o&&r.legend(o,l||!1),!u&&!s&&!l&&r.legend(!1),e}function TI(e){var r=e.chart,t=e.options,n=t.label,i=t.yField,a=Tr(r,"point");if(!n)a.label(!1);else{var o=n.callback,s=(0,d._T)(n,["callback"]);a.label({fields:[i],callback:o,cfg:Sr(s)})}return e}function EI(e){var r=e.options,t=r.quadrant,n=[];if(t){var i=t.xBaseline,a=i===void 0?0:i,o=t.yBaseline,s=o===void 0?0:o,l=t.labels,u=t.regionStyle,c=t.lineStyle,h=xI(a,s),v=new Array(4).join(",").split(",");v.forEach(function(p,g){n.push((0,d.pi)((0,d.pi)({type:"region",top:!1},h.regionStyle[g].position),{style:It({},h.regionStyle[g].style,u==null?void 0:u[g])}),(0,d.pi)({type:"text",top:!0},It({},h.labelStyle[g],l==null?void 0:l[g])))}),n.push({type:"line",top:!1,start:["min",s],end:["max",s],style:It({},h.lineStyle,c)},{type:"line",top:!1,start:[a,"min"],end:[a,"max"],style:It({},h.lineStyle,c)})}return Fe(sr(n))(e)}function _I(e){var r=e.options,t=e.chart,n=r.regressionLine;if(n){var i=n.style,a=n.top,o=a===void 0?!1:a,s={stroke:"#9ba29a",lineWidth:2,opacity:.5};t.annotation().shape({top:o,render:function(l,u){var c=l.addGroup({id:t.id+"-regression-line",name:"regression-line-group"}),h=MI({view:u,options:r});c.addShape("path",{name:"regression-line",attrs:(0,d.pi)((0,d.pi)({path:h},s),i)})}})}return e}function FI(e){var r=e.chart,t=e.options,n=t.tooltip;return n?r.tooltip(n):n===!1&&r.tooltip(!1),e}function Jg(e){return Fe(CI,fl,bI,AI,FI,TI,wg,po,zc,or,EI,tr,We,_I)(e)}var II=It({},Oe.getDefaultOptions(),{size:4,tooltip:{showTitle:!1,showMarkers:!1,showCrosshairs:!0,crosshairs:{type:"xy"}}});Pe("drag-move",{start:[{trigger:"plot:mousedown",action:"scale-translate:start"}],processing:[{trigger:"plot:mousemove",action:"scale-translate:translate",throttle:{wait:100,leading:!0,trailing:!1}}],end:[{trigger:"plot:mouseup",action:"scale-translate:end"}]});var LI=function(e){(0,d.ZT)(r,e);function r(t,n){var i=e.call(this,t,n)||this;return i.type="scatter",i.on(X.BEFORE_RENDER,function(a){var o,s,l=i,u=l.options,c=l.chart;if(((o=a.data)===null||o===void 0?void 0:o.source)===Ur.FILTER){var h=i.chart.filterData(i.chart.getData());fl({chart:c,options:(0,d.pi)((0,d.pi)({},u),{data:h})})}((s=a.data)===null||s===void 0?void 0:s.source)===Ur.RESET&&fl({chart:c,options:u})}),i}return r.getDefaultOptions=function(){return II},r.prototype.changeData=function(t){this.updateOption(Kg(It({},this.options,{data:t})));var n=this,i=n.options,a=n.chart;fl({chart:a,options:i}),this.chart.changeData(t)},r.prototype.getSchemaAdaptor=function(){return Jg},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r}(Oe),wo="$$stock-range$$",hl="trend",Qg="up",t0="down",PI={showMarkers:!1,showCrosshairs:!0,shared:!0,crosshairs:{type:"xy",follow:!0,text:function(e,r,t){var n;if(e==="x"){var i=t[0];n=i?i.title:r}else n=r;return{position:e==="y"?"start":"end",content:n,style:{fill:"#dfdfdf"}}},textBackground:{padding:[2,4],style:{fill:"#666"}}}},kI=It({},Oe.getDefaultOptions(),{tooltip:PI,interactions:[{type:"tooltip"}],legend:{position:"top-left"},risingFill:"#ef5350",fallingFill:"#26a69a"});function e0(e,r){return(0,f.UI)(e,function(t){var n=t&&(0,d.pi)({},t);if((0,f.kJ)(r)&&n){var i=r[0],a=r[1],o=r[2],s=r[3];n[hl]=n[i]<=n[a]?Qg:t0,n[wo]=[n[i],n[a],n[o],n[s]]}return n})}function DI(e){var r=e.chart,t=e.options,n=t.yField,i=t.data,a=t.risingFill,o=t.fallingFill,s=t.tooltip,l=t.stockStyle;r.data(e0(i,n));var u=s;return u!==!1&&(u=It({},{fields:n},u)),Vc(It({},e,{options:{schema:{shape:"candle",color:[a,o],style:l},yField:wo,seriesField:hl,rawFields:n,tooltip:u}})),e}function OI(e){var r,t,n=e.chart,i=e.options,a=i.meta,o=i.xAxis,s=i.yAxis,l=i.xField,u=(r={},r[l]={type:"timeCat",tickCount:6},r[hl]={values:[Qg,t0]},r),c=It(u,a,(t={},t[l]=Qe(o,Hr),t[wo]=Qe(s,Hr),t));return n.scale(c),e}function BI(e){var r=e.chart,t=e.options,n=t.xAxis,i=t.yAxis,a=t.xField;return n===!1?r.axis(a,!1):r.axis(a,n),i===!1?r.axis(wo,!1):r.axis(wo,i),e}function RI(e){var r=e.chart,t=e.options,n=t.tooltip;return n!==!1?r.tooltip(n):r.tooltip(!1),e}function NI(e){var r=e.chart,t=e.options,n=t.legend;return n?r.legend(hl,n):n===!1&&r.legend(!1),e}function r0(e){Fe(We,DI,OI,BI,RI,NI,or,tr,sr(),po)(e)}var zI=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="stock",t}return r.getDefaultOptions=function(){return kI},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return r0},r.prototype.changeData=function(t){this.updateOption({data:t});var n=this.options.yField;this.chart.changeData(e0(t,n))},r}(Oe);function Hi(e){return(0,f.UI)(e||[],function(r,t){return{x:""+t,y:r}})}var Mo="x",ya="y",n0={showTitle:!1,shared:!0,showMarkers:!1,customContent:function(e,r){return""+(0,f.U2)(r,[0,"data","y"],0)},containerTpl:'<div class="g2-tooltip"><div class="g2-tooltip-list"></div></div>',itemTpl:"<span>{value}</span>",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}},showCrosshairs:!0,crosshairs:{type:"x"}},VI={appendPadding:2,tooltip:(0,d.pi)({},n0),animation:{}};function UI(e){var r=e.chart,t=e.options,n=t.data,i=t.color,a=t.areaStyle,o=t.point,s=t.line,l=o==null?void 0:o.state,u=Hi(n);r.data(u);var c=It({},e,{options:{xField:Mo,yField:ya,area:{color:i,style:a},line:s,point:o}}),h=It({},c,{options:{tooltip:!1}}),v=It({},c,{options:{tooltip:!1,state:l}});return nl(c),ga(h),qr(v),r.axis(!1),r.legend(!1),e}function ma(e){var r,t,n=e.options,i=n.xAxis,a=n.yAxis,o=n.data,s=Hi(o);return Fe(ur((r={},r[Mo]=i,r[ya]=a,r),(t={},t[Mo]={type:"cat"},t[ya]=Pc(s,ya),t)))(e)}function i0(e){return Fe(Zr("areaStyle"),UI,ma,yr,We,tr,sr())(e)}var HI={appendPadding:2,tooltip:(0,d.pi)({},n0),color:"l(90) 0:#E5EDFE 1:#ffffff",areaStyle:{fillOpacity:.6},line:{size:1,color:"#5B8FF9"},animation:{}},GI=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="tiny-area",t}return r.getDefaultOptions=function(){return HI},r.prototype.changeData=function(t){this.updateOption({data:t});var n=this,i=n.chart,a=n.options;ma({chart:i,options:a}),i.changeData(Hi(t))},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return i0},r}(Oe);function YI(e){var r=e.chart,t=e.options,n=t.data,i=t.color,a=t.columnStyle,o=t.columnWidthRatio,s=Hi(n);r.data(s);var l=It({},e,{options:{xField:Mo,yField:ya,widthRatio:o,interval:{style:a,color:i}}});return Er(l),r.axis(!1),r.legend(!1),r.interaction("element-active"),e}function a0(e){return Fe(We,Zr("columnStyle"),YI,ma,yr,tr,sr())(e)}var XI={showTitle:!1,shared:!0,showMarkers:!1,customContent:function(e,r){return""+(0,f.U2)(r,[0,"data","y"],0)},containerTpl:'<div class="g2-tooltip"><div class="g2-tooltip-list"></div></div>',itemTpl:"<span>{value}</span>",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}}},WI={appendPadding:2,tooltip:(0,d.pi)({},XI),animation:{}},ZI=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="tiny-column",t}return r.getDefaultOptions=function(){return WI},r.prototype.changeData=function(t){this.updateOption({data:t});var n=this,i=n.chart,a=n.options;ma({chart:i,options:a}),i.changeData(Hi(t))},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return a0},r}(Oe);function qI(e){var r=e.chart,t=e.options,n=t.data,i=t.color,a=t.lineStyle,o=t.point,s=o==null?void 0:o.state,l=Hi(n);r.data(l);var u=It({},e,{options:{xField:Mo,yField:ya,line:{color:i,style:a},point:o}}),c=It({},u,{options:{tooltip:!1,state:s}});return ga(u),qr(c),r.axis(!1),r.legend(!1),e}function o0(e){return Fe(qI,ma,We,yr,tr,sr())(e)}var $I=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="tiny-line",t}return r.getDefaultOptions=function(){return VI},r.prototype.changeData=function(t){this.updateOption({data:t});var n=this,i=n.chart,a=n.options;ma({chart:i,options:a}),i.changeData(Hi(t))},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return o0},r}(Oe),jI={line:yg,pie:Xg,column:sl,bar:Sg,area:mg,gauge:Bg,"tiny-line":o0,"tiny-column":a0,"tiny-area":i0,"ring-progress":jg,progress:qg,scatter:Jg,histogram:zg,funnel:Fg,stock:r0},KI={line:Vg,pie:fI,column:fF,bar:uF,area:V_,gauge:GF,"tiny-line":$I,"tiny-column":ZI,"tiny-area":GI,"ring-progress":yI,progress:pI,scatter:LI,histogram:jF,funnel:OF,stock:zI},JI={pie:{label:!1},column:{tooltip:{showMarkers:!1}},bar:{tooltip:{showMarkers:!1}}};function Kc(e,r,t){var n=KI[e];if(!n){console.error("could not find "+e+" plot");return}var i=jI[e];i({chart:r,options:It({},n.getDefaultOptions(),(0,f.U2)(JI,e,{}),t)})}function QI(e){var r=e.chart,t=e.options,n=t.views,i=t.legend;return(0,f.S6)(n,function(a){var o=a.region,s=a.data,l=a.meta,u=a.axes,c=a.coordinate,h=a.interactions,v=a.annotations,p=a.tooltip,g=a.geometries,y=r.createView({region:o});y.data(s);var x={};u&&(0,f.S6)(u,function(m,w){x[w]=Qe(m,Hr)}),x=It({},l,x),y.scale(x),u?(0,f.S6)(u,function(m,w){y.axis(w,m)}):y.axis(!1),y.coordinate(c),(0,f.S6)(g,function(m){var w=Gr({chart:y,options:m}).ext,M=m.adjust;M&&w.geometry.adjust(M)}),(0,f.S6)(h,function(m){m.enable===!1?y.removeInteraction(m.type):y.interaction(m.type,m.cfg)}),(0,f.S6)(v,function(m){y.annotation()[m.type]((0,d.pi)({},m))}),typeof a.animation=="boolean"?y.animate(!1):(y.animate(!0),(0,f.S6)(y.geometries,function(m){m.animate(a.animation)})),p&&(y.interaction("tooltip"),y.tooltip(p))}),i?(0,f.S6)(i,function(a,o){r.legend(o,a)}):r.legend(!1),r.tooltip(t.tooltip),e}function tL(e){var r=e.chart,t=e.options,n=t.plots,i=t.data,a=i===void 0?[]:i;return(0,f.S6)(n,function(o){var s=o.type,l=o.region,u=o.options,c=u===void 0?{}:u,h=o.top,v=c.tooltip;if(h){Kc(s,r,(0,d.pi)((0,d.pi)({},c),{data:a}));return}var p=r.createView((0,d.pi)({region:l},Qe(c,vg)));v&&p.interaction("tooltip"),Kc(s,p,(0,d.pi)({data:a},c))}),e}function eL(e){var r=e.chart,t=e.options;return r.option("slider",t.slider),e}function rL(e){return Fe(tr,QI,tL,or,tr,We,yr,eL,sr())(e)}function nL(e,r){var t=e.getModel(),n=t.data,i;return(0,f.kJ)(n)?i=n[0][r]:i=n[r],i}function iL(e){var r=js(e);(0,f.S6)(r,function(t){t.hasState("active")&&t.setState("active",!1),t.hasState("selected")&&t.setState("selected",!1),t.hasState("inactive")&&t.setState("inactive",!1)})}var aL=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getAssociationItems=function(t,n){var i,a=this.context.event,o=n||{},s=o.linkField,l=o.dim,u=[];if((i=a.data)===null||i===void 0?void 0:i.data){var c=a.data.data;(0,f.S6)(t,function(h){var v,p,g=s;if(l==="x"?g=h.getXScale().field:l==="y"?g=(v=h.getYScales().find(function(x){return x.field===g}))===null||v===void 0?void 0:v.field:g||(g=(p=h.getGroupScales()[0])===null||p===void 0?void 0:p.field),!!g){var y=(0,f.UI)(js(h),function(x){var m=!1,w=!1,M=(0,f.kJ)(c)?(0,f.U2)(c[0],g):(0,f.U2)(c,g);return nL(x,g)===M?m=!0:w=!0,{element:x,view:h,active:m,inactive:w}});u.push.apply(u,y)}})}return u},r.prototype.showTooltip=function(t){var n=ag(this.context.view),i=this.getAssociationItems(n,t);(0,f.S6)(i,function(a){if(a.active){var o=a.element.shape.getCanvasBBox();a.view.showTooltip({x:o.minX+o.width/2,y:o.minY+o.height/2})}})},r.prototype.hideTooltip=function(){var t=ag(this.context.view);(0,f.S6)(t,function(n){n.hideTooltip()})},r.prototype.active=function(t){var n=ho(this.context.view),i=this.getAssociationItems(n,t);(0,f.S6)(i,function(a){var o=a.active,s=a.element;o&&s.setState("active",!0)})},r.prototype.selected=function(t){var n=ho(this.context.view),i=this.getAssociationItems(n,t);(0,f.S6)(i,function(a){var o=a.active,s=a.element;o&&s.setState("selected",!0)})},r.prototype.highlight=function(t){var n=ho(this.context.view),i=this.getAssociationItems(n,t);(0,f.S6)(i,function(a){var o=a.inactive,s=a.element;o&&s.setState("inactive",!0)})},r.prototype.reset=function(){var t=ho(this.context.view);(0,f.S6)(t,function(n){iL(n)})},r}(ar);be("association",aL),Pe("association-active",{start:[{trigger:"element:mouseenter",action:"association:active"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),Pe("association-selected",{start:[{trigger:"element:mouseenter",action:"association:selected"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),Pe("association-highlight",{start:[{trigger:"element:mouseenter",action:"association:highlight"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),Pe("association-tooltip",{start:[{trigger:"element:mousemove",action:"association:showTooltip"}],end:[{trigger:"element:mouseleave",action:"association:hideTooltip"}]});var oL=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="mix",t}return r.prototype.getSchemaAdaptor=function(){return rL},r}(Oe),xa;(function(e){e.DEV="DEV",e.BETA="BETA",e.STABLE="STABLE"})(xa||(xa={}));function sL(e,r){console.warn(e===xa.DEV?"Plot '"+r+"' is in DEV stage, just give us issues.":e===xa.BETA?"Plot '"+r+"' is in BETA stage, DO NOT use it in production env.":e===xa.STABLE?"Plot '"+r+`' is in STABLE stage, import it by "import { `+r+` } from '@antv/g2plot'".`:"invalid Stage type.")}var V5=function(){function e(){}return Object.defineProperty(e,"MultiView",{get:function(){return sL(xa.STABLE,"MultiView"),oL},enumerable:!1,configurable:!0}),e}(),bn="first-axes-view",An="second-axes-view",Gi="series-field-key";function s0(e,r,t,n,i){var a=[];r.forEach(function(h){n.forEach(function(v){var p,g=(p={},p[e]=v[e],p[t]=h,p[h]=v[h],p);a.push(g)})});var o=Object.values((0,f.vM)(a,t)),s=o[0],l=s===void 0?[]:s,u=o[1],c=u===void 0?[]:u;return i?[l.reverse(),c.reverse()]:[l,c]}function Yn(e){return e!=="vertical"}function lL(e,r,t){var n=r[0],i=r[1],a=n.autoPadding,o=i.autoPadding,s=e.__axisPosition,l=s.layout,u=s.position;if(Yn(l)&&u==="top"&&(n.autoPadding=t.instance(a.top,0,a.bottom,a.left),i.autoPadding=t.instance(o.top,a.left,o.bottom,0)),Yn(l)&&u==="bottom"&&(n.autoPadding=t.instance(a.top,a.right/2+5,a.bottom,a.left),i.autoPadding=t.instance(o.top,o.right,o.bottom,a.right/2+5)),!Yn(l)&&u==="bottom"){var c=a.left>=o.left?a.left:o.left;n.autoPadding=t.instance(a.top,a.right,a.bottom/2+5,c),i.autoPadding=t.instance(a.bottom/2+5,o.right,o.bottom,c)}if(!Yn(l)&&u==="top"){var c=a.left>=o.left?a.left:o.left;n.autoPadding=t.instance(a.top,a.right,0,c),i.autoPadding=t.instance(0,o.right,a.top,c)}}function uL(e){var r=e.chart,t=e.options,n=t.data,i=t.xField,a=t.yField,o=t.color,s=t.barStyle,l=t.widthRatio,u=t.legend,c=t.layout,h=s0(i,a,Gi,n,Yn(c));u?r.legend(Gi,u):u===!1&&r.legend(!1);var v,p,g=h[0],y=h[1];Yn(c)?(v=r.createView({region:{start:{x:0,y:0},end:{x:.5,y:1}},id:bn}),v.coordinate().transpose().reflect("x"),p=r.createView({region:{start:{x:.5,y:0},end:{x:1,y:1}},id:An}),p.coordinate().transpose(),v.data(g),p.data(y)):(v=r.createView({region:{start:{x:0,y:0},end:{x:1,y:.5}},id:bn}),p=r.createView({region:{start:{x:0,y:.5},end:{x:1,y:1}},id:An}),p.coordinate().reflect("y"),v.data(g),p.data(y));var x=It({},e,{chart:v,options:{widthRatio:l,xField:i,yField:a[0],seriesField:Gi,interval:{color:o,style:s}}});Er(x);var m=It({},e,{chart:p,options:{xField:i,yField:a[1],seriesField:Gi,widthRatio:l,interval:{color:o,style:s}}});return Er(m),e}function cL(e){var r,t,n,i=e.options,a=e.chart,o=i.xAxis,s=i.yAxis,l=i.xField,u=i.yField,c=Ue(a,bn),h=Ue(a,An),v={};return(0,f.XP)((i==null?void 0:i.meta)||{}).map(function(p){(0,f.U2)(i==null?void 0:i.meta,[p,"alias"])&&(v[p]=i.meta[p].alias)}),a.scale((r={},r[Gi]={sync:!0,formatter:function(p){return(0,f.U2)(v,p,p)}},r)),ur((t={},t[l]=o,t[u[0]]=s[u[0]],t))(It({},e,{chart:c})),ur((n={},n[l]=o,n[u[1]]=s[u[1]],n))(It({},e,{chart:h})),e}function fL(e){var r=e.chart,t=e.options,n=t.xAxis,i=t.yAxis,a=t.xField,o=t.yField,s=t.layout,l=Ue(r,bn),u=Ue(r,An);return(n==null?void 0:n.position)==="bottom"?u.axis(a,(0,d.pi)((0,d.pi)({},n),{label:{formatter:function(){return""}}})):u.axis(a,!1),n===!1?l.axis(a,!1):l.axis(a,(0,d.pi)({position:Yn(s)?"top":"bottom"},n)),i===!1?(l.axis(o[0],!1),u.axis(o[1],!1)):(l.axis(o[0],i[o[0]]),u.axis(o[1],i[o[1]])),r.__axisPosition={position:l.getOptions().axes[a].position,layout:s},e}function hL(e){var r=e.chart;return or(It({},e,{chart:Ue(r,bn)})),or(It({},e,{chart:Ue(r,An)})),e}function vL(e){var r=e.chart,t=e.options,n=t.yField,i=t.yAxis;return Ni(It({},e,{chart:Ue(r,bn),options:{yAxis:i[n[0]]}})),Ni(It({},e,{chart:Ue(r,An),options:{yAxis:i[n[1]]}})),e}function pL(e){var r=e.chart;return We(It({},e,{chart:Ue(r,bn)})),We(It({},e,{chart:Ue(r,An)})),We(e),e}function dL(e){var r=e.chart;return tr(It({},e,{chart:Ue(r,bn)})),tr(It({},e,{chart:Ue(r,An)})),e}function gL(e){var r=this,t,n,i=e.chart,a=e.options,o=a.label,s=a.yField,l=a.layout,u=Ue(i,bn),c=Ue(i,An),h=Tr(u,"interval"),v=Tr(c,"interval");if(!o)h.label(!1),v.label(!1);else{var p=o.callback,g=(0,d._T)(o,["callback"]);g.position||(g.position="middle"),g.offset===void 0&&(g.offset=2);var y=(0,d.pi)({},g);if(Yn(l)){var x=((t=y.style)===null||t===void 0?void 0:t.textAlign)||(g.position==="middle"?"center":"left");g.style=It({},g.style,{textAlign:x});var m={left:"right",right:"left",center:"center"};y.style=It({},y.style,{textAlign:m[x]})}else{var w={top:"bottom",bottom:"top",middle:"middle"};typeof g.position=="string"?g.position=w[g.position]:typeof g.position=="function"&&(g.position=function(){for(var A=[],D=0;D<arguments.length;D++)A[D]=arguments[D];return w[g.position.apply(r,A)]});var M=((n=y.style)===null||n===void 0?void 0:n.textBaseline)||"bottom";y.style=It({},y.style,{textBaseline:M});var S={top:"bottom",bottom:"top",middle:"middle"};g.style=It({},g.style,{textBaseline:S[M]})}h.label({fields:[s[0]],callback:p,cfg:Sr(y)}),v.label({fields:[s[1]],callback:p,cfg:Sr(g)})}return e}function yL(e){return Fe(uL,cL,fL,vL,pL,gL,yr,hL,dL)(e)}var U5=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="bidirectional-bar",t}return r.getDefaultOptions=function(){return It({},e.getDefaultOptions.call(this),{syncViewPadding:lL})},r.prototype.changeData=function(t){t===void 0&&(t=[]),this.chart.emit(X.BEFORE_CHANGE_DATA,lr.fromData(this.chart,X.BEFORE_CHANGE_DATA,null)),this.updateOption({data:t});var n=this.options,i=n.xField,a=n.yField,o=n.layout,s=s0(i,a,Gi,t,Yn(o)),l=s[0],u=s[1],c=Ue(this.chart,bn),h=Ue(this.chart,An);c.data(l),h.data(u),this.chart.render(!0),this.chart.emit(X.AFTER_CHANGE_DATA,lr.fromData(this.chart,X.AFTER_CHANGE_DATA,null))},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return yL},r.SERIES_FIELD_KEY=Gi,r}(Oe),Jc,wa="$$range$$",mL="low-q1-median-q3-high",xL="$$y_outliers$$",l0="outliers_view",wL=It({},Oe.getDefaultOptions(),{meta:(Jc={},Jc[wa]={min:0,alias:mL},Jc),interactions:[{type:"active-region"}],tooltip:{showMarkers:!1,shared:!0},boxStyle:{lineWidth:1}}),u0=function(e,r){var t=e;if(Array.isArray(r)){var n=r[0],i=r[1],a=r[2],o=r[3],s=r[4];t=(0,f.UI)(e,function(l){return l[wa]=[l[n],l[i],l[a],l[o],l[s]],l})}return t};function ML(e){var r=e.chart,t=e.options,n=t.xField,i=t.yField,a=t.groupField,o=t.color,s=t.tooltip,l=t.boxStyle;r.data(u0(t.data,i));var u=(0,f.kJ)(i)?wa:i,c=i?(0,f.kJ)(i)?i:[i]:[],h=s;h!==!1&&(h=It({},{fields:(0,f.kJ)(i)?i:[]},h));var v=Vc(It({},e,{options:{xField:n,yField:u,seriesField:a,tooltip:h,rawFields:c,label:!1,schema:{shape:"box",color:o,style:l}}})).ext;return a&&v.geometry.adjust("dodge"),e}function SL(e){var r=e.chart,t=e.options,n=t.xField,i=t.data,a=t.outliersField,o=t.outliersStyle,s=t.padding,l=t.label;if(!a)return e;var u=r.createView({padding:s,id:l0}),c=i.reduce(function(h,v){var p=v[a];return p.forEach(function(g){var y;return h.push((0,d.pi)((0,d.pi)({},v),(y={},y[a]=g,y)))}),h},[]);return u.data(c),qr({chart:u,options:{xField:n,yField:a,point:{shape:"circle",style:o},label:l}}),u.axis(!1),e}function CL(e){var r,t,n=e.chart,i=e.options,a=i.meta,o=i.xAxis,s=i.yAxis,l=i.xField,u=i.yField,c=i.outliersField,h=Array.isArray(u)?wa:u,v={};if(c){var p=xL;v=(r={},r[c]={sync:p,nice:!0},r[h]={sync:p,nice:!0},r)}var g=It(v,a,(t={},t[l]=Qe(o,Hr),t[h]=Qe(s,Hr),t));return n.scale(g),e}function bL(e){var r=e.chart,t=e.options,n=t.xAxis,i=t.yAxis,a=t.xField,o=t.yField,s=Array.isArray(o)?wa:o;return n===!1?r.axis(a,!1):r.axis(a,n),i===!1?r.axis(wa,!1):r.axis(s,i),e}function AL(e){var r=e.chart,t=e.options,n=t.legend,i=t.groupField;return i?n?r.legend(i,n):r.legend(i,{position:"bottom"}):r.legend(!1),e}function TL(e){return Fe(ML,SL,CL,bL,AL,yr,sr(),or,tr,We)(e)}var H5=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="box",t}return r.getDefaultOptions=function(){return wL},r.prototype.changeData=function(t){this.updateOption({data:t});var n=this.options.yField,i=this.chart.views.find(function(a){return a.id===l0});i&&i.data(t),this.chart.changeData(u0(t,n))},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return TL},r}(Oe);function c0(e,r,t){return e.length>1?r+"_"+t:""+r}function f0(e){var r=e.data,t=e.xField,n=e.measureField,i=e.rangeField,a=e.targetField,o=e.layout,s=[],l=[];r.forEach(function(h,v){var p=[h[i]].flat();p.sort(function(x,m){return x-m}),p.forEach(function(x,m){var w,M=m===0?x:p[m]-p[m-1];s.push((w={rKey:i+"_"+m},w[t]=t?h[t]:String(v),w[i]=M,w))});var g=[h[n]].flat();g.forEach(function(x,m){var w;s.push((w={mKey:c0(g,n,m)},w[t]=t?h[t]:String(v),w[n]=x,w))});var y=[h[a]].flat();y.forEach(function(x,m){var w;s.push((w={tKey:c0(y,a,m)},w[t]=t?h[t]:String(v),w[a]=x,w))}),l.push(h[i],h[n],h[a])});var u=Math.min.apply(Math,l.flat(Infinity)),c=Math.max.apply(Math,l.flat(Infinity));return u=u>0?0:u,o==="vertical"&&s.reverse(),{min:u,max:c,ds:s}}function EL(e){var r=e.chart,t=e.options,n=t.bulletStyle,i=t.targetField,a=t.rangeField,o=t.measureField,s=t.xField,l=t.color,u=t.layout,c=t.size,h=t.label,v=f0(t),p=v.min,g=v.max,y=v.ds;r.data(y);var x=It({},e,{options:{xField:s,yField:a,seriesField:"rKey",isStack:!0,label:(0,f.U2)(h,"range"),interval:{color:(0,f.U2)(l,"range"),style:(0,f.U2)(n,"range"),size:(0,f.U2)(c,"range")}}});Er(x),r.geometries[0].tooltip(!1);var m=It({},e,{options:{xField:s,yField:o,seriesField:"mKey",isStack:!0,label:(0,f.U2)(h,"measure"),interval:{color:(0,f.U2)(l,"measure"),style:(0,f.U2)(n,"measure"),size:(0,f.U2)(c,"measure")}}});Er(m);var w=It({},e,{options:{xField:s,yField:i,seriesField:"tKey",label:(0,f.U2)(h,"target"),point:{color:(0,f.U2)(l,"target"),style:(0,f.U2)(n,"target"),size:(0,f.mf)((0,f.U2)(c,"target"))?function(M){return(0,f.U2)(c,"target")(M)/2}:(0,f.U2)(c,"target")/2,shape:u==="horizontal"?"line":"hyphen"}}});return qr(w),u==="horizontal"&&r.coordinate().transpose(),(0,d.pi)((0,d.pi)({},e),{ext:{data:{min:p,max:g}}})}function h0(e){var r,t,n=e.options,i=e.ext,a=n.xAxis,o=n.yAxis,s=n.targetField,l=n.rangeField,u=n.measureField,c=n.xField,h=i.data;return Fe(ur((r={},r[c]=a,r[u]=o,r),(t={},t[u]={min:h==null?void 0:h.min,max:h==null?void 0:h.max,sync:!0},t[s]={sync:""+u},t[l]={sync:""+u},t)))(e)}function _L(e){var r=e.chart,t=e.options,n=t.xAxis,i=t.yAxis,a=t.xField,o=t.measureField,s=t.rangeField,l=t.targetField;return r.axis(""+s,!1),r.axis(""+l,!1),n===!1?r.axis(""+a,!1):r.axis(""+a,n),i===!1?r.axis(""+o,!1):r.axis(""+o,i),e}function FL(e){var r=e.chart,t=e.options,n=t.legend;return r.removeInteraction("legend-filter"),r.legend(n),r.legend("rKey",!1),r.legend("mKey",!1),r.legend("tKey",!1),e}function IL(e){var r=e.chart,t=e.options,n=t.label,i=t.measureField,a=t.targetField,o=t.rangeField,s=r.geometries,l=s[0],u=s[1],c=s[2];return(0,f.U2)(n,"range")?l.label(""+o,(0,d.pi)({layout:[{type:"limit-in-plot"}]},Sr(n.range))):l.label(!1),(0,f.U2)(n,"measure")?u.label(""+i,(0,d.pi)({layout:[{type:"limit-in-plot"}]},Sr(n.measure))):u.label(!1),(0,f.U2)(n,"target")?c.label(""+a,(0,d.pi)({layout:[{type:"limit-in-plot"}]},Sr(n.target))):c.label(!1),e}function LL(e){Fe(EL,h0,_L,FL,We,IL,yr,or,tr)(e)}var PL=It({},Oe.getDefaultOptions(),{layout:"horizontal",size:{range:30,measure:20,target:20},xAxis:{tickLine:!1,line:null},bulletStyle:{range:{fillOpacity:.5}},label:{measure:{position:"right"}},tooltip:{showMarkers:!1}}),G5=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="bullet",t}return r.getDefaultOptions=function(){return PL},r.prototype.changeData=function(t){this.updateOption({data:t});var n=f0(this.options),i=n.min,a=n.max,o=n.ds;h0({options:this.options,ext:{data:{min:i,max:a}},chart:this.chart}),this.chart.changeData(o)},r.prototype.getSchemaAdaptor=function(){return LL},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r}(Oe),kL={y:0,nodeWidthRatio:.05,weight:!1,nodePaddingRatio:.1,id:function(e){return e.id},source:function(e){return e.source},target:function(e){return e.target},sourceWeight:function(e){return e.value||1},targetWeight:function(e){return e.value||1},sortBy:null};function DL(e,r,t){(0,f.U5)(e,function(n,i){n.inEdges=r.filter(function(a){return""+t.target(a)==""+i}),n.outEdges=r.filter(function(a){return""+t.source(a)==""+i}),n.edges=n.outEdges.concat(n.inEdges),n.frequency=n.edges.length,n.value=0,n.inEdges.forEach(function(a){n.value+=t.targetWeight(a)}),n.outEdges.forEach(function(a){n.value+=t.sourceWeight(a)})})}function OL(e,r){var t={weight:function(i,a){return a.value-i.value},frequency:function(i,a){return a.frequency-i.frequency},id:function(i,a){return(""+r.id(i)).localeCompare(""+r.id(a))}},n=t[r.sortBy];!n&&(0,f.mf)(r.sortBy)&&(n=r.sortBy),n&&e.sort(n)}function BL(e,r){var t=e.length;if(!t)throw new TypeError("Invalid nodes: it's empty!");if(r.weight){var n=r.nodePaddingRatio;if(n<0||n>=1)throw new TypeError("Invalid nodePaddingRatio: it must be in range [0, 1)!");var i=n/(2*t),a=r.nodeWidthRatio;if(a<=0||a>=1)throw new TypeError("Invalid nodeWidthRatio: it must be in range (0, 1)!");var o=0;e.forEach(function(l){o+=l.value}),e.forEach(function(l){l.weight=l.value/o,l.width=l.weight*(1-n),l.height=a}),e.forEach(function(l,u){for(var c=0,h=u-1;h>=0;h--)c+=e[h].width+2*i;var v=l.minX=i+c,p=l.maxX=l.minX+l.width,g=l.minY=r.y-a/2,y=l.maxY=g+a;l.x=[v,p,p,v],l.y=[g,g,y,y]})}else{var s=1/t;e.forEach(function(l,u){l.x=(u+.5)*s,l.y=r.y})}return e}function RL(e,r,t){if(t.weight){var n={};(0,f.U5)(e,function(i,a){n[a]=i.value}),r.forEach(function(i){var a=t.source(i),o=t.target(i),s=e[a],l=e[o];if(s&&l){var u=n[a],c=t.sourceWeight(i),h=s.minX+(s.value-u)/s.value*s.width,v=h+c/s.value*s.width;n[a]-=c;var p=n[o],g=t.targetWeight(i),y=l.minX+(l.value-p)/l.value*l.width,x=y+g/l.value*l.width;n[o]-=g;var m=t.y;i.x=[h,v,y,x],i.y=[m,m,m,m],i.source=s,i.target=l}})}else r.forEach(function(i){var a=e[t.source(i)],o=e[t.target(i)];a&&o&&(i.x=[a.x,o.x],i.y=[a.y,o.y],i.source=a,i.target=o)});return r}function NL(e){return(0,f.f0)({},kL,e)}function zL(e,r){var t=NL(e),n={},i=r.nodes,a=r.links;i.forEach(function(l){var u=t.id(l);n[u]=l}),DL(n,a,t),OL(i,t);var o=BL(i,t),s=RL(n,a,t);return{nodes:o,links:s}}var v0="x",p0="y",d0="name",g0="source",VL={nodeStyle:{opacity:1,fillOpacity:1,lineWidth:1},edgeStyle:{opacity:.5,lineWidth:2},label:{fields:["x","name"],callback:function(e,r){var t=(e[0]+e[1])/2,n=t>.5?-4:4;return{offsetX:n,content:r}},labelEmit:!0,style:{fill:"#8c8c8c"}},tooltip:{showTitle:!1,showMarkers:!1,fields:["source","target","value","isNode"],showContent:function(e){return!(0,f.U2)(e,[0,"data","isNode"])},formatter:function(e){var r=e.source,t=e.target,n=e.value;return{name:r+" -> "+t,value:n}}},interactions:[{type:"element-active"}],weight:!0,nodePaddingRatio:.1,nodeWidthRatio:.05};function UL(e){var r=e.options,t=r.data,n=r.sourceField,i=r.targetField,a=r.weightField,o=r.nodePaddingRatio,s=r.nodeWidthRatio,l=r.rawFields,u=l===void 0?[]:l,c=Kd(t,n,i,a),h=zL({weight:!0,nodePaddingRatio:o,nodeWidthRatio:s},c),v=h.nodes,p=h.links,g=v.map(function(x){return(0,d.pi)((0,d.pi)({},Qe(x,(0,d.pr)(["id","x","y","name"],u))),{isNode:!0})}),y=p.map(function(x){return(0,d.pi)((0,d.pi)({source:x.source.name,target:x.target.name,name:x.source.name||x.target.name},Qe(x,(0,d.pr)(["x","y","value"],u))),{isNode:!1})});return(0,d.pi)((0,d.pi)({},e),{ext:(0,d.pi)((0,d.pi)({},e.ext),{chordData:{nodesData:g,edgesData:y}})})}function HL(e){var r,t=e.chart;return t.scale((r={x:{sync:!0,nice:!0},y:{sync:!0,nice:!0,max:1}},r[d0]={sync:"color"},r[g0]={sync:"color"},r)),e}function GL(e){var r=e.chart;return r.axis(!1),e}function YL(e){var r=e.chart;return r.legend(!1),e}function XL(e){var r=e.chart,t=e.options,n=t.tooltip;return r.tooltip(n),e}function WL(e){var r=e.chart;return r.coordinate("polar").reflect("y"),e}function ZL(e){var r=e.chart,t=e.options,n=e.ext.chordData.nodesData,i=t.nodeStyle,a=t.label,o=t.tooltip,s=r.createView();return s.data(n),il({chart:s,options:{xField:v0,yField:p0,seriesField:d0,polygon:{style:i},label:a,tooltip:o}}),e}function qL(e){var r=e.chart,t=e.options,n=e.ext.chordData.edgesData,i=t.edgeStyle,a=t.tooltip,o=r.createView();o.data(n);var s={xField:v0,yField:p0,seriesField:g0,edge:{style:i,shape:"arc"},tooltip:a};return fg({chart:o,options:s}),e}function $L(e){var r=e.chart,t=e.options,n=t.animation;return vo(r,n,l_(r)),e}function jL(e){return Fe(We,UL,WL,HL,GL,YL,XL,qL,ZL,or,vi,$L)(e)}var Y5=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="chord",t}return r.getDefaultOptions=function(){return VL},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return jL},r}(Oe),KL=["x","y","r","name","value","path","depth"],JL={colorField:"name",autoFit:!0,pointStyle:{lineWidth:0,stroke:"#fff"},legend:!1,hierarchyConfig:{size:[1,1],padding:0},label:{fields:["name"],layout:{type:"limit-in-shape"}},tooltip:{showMarkers:!1,showTitle:!1},drilldown:{enabled:!1}},y0=4,QL=0,m0=5,x0="drilldown-bread-crumb",tP={position:"top-left",dividerText:"/",textStyle:{fontSize:12,fill:"rgba(0, 0, 0, 0.65)",cursor:"pointer"},activeTextStyle:{fill:"#87B5FF"}},So="hierarchy-data-transform-params",eP=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.name="drill-down",t.historyCache=[],t.breadCrumbGroup=null,t.breadCrumbCfg=tP,t}return r.prototype.click=function(){var t=(0,f.U2)(this.context,["event","data","data"]);if(!t)return!1;this.drill(t),this.drawBreadCrumb()},r.prototype.resetPosition=function(){if(!!this.breadCrumbGroup){var t=this.context.view.getCoordinate(),n=this.breadCrumbGroup,i=n.getBBox(),a=this.getButtonCfg().position,o={x:t.start.x,y:t.end.y-(i.height+m0*2)};t.isPolar&&(o={x:0,y:0}),a==="bottom-left"&&(o={x:t.start.x,y:t.start.y});var s=Vr.transform(null,[["t",o.x+QL,o.y+i.height+m0]]);n.setMatrix(s)}},r.prototype.back=function(){(0,f.dp)(this.historyCache)&&this.backTo(this.historyCache.slice(0,-1))},r.prototype.reset=function(){this.historyCache[0]&&this.backTo(this.historyCache.slice(0,1)),this.historyCache=[],this.hideCrumbGroup()},r.prototype.drill=function(t){var n=this.context.view,i=(0,f.U2)(n,["interactions","drill-down","cfg","transformData"],function(u){return u}),a=i((0,d.pi)({data:t.data},t[So]));n.changeData(a);for(var o=[],s=t;s;){var l=s.data;o.unshift({id:l.name+"_"+s.height+"_"+s.depth,name:l.name,children:i((0,d.pi)({data:l},t[So]))}),s=s.parent}this.historyCache=(this.historyCache||[]).slice(0,-1).concat(o)},r.prototype.backTo=function(t){if(!(!t||t.length<=0)){var n=this.context.view,i=(0,f.Z$)(t).children;n.changeData(i),t.length>1?(this.historyCache=t,this.drawBreadCrumb()):(this.historyCache=[],this.hideCrumbGroup())}},r.prototype.getButtonCfg=function(){var t=this.context.view,n=(0,f.U2)(t,["interactions","drill-down","cfg","drillDownConfig"]);return It(this.breadCrumbCfg,n==null?void 0:n.breadCrumb,this.cfg)},r.prototype.drawBreadCrumb=function(){this.drawBreadCrumbGroup(),this.resetPosition(),this.breadCrumbGroup.show()},r.prototype.drawBreadCrumbGroup=function(){var t=this,n=this.getButtonCfg(),i=this.historyCache;this.breadCrumbGroup?this.breadCrumbGroup.clear():this.breadCrumbGroup=this.context.view.foregroundGroup.addGroup({name:x0});var a=0;i.forEach(function(o,s){var l=t.breadCrumbGroup.addShape({type:"text",id:o.id,name:x0+"_"+o.name+"_text",attrs:(0,d.pi)((0,d.pi)({text:s===0&&!(0,f.UM)(n.rootText)?n.rootText:o.name},n.textStyle),{x:a,y:0})}),u=l.getBBox();if(a+=u.width+y0,l.on("click",function(v){var p,g=v.target.get("id");if(g!==((p=(0,f.Z$)(i))===null||p===void 0?void 0:p.id)){var y=i.slice(0,i.findIndex(function(x){return x.id===g})+1);t.backTo(y)}}),l.on("mouseenter",function(v){var p,g=v.target.get("id");g!==((p=(0,f.Z$)(i))===null||p===void 0?void 0:p.id)?l.attr(n.activeTextStyle):l.attr({cursor:"default"})}),l.on("mouseleave",function(){l.attr(n.textStyle)}),s<i.length-1){var c=t.breadCrumbGroup.addShape({type:"text",name:n.name+"_"+o.name+"_divider",attrs:(0,d.pi)((0,d.pi)({text:n.dividerText},n.textStyle),{x:a,y:0})}),h=c.getBBox();a+=h.width+y0}})},r.prototype.hideCrumbGroup=function(){this.breadCrumbGroup&&this.breadCrumbGroup.hide()},r.prototype.destroy=function(){this.breadCrumbGroup&&this.breadCrumbGroup.remove(),e.prototype.destroy.call(this)},r}(ar);function rP(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function nP(e){for(var r=e.length,t,n;r;)n=Math.random()*r--|0,t=e[r],e[r]=e[n],e[n]=t;return e}function w0(e){for(var r=0,t=(e=nP(Array.from(e))).length,n=[],i,a;r<t;)i=e[r],a&&M0(a,i)?++r:(a=aP(n=iP(n,i)),r=0);return a}function iP(e,r){var t,n;if(Qc(r,e))return[r];for(t=0;t<e.length;++t)if(vl(r,e[t])&&Qc(Co(e[t],r),e))return[e[t],r];for(t=0;t<e.length-1;++t)for(n=t+1;n<e.length;++n)if(vl(Co(e[t],e[n]),r)&&vl(Co(e[t],r),e[n])&&vl(Co(e[n],r),e[t])&&Qc(S0(e[t],e[n],r),e))return[e[t],e[n],r];throw new Error}function vl(e,r){var t=e.r-r.r,n=r.x-e.x,i=r.y-e.y;return t<0||t*t<n*n+i*i}function M0(e,r){var t=e.r-r.r+Math.max(e.r,r.r,1)*1e-9,n=r.x-e.x,i=r.y-e.y;return t>0&&t*t>n*n+i*i}function Qc(e,r){for(var t=0;t<r.length;++t)if(!M0(e,r[t]))return!1;return!0}function aP(e){switch(e.length){case 1:return oP(e[0]);case 2:return Co(e[0],e[1]);case 3:return S0(e[0],e[1],e[2])}}function oP(e){return{x:e.x,y:e.y,r:e.r}}function Co(e,r){var t=e.x,n=e.y,i=e.r,a=r.x,o=r.y,s=r.r,l=a-t,u=o-n,c=s-i,h=Math.sqrt(l*l+u*u);return{x:(t+a+l/h*c)/2,y:(n+o+u/h*c)/2,r:(h+i+s)/2}}function S0(e,r,t){var n=e.x,i=e.y,a=e.r,o=r.x,s=r.y,l=r.r,u=t.x,c=t.y,h=t.r,v=n-o,p=n-u,g=i-s,y=i-c,x=l-a,m=h-a,w=n*n+i*i-a*a,M=w-o*o-s*s+l*l,S=w-u*u-c*c+h*h,A=p*g-v*y,D=(g*S-y*M)/(A*2)-n,V=(y*x-g*m)/A,K=(p*M-v*S)/(A*2)-i,Mt=(v*m-p*x)/A,ot=V*V+Mt*Mt-1,Lt=2*(a+D*V+K*Mt),Qt=D*D+K*K-a*a,ge=-(ot?(Lt+Math.sqrt(Lt*Lt-4*ot*Qt))/(2*ot):Qt/Lt);return{x:n+D+V*ge,y:i+K+Mt*ge,r:ge}}function C0(e,r,t){var n=e.x-r.x,i,a,o=e.y-r.y,s,l,u=n*n+o*o;u?(a=r.r+t.r,a*=a,l=e.r+t.r,l*=l,a>l?(i=(u+l-a)/(2*u),s=Math.sqrt(Math.max(0,l/u-i*i)),t.x=e.x-i*n-s*o,t.y=e.y-i*o+s*n):(i=(u+a-l)/(2*u),s=Math.sqrt(Math.max(0,a/u-i*i)),t.x=r.x+i*n-s*o,t.y=r.y+i*o+s*n)):(t.x=r.x+t.r,t.y=r.y)}function b0(e,r){var t=e.r+r.r-1e-6,n=r.x-e.x,i=r.y-e.y;return t>0&&t*t>n*n+i*i}function A0(e){var r=e._,t=e.next._,n=r.r+t.r,i=(r.x*t.r+t.x*r.r)/n,a=(r.y*t.r+t.y*r.r)/n;return i*i+a*a}function pl(e){this._=e,this.next=null,this.previous=null}function T0(e){if(!(i=(e=rP(e)).length))return 0;var r,t,n,i,a,o,s,l,u,c,h;if(r=e[0],r.x=0,r.y=0,!(i>1))return r.r;if(t=e[1],r.x=-t.r,t.x=r.r,t.y=0,!(i>2))return r.r+t.r;C0(t,r,n=e[2]),r=new pl(r),t=new pl(t),n=new pl(n),r.next=n.previous=t,t.next=r.previous=n,n.next=t.previous=r;t:for(s=3;s<i;++s){C0(r._,t._,n=e[s]),n=new pl(n),l=t.next,u=r.previous,c=t._.r,h=r._.r;do if(c<=h){if(b0(l._,n._)){t=l,r.next=t,t.previous=r,--s;continue t}c+=l._.r,l=l.next}else{if(b0(u._,n._)){r=u,r.next=t,t.previous=r,--s;continue t}h+=u._.r,u=u.previous}while(l!==u.next);for(n.previous=r,n.next=t,r.next=t.previous=t=n,a=A0(r);(n=n.next)!==t;)(o=A0(n))<a&&(r=n,a=o);t=r.next}for(r=[t._],n=t;(n=n.next)!==t;)r.push(n._);for(n=w0(r),s=0;s<i;++s)r=e[s],r.x-=n.x,r.y-=n.y;return n.r}function sP(e){return T0(e),e}function lP(e){return e==null?null:dl(e)}function dl(e){if(typeof e!="function")throw new Error;return e}function Yi(){return 0}function Ma(e){return function(){return e}}function uP(e){return Math.sqrt(e.value)}function E0(){var e=null,r=1,t=1,n=Yi;function i(a){return a.x=r/2,a.y=t/2,e?a.eachBefore(_0(e)).eachAfter(tf(n,.5)).eachBefore(F0(1)):a.eachBefore(_0(uP)).eachAfter(tf(Yi,1)).eachAfter(tf(n,a.r/Math.min(r,t))).eachBefore(F0(Math.min(r,t)/(2*a.r))),a}return i.radius=function(a){return arguments.length?(e=lP(a),i):e},i.size=function(a){return arguments.length?(r=+a[0],t=+a[1],i):[r,t]},i.padding=function(a){return arguments.length?(n=typeof a=="function"?a:Ma(+a),i):n},i}function _0(e){return function(r){r.children||(r.r=Math.max(0,+e(r)||0))}}function tf(e,r){return function(t){if(n=t.children){var n,i,a=n.length,o=e(t)*r||0,s;if(o)for(i=0;i<a;++i)n[i].r+=o;if(s=T0(n),o)for(i=0;i<a;++i)n[i].r-=o;t.r=s+o}}}function F0(e){return function(r){var t=r.parent;r.r*=e,t&&(r.x=t.x+e*r.x,r.y=t.y+e*r.y)}}var cP=et(32059);function fP(e){var r=0,t=e.children,n=t&&t.length;if(!n)r=1;else for(;--n>=0;)r+=t[n].value;e.value=r}function hP(){return this.eachAfter(fP)}var vP=et(64254);function I0(e,r){var t=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=(0,vP.Z)(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
  75. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,o=!1,s;return{s:function(){t=t.call(e)},n:function(){var u=t.next();return a=u.done,u},e:function(u){o=!0,s=u},f:function(){try{!a&&t.return!=null&&t.return()}finally{if(o)throw s}}}}function pP(e,r){var t=-1,n=I0(this),i;try{for(n.s();!(i=n.n()).done;){var a=i.value;e.call(r,a,++t,this)}}catch(o){n.e(o)}finally{n.f()}return this}function dP(e,r){for(var t=this,n=[t],i,a,o=-1;t=n.pop();)if(e.call(r,t,++o,this),i=t.children)for(a=i.length-1;a>=0;--a)n.push(i[a]);return this}function gP(e,r){for(var t=this,n=[t],i=[],a,o,s,l=-1;t=n.pop();)if(i.push(t),a=t.children)for(o=0,s=a.length;o<s;++o)n.push(a[o]);for(;t=i.pop();)e.call(r,t,++l,this);return this}function yP(e,r){var t=-1,n=I0(this),i;try{for(n.s();!(i=n.n()).done;){var a=i.value;if(e.call(r,a,++t,this))return a}}catch(o){n.e(o)}finally{n.f()}}function mP(e){return this.eachAfter(function(r){for(var t=+e(r.data)||0,n=r.children,i=n&&n.length;--i>=0;)t+=n[i].value;r.value=t})}function xP(e){return this.eachBefore(function(r){r.children&&r.children.sort(e)})}function wP(e){for(var r=this,t=MP(r,e),n=[r];r!==t;)r=r.parent,n.push(r);for(var i=n.length;e!==t;)n.splice(i,0,e),e=e.parent;return n}function MP(e,r){if(e===r)return e;var t=e.ancestors(),n=r.ancestors(),i=null;for(e=t.pop(),r=n.pop();e===r;)i=e,e=t.pop(),r=n.pop();return i}function SP(){for(var e=this,r=[e];e=e.parent;)r.push(e);return r}function CP(){return Array.from(this)}function bP(){var e=[];return this.eachBefore(function(r){r.children||e.push(r)}),e}function AP(){var e=this,r=[];return e.each(function(t){t!==e&&r.push({source:t.parent,target:t})}),r}var L0=et(39428),TP=(0,L0.Z)().mark(P0);function P0(){var e,r,t,n,i,a;return(0,L0.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:e=this,t=[e];case 1:r=t.reverse(),t=[];case 2:if(!(e=r.pop())){s.next=8;break}return s.next=5,e;case 5:if(n=e.children)for(i=0,a=n.length;i<a;++i)t.push(n[i]);s.next=2;break;case 8:if(t.length){s.next=1;break}case 9:case"end":return s.stop()}},TP,this)}function Sa(e,r){e instanceof Map?(e=[void 0,e],r===void 0&&(r=FP)):r===void 0&&(r=_P);for(var t=new Ca(e),n,i=[t],a,o,s,l;n=i.pop();)if((o=r(n.data))&&(l=(o=Array.from(o)).length))for(n.children=o,s=l-1;s>=0;--s)i.push(a=o[s]=new Ca(o[s])),a.parent=n,a.depth=n.depth+1;return t.eachBefore(k0)}function EP(){return Sa(this).eachBefore(IP)}function _P(e){return e.children}function FP(e){return Array.isArray(e)?e[1]:null}function IP(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function k0(e){var r=0;do e.height=r;while((e=e.parent)&&e.height<++r)}function Ca(e){this.data=e,this.depth=this.height=0,this.parent=null}Ca.prototype=Sa.prototype=(0,cP.Z)({constructor:Ca,count:hP,each:pP,eachAfter:gP,eachBefore:dP,find:yP,sum:mP,sort:xP,path:wP,ancestors:SP,descendants:CP,leaves:bP,links:AP,copy:EP},Symbol.iterator,P0);var D0="nodeIndex",O0="childNodeCount",ef="nodeAncestor",rf="Invalid field: it must be a string!";function nf(e,r){var t=e.field,n=e.fields;if((0,f.HD)(t))return t;if((0,f.kJ)(t))return console.warn(rf),t[0];if(console.warn(rf+" will try to get fields instead."),(0,f.HD)(n))return n;if((0,f.kJ)(n)&&n.length)return n[0];if(r)return r;throw new TypeError(rf)}function af(e){var r=[];if(e&&e.each){var t,n;e.each(function(i){var a,o;i.parent!==t?(t=i.parent,n=0):n+=1;var s=(0,f.hX)((((a=i.ancestors)===null||a===void 0?void 0:a.call(i))||[]).map(function(l){return r.find(function(u){return u.name===l.name})||l}),function(l){var u=l.depth;return u>0&&u<i.depth});i[ef]=s,i[O0]=((o=i.children)===null||o===void 0?void 0:o.length)||0,i[D0]=n,r.push(i)})}else e&&e.eachNode&&e.eachNode(function(i){r.push(i)});return r}var LP={field:"value",as:["x","y","r"],sort:function(e,r){return r.value-e.value}};function PP(e,r){r=(0,f.f0)({},LP,r);var t=r.as;if(!(0,f.kJ)(t)||t.length!==3)throw new TypeError('Invalid as: it must be an array with 3 strings (e.g. [ "x", "y", "r" ])!');var n;try{n=nf(r)}catch(u){console.warn(u)}var i=function(u){return E0().size(r.size).padding(r.padding)(Sa(u).sum(function(c){return c[n]}).sort(r.sort))},a=i(e),o=t[0],s=t[1],l=t[2];return a.each(function(u){u[o]=u.x,u[s]=u.y,u[l]=u.r}),af(a)}function B0(e){var r=e.data,t=e.hierarchyConfig,n=e.rawFields,i=n===void 0?[]:n,a=e.enableDrillDown,o=PP(r,(0,d.pi)((0,d.pi)({},t),{field:"value",as:["x","y","r"]})),s=[];return o.forEach(function(l){for(var u,c=l.data.name,h=(0,d.pi)({},l);h.depth>1;)c=((u=h.parent.data)===null||u===void 0?void 0:u.name)+" / "+c,h=h.parent;if(a&&l.depth>2)return null;var v=It({},l.data,(0,d.pi)((0,d.pi)((0,d.pi)({},Qe(l.data,i)),{path:c}),l));v.ext=t,v[So]={hierarchyConfig:t,rawFields:i,enableDrillDown:a},s.push(v)}),s}function R0(e,r,t){var n=Oc([e,r]),i=n[0],a=n[1],o=n[2],s=n[3],l=t.width,u=t.height,c=l-(s+a),h=u-(i+o),v=Math.min(c,h),p=(c-v)/2,g=(h-v)/2,y=i+g,x=a+p,m=o+g,w=s+p,M=[y,x,m,w],S=v<0?0:v;return{finalPadding:M,finalSize:S}}function kP(e){var r=e.chart,t=Math.min(r.viewBBox.width,r.viewBBox.height);return It({options:{size:function(n){var i=n.r;return i*t}}},e)}function DP(e){var r=e.options,t=e.chart,n=t.viewBBox,i=r.padding,a=r.appendPadding,o=r.drilldown,s=a;if(o==null?void 0:o.enabled){var l=Ks(t.appendPadding,(0,f.U2)(o,["breadCrumb","position"]));s=Oc([l,a])}var u=R0(i,s,n).finalPadding;return t.padding=u,t.appendPadding=0,e}function OP(e){var r=e.chart,t=e.options,n=r.padding,i=r.appendPadding,a=t.color,o=t.colorField,s=t.pointStyle,l=t.hierarchyConfig,u=t.sizeField,c=t.rawFields,h=c===void 0?[]:c,v=t.drilldown,p=B0({data:t.data,hierarchyConfig:l,enableDrillDown:v==null?void 0:v.enabled,rawFields:h});r.data(p);var g=r.viewBBox,y=R0(n,i,g).finalSize,x=function(m){var w=m.r;return w*y};return u&&(x=function(m){return m[u]*y}),qr(It({},e,{options:{xField:"x",yField:"y",seriesField:o,sizeField:u,rawFields:(0,d.pr)(KL,h),point:{color:a,style:s,shape:"circle",size:x}}})),e}function BP(e){return Fe(ur({},{x:{min:0,max:1,minLimit:0,maxLimit:1,nice:!0},y:{min:0,max:1,minLimit:0,maxLimit:1,nice:!0}}))(e)}function RP(e){var r=e.chart,t=e.options,n=t.tooltip;if(n===!1)r.tooltip(!1);else{var i=n;(0,f.U2)(n,"fields")||(i=It({},{customItems:function(a){return a.map(function(o){var s=(0,f.U2)(r.getOptions(),"scales"),l=(0,f.U2)(s,["name","formatter"],function(c){return c}),u=(0,f.U2)(s,["value","formatter"],function(c){return c});return(0,d.pi)((0,d.pi)({},o),{name:l(o.data.name),value:u(o.data.value)})})}},i)),r.tooltip(i)}return e}function NP(e){var r=e.chart;return r.axis(!1),e}function zP(e){var r=e.drilldown,t=e.interactions,n=t===void 0?[]:t;return(r==null?void 0:r.enabled)?It({},e,{interactions:(0,d.pr)(n,[{type:"drill-down",cfg:{drillDownConfig:r,transformData:B0,enableDrillDown:!0}}])}):e}function VP(e){var r=e.chart,t=e.options;return or({chart:r,options:zP(t)}),e}function UP(e){return Fe(Zr("pointStyle"),kP,DP,We,BP,OP,NP,Ri,RP,VP,tr,sr())(e)}function N0(e){var r=(0,f.U2)(e,["event","data","data"],{});return(0,f.kJ)(r.children)&&r.children.length>0}function z0(e){var r=e.view.getCoordinate(),t=r.innerRadius;if(t){var n=e.event,i=n.x,a=n.y,o=r.center,s=o.x,l=o.y,u=r.getRadius()*t,c=Math.sqrt(Math.pow(s-i,2)+Math.pow(l-a,2));return c<u}return!1}be("drill-down-action",eP),Pe("drill-down",{showEnable:[{trigger:"element:mouseenter",action:"cursor:pointer",isEnable:N0},{trigger:"element:mouseleave",action:"cursor:default"},{trigger:"element:mouseleave",action:"cursor:pointer",isEnable:z0}],start:[{trigger:"element:click",isEnable:N0,action:["drill-down-action:click"]},{trigger:"afterchangesize",action:["drill-down-action:resetPosition"]},{trigger:"click",isEnable:z0,action:["drill-down-action:back"]}]});var X5=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="circle-packing",t}return r.getDefaultOptions=function(){return JL},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return UP},r.prototype.triggerResize=function(){this.chart.destroyed||(this.chart.forceFit(),this.chart.clear(),this.execAdaptor(),this.chart.render(!0))},r}(Oe),$r="left-axes-view",jr="right-axes-view",V0={nice:!0,label:{autoHide:!0,autoRotate:!1}},HP=(0,d.pi)((0,d.pi)({},V0),{position:"left"}),GP=(0,d.pi)((0,d.pi)({},V0),{position:"right",grid:null}),ba;(function(e){e.Left="Left",e.Right="Right"})(ba||(ba={}));var Xi;(function(e){e.Line="line",e.Column="column"})(Xi||(Xi={}));function of(e){return(0,f.U2)(e,"geometry")===Xi.Line}function sf(e){return(0,f.U2)(e,"geometry")===Xi.Column}function U0(e,r,t){return sf(t)?It({},{geometry:Xi.Column,label:t.label&&t.isRange?{content:function(n){var i;return(i=n[r])===null||i===void 0?void 0:i.join("-")}}:void 0},t):(0,d.pi)({geometry:Xi.Line},t)}function H0(e,r){var t=e[0],n=e[1];if((0,f.kJ)(r)){var i=r[0],a=r[1];return[i,a]}var o=(0,f.U2)(r,t),s=(0,f.U2)(r,n);return[o,s]}function G0(e,r){return r===ba.Left?e===!1?!1:It({},HP,e):r===ba.Right?e===!1?!1:It({},GP,e):e}function YP(e){var r=e.options,t=e.chart,n=r.geometryOption,i=n.isStack,a=n.color,o=n.seriesField,s=n.groupField,l=n.isGroup,u=["xField","yField"];if(of(n)){ga(It({},e,{options:(0,d.pi)((0,d.pi)((0,d.pi)({},Qe(r,u)),n),{line:{color:n.color,style:n.lineStyle}})})),qr(It({},e,{options:(0,d.pi)((0,d.pi)((0,d.pi)({},Qe(r,u)),n),{point:n.point&&(0,d.pi)({color:a,shape:"circle"},n.point)})}));var c=[];l&&c.push({type:"dodge",dodgeBy:s||o,customOffset:0}),i&&c.push({type:"stack"}),c.length&&(0,f.S6)(t.geometries,function(h){h.adjust(c)})}return sf(n)&&sl(It({},e,{options:(0,d.pi)((0,d.pi)((0,d.pi)({},Qe(r,u)),n),{widthRatio:n.columnWidthRatio,interval:(0,d.pi)((0,d.pi)({},Qe(n,["color"])),{style:n.columnStyle})})})),e}function Y0(e){var r=e.view,t=e.geometryOption,n=e.yField,i=e.legend,a=(0,f.U2)(i,"marker"),o=Tr(r,of(t)?"line":"interval");if(!t.seriesField){var s=(0,f.U2)(r,"options.scales."+n+".alias")||n,l=o.getAttribute("color"),u=r.getTheme().defaultColor;l&&(u=Vr.getMappingValue(l,s,(0,f.U2)(l,["values",0],u)));var c=((0,f.mf)(a)?a:!(0,f.xb)(a)&&It({},{style:{stroke:u,fill:u}},a))||(of(t)?{symbol:function(v,p,g){return[["M",v-g,p],["L",v+g,p]]},style:{lineWidth:2,r:6,stroke:u}}:{symbol:"square",style:{fill:u}});return[{value:n,name:s,marker:c,isGeometry:!0,viewId:r.id}]}var h=o.getGroupAttributes();return(0,f.u4)(h,function(v,p){var g=Vr.getLegendItems(r,o,p,r.getTheme(),a);return v.concat(g)},[])}var X0=function(e,r){var t=r[0],n=r[1],i=e.getOptions().data,a=e.getXScale(),o=(0,f.dp)(i);if(!(!a||!o)){var s=!0,l=(0,f.I)(i,a.field),u=s?l:l.reverse(),c=(0,f.dp)(u),h=Math.floor(t*(c-1)),v=Math.floor(n*(c-1));e.filter(a.field,function(p){var g=u.indexOf(p);return g>-1?c_(g,h,v):!0}),e.getRootView().render(!0)}};function XP(e){var r,t=e.options,n=t.geometryOptions,i=n===void 0?[]:n,a=t.xField,o=t.yField,s=(0,f.yW)(i,function(l){var u=l.geometry;return u===Xi.Line||u===void 0});return It({},{options:{geometryOptions:[],meta:(r={},r[a]={type:"cat",sync:!0,range:s?[0,1]:void 0},r),tooltip:{showMarkers:s,showCrosshairs:s,shared:!0,crosshairs:{type:"x"}},interactions:s?[{type:"legend-visible-filter"}]:[{type:"legend-visible-filter"},{type:"active-region"}],legend:{position:"top-left"}}},e,{options:{yAxis:H0(o,t.yAxis),geometryOptions:[U0(a,o[0],i[0]),U0(a,o[1],i[1])],annotations:H0(o,t.annotations)}})}function WP(e){var r,t,n=e.chart,i=e.options,a=i.geometryOptions,o={line:0,column:1},s=[{type:(r=a[0])===null||r===void 0?void 0:r.geometry,id:$r},{type:(t=a[1])===null||t===void 0?void 0:t.geometry,id:jr}];return s.sort(function(l,u){return-o[l.type]+o[u.type]}).forEach(function(l){return n.createView({id:l.id})}),e}function ZP(e){var r=e.chart,t=e.options,n=t.xField,i=t.yField,a=t.geometryOptions,o=t.data,s=t.tooltip,l=[(0,d.pi)((0,d.pi)({},a[0]),{id:$r,data:o[0],yField:i[0]}),(0,d.pi)((0,d.pi)({},a[1]),{id:jr,data:o[1],yField:i[1]})];return l.forEach(function(u){var c=u.id,h=u.data,v=u.yField,p=sf(u)&&u.isPercent,g=p?pg(h,v,n,v):h,y=Ue(r,c).data(g),x=p?(0,d.pi)({formatter:function(m){return{name:m[u.seriesField]||v,value:(Number(m[v])*100).toFixed(2)+"%"}}},s):s;YP({chart:y,options:{xField:n,yField:v,tooltip:x,geometryOption:u}})}),e}function qP(e){var r,t=e.chart,n=e.options,i=n.geometryOptions,a=((r=t.getTheme())===null||r===void 0?void 0:r.colors10)||[],o=0;return t.once("beforepaint",function(){(0,f.S6)(i,function(s,l){var u=Ue(t,l===0?$r:jr);if(!s.color){var c=u.getGroupScales(),h=(0,f.U2)(c,[0,"values","length"],1),v=a.slice(o,o+h).concat(l===0?[]:a);u.geometries.forEach(function(p){s.seriesField?p.color(s.seriesField,v):p.color(v[0])}),o+=h}}),t.render(!0)}),e}function $P(e){var r,t,n=e.chart,i=e.options,a=i.xAxis,o=i.yAxis,s=i.xField,l=i.yField;return ur((r={},r[s]=a,r[l[0]]=o[0],r))(It({},e,{chart:Ue(n,$r)})),ur((t={},t[s]=a,t[l[1]]=o[1],t))(It({},e,{chart:Ue(n,jr)})),e}function jP(e){var r=e.chart,t=e.options,n=Ue(r,$r),i=Ue(r,jr),a=t.xField,o=t.yField,s=t.xAxis,l=t.yAxis;return r.axis(a,!1),r.axis(o[0],!1),r.axis(o[1],!1),n.axis(a,s),n.axis(o[0],G0(l[0],ba.Left)),i.axis(a,!1),i.axis(o[1],G0(l[1],ba.Right)),e}function KP(e){var r=e.chart,t=e.options,n=t.tooltip,i=Ue(r,$r),a=Ue(r,jr);return r.tooltip(n),i.tooltip({shared:!0}),a.tooltip({shared:!0}),e}function JP(e){var r=e.chart;return or(It({},e,{chart:Ue(r,$r)})),or(It({},e,{chart:Ue(r,jr)})),e}function QP(e){var r=e.chart,t=e.options,n=t.annotations,i=(0,f.U2)(n,[0]),a=(0,f.U2)(n,[1]);return sr(i)(It({},e,{chart:Ue(r,$r),options:{annotations:i}})),sr(a)(It({},e,{chart:Ue(r,jr),options:{annotations:a}})),e}function tk(e){var r=e.chart;return We(It({},e,{chart:Ue(r,$r)})),We(It({},e,{chart:Ue(r,jr)})),We(e),e}function ek(e){var r=e.chart;return tr(It({},e,{chart:Ue(r,$r)})),tr(It({},e,{chart:Ue(r,jr)})),e}function rk(e){var r=e.chart,t=e.options,n=t.yAxis;return Ni(It({},e,{chart:Ue(r,$r),options:{yAxis:n[0]}})),Ni(It({},e,{chart:Ue(r,jr),options:{yAxis:n[1]}})),e}function nk(e){var r=e.chart,t=e.options,n=t.legend,i=t.geometryOptions,a=t.yField,o=t.data,s=Ue(r,$r),l=Ue(r,jr);if(n===!1)r.legend(!1);else if((0,f.Kn)(n)&&n.custom===!0)r.legend(n);else{var u=(0,f.U2)(i,[0,"legend"],n),c=(0,f.U2)(i,[1,"legend"],n);r.once("beforepaint",function(){var h=o[0].length?Y0({view:s,geometryOption:i[0],yField:a[0],legend:u}):[],v=o[1].length?Y0({view:l,geometryOption:i[1],yField:a[1],legend:c}):[];r.legend(It({},n,{custom:!0,items:h.concat(v)}))}),i[0].seriesField&&s.legend(i[0].seriesField,u),i[1].seriesField&&l.legend(i[1].seriesField,c),r.on("legend-item:click",function(h){var v=(0,f.U2)(h,"gEvent.delegateObject",{});if(v&&v.item){var p=v.item,g=p.value,y=p.isGeometry,x=p.viewId;if(y){var m=(0,f.cx)(a,function(S){return S===g});if(m>-1){var w=(0,f.U2)(Ue(r,x),"geometries");(0,f.S6)(w,function(S){S.changeVisible(!v.item.unchecked)})}}else{var M=(0,f.U2)(r.getController("legend"),"option.items",[]);(0,f.S6)(r.views,function(S){var A=S.getGroupScales();(0,f.S6)(A,function(D){D.values&&D.values.indexOf(g)>-1&&S.filter(D.field,function(V){var K=(0,f.sE)(M,function(Mt){return Mt.value===V});return!K.unchecked})}),r.render(!0)})}}})}return e}function ik(e){var r=e.chart,t=e.options,n=t.slider,i=Ue(r,$r),a=Ue(r,jr);return n&&(i.option("slider",n),i.on("slider:valuechanged",function(o){var s=o.event,l=s.value,u=s.originValue;(0,f.Xy)(l,u)||X0(a,l)}),r.once("afterpaint",function(){if(!(0,f.jn)(n)){var o=n.start,s=n.end;(o||s)&&X0(a,[o,s])}})),e}function ak(e){return Fe(XP,WP,tk,ZP,$P,jP,rk,KP,JP,QP,ek,qP,nk,ik)(e)}var ok=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="dual-axes",t}return r.prototype.getDefaultOptions=function(){return It({},e.prototype.getDefaultOptions.call(this),{yAxis:[],syncViewPadding:!0})},r.prototype.getSchemaAdaptor=function(){return ak},r}(Oe);function sk(e,r){var t=r.data,n=r.coordinate,i=r.interactions,a=r.annotations,o=r.animation,s=r.tooltip,l=r.axes,u=r.meta,c=r.geometries;t&&e.data(t);var h={};l&&(0,f.S6)(l,function(v,p){h[p]=Qe(v,Hr)}),h=It({},u,h),e.scale(h),n&&e.coordinate(n),l===!1?e.axis(!1):(0,f.S6)(l,function(v,p){e.axis(p,v)}),(0,f.S6)(c,function(v){var p=Gr({chart:e,options:v}).ext,g=v.adjust;g&&p.geometry.adjust(g)}),(0,f.S6)(i,function(v){v.enable===!1?e.removeInteraction(v.type):e.interaction(v.type,v.cfg)}),(0,f.S6)(a,function(v){e.annotation()[v.type]((0,d.pi)({},v))}),vo(e,o),s?(e.interaction("tooltip"),e.tooltip(s)):s===!1&&e.removeInteraction("tooltip")}function lk(e){var r=e.chart,t=e.options,n=t.type,i=t.data,a=t.fields,o=t.eachView,s=(0,f.CE)(t,["type","data","fields","eachView","axes","meta","tooltip","coordinate","theme","legend","interactions","annotations"]);return r.data(i),r.facet(n,(0,d.pi)((0,d.pi)({},s),{fields:a,eachView:function(l,u){var c=o(l,u);if(c.geometries)sk(l,c);else{var h=c,v=h.options;v.tooltip&&l.interaction("tooltip"),Kc(h.type,l,v)}}})),e}function uk(e){var r=e.chart,t=e.options,n=t.axes,i=t.meta,a=t.tooltip,o=t.coordinate,s=t.theme,l=t.legend,u=t.interactions,c=t.annotations,h={};return n&&(0,f.S6)(n,function(v,p){h[p]=Qe(v,Hr)}),h=It({},i,h),r.scale(h),r.coordinate(o),n?(0,f.S6)(n,function(v,p){r.axis(p,v)}):r.axis(!1),a?(r.interaction("tooltip"),r.tooltip(a)):a===!1&&r.removeInteraction("tooltip"),r.legend(l),s&&r.theme(s),(0,f.S6)(u,function(v){v.enable===!1?r.removeInteraction(v.type):r.interaction(v.type,v.cfg)}),(0,f.S6)(c,function(v){r.annotation()[v.type]((0,d.pi)({},v))}),e}function ck(e){return Fe(We,lk,uk)(e)}var fk={title:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}},rowTitle:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}},columnTitle:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}}},W5=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="area",t}return r.getDefaultOptions=function(){return fk},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return ck},r}(Oe);function hk(e){var r=e.chart,t=e.options,n=t.data,i=t.type,a=t.xField,o=t.yField,s=t.colorField,l=t.sizeField,u=t.sizeRatio,c=t.shape,h=t.color,v=t.tooltip,p=t.heatmapStyle,g=t.meta;r.data(n);var y="polygon";i==="density"&&(y="heatmap");var x=en(v,[a,o,s]),m=x.fields,w=x.formatter,M=1;return(u||u===0)&&(!c&&!l?console.warn("sizeRatio is not in effect: Must define shape or sizeField first"):u<0||u>1?console.warn("sizeRatio is not in effect: It must be a number in [0,1]"):M=u),Gr(It({},e,{options:{type:y,colorField:s,tooltipFields:m,shapeField:l||"",label:void 0,mapping:{tooltip:w,shape:c&&(l?function(S){var A=n.map(function(Mt){return Mt[l]}),D=(g==null?void 0:g[l])||{},V=D.min,K=D.max;return V=(0,f.hj)(V)?V:Math.min.apply(Math,A),K=(0,f.hj)(K)?K:Math.max.apply(Math,A),[c,((0,f.U2)(S,l)-V)/(K-V),M]}:function(){return[c,1,M]}),color:h||s&&r.getTheme().sequenceColors.join("-"),style:p}}})),e}function vk(e){var r,t=e.options,n=t.xAxis,i=t.yAxis,a=t.xField,o=t.yField;return Fe(ur((r={},r[a]=n,r[o]=i,r)))(e)}function pk(e){var r=e.chart,t=e.options,n=t.xAxis,i=t.yAxis,a=t.xField,o=t.yField;return n===!1?r.axis(a,!1):r.axis(a,n),i===!1?r.axis(o,!1):r.axis(o,i),e}function dk(e){var r=e.chart,t=e.options,n=t.legend,i=t.colorField,a=t.sizeField,o=t.sizeLegend,s=n!==!1;return i&&r.legend(i,s?n:!1),a&&r.legend(a,o===void 0?n:o),!s&&!o&&r.legend(!1),e}function gk(e){var r=e.chart,t=e.options,n=t.label,i=t.colorField,a=t.type,o=Tr(r,a==="density"?"heatmap":"polygon");if(!n)o.label(!1);else if(i){var s=n.callback,l=(0,d._T)(n,["callback"]);o.label({fields:[i],callback:s,cfg:Sr(l)})}return e}function yk(e){var r,t,n=e.chart,i=e.options,a=i.coordinate,o=i.reflect,s=It({actions:[]},a!=null?a:{type:"rect"});return o&&((t=(r=s.actions)===null||r===void 0?void 0:r.push)===null||t===void 0||t.call(r,["reflect",o])),n.coordinate(s),e}function mk(e){return Fe(We,Zr("heatmapStyle"),vk,yk,hk,pk,dk,yr,gk,sr(),or,tr,vi)(e)}var xk=It({},Oe.getDefaultOptions(),{type:"polygon",legend:!1,coordinate:{type:"rect"},xAxis:{tickLine:null,line:null,grid:{alignTick:!1,line:{style:{lineWidth:1,lineDash:null,stroke:"#f0f0f0"}}}},yAxis:{grid:{alignTick:!1,line:{style:{lineWidth:1,lineDash:null,stroke:"#f0f0f0"}}}}});$e("polygon","circle",{draw:function(e,r){var t,n,i=e.x,a=e.y,o=this.parsePoints(e.points),s=Math.abs(o[2].x-o[1].x),l=Math.abs(o[1].y-o[0].y),u=Math.min(s,l)/2,c=Number(e.shape[1]),h=Number(e.shape[2]),v=Math.sqrt(h),p=u*v*Math.sqrt(c),g=((t=e.style)===null||t===void 0?void 0:t.fill)||e.color||((n=e.defaultStyle)===null||n===void 0?void 0:n.fill),y=r.addShape("circle",{attrs:(0,d.pi)((0,d.pi)((0,d.pi)({x:i,y:a,r:p},e.defaultStyle),e.style),{fill:g})});return y}}),$e("polygon","square",{draw:function(e,r){var t,n,i=e.x,a=e.y,o=this.parsePoints(e.points),s=Math.abs(o[2].x-o[1].x),l=Math.abs(o[1].y-o[0].y),u=Math.min(s,l),c=Number(e.shape[1]),h=Number(e.shape[2]),v=Math.sqrt(h),p=u*v*Math.sqrt(c),g=((t=e.style)===null||t===void 0?void 0:t.fill)||e.color||((n=e.defaultStyle)===null||n===void 0?void 0:n.fill),y=r.addShape("rect",{attrs:(0,d.pi)((0,d.pi)((0,d.pi)({x:i-p/2,y:a-p/2,width:p,height:p},e.defaultStyle),e.style),{fill:g})});return y}});var Z5=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="heatmap",t}return r.getDefaultOptions=function(){return xk},r.prototype.getSchemaAdaptor=function(){return mk},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r}(Oe),wk="liquid";function W0(e){return[{percent:e,type:wk}]}function Mk(e){var r=e.chart,t=e.options,n=t.percent,i=t.liquidStyle,a=t.radius,o=t.outline,s=t.wave,l=t.shape,u=t.shapeStyle,c=t.animation;r.scale({percent:{min:0,max:1}}),r.data(W0(n));var h=t.color||r.getTheme().defaultColor,v=It({},e,{options:{xField:"type",yField:"percent",widthRatio:a,interval:{color:h,style:i,shape:"liquid-fill-gauge"}}}),p=Er(v).ext,g=p.geometry,y=r.getTheme().background,x={percent:n,radius:a,outline:o,wave:s,shape:l,shapeStyle:u,background:y,animation:c};return g.customInfo(x),r.legend(!1),r.axis(!1),r.tooltip(!1),e}function Z0(e,r){var t=e.chart,n=e.options,i=n.statistic,a=n.percent,o=n.meta;t.getController("annotation").clear(!0);var s=(0,f.U2)(o,["percent","formatter"])||function(u){return(u*100).toFixed(2)+"%"},l=i.content;return l&&(l=It({},l,{content:(0,f.UM)(l.content)?s(a):l.content})),Js(t,{statistic:(0,d.pi)((0,d.pi)({},i),{content:l}),plotType:"liquid"},{percent:a}),r&&t.render(!0),e}function Sk(e){return Fe(We,Zr("liquidStyle"),Mk,Z0,ur({}),tr,or)(e)}var Ck={radius:.9,statistic:{title:!1,content:{style:{opacity:.75,fontSize:"30px",lineHeight:"30px",textAlign:"center"}}},outline:{border:2,distance:0},wave:{count:3,length:192},shape:"circle"},q0=5e3;function $0(e,r,t){return e+(r-e)*t}function bk(e){var r=(0,d.pi)({opacity:1},e.style);return e.color&&!r.fill&&(r.fill=e.color),r}function Ak(e){var r={fill:"#fff",fillOpacity:0,lineWidth:4},t=(0,f.CD)({},r,e.style);return e.color&&!t.stroke&&(t.stroke=e.color),(0,f.hj)(e.opacity)&&(t.opacity=t.strokeOpacity=e.opacity),t}function Tk(e,r,t,n){return r===0?[[e+1/2*t/Math.PI/2,n/2],[e+1/2*t/Math.PI,n],[e+t/4,n]]:r===1?[[e+1/2*t/Math.PI/2*(Math.PI-2),n],[e+1/2*t/Math.PI/2*(Math.PI-1),n/2],[e+t/4,0]]:r===2?[[e+1/2*t/Math.PI/2,-n/2],[e+1/2*t/Math.PI,-n],[e+t/4,-n]]:[[e+1/2*t/Math.PI/2*(Math.PI-2),-n],[e+1/2*t/Math.PI/2*(Math.PI-1),-n/2],[e+t/4,0]]}function Ek(e,r,t,n,i,a,o){for(var s=Math.ceil(2*e/t*4)*4,l=[],u=n;u<-Math.PI*2;)u+=Math.PI*2;for(;u>0;)u-=Math.PI*2;u=u/Math.PI/2*t;var c=a-e+u-e*2;l.push(["M",c,r]);for(var h=0,v=0;v<s;++v){var p=v%4,g=Tk(v*t/4,p,t,i);l.push(["C",g[0][0]+c,-g[0][1]+r,g[1][0]+c,-g[1][1]+r,g[2][0]+c,-g[2][1]+r]),v===s-1&&(h=g[2][0])}return l.push(["L",h+c,o+e]),l.push(["L",c,o+e]),l.push(["Z"]),l}function _k(e,r,t,n,i,a,o,s,l,u){for(var c=i.fill,h=i.opacity,v=o.getBBox(),p=v.maxX-v.minX,g=v.maxY-v.minY,y=0;y<n;y++){var x=n<=1?1:y/(n-1),m=a.addShape("path",{name:"waterwave-path",attrs:{path:Ek(s,v.minY+g*t,l,0,p/32,e,r),fill:c,opacity:$0(.2,.9,x)*h}});try{if(u===!1)return;var w=$c([["t",l,0]]);m.stopAnimate(),m.animate({matrix:w},{duration:$0(.5*q0,q0,x),repeat:!0})}catch(M){console.warn("off-screen group animate error!")}}}function Fk(e,r,t,n){var i=t*2/3,a=Math.max(i,n),o=i/2,s=e,l=o+r-a/2,u=Math.asin(o/((a-o)*.85)),c=Math.sin(u)*o,h=Math.cos(u)*o,v=s-h,p=l+c,g=e,y=l+o/Math.sin(u);return`
  76. M `+v+" "+p+`
  77. A `+o+" "+o+" 0 1 1 "+(v+h*2)+" "+p+`
  78. Q `+g+" "+y+" "+e+" "+(r+a/2)+`
  79. Q `+g+" "+y+" "+v+" "+p+`
  80. Z
  81. `}function Ik(e,r,t,n){var i=t/2,a=n/2;return`
  82. M `+e+" "+(r-a)+`
  83. a `+i+" "+a+" 0 1 0 0 "+a*2+`
  84. a `+i+" "+a+" 0 1 0 0 "+-a*2+`
  85. Z
  86. `}function Lk(e,r,t,n){var i=n/2,a=t/2;return`
  87. M `+e+" "+(r-i)+`
  88. L `+(e+a)+" "+r+`
  89. L `+e+" "+(r+i)+`
  90. L `+(e-a)+" "+r+`
  91. Z
  92. `}function Pk(e,r,t,n){var i=n/2,a=t/2;return`
  93. M `+e+" "+(r-i)+`
  94. L `+(e+a)+" "+(r+i)+`
  95. L `+(e-a)+" "+(r+i)+`
  96. Z
  97. `}function kk(e,r,t,n){var i=.618,a=n/2,o=t/2*i;return`
  98. M `+(e-o)+" "+(r-a)+`
  99. L `+(e+o)+" "+(r-a)+`
  100. L `+(e+o)+" "+(r+a)+`
  101. L `+(e-o)+" "+(r+a)+`
  102. Z
  103. `}var j0={pin:Fk,circle:Ik,diamond:Lk,triangle:Pk,rect:kk};$e("interval","liquid-fill-gauge",{draw:function(e,r){var t=.5,n=.5,i=e.customInfo,a=i,o=a.percent,s=a.radius,l=a.shape,u=a.shapeStyle,c=a.background,h=a.animation,v=i.outline,p=i.wave,g=v.border,y=v.distance,x=p.count,m=p.length,w=(0,f.u4)(e.points,function(we,Ae){return Math.min(we,Ae.x)},Infinity),M=this.parsePoint({x:t,y:n}),S=this.parsePoint({x:w,y:n}),A=M.x-S.x,D=Math.min(A,S.y*s),V=bk(e),K=Ak((0,f.CD)({},e,v)),Mt=D-g/2,ot=typeof l=="function"?l:j0[l]||j0.circle,Lt=ot(M.x,M.y,Mt*2,Mt*2);if(u&&r.addShape("path",{name:"shape",attrs:(0,d.pi)({path:Lt},u)}),o>0){var Qt=r.addGroup({name:"waves"}),ge=Qt.setClip({type:"path",attrs:{path:Lt}});_k(M.x,M.y,1-e.points[1].y,x,V,Qt,ge,D*2,m,h)}return r.addShape("path",{name:"distance",attrs:{path:Lt,fill:"transparent",lineWidth:g+y*2,stroke:c==="transparent"?"#fff":c}}),r.addShape("path",{name:"wrap",attrs:(0,f.CD)(K,{path:Lt,fill:"transparent",lineWidth:g})}),r}});var q5=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="liquid",t}return r.getDefaultOptions=function(){return Ck},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.changeData=function(t){this.chart.emit(X.BEFORE_CHANGE_DATA,lr.fromData(this.chart,X.BEFORE_CHANGE_DATA,null)),this.updateOption({percent:t}),this.chart.data(W0(t)),Z0({chart:this.chart,options:this.options},!0),this.chart.emit(X.AFTER_CHANGE_DATA,lr.fromData(this.chart,X.AFTER_CHANGE_DATA,null))},r.prototype.getSchemaAdaptor=function(){return Sk},r}(Oe);function Dk(e){var r=e.chart,t=e.options,n=t.data,i=t.lineStyle,a=t.color,o=t.point,s=t.area;r.data(n);var l=It({},e,{options:{line:{style:i,color:a},point:o&&(0,d.pi)({color:a},o),area:s&&(0,d.pi)({color:a},s),label:void 0}}),u=It({},l,{options:{tooltip:!1}}),c=(o==null?void 0:o.state)||t.state,h=It({},l,{options:{tooltip:!1,state:c}});return ga(l),qr(h),nl(u),e}function Ok(e){var r,t=e.options,n=t.xAxis,i=t.yAxis,a=t.xField,o=t.yField;return Fe(ur((r={},r[a]=n,r[o]=i,r)))(e)}function Bk(e){var r=e.chart,t=e.options,n=t.radius,i=t.startAngle,a=t.endAngle;return r.coordinate("polar",{radius:n,startAngle:i,endAngle:a}),e}function Rk(e){var r=e.chart,t=e.options,n=t.xField,i=t.xAxis,a=t.yField,o=t.yAxis;return r.axis(n,i),r.axis(a,o),e}function Nk(e){var r=e.chart,t=e.options,n=t.label,i=t.yField,a=Tr(r,"line");if(!n)a.label(!1);else{var o=n.callback,s=(0,d._T)(n,["callback"]);a.label({fields:[i],callback:o,cfg:Sr(s)})}return e}function zk(e){return Fe(Dk,Ok,We,Bk,Rk,Ri,yr,Nk,or,tr,sr())(e)}var Vk=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(r.prototype,"name",{get:function(){return"radar-tooltip"},enumerable:!1,configurable:!0}),r.prototype.getTooltipItems=function(t){var n=this.getTooltipCfg(),i=n.shared,a=n.title,o=e.prototype.getTooltipItems.call(this,t);if(o.length>0){var s=this.view.geometries[0],l=s.dataArray,u=o[0].name,c=[];return l.forEach(function(h){h.forEach(function(v){var p=Vr.getTooltipItems(v,s),g=p[0];if(!i&&g&&g.name===u){var y=(0,f.UM)(a)?u:a;c.push((0,d.pi)((0,d.pi)({},g),{name:g.title,title:y}))}else if(i&&g){var y=(0,f.UM)(a)?g.name||u:a;c.push((0,d.pi)((0,d.pi)({},g),{name:g.title,title:y}))}})}),c}return[]},r}(Ov);Fi("radar-tooltip",Vk);var Uk=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.init=function(){var t=this.context.view;t.removeInteraction("tooltip")},r.prototype.show=function(){var t=this.context.event,n=this.getTooltipController();n.showTooltip({x:t.x,y:t.y})},r.prototype.hide=function(){var t=this.getTooltipController();t.hideTooltip()},r.prototype.getTooltipController=function(){var t=this.context.view;return t.getController("radar-tooltip")},r}(ar);be("radar-tooltip",Uk),Pe("radar-tooltip",{start:[{trigger:"plot:mousemove",action:"radar-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"radar-tooltip:hide"}]});var $5=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="radar",t}return r.prototype.changeData=function(t){this.updateOption({data:t}),this.chart.changeData(t)},r.prototype.getDefaultOptions=function(){return It({},e.prototype.getDefaultOptions.call(this),{xAxis:{label:{offset:15},grid:{line:{type:"line"}}},yAxis:{grid:{line:{type:"circle"}}},legend:{position:"top"},tooltip:{shared:!0,showCrosshairs:!0,showMarkers:!0,crosshairs:{type:"xy",line:{style:{stroke:"#565656",lineDash:[4]}},follow:!0}}})},r.prototype.getSchemaAdaptor=function(){return zk},r}(Oe);function Hk(e,r,t){var n=t.map(function(o){return o[r]}).filter(function(o){return o!==void 0}),i=n.length>0?Math.max.apply(Math,n):0,a=Math.abs(e)%360;return a?i*360/a:i}function Gk(e,r,t){var n=[];return e.forEach(function(i){var a=n.find(function(o){return o[r]===i[r]});a?a[t]+=i[t]||null:n.push((0,d.pi)({},i))}),n}function Yk(e){var r=e.chart,t=e.options,n=t.barStyle,i=t.color,a=t.tooltip,o=t.colorField,s=t.type,l=t.xField,u=t.yField,c=t.data,h=pa(c,u);r.data(h);var v=It({},e,{options:{tooltip:a,seriesField:o,interval:{style:n,color:i,shape:s==="line"?"line":"intervel"},minColumnWidth:t.minBarWidth,maxColumnWidth:t.maxBarWidth,columnBackground:t.barBackground}});return Er(v),s==="line"&&qr({chart:r,options:{xField:l,yField:u,seriesField:o,point:{shape:"circle",color:i}}}),e}function K0(e){var r,t=e.options,n=t.yField,i=t.xField,a=t.data,o=t.isStack,s=t.isGroup,l=t.colorField,u=t.maxAngle,c=o&&!s&&l?Gk(a,i,n):a,h=pa(c,n);return Fe(ur((r={},r[n]={min:0,max:Hk(u,n,h)},r)))(e)}function Xk(e){var r=e.chart,t=e.options,n=t.radius,i=t.innerRadius,a=t.startAngle,o=t.endAngle;return r.coordinate({type:"polar",cfg:{radius:n,innerRadius:i,startAngle:a,endAngle:o}}).transpose(),e}function Wk(e){var r=e.chart,t=e.options,n=t.xField,i=t.xAxis;return r.axis(n,i),e}function Zk(e){var r=e.chart,t=e.options,n=t.label,i=t.yField,a=Tr(r,"interval");if(!n)a.label(!1);else{var o=n.callback,s=(0,d._T)(n,["callback"]);a.label({fields:[i],callback:o,cfg:(0,d.pi)((0,d.pi)({},Sr(s)),{type:"polar"})})}return e}function qk(e){return Fe(Zr("barStyle"),Yk,K0,Wk,Xk,or,tr,We,yr,Ri,sr(),Zk)(e)}var $k=It({},Oe.getDefaultOptions(),{interactions:[{type:"element-active"}],legend:!1,tooltip:{showMarkers:!1},xAxis:{grid:null,tickLine:null,line:null},maxAngle:240}),j5=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="radial-bar",t}return r.getDefaultOptions=function(){return $k},r.prototype.changeData=function(t){this.updateOption({data:t}),K0({chart:this.chart,options:this.options}),this.chart.changeData(t)},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return qk},r}(Oe);function jk(e){var r=e.chart,t=e.options,n=t.data,i=t.sectorStyle,a=t.color;return r.data(n),Fe(Er)(It({},e,{options:{marginRatio:1,interval:{style:i,color:a}}})),e}function Kk(e){var r=e.chart,t=e.options,n=t.label,i=t.xField,a=Tr(r,"interval");if(n===!1)a.label(!1);else if((0,f.Kn)(n)){var o=n.callback,s=n.fields,l=(0,d._T)(n,["callback","fields"]),u=l.offset,c=l.layout;(u===void 0||u>=0)&&(c=c?(0,f.kJ)(c)?c:[c]:[],l.layout=(0,f.hX)(c,function(h){return h.type!=="limit-in-shape"}),l.layout.length||delete l.layout),a.label({fields:s||[i],callback:o,cfg:Sr(l)})}else Vn(fn.WARN,n===null,"the label option must be an Object."),a.label({fields:[i]});return e}function Jk(e){var r=e.chart,t=e.options,n=t.legend,i=t.seriesField;return n===!1?r.legend(!1):i&&r.legend(i,n),e}function Qk(e){var r=e.chart,t=e.options,n=t.radius,i=t.innerRadius,a=t.startAngle,o=t.endAngle;return r.coordinate({type:"polar",cfg:{radius:n,innerRadius:i,startAngle:a,endAngle:o}}),e}function tD(e){var r,t=e.options,n=t.xAxis,i=t.yAxis,a=t.xField,o=t.yField;return Fe(ur((r={},r[a]=n,r[o]=i,r)))(e)}function eD(e){var r=e.chart,t=e.options,n=t.xAxis,i=t.yAxis,a=t.xField,o=t.yField;return n?r.axis(a,n):r.axis(a,!1),i?r.axis(o,i):r.axis(o,!1),e}function rD(e){Fe(Zr("sectorStyle"),jk,tD,Kk,Qk,eD,Jk,yr,or,tr,We,sr(),vi)(e)}var nD=It({},Oe.getDefaultOptions(),{xAxis:!1,yAxis:!1,legend:{position:"right",radio:{}},sectorStyle:{stroke:"#fff",lineWidth:1},label:{layout:{type:"limit-in-shape"}},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]}),K5=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="rose",t}return r.getDefaultOptions=function(){return nD},r.prototype.changeData=function(t){this.updateOption({data:t}),this.chart.changeData(t)},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return rD},r}(Oe),J0="x",Q0="y",ty="name",gl="nodes",yl="edges";function iD(e,r,t){var n=[];return e.forEach(function(i){var a=i[r],o=i[t];n.includes(a)||n.push(a),n.includes(o)||n.push(o)}),n}function aD(e,r,t,n){var i={};return r.forEach(function(a){i[a]={},r.forEach(function(o){i[a][o]=0})}),e.forEach(function(a){i[a[t]][a[n]]=1}),i}function oD(e,r,t){if(!(0,f.kJ)(e))return[];var n=[],i=iD(e,r,t),a=aD(e,i,r,t),o={};i.forEach(function(l){o[l]=0});function s(l){o[l]=1,i.forEach(function(u){if(a[l][u]!=0)if(o[u]==1)n.push(l+"_"+u);else{if(o[u]==-1)return;s(u)}}),o[l]=-1}return i.forEach(function(l){o[l]!=-1&&s(l)}),n.length!==0&&console.warn("sankey data contains circle, "+n.length+" records removed.",n),e.filter(function(l){return n.findIndex(function(u){return u===l[r]+"_"+l[t]})<0})}function sD(e){return e.target.depth}function lD(e){return e.depth}function uD(e,r){return r-1-e.height}function lf(e,r){return e.sourceLinks.length?e.depth:r-1}function cD(e){return e.targetLinks.length?e.depth:e.sourceLinks.length?(0,f.F)(e.sourceLinks,sD)-1:0}function ml(e){return function(){return e}}function uf(e,r){for(var t=0,n=0;n<e.length;n++)t+=r(e[n]);return t}function cf(e,r){for(var t=-Infinity,n=0;n<e.length;n++)t=Math.max(r(e[n]),t);return t}function fD(e,r){for(var t=Infinity,n=0;n<e.length;n++)t=Math.min(r(e[n]),t);return t}function ey(e,r){return xl(e.source,r.source)||e.index-r.index}function ry(e,r){return xl(e.target,r.target)||e.index-r.index}function xl(e,r){return e.y0-r.y0}function ff(e){return e.value}function hD(e){return e.index}function vD(e){return e.nodes}function pD(e){return e.links}function ny(e,r){var t=e.get(r);if(!t)throw new Error("missing: "+r);return t}function iy(e){for(var r=e.nodes,t=0,n=r;t<n.length;t++){for(var i=n[t],a=i.y0,o=a,s=0,l=i.sourceLinks;s<l.length;s++){var u=l[s];u.y0=a+u.width/2,a+=u.width}for(var c=0,h=i.targetLinks;c<h.length;c++){var u=h[c];u.y1=o+u.width/2,o+=u.width}}}function dD(){var e=0,r=0,t=1,n=1,i=24,a=8,o,s=hD,l=lf,u,c,h,v=vD,p=pD,g=6;function y(zt){var ie={nodes:v(zt),links:p(zt)};return x(ie),m(ie),w(ie),M(ie),D(ie),iy(ie),ie}y.update=function(zt){return iy(zt),zt},y.nodeId=function(zt){return arguments.length?(s=typeof zt=="function"?zt:ml(zt),y):s},y.nodeAlign=function(zt){return arguments.length?(l=typeof zt=="function"?zt:ml(zt),y):l},y.nodeDepth=function(zt){return arguments.length?(u=(typeof zt=="function",zt),y):u},y.nodeSort=function(zt){return arguments.length?(c=zt,y):c},y.nodeWidth=function(zt){return arguments.length?(i=+zt,y):i},y.nodePadding=function(zt){return arguments.length?(a=o=+zt,y):a},y.nodes=function(zt){return arguments.length?(v=typeof zt=="function"?zt:ml(zt),y):v},y.links=function(zt){return arguments.length?(p=typeof zt=="function"?zt:ml(zt),y):p},y.linkSort=function(zt){return arguments.length?(h=zt,y):h},y.size=function(zt){return arguments.length?(e=r=0,t=+zt[0],n=+zt[1],y):[t-e,n-r]},y.extent=function(zt){return arguments.length?(e=+zt[0][0],t=+zt[1][0],r=+zt[0][1],n=+zt[1][1],y):[[e,r],[t,n]]},y.iterations=function(zt){return arguments.length?(g=+zt,y):g};function x(zt){var ie=zt.nodes,fe=zt.links;ie.forEach(function(Xe,er){Xe.index=er,Xe.sourceLinks=[],Xe.targetLinks=[]});var ue=new Map(ie.map(function(Xe){return[s(Xe),Xe]}));if(fe.forEach(function(Xe,er){Xe.index=er;var pr=Xe.source,dr=Xe.target;typeof pr!="object"&&(pr=Xe.source=ny(ue,pr)),typeof dr!="object"&&(dr=Xe.target=ny(ue,dr)),pr.sourceLinks.push(Xe),dr.targetLinks.push(Xe)}),h!=null)for(var he=0,Te=ie;he<Te.length;he++){var Be=Te[he],Ye=Be.sourceLinks,Re=Be.targetLinks;Ye.sort(h),Re.sort(h)}}function m(zt){for(var ie=zt.nodes,fe=0,ue=ie;fe<ue.length;fe++){var he=ue[fe];he.value=he.fixedValue===void 0?Math.max(uf(he.sourceLinks,ff),uf(he.targetLinks,ff)):he.fixedValue}}function w(zt){for(var ie=zt.nodes,fe=ie.length,ue=new Set(ie),he=new Set,Te=0;ue.size;){if(ue.forEach(function(Xe){Xe.depth=Te;for(var er=0,pr=Xe.sourceLinks;er<pr.length;er++){var dr=pr[er].target;he.add(dr)}}),++Te>fe)throw new Error("circular link");ue=he,he=new Set}if(u)for(var Be=Math.max(cf(ie,function(Xe){return Xe.depth})+1,0),Ye=void 0,Re=0;Re<ie.length;Re++)Ye=ie[Re],Ye.depth=u.call(null,Ye,Be)}function M(zt){for(var ie=zt.nodes,fe=ie.length,ue=new Set(ie),he=new Set,Te=0;ue.size;){if(ue.forEach(function(Be){Be.height=Te;for(var Ye=0,Re=Be.targetLinks;Ye<Re.length;Ye++){var Xe=Re[Ye].source;he.add(Xe)}}),++Te>fe)throw new Error("circular link");ue=he,he=new Set}}function S(zt){for(var ie=zt.nodes,fe=Math.max(cf(ie,function(dr){return dr.depth})+1,0),ue=(t-e-i)/(fe-1),he=new Array(fe).fill(0).map(function(){return[]}),Te=0,Be=ie;Te<Be.length;Te++){var Ye=Be[Te],Re=Math.max(0,Math.min(fe-1,Math.floor(l.call(null,Ye,fe))));Ye.layer=Re,Ye.x0=e+Re*ue,Ye.x1=Ye.x0+i,he[Re]?he[Re].push(Ye):he[Re]=[Ye]}if(c)for(var Xe=0,er=he;Xe<er.length;Xe++){var pr=er[Xe];pr.sort(c)}return he}function A(zt){for(var ie=fD(zt,function(_n){return(n-r-(_n.length-1)*o)/uf(_n,ff)}),fe=0,ue=zt;fe<ue.length;fe++){for(var he=ue[fe],Te=r,Be=0,Ye=he;Be<Ye.length;Be++){var Re=Ye[Be];Re.y0=Te,Re.y1=Te+Re.value*ie,Te=Re.y1+o;for(var Xe=0,er=Re.sourceLinks;Xe<er.length;Xe++){var pr=er[Xe];pr.width=pr.value*ie}}Te=(n-Te+o)/(he.length+1);for(var dr=0;dr<he.length;++dr){var Re=he[dr];Re.y0+=Te*(dr+1),Re.y1+=Te*(dr+1)}ge(he)}}function D(zt){var ie=S(zt);o=Math.min(a,(n-r)/(cf(ie,function(Te){return Te.length})-1)),A(ie);for(var fe=0;fe<g;++fe){var ue=Math.pow(.99,fe),he=Math.max(1-ue,(fe+1)/g);K(ie,ue,he),V(ie,ue,he)}}function V(zt,ie,fe){for(var ue=1,he=zt.length;ue<he;++ue){for(var Te=zt[ue],Be=0,Ye=Te;Be<Ye.length;Be++){for(var Re=Ye[Be],Xe=0,er=0,pr=0,dr=Re.targetLinks;pr<dr.length;pr++){var _n=dr[pr],Zi=_n.source,Wn=_n.value,Aa=Wn*(Re.layer-Zi.layer);Xe+=we(Zi,Re)*Aa,er+=Aa}if(er>0){var Ta=(Xe/er-Re.y0)*ie;Re.y0+=Ta,Re.y1+=Ta,Qt(Re)}}c===void 0&&Te.sort(xl),Te.length&&Mt(Te,fe)}}function K(zt,ie,fe){for(var ue=zt.length,he=ue-2;he>=0;--he){for(var Te=zt[he],Be=0,Ye=Te;Be<Ye.length;Be++){for(var Re=Ye[Be],Xe=0,er=0,pr=0,dr=Re.sourceLinks;pr<dr.length;pr++){var _n=dr[pr],Zi=_n.target,Wn=_n.value,Aa=Wn*(Zi.layer-Re.layer);Xe+=Ae(Re,Zi)*Aa,er+=Aa}if(er>0){var Ta=(Xe/er-Re.y0)*ie;Re.y0+=Ta,Re.y1+=Ta,Qt(Re)}}c===void 0&&Te.sort(xl),Te.length&&Mt(Te,fe)}}function Mt(zt,ie){var fe=zt.length>>1,ue=zt[fe];Lt(zt,ue.y0-o,fe-1,ie),ot(zt,ue.y1+o,fe+1,ie),Lt(zt,n,zt.length-1,ie),ot(zt,r,0,ie)}function ot(zt,ie,fe,ue){for(;fe<zt.length;++fe){var he=zt[fe],Te=(ie-he.y0)*ue;Te>1e-6&&(he.y0+=Te,he.y1+=Te),ie=he.y1+o}}function Lt(zt,ie,fe,ue){for(;fe>=0;--fe){var he=zt[fe],Te=(he.y1-ie)*ue;Te>1e-6&&(he.y0-=Te,he.y1-=Te),ie=he.y0-o}}function Qt(zt){var ie=zt.sourceLinks,fe=zt.targetLinks;if(h===void 0){for(var ue=0,he=fe;ue<he.length;ue++){var Te=he[ue].source.sourceLinks;Te.sort(ry)}for(var Be=0,Ye=ie;Be<Ye.length;Be++){var Re=Ye[Be].target.targetLinks;Re.sort(ey)}}}function ge(zt){if(h===void 0)for(var ie=0,fe=zt;ie<fe.length;ie++){var ue=fe[ie],he=ue.sourceLinks,Te=ue.targetLinks;he.sort(ry),Te.sort(ey)}}function we(zt,ie){for(var fe=zt.y0-(zt.sourceLinks.length-1)*o/2,ue=0,he=zt.sourceLinks;ue<he.length;ue++){var Te=he[ue],Be=Te.target,Ye=Te.width;if(Be===ie)break;fe+=Ye+o}for(var Re=0,Xe=ie.targetLinks;Re<Xe.length;Re++){var er=Xe[Re],Be=er.source,Ye=er.width;if(Be===zt)break;fe-=Ye}return fe}function Ae(zt,ie){for(var fe=ie.y0-(ie.targetLinks.length-1)*o/2,ue=0,he=ie.targetLinks;ue<he.length;ue++){var Te=he[ue],Be=Te.source,Ye=Te.width;if(Be===zt)break;fe+=Ye+o}for(var Re=0,Xe=zt.sourceLinks;Re<Xe.length;Re++){var er=Xe[Re],Be=er.target,Ye=er.width;if(Be===ie)break;fe-=Ye}return fe}return y}var gD={left:lD,right:uD,center:cD,justify:lf},yD={nodeId:function(e){return e.index},nodeAlign:"justify",nodeWidth:.008,nodePadding:.03,nodeSort:void 0};function mD(e){var r=(0,f.HD)(e)?gD[e]:(0,f.mf)(e)?e:null;return r||lf}function xD(e){return(0,f.f0)({},yD,e)}function wD(e,r){var t=xD(e),n=t.nodeId,i=t.nodeSort,a=t.nodeAlign,o=t.nodeWidth,s=t.nodePadding,l=t.nodeDepth,u=dD().nodeSort(i).nodeWidth(o).nodePadding(s).nodeDepth(l).nodeAlign(mD(a)).extent([[0,0],[1,1]]).nodeId(n),c=u(r),h=c.nodes.map(function(p){var g=p.x0,y=p.x1,x=p.y0,m=p.y1;return p.x=[g,y,y,g],p.y=[x,x,m,m],p}).filter(function(p){return p.name!==null}),v=c.links.map(function(p){var g=p.source,y=p.target,x=g.x1,m=y.x0;p.x=[x,x,m,m];var w=p.width/2;return p.y=[p.y0+w,p.y0-w,p.y1+w,p.y1-w],p}).filter(function(p){var g=p.source,y=p.target;return g.name!==null&&y.name!==null});return{nodes:h,links:v}}function MD(e){return e==="node-link"}function SD(e,r,t){return Bi(e)?e/t:r}function CD(e,r,t){return Bi(e)?e/t:r}function ay(e,r,t){var n=e.dataType,i=e.data,a=e.sourceField,o=e.targetField,s=e.weightField,l=e.nodeAlign,u=e.nodeSort,c=e.nodePadding,h=e.nodePaddingRatio,v=e.nodeWidth,p=e.nodeWidthRatio,g=e.nodeDepth,y=e.rawFields,x=y===void 0?[]:y,m;MD(n)?m=i:m=Kd(oD(i,a,o),a,o,s,x);var w=wD({nodeAlign:l,nodePadding:CD(c,h,t),nodeWidth:SD(v,p,r),nodeSort:u,nodeDepth:g},m),M=w.nodes,S=w.links;return{nodes:M.map(function(A){return(0,d.pi)((0,d.pi)({},Qe(A,(0,d.pr)(["x","y","name"],x))),{isNode:!0})}),edges:S.map(function(A){return(0,d.pi)((0,d.pi)({source:A.source.name,target:A.target.name,name:A.source.name||A.target.name},Qe(A,(0,d.pr)(["x","y","value"],x))),{isNode:!1})})}}function bD(e){var r=e.options,t=r.rawFields,n=t===void 0?[]:t;return It({},{options:{tooltip:{fields:(0,f.jj)((0,d.pr)(["name","source","target","value","isNode"],n))},label:{fields:(0,f.jj)((0,d.pr)(["x","name"],n))}}},e)}function AD(e){var r=e.chart,t=e.options,n=t.color,i=t.nodeStyle,a=t.edgeStyle,o=t.label,s=t.tooltip,l=t.nodeState,u=t.edgeState;r.legend(!1),r.tooltip(s),r.axis(!1),r.coordinate().reflect("y");var c=ay(t,r.width,r.height),h=c.nodes,v=c.edges,p=r.createView({id:yl});p.data(v),fg({chart:p,options:{xField:J0,yField:Q0,seriesField:ty,edge:{color:n,style:a,shape:"arc"},tooltip:s,state:u}});var g=r.createView({id:gl});return g.data(h),il({chart:g,options:{xField:J0,yField:Q0,seriesField:ty,polygon:{color:n,style:i},label:o,tooltip:s,state:l}}),r.interaction("element-active"),r.scale({x:{sync:!0,nice:!0,min:0,max:1,minLimit:0,maxLimit:1},y:{sync:!0,nice:!0,min:0,max:1,minLimit:0,maxLimit:1},name:{sync:"color",type:"cat"}}),e}function TD(e){var r=e.chart,t=e.options,n=t.animation,i=(0,d.pr)(r.views[0].geometries,r.views[1].geometries);return vo(r,n,i),e}function ED(e){var r=e.chart,t=e.options,n=t.nodeDraggable,i="sankey-node-draggable";return n?r.interaction(i):r.removeInteraction(i),e}function _D(e){var r=e.chart,t=e.options,n=t.interactions,i=n===void 0?[]:n,a=[].concat(i,t.nodeInteractions||[]),o=[].concat(i,t.edgeInteractions||[]),s=Ue(r,gl),l=Ue(r,yl);return a.forEach(function(u){(u==null?void 0:u.enable)===!1?s.removeInteraction(u.type):s.interaction(u.type,u.cfg||{})}),o.forEach(function(u){(u==null?void 0:u.enable)===!1?l.removeInteraction(u.type):l.interaction(u.type,u.cfg||{})}),e}function FD(e){return Fe(bD,AD,_D,ED,TD,We)(e)}var ID=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.isDragging=!1,t}return r.prototype.isNodeElement=function(){var t=(0,f.U2)(this.context,"event.target");if(t){var n=t.get("element");return n&&n.getModel().data.isNode}return!1},r.prototype.getNodeView=function(){return Ue(this.context.view,gl)},r.prototype.getEdgeView=function(){return Ue(this.context.view,yl)},r.prototype.getCurrentDatumIdx=function(t){return this.getNodeView().geometries[0].elements.indexOf(t)},r.prototype.start=function(){if(this.isNodeElement()){this.prevPoint={x:(0,f.U2)(this.context,"event.x"),y:(0,f.U2)(this.context,"event.y")};var t=this.context.event.target.get("element"),n=this.getCurrentDatumIdx(t);if(n===-1)return;this.currentElementIdx=n,this.context.isDragging=!0,this.isDragging=!0,this.prevNodeAnimateCfg=this.getNodeView().getOptions().animate,this.prevEdgeAnimateCfg=this.getEdgeView().getOptions().animate,this.getNodeView().animate(!1),this.getEdgeView().animate(!1)}},r.prototype.translate=function(){if(this.isDragging){var t=this.context.view,n={x:(0,f.U2)(this.context,"event.x"),y:(0,f.U2)(this.context,"event.y")},i=n.x-this.prevPoint.x,a=n.y-this.prevPoint.y,o=this.getNodeView(),s=o.geometries[0].elements[this.currentElementIdx];if(s&&s.getModel()){var l=s.getModel().data,u=o.getOptions().data,c=o.getCoordinate(),h={x:i/c.getWidth(),y:a/c.getHeight()},v=(0,d.pi)((0,d.pi)({},l),{x:l.x.map(function(m){return m+=h.x}),y:l.y.map(function(m){return m+=h.y})}),p=(0,d.pr)(u);p[this.currentElementIdx]=v,o.data(p);var g=l.name,y=this.getEdgeView(),x=y.getOptions().data;x.forEach(function(m){m.source===g&&(m.x[0]+=h.x,m.x[1]+=h.x,m.y[0]+=h.y,m.y[1]+=h.y),m.target===g&&(m.x[2]+=h.x,m.x[3]+=h.x,m.y[2]+=h.y,m.y[3]+=h.y)}),y.data(x),this.prevPoint=n,t.render(!0)}}},r.prototype.end=function(){this.isDragging=!1,this.context.isDragging=!1,this.prevPoint=null,this.currentElementIdx=null,this.getNodeView().animate(this.prevNodeAnimateCfg),this.getEdgeView().animate(this.prevEdgeAnimateCfg)},r}(ar);be("sankey-node-drag",ID),Pe("sankey-node-draggable",{showEnable:[{trigger:"polygon:mouseenter",action:"cursor:pointer"},{trigger:"polygon:mouseleave",action:"cursor:default"}],start:[{trigger:"polygon:mousedown",action:"sankey-node-drag:start"}],processing:[{trigger:"plot:mousemove",action:"sankey-node-drag:translate"},{isEnable:function(e){return e.isDragging},trigger:"plot:mousemove",action:"cursor:move"}],end:[{trigger:"plot:mouseup",action:"sankey-node-drag:end"}]});var J5=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="sankey",t}return r.getDefaultOptions=function(){return{appendPadding:8,syncViewPadding:!0,nodeStyle:{opacity:1,fillOpacity:1,lineWidth:1},edgeStyle:{opacity:.3,lineWidth:0},edgeState:{active:{style:{opacity:.8,lineWidth:0}}},label:{formatter:function(t){var n=t.name;return n},callback:function(t){var n=t[1]===1;return{style:{fill:"#545454",textAlign:n?"end":"start"},offsetX:n?-8:8}},layout:[{type:"hide-overlap"}]},tooltip:{showTitle:!1,showMarkers:!1,shared:!1,showContent:function(t){return!(0,f.U2)(t,[0,"data","isNode"])},formatter:function(t){var n=t.source,i=t.target,a=t.value;return{name:n+" -> "+i,value:a}}},nodeWidthRatio:.008,nodePaddingRatio:.01,animation:{appear:{animation:"wave-in"},enter:{animation:"wave-in"}}}},r.prototype.changeData=function(t){this.updateOption({data:t});var n=ay(this.options,this.chart.width,this.chart.height),i=n.nodes,a=n.edges,o=Ue(this.chart,gl),s=Ue(this.chart,yl);o.changeData(i),s.changeData(a)},r.prototype.getSchemaAdaptor=function(){return FD},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r}(Oe),hf="ancestor-node",oy="value",bo="path",LD=[bo,D0,ef,O0,"name","depth","height"],PD=It({},Oe.getDefaultOptions(),{innerRadius:0,radius:.85,hierarchyConfig:{field:"value"},tooltip:{shared:!0,showMarkers:!1,offset:20,showTitle:!1},legend:!1,sunburstStyle:{lineWidth:.5,stroke:"#FFF"},drilldown:{enabled:!0}});function sy(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function Ao(e,r,t,n,i){for(var a=e.children,o,s=-1,l=a.length,u=e.value&&(n-r)/e.value;++s<l;)o=a[s],o.y0=t,o.y1=i,o.x0=r,o.x1=r+=o.value*u}function ly(){var e=1,r=1,t=0,n=!1;function i(o){var s=o.height+1;return o.x0=o.y0=t,o.x1=e,o.y1=r/s,o.eachBefore(a(r,s)),n&&o.eachBefore(sy),o}function a(o,s){return function(l){l.children&&Ao(l,l.x0,o*(l.depth+1)/s,l.x1,o*(l.depth+2)/s);var u=l.x0,c=l.y0,h=l.x1-t,v=l.y1-t;h<u&&(u=h=(u+h)/2),v<c&&(c=v=(c+v)/2),l.x0=u,l.y0=c,l.x1=h,l.y1=v}}return i.round=function(o){return arguments.length?(n=!!o,i):n},i.size=function(o){return arguments.length?(e=+o[0],r=+o[1],i):[e,r]},i.padding=function(o){return arguments.length?(t=+o,i):t},i}var kD={field:"value",size:[1,1],round:!1,padding:0,sort:function(e,r){return r.value-e.value},as:["x","y"],ignoreParentValue:!0};function DD(e,r){r=(0,f.f0)({},kD,r);var t=r.as;if(!(0,f.kJ)(t)||t.length!==2)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');var n;try{n=nf(r)}catch(l){console.warn(l)}var i=function(l){return ly().size(r.size).round(r.round).padding(r.padding)(Sa(l).sum(function(u){return(0,f.dp)(u.children)?r.ignoreParentValue?0:u[n]-(0,f.u4)(u.children,function(c,h){return c+h[n]},0):u[n]}).sort(r.sort))},a=i(e),o=t[0],s=t[1];return a.each(function(l){var u,c;l[o]=[l.x0,l.x1,l.x1,l.x0],l[s]=[l.y1,l.y1,l.y0,l.y0],l.name=l.name||((u=l.data)===null||u===void 0?void 0:u.name)||((c=l.data)===null||c===void 0?void 0:c.label),l.data.name=l.name,["x0","x1","y0","y1"].forEach(function(h){t.indexOf(h)===-1&&delete l[h]})}),af(a)}function OD(e,r){return e.parent===r.parent?1:2}function BD(e){return e.reduce(RD,0)/e.length}function RD(e,r){return e+r.x}function ND(e){return 1+e.reduce(zD,0)}function zD(e,r){return Math.max(e,r.y)}function VD(e){for(var r;r=e.children;)e=r[0];return e}function UD(e){for(var r;r=e.children;)e=r[r.length-1];return e}function HD(){var e=OD,r=1,t=1,n=!1;function i(a){var o,s=0;a.eachAfter(function(v){var p=v.children;p?(v.x=BD(p),v.y=ND(p)):(v.x=o?s+=e(v,o):0,v.y=0,o=v)});var l=VD(a),u=UD(a),c=l.x-e(l,u)/2,h=u.x+e(u,l)/2;return a.eachAfter(n?function(v){v.x=(v.x-a.x)*r,v.y=(a.y-v.y)*t}:function(v){v.x=(v.x-c)/(h-c)*r,v.y=(1-(a.y?v.y/a.y:1))*t})}return i.separation=function(a){return arguments.length?(e=a,i):e},i.size=function(a){return arguments.length?(n=!1,r=+a[0],t=+a[1],i):n?null:[r,t]},i.nodeSize=function(a){return arguments.length?(n=!0,r=+a[0],t=+a[1],i):n?[r,t]:null},i}var GD={depth:-1},uy={};function YD(e){return e.id}function XD(e){return e.parentId}function WD(){var e=YD,r=XD;function t(n){var i=Array.from(n),a=i.length,o,s,l,u,c,h,v,p=new Map;for(s=0;s<a;++s)o=i[s],c=i[s]=new Ca(o),(h=e(o,s,n))!=null&&(h+="")&&(v=c.id=h,p.set(v,p.has(v)?uy:c)),(h=r(o,s,n))!=null&&(h+="")&&(c.parent=h);for(s=0;s<a;++s)if(c=i[s],h=c.parent){if(u=p.get(h),!u)throw new Error("missing: "+h);if(u===uy)throw new Error("ambiguous: "+h);u.children?u.children.push(c):u.children=[c],c.parent=u}else{if(l)throw new Error("multiple roots");l=c}if(!l)throw new Error("no root");if(l.parent=GD,l.eachBefore(function(g){g.depth=g.parent.depth+1,--a}).eachBefore(k0),l.parent=null,a>0)throw new Error("cycle");return l}return t.id=function(n){return arguments.length?(e=dl(n),t):e},t.parentId=function(n){return arguments.length?(r=dl(n),t):r},t}function ZD(e,r){return e.parent===r.parent?1:2}function vf(e){var r=e.children;return r?r[0]:e.t}function pf(e){var r=e.children;return r?r[r.length-1]:e.t}function qD(e,r,t){var n=t/(r.i-e.i);r.c-=n,r.s+=t,e.c+=n,r.z+=t,r.m+=t}function $D(e){for(var r=0,t=0,n=e.children,i=n.length,a;--i>=0;)a=n[i],a.z+=r,a.m+=r,r+=a.s+(t+=a.c)}function jD(e,r,t){return e.a.parent===r.parent?e.a:t}function wl(e,r){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=r}wl.prototype=Object.create(Ca.prototype);function KD(e){for(var r=new wl(e,0),t,n=[r],i,a,o,s;t=n.pop();)if(a=t._.children)for(t.children=new Array(s=a.length),o=s-1;o>=0;--o)n.push(i=t.children[o]=new wl(a[o],o)),i.parent=t;return(r.parent=new wl(null,0)).children=[r],r}function JD(){var e=ZD,r=1,t=1,n=null;function i(u){var c=KD(u);if(c.eachAfter(a),c.parent.m=-c.z,c.eachBefore(o),n)u.eachBefore(l);else{var h=u,v=u,p=u;u.eachBefore(function(w){w.x<h.x&&(h=w),w.x>v.x&&(v=w),w.depth>p.depth&&(p=w)});var g=h===v?1:e(h,v)/2,y=g-h.x,x=r/(v.x+g+y),m=t/(p.depth||1);u.eachBefore(function(w){w.x=(w.x+y)*x,w.y=w.depth*m})}return u}function a(u){var c=u.children,h=u.parent.children,v=u.i?h[u.i-1]:null;if(c){$D(u);var p=(c[0].z+c[c.length-1].z)/2;v?(u.z=v.z+e(u._,v._),u.m=u.z-p):u.z=p}else v&&(u.z=v.z+e(u._,v._));u.parent.A=s(u,v,u.parent.A||h[0])}function o(u){u._.x=u.z+u.parent.m,u.m+=u.parent.m}function s(u,c,h){if(c){for(var v=u,p=u,g=c,y=v.parent.children[0],x=v.m,m=p.m,w=g.m,M=y.m,S;g=pf(g),v=vf(v),g&&v;)y=vf(y),p=pf(p),p.a=u,S=g.z+w-v.z-x+e(g._,v._),S>0&&(qD(jD(g,u,h),u,S),x+=S,m+=S),w+=g.m,x+=v.m,M+=y.m,m+=p.m;g&&!pf(p)&&(p.t=g,p.m+=w-m),v&&!vf(y)&&(y.t=v,y.m+=x-M,h=u)}return h}function l(u){u.x*=r,u.y=u.depth*t}return i.separation=function(u){return arguments.length?(e=u,i):e},i.size=function(u){return arguments.length?(n=!1,r=+u[0],t=+u[1],i):n?null:[r,t]},i.nodeSize=function(u){return arguments.length?(n=!0,r=+u[0],t=+u[1],i):n?[r,t]:null},i}function Ml(e,r,t,n,i){for(var a=e.children,o,s=-1,l=a.length,u=e.value&&(i-t)/e.value;++s<l;)o=a[s],o.x0=r,o.x1=n,o.y0=t,o.y1=t+=o.value*u}var cy=(1+Math.sqrt(5))/2;function fy(e,r,t,n,i,a){for(var o=[],s=r.children,l,u,c=0,h=0,v=s.length,p,g,y=r.value,x,m,w,M,S,A,D;c<v;){p=i-t,g=a-n;do x=s[h++].value;while(!x&&h<v);for(m=w=x,A=Math.max(g/p,p/g)/(y*e),D=x*x*A,S=Math.max(w/D,D/m);h<v;++h){if(x+=u=s[h].value,u<m&&(m=u),u>w&&(w=u),D=x*x*A,M=Math.max(w/D,D/m),M>S){x-=u;break}S=M}o.push(l={value:x,dice:p<g,children:s.slice(c,h)}),l.dice?Ao(l,t,n,i,y?n+=g*x/y:a):Ml(l,t,n,y?t+=p*x/y:i,a),y-=x,c=h}return o}var hy=function e(r){function t(n,i,a,o,s){fy(r,n,i,a,o,s)}return t.ratio=function(n){return e((n=+n)>1?n:1)},t}(cy);function vy(){var e=hy,r=!1,t=1,n=1,i=[0],a=Yi,o=Yi,s=Yi,l=Yi,u=Yi;function c(v){return v.x0=v.y0=0,v.x1=t,v.y1=n,v.eachBefore(h),i=[0],r&&v.eachBefore(sy),v}function h(v){var p=i[v.depth],g=v.x0+p,y=v.y0+p,x=v.x1-p,m=v.y1-p;x<g&&(g=x=(g+x)/2),m<y&&(y=m=(y+m)/2),v.x0=g,v.y0=y,v.x1=x,v.y1=m,v.children&&(p=i[v.depth+1]=a(v)/2,g+=u(v)-p,y+=o(v)-p,x-=s(v)-p,m-=l(v)-p,x<g&&(g=x=(g+x)/2),m<y&&(y=m=(y+m)/2),e(v,g,y,x,m))}return c.round=function(v){return arguments.length?(r=!!v,c):r},c.size=function(v){return arguments.length?(t=+v[0],n=+v[1],c):[t,n]},c.tile=function(v){return arguments.length?(e=dl(v),c):e},c.padding=function(v){return arguments.length?c.paddingInner(v).paddingOuter(v):c.paddingInner()},c.paddingInner=function(v){return arguments.length?(a=typeof v=="function"?v:Ma(+v),c):a},c.paddingOuter=function(v){return arguments.length?c.paddingTop(v).paddingRight(v).paddingBottom(v).paddingLeft(v):c.paddingTop()},c.paddingTop=function(v){return arguments.length?(o=typeof v=="function"?v:Ma(+v),c):o},c.paddingRight=function(v){return arguments.length?(s=typeof v=="function"?v:Ma(+v),c):s},c.paddingBottom=function(v){return arguments.length?(l=typeof v=="function"?v:Ma(+v),c):l},c.paddingLeft=function(v){return arguments.length?(u=typeof v=="function"?v:Ma(+v),c):u},c}function QD(e,r,t,n,i){var a=e.children,o,s=a.length,l,u=new Array(s+1);for(u[0]=l=o=0;o<s;++o)u[o+1]=l+=a[o].value;c(0,s,e.value,r,t,n,i);function c(h,v,p,g,y,x,m){if(h>=v-1){var w=a[h];w.x0=g,w.y0=y,w.x1=x,w.y1=m;return}for(var M=u[h],S=p/2+M,A=h+1,D=v-1;A<D;){var V=A+D>>>1;u[V]<S?A=V+1:D=V}S-u[A-1]<u[A]-S&&h+1<A&&--A;var K=u[A]-M,Mt=p-K;if(x-g>m-y){var ot=p?(g*Mt+x*K)/p:x;c(h,A,K,g,y,ot,m),c(A,v,Mt,ot,y,x,m)}else{var Lt=p?(y*Mt+m*K)/p:m;c(h,A,K,g,y,x,Lt),c(A,v,Mt,g,Lt,x,m)}}}function tO(e,r,t,n,i){(e.depth&1?Ml:Ao)(e,r,t,n,i)}var eO=function e(r){function t(n,i,a,o,s){if((l=n._squarify)&&l.ratio===r)for(var l,u,c,h,v=-1,p,g=l.length,y=n.value;++v<g;){for(u=l[v],c=u.children,h=u.value=0,p=c.length;h<p;++h)u.value+=c[h].value;u.dice?Ao(u,i,a,o,y?a+=(s-a)*u.value/y:s):Ml(u,i,a,y?i+=(o-i)*u.value/y:o,s),y-=u.value}else n._squarify=l=fy(r,n,i,a,o,s),l.ratio=r}return t.ratio=function(n){return e((n=+n)>1?n:1)},t}(cy),rO={field:"value",tile:"treemapSquarify",size:[1,1],round:!1,ignoreParentValue:!0,padding:0,paddingInner:0,paddingOuter:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,as:["x","y"],sort:function(e,r){return r.value-e.value},ratio:.5*(1+Math.sqrt(5))};function nO(e,r){return e==="treemapSquarify"?gt[e].ratio(r):gt[e]}function py(e,r){r=(0,f.f0)({},rO,r);var t=r.as;if(!(0,f.kJ)(t)||t.length!==2)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');var n;try{n=nf(r)}catch(u){console.warn(u)}var i=nO(r.tile,r.ratio),a=function(u){return vy().tile(i).size(r.size).round(r.round).padding(r.padding).paddingInner(r.paddingInner).paddingOuter(r.paddingOuter).paddingTop(r.paddingTop).paddingRight(r.paddingRight).paddingBottom(r.paddingBottom).paddingLeft(r.paddingLeft)(Sa(u).sum(function(c){return r.ignoreParentValue&&c.children?0:c[n]}).sort(r.sort))},o=a(e),s=t[0],l=t[1];return o.each(function(u){u[s]=[u.x0,u.x1,u.x1,u.x0],u[l]=[u.y1,u.y1,u.y0,u.y0],["x0","x1","y0","y1"].forEach(function(c){t.indexOf(c)===-1&&delete u[c]})}),af(o)}function dy(e){var r=e.data,t=e.colorField,n=e.rawFields,i=e.hierarchyConfig,a=i===void 0?{}:i,o=a.activeDepth,s={partition:DD,treemap:py},l=e.seriesField,u=e.type||"partition",c=s[u](r,(0,d.pi)((0,d.pi)({field:l||"value"},(0,f.CE)(a,["activeDepth"])),{type:"hierarchy."+u,as:["x","y"]})),h=[];return c.forEach(function(v){var p,g,y,x,m,w;if(v.depth===0||o>0&&v.depth>o)return null;for(var M=v.data.name,S=(0,d.pi)({},v);S.depth>1;)M=((g=S.parent.data)===null||g===void 0?void 0:g.name)+" / "+M,S=S.parent;var A=(0,d.pi)((0,d.pi)((0,d.pi)({},Qe(v.data,(0,d.pr)(n||[],[a.field]))),(p={},p[bo]=M,p[hf]=S.data.name,p)),v);l&&(A[l]=v.data[l]||((x=(y=v.parent)===null||y===void 0?void 0:y.data)===null||x===void 0?void 0:x[l])),t&&(A[t]=v.data[t]||((w=(m=v.parent)===null||m===void 0?void 0:m.data)===null||w===void 0?void 0:w[t])),A.ext=a,A[So]={hierarchyConfig:a,colorField:t,rawFields:n},h.push(A)}),h}function iO(e){var r=e.chart,t=e.options,n=t.color,i=t.colorField,a=i===void 0?hf:i,o=t.sunburstStyle,s=t.rawFields,l=s===void 0?[]:s,u=dy(t);r.data(u);var c;return o&&(c=function(h){return It({},{fillOpacity:Math.pow(.85,h.depth)},(0,f.mf)(o)?o(h):o)}),il(It({},e,{options:{xField:"x",yField:"y",seriesField:a,rawFields:(0,f.jj)((0,d.pr)(LD,l)),polygon:{color:n,style:c}}})),e}function aO(e){var r=e.chart;return r.axis(!1),e}function oO(e){var r=e.chart,t=e.options,n=t.label,i=Tr(r,"polygon");if(!n)i.label(!1);else{var a=n.fields,o=a===void 0?["name"]:a,s=n.callback,l=(0,d._T)(n,["fields","callback"]);i.label({fields:o,callback:s,cfg:Sr(l)})}return e}function sO(e){var r=e.chart,t=e.options,n=t.innerRadius,i=t.radius,a=t.reflect,o=r.coordinate({type:"polar",cfg:{innerRadius:n,radius:i}});return a&&o.reflect(a),e}function lO(e){var r,t=e.options,n=t.hierarchyConfig,i=t.meta;return Fe(ur({},(r={},r[oy]=(0,f.U2)(i,(0,f.U2)(n,["field"],"value")),r)))(e)}function uO(e){var r=e.chart,t=e.options,n=t.tooltip;if(n===!1)r.tooltip(!1);else{var i=n;(0,f.U2)(n,"fields")||(i=It({},{customItems:function(a){return a.map(function(o){var s=(0,f.U2)(r.getOptions(),"scales"),l=(0,f.U2)(s,[bo,"formatter"],function(c){return c}),u=(0,f.U2)(s,[oy,"formatter"],function(c){return c});return(0,d.pi)((0,d.pi)({},o),{name:l(o.data[bo]),value:u(o.data.value)})})}},i)),r.tooltip(i)}return e}function cO(e){var r=e.drilldown,t=e.interactions,n=t===void 0?[]:t;return(r==null?void 0:r.enabled)?It({},e,{interactions:(0,d.pr)(n,[{type:"drill-down",cfg:{drillDownConfig:r,transformData:dy}}])}):e}function fO(e){var r=e.chart,t=e.options,n=t.drilldown;return or({chart:r,options:cO(t)}),(n==null?void 0:n.enabled)&&(r.appendPadding=Ks(r.appendPadding,(0,f.U2)(n,["breadCrumb","position"]))),e}function hO(e){return Fe(We,Zr("sunburstStyle"),iO,aO,lO,Ri,sO,uO,oO,fO,tr,sr())(e)}var Q5=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="sunburst",t}return r.getDefaultOptions=function(){return PD},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return hO},r.SUNBURST_ANCESTOR_FIELD=hf,r.SUNBURST_PATH_FIELD=bo,r.NODE_ANCESTORS_FIELD=ef,r}(Oe);function gy(e,r){if(!!(0,f.kJ)(e))return e.find(function(t){return t.type===r})}function yy(e,r){var t=gy(e,r);return t&&t.enable!==!1}function df(e){var r=e.interactions,t=e.drilldown;return(0,f.U2)(t,"enabled")||yy(r,"treemap-drill-down")}function vO(e){var r=e.interactions["drill-down"];if(!!r){var t=r.context.actions.find(function(n){return n.name==="drill-down-action"});t.reset()}}function gf(e){var r=e.data,t=e.colorField,n=e.enableDrillDown,i=e.hierarchyConfig,a=py(r,(0,d.pi)((0,d.pi)({},i),{type:"hierarchy.treemap",field:"value",as:["x","y"]})),o=[];return a.forEach(function(s){if(s.depth===0||n&&s.depth!==1||!n&&s.children)return null;var l=s.ancestors().map(function(v){return{data:v.data,height:v.height,value:v.value}}),u=n&&(0,f.kJ)(r.path)?l.concat(r.path.slice(1)):l,c=Object.assign({},s.data,(0,d.pi)({x:s.x,y:s.y,depth:s.depth,value:s.value,path:u},s));if(!s.data[t]&&s.parent){var h=s.ancestors().find(function(v){return v.data[t]});c[t]=h==null?void 0:h.data[t]}else c[t]=s.data[t];c[So]={hierarchyConfig:i,colorField:t,enableDrillDown:n},o.push(c)}),o}function pO(e){var r=e.options,t=r.colorField;return It({options:{rawFields:["value"],tooltip:{fields:["name","value",t,"path"],formatter:function(n){return{name:n.name,value:n.value}}}}},e)}function dO(e){var r=e.chart,t=e.options,n=t.color,i=t.colorField,a=t.rectStyle,o=t.hierarchyConfig,s=t.rawFields,l=gf({data:t.data,colorField:t.colorField,enableDrillDown:df(t),hierarchyConfig:o});return r.data(l),il(It({},e,{options:{xField:"x",yField:"y",seriesField:i,rawFields:s,polygon:{color:n,style:a}}})),r.coordinate().reflect("y"),e}function gO(e){var r=e.chart;return r.axis(!1),e}function yO(e){var r=e.drilldown,t=e.interactions,n=t===void 0?[]:t,i=df(e);return i?It({},e,{interactions:(0,d.pr)(n,[{type:"drill-down",cfg:{drillDownConfig:r,transformData:gf}}])}):e}function mO(e){var r=e.chart,t=e.options,n=t.interactions,i=t.drilldown;or({chart:r,options:yO(t)});var a=gy(n,"view-zoom");a&&(a.enable!==!1?r.getCanvas().on("mousewheel",function(s){s.preventDefault()}):r.getCanvas().off("mousewheel"));var o=df(t);return o&&(r.appendPadding=Ks(r.appendPadding,(0,f.U2)(i,["breadCrumb","position"]))),e}function xO(e){return Fe(pO,We,Zr("rectStyle"),dO,gO,Ri,yr,mO,tr,sr())(e)}var wO={colorField:"name",rectStyle:{lineWidth:1,stroke:"#fff"},hierarchyConfig:{tile:"treemapSquarify"},label:{fields:["name"],layout:{type:"limit-in-shape"}},tooltip:{showMarkers:!1,showTitle:!1},drilldown:{enabled:!1,breadCrumb:{position:"bottom-left",rootText:"\u521D\u59CB",dividerText:"/",textStyle:{fontSize:12,fill:"rgba(0, 0, 0, 0.65)",cursor:"pointer"},activeTextStyle:{fill:"#87B5FF"}}}},tN=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="treemap",t}return r.getDefaultOptions=function(){return wO},r.prototype.changeData=function(t){var n=this.options,i=n.colorField,a=n.interactions,o=n.hierarchyConfig;this.updateOption({data:t});var s=gf({data:t,colorField:i,enableDrillDown:yy(a,"treemap-drill-down"),hierarchyConfig:o});this.chart.changeData(s),vO(this.chart)},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return xO},r}(Oe),Xn="id",yf="path",MO={appendPadding:[10,0,20,0],blendMode:"multiply",tooltip:{showTitle:!1,showMarkers:!1,fields:["id","size"],formatter:function(e){return{name:e.id,value:e.size}}},legend:{position:"top-left"},label:{style:{textAlign:"center",fill:"#fff"}},interactions:[{type:"legend-filter",enable:!1}],state:{active:{style:{stroke:"#000"}},selected:{style:{stroke:"#000",lineWidth:2}},inactive:{style:{fillOpacity:.3,strokeOpacity:.3}}},defaultInteractions:["tooltip","venn-legend-active"]};function Sl(e){if(!!e){var r=e.geometries[0].elements;r.forEach(function(t){t.shape.toFront()})}}var SO=ms("element-active"),CO=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.syncElementsPos=function(){Sl(this.context.view)},r.prototype.active=function(){e.prototype.active.call(this),this.syncElementsPos()},r.prototype.toggle=function(){e.prototype.toggle.call(this),this.syncElementsPos()},r.prototype.reset=function(){e.prototype.reset.call(this),this.syncElementsPos()},r}(SO),bO=ms("element-highlight"),AO=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.syncElementsPos=function(){Sl(this.context.view)},r.prototype.highlight=function(){e.prototype.highlight.call(this),this.syncElementsPos()},r.prototype.toggle=function(){e.prototype.toggle.call(this),this.syncElementsPos()},r.prototype.clear=function(){e.prototype.clear.call(this),this.syncElementsPos()},r.prototype.reset=function(){e.prototype.reset.call(this),this.syncElementsPos()},r}(bO),TO=ms("element-selected"),EO=ms("element-single-selected"),_O=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.syncElementsPos=function(){Sl(this.context.view)},r.prototype.selected=function(){e.prototype.selected.call(this),this.syncElementsPos()},r.prototype.toggle=function(){e.prototype.toggle.call(this),this.syncElementsPos()},r.prototype.reset=function(){e.prototype.reset.call(this),this.syncElementsPos()},r}(TO),FO=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.syncElementsPos=function(){Sl(this.context.view)},r.prototype.selected=function(){e.prototype.selected.call(this),this.syncElementsPos()},r.prototype.toggle=function(){e.prototype.toggle.call(this),this.syncElementsPos()},r.prototype.reset=function(){e.prototype.reset.call(this),this.syncElementsPos()},r}(EO);be("venn-element-active",CO),be("venn-element-highlight",AO),be("venn-element-selected",_O),be("venn-element-single-selected",FO),Pe("venn-element-active",{start:[{trigger:"element:mouseenter",action:"venn-element-active:active"}],end:[{trigger:"element:mouseleave",action:"venn-element-active:reset"}]}),Pe("venn-element-highlight",{start:[{trigger:"element:mouseenter",action:"venn-element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"venn-element-highlight:reset"}]}),Pe("venn-element-selected",{start:[{trigger:"element:click",action:"venn-element-selected:toggle"}],rollback:[{trigger:"dblclick",action:["venn-element-selected:reset"]}]}),Pe("venn-element-single-selected",{start:[{trigger:"element:click",action:"venn-element-single-selected:toggle"}],rollback:[{trigger:"dblclick",action:["venn-element-single-selected:reset"]}]}),Pe("venn-legend-active",{start:[{trigger:"legend-item:mouseenter",action:["list-active:active","venn-element-active:active"]}],end:[{trigger:"legend-item:mouseleave",action:["list-active:reset","venn-element-active:reset"]}]}),Pe("venn-legend-highlight",{start:[{trigger:"legend-item:mouseenter",action:["legend-item-highlight:highlight","venn-element-highlight:highlight"]}],end:[{trigger:"legend-item:mouseleave",action:["legend-item-highlight:reset","venn-element-highlight:reset"]}]});var IO=function(e){(0,d.ZT)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getLabelPoint=function(t,n,i){var a=t.data,o=a.x,s=a.y,l=t.customLabelInfo,u=l.offsetX,c=l.offsetY;return{content:t.content[i],x:o+u,y:s+c}},r}(Es);Ja("venn",IO);var LO=Array.isArray,PO=LO,To=`
  104. \v\f\r \xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029`,kO=new RegExp("([a-z])["+To+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+To+"]*,?["+To+"]*)+)","ig"),DO=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+To+"]*,?["+To+"]*","ig");function OO(e){if(!e)return null;if(PO(e))return e;var r={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},t=[];return String(e).replace(kO,function(n,i,a){var o=[],s=i.toLowerCase();if(a.replace(DO,function(l,u){u&&o.push(+u)}),s==="m"&&o.length>2&&(t.push([i].concat(o.splice(0,2))),s="l",i=i==="m"?"l":"L"),s==="o"&&o.length===1&&t.push([i,o[0]]),s==="r")t.push([i].concat(o));else for(;o.length>=r[s]&&(t.push([i].concat(o.splice(0,r[s]))),!!r[s]););return""}),t}var BO=/[a-z]/;function my(e,r){return[r[0]+(r[0]-e[0]),r[1]+(r[1]-e[1])]}function eN(e){var r=parsePathString(e);if(!r||!r.length)return[["M",0,0]];for(var t=!1,n=0;n<r.length;n++){var i=r[n][0];if(BO.test(i)||["V","H","T","S"].indexOf(i)>=0){t=!0;break}}if(!t)return r;var a=[],o=0,s=0,l=0,u=0,c=0,h,v,p=r[0];(p[0]==="M"||p[0]==="m")&&(o=+p[1],s=+p[2],l=o,u=s,c++,a[0]=["M",o,s]);for(var n=c,g=r.length;n<g;n++){var y=r[n],x=a[n-1],m=[],i=y[0],w=i.toUpperCase();if(i!==w)switch(m[0]=w,w){case"A":m[1]=y[1],m[2]=y[2],m[3]=y[3],m[4]=y[4],m[5]=y[5],m[6]=+y[6]+o,m[7]=+y[7]+s;break;case"V":m[1]=+y[1]+s;break;case"H":m[1]=+y[1]+o;break;case"M":l=+y[1]+o,u=+y[2]+s,m[1]=l,m[2]=u;break;default:for(var M=1,S=y.length;M<S;M++)m[M]=+y[M]+(M%2?o:s)}else m=r[n];switch(w){case"Z":o=+l,s=+u;break;case"H":o=m[1],m=["L",o,s];break;case"V":s=m[1],m=["L",o,s];break;case"T":o=m[1],s=m[2];var A=my([x[1],x[2]],[x[3],x[4]]);m=["Q",A[0],A[1],o,s];break;case"S":o=m[m.length-2],s=m[m.length-1];var D=x.length,V=my([x[D-4],x[D-3]],[x[D-2],x[D-1]]);m=["C",V[0],V[1],m[1],m[2],o,s];break;case"M":l=m[m.length-2],u=m[m.length-1];break;default:o=m[m.length-2],s=m[m.length-1]}a.push(m)}return a}var Eo=Math.PI*2,mf=function(e,r,t,n,i,a,o){var s=e.x,l=e.y;s*=r,l*=t;var u=n*s-i*l,c=i*s+n*l;return{x:u+a,y:c+o}},RO=function(e,r){var t=r===1.5707963267948966?.551915024494:r===-1.5707963267948966?-.551915024494:4/3*Math.tan(r/4),n=Math.cos(e),i=Math.sin(e),a=Math.cos(e+r),o=Math.sin(e+r);return[{x:n-i*t,y:i+n*t},{x:a+o*t,y:o-a*t},{x:a,y:o}]},xy=function(e,r,t,n){var i=e*n-r*t<0?-1:1,a=e*t+r*n;return a>1&&(a=1),a<-1&&(a=-1),i*Math.acos(a)},NO=function(e,r,t,n,i,a,o,s,l,u,c,h){var v=Math.pow(i,2),p=Math.pow(a,2),g=Math.pow(c,2),y=Math.pow(h,2),x=v*p-v*y-p*g;x<0&&(x=0),x/=v*y+p*g,x=Math.sqrt(x)*(o===s?-1:1);var m=x*i/a*h,w=x*-a/i*c,M=u*m-l*w+(e+t)/2,S=l*m+u*w+(r+n)/2,A=(c-m)/i,D=(h-w)/a,V=(-c-m)/i,K=(-h-w)/a,Mt=xy(1,0,A,D),ot=xy(A,D,V,K);return s===0&&ot>0&&(ot-=Eo),s===1&&ot<0&&(ot+=Eo),[M,S,Mt,ot]},zO=function(e){var r=e.px,t=e.py,n=e.cx,i=e.cy,a=e.rx,o=e.ry,s=e.xAxisRotation,l=s===void 0?0:s,u=e.largeArcFlag,c=u===void 0?0:u,h=e.sweepFlag,v=h===void 0?0:h,p=[];if(a===0||o===0)return[{x1:0,y1:0,x2:0,y2:0,x:n,y:i}];var g=Math.sin(l*Eo/360),y=Math.cos(l*Eo/360),x=y*(r-n)/2+g*(t-i)/2,m=-g*(r-n)/2+y*(t-i)/2;if(x===0&&m===0)return[{x1:0,y1:0,x2:0,y2:0,x:n,y:i}];a=Math.abs(a),o=Math.abs(o);var w=Math.pow(x,2)/Math.pow(a,2)+Math.pow(m,2)/Math.pow(o,2);w>1&&(a*=Math.sqrt(w),o*=Math.sqrt(w));var M=NO(r,t,n,i,a,o,c,v,g,y,x,m),S=M[0],A=M[1],D=M[2],V=M[3],K=Math.abs(V)/(Eo/4);Math.abs(1-K)<1e-7&&(K=1);var Mt=Math.max(Math.ceil(K),1);V/=Mt;for(var ot=0;ot<Mt;ot++)p.push(RO(D,V)),D+=V;return p.map(function(Lt){var Qt=mf(Lt[0],a,o,y,g,S,A),ge=Qt.x,we=Qt.y,Ae=mf(Lt[1],a,o,y,g,S,A),zt=Ae.x,ie=Ae.y,fe=mf(Lt[2],a,o,y,g,S,A),ue=fe.x,he=fe.y;return{x1:ge,y1:we,x2:zt,y2:ie,x:ue,y:he}})};function rN(e,r,t,n,i,a,o,s,l){var u=zO({px:e,py:r,cx:s,cy:l,rx:t,ry:n,xAxisRotation:i,largeArcFlag:a,sweepFlag:o});return u.reduce(function(c,h){var v=h.x1,p=h.y1,g=h.x2,y=h.y2,x=h.x,m=h.y;return c.push(v,p,g,y,x,m),c},[])}function nN(e,r){"TQ".indexOf(e[0])<0&&(r.qx=null,r.qy=null);var t=e.slice(1),n=t[0],i=t[1];switch(e[0]){case"M":return r.x=n,r.y=i,e;case"A":return["C"].concat(arcToCubic.apply(0,[r.x1,r.y1].concat(e.slice(1))));case"Q":return r.qx=n,r.qy=i,["C"].concat(quadToCubic.apply(0,[r.x1,r.y1].concat(e.slice(1))));case"L":return["C"].concat(lineToCubic(r.x1,r.y1,e[1],e[2]));case"H":return["C"].concat(lineToCubic(r.x1,r.y1,e[1],r.y1));case"V":return["C"].concat(lineToCubic(r.x1,r.y1,r.x1,e[1]));case"Z":return["C"].concat(lineToCubic(r.x1,r.y1,r.x,r.y));default:}return e}function iN(e,r){r===void 0&&(r=!1);for(var t=path2Absolute(e),n={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null},i=[],a="",o=t.length,s,l,u=[],c=0;c<o;c+=1)t[c]&&(a=t[c][0]),i[c]=a,t[c]=segmentToCubic(t[c],n),VO(t,i,c),o=t.length,a==="Z"&&u.push(c),s=t[c],l=s.length,n.x1=+s[l-2],n.y1=+s[l-1],n.x2=+s[l-4]||n.x1,n.y2=+s[l-3]||n.y1;return r?[t,u]:t}function VO(e,r,t){if(e[t].length>7){e[t].shift();for(var n=e[t],i=t;n.length;)r[t]="A",e.splice(i+=1,0,["C"].concat(n.splice(0,6)));e.splice(t,1)}}var wy=function(e,r,t,n,i){var a=-3*r+9*t-9*n+3*i,o=e*a+6*r-12*t+6*n;return e*o-3*r+3*t},My=function(e,r,t,n,i,a,o,s,l){l===null&&(l=1),l=l>1?1:l<0?0:l;for(var u=l/2,c=12,h=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],v=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],p=0,g=0;g<c;g++){var y=u*h[g]+u,x=wy(y,e,t,i,o),m=wy(y,r,n,a,s),w=x*x+m*m;p+=v[g]*Math.sqrt(w)}return u*p},UO=function(e,r,t,n,i,a,o,s){for(var l=[],u=[[],[]],c,h,v,p,g=0;g<2;++g){if(g===0?(h=6*e-12*t+6*i,c=-3*e+9*t-9*i+3*o,v=3*t-3*e):(h=6*r-12*n+6*a,c=-3*r+9*n-9*a+3*s,v=3*n-3*r),Math.abs(c)<1e-12){if(Math.abs(h)<1e-12)continue;p=-v/h,p>0&&p<1&&l.push(p);continue}var y=h*h-4*v*c,x=Math.sqrt(y);if(!(y<0)){var m=(-h+x)/(2*c);m>0&&m<1&&l.push(m);var w=(-h-x)/(2*c);w>0&&w<1&&l.push(w)}}for(var M=l.length,S=M,A;M--;)p=l[M],A=1-p,u[0][M]=A*A*A*e+3*A*A*p*t+3*A*p*p*i+p*p*p*o,u[1][M]=A*A*A*r+3*A*A*p*n+3*A*p*p*a+p*p*p*s;return u[0][S]=e,u[1][S]=r,u[0][S+1]=o,u[1][S+1]=s,u[0].length=u[1].length=S+2,{min:{x:Math.min.apply(0,u[0]),y:Math.min.apply(0,u[1])},max:{x:Math.max.apply(0,u[0]),y:Math.max.apply(0,u[1])}}},HO=function(e,r,t,n,i,a,o,s){if(!(Math.max(e,t)<Math.min(i,o)||Math.min(e,t)>Math.max(i,o)||Math.max(r,n)<Math.min(a,s)||Math.min(r,n)>Math.max(a,s))){var l=(e*n-r*t)*(i-o)-(e-t)*(i*s-a*o),u=(e*n-r*t)*(a-s)-(r-n)*(i*s-a*o),c=(e-t)*(a-s)-(r-n)*(i-o);if(!!c){var h=l/c,v=u/c,p=+h.toFixed(2),g=+v.toFixed(2);if(!(p<+Math.min(e,t).toFixed(2)||p>+Math.max(e,t).toFixed(2)||p<+Math.min(i,o).toFixed(2)||p>+Math.max(i,o).toFixed(2)||g<+Math.min(r,n).toFixed(2)||g>+Math.max(r,n).toFixed(2)||g<+Math.min(a,s).toFixed(2)||g>+Math.max(a,s).toFixed(2)))return{x:h,y:v}}}},gi=function(e,r,t){return r>=e.x&&r<=e.x+e.width&&t>=e.y&&t<=e.y+e.height},xf=function(e,r,t,n){return e===null&&(e=r=t=n=0),r===null&&(r=e.y,t=e.width,n=e.height,e=e.x),{x:e,y:r,width:t,w:t,height:n,h:n,x2:e+t,y2:r+n,cx:e+t/2,cy:r+n/2,r1:Math.min(t,n)/2,r2:Math.max(t,n)/2,r0:Math.sqrt(t*t+n*n)/2,path:rectPath(e,r,t,n),vb:[e,r,t,n].join(" ")}},GO=function(e,r){return e=xf(e),r=xf(r),gi(r,e.x,e.y)||gi(r,e.x2,e.y)||gi(r,e.x,e.y2)||gi(r,e.x2,e.y2)||gi(e,r.x,r.y)||gi(e,r.x2,r.y)||gi(e,r.x,r.y2)||gi(e,r.x2,r.y2)||(e.x<r.x2&&e.x>r.x||r.x<e.x2&&r.x>e.x)&&(e.y<r.y2&&e.y>r.y||r.y<e.y2&&r.y>e.y)},Sy=function(e,r,t,n,i,a,o,s){isArray(e)||(e=[e,r,t,n,i,a,o,s]);var l=UO.apply(null,e);return xf(l.min.x,l.min.y,l.max.x-l.min.x,l.max.y-l.min.y)},Cy=function(e,r,t,n,i,a,o,s,l){var u=1-l,c=Math.pow(u,3),h=Math.pow(u,2),v=l*l,p=v*l,g=c*e+h*3*l*t+u*3*l*l*i+p*o,y=c*r+h*3*l*n+u*3*l*l*a+p*s,x=e+2*l*(t-e)+v*(i-2*t+e),m=r+2*l*(n-r)+v*(a-2*n+r),w=t+2*l*(i-t)+v*(o-2*i+t),M=n+2*l*(a-n)+v*(s-2*a+n),S=u*e+l*t,A=u*r+l*n,D=u*i+l*o,V=u*a+l*s,K=90-Math.atan2(x-w,m-M)*180/Math.PI;return{x:g,y,m:{x,y:m},n:{x:w,y:M},start:{x:S,y:A},end:{x:D,y:V},alpha:K}},YO=function(e,r,t){var n=Sy(e),i=Sy(r);if(!GO(n,i))return t?0:[];for(var a=My.apply(0,e),o=My.apply(0,r),s=~~(a/8),l=~~(o/8),u=[],c=[],h={},v=t?0:[],p=0;p<s+1;p++){var g=Cy.apply(0,e.concat(p/s));u.push({x:g.x,y:g.y,t:p/s})}for(var p=0;p<l+1;p++){var g=Cy.apply(0,r.concat(p/l));c.push({x:g.x,y:g.y,t:p/l})}for(var p=0;p<s;p++)for(var y=0;y<l;y++){var x=u[p],m=u[p+1],w=c[y],M=c[y+1],S=Math.abs(m.x-x.x)<.001?"y":"x",A=Math.abs(M.x-w.x)<.001?"y":"x",D=HO(x.x,x.y,m.x,m.y,w.x,w.y,M.x,M.y);if(D){if(h[D.x.toFixed(4)]===D.y.toFixed(4))continue;h[D.x.toFixed(4)]=D.y.toFixed(4);var V=x.t+Math.abs((D[S]-x[S])/(m[S]-x[S]))*(m.t-x.t),K=w.t+Math.abs((D[A]-w[A])/(M[A]-w[A]))*(M.t-w.t);V>=0&&V<=1&&K>=0&&K<=1&&(t?v++:v.push({x:D.x,y:D.y,t1:V,t2:K}))}}return v},XO=function(e,r,t){e=path2Curve(e),r=path2Curve(r);for(var n,i,a,o,s,l,u,c,h,v,p=t?0:[],g=0,y=e.length;g<y;g++){var x=e[g];if(x[0]==="M")n=s=x[1],i=l=x[2];else{x[0]==="C"?(h=[n,i].concat(x.slice(1)),n=h[6],i=h[7]):(h=[n,i,n,i,s,l,s,l],n=s,i=l);for(var m=0,w=r.length;m<w;m++){var M=r[m];if(M[0]==="M")a=u=M[1],o=c=M[2];else{M[0]==="C"?(v=[a,o].concat(M.slice(1)),a=v[6],o=v[7]):(v=[a,o,a,o,u,c,u,c],a=u,o=c);var S=YO(h,v,t);if(t)p+=S;else{for(var A=0,D=S.length;A<D;A++)S[A].segment1=g,S[A].segment2=m,S[A].bez1=h,S[A].bez2=v;p=p.concat(S)}}}}}return p};function aN(e,r){return XO(e,r)}function WO(e){return It({},e.defaultStyle,{fill:e.color},e.style)}$e("schema","venn",{draw:function(e,r){var t=e.data,n=OO(t[yf]),i=WO(e),a=r.addGroup({name:"venn-shape"});a.addShape("path",{attrs:(0,d.pi)((0,d.pi)({},i),{path:n}),name:"venn-path"});var o=e.customInfo,s=o.offsetX,l=o.offsetY,u=Vr.transform(null,[["t",s,l]]);return a.setMatrix(u),a},getMarker:function(e){var r=e.color;return{symbol:"circle",style:{lineWidth:0,stroke:r,fill:r,r:4}}}});var ZO=function(e){return function(r,t){var n=[];return n[0]=e(r[0],t[0]),n[1]=e(r[1],t[1]),n[2]=e(r[2],t[2]),n}},by={normal:function(e){return e},multiply:function(e,r){return e*r/255},screen:function(e,r){return 255*(1-(1-e/255)*(1-r/255))},overlay:function(e,r){return r<128?2*e*r/255:255*(1-2*(1-e/255)*(1-r/255))},darken:function(e,r){return e>r?r:e},lighten:function(e,r){return e>r?e:r},dodge:function(e,r){return e===255?255:(e=255*(r/255)/(1-e/255),e>255?255:e)},burn:function(e,r){return r===255?255:e===0?0:255*(1-Math.min(1,(1-r/255)/(e/255)))}},qO=function(e){if(!by[e])throw new Error("unknown blend mode "+e);return by[e]};function $O(e,r,t){t===void 0&&(t="normal");var n=ZO(qO(t))(Cl(e),Cl(r)),i=Cl(e),a=i[0],o=i[1],s=i[2],l=i[3],u=Cl(r),c=u[0],h=u[1],v=u[2],p=u[3],g=Number((l+p*(1-l)).toFixed(2)),y=Math.round((l*(1-p)*(a/255)+l*p*(n[0]/255)+(1-l)*p*(c/255))/g*255),x=Math.round((l*(1-p)*(o/255)+l*p*(n[1]/255)+(1-l)*p*(h/255))/g*255),m=Math.round((l*(1-p)*(s/255)+l*p*(n[2]/255)+(1-l)*p*(v/255))/g*255);return"rgba("+y+", "+x+", "+m+", "+g+")"}function Cl(e){var r=e.replace("/s+/g",""),t;return typeof r=="string"&&!r.startsWith("rgba")&&!r.startsWith("#")?t=Pn.rgb2arr(Pn.toRGB(r)).concat([1]):(r.startsWith("rgba")&&(t=r.replace("rgba(","").replace(")","").split(",")),r.startsWith("#")&&(t=Pn.rgb2arr(r).concat([1])),t.map(function(n,i){return i===3?Number(n):n|0}))}var Tn=et(87026),Ay=1e-10;function wf(e,r){var t=KO(e),n=t.filter(function(V){return jO(V,e)}),i=0,a=0,o,s=[];if(n.length>1){var l=_y(n);for(o=0;o<n.length;++o){var u=n[o];u.angle=Math.atan2(u.x-l.x,u.y-l.y)}n.sort(function(V,K){return K.angle-V.angle});var c=n[n.length-1];for(o=0;o<n.length;++o){var h=n[o];a+=(c.x+h.x)*(h.y-c.y);for(var v={x:(h.x+c.x)/2,y:(h.y+c.y)/2},p=null,g=0;g<h.parentIndex.length;++g)if(c.parentIndex.indexOf(h.parentIndex[g])>-1){var y=e[h.parentIndex[g]],x=Math.atan2(h.x-y.x,h.y-y.y),m=Math.atan2(c.x-y.x,c.y-y.y),w=m-x;w<0&&(w+=2*Math.PI);var M=m-w/2,S=hn(v,{x:y.x+y.radius*Math.sin(M),y:y.y+y.radius*Math.cos(M)});S>y.radius*2&&(S=y.radius*2),(p===null||p.width>S)&&(p={circle:y,width:S,p1:h,p2:c})}p!==null&&(s.push(p),i+=Mf(p.circle.radius,p.width),c=h)}}else{var A=e[0];for(o=1;o<e.length;++o)e[o].radius<A.radius&&(A=e[o]);var D=!1;for(o=0;o<e.length;++o)if(hn(e[o],A)>Math.abs(A.radius-e[o].radius)){D=!0;break}D?i=a=0:(i=A.radius*A.radius*Math.PI,s.push({circle:A,p1:{x:A.x,y:A.y+A.radius},p2:{x:A.x-Ay,y:A.y+A.radius},width:A.radius*2}))}return a/=2,r&&(r.area=i+a,r.arcArea=i,r.polygonArea=a,r.arcs=s,r.innerPoints=n,r.intersectionPoints=t),i+a}function jO(e,r){for(var t=0;t<r.length;++t)if(hn(e,r[t])>r[t].radius+Ay)return!1;return!0}function KO(e){for(var r=[],t=0;t<e.length;++t)for(var n=t+1;n<e.length;++n)for(var i=Ey(e[t],e[n]),a=0;a<i.length;++a){var o=i[a];o.parentIndex=[t,n],r.push(o)}return r}function Mf(e,r){return e*e*Math.acos(1-r/e)-(e-r)*Math.sqrt(r*(2*e-r))}function hn(e,r){return Math.sqrt((e.x-r.x)*(e.x-r.x)+(e.y-r.y)*(e.y-r.y))}function Ty(e,r,t){if(t>=e+r)return 0;if(t<=Math.abs(e-r))return Math.PI*Math.min(e,r)*Math.min(e,r);var n=e-(t*t-r*r+e*e)/(2*t),i=r-(t*t-e*e+r*r)/(2*t);return Mf(e,n)+Mf(r,i)}function Ey(e,r){var t=hn(e,r),n=e.radius,i=r.radius;if(t>=n+i||t<=Math.abs(n-i))return[];var a=(n*n-i*i+t*t)/(2*t),o=Math.sqrt(n*n-a*a),s=e.x+a*(r.x-e.x)/t,l=e.y+a*(r.y-e.y)/t,u=-(r.y-e.y)*(o/t),c=-(r.x-e.x)*(o/t);return[{x:s+u,y:l-c},{x:s-u,y:l+c}]}function _y(e){for(var r={x:0,y:0},t=0;t<e.length;++t)r.x+=e[t].x,r.y+=e[t].y;return r.x/=e.length,r.y/=e.length,r}function Sf(e,r,t){var n=r[0].radius-hn(r[0],e),i,a;for(i=1;i<r.length;++i)a=r[i].radius-hn(r[i],e),a<=n&&(n=a);for(i=0;i<t.length;++i)a=hn(t[i],e)-t[i].radius,a<=n&&(n=a);return n}function Fy(e,r){var t=[],n;for(n=0;n<e.length;++n){var i=e[n];t.push({x:i.x,y:i.y}),t.push({x:i.x+i.radius/2,y:i.y}),t.push({x:i.x-i.radius/2,y:i.y}),t.push({x:i.x,y:i.y+i.radius/2}),t.push({x:i.x,y:i.y-i.radius/2})}var a=t[0],o=Sf(t[0],e,r);for(n=1;n<t.length;++n){var s=Sf(t[n],e,r);s>=o&&(a=t[n],o=s)}var l=(0,Tn.nelderMead)(function(v){return-1*Sf({x:v[0],y:v[1]},e,r)},[a.x,a.y],{maxIterations:500,minErrorDelta:1e-10}).x,u={x:l[0],y:l[1]},c=!0;for(n=0;n<e.length;++n)if(hn(u,e[n])>e[n].radius){c=!1;break}for(n=0;n<r.length;++n)if(hn(u,r[n])<r[n].radius){c=!1;break}if(!c)if(e.length==1)u={x:e[0].x,y:e[0].y};else{var h={};wf(e,h),h.arcs.length===0?u={x:0,y:-1e3,disjoint:!0}:h.arcs.length==1?u={x:h.arcs[0].circle.x,y:h.arcs[0].circle.y}:r.length?u=Fy(e,[]):u=_y(h.arcs.map(function(v){return v.p1}))}return u}function JO(e){var r={},t=[];for(var n in e)t.push(n),r[n]=[];for(var i=0;i<t.length;i++)for(var a=e[t[i]],o=i+1;o<t.length;++o){var s=e[t[o]],l=hn(a,s);l+s.radius<=a.radius+1e-10?r[t[o]].push(t[i]):l+a.radius<=s.radius+1e-10&&r[t[i]].push(t[o])}return r}function QO(e,r){for(var t={},n=JO(e),i=0;i<r.length;++i){for(var a=r[i].sets,o={},s={},l=0;l<a.length;++l){o[a[l]]=!0;for(var u=n[a[l]],c=0;c<u.length;++c)s[u[c]]=!0}var h=[],v=[];for(var p in e)p in o?h.push(e[p]):p in s||v.push(e[p]);var g=Fy(h,v);t[a]=g,g.disjoint&&r[i].size>0&&console.log("WARNING: area "+a+" not represented on screen")}return t}function tB(e,r,t){var n=[],i=e-t,a=r;return n.push("M",i,a),n.push("A",t,t,0,1,0,i+2*t,a),n.push("A",t,t,0,1,0,i,a),n.join(" ")}function oN(e){var r=e.split(" ");return{x:parseFloat(r[1]),y:parseFloat(r[2]),radius:-parseFloat(r[4])}}function eB(e){var r={};wf(e,r);var t=r.arcs;if(t.length===0)return"M 0 0";if(t.length==1){var n=t[0].circle;return tB(n.x,n.y,n.radius)}else{for(var i=[`
  105. M`,t[0].p2.x,t[0].p2.y],a=0;a<t.length;++a){var o=t[a],s=o.circle.radius,l=o.width>s;i.push(`
  106. A`,s,s,0,l?1:0,1,o.p1.x,o.p1.y)}return i.join(" ")}}function rB(e,r){r=r||{},r.maxIterations=r.maxIterations||500;var t=r.initialLayout||oB,n=r.lossFunction||bf;e=nB(e);var i=t(e,r),a=[],o=[],s;for(s in i)i.hasOwnProperty(s)&&(a.push(i[s].x),a.push(i[s].y),o.push(s));for(var l=(0,Tn.nelderMead)(function(h){for(var v={},p=0;p<o.length;++p){var g=o[p];v[g]={x:h[2*p],y:h[2*p+1],radius:i[g].radius}}return n(v,e)},a,r),u=l.x,c=0;c<o.length;++c)s=o[c],i[s].x=u[2*c],i[s].y=u[2*c+1];return i}var Iy=1e-10;function Cf(e,r,t){return Math.min(e,r)*Math.min(e,r)*Math.PI<=t+Iy?Math.abs(e-r):(0,Tn.bisect)(function(n){return Ty(e,r,n)-t},0,e+r)}function nB(e){e=e.slice();var r=[],t={},n,i,a,o;for(n=0;n<e.length;++n){var s=e[n];s.sets.length==1?r.push(s.sets[0]):s.sets.length==2&&(a=s.sets[0],o=s.sets[1],t[[a,o]]=!0,t[[o,a]]=!0)}for(r.sort(function(l,u){return l>u?1:-1}),n=0;n<r.length;++n)for(a=r[n],i=n+1;i<r.length;++i)o=r[i],[a,o]in t||e.push({sets:[a,o],size:0});return e}function iB(e,r,t){var n=(0,Tn.zerosM)(r.length,r.length),i=(0,Tn.zerosM)(r.length,r.length);return e.filter(function(a){return a.sets.length==2}).map(function(a){var o=t[a.sets[0]],s=t[a.sets[1]],l=Math.sqrt(r[o].size/Math.PI),u=Math.sqrt(r[s].size/Math.PI),c=Cf(l,u,a.size);n[o][s]=n[s][o]=c;var h=0;a.size+1e-10>=Math.min(r[o].size,r[s].size)?h=1:a.size<=1e-10&&(h=-1),i[o][s]=i[s][o]=h}),{distances:n,constraints:i}}function aB(e,r,t,n){var i=0,a;for(a=0;a<r.length;++a)r[a]=0;for(a=0;a<t.length;++a)for(var o=e[2*a],s=e[2*a+1],l=a+1;l<t.length;++l){var u=e[2*l],c=e[2*l+1],h=t[a][l],v=n[a][l],p=(u-o)*(u-o)+(c-s)*(c-s),g=Math.sqrt(p),y=p-h*h;v>0&&g<=h||v<0&&g>=h||(i+=2*y*y,r[2*a]+=4*y*(o-u),r[2*a+1]+=4*y*(s-c),r[2*l]+=4*y*(u-o),r[2*l+1]+=4*y*(c-s))}return i}function oB(e,r){var t=lB(e,r),n=r.lossFunction||bf;if(e.length>=8){var i=sB(e,r),a=n(i,e),o=n(t,e);a+1e-8<o&&(t=i)}return t}function sB(e,r){r=r||{};var t=r.restarts||10,n=[],i={},a;for(a=0;a<e.length;++a){var o=e[a];o.sets.length==1&&(i[o.sets[0]]=n.length,n.push(o))}var s=iB(e,n,i),l=s.distances,u=s.constraints,c=(0,Tn.norm2)(l.map(Tn.norm2))/l.length;l=l.map(function(w){return w.map(function(M){return M/c})});var h=function(w,M){return aB(w,M,l,u)},v,p;for(a=0;a<t;++a){var g=(0,Tn.zeros)(l.length*2).map(Math.random);p=(0,Tn.conjugateGradient)(h,g,r),(!v||p.fx<v.fx)&&(v=p)}var y=v.x,x={};for(a=0;a<n.length;++a){var m=n[a];x[m.sets[0]]={x:y[2*a]*c,y:y[2*a+1]*c,radius:Math.sqrt(m.size/Math.PI)}}if(r.history)for(a=0;a<r.history.length;++a)(0,Tn.scale)(r.history[a].x,c);return x}function lB(e,r){for(var t=r&&r.lossFunction?r.lossFunction:bf,n={},i={},a,o=0;o<e.length;++o){var s=e[o];s.sets.length==1&&(a=s.sets[0],n[a]={x:1e10,y:1e10,rowid:Object.keys(n).length,size:s.size,radius:Math.sqrt(s.size/Math.PI)},i[a]=[])}e=e.filter(function(zt){return zt.sets.length==2});for(var o=0;o<e.length;++o){var l=e[o],u=l.hasOwnProperty("weight")?l.weight:1,c=l.sets[0],h=l.sets[1];l.size+Iy>=Math.min(n[c].size,n[h].size)&&(u=0),i[c].push({set:h,size:l.size,weight:u}),i[h].push({set:c,size:l.size,weight:u})}var v=[];for(a in i)if(i.hasOwnProperty(a)){for(var p=0,o=0;o<i[a].length;++o)p+=i[a][o].size*i[a][o].weight;v.push({set:a,size:p})}function g(zt,ie){return ie.size-zt.size}v.sort(g);var y={};function x(zt){return zt.set in y}function m(zt,ie){n[ie].x=zt.x,n[ie].y=zt.y,y[ie]=!0}m({x:0,y:0},v[0].set);for(var o=1;o<v.length;++o){var w=v[o].set,M=i[w].filter(x);if(a=n[w],M.sort(g),M.length===0)throw"ERROR: missing pairwise overlap information";for(var S=[],A=0;A<M.length;++A){var D=n[M[A].set],V=Cf(a.radius,D.radius,M[A].size);S.push({x:D.x+V,y:D.y}),S.push({x:D.x-V,y:D.y}),S.push({y:D.y+V,x:D.x}),S.push({y:D.y-V,x:D.x});for(var K=A+1;K<M.length;++K)for(var Mt=n[M[K].set],ot=Cf(a.radius,Mt.radius,M[K].size),Lt=Ey({x:D.x,y:D.y,radius:V},{x:Mt.x,y:Mt.y,radius:ot}),Qt=0;Qt<Lt.length;++Qt)S.push(Lt[Qt])}for(var ge=1e50,we=S[0],A=0;A<S.length;++A){n[w].x=S[A].x,n[w].y=S[A].y;var Ae=t(n,e);Ae<ge&&(ge=Ae,we=S[A])}m(we,w)}return n}function bf(e,r){var t=0;function n(c){return c.map(function(h){return e[h]})}for(var i=0;i<r.length;++i){var a=r[i],o=void 0;if(a.sets.length!=1){if(a.sets.length==2){var s=e[a.sets[0]],l=e[a.sets[1]];o=Ty(s.radius,l.radius,hn(s,l))}else o=wf(n(a.sets));var u=a.hasOwnProperty("weight")?a.weight:1;t+=u*(o-a.size)*(o-a.size)}}return t}function uB(e,r,t){t===null?e.sort(function(y,x){return x.radius-y.radius}):e.sort(t);var n;if(e.length>0){var i=e[0].x,a=e[0].y;for(n=0;n<e.length;++n)e[n].x-=i,e[n].y-=a}if(e.length==2){var o=distance(e[0],e[1]);o<Math.abs(e[1].radius-e[0].radius)&&(e[1].x=e[0].x+e[0].radius-e[1].radius-1e-10,e[1].y=e[0].y)}if(e.length>1){var s=Math.atan2(e[1].x,e[1].y)-r,l=void 0,u=void 0,c=Math.cos(s),h=Math.sin(s);for(n=0;n<e.length;++n)l=e[n].x,u=e[n].y,e[n].x=c*l-h*u,e[n].y=h*l+c*u}if(e.length>2){for(var v=Math.atan2(e[2].x,e[2].y)-r;v<0;)v+=2*Math.PI;for(;v>2*Math.PI;)v-=2*Math.PI;if(v>Math.PI){var p=e[1].y/(1e-10+e[1].x);for(n=0;n<e.length;++n){var g=(e[n].x+p*e[n].y)/(1+p*p);e[n].x=2*g-e[n].x,e[n].y=2*g*p-e[n].y}}}}function cB(e){e.map(function(u){u.parent=u});function r(u){return u.parent!==u&&(u.parent=r(u.parent)),u.parent}function t(u,c){var h=r(u),v=r(c);h.parent=v}for(var n=0;n<e.length;++n)for(var i=n+1;i<e.length;++i){var a=e[n].radius+e[i].radius;distance(e[n],e[i])+1e-10<a&&t(e[i],e[n])}for(var o={},s,n=0;n<e.length;++n)s=r(e[n]).parent.setid,s in o||(o[s]=[]),o[s].push(e[n]);e.map(function(u){delete u.parent});var l=[];for(s in o)o.hasOwnProperty(s)&&l.push(o[s]);return l}function Af(e){var r=function(t){var n=Math.max.apply(null,e.map(function(a){return a[t]+a.radius})),i=Math.min.apply(null,e.map(function(a){return a[t]-a.radius}));return{max:n,min:i}};return{xRange:r("x"),yRange:r("y")}}function sN(e,r,t){r===null&&(r=Math.PI/2);var n=[],i,a;for(a in e)if(e.hasOwnProperty(a)){var o=e[a];n.push({x:o.x,y:o.y,radius:o.radius,setid:a})}var s=cB(n);for(i=0;i<s.length;++i){uB(s[i],r,t);var l=Af(s[i]);s[i].size=(l.xRange.max-l.xRange.min)*(l.yRange.max-l.yRange.min),s[i].bounds=l}s.sort(function(g,y){return y.size-g.size}),n=s[0];var u=n.bounds,c=(u.xRange.max-u.xRange.min)/50;function h(g,y,x){if(!!g){var m=g.bounds,w,M,S;y?w=u.xRange.max-m.xRange.min+c:(w=u.xRange.max-m.xRange.max,S=(m.xRange.max-m.xRange.min)/2-(u.xRange.max-u.xRange.min)/2,S<0&&(w+=S)),x?M=u.yRange.max-m.yRange.min+c:(M=u.yRange.max-m.yRange.max,S=(m.yRange.max-m.yRange.min)/2-(u.yRange.max-u.yRange.min)/2,S<0&&(M+=S));for(var A=0;A<g.length;++A)g[A].x+=w,g[A].y+=M,n.push(g[A])}}for(var v=1;v<s.length;)h(s[v],!0,!1),h(s[v+1],!1,!0),h(s[v+2],!0,!0),v+=3,u=Af(n);var p={};for(i=0;i<n.length;++i)p[n[i].setid]=n[i];return p}function fB(e,r,t,n){var i=[],a=[];for(var o in e)e.hasOwnProperty(o)&&(a.push(o),i.push(e[o]));r-=2*n,t-=2*n;var s=Af(i),l=s.xRange,u=s.yRange;if(l.max==l.min||u.max==u.min)return console.log("not scaling solution: zero size detected"),e;for(var c=r/(l.max-l.min),h=t/(u.max-u.min),v=Math.min(h,c),p=(r-(l.max-l.min)*v)/2,g=(t-(u.max-u.min)*v)/2,y={},x=0;x<i.length;++x){var m=i[x];y[a[x]]={radius:v*m.radius,x:n+p+(m.x-l.min)*v,y:n+g+(m.y-u.min)*v}}return y}var hB=(0,f.HP)(function(e,r,t,n){var i=new Map,a=e.length;return r.forEach(function(o,s){if(o[n].length===1)i.set(o[Xn],e[(s+a)%a]);else{var l=o[n].map(function(u){return i.get(u)});i.set(o[Xn],l.slice(1).reduce(function(u,c){return $O(u,c,t)},l[0]))}}),i},function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return JSON.stringify(e)});function vB(e,r,t,n){n===void 0&&(n=0);var i=e.data,a=e.setsField,o=e.sizeField;if(i.length===0)return Vn(fn.WARN,!1,"warn: %s","\u6570\u636E\u4E0D\u80FD\u4E3A\u7A7A"),[];var s=i.map(function(h){var v;return(0,d.pi)((0,d.pi)({},h),(v={sets:h[a]||[],size:h[o]},v[yf]="",v[Xn]="",v))});s.sort(function(h,v){return h.sets.length-v.sets.length});var l=rB(s),u=fB(l,r,t,n),c=QO(u,s);return s.forEach(function(h){var v=h.sets,p=v.join(",");h[Xn]=p;var g=v.map(function(m){return u[m]}),y=eB(g);/[zZ]$/.test(y)||(y+=" Z"),h[yf]=y;var x=c[p]||{x:0,y:0};(0,f.f0)(h,x)}),s}function pB(e,r){for(var t=0;t<r.length;t++)if(!e.includes(r[t]))return!1;return!0}var dB=40;function Ly(e,r,t){var n=e.chart,i=e.options,a=i.blendMode,o=i.setsField,s=n.getTheme(),l=s.colors10,u=s.colors20,c=t;(0,f.kJ)(c)||(c=r.filter(function(v){return v[o].length===1}).length<=10?l:u);var h=hB(c,r,a,o);return function(v){return h.get(v)||c[0]}}function gB(e,r){var t=e.options,n=t.color;if(typeof n!="function"){var i=typeof n=="string"?[n]:n,a=Ly(e,r,i);return function(o){return a(o[Xn])}}return n}function yB(e){var r=e.chart,t=e.options,n=t.legend,i=t.appendPadding,a=t.padding,o=hi(i);return n!==!1&&(o=Ks(i,(0,f.U2)(n,"position"),dB)),r.appendPadding=Oc([o,a]),e}function mB(e){var r=e.options,t=r.data;t||(Vn(fn.WARN,!1,"warn: %s","\u6570\u636E\u4E0D\u80FD\u4E3A\u7A7A"),t=[]);var n=t.filter(function(a){return a.sets.length===1}).map(function(a){return a.sets[0]}),i=t.filter(function(a){var o=a.sets;return pB(n,o)});return(0,f.Xy)(i,t)||Vn(fn.WARN,!1,"warn: %s","\u4EA4\u96C6\u4E2D\u4E0D\u80FD\u51FA\u73B0\u4E0D\u5B58\u5728\u7684\u96C6\u5408, \u8BF7\u8F93\u5165\u5408\u6CD5\u6570\u636E"),(0,f.b$)({},e,{options:{data:i}})}function xB(e){var r=e.chart,t=e.options,n=t.pointStyle,i=t.setsField,a=t.sizeField,o=hi(r.appendPadding),s=o[0],l=o[1],u=o[2],c=o[3],h={offsetX:c,offsetY:s},v=r.viewBBox,p=v.width,g=v.height,y=vB(t,Math.max(p-(l+c),0),Math.max(g-(s+u),0),0);r.data(y);var x=Vc(It({},e,{options:{xField:"x",yField:"y",sizeField:a,seriesField:Xn,rawFields:[i,a],schema:{shape:"venn",style:n}}})).ext,m=x.geometry;m.customInfo(h);var w=gB(e,y);return typeof w=="function"&&m.color(Xn,function(M){var S=y.find(function(D){return D[Xn]===M}),A=Ly(e,y)(M);return w(S,A)}),e}function wB(e){var r=e.chart,t=e.options,n=t.label,i=hi(r.appendPadding),a=i[0],o=i[3],s={offsetX:o,offsetY:a},l=Tr(r,"schema");if(!n)l.label(!1);else{var u=n.callback,c=(0,d._T)(n,["callback"]);l.label({fields:["id"],callback:u,cfg:(0,f.b$)({},Sr(c),{type:"venn",customLabelInfo:s})})}return e}function MB(e){var r=e.chart,t=e.options,n=t.legend,i=t.sizeField;return r.legend(Xn,n),r.legend(i,!1),e}function SB(e){var r=e.chart;return r.axis(!1),e}function CB(e){var r=e.options,t=e.chart,n=r.interactions;if(n){var i={"legend-active":"venn-legend-active","legend-highlight":"venn-legend-highlight"};or(It({},e,{options:{interactions:n.map(function(a){return(0,d.pi)((0,d.pi)({},a),{type:i[a.type]||a.type})})}}))}return t.removeInteraction("legend-active"),t.removeInteraction("legend-highlight"),e}function bB(e){return Fe(yB,We,mB,xB,wB,ur({}),MB,SB,yr,CB,tr)(e)}var lN=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="venn",t}return r.getDefaultOptions=function(){return MO},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return bB},r.prototype.triggerResize=function(){this.chart.destroyed||(this.chart.forceFit(),this.chart.clear(),this.execAdaptor(),this.chart.render(!0))},r}(Oe),rn="x",Wi="violinY",AB="violinSize",Py="minMax",ky="quantile",Dy="median",Tf="violin_view",TB="min_max_view",EB="quantile_view",_B="median_view",FB=It({},Oe.getDefaultOptions(),{syncViewPadding:!0,kde:{type:"triangular",sampleSize:32,width:3},violinStyle:{lineWidth:1,fillOpacity:.3,strokeOpacity:.75},xAxis:{grid:{line:null},tickLine:{alignTick:!1}},yAxis:{grid:{line:{style:{lineWidth:.5,lineDash:[4,4]}}}},legend:{position:"top-left"},tooltip:{showMarkers:!1}}),IB=et(53843),LB=et.n(IB);function Oy(e,r){var t=e.length*r;if(e.length===0)throw new Error("quantile requires at least one data point.");if(r<0||r>1)throw new Error("quantiles must be between 0 and 1");return r===1?e[e.length-1]:r===0?e[0]:t%1!=0?e[Math.ceil(t)-1]:e.length%2==0?(e[t-1]+e[t])/2:e[t]}function _o(e,r,t){var n=e[r];e[r]=e[t],e[t]=n}function bl(e,r,t,n){for(t=t||0,n=n||e.length-1;n>t;){if(n-t>600){var i=n-t+1,a=r-t+1,o=Math.log(i),s=.5*Math.exp(2*o/3),l=.5*Math.sqrt(o*s*(i-s)/i);a-i/2<0&&(l*=-1);var u=Math.max(t,Math.floor(r-a*s/i+l)),c=Math.min(n,Math.floor(r+(i-a)*s/i+l));bl(e,r,u,c)}var h=e[r],v=t,p=n;for(_o(e,t,r),e[n]>h&&_o(e,t,n);v<p;){for(_o(e,v,p),v++,p--;e[v]<h;)v++;for(;e[p]>h;)p--}e[t]===h?_o(e,t,p):(p++,_o(e,p,n)),p<=r&&(t=p+1),r<=p&&(n=p-1)}}function Fo(e,r){var t=e.slice();if(Array.isArray(r)){PB(t,r);for(var n=[],i=0;i<r.length;i++)n[i]=Oy(t,r[i]);return n}else{var a=Ry(t.length,r);return By(t,a,0,t.length-1),Oy(t,r)}}function By(e,r,t,n){r%1==0?bl(e,r,t,n):(r=Math.floor(r),bl(e,r,t,n),bl(e,r+1,r+1,n))}function PB(e,r){for(var t=[0],n=0;n<r.length;n++)t.push(Ry(e.length,r[n]));t.push(e.length-1),t.sort(kB);for(var i=[0,t.length-1];i.length;){var a=Math.ceil(i.pop()),o=Math.floor(i.pop());if(!(a-o<=1)){var s=Math.floor((o+a)/2);By(e,t[s],Math.floor(t[o]),Math.ceil(t[a])),i.push(o,s,s,a)}}}function kB(e,r){return e-r}function Ry(e,r){var t=e*r;return r===1?e-1:r===0?0:t%1!=0?Math.ceil(t)-1:e%2==0?t-.5:t}var Ny=function(e){return{low:(0,f.VV)(e),high:(0,f.Fp)(e),q1:Fo(e,.25),q3:Fo(e,.75),median:Fo(e,[.5]),minMax:[(0,f.VV)(e),(0,f.Fp)(e)],quantile:[Fo(e,.25),Fo(e,.75)]}},zy=function(e,r){var t=LB().create(e,r);return{violinSize:t.map(function(n){return n.y}),violinY:t.map(function(n){return n.x})}},Vy=function(e){var r=e.xField,t=e.yField,n=e.seriesField,i=e.data,a=e.kde,o={min:a.min,max:a.max,size:a.sampleSize,width:a.width};if(!n){var s=(0,f.vM)(i,r);return Object.keys(s).map(function(c){var h=s[c],v=h.map(function(p){return p[t]});return(0,d.pi)((0,d.pi)({x:c},zy(v,o)),Ny(v))})}var l=[],u=(0,f.vM)(i,n);return Object.keys(u).forEach(function(c){var h=(0,f.vM)(u[c],r);return Object.keys(h).forEach(function(v){var p,g=h[v],y=g.map(function(x){return x[t]});l.push((0,d.pi)((0,d.pi)((p={x:v},p[n]=c,p),zy(y,o)),Ny(y)))})}),l},Al=["low","high","q1","q3","median"],Tl=[{type:"dodge",marginRatio:1/32}];function DB(e){var r=e.chart,t=e.options;return r.data(Vy(t)),e}function OB(e){var r=e.chart,t=e.options,n=t.seriesField,i=t.color,a=t.shape,o=a===void 0?"violin":a,s=t.violinStyle,l=t.tooltip,u=t.state,c=r.createView({id:Tf});return F_({chart:c,options:{xField:rn,yField:Wi,seriesField:n||rn,sizeField:AB,tooltip:(0,d.pi)({fields:Al},l),violin:{style:s,color:i,shape:o},state:u}}),c.geometries[0].adjust(Tl),e}function BB(e){var r=e.chart,t=e.options,n=t.seriesField,i=t.color,a=t.tooltip,o=t.box;if(o===!1)return e;var s=r.createView({id:TB});Er({chart:s,options:{xField:rn,yField:Py,seriesField:n||rn,tooltip:(0,d.pi)({fields:Al},a),state:typeof o=="object"?o.state:{},interval:{color:i,size:1,style:{lineWidth:0}}}}),s.geometries[0].adjust(Tl);var l=r.createView({id:EB});Er({chart:l,options:{xField:rn,yField:ky,seriesField:n||rn,tooltip:(0,d.pi)({fields:Al},a),state:typeof o=="object"?o.state:{},interval:{color:i,size:8,style:{fillOpacity:1}}}}),l.geometries[0].adjust(Tl);var u=r.createView({id:_B});return qr({chart:u,options:{xField:rn,yField:Dy,seriesField:n||rn,tooltip:(0,d.pi)({fields:Al},a),state:typeof o=="object"?o.state:{},point:{color:i,size:1,style:{fill:"white",lineWidth:0}}}}),u.geometries[0].adjust(Tl),l.axis(!1),s.axis(!1),u.axis(!1),u.legend(!1),s.legend(!1),l.legend(!1),e}function RB(e){var r,t=e.chart,n=e.options,i=n.meta,a=n.xAxis,o=n.yAxis,s={},l=It(s,i,(r={},r[rn]=(0,d.pi)((0,d.pi)({sync:!0},Qe(a,Hr)),{type:"cat"}),r[Wi]=(0,d.pi)({sync:!0},Qe(o,Hr)),r[Py]=(0,d.pi)({sync:Wi},Qe(o,Hr)),r[ky]=(0,d.pi)({sync:Wi},Qe(o,Hr)),r[Dy]=(0,d.pi)({sync:Wi},Qe(o,Hr)),r));return t.scale(l),e}function NB(e){var r=e.chart,t=e.options,n=t.xAxis,i=t.yAxis,a=Ue(r,Tf);return n===!1?a.axis(rn,!1):a.axis(rn,n),i===!1?a.axis(Wi,!1):a.axis(Wi,i),r.axis(!1),e}function zB(e){var r=e.chart,t=e.options,n=t.legend,i=t.seriesField,a=t.shape;if(n===!1)r.legend(!1);else{var o=i||rn,s=(0,f.CE)(n,["selected"]);(!a||!a.startsWith("hollow"))&&((0,f.U2)(s,["marker","style","lineWidth"])||(0,f.t8)(s,["marker","style","lineWidth"],0)),r.legend(o,s),(0,f.U2)(n,"selected")&&(0,f.S6)(r.views,function(l){return l.legend(o,n)})}return e}function VB(e){var r=e.chart,t=Ue(r,Tf);return sr()((0,d.pi)((0,d.pi)({},e),{chart:t})),e}function UB(e){var r=e.chart,t=e.options,n=t.animation;return(0,f.S6)(r.views,function(i){vo(i,n)}),e}function HB(e){return Fe(We,DB,OB,BB,RB,yr,NB,zB,or,VB,UB)(e)}var uN=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="violin",t}return r.getDefaultOptions=function(){return FB},r.prototype.changeData=function(t){this.updateOption({data:t}),this.chart.changeData(Vy(this.options))},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return HB},r}(Oe),nn="$$yField$$",El="$$diffField$$",Ef="$$absoluteField$$",_f="$$isTotal$$",GB={label:{},leaderLine:{style:{lineWidth:1,stroke:"#8c8c8c",lineDash:[4,2]}},total:{style:{fill:"rgba(0, 0, 0, 0.25)"}},interactions:[{type:"element-active"}],risingFill:"#f4664a",fallingFill:"#30bf78",waterfallStyle:{fill:"rgba(0, 0, 0, 0.25)"},yAxis:{grid:{line:{style:{lineDash:[4,2]}}}}};function YB(e){for(var r=[],t=0;t<e.length;t++){var n=e[t];if(n){var i=t===0?"M":"L";r.push([i,n.x,n.y])}}var a=e[0];return r.push(["L",a.x,a.y]),r.push(["z"]),r}function XB(e){return It({},e.defaultStyle,e.style,{fill:e.color})}$e("interval","waterfall",{draw:function(e,r){var t=e.customInfo,n=e.points,i=e.nextPoints,a=r.addGroup(),o=this.parsePath(YB(n)),s=XB(e);a.addShape("path",{attrs:(0,d.pi)((0,d.pi)({},s),{path:o})});var l=(0,f.U2)(t,"leaderLine");if(l&&i){var u=[["M",n[2].x,n[2].y],["L",i[0].x,i[0].y]];n[2].y===i[1].y&&(u[1]=["L",i[1].x,i[1].y]),u=this.parsePath(u),a.addShape("path",{attrs:(0,d.pi)({path:u},l.style||{})})}return a}});function WB(e,r,t,n,i){var a,o=[];if((0,f.u4)(e,function(l,u){var c;Vn(fn.WARN,(0,f.hj)(u[t]),u[t]+" is not a valid number");var h=(0,f.o8)(u[t])?null:u[t];return o.push((0,d.pi)((0,d.pi)({},u),(c={},c[n]=[l,l+h],c))),l+h},0),o.length&&i){var s=(0,f.U2)(o,[[e.length-1],n,[1]]);o.push((a={},a[r]=i.label,a[t]=s,a[n]=[0,s],a))}return o}function Uy(e,r,t,n){var i=WB(e,r,t,nn,n);return i.map(function(a,o){var s;return(0,f.Kn)(a)?(0,d.pi)((0,d.pi)({},a),(s={},s[Ef]=a[nn][1],s[El]=a[nn][1]-a[nn][0],s[_f]=o===e.length,s)):a})}function ZB(e){var r=e.options,t=r.locale,n=r.total,i=el(t).get(["waterfall","total"]);return n&&typeof n.label!="string"&&i&&(e.options.total.label=i),e}function qB(e){var r=e.chart,t=e.options,n=t.data,i=t.xField,a=t.yField,o=t.total,s=t.leaderLine,l=t.columnWidthRatio,u=t.waterfallStyle,c=t.risingFill,h=t.fallingFill,v=t.color;r.data(Uy(n,i,a,o));var p=v||function(m){return(0,f.U2)(m,[_f])?(0,f.U2)(o,["style","fill"],""):(0,f.U2)(m,[nn,1])-(0,f.U2)(m,[nn,0])>0?c:h},g=It({},e,{options:{xField:i,yField:nn,seriesField:i,rawFields:[a,El,_f,nn],widthRatio:l,interval:{style:u,shape:"waterfall",color:p}}}),y=Er(g).ext,x=y.geometry;return x.customInfo({leaderLine:s}),e}function $B(e){var r,t,n=e.options,i=n.xAxis,a=n.yAxis,o=n.xField,s=n.yField,l=n.meta,u=It({},{alias:s},(0,f.U2)(l,s));return Fe(ur((r={},r[o]=i,r[s]=a,r[nn]=a,r),It({},l,(t={},t[nn]=u,t[El]=u,t[Ef]=u,t))))(e)}function jB(e){var r=e.chart,t=e.options,n=t.xAxis,i=t.yAxis,a=t.xField,o=t.yField;return n===!1?r.axis(a,!1):r.axis(a,n),i===!1?(r.axis(o,!1),r.axis(nn,!1)):(r.axis(o,i),r.axis(nn,i)),e}function KB(e){var r=e.chart,t=e.options,n=t.legend,i=t.total,a=t.risingFill,o=t.fallingFill,s=t.locale,l=el(s);if(n===!1)r.legend(!1);else{var u=[{name:l.get(["general","increase"]),value:"increase",marker:{symbol:"square",style:{r:5,fill:a}}},{name:l.get(["general","decrease"]),value:"decrease",marker:{symbol:"square",style:{r:5,fill:o}}}];i&&u.push({name:i.label||"",value:"total",marker:{symbol:"square",style:It({},{r:5},(0,f.U2)(i,"style"))}}),r.legend(It({},{custom:!0,position:"top",items:u},n)),r.removeInteraction("legend-filter")}return e}function JB(e){var r=e.chart,t=e.options,n=t.label,i=t.labelMode,a=t.xField,o=Tr(r,"interval");if(!n)o.label(!1);else{var s=n.callback,l=(0,d._T)(n,["callback"]);o.label({fields:i==="absolute"?[Ef,a]:[El,a],callback:s,cfg:Sr(l)})}return e}function QB(e){var r=e.chart,t=e.options,n=t.tooltip,i=t.xField,a=t.yField;if(n!==!1){r.tooltip((0,d.pi)({showCrosshairs:!1,showMarkers:!1,shared:!0,fields:[a]},n));var o=r.geometries[0];(n==null?void 0:n.formatter)?o.tooltip(i+"*"+a,n.formatter):o.tooltip(a)}else r.tooltip(!1);return e}function tR(e){return Fe(ZB,We,qB,$B,jB,KB,QB,JB,vi,or,tr,sr())(e)}var cN=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="waterfall",t}return r.getDefaultOptions=function(){return GB},r.prototype.changeData=function(t){var n=this.options,i=n.xField,a=n.yField,o=n.total;this.updateOption({data:t}),this.chart.changeData(Uy(t,i,a,o))},r.prototype.getSchemaAdaptor=function(){return tR},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r}(Oe),Ff="color",eR=It({},Oe.getDefaultOptions(),{timeInterval:2e3,legend:!1,tooltip:{showTitle:!1,showMarkers:!1,showCrosshairs:!1,fields:["text","value",Ff],formatter:function(e){return{name:e.text,value:e.value}}},wordStyle:{fontFamily:"Verdana",fontWeight:"normal",padding:1,fontSize:[12,60],rotation:[0,90],rotationSteps:2,rotateRatio:.5}}),rR={font:function(){return"serif"},padding:1,size:[500,500],spiral:"archimedean",timeInterval:3e3};function nR(e,r){return r=(0,f.f0)({},rR,r),iR(e,r)}function iR(e,r){var t=yR();["font","fontSize","fontWeight","padding","rotate","size","spiral","timeInterval","random"].forEach(function(l){(0,f.UM)(r[l])||t[l](r[l])}),t.words(e),r.imageMask&&t.createMask(r.imageMask);var n=t.start(),i=n._tags;i.forEach(function(l){l.x+=r.size[0]/2,l.y+=r.size[1]/2});var a=r.size,o=a[0],s=a[1];return i.push({text:"",value:0,x:0,y:0,opacity:0}),i.push({text:"",value:0,x:o,y:s,opacity:0}),i}var If=Math.PI/180,Io=1<<11>>5,_l=1<<11;function aR(e){return e.text}function oR(){return"serif"}function Hy(){return"normal"}function sR(e){return e.value}function lR(){return~~(Math.random()*2)*90}function uR(){return 1}function cR(e,r,t,n){if(!r.sprite){var i=e.context,a=e.ratio;i.clearRect(0,0,(Io<<5)/a,_l/a);var o=0,s=0,l=0,u=t.length;for(--n;++n<u;){r=t[n],i.save(),i.font=r.style+" "+r.weight+" "+~~((r.size+1)/a)+"px "+r.font;var c=i.measureText(r.text+"m").width*a,h=r.size<<1;if(r.rotate){var v=Math.sin(r.rotate*If),p=Math.cos(r.rotate*If),g=c*p,y=c*v,x=h*p,m=h*v;c=Math.max(Math.abs(g+m),Math.abs(g-m))+31>>5<<5,h=~~Math.max(Math.abs(y+x),Math.abs(y-x))}else c=c+31>>5<<5;if(h>l&&(l=h),o+c>=Io<<5&&(o=0,s+=l,l=0),s+h>=_l)break;i.translate((o+(c>>1))/a,(s+(h>>1))/a),r.rotate&&i.rotate(r.rotate*If),i.fillText(r.text,0,0),r.padding&&(i.lineWidth=2*r.padding,i.strokeText(r.text,0,0)),i.restore(),r.width=c,r.height=h,r.xoff=o,r.yoff=s,r.x1=c>>1,r.y1=h>>1,r.x0=-r.x1,r.y0=-r.y1,r.hasText=!0,o+=c}for(var w=i.getImageData(0,0,(Io<<5)/a,_l/a).data,M=[];--n>=0;)if(r=t[n],!!r.hasText){for(var c=r.width,S=c>>5,h=r.y1-r.y0,A=0;A<h*S;A++)M[A]=0;if(o=r.xoff,o==null)return;s=r.yoff;for(var D=0,V=-1,K=0;K<h;K++){for(var A=0;A<c;A++){var Mt=S*K+(A>>5),ot=w[(s+K)*(Io<<5)+(o+A)<<2]?1<<31-A%32:0;M[Mt]|=ot,D|=ot}D?V=K:(r.y0++,h--,K--,s++)}r.y1=r.y0+V,r.sprite=M.slice(0,(r.y1-r.y0)*S)}}}function fR(e,r,t){t>>=5;for(var n=e.sprite,i=e.width>>5,a=e.x-(i<<4),o=a&127,s=32-o,l=e.y1-e.y0,u=(e.y+e.y0)*t+(a>>5),c,h=0;h<l;h++){c=0;for(var v=0;v<=i;v++)if((c<<s|(v<i?(c=n[h*i+v])>>>o:0))&r[u+v])return!0;u+=t}return!1}function hR(e,r){var t=e[0],n=e[1];r.x+r.x0<t.x&&(t.x=r.x+r.x0),r.y+r.y0<t.y&&(t.y=r.y+r.y0),r.x+r.x1>n.x&&(n.x=r.x+r.x1),r.y+r.y1>n.y&&(n.y=r.y+r.y1)}function vR(e,r){return e.x+e.x1>r[0].x&&e.x+e.x0<r[1].x&&e.y+e.y1>r[0].y&&e.y+e.y0<r[1].y}function Gy(e){var r=e[0]/e[1];return function(t){return[r*(t*=.1)*Math.cos(t),t*Math.sin(t)]}}function pR(e){var r=4,t=r*e[0]/e[1],n=0,i=0;return function(a){var o=a<0?-1:1;switch(Math.sqrt(1+4*o*a)-o&3){case 0:n+=t;break;case 1:i+=r;break;case 2:n-=t;break;default:i-=r;break}return[n,i]}}function Yy(e){for(var r=[],t=-1;++t<e;)r[t]=0;return r}function dR(){return document.createElement("canvas")}function En(e){return(0,f.mf)(e)?e:function(){return e}}var gR={archimedean:Gy,rectangular:pR};function yR(){var e=[256,256],r=oR,t=sR,n=Hy,i=lR,a=uR,o=Gy,s=Math.random,l=[],u=Infinity,c=aR,h=Hy,v=dR,p={};p.start=function(){var x=e[0],m=e[1],w=g(v()),M=p.board?p.board:Yy((e[0]>>5)*e[1]),S=l.length,A=[],D=l.map(function(ot,Lt,Qt){return ot.text=c.call(this,ot,Lt,Qt),ot.font=r.call(this,ot,Lt,Qt),ot.style=h.call(this,ot,Lt,Qt),ot.weight=n.call(this,ot,Lt,Qt),ot.rotate=i.call(this,ot,Lt,Qt),ot.size=~~t.call(this,ot,Lt,Qt),ot.padding=a.call(this,ot,Lt,Qt),ot}).sort(function(ot,Lt){return Lt.size-ot.size}),V=-1,K=p.board?[{x:0,y:0},{x,y:m}]:null;Mt();function Mt(){for(var ot=Date.now();Date.now()-ot<u&&++V<S;){var Lt=D[V];Lt.x=x*(s()+.5)>>1,Lt.y=m*(s()+.5)>>1,cR(w,Lt,D,V),Lt.hasText&&y(M,Lt,K)&&(A.push(Lt),K?p.hasImage||hR(K,Lt):K=[{x:Lt.x+Lt.x0,y:Lt.y+Lt.y0},{x:Lt.x+Lt.x1,y:Lt.y+Lt.y1}],Lt.x-=e[0]>>1,Lt.y-=e[1]>>1)}p._tags=A,p._bounds=K}return p};function g(x){x.width=x.height=1;var m=Math.sqrt(x.getContext("2d",{willReadFrequently:!0}).getImageData(0,0,1,1).data.length>>2);x.width=(Io<<5)/m,x.height=_l/m;var w=x.getContext("2d",{willReadFrequently:!0});return w.fillStyle=w.strokeStyle="red",w.textAlign="center",{context:w,ratio:m}}function y(x,m,w){for(var M=m.x,S=m.y,A=Math.sqrt(e[0]*e[0]+e[1]*e[1]),D=o(e),V=s()<.5?1:-1,K,Mt=-V,ot,Lt;(K=D(Mt+=V))&&(ot=~~K[0],Lt=~~K[1],!(Math.min(Math.abs(ot),Math.abs(Lt))>=A));)if(m.x=M+ot,m.y=S+Lt,!(m.x+m.x0<0||m.y+m.y0<0||m.x+m.x1>e[0]||m.y+m.y1>e[1])&&(!w||!fR(m,x,e[0]))&&(!w||vR(m,w))){for(var Qt=m.sprite,ge=m.width>>5,we=e[0]>>5,Ae=m.x-(ge<<4),zt=Ae&127,ie=32-zt,fe=m.y1-m.y0,ue=void 0,he=(m.y+m.y0)*we+(Ae>>5),Te=0;Te<fe;Te++){ue=0;for(var Be=0;Be<=ge;Be++)x[he+Be]|=ue<<ie|(Be<ge?(ue=Qt[Te*ge+Be])>>>zt:0);he+=we}return delete m.sprite,!0}return!1}return p.createMask=function(x){var m=document.createElement("canvas"),w=e[0],M=e[1];if(!(!w||!M)){var S=w>>5,A=Yy((w>>5)*M);m.width=w,m.height=M;var D=m.getContext("2d");D.drawImage(x,0,0,x.width,x.height,0,0,w,M);for(var V=D.getImageData(0,0,w,M).data,K=0;K<M;K++)for(var Mt=0;Mt<w;Mt++){var ot=S*K+(Mt>>5),Lt=K*w+Mt<<2,Qt=V[Lt]>=250&&V[Lt+1]>=250&&V[Lt+2]>=250,ge=Qt?1<<31-Mt%32:0;A[ot]|=ge}p.board=A,p.hasImage=!0}},p.timeInterval=function(x){u=x==null?Infinity:x},p.words=function(x){l=x},p.size=function(x){e=[+x[0],+x[1]]},p.font=function(x){r=En(x)},p.fontWeight=function(x){n=En(x)},p.rotate=function(x){i=En(x)},p.spiral=function(x){o=gR[x]||x},p.fontSize=function(x){t=En(x)},p.padding=function(x){a=En(x)},p.random=function(x){s=En(x)},p}function Xy(e){var r=e.options,t=e.chart,n=t,i=n.width,a=n.height,o=n.padding,s=n.appendPadding,l=n.ele,u=r.data,c=r.imageMask,h=r.wordField,v=r.weightField,p=r.colorField,g=r.wordStyle,y=r.timeInterval,x=r.random,m=r.spiral,w=r.autoFit,M=w===void 0?!0:w,S=r.placementStrategy;if(!u||!u.length)return[];var A=g.fontFamily,D=g.fontWeight,V=g.padding,K=g.fontSize,Mt=SR(u,v),ot=[AR(Mt),TR(Mt)],Lt=u.map(function(we){return{text:we[h],value:we[v],color:we[p],datum:we}}),Qt={imageMask:c,font:A,fontSize:MR(K,ot),fontWeight:D,size:mR({width:i,height:a,padding:o,appendPadding:s,autoFit:M,container:l}),padding:V,timeInterval:y,random:x,spiral:m,rotate:CR(r)};if((0,f.mf)(S)){var ge=Lt.map(function(we,Ae,zt){return(0,d.pi)((0,d.pi)((0,d.pi)({},we),{hasText:!!we.text,font:En(Qt.font)(we,Ae,zt),weight:En(Qt.fontWeight)(we,Ae,zt),rotate:En(Qt.rotate)(we,Ae,zt),size:En(Qt.fontSize)(we,Ae,zt),style:"normal"}),S.call(t,we,Ae,zt))});return ge.push({text:"",value:0,x:0,y:0,opacity:0}),ge.push({text:"",value:0,x:Qt.size[0],y:Qt.size[1],opacity:0}),ge}return nR(Lt,Qt)}function mR(e){var r=e.width,t=e.height,n=e.container,i=e.autoFit,a=e.padding,o=e.appendPadding;if(i){var s=kc(n);r=s.width,t=s.height}r=r||400,t=t||400;var l=xR({padding:a,appendPadding:o}),u=l[0],c=l[1],h=l[2],v=l[3],p=[r-(v+c),t-(u+h)];return p}function xR(e){var r=hi(e.padding),t=hi(e.appendPadding),n=r[0]+t[0],i=r[1]+t[1],a=r[2]+t[2],o=r[3]+t[3];return[n,i,a,o]}function wR(e){return new Promise(function(r,t){if(e instanceof HTMLImageElement){r(e);return}if((0,f.HD)(e)){var n=new Image;n.crossOrigin="anonymous",n.src=e,n.onload=function(){r(n)},n.onerror=function(){Vn(fn.ERROR,!1,"image %s load failed !!!",e),t()};return}Vn(fn.WARN,e===void 0,"The type of imageMask option must be String or HTMLImageElement."),t()})}function MR(e,r){if((0,f.mf)(e))return e;if((0,f.kJ)(e)){var t=e[0],n=e[1];if(!r)return function(){return(n+t)/2};var i=r[0],a=r[1];return a===i?function(){return(n+t)/2}:function(s){var l=s.value;return(n-t)/(a-i)*(l-i)+t}}return function(){return e}}function SR(e,r){return e.map(function(t){return t[r]}).filter(function(t){return typeof t=="number"&&!isNaN(t)})}function CR(e){var r=bR(e),t=r.rotation,n=r.rotationSteps;if(!(0,f.kJ)(t))return t;var i=t[0],a=t[1],o=n===1?0:(a-i)/(n-1);return function(){return a===i?a:Math.floor(Math.random()*n)*o}}function bR(e){var r=e.wordStyle.rotationSteps;return r<1&&(Vn(fn.WARN,!1,"The rotationSteps option must be greater than or equal to 1."),r=1),{rotation:e.wordStyle.rotation,rotationSteps:r}}function AR(e){return Math.min.apply(Math,e)}function TR(e){return Math.max.apply(Math,e)}function ER(e){var r=e.chart,t=e.options,n=t.colorField,i=t.color,a=Xy(e);r.data(a);var o=It({},e,{options:{xField:"x",yField:"y",seriesField:n&&Ff,rawFields:(0,f.mf)(i)&&(0,d.pr)((0,f.U2)(t,"rawFields",[]),["datum"]),point:{color:i,shape:"word-cloud"}}}),s=qr(o).ext;return s.geometry.label(!1),r.coordinate().reflect("y"),r.axis(!1),e}function _R(e){return Fe(ur({x:{nice:!1},y:{nice:!1}}))(e)}function FR(e){var r=e.chart,t=e.options,n=t.legend,i=t.colorField;return n===!1?r.legend(!1):i&&r.legend(Ff,n),e}function IR(e){Fe(ER,_R,yr,FR,or,tr,We,vi)(e)}$e("point","word-cloud",{draw:function(e,r){var t=e.x,n=e.y,i=r.addShape("text",{attrs:(0,d.pi)((0,d.pi)({},LR(e)),{x:t,y:n})}),a=e.data.rotate;return typeof a=="number"&&Vr.rotate(i,a*Math.PI/180),i}});function LR(e){return{fontSize:e.data.size,text:e.data.text,textAlign:"center",fontFamily:e.data.font,fontWeight:e.data.weight,fill:e.color||e.defaultStyle.stroke,textBaseline:"alphabetic"}}var fN=function(e){(0,d.ZT)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="word-cloud",t}return r.getDefaultOptions=function(){return eR},r.prototype.changeData=function(t){this.updateOption({data:t}),this.options.imageMask?this.render():this.chart.changeData(Xy({chart:this.chart,options:this.options}))},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.render=function(){var t=this;return new Promise(function(n){var i=t.options.imageMask;if(!i){e.prototype.render.call(t),n();return}var a=function(o){t.options=(0,d.pi)((0,d.pi)({},t.options),{imageMask:o||null}),e.prototype.render.call(t),n()};wR(i).then(a).catch(a)})},r.prototype.getSchemaAdaptor=function(){return IR},r.prototype.triggerResize=function(){var t=this;this.chart.destroyed||(this.execAdaptor(),window.setTimeout(function(){e.prototype.triggerResize.call(t)}))},r}(Oe),hN=function(e){(0,d.ZT)(r,e);function r(t,n,i,a){var o=e.call(this,t,It({},a,n))||this;return o.type="g2-plot",o.defaultOptions=a,o.adaptor=i,o}return r.prototype.getDefaultOptions=function(){return this.defaultOptions},r.prototype.getSchemaAdaptor=function(){return this.adaptor},r}(Oe),vN="2.4.25";cg("en-US",T_),cg("zh-CN",E_);var pN={scale:ur,legend:Ri,tooltip:yr,annotation:sr,interaction:or,theme:We,animation:tr}},31506:function(_e,ee,et){"use strict";et.d(ee,{m$:function(){return Kt},zu:function(){return kt},lh:function(){return Tt},vs:function(){return ct},Dg:function(){return xt}});var ht=et(35600),dt=et(31437);function Kt(Ot,Pt,gt){var d=[0,0,0,0,0,0,0,0,0];return ht.vc(d,gt),ht.Jp(Ot,d,Pt)}function kt(Ot,Pt,gt){var d=[0,0,0,0,0,0,0,0,0];return ht.Us(d,gt),ht.Jp(Ot,d,Pt)}function Tt(Ot,Pt,gt){var d=[0,0,0,0,0,0,0,0,0];return ht.xJ(d,gt),ht.Jp(Ot,d,Pt)}function mt(Ot,Pt,gt){return ht.Jp(Ot,gt,Pt)}function ct(Ot,Pt){for(var gt=Ot?[].concat(Ot):[1,0,0,0,1,0,0,0,1],d=0,f=Pt.length;d<f;d++){var rt=Pt[d];switch(rt[0]){case"t":Kt(gt,gt,[rt[1],rt[2]]);break;case"s":Tt(gt,gt,[rt[1],rt[2]]);break;case"r":kt(gt,gt,rt[1]);break;case"m":mt(gt,gt,rt[1]);break;default:break}}return gt}function vt(Ot,Pt){return Ot[0]*Pt[1]-Pt[0]*Ot[1]}function xt(Ot,Pt,gt){var d=dt.EU(Ot,Pt),f=vt(Ot,Pt)>=0;return gt?f?Math.PI*2-d:d:f?d:Math.PI*2-d}function jt(Ot,Pt,gt){return gt?(Ot[0]=Pt[1],Ot[1]=-1*Pt[0]):(Ot[0]=-1*Pt[1],Ot[1]=Pt[0]),Ot}},41694:function(_e,ee,et){"use strict";et.d(ee,{Ct:function(){return Si},f0:function(){return Fa},uZ:function(){return xe},VS:function(){return zl},d9:function(){return No},FX:function(){return kt},Ds:function(){return mn},b$:function(){return Uo},e5:function(){return vt},S6:function(){return St},yW:function(){return _r},hX:function(){return mt},sE:function(){return Dt},cx:function(){return Ht},Wx:function(){return U},ri:function(){return me},xH:function(){return F},U5:function(){return H},U2:function(){return Zo},Lo:function(){return Dn},rx:function(){return N},ru:function(){return Vt},vM:function(){return yt},Ms:function(){return Ft},wH:function(){return Y},YM:function(){return Zt},q9:function(){return kt},cq:function(){return Go},kJ:function(){return f},jn:function(){return $i},J_:function(){return Il},kK:function(){return Nl},xb:function(){return _a},Xy:function(){return Yo},mf:function(){return Pt},BD:function(){return _t},UM:function(){return d},Ft:function(){return Pl},hj:function(){return Me},vQ:function(){return xr},Kn:function(){return rt},PO:function(){return Se},HD:function(){return Q},P9:function(){return Ot},o8:function(){return Rl},XP:function(){return X},Z$:function(){return Gt},vl:function(){return De},UI:function(){return Xl},Q8:function(){return Wo},Fp:function(){return Z},UT:function(){return on},HP:function(){return zo},VV:function(){return nt},F:function(){return vn},CD:function(){return Fa},wQ:function(){return dn},ZT:function(){return Ko},CE:function(){return $o},ei:function(){return qo},u4:function(){return z},Od:function(){return j},U7:function(){return Kr},t8:function(){return Wl},dp:function(){return Jo},G:function(){return q},MR:function(){return qt},ng:function(){return wr},P2:function(){return jo},qo:function(){return Zl},c$:function(){return $n},BB:function(){return ce},jj:function(){return Yt},EL:function(){return ql},jC:function(){return gn},VO:function(){return Bt},I:function(){return ne}});var ht=function(P){return P!==null&&typeof P!="function"&&isFinite(P.length)},dt=ht,Kt=function(P,$){return dt(P)?P.indexOf($)>-1:!1},kt=Kt,Tt=function(P,$){if(!dt(P))return P;for(var ft=[],bt=0;bt<P.length;bt++){var Wt=P[bt];$(Wt,bt)&&ft.push(Wt)}return ft},mt=Tt,ct=function(P,$){return $===void 0&&($=[]),mt(P,function(ft){return!kt($,ft)})},vt=ct,xt={}.toString,jt=function(P,$){return xt.call(P)==="[object "+$+"]"},Ot=jt,Pt=function(P){return Ot(P,"Function")},gt=function(P){return P==null},d=gt,f=function(P){return Array.isArray?Array.isArray(P):Ot(P,"Array")},rt=function(P){var $=typeof P;return P!==null&&$==="object"||$==="function"};function J(P,$){if(!!P){var ft;if(f(P))for(var bt=0,Wt=P.length;bt<Wt&&(ft=$(P[bt],bt),ft!==!1);bt++);else if(rt(P)){for(var ve in P)if(P.hasOwnProperty(ve)&&(ft=$(P[ve],ve),ft===!1))break}}}var St=J,wt=Object.keys?function(P){return Object.keys(P)}:function(P){var $=[];return St(P,function(ft,bt){Pt(P)&&bt==="prototype"||$.push(bt)}),$},X=wt;function at(P,$){var ft=X($),bt=ft.length;if(d(P))return!bt;for(var Wt=0;Wt<bt;Wt+=1){var ve=ft[Wt];if($[ve]!==P[ve]||!(ve in P))return!1}return!0}var _t=at,Rt=function(P){return typeof P=="object"&&P!==null},$t=Rt,re=function(P){if(!$t(P)||!Ot(P,"Object"))return!1;if(Object.getPrototypeOf(P)===null)return!0;for(var $=P;Object.getPrototypeOf($)!==null;)$=Object.getPrototypeOf($);return Object.getPrototypeOf(P)===$},Se=re;function pt(P,$){if(!f(P))return null;var ft;if(Pt($)&&(ft=$),Se($)&&(ft=function(Wt){return _t(Wt,$)}),ft){for(var bt=0;bt<P.length;bt+=1)if(ft(P[bt]))return P[bt]}return null}var Dt=pt;function Jt(P,$,ft){ft===void 0&&(ft=0);for(var bt=ft;bt<P.length;bt++)if($(P[bt],bt))return bt;return-1}var Ht=Jt,At=function(P,$){for(var ft=null,bt=0;bt<P.length;bt++){var Wt=P[bt],ve=Wt[$];if(!d(ve)){f(ve)?ft=ve[0]:ft=ve;break}}return ft},U=At,C=function(P){if(!f(P))return[];for(var $=[],ft=0;ft<P.length;ft++)$=$.concat(P[ft]);return $},F=C,W=function(P,$){if($===void 0&&($=[]),!isArray(P))$.push(P);else for(var ft=0;ft<P.length;ft+=1)W(P[ft],$);return $},lt=null,Z=function(P){if(!!f(P))return P.reduce(function($,ft){return Math.max($,ft)},P[0])},nt=function(P){if(!!f(P))return P.reduce(function($,ft){return Math.min($,ft)},P[0])},T=function(P){var $=P.filter(function(Ee){return!isNaN(Ee)});if(!$.length)return{min:0,max:0};if(f(P[0])){for(var ft=[],bt=0;bt<P.length;bt++)ft=ft.concat(P[bt]);$=ft}var Wt=Z($),ve=nt($);return{min:ve,max:Wt}},N=T,O=Array.prototype,L=O.splice,tt=O.indexOf,it=function(P){for(var $=[],ft=1;ft<arguments.length;ft++)$[ft-1]=arguments[ft];for(var bt=0;bt<$.length;bt++)for(var Wt=$[bt],ve=-1;(ve=tt.call(P,Wt))>-1;)L.call(P,ve,1);return P},k=null,_=Array.prototype.splice,b=function($,ft){if(!dt($))return[];for(var bt=$?ft.length:0,Wt=bt-1;bt--;){var ve=void 0,Ee=ft[bt];(bt===Wt||Ee!==ve)&&(ve=Ee,_.call($,Ee,1))}return $},E=b,I=function(P,$,ft){if(!f(P)&&!Se(P))return P;var bt=ft;return St(P,function(Wt,ve){bt=$(bt,Wt,ve)}),bt},z=I,B=function(P,$){var ft=[];if(!dt(P))return ft;for(var bt=-1,Wt=[],ve=P.length;++bt<ve;){var Ee=P[bt];$(Ee,bt,P)&&(ft.push(Ee),Wt.push(bt))}return E(P,Wt),ft},j=B,Q=function(P){return Ot(P,"String")};function Ct(P,$){var ft;if(Pt($))ft=function(Wt,ve){return $(Wt)-$(ve)};else{var bt=[];Q($)?bt.push($):f($)&&(bt=$),ft=function(Wt,ve){for(var Ee=0;Ee<bt.length;Ee+=1){var Ke=bt[Ee];if(Wt[Ke]>ve[Ke])return 1;if(Wt[Ke]<ve[Ke])return-1}return 0}}return P.sort(ft),P}var qt=Ct;function Yt(P,$){$===void 0&&($=new Map);var ft=[];if(Array.isArray(P))for(var bt=0,Wt=P.length;bt<Wt;bt++){var ve=P[bt];$.has(ve)||(ft.push(ve),$.set(ve,!0))}return ft}var ne=function(P,$){for(var ft=[],bt={},Wt=0;Wt<P.length;Wt++){var ve=P[Wt],Ee=ve[$];if(!d(Ee)){f(Ee)||(Ee=[Ee]);for(var Ke=0;Ke<Ee.length;Ke++){var Mr=Ee[Ke];bt[Mr]||(ft.push(Mr),bt[Mr]=!0)}}}return ft};function Zt(P){if(dt(P))return P[0]}function Gt(P){if(dt(P)){var $=P;return $[$.length-1]}}function pe(P,$){return isArray(P)||isString(P)?P[0]===$:!1}var ke=null;function Ne(P,$){return isArray(P)||isString(P)?P[P.length-1]===$:!1}var Ve=null,fr=function(P,$){for(var ft=0;ft<P.length;ft++)if(!$(P[ft],ft))return!1;return!0},_r=fr,Fr=function(P,$){for(var ft=0;ft<P.length;ft++)if($(P[ft],ft))return!0;return!1},q=Fr,G=Object.prototype.hasOwnProperty;function st(P,$){if(!$||!f(P))return{};for(var ft={},bt=Pt($)?$:function(Ke){return Ke[$]},Wt,ve=0;ve<P.length;ve++){var Ee=P[ve];Wt=bt(Ee),G.call(ft,Wt)?ft[Wt].push(Ee):ft[Wt]=[Ee]}return ft}var yt=st;function Ft(P,$){if(!$)return{0:P};if(!Pt($)){var ft=f($)?$:$.replace(/\s+/g,"").split("*");$=function(bt){for(var Wt="_",ve=0,Ee=ft.length;ve<Ee;ve++)Wt+=bt[ft[ve]]&&bt[ft[ve]].toString();return Wt}}return yt(P,$)}var Vt=function(P,$){if(!$)return[P];var ft=Ft(P,$),bt=[];for(var Wt in ft)bt.push(ft[Wt]);return bt},Nt={};function Xt(P){var $=Nt[P];if(!$){for(var ft=P.toString(16),bt=ft.length;bt<6;bt++)ft="0"+ft;$="#"+ft,Nt[P]=$}return $}var Et=null;function te(P){var $=0,ft=0,bt=0,Wt=0;return isArray(P)?P.length===1?$=ft=bt=Wt=P[0]:P.length===2?($=bt=P[0],ft=Wt=P[1]):P.length===3?($=P[0],ft=Wt=P[1],bt=P[2]):($=P[0],ft=P[1],bt=P[2],Wt=P[3]):$=ft=bt=Wt=P,{r1:$,r2:ft,r3:bt,r4:Wt}}var Ut=null,de=function(P,$,ft){return P<$?$:P>ft?ft:P},xe=de,se=function(P,$){var ft=$.toString(),bt=ft.indexOf(".");if(bt===-1)return Math.round(P);var Wt=ft.substr(bt+1).length;return Wt>20&&(Wt=20),parseFloat(P.toFixed(Wt))},me=se,Ce=function(P){return Ot(P,"Number")},Me=Ce,ae=function(P){return isNumber(P)&&P%1!=0},Ie=null,Le=function(P){return isNumber(P)&&P%2==0},He=null,ze=Number.isInteger?Number.isInteger:function(P){return Me(P)&&P%1==0},qe=null,je=function(P){return isNumber(P)&&P<0},mr=null,br=1e-5;function xr(P,$,ft){return ft===void 0&&(ft=br),Math.abs(P-$)<ft}var Dr=function(P){return isNumber(P)&&P%2!=0},an=null,In=function(P){return isNumber(P)&&P>0},mi=null,on=function(P,$){if(!!f(P)){for(var ft,bt=-Infinity,Wt=0;Wt<P.length;Wt++){var ve=P[Wt],Ee=Pt($)?$(ve):ve[$];Ee>bt&&(ft=ve,bt=Ee)}return ft}},vn=function(P,$){if(!!f(P)){for(var ft,bt=Infinity,Wt=0;Wt<P.length;Wt++){var ve=P[Wt],Ee=Pt($)?$(ve):ve[$];Ee<bt&&(ft=ve,bt=Ee)}return ft}},pn=function(P,$){return(P%$+$)%$},dn=pn,Zn=180/Math.PI,xi=function(P){return Zn*P},qn=null,wi=parseInt,Po=Math.PI/180,ko=function(P){return Po*P},$n=ko,H=St,R=function(P,$){return P.hasOwnProperty($)},Y=R,ut=Object.values?function(P){return Object.values(P)}:function(P){var $=[];return St(P,function(ft,bt){Pt(P)&&bt==="prototype"||$.push(ft)}),$},Bt=ut,oe=function(P,$){return contains(values(P),$)},ce=function(P){return d(P)?"":P.toString()},le=function(P){return ce(P).toLowerCase()},De=le;function ir(P,$){return!P||!$?P:P.replace(/\\?\{([^{}]+)\}/g,function(ft,bt){return ft.charAt(0)==="\\"?ft.slice(1):$[bt]===void 0?"":$[bt]})}var wr=ir,Or=function(P){var $=ce(P);return $.charAt(0).toUpperCase()+$.substring(1)},gn=Or,Ln={}.toString,Yr=function(P){return Ln.call(P).replace(/^\[object /,"").replace(/]$/,"")},qi=Yr,Ea=function(P){return isType(P,"Arguments")},Do=null,Fl=function(P){return Ot(P,"Boolean")},$i=Fl,Oo=function(P){return Ot(P,"Date")},Il=Oo,Of=function(P){return isType(P,"Error")},Pn=null;function Bf(P){return isNumber(P)&&isFinite(P)}var Ll=function(P){return P===null},Pl=Ll,kl=Object.prototype,Dl=function(P){var $=P&&P.constructor,ft=typeof $=="function"&&$.prototype||kl;return P===ft},Ol=Dl,Rf=function(P){return isType(P,"RegExp")},Nf=null,Bl=function(P){return P===void 0},Rl=Bl,Bo=function(P){return P instanceof Element||P instanceof HTMLDocument},Nl=Bo;function Kr(P){var $=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(ft){return setTimeout(ft,16)};return $(P)}function zl(P){var $=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame||clearTimeout;$(P)}var Ro=function(){for(var P=[],$=0;$<arguments.length;$++)P[$]=arguments[$];for(var ft=P[0],bt=1;bt<P.length;bt++){var Wt=P[bt];isFunction(Wt)&&(Wt=Wt.prototype),mix(ft.prototype,Wt)}},zf=null,jn=function(P){if(typeof P!="object"||P===null)return P;var $;if(f(P)){$=[];for(var ft=0,bt=P.length;ft<bt;ft++)typeof P[ft]=="object"&&P[ft]!=null?$[ft]=jn(P[ft]):$[ft]=P[ft]}else{$={};for(var Wt in P)typeof P[Wt]=="object"&&P[Wt]!=null?$[Wt]=jn(P[Wt]):$[Wt]=P[Wt]}return $},No=jn;function yn(P,$,ft){var bt;return function(){var Wt=this,ve=arguments,Ee=function(){bt=null,ft||P.apply(Wt,ve)},Ke=ft&&!bt;clearTimeout(bt),bt=setTimeout(Ee,$),Ke&&P.apply(Wt,ve)}}var mn=yn,zo=function(P,$){if(!Pt(P))throw new TypeError("Expected a function");var ft=function(){for(var bt=[],Wt=0;Wt<arguments.length;Wt++)bt[Wt]=arguments[Wt];var ve=$?$.apply(this,bt):bt[0],Ee=ft.cache;if(Ee.has(ve))return Ee.get(ve);var Ke=P.apply(this,bt);return Ee.set(ve,Ke),Ke};return ft.cache=new Map,ft},Vl=5;function Kn(P,$,ft,bt){ft=ft||0,bt=bt||Vl;for(var Wt in $)if($.hasOwnProperty(Wt)){var ve=$[Wt];ve!==null&&Se(ve)?(Se(P[Wt])||(P[Wt]={}),ft<bt?Kn(P[Wt],ve,ft+1,bt):P[Wt]=$[Wt]):f(ve)?(P[Wt]=[],P[Wt]=P[Wt].concat(ve)):ve!==void 0&&(P[Wt]=ve)}}var Vo=function(P){for(var $=[],ft=1;ft<arguments.length;ft++)$[ft-1]=arguments[ft];for(var bt=0;bt<$.length;bt+=1)Kn(P,$[bt]);return P},Uo=Vo,Ul=function(P,$,ft,bt){isFunction($)||(ft=$,$=P,P=function(){});var Wt=Object.create?function(Ee,Ke){return Object.create(Ee,{constructor:{value:Ke}})}:function(Ee,Ke){function Mr(){}Mr.prototype=Ee;var gr=new Mr;return gr.constructor=Ke,gr},ve=Wt($.prototype,P);return P.prototype=mix(ve,P.prototype),P.superclass=Wt($.prototype,$),mix(ve,ft),mix(P,bt),P},kn=null,Ho=function(P,$){if(!dt(P))return-1;var ft=Array.prototype.indexOf;if(ft)return ft.call(P,$);for(var bt=-1,Wt=0;Wt<P.length;Wt++)if(P[Wt]===$){bt=Wt;break}return bt},Go=Ho,Hl=Object.prototype.hasOwnProperty;function Gl(P){if(d(P))return!0;if(dt(P))return!P.length;var $=qi(P);if($==="Map"||$==="Set")return!P.size;if(Ol(P))return!Object.keys(P).length;for(var ft in P)if(Hl.call(P,ft))return!1;return!0}var _a=Gl,Jn=function(P,$){if(P===$)return!0;if(!P||!$||Q(P)||Q($))return!1;if(dt(P)||dt($)){if(P.length!==$.length)return!1;for(var ft=!0,bt=0;bt<P.length&&(ft=Jn(P[bt],$[bt]),!!ft);bt++);return ft}if($t(P)||$t($)){var Wt=Object.keys(P),ve=Object.keys($);if(Wt.length!==ve.length)return!1;for(var ft=!0,bt=0;bt<Wt.length&&(ft=Jn(P[Wt[bt]],$[Wt[bt]]),!!ft);bt++);return ft}return!1},Yo=Jn,Yl=function(P,$,ft){return isFunction(ft)?!!ft(P,$):isEqual(P,$)},Ir=function(P,$){if(!dt(P))return P;for(var ft=[],bt=0;bt<P.length;bt++){var Wt=P[bt];ft.push($(Wt,bt))}return ft},Xl=Ir,Xo=function(P){return P},Wo=function(P,$){$===void 0&&($=Xo);var ft={};return rt(P)&&!d(P)&&Object.keys(P).forEach(function(bt){ft[bt]=$(P[bt],bt)}),ft};function ji(P,$){for(var ft in $)$.hasOwnProperty(ft)&&ft!=="constructor"&&$[ft]!==void 0&&(P[ft]=$[ft])}function Fa(P,$,ft,bt){return $&&ji(P,$),ft&&ji(P,ft),bt&&ji(P,bt),P}var Zo=function(P,$,ft){for(var bt=0,Wt=Q($)?$.split("."):$;P&&bt<Wt.length;)P=P[Wt[bt++]];return P===void 0||bt<Wt.length?ft:P},Wl=function(P,$,ft){var bt=P,Wt=Q($)?$.split("."):$;return Wt.forEach(function(ve,Ee){Ee<Wt.length-1?(rt(bt[ve])||(bt[ve]=Me(Wt[Ee+1])?[]:{}),bt=bt[ve]):bt[ve]=ft}),P},Ki=Object.prototype.hasOwnProperty,qo=function(P,$){if(P===null||!Se(P))return{};var ft={};return St($,function(bt){Ki.call(P,bt)&&(ft[bt]=P[bt])}),ft},$o=function(P,$){return z(P,function(ft,bt,Wt){return $.includes(Wt)||(ft[Wt]=bt),ft},{})},jo=function(P,$,ft){var bt,Wt,ve,Ee,Ke=0;ft||(ft={});var Mr=function(){Ke=ft.leading===!1?0:Date.now(),bt=null,Ee=P.apply(Wt,ve),bt||(Wt=ve=null)},gr=function(){var cr=Date.now();!Ke&&ft.leading===!1&&(Ke=cr);var Qi=$-(cr-Ke);return Wt=this,ve=arguments,Qi<=0||Qi>$?(bt&&(clearTimeout(bt),bt=null),Ke=cr,Ee=P.apply(Wt,ve),bt||(Wt=ve=null)):!bt&&ft.trailing!==!1&&(bt=setTimeout(Mr,Qi)),Ee};return gr.cancel=function(){clearTimeout(bt),Ke=0,bt=Wt=ve=null},gr},Zl=function(P){return dt(P)?Array.prototype.slice.call(P):[]},Mi={},ql=function(P){return P=P||"g",Mi[P]?Mi[P]+=1:Mi[P]=1,P+Mi[P]},Ko=function(){};function Jo(P){return d(P)?0:dt(P)?P.length:Object.keys(P).length}var Ji=et(70655),Lr,Jr=zo(function(P,$){$===void 0&&($={});var ft=$.fontSize,bt=$.fontFamily,Wt=$.fontWeight,ve=$.fontStyle,Ee=$.fontVariant;return Lr||(Lr=document.createElement("canvas").getContext("2d")),Lr.font=[ve,Ee,Wt,ft+"px",bt].join(" "),Lr.measureText(Q(P)?P:"").width},function(P,$){return $===void 0&&($={}),(0,Ji.pr)([P],Bt($)).join("")}),Dn=function(P,$,ft,bt){bt===void 0&&(bt="...");var Wt=16,ve=Jr(bt,ft),Ee=Q(P)?P:ce(P),Ke=$,Mr=[],gr,cr;if(Jr(P,ft)<=$)return P;for(;gr=Ee.substr(0,Wt),cr=Jr(gr,ft),!(cr+ve>Ke&&cr>Ke);)if(Mr.push(gr),Ke-=cr,Ee=Ee.substr(Wt),!Ee)return Mr.join("");for(;gr=Ee.substr(0,1),cr=Jr(gr,ft),!(cr+ve>Ke);)if(Mr.push(gr),Ke-=cr,Ee=Ee.substr(1),!Ee)return Mr.join("");return""+Mr.join("")+bt},sn=function(){function P(){this.map={}}return P.prototype.has=function($){return this.map[$]!==void 0},P.prototype.get=function($,ft){var bt=this.map[$];return bt===void 0?ft:bt},P.prototype.set=function($,ft){this.map[$]=ft},P.prototype.clear=function(){this.map={}},P.prototype.delete=function($){delete this.map[$]},P.prototype.size=function(){return Object.keys(this.map).length},P}(),Si=sn},31808:function(_e,ee,et){"use strict";et.d(ee,{jD:function(){return dt},fk:function(){return kt}});var ht=et(98924),dt=function(){return(0,ht.Z)()&&window.document.documentElement},Kt,kt=function(){if(!dt())return!1;if(Kt!==void 0)return Kt;var mt=document.createElement("div");return mt.style.display="flex",mt.style.flexDirection="column",mt.style.rowGap="1px",mt.appendChild(document.createElement("div")),mt.appendChild(document.createElement("div")),document.body.appendChild(mt),Kt=mt.scrollHeight===1,document.body.removeChild(mt),Kt}},56645:function(_e,ee){(function(et,ht){ht(ee)})(this,function(et){"use strict";function ht(pt,Dt){return dt(pt)||Kt(pt,Dt)||kt()}function dt(pt){if(Array.isArray(pt))return pt}function Kt(pt,Dt){var Jt=[],Ht=!0,At=!1,U=void 0;try{for(var C=pt[Symbol.iterator](),F;!(Ht=(F=C.next()).done)&&(Jt.push(F.value),!(Dt&&Jt.length===Dt));Ht=!0);}catch(W){At=!0,U=W}finally{try{!Ht&&C.return!=null&&C.return()}finally{if(At)throw U}}return Jt}function kt(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function Tt(pt,Dt,Jt,Ht){pt=pt.filter(function(O,L){var tt=Dt(O,L),it=Jt(O,L);return tt!=null&&isFinite(tt)&&it!=null&&isFinite(it)}),Ht&&pt.sort(function(O,L){return Dt(O)-Dt(L)});for(var At=pt.length,U=new Float64Array(At),C=new Float64Array(At),F=0,W=0,lt,Z,nt,T=0;T<At;)nt=pt[T],U[T]=lt=+Dt(nt,T,pt),C[T]=Z=+Jt(nt,T,pt),++T,F+=(lt-F)/T,W+=(Z-W)/T;for(var N=0;N<At;++N)U[N]-=F,C[N]-=W;return[U,C,F,W]}function mt(pt,Dt,Jt,Ht){for(var At=0,U=0,C=pt.length;U<C;U++){var F=pt[U],W=+Dt(F,U,pt),lt=+Jt(F,U,pt);W!=null&&isFinite(W)&&lt!=null&&isFinite(lt)&&Ht(W,lt,At++)}}function ct(pt,Dt,Jt,Ht,At){var U=0,C=0;return mt(pt,Dt,Jt,function(F,W){var lt=W-At(F),Z=W-Ht;U+=lt*lt,C+=Z*Z}),1-U/C}function vt(pt){return Math.atan2(pt[1][1]-pt[0][1],pt[1][0]-pt[0][0])*180/Math.PI}function xt(pt){return[(pt[0][0]+pt[1][0])/2,(pt[0][1]+pt[1][1])/2]}function jt(pt,Dt,Jt){for(var Ht=Math.log(Dt-pt)*Math.LOG10E+1|0,At=1*Math.pow(10,-Ht/2-1),U=1e4,C=[W(pt),W(Dt)],F=0;lt(C)&&F<U;);return C;function W(Z){return[Z,Jt(Z)]}function lt(Z){F++;for(var nt=Z.length,T=!1,N=0;N<nt-1;N++){var O=Z[N],L=Z[N+1],tt=xt([O,L]),it=W(tt[0]),k=vt([O,tt]),_=vt([O,it]),b=Math.abs(k-_);b>At&&(Z.splice(N+1,0,it),T=!0)}return T}}function Ot(pt,Dt,Jt,Ht){var At=Ht-pt*pt,U=Math.abs(At)<1e-24?0:(Jt-pt*Dt)/At,C=Dt-U*pt;return[C,U]}function Pt(){var pt=function(U){return U[0]},Dt=function(U){return U[1]},Jt;function Ht(At){var U=0,C=0,F=0,W=0,lt=0,Z=0,nt=Jt?+Jt[0]:Infinity,T=Jt?+Jt[1]:-Infinity;mt(At,pt,Dt,function(_,b){var E=Math.log(b),I=_*b;++U,C+=(b-C)/U,W+=(I-W)/U,Z+=(_*I-Z)/U,F+=(b*E-F)/U,lt+=(I*E-lt)/U,Jt||(_<nt&&(nt=_),_>T&&(T=_))});var N=Ot(W/C,F/C,lt/C,Z/C),O=ht(N,2),L=O[0],tt=O[1];L=Math.exp(L);var it=function(b){return L*Math.exp(tt*b)},k=jt(nt,T,it);return k.a=L,k.b=tt,k.predict=it,k.rSquared=ct(At,pt,Dt,C,it),k}return Ht.domain=function(At){return arguments.length?(Jt=At,Ht):Jt},Ht.x=function(At){return arguments.length?(pt=At,Ht):pt},Ht.y=function(At){return arguments.length?(Dt=At,Ht):Dt},Ht}function gt(){var pt=function(U){return U[0]},Dt=function(U){return U[1]},Jt;function Ht(At){var U=0,C=0,F=0,W=0,lt=0,Z=Jt?+Jt[0]:Infinity,nt=Jt?+Jt[1]:-Infinity;mt(At,pt,Dt,function(k,_){++U,C+=(k-C)/U,F+=(_-F)/U,W+=(k*_-W)/U,lt+=(k*k-lt)/U,Jt||(k<Z&&(Z=k),k>nt&&(nt=k))});var T=Ot(C,F,W,lt),N=ht(T,2),O=N[0],L=N[1],tt=function(_){return L*_+O},it=[[Z,tt(Z)],[nt,tt(nt)]];return it.a=L,it.b=O,it.predict=tt,it.rSquared=ct(At,pt,Dt,F,tt),it}return Ht.domain=function(At){return arguments.length?(Jt=At,Ht):Jt},Ht.x=function(At){return arguments.length?(pt=At,Ht):pt},Ht.y=function(At){return arguments.length?(Dt=At,Ht):Dt},Ht}function d(pt){pt.sort(function(Jt,Ht){return Jt-Ht});var Dt=pt.length/2;return Dt%1==0?(pt[Dt-1]+pt[Dt])/2:pt[Math.floor(Dt)]}var f=2,rt=1e-12;function J(){var pt=function(U){return U[0]},Dt=function(U){return U[1]},Jt=.3;function Ht(At){for(var U=Tt(At,pt,Dt,!0),C=ht(U,4),F=C[0],W=C[1],lt=C[2],Z=C[3],nt=F.length,T=Math.max(2,~~(Jt*nt)),N=new Float64Array(nt),O=new Float64Array(nt),L=new Float64Array(nt).fill(1),tt=-1;++tt<=f;){for(var it=[0,T-1],k=0;k<nt;++k){for(var _=F[k],b=it[0],E=it[1],I=_-F[b]>F[E]-_?b:E,z=0,B=0,j=0,Q=0,Ct=0,qt=1/Math.abs(F[I]-_||1),Yt=b;Yt<=E;++Yt){var ne=F[Yt],Zt=W[Yt],Gt=St(Math.abs(_-ne)*qt)*L[Yt],pe=ne*Gt;z+=Gt,B+=pe,j+=Zt*Gt,Q+=Zt*pe,Ct+=ne*pe}var ke=Ot(B/z,j/z,Q/z,Ct/z),Ne=ht(ke,2),Ve=Ne[0],fr=Ne[1];N[k]=Ve+fr*_,O[k]=Math.abs(W[k]-N[k]),wt(F,k+1,it)}if(tt===f)break;var _r=d(O);if(Math.abs(_r)<rt)break;for(var Fr=0,q,G;Fr<nt;++Fr)q=O[Fr]/(6*_r),L[Fr]=q>=1?rt:(G=1-q*q)*G}return X(F,N,lt,Z)}return Ht.bandwidth=function(At){return arguments.length?(Jt=At,Ht):Jt},Ht.x=function(At){return arguments.length?(pt=At,Ht):pt},Ht.y=function(At){return arguments.length?(Dt=At,Ht):Dt},Ht}function St(pt){return(pt=1-pt*pt*pt)*pt*pt}function wt(pt,Dt,Jt){var Ht=pt[Dt],At=Jt[0],U=Jt[1]+1;if(!(U>=pt.length))for(;Dt>At&&pt[U]-Ht<=Ht-pt[At];)Jt[0]=++At,Jt[1]=U,++U}function X(pt,Dt,Jt,Ht){for(var At=pt.length,U=[],C=0,F=0,W=[],lt;C<At;++C)lt=pt[C]+Jt,W[0]===lt?W[1]+=(Dt[C]-W[1])/++F:(F=0,W[1]+=Ht,W=[lt,Dt[C]],U.push(W));return W[1]+=Ht,U}function at(){var pt=function(C){return C[0]},Dt=function(C){return C[1]},Jt=Math.E,Ht;function At(U){var C=0,F=0,W=0,lt=0,Z=0,nt=Ht?+Ht[0]:Infinity,T=Ht?+Ht[1]:-Infinity,N=Math.log(Jt);mt(U,pt,Dt,function(b,E){var I=Math.log(b)/N;++C,F+=(I-F)/C,W+=(E-W)/C,lt+=(I*E-lt)/C,Z+=(I*I-Z)/C,Ht||(b<nt&&(nt=b),b>T&&(T=b))});var O=Ot(F,W,lt,Z),L=ht(O,2),tt=L[0],it=L[1],k=function(E){return it*Math.log(E)/N+tt},_=jt(nt,T,k);return _.a=it,_.b=tt,_.predict=k,_.rSquared=ct(U,pt,Dt,W,k),_}return At.domain=function(U){return arguments.length?(Ht=U,At):Ht},At.x=function(U){return arguments.length?(pt=U,At):pt},At.y=function(U){return arguments.length?(Dt=U,At):Dt},At.base=function(U){return arguments.length?(Jt=U,At):Jt},At}function _t(){var pt=function(U){return U[0]},Dt=function(U){return U[1]},Jt;function Ht(At){var U=Tt(At,pt,Dt),C=ht(U,4),F=C[0],W=C[1],lt=C[2],Z=C[3],nt=F.length,T=0,N=0,O=0,L=0,tt=0,it,k,_,b;for(it=0;it<nt;)k=F[it],_=W[it++],b=k*k,T+=(b-T)/it,N+=(b*k-N)/it,O+=(b*b-O)/it,L+=(k*_-L)/it,tt+=(b*_-tt)/it;var E=0,I=0,z=Jt?+Jt[0]:Infinity,B=Jt?+Jt[1]:-Infinity;mt(At,pt,Dt,function(Gt,pe){I++,E+=(pe-E)/I,Jt||(Gt<z&&(z=Gt),Gt>B&&(B=Gt))});var j=O-T*T,Q=T*j-N*N,Ct=(tt*T-L*N)/Q,qt=(L*j-tt*N)/Q,Yt=-Ct*T,ne=function(pe){return pe=pe-lt,Ct*pe*pe+qt*pe+Yt+Z},Zt=jt(z,B,ne);return Zt.a=Ct,Zt.b=qt-2*Ct*lt,Zt.c=Yt-qt*lt+Ct*lt*lt+Z,Zt.predict=ne,Zt.rSquared=ct(At,pt,Dt,E,ne),Zt}return Ht.domain=function(At){return arguments.length?(Jt=At,Ht):Jt},Ht.x=function(At){return arguments.length?(pt=At,Ht):pt},Ht.y=function(At){return arguments.length?(Dt=At,Ht):Dt},Ht}function Rt(){var pt=function(C){return C[0]},Dt=function(C){return C[1]},Jt=3,Ht;function At(U){if(Jt===1){var C=gt().x(pt).y(Dt).domain(Ht)(U);return C.coefficients=[C.b,C.a],delete C.a,delete C.b,C}if(Jt===2){var F=_t().x(pt).y(Dt).domain(Ht)(U);return F.coefficients=[F.c,F.b,F.a],delete F.a,delete F.b,delete F.c,F}var W=Tt(U,pt,Dt),lt=ht(W,4),Z=lt[0],nt=lt[1],T=lt[2],N=lt[3],O=Z.length,L=[],tt=[],it=Jt+1,k=0,_=0,b=Ht?+Ht[0]:Infinity,E=Ht?+Ht[1]:-Infinity;mt(U,pt,Dt,function(ne,Zt){++_,k+=(Zt-k)/_,Ht||(ne<b&&(b=ne),ne>E&&(E=ne))});var I,z,B,j,Q;for(I=0;I<it;++I){for(B=0,j=0;B<O;++B)j+=Math.pow(Z[B],I)*nt[B];for(L.push(j),Q=new Float64Array(it),z=0;z<it;++z){for(B=0,j=0;B<O;++B)j+=Math.pow(Z[B],I+z);Q[z]=j}tt.push(Q)}tt.push(L);var Ct=re(tt),qt=function(Zt){Zt-=T;var Gt=N+Ct[0]+Ct[1]*Zt+Ct[2]*Zt*Zt;for(I=3;I<it;++I)Gt+=Ct[I]*Math.pow(Zt,I);return Gt},Yt=jt(b,E,qt);return Yt.coefficients=$t(it,Ct,-T,N),Yt.predict=qt,Yt.rSquared=ct(U,pt,Dt,k,qt),Yt}return At.domain=function(U){return arguments.length?(Ht=U,At):Ht},At.x=function(U){return arguments.length?(pt=U,At):pt},At.y=function(U){return arguments.length?(Dt=U,At):Dt},At.order=function(U){return arguments.length?(Jt=U,At):Jt},At}function $t(pt,Dt,Jt,Ht){var At=Array(pt),U,C,F,W;for(U=0;U<pt;++U)At[U]=0;for(U=pt-1;U>=0;--U)for(F=Dt[U],W=1,At[U]+=F,C=1;C<=U;++C)W*=(U+1-C)/C,At[U-C]+=F*Math.pow(Jt,C)*W;return At[0]+=Ht,At}function re(pt){var Dt=pt.length-1,Jt=[],Ht,At,U,C,F;for(Ht=0;Ht<Dt;++Ht){for(C=Ht,At=Ht+1;At<Dt;++At)Math.abs(pt[Ht][At])>Math.abs(pt[Ht][C])&&(C=At);for(U=Ht;U<Dt+1;++U)F=pt[U][Ht],pt[U][Ht]=pt[U][C],pt[U][C]=F;for(At=Ht+1;At<Dt;++At)for(U=Dt;U>=Ht;U--)pt[U][At]-=pt[U][Ht]*pt[Ht][At]/pt[Ht][Ht]}for(At=Dt-1;At>=0;--At){for(F=0,U=At+1;U<Dt;++U)F+=pt[U][At]*Jt[U];Jt[At]=(pt[Dt][At]-F)/pt[At][At]}return Jt}function Se(){var pt=function(U){return U[0]},Dt=function(U){return U[1]},Jt;function Ht(At){var U=0,C=0,F=0,W=0,lt=0,Z=0,nt=Jt?+Jt[0]:Infinity,T=Jt?+Jt[1]:-Infinity;mt(At,pt,Dt,function(_,b){var E=Math.log(_),I=Math.log(b);++U,C+=(E-C)/U,F+=(I-F)/U,W+=(E*I-W)/U,lt+=(E*E-lt)/U,Z+=(b-Z)/U,Jt||(_<nt&&(nt=_),_>T&&(T=_))});var N=Ot(C,F,W,lt),O=ht(N,2),L=O[0],tt=O[1];L=Math.exp(L);var it=function(b){return L*Math.pow(b,tt)},k=jt(nt,T,it);return k.a=L,k.b=tt,k.predict=it,k.rSquared=ct(At,pt,Dt,Z,it),k}return Ht.domain=function(At){return arguments.length?(Jt=At,Ht):Jt},Ht.x=function(At){return arguments.length?(pt=At,Ht):pt},Ht.y=function(At){return arguments.length?(Dt=At,Ht):Dt},Ht}et.regressionExp=Pt,et.regressionLinear=gt,et.regressionLoess=J,et.regressionLog=at,et.regressionPoly=Rt,et.regressionPow=Se,et.regressionQuad=_t,Object.defineProperty(et,"__esModule",{value:!0})})},43631:function(_e,ee,et){"use strict";et.d(ee,{qY:function(){return gt}});var ht=et(34155),dt=function(X,at,_t){if(_t||arguments.length===2)for(var Rt=0,$t=at.length,re;Rt<$t;Rt++)(re||!(Rt in at))&&(re||(re=Array.prototype.slice.call(at,0,Rt)),re[Rt]=at[Rt]);return X.concat(re||Array.prototype.slice.call(at))},Kt=function(){function X(at,_t,Rt){this.name=at,this.version=_t,this.os=Rt,this.type="browser"}return X}(),kt=function(){function X(at){this.version=at,this.type="node",this.name="node",this.os=ht.platform}return X}(),Tt=function(){function X(at,_t,Rt,$t){this.name=at,this.version=_t,this.os=Rt,this.bot=$t,this.type="bot-device"}return X}(),mt=function(){function X(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return X}(),ct=function(){function X(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return X}(),vt=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,xt=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,jt=3,Ot=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",vt]],Pt=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function gt(X){return X?rt(X):typeof document=="undefined"&&typeof navigator!="undefined"&&navigator.product==="ReactNative"?new ct:typeof navigator!="undefined"?rt(navigator.userAgent):St()}function d(X){return X!==""&&Ot.reduce(function(at,_t){var Rt=_t[0],$t=_t[1];if(at)return at;var re=$t.exec(X);return!!re&&[Rt,re]},!1)}function f(X){var at=d(X);return at?at[0]:null}function rt(X){var at=d(X);if(!at)return null;var _t=at[0],Rt=at[1];if(_t==="searchbot")return new mt;var $t=Rt[1]&&Rt[1].split(".").join("_").split("_").slice(0,3);$t?$t.length<jt&&($t=dt(dt([],$t,!0),wt(jt-$t.length),!0)):$t=[];var re=$t.join("."),Se=J(X),pt=xt.exec(X);return pt&&pt[1]?new Tt(_t,re,Se,pt[1]):new Kt(_t,re,Se)}function J(X){for(var at=0,_t=Pt.length;at<_t;at++){var Rt=Pt[at],$t=Rt[0],re=Rt[1],Se=re.exec(X);if(Se)return $t}return null}function St(){var X=typeof ht!="undefined"&&ht.version;return X?new kt(ht.version.slice(1)):null}function wt(X){for(var at=[],_t=0;_t<X;_t++)at.push("0");return at}},87026:function(_e,ee){(function(et,ht){ht(ee)})(this,function(et){"use strict";function ht(gt,d,f,rt){rt=rt||{};var J=rt.maxIterations||100,St=rt.tolerance||1e-10,wt=gt(d),X=gt(f),at=f-d;if(wt*X>0)throw"Initial bisect points must have opposite signs";if(wt===0)return d;if(X===0)return f;for(var _t=0;_t<J;++_t){at/=2;var Rt=d+at,$t=gt(Rt);if($t*wt>=0&&(d=Rt),Math.abs(at)<St||$t===0)return Rt}return d+at}function dt(gt){for(var d=new Array(gt),f=0;f<gt;++f)d[f]=0;return d}function Kt(gt,d){return dt(gt).map(function(){return dt(d)})}function kt(gt,d){for(var f=0,rt=0;rt<gt.length;++rt)f+=gt[rt]*d[rt];return f}function Tt(gt){return Math.sqrt(kt(gt,gt))}function mt(gt,d,f){for(var rt=0;rt<d.length;++rt)gt[rt]=d[rt]*f}function ct(gt,d,f,rt,J){for(var St=0;St<gt.length;++St)gt[St]=d*f[St]+rt*J[St]}function vt(gt,d,f){f=f||{};var rt=f.maxIterations||d.length*200,J=f.nonZeroDelta||1.05,St=f.zeroDelta||.001,wt=f.minErrorDelta||1e-6,X=f.minErrorDelta||1e-5,at=f.rho!==void 0?f.rho:1,_t=f.chi!==void 0?f.chi:2,Rt=f.psi!==void 0?f.psi:-.5,$t=f.sigma!==void 0?f.sigma:.5,re,Se=d.length,pt=new Array(Se+1);pt[0]=d,pt[0].fx=gt(d),pt[0].id=0;for(var Dt=0;Dt<Se;++Dt){var Jt=d.slice();Jt[Dt]=Jt[Dt]?Jt[Dt]*J:St,pt[Dt+1]=Jt,pt[Dt+1].fx=gt(Jt),pt[Dt+1].id=Dt+1}function Ht(O){for(var L=0;L<O.length;L++)pt[Se][L]=O[L];pt[Se].fx=O.fx}for(var At=function(O,L){return O.fx-L.fx},U=d.slice(),C=d.slice(),F=d.slice(),W=d.slice(),lt=0;lt<rt;++lt){if(pt.sort(At),f.history){var Z=pt.map(function(O){var L=O.slice();return L.fx=O.fx,L.id=O.id,L});Z.sort(function(O,L){return O.id-L.id}),f.history.push({x:pt[0].slice(),fx:pt[0].fx,simplex:Z})}for(re=0,Dt=0;Dt<Se;++Dt)re=Math.max(re,Math.abs(pt[0][Dt]-pt[1][Dt]));if(Math.abs(pt[0].fx-pt[Se].fx)<wt&&re<X)break;for(Dt=0;Dt<Se;++Dt){U[Dt]=0;for(var nt=0;nt<Se;++nt)U[Dt]+=pt[nt][Dt];U[Dt]/=Se}var T=pt[Se];if(ct(C,1+at,U,-at,T),C.fx=gt(C),C.fx<pt[0].fx)ct(W,1+_t,U,-_t,T),W.fx=gt(W),W.fx<C.fx?Ht(W):Ht(C);else if(C.fx>=pt[Se-1].fx){var N=!1;if(C.fx>T.fx?(ct(F,1+Rt,U,-Rt,T),F.fx=gt(F),F.fx<T.fx?Ht(F):N=!0):(ct(F,1-Rt*at,U,Rt*at,T),F.fx=gt(F),F.fx<C.fx?Ht(F):N=!0),N){if($t>=1)break;for(Dt=1;Dt<pt.length;++Dt)ct(pt[Dt],1-$t,pt[0],$t,pt[Dt]),pt[Dt].fx=gt(pt[Dt])}}else Ht(C)}return pt.sort(At),{fx:pt[0].fx,x:pt[0]}}function xt(gt,d,f,rt,J,St,wt){var X=f.fx,at=kt(f.fxprime,d),_t=X,Rt=X,$t=at,re=0;J=J||1,St=St||1e-6,wt=wt||.1;function Se(Dt,Jt,Ht){for(var At=0;At<16;++At)if(J=(Dt+Jt)/2,ct(rt.x,1,f.x,J,d),_t=rt.fx=gt(rt.x,rt.fxprime),$t=kt(rt.fxprime,d),_t>X+St*J*at||_t>=Ht)Jt=J;else{if(Math.abs($t)<=-wt*at)return J;$t*(Jt-Dt)>=0&&(Jt=Dt),Dt=J,Ht=_t}return 0}for(var pt=0;pt<10;++pt){if(ct(rt.x,1,f.x,J,d),_t=rt.fx=gt(rt.x,rt.fxprime),$t=kt(rt.fxprime,d),_t>X+St*J*at||pt&&_t>=Rt)return Se(re,J,Rt);if(Math.abs($t)<=-wt*at)return J;if($t>=0)return Se(J,re,_t);Rt=_t,re=J,J*=2}return J}function jt(gt,d,f){var rt={x:d.slice(),fx:0,fxprime:d.slice()},J={x:d.slice(),fx:0,fxprime:d.slice()},St=d.slice(),wt,X,at=1,_t;f=f||{},_t=f.maxIterations||d.length*20,rt.fx=gt(rt.x,rt.fxprime),wt=rt.fxprime.slice(),mt(wt,rt.fxprime,-1);for(var Rt=0;Rt<_t;++Rt){if(at=xt(gt,wt,rt,J,at),f.history&&f.history.push({x:rt.x.slice(),fx:rt.fx,fxprime:rt.fxprime.slice(),alpha:at}),!at)mt(wt,rt.fxprime,-1);else{ct(St,1,J.fxprime,-1,rt.fxprime);var $t=kt(rt.fxprime,rt.fxprime),re=Math.max(0,kt(St,J.fxprime)/$t);ct(wt,re,wt,-1,J.fxprime),X=rt,rt=J,J=X}if(Tt(rt.fxprime)<=1e-5)break}return f.history&&f.history.push({x:rt.x.slice(),fx:rt.fx,fxprime:rt.fxprime.slice(),alpha:at}),rt}function Ot(gt,d,f){f=f||{};for(var rt=f.maxIterations||d.length*100,J=f.learnRate||.001,St={x:d.slice(),fx:0,fxprime:d.slice()},wt=0;wt<rt&&(St.fx=gt(St.x,St.fxprime),f.history&&f.history.push({x:St.x.slice(),fx:St.fx,fxprime:St.fxprime.slice()}),ct(St.x,1,St.x,-J,St.fxprime),!(Tt(St.fxprime)<=1e-5));++wt);return St}function Pt(gt,d,f){f=f||{};var rt={x:d.slice(),fx:0,fxprime:d.slice()},J={x:d.slice(),fx:0,fxprime:d.slice()},St=f.maxIterations||d.length*100,wt=f.learnRate||1,X=d.slice(),at=f.c1||.001,_t=f.c2||.1,Rt,$t=[];if(f.history){var re=gt;gt=function(pt,Dt){return $t.push(pt.slice()),re(pt,Dt)}}rt.fx=gt(rt.x,rt.fxprime);for(var Se=0;Se<St&&(mt(X,rt.fxprime,-1),wt=xt(gt,X,rt,J,wt,at,_t),f.history&&(f.history.push({x:rt.x.slice(),fx:rt.fx,fxprime:rt.fxprime.slice(),functionCalls:$t,learnRate:wt,alpha:wt}),$t=[]),Rt=rt,rt=J,J=Rt,!(wt===0||Tt(rt.fxprime)<1e-5));++Se);return rt}et.bisect=ht,et.nelderMead=vt,et.conjugateGradient=jt,et.gradientDescent=Ot,et.gradientDescentLineSearch=Pt,et.zeros=dt,et.zerosM=Kt,et.norm2=Tt,et.weightedSum=ct,et.scale=mt})},49685:function(_e,ee,et){"use strict";et.d(ee,{WT:function(){return dt}});var ht=1e-6,dt=typeof Float32Array!="undefined"?Float32Array:Array,Kt=Math.random;function kt(vt){dt=vt}var Tt=Math.PI/180;function mt(vt){return vt*Tt}function ct(vt,xt){return Math.abs(vt-xt)<=ht*Math.max(1,Math.abs(vt),Math.abs(xt))}Math.hypot||(Math.hypot=function(){for(var vt=0,xt=arguments.length;xt--;)vt+=arguments[xt]*arguments[xt];return Math.sqrt(vt)})},35600:function(_e,ee,et){"use strict";et.d(ee,{U_:function(){return xt},Jp:function(){return Pt},vc:function(){return rt},Us:function(){return J},xJ:function(){return St}});function ht(){var C=new glMatrix.ARRAY_TYPE(9);return glMatrix.ARRAY_TYPE!=Float32Array&&(C[1]=0,C[2]=0,C[3]=0,C[5]=0,C[6]=0,C[7]=0),C[0]=1,C[4]=1,C[8]=1,C}function dt(C,F){return C[0]=F[0],C[1]=F[1],C[2]=F[2],C[3]=F[4],C[4]=F[5],C[5]=F[6],C[6]=F[8],C[7]=F[9],C[8]=F[10],C}function Kt(C){var F=new glMatrix.ARRAY_TYPE(9);return F[0]=C[0],F[1]=C[1],F[2]=C[2],F[3]=C[3],F[4]=C[4],F[5]=C[5],F[6]=C[6],F[7]=C[7],F[8]=C[8],F}function kt(C,F){return C[0]=F[0],C[1]=F[1],C[2]=F[2],C[3]=F[3],C[4]=F[4],C[5]=F[5],C[6]=F[6],C[7]=F[7],C[8]=F[8],C}function Tt(C,F,W,lt,Z,nt,T,N,O){var L=new glMatrix.ARRAY_TYPE(9);return L[0]=C,L[1]=F,L[2]=W,L[3]=lt,L[4]=Z,L[5]=nt,L[6]=T,L[7]=N,L[8]=O,L}function mt(C,F,W,lt,Z,nt,T,N,O,L){return C[0]=F,C[1]=W,C[2]=lt,C[3]=Z,C[4]=nt,C[5]=T,C[6]=N,C[7]=O,C[8]=L,C}function ct(C){return C[0]=1,C[1]=0,C[2]=0,C[3]=0,C[4]=1,C[5]=0,C[6]=0,C[7]=0,C[8]=1,C}function vt(C,F){if(C===F){var W=F[1],lt=F[2],Z=F[5];C[1]=F[3],C[2]=F[6],C[3]=W,C[5]=F[7],C[6]=lt,C[7]=Z}else C[0]=F[0],C[1]=F[3],C[2]=F[6],C[3]=F[1],C[4]=F[4],C[5]=F[7],C[6]=F[2],C[7]=F[5],C[8]=F[8];return C}function xt(C,F){var W=F[0],lt=F[1],Z=F[2],nt=F[3],T=F[4],N=F[5],O=F[6],L=F[7],tt=F[8],it=tt*T-N*L,k=-tt*nt+N*O,_=L*nt-T*O,b=W*it+lt*k+Z*_;return b?(b=1/b,C[0]=it*b,C[1]=(-tt*lt+Z*L)*b,C[2]=(N*lt-Z*T)*b,C[3]=k*b,C[4]=(tt*W-Z*O)*b,C[5]=(-N*W+Z*nt)*b,C[6]=_*b,C[7]=(-L*W+lt*O)*b,C[8]=(T*W-lt*nt)*b,C):null}function jt(C,F){var W=F[0],lt=F[1],Z=F[2],nt=F[3],T=F[4],N=F[5],O=F[6],L=F[7],tt=F[8];return C[0]=T*tt-N*L,C[1]=Z*L-lt*tt,C[2]=lt*N-Z*T,C[3]=N*O-nt*tt,C[4]=W*tt-Z*O,C[5]=Z*nt-W*N,C[6]=nt*L-T*O,C[7]=lt*O-W*L,C[8]=W*T-lt*nt,C}function Ot(C){var F=C[0],W=C[1],lt=C[2],Z=C[3],nt=C[4],T=C[5],N=C[6],O=C[7],L=C[8];return F*(L*nt-T*O)+W*(-L*Z+T*N)+lt*(O*Z-nt*N)}function Pt(C,F,W){var lt=F[0],Z=F[1],nt=F[2],T=F[3],N=F[4],O=F[5],L=F[6],tt=F[7],it=F[8],k=W[0],_=W[1],b=W[2],E=W[3],I=W[4],z=W[5],B=W[6],j=W[7],Q=W[8];return C[0]=k*lt+_*T+b*L,C[1]=k*Z+_*N+b*tt,C[2]=k*nt+_*O+b*it,C[3]=E*lt+I*T+z*L,C[4]=E*Z+I*N+z*tt,C[5]=E*nt+I*O+z*it,C[6]=B*lt+j*T+Q*L,C[7]=B*Z+j*N+Q*tt,C[8]=B*nt+j*O+Q*it,C}function gt(C,F,W){var lt=F[0],Z=F[1],nt=F[2],T=F[3],N=F[4],O=F[5],L=F[6],tt=F[7],it=F[8],k=W[0],_=W[1];return C[0]=lt,C[1]=Z,C[2]=nt,C[3]=T,C[4]=N,C[5]=O,C[6]=k*lt+_*T+L,C[7]=k*Z+_*N+tt,C[8]=k*nt+_*O+it,C}function d(C,F,W){var lt=F[0],Z=F[1],nt=F[2],T=F[3],N=F[4],O=F[5],L=F[6],tt=F[7],it=F[8],k=Math.sin(W),_=Math.cos(W);return C[0]=_*lt+k*T,C[1]=_*Z+k*N,C[2]=_*nt+k*O,C[3]=_*T-k*lt,C[4]=_*N-k*Z,C[5]=_*O-k*nt,C[6]=L,C[7]=tt,C[8]=it,C}function f(C,F,W){var lt=W[0],Z=W[1];return C[0]=lt*F[0],C[1]=lt*F[1],C[2]=lt*F[2],C[3]=Z*F[3],C[4]=Z*F[4],C[5]=Z*F[5],C[6]=F[6],C[7]=F[7],C[8]=F[8],C}function rt(C,F){return C[0]=1,C[1]=0,C[2]=0,C[3]=0,C[4]=1,C[5]=0,C[6]=F[0],C[7]=F[1],C[8]=1,C}function J(C,F){var W=Math.sin(F),lt=Math.cos(F);return C[0]=lt,C[1]=W,C[2]=0,C[3]=-W,C[4]=lt,C[5]=0,C[6]=0,C[7]=0,C[8]=1,C}function St(C,F){return C[0]=F[0],C[1]=0,C[2]=0,C[3]=0,C[4]=F[1],C[5]=0,C[6]=0,C[7]=0,C[8]=1,C}function wt(C,F){return C[0]=F[0],C[1]=F[1],C[2]=0,C[3]=F[2],C[4]=F[3],C[5]=0,C[6]=F[4],C[7]=F[5],C[8]=1,C}function X(C,F){var W=F[0],lt=F[1],Z=F[2],nt=F[3],T=W+W,N=lt+lt,O=Z+Z,L=W*T,tt=lt*T,it=lt*N,k=Z*T,_=Z*N,b=Z*O,E=nt*T,I=nt*N,z=nt*O;return C[0]=1-it-b,C[3]=tt-z,C[6]=k+I,C[1]=tt+z,C[4]=1-L-b,C[7]=_-E,C[2]=k-I,C[5]=_+E,C[8]=1-L-it,C}function at(C,F){var W=F[0],lt=F[1],Z=F[2],nt=F[3],T=F[4],N=F[5],O=F[6],L=F[7],tt=F[8],it=F[9],k=F[10],_=F[11],b=F[12],E=F[13],I=F[14],z=F[15],B=W*N-lt*T,j=W*O-Z*T,Q=W*L-nt*T,Ct=lt*O-Z*N,qt=lt*L-nt*N,Yt=Z*L-nt*O,ne=tt*E-it*b,Zt=tt*I-k*b,Gt=tt*z-_*b,pe=it*I-k*E,ke=it*z-_*E,Ne=k*z-_*I,Ve=B*Ne-j*ke+Q*pe+Ct*Gt-qt*Zt+Yt*ne;return Ve?(Ve=1/Ve,C[0]=(N*Ne-O*ke+L*pe)*Ve,C[1]=(O*Gt-T*Ne-L*Zt)*Ve,C[2]=(T*ke-N*Gt+L*ne)*Ve,C[3]=(Z*ke-lt*Ne-nt*pe)*Ve,C[4]=(W*Ne-Z*Gt+nt*Zt)*Ve,C[5]=(lt*Gt-W*ke-nt*ne)*Ve,C[6]=(E*Yt-I*qt+z*Ct)*Ve,C[7]=(I*Q-b*Yt-z*j)*Ve,C[8]=(b*qt-E*Q+z*B)*Ve,C):null}function _t(C,F,W){return C[0]=2/F,C[1]=0,C[2]=0,C[3]=0,C[4]=-2/W,C[5]=0,C[6]=-1,C[7]=1,C[8]=1,C}function Rt(C){return"mat3("+C[0]+", "+C[1]+", "+C[2]+", "+C[3]+", "+C[4]+", "+C[5]+", "+C[6]+", "+C[7]+", "+C[8]+")"}function $t(C){return Math.hypot(C[0],C[1],C[2],C[3],C[4],C[5],C[6],C[7],C[8])}function re(C,F,W){return C[0]=F[0]+W[0],C[1]=F[1]+W[1],C[2]=F[2]+W[2],C[3]=F[3]+W[3],C[4]=F[4]+W[4],C[5]=F[5]+W[5],C[6]=F[6]+W[6],C[7]=F[7]+W[7],C[8]=F[8]+W[8],C}function Se(C,F,W){return C[0]=F[0]-W[0],C[1]=F[1]-W[1],C[2]=F[2]-W[2],C[3]=F[3]-W[3],C[4]=F[4]-W[4],C[5]=F[5]-W[5],C[6]=F[6]-W[6],C[7]=F[7]-W[7],C[8]=F[8]-W[8],C}function pt(C,F,W){return C[0]=F[0]*W,C[1]=F[1]*W,C[2]=F[2]*W,C[3]=F[3]*W,C[4]=F[4]*W,C[5]=F[5]*W,C[6]=F[6]*W,C[7]=F[7]*W,C[8]=F[8]*W,C}function Dt(C,F,W,lt){return C[0]=F[0]+W[0]*lt,C[1]=F[1]+W[1]*lt,C[2]=F[2]+W[2]*lt,C[3]=F[3]+W[3]*lt,C[4]=F[4]+W[4]*lt,C[5]=F[5]+W[5]*lt,C[6]=F[6]+W[6]*lt,C[7]=F[7]+W[7]*lt,C[8]=F[8]+W[8]*lt,C}function Jt(C,F){return C[0]===F[0]&&C[1]===F[1]&&C[2]===F[2]&&C[3]===F[3]&&C[4]===F[4]&&C[5]===F[5]&&C[6]===F[6]&&C[7]===F[7]&&C[8]===F[8]}function Ht(C,F){var W=C[0],lt=C[1],Z=C[2],nt=C[3],T=C[4],N=C[5],O=C[6],L=C[7],tt=C[8],it=F[0],k=F[1],_=F[2],b=F[3],E=F[4],I=F[5],z=F[6],B=F[7],j=F[8];return Math.abs(W-it)<=glMatrix.EPSILON*Math.max(1,Math.abs(W),Math.abs(it))&&Math.abs(lt-k)<=glMatrix.EPSILON*Math.max(1,Math.abs(lt),Math.abs(k))&&Math.abs(Z-_)<=glMatrix.EPSILON*Math.max(1,Math.abs(Z),Math.abs(_))&&Math.abs(nt-b)<=glMatrix.EPSILON*Math.max(1,Math.abs(nt),Math.abs(b))&&Math.abs(T-E)<=glMatrix.EPSILON*Math.max(1,Math.abs(T),Math.abs(E))&&Math.abs(N-I)<=glMatrix.EPSILON*Math.max(1,Math.abs(N),Math.abs(I))&&Math.abs(O-z)<=glMatrix.EPSILON*Math.max(1,Math.abs(O),Math.abs(z))&&Math.abs(L-B)<=glMatrix.EPSILON*Math.max(1,Math.abs(L),Math.abs(B))&&Math.abs(tt-j)<=glMatrix.EPSILON*Math.max(1,Math.abs(tt),Math.abs(j))}var At=null,U=null},31437:function(_e,ee,et){"use strict";et.d(ee,{IH:function(){return ct},$X:function(){return vt},VV:function(){return gt},Fp:function(){return d},bA:function(){return rt},TE:function(){return St},kE:function(){return X},Fv:function(){return $t},AK:function(){return re},kK:function(){return At},EU:function(){return F},I6:function(){return Z},lu:function(){return N}});var ht=et(49685);function dt(){var b=new ht.WT(2);return ht.WT!=Float32Array&&(b[0]=0,b[1]=0),b}function Kt(b){var E=new glMatrix.ARRAY_TYPE(2);return E[0]=b[0],E[1]=b[1],E}function kt(b,E){var I=new glMatrix.ARRAY_TYPE(2);return I[0]=b,I[1]=E,I}function Tt(b,E){return b[0]=E[0],b[1]=E[1],b}function mt(b,E,I){return b[0]=E,b[1]=I,b}function ct(b,E,I){return b[0]=E[0]+I[0],b[1]=E[1]+I[1],b}function vt(b,E,I){return b[0]=E[0]-I[0],b[1]=E[1]-I[1],b}function xt(b,E,I){return b[0]=E[0]*I[0],b[1]=E[1]*I[1],b}function jt(b,E,I){return b[0]=E[0]/I[0],b[1]=E[1]/I[1],b}function Ot(b,E){return b[0]=Math.ceil(E[0]),b[1]=Math.ceil(E[1]),b}function Pt(b,E){return b[0]=Math.floor(E[0]),b[1]=Math.floor(E[1]),b}function gt(b,E,I){return b[0]=Math.min(E[0],I[0]),b[1]=Math.min(E[1],I[1]),b}function d(b,E,I){return b[0]=Math.max(E[0],I[0]),b[1]=Math.max(E[1],I[1]),b}function f(b,E){return b[0]=Math.round(E[0]),b[1]=Math.round(E[1]),b}function rt(b,E,I){return b[0]=E[0]*I,b[1]=E[1]*I,b}function J(b,E,I,z){return b[0]=E[0]+I[0]*z,b[1]=E[1]+I[1]*z,b}function St(b,E){var I=E[0]-b[0],z=E[1]-b[1];return Math.hypot(I,z)}function wt(b,E){var I=E[0]-b[0],z=E[1]-b[1];return I*I+z*z}function X(b){var E=b[0],I=b[1];return Math.hypot(E,I)}function at(b){var E=b[0],I=b[1];return E*E+I*I}function _t(b,E){return b[0]=-E[0],b[1]=-E[1],b}function Rt(b,E){return b[0]=1/E[0],b[1]=1/E[1],b}function $t(b,E){var I=E[0],z=E[1],B=I*I+z*z;return B>0&&(B=1/Math.sqrt(B)),b[0]=E[0]*B,b[1]=E[1]*B,b}function re(b,E){return b[0]*E[0]+b[1]*E[1]}function Se(b,E,I){var z=E[0]*I[1]-E[1]*I[0];return b[0]=b[1]=0,b[2]=z,b}function pt(b,E,I,z){var B=E[0],j=E[1];return b[0]=B+z*(I[0]-B),b[1]=j+z*(I[1]-j),b}function Dt(b,E){E=E||1;var I=glMatrix.RANDOM()*2*Math.PI;return b[0]=Math.cos(I)*E,b[1]=Math.sin(I)*E,b}function Jt(b,E,I){var z=E[0],B=E[1];return b[0]=I[0]*z+I[2]*B,b[1]=I[1]*z+I[3]*B,b}function Ht(b,E,I){var z=E[0],B=E[1];return b[0]=I[0]*z+I[2]*B+I[4],b[1]=I[1]*z+I[3]*B+I[5],b}function At(b,E,I){var z=E[0],B=E[1];return b[0]=I[0]*z+I[3]*B+I[6],b[1]=I[1]*z+I[4]*B+I[7],b}function U(b,E,I){var z=E[0],B=E[1];return b[0]=I[0]*z+I[4]*B+I[12],b[1]=I[1]*z+I[5]*B+I[13],b}function C(b,E,I,z){var B=E[0]-I[0],j=E[1]-I[1],Q=Math.sin(z),Ct=Math.cos(z);return b[0]=B*Ct-j*Q+I[0],b[1]=B*Q+j*Ct+I[1],b}function F(b,E){var I=b[0],z=b[1],B=E[0],j=E[1],Q=Math.sqrt(I*I+z*z)*Math.sqrt(B*B+j*j),Ct=Q&&(I*B+z*j)/Q;return Math.acos(Math.min(Math.max(Ct,-1),1))}function W(b){return b[0]=0,b[1]=0,b}function lt(b){return"vec2("+b[0]+", "+b[1]+")"}function Z(b,E){return b[0]===E[0]&&b[1]===E[1]}function nt(b,E){var I=b[0],z=b[1],B=E[0],j=E[1];return Math.abs(I-B)<=glMatrix.EPSILON*Math.max(1,Math.abs(I),Math.abs(B))&&Math.abs(z-j)<=glMatrix.EPSILON*Math.max(1,Math.abs(z),Math.abs(j))}var T=null,N=vt,O=null,L=null,tt=null,it=null,k=null,_=function(){var b=dt();return function(E,I,z,B,j,Q){var Ct,qt;for(I||(I=2),z||(z=0),B?qt=Math.min(B*I+z,E.length):qt=E.length,Ct=z;Ct<qt;Ct+=I)b[0]=E[Ct],b[1]=E[Ct+1],j(b,b,Q),E[Ct]=b[0],E[Ct+1]=b[1];return E}}()},73807:function(_e){"use strict";var ee=_e.exports;_e.exports.isNumber=function(et){return typeof et=="number"},_e.exports.findMin=function(et){if(et.length===0)return Infinity;for(var ht=et[0],dt=1;dt<et.length;dt++)ht=Math.min(ht,et[dt]);return ht},_e.exports.findMax=function(et){if(et.length===0)return-Infinity;for(var ht=et[0],dt=1;dt<et.length;dt++)ht=Math.max(ht,et[dt]);return ht},_e.exports.findMinMulti=function(et){for(var ht=ee.findMin(et[0]),dt=1;dt<et.length;dt++)ht=Math.min(ht,ee.findMin(et[dt]));return ht},_e.exports.findMaxMulti=function(et){for(var ht=ee.findMax(et[0]),dt=1;dt<et.length;dt++)ht=Math.max(ht,ee.findMax(et[dt]));return ht},_e.exports.inside=function(et,ht,dt){return et<=dt&&dt<=ht}},53843:function(_e,ee,et){"use strict";var ht=50,dt=2,Kt=Math.log(2),kt=_e.exports,Tt=et(73807);function mt(vt){return 1-Math.abs(vt)}_e.exports.getUnifiedMinMax=function(vt,xt){return kt.getUnifiedMinMaxMulti([vt],xt)},_e.exports.getUnifiedMinMaxMulti=function(vt,xt){xt=xt||{};var jt=!1,Ot=!1,Pt=Tt.isNumber(xt.width)?xt.width:dt,gt=Tt.isNumber(xt.size)?xt.size:ht,d=Tt.isNumber(xt.min)?xt.min:(jt=!0,Tt.findMinMulti(vt)),f=Tt.isNumber(xt.max)?xt.max:(Ot=!0,Tt.findMaxMulti(vt)),rt=f-d,J=rt/(gt-1);return jt&&(d=d-2*Pt*J),Ot&&(f=f+2*Pt*J),{min:d,max:f}},_e.exports.create=function(vt,xt){if(xt=xt||{},!vt||vt.length===0)return[];var jt=Tt.isNumber(xt.size)?xt.size:ht,Ot=Tt.isNumber(xt.width)?xt.width:dt,Pt=kt.getUnifiedMinMax(vt,{size:jt,width:Ot,min:xt.min,max:xt.max}),gt=Pt.min,d=Pt.max,f=d-gt,rt=f/(jt-1);if(f===0)return[{x:gt,y:1}];for(var J=[],St=0;St<jt;St++)J.push({x:gt+St*rt,y:0});var wt=function(pt){return Math.floor((pt-gt)/rt)},X=ct(mt,Ot),at=X[Ot],_t=X[Ot-1]-X[Ot-2],Rt=0;vt.forEach(function(pt){var Dt=wt(pt);if(!(Dt+Ot<0||Dt-Ot>=J.length)){var Jt=Math.max(Dt-Ot,0),Ht=Dt,At=Math.min(Dt+Ot,J.length-1),U=Jt-(Dt-Ot),C=Dt+Ot-At,F=X[-Ot-1+U]||0,W=X[-Ot-1+C]||0,lt=at/(at-F-W);U>0&&(Rt+=lt*(U-1)*_t);var Z=Math.max(0,Dt-Ot+1);Tt.inside(0,J.length-1,Z)&&(J[Z].y+=lt*1*_t),Tt.inside(0,J.length-1,Ht+1)&&(J[Ht+1].y-=lt*2*_t),Tt.inside(0,J.length-1,At+1)&&(J[At+1].y+=lt*1*_t)}});var $t=Rt,re=0,Se=0;return J.forEach(function(pt){re+=pt.y,$t+=re,pt.y=$t,Se+=$t}),Se>0&&J.forEach(function(pt){pt.y/=Se}),J};function ct(vt,xt){for(var jt={},Ot=0,Pt=-xt;Pt<=xt;Pt++)Ot+=vt(Pt/xt),jt[Pt]=Ot;return jt}_e.exports.getExpectedValueFromPdf=function(vt){if(!(!vt||vt.length===0)){var xt=0;return vt.forEach(function(jt){xt+=jt.x*jt.y}),xt}},_e.exports.getXWithLeftTailArea=function(vt,xt){if(!(!vt||vt.length===0)){for(var jt=0,Ot=0,Pt=0;Pt<vt.length&&(Ot=Pt,jt+=vt[Pt].y,!(jt>=xt));Pt++);return vt[Ot].x}},_e.exports.getPerplexity=function(vt){if(!(!vt||vt.length===0)){var xt=0;return vt.forEach(function(jt){var Ot=Math.log(jt.y);isFinite(Ot)&&(xt+=jt.y*Ot)}),xt=-xt/Kt,Math.pow(2,xt)}}},74204:function(_e,ee,et){"use strict";et.d(ee,{Z:function(){return dt},o:function(){return kt}});var ht;function dt(Tt){if(typeof document=="undefined")return 0;if(Tt||ht===void 0){var mt=document.createElement("div");mt.style.width="100%",mt.style.height="200px";var ct=document.createElement("div"),vt=ct.style;vt.position="absolute",vt.top="0",vt.left="0",vt.pointerEvents="none",vt.visibility="hidden",vt.width="200px",vt.height="150px",vt.overflow="hidden",ct.appendChild(mt),document.body.appendChild(ct);var xt=mt.offsetWidth;ct.style.overflow="scroll";var jt=mt.offsetWidth;xt===jt&&(jt=ct.clientWidth),document.body.removeChild(ct),ht=xt-jt}return ht}function Kt(Tt){var mt=Tt.match(/^(.*)px$/),ct=Number(mt==null?void 0:mt[1]);return Number.isNaN(ct)?dt():ct}function kt(Tt){if(typeof document=="undefined"||!Tt||!(Tt instanceof Element))return{width:0,height:0};var mt=getComputedStyle(Tt,"::-webkit-scrollbar"),ct=mt.width,vt=mt.height;return{width:Kt(ct),height:Kt(vt)}}},55168:function(_e,ee){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.SensorTabIndex=ee.SensorClassName=ee.SizeSensorId=void 0;var et="size-sensor-id";ee.SizeSensorId=et;var ht="size-sensor-object";ee.SensorClassName=ht;var dt="-1";ee.SensorTabIndex=dt},12177:function(_e,ee){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.default=void 0;var et=function(dt){var Kt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,kt=null;return function(){for(var Tt=this,mt=arguments.length,ct=new Array(mt),vt=0;vt<mt;vt++)ct[vt]=arguments[vt];clearTimeout(kt),kt=setTimeout(function(){dt.apply(Tt,ct)},Kt)}};ee.default=et},15378:function(_e,ee){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.default=void 0;var et=1,ht=function(){return"".concat(et++)};ee.default=ht},18587:function(_e,ee,et){"use strict";var ht;ht={value:!0},ht=ht=ee.ak=void 0;var dt=et(12955),Kt=function(ct,vt){var xt=(0,dt.getSensor)(ct);return xt.bind(vt),function(){xt.unbind(vt)}};ee.ak=Kt;var kt=function(ct){var vt=(0,dt.getSensor)(ct);(0,dt.removeSensor)(vt)};ht=kt;var Tt="1.0.1";ht=Tt},12955:function(_e,ee,et){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.removeSensor=ee.getSensor=void 0;var ht=kt(et(15378)),dt=et(82578),Kt=et(55168);function kt(vt){return vt&&vt.__esModule?vt:{default:vt}}var Tt={},mt=function(xt){var jt=xt.getAttribute(Kt.SizeSensorId);if(jt&&Tt[jt])return Tt[jt];var Ot=(0,ht.default)();xt.setAttribute(Kt.SizeSensorId,Ot);var Pt=(0,dt.createSensor)(xt);return Tt[Ot]=Pt,Pt};ee.getSensor=mt;var ct=function(xt){var jt=xt.element.getAttribute(Kt.SizeSensorId);xt.element.removeAttribute(Kt.SizeSensorId),xt.destroy(),jt&&Tt[jt]&&delete Tt[jt]};ee.removeSensor=ct},82578:function(_e,ee,et){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.createSensor=void 0;var ht=et(27643),dt=et(31743),Kt=typeof ResizeObserver!="undefined"?dt.createSensor:ht.createSensor;ee.createSensor=Kt},27643:function(_e,ee,et){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.createSensor=void 0;var ht=Kt(et(12177)),dt=et(55168);function Kt(Tt){return Tt&&Tt.__esModule?Tt:{default:Tt}}var kt=function(mt){var ct=void 0,vt=[],xt=function(){getComputedStyle(mt).position==="static"&&(mt.style.position="relative");var f=document.createElement("object");return f.onload=function(){f.contentDocument.defaultView.addEventListener("resize",jt),jt()},f.style.display="block",f.style.position="absolute",f.style.top="0",f.style.left="0",f.style.height="100%",f.style.width="100%",f.style.overflow="hidden",f.style.pointerEvents="none",f.style.zIndex="-1",f.style.opacity="0",f.setAttribute("class",dt.SensorClassName),f.setAttribute("tabindex",dt.SensorTabIndex),f.type="text/html",mt.appendChild(f),f.data="about:blank",f},jt=(0,ht.default)(function(){vt.forEach(function(d){d(mt)})}),Ot=function(f){ct||(ct=xt()),vt.indexOf(f)===-1&&vt.push(f)},Pt=function(){ct&&ct.parentNode&&(ct.contentDocument&&ct.contentDocument.defaultView.removeEventListener("resize",jt),ct.parentNode.removeChild(ct),ct=void 0,vt=[])},gt=function(f){var rt=vt.indexOf(f);rt!==-1&&vt.splice(rt,1),vt.length===0&&ct&&Pt()};return{element:mt,bind:Ot,destroy:Pt,unbind:gt}};ee.createSensor=kt},31743:function(_e,ee,et){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.createSensor=void 0;var ht=dt(et(12177));function dt(kt){return kt&&kt.__esModule?kt:{default:kt}}var Kt=function(Tt){var mt=void 0,ct=[],vt=(0,ht.default)(function(){ct.forEach(function(gt){gt(Tt)})}),xt=function(){var d=new ResizeObserver(vt);return d.observe(Tt),vt(),d},jt=function(d){mt||(mt=xt()),ct.indexOf(d)===-1&&ct.push(d)},Ot=function(){mt.disconnect(),ct=[],mt=void 0},Pt=function(d){var f=ct.indexOf(d);f!==-1&&ct.splice(f,1),ct.length===0&&mt&&Ot()};return{element:Tt,bind:jt,destroy:Ot,unbind:Pt}};ee.createSensor=Kt},70655:function(_e,ee,et){"use strict";et.d(ee,{ZT:function(){return dt},pi:function(){return Kt},_T:function(){return kt},mG:function(){return Pt},Jh:function(){return gt},XA:function(){return rt},CR:function(){return J},pr:function(){return wt},ev:function(){return X}});var ht=function(U,C){return ht=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(F,W){F.__proto__=W}||function(F,W){for(var lt in W)Object.prototype.hasOwnProperty.call(W,lt)&&(F[lt]=W[lt])},ht(U,C)};function dt(U,C){if(typeof C!="function"&&C!==null)throw new TypeError("Class extends value "+String(C)+" is not a constructor or null");ht(U,C);function F(){this.constructor=U}U.prototype=C===null?Object.create(C):(F.prototype=C.prototype,new F)}var Kt=function(){return Kt=Object.assign||function(C){for(var F,W=1,lt=arguments.length;W<lt;W++){F=arguments[W];for(var Z in F)Object.prototype.hasOwnProperty.call(F,Z)&&(C[Z]=F[Z])}return C},Kt.apply(this,arguments)};function kt(U,C){var F={};for(var W in U)Object.prototype.hasOwnProperty.call(U,W)&&C.indexOf(W)<0&&(F[W]=U[W]);if(U!=null&&typeof Object.getOwnPropertySymbols=="function")for(var lt=0,W=Object.getOwnPropertySymbols(U);lt<W.length;lt++)C.indexOf(W[lt])<0&&Object.prototype.propertyIsEnumerable.call(U,W[lt])&&(F[W[lt]]=U[W[lt]]);return F}function Tt(U,C,F,W){var lt=arguments.length,Z=lt<3?C:W===null?W=Object.getOwnPropertyDescriptor(C,F):W,nt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Z=Reflect.decorate(U,C,F,W);else for(var T=U.length-1;T>=0;T--)(nt=U[T])&&(Z=(lt<3?nt(Z):lt>3?nt(C,F,Z):nt(C,F))||Z);return lt>3&&Z&&Object.defineProperty(C,F,Z),Z}function mt(U,C){return function(F,W){C(F,W,U)}}function ct(U,C,F,W,lt,Z){function nt(I){if(I!==void 0&&typeof I!="function")throw new TypeError("Function expected");return I}for(var T=W.kind,N=T==="getter"?"get":T==="setter"?"set":"value",O=!C&&U?W.static?U:U.prototype:null,L=C||(O?Object.getOwnPropertyDescriptor(O,W.name):{}),tt,it=!1,k=F.length-1;k>=0;k--){var _={};for(var b in W)_[b]=b==="access"?{}:W[b];for(var b in W.access)_.access[b]=W.access[b];_.addInitializer=function(I){if(it)throw new TypeError("Cannot add initializers after decoration has completed");Z.push(nt(I||null))};var E=(0,F[k])(T==="accessor"?{get:L.get,set:L.set}:L[N],_);if(T==="accessor"){if(E===void 0)continue;if(E===null||typeof E!="object")throw new TypeError("Object expected");(tt=nt(E.get))&&(L.get=tt),(tt=nt(E.set))&&(L.set=tt),(tt=nt(E.init))&&lt.push(tt)}else(tt=nt(E))&&(T==="field"?lt.push(tt):L[N]=tt)}O&&Object.defineProperty(O,W.name,L),it=!0}function vt(U,C,F){for(var W=arguments.length>2,lt=0;lt<C.length;lt++)F=W?C[lt].call(U,F):C[lt].call(U);return W?F:void 0}function xt(U){return typeof U=="symbol"?U:"".concat(U)}function jt(U,C,F){return typeof C=="symbol"&&(C=C.description?"[".concat(C.description,"]"):""),Object.defineProperty(U,"name",{configurable:!0,value:F?"".concat(F," ",C):C})}function Ot(U,C){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(U,C)}function Pt(U,C,F,W){function lt(Z){return Z instanceof F?Z:new F(function(nt){nt(Z)})}return new(F||(F=Promise))(function(Z,nt){function T(L){try{O(W.next(L))}catch(tt){nt(tt)}}function N(L){try{O(W.throw(L))}catch(tt){nt(tt)}}function O(L){L.done?Z(L.value):lt(L.value).then(T,N)}O((W=W.apply(U,C||[])).next())})}function gt(U,C){var F={label:0,sent:function(){if(Z[0]&1)throw Z[1];return Z[1]},trys:[],ops:[]},W,lt,Z,nt;return nt={next:T(0),throw:T(1),return:T(2)},typeof Symbol=="function"&&(nt[Symbol.iterator]=function(){return this}),nt;function T(O){return function(L){return N([O,L])}}function N(O){if(W)throw new TypeError("Generator is already executing.");for(;nt&&(nt=0,O[0]&&(F=0)),F;)try{if(W=1,lt&&(Z=O[0]&2?lt.return:O[0]?lt.throw||((Z=lt.return)&&Z.call(lt),0):lt.next)&&!(Z=Z.call(lt,O[1])).done)return Z;switch(lt=0,Z&&(O=[O[0]&2,Z.value]),O[0]){case 0:case 1:Z=O;break;case 4:return F.label++,{value:O[1],done:!1};case 5:F.label++,lt=O[1],O=[0];continue;case 7:O=F.ops.pop(),F.trys.pop();continue;default:if(Z=F.trys,!(Z=Z.length>0&&Z[Z.length-1])&&(O[0]===6||O[0]===2)){F=0;continue}if(O[0]===3&&(!Z||O[1]>Z[0]&&O[1]<Z[3])){F.label=O[1];break}if(O[0]===6&&F.label<Z[1]){F.label=Z[1],Z=O;break}if(Z&&F.label<Z[2]){F.label=Z[2],F.ops.push(O);break}Z[2]&&F.ops.pop(),F.trys.pop();continue}O=C.call(U,F)}catch(L){O=[6,L],lt=0}finally{W=Z=0}if(O[0]&5)throw O[1];return{value:O[0]?O[1]:void 0,done:!0}}}var d=Object.create?function(U,C,F,W){W===void 0&&(W=F);var lt=Object.getOwnPropertyDescriptor(C,F);(!lt||("get"in lt?!C.__esModule:lt.writable||lt.configurable))&&(lt={enumerable:!0,get:function(){return C[F]}}),Object.defineProperty(U,W,lt)}:function(U,C,F,W){W===void 0&&(W=F),U[W]=C[F]};function f(U,C){for(var F in U)F!=="default"&&!Object.prototype.hasOwnProperty.call(C,F)&&d(C,U,F)}function rt(U){var C=typeof Symbol=="function"&&Symbol.iterator,F=C&&U[C],W=0;if(F)return F.call(U);if(U&&typeof U.length=="number")return{next:function(){return U&&W>=U.length&&(U=void 0),{value:U&&U[W++],done:!U}}};throw new TypeError(C?"Object is not iterable.":"Symbol.iterator is not defined.")}function J(U,C){var F=typeof Symbol=="function"&&U[Symbol.iterator];if(!F)return U;var W=F.call(U),lt,Z=[],nt;try{for(;(C===void 0||C-- >0)&&!(lt=W.next()).done;)Z.push(lt.value)}catch(T){nt={error:T}}finally{try{lt&&!lt.done&&(F=W.return)&&F.call(W)}finally{if(nt)throw nt.error}}return Z}function St(){for(var U=[],C=0;C<arguments.length;C++)U=U.concat(J(arguments[C]));return U}function wt(){for(var U=0,C=0,F=arguments.length;C<F;C++)U+=arguments[C].length;for(var W=Array(U),lt=0,C=0;C<F;C++)for(var Z=arguments[C],nt=0,T=Z.length;nt<T;nt++,lt++)W[lt]=Z[nt];return W}function X(U,C,F){if(F||arguments.length===2)for(var W=0,lt=C.length,Z;W<lt;W++)(Z||!(W in C))&&(Z||(Z=Array.prototype.slice.call(C,0,W)),Z[W]=C[W]);return U.concat(Z||Array.prototype.slice.call(C))}function at(U){return this instanceof at?(this.v=U,this):new at(U)}function _t(U,C,F){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var W=F.apply(U,C||[]),lt,Z=[];return lt={},nt("next"),nt("throw"),nt("return"),lt[Symbol.asyncIterator]=function(){return this},lt;function nt(it){W[it]&&(lt[it]=function(k){return new Promise(function(_,b){Z.push([it,k,_,b])>1||T(it,k)})})}function T(it,k){try{N(W[it](k))}catch(_){tt(Z[0][3],_)}}function N(it){it.value instanceof at?Promise.resolve(it.value.v).then(O,L):tt(Z[0][2],it)}function O(it){T("next",it)}function L(it){T("throw",it)}function tt(it,k){it(k),Z.shift(),Z.length&&T(Z[0][0],Z[0][1])}}function Rt(U){var C,F;return C={},W("next"),W("throw",function(lt){throw lt}),W("return"),C[Symbol.iterator]=function(){return this},C;function W(lt,Z){C[lt]=U[lt]?function(nt){return(F=!F)?{value:at(U[lt](nt)),done:!1}:Z?Z(nt):nt}:Z}}function $t(U){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var C=U[Symbol.asyncIterator],F;return C?C.call(U):(U=typeof rt=="function"?rt(U):U[Symbol.iterator](),F={},W("next"),W("throw"),W("return"),F[Symbol.asyncIterator]=function(){return this},F);function W(Z){F[Z]=U[Z]&&function(nt){return new Promise(function(T,N){nt=U[Z](nt),lt(T,N,nt.done,nt.value)})}}function lt(Z,nt,T,N){Promise.resolve(N).then(function(O){Z({value:O,done:T})},nt)}}function re(U,C){return Object.defineProperty?Object.defineProperty(U,"raw",{value:C}):U.raw=C,U}var Se=Object.create?function(U,C){Object.defineProperty(U,"default",{enumerable:!0,value:C})}:function(U,C){U.default=C};function pt(U){if(U&&U.__esModule)return U;var C={};if(U!=null)for(var F in U)F!=="default"&&Object.prototype.hasOwnProperty.call(U,F)&&d(C,U,F);return Se(C,U),C}function Dt(U){return U&&U.__esModule?U:{default:U}}function Jt(U,C,F,W){if(F==="a"&&!W)throw new TypeError("Private accessor was defined without a getter");if(typeof C=="function"?U!==C||!W:!C.has(U))throw new TypeError("Cannot read private member from an object whose class did not declare it");return F==="m"?W:F==="a"?W.call(U):W?W.value:C.get(U)}function Ht(U,C,F,W,lt){if(W==="m")throw new TypeError("Private method is not writable");if(W==="a"&&!lt)throw new TypeError("Private accessor was defined without a setter");if(typeof C=="function"?U!==C||!lt:!C.has(U))throw new TypeError("Cannot write private member to an object whose class did not declare it");return W==="a"?lt.call(U,F):lt?lt.value=F:C.set(U,F),F}function At(U,C){if(C===null||typeof C!="object"&&typeof C!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof U=="function"?C===U:U.has(C)}}}]);