diff --git a/Server/templates/css/385.5d807baf.css b/Server/templates/css/95.5d807baf.css similarity index 100% rename from Server/templates/css/385.5d807baf.css rename to Server/templates/css/95.5d807baf.css diff --git a/Server/templates/index.html b/Server/templates/index.html index e295c06..234c5fa 100644 --- a/Server/templates/index.html +++ b/Server/templates/index.html @@ -1 +1 @@ -Duck Sys Eye
\ No newline at end of file +Duck Sys Eye
\ No newline at end of file diff --git a/Server/templates/js/193.cfdf09ec.js b/Server/templates/js/193.4c856c0c.js similarity index 100% rename from Server/templates/js/193.cfdf09ec.js rename to Server/templates/js/193.4c856c0c.js diff --git a/Server/templates/js/219.5909d40f.js b/Server/templates/js/219.b83c2e16.js similarity index 97% rename from Server/templates/js/219.5909d40f.js rename to Server/templates/js/219.b83c2e16.js index c989e0f..91ab19b 100644 --- a/Server/templates/js/219.5909d40f.js +++ b/Server/templates/js/219.b83c2e16.js @@ -1 +1 @@ -"use strict";(globalThis["webpackChunksyseye"]=globalThis["webpackChunksyseye"]||[]).push([[219],{4219:(a,e,t)=>{t.r(e),t.d(e,{default:()=>_});var n=t(3673),s=t(2323);function o(a,e,t,o,i,l){const r=(0,n.up)("q-td"),p=(0,n.up)("q-btn"),d=(0,n.up)("q-tr"),h=(0,n.up)("q-table");return(0,n.wg)(),(0,n.j4)(h,{class:"q-pa-lg",dense:a.$q.screen.lt.md,title:"白名单列表",columns:a.data_columns,rows:a.data_columns_data,loading:a.loading,pagination:a.pagination,"onUpdate:pagination":e[0]||(e[0]=e=>a.pagination=e),onRequest:a.onRequest},{body:(0,n.w5)((e=>[(0,n.Wm)(d,{props:e},{default:(0,n.w5)((()=>[(0,n.Wm)(r,{key:"path",props:e},{default:(0,n.w5)((()=>[(0,n.Uk)((0,s.zw)(e.row.path),1)])),_:2},1032,["props"]),(0,n.Wm)(r,{key:"hash",props:e},{default:(0,n.w5)((()=>[(0,n.Uk)((0,s.zw)(e.row.hash),1)])),_:2},1032,["props"]),(0,n.Wm)(r,{key:"reason",props:e},{default:(0,n.w5)((()=>[(0,n.Uk)((0,s.zw)(e.row.reason),1)])),_:2},1032,["props"]),(0,n.Wm)(r,{key:"timestamp",props:e},{default:(0,n.w5)((()=>[(0,n.Uk)((0,s.zw)(a.time_parase(e.row.timestamp)),1)])),_:2},1032,["props"]),(0,n.Wm)(r,{key:"action",props:e},{default:(0,n.w5)((()=>[(0,n.Wm)(p,{color:"red",label:"移除白名单",onClick:t=>a.delete_white_hash(e.row.hash)},null,8,["onClick"])])),_:2},1032,["props"])])),_:2},1032,["props"])])),_:1},8,["dense","columns","rows","loading","pagination","onRequest"])}var i=t(52),l=t.n(i);const r=(0,n.aZ)({name:"WhiteList",data:function(){return{data_columns:[{name:"path",align:"center",label:"路径",field:"path"},{name:"hash",align:"center",label:"hash",field:"hash"},{name:"reason",align:"center",label:"原因",field:"reason"},{name:"timestamp",align:"center",label:"时间",field:"timestamp"},{name:"action",align:"center",label:"操作",field:"steamid"}],data_columns_data:[],loading:!1,pagination:{sortBy:"desc",descending:!1,page:1,rowsPerPage:10,rowsNumber:10}}},mounted(){this.onRequest({pagination:this.pagination,filter:void 0})},methods:{delete_white_hash(a){l().get("/api/v1/del/white_list?hash="+a).then((a=>{this.onRequest({pagination:this.pagination,filter:void 0})}))},time_parase(a){const e=a=>a<10?"0"+a:a,t=new Date(Number(a));console.log("time",a);const n=t.getFullYear(),s=t.getMonth()+1,o=t.getDate(),i=t.getHours(),l=t.getMinutes(),r=t.getSeconds();return n+"-"+e(s)+"-"+e(o)+" "+e(i)+":"+e(l)+":"+e(r)},onRequest(a){this.data_columns_data=[],this.loading=!0;const{page:e}=a.pagination;l().get("/api/v1/query/white_list_all").then((a=>{const t=a.data.result;console.log(t);for(let e=0;e{t.r(e),t.d(e,{default:()=>_});var n=t(3673),s=t(2323);function o(a,e,t,o,i,l){const r=(0,n.up)("q-td"),p=(0,n.up)("q-btn"),d=(0,n.up)("q-tr"),h=(0,n.up)("q-table");return(0,n.wg)(),(0,n.j4)(h,{class:"q-pa-lg",dense:a.$q.screen.lt.md,title:"白名单列表",columns:a.data_columns,rows:a.data_columns_data,loading:a.loading,pagination:a.pagination,"onUpdate:pagination":e[0]||(e[0]=e=>a.pagination=e),onRequest:a.onRequest},{body:(0,n.w5)((e=>[(0,n.Wm)(d,{props:e},{default:(0,n.w5)((()=>[(0,n.Wm)(r,{key:"path",props:e},{default:(0,n.w5)((()=>[(0,n.Uk)((0,s.zw)(e.row.path),1)])),_:2},1032,["props"]),(0,n.Wm)(r,{key:"hash",props:e},{default:(0,n.w5)((()=>[(0,n.Uk)((0,s.zw)(e.row.hash),1)])),_:2},1032,["props"]),(0,n.Wm)(r,{key:"reason",props:e},{default:(0,n.w5)((()=>[(0,n.Uk)((0,s.zw)(e.row.reason),1)])),_:2},1032,["props"]),(0,n.Wm)(r,{key:"timestamp",props:e},{default:(0,n.w5)((()=>[(0,n.Uk)((0,s.zw)(a.time_parase(e.row.timestamp)),1)])),_:2},1032,["props"]),(0,n.Wm)(r,{key:"action",props:e},{default:(0,n.w5)((()=>[(0,n.Wm)(p,{color:"red",label:"移除白名单",onClick:t=>a.delete_white_hash(e.row.hash)},null,8,["onClick"])])),_:2},1032,["props"])])),_:2},1032,["props"])])),_:1},8,["dense","columns","rows","loading","pagination","onRequest"])}var i=t(52),l=t.n(i);const r=(0,n.aZ)({name:"WhiteList",data:function(){return{data_columns:[{name:"path",align:"center",label:"路径",field:"path"},{name:"hash",align:"center",label:"hash",field:"hash"},{name:"reason",align:"center",label:"原因",field:"reason"},{name:"timestamp",align:"center",label:"时间",field:"timestamp"},{name:"action",align:"center",label:"操作",field:"steamid"}],data_columns_data:[],loading:!1,pagination:{sortBy:"desc",descending:!1,page:1,rowsPerPage:10,rowsNumber:10}}},mounted(){this.onRequest({pagination:this.pagination,filter:void 0})},methods:{delete_white_hash(a){l().get("/api/v1/del/white_list?hash="+a).then((a=>{this.onRequest({pagination:this.pagination,filter:void 0})}))},time_parase(a){const e=a=>a<10?"0"+a:a,t=new Date(Number(a));console.log("time",a);const n=t.getFullYear(),s=t.getMonth()+1,o=t.getDate(),i=t.getHours(),l=t.getMinutes(),r=t.getSeconds();return n+"-"+e(s)+"-"+e(o)+" "+e(i)+":"+e(l)+":"+e(r)},onRequest(a){this.data_columns_data=[],this.loading=!0;const{page:e}=a.pagination;l().get("/api/v1/query/white_list_all").then((a=>{const t=a.data.result;console.log(t);for(let e=0;e{n.r(e),n.d(e,{default:()=>Z});var l=n(3673);const r=(0,l.Uk)(" RmEye测试版v1.0.1.3 "),i={key:1,class:"q-gutter-md q-mb-sm q-pa-lg"};function o(t,e,n,o,a,u){const s=(0,l.up)("q-toolbar-title"),h=(0,l.up)("q-btn"),d=(0,l.up)("q-toolbar"),c=(0,l.up)("q-breadcrumbs-el"),g=(0,l.up)("q-breadcrumbs"),m=(0,l.up)("q-header"),p=(0,l.up)("router-view"),b=(0,l.up)("q-page-container"),w=(0,l.up)("HtmlPanel"),T=(0,l.up)("q-layout");return(0,l.wg)(),(0,l.j4)(T,{view:"lHh Lpr lFf",style:{"background-color":"rgb(239, 243, 246)"}},{default:(0,l.w5)((()=>[(0,l.Wm)(m,{elevated:"","height-hint":"98"},{default:(0,l.w5)((()=>[(0,l.Wm)(d,{class:"text-white",style:{"background-color":"rgb(210,61,42)"}},{default:(0,l.w5)((()=>[(0,l.Wm)(s,null,{default:(0,l.w5)((()=>[r])),_:1}),(0,l.Wm)(h,{flat:"",round:"",dense:"",icon:"lightbulb"})])),_:1}),(0,l.Wm)(d,{style:{"font-size":"16px","background-color":"rgb(47,43,48)"}},{default:(0,l.w5)((()=>[(0,l.Wm)(g,{"active-color":"white"},{default:(0,l.w5)((()=>[(0,l.Wm)(c,{label:"仪表盘",icon:"dashboard",to:"/page/dashboard"}),(0,l.Wm)(c,{label:"未处理威胁列表",icon:"report",to:"#",onClick:e[0]||(e[0]=e=>{t.routerToThreatList(0)})}),(0,l.Wm)(c,{label:"已处理威胁列表",icon:"done",to:"#",onClick:e[1]||(e[1]=e=>{t.routerToThreatList(1)})}),(0,l.Wm)(c,{label:"已忽略威胁列表",icon:"texture",to:"#",onClick:e[2]||(e[2]=e=>{t.routerToThreatList(2)})}),(0,l.Wm)(c,{label:"白名单列表",icon:"list",to:"#",onClick:e[3]||(e[3]=e=>{t.routerToWhiteList()})})])),_:1})])),_:1})])),_:1}),0==t.isInPlugin?((0,l.wg)(),(0,l.j4)(b,{key:0},{default:(0,l.w5)((()=>[(0,l.Wm)(p)])),_:1})):(0,l.kq)("",!0),t.isInPlugin?((0,l.wg)(),(0,l.iD)("div",i,[(0,l.Wm)(w,{url:t.PluginUrl,"onUpdate:url":e[4]||(e[4]=e=>t.PluginUrl=e)},null,8,["url"])])):(0,l.kq)("",!0)])),_:1})}const a=["innerHTML"];function u(t,e,n,r,i,o){return(0,l.wg)(),(0,l.iD)("div",{innerHTML:t.html},null,8,a)}var s=n(52),h=n.n(s);const d=(0,l.aZ)({props:{url:{required:!0}},data(){return{html:""}},watch:{url(t){this.load(t)}},mounted(){this.load(this.url)},methods:{load(t){if(t&&t.length>0){const e={accept:"text/html, text/plain"};h().get(t,e).then((t=>{this.html=t.data})).catch((()=>{this.html="加载失败"}))}}}});var c=n(4260);const g=(0,c.Z)(d,[["render",u]]),m=g,p=(0,l.aZ)({components:{HtmlPanel:m},name:"MainLayout",setup(){return{}},data:function(){return{selectLabel:"dashboard",drawer:!1,miniState:!0,plugin:[],isInPlugin:!1,PluginUrl:""}},methods:{routerToWhiteList(){this.isInPlugin=!1,this.$router.push({name:"whitelist"})},routerToThreatList(t){this.isInPlugin=!1,this.$router.push({name:"index",params:{queryIndex:t}})},routerToPlugin(t){this.isInPlugin=!0,this.PluginUrl="/plugin/"+t},getPluginsMenu(){h().get("/api/v1/get/plugin_menu",{"Content-Type":"application/json"}).then((t=>{this.plugin=t.data.data.menu,console.log(this.plugin)}))}},mounted(){this.getPluginsMenu()}});var b=n(3066),w=n(3812),T=n(9570),k=n(3747),P=n(8240),f=n(1481),q=n(5926),y=n(2652),W=n(7518),v=n.n(W);const L=(0,c.Z)(p,[["render",o]]),Z=L;v()(p,"components",{QLayout:b.Z,QHeader:w.Z,QToolbar:T.Z,QToolbarTitle:k.Z,QBtn:P.Z,QBreadcrumbs:f.Z,QBreadcrumbsEl:q.Z,QPageContainer:y.Z})}}]); \ No newline at end of file diff --git a/Server/templates/js/550.48260526.js b/Server/templates/js/550.c577ffe7.js similarity index 99% rename from Server/templates/js/550.48260526.js rename to Server/templates/js/550.c577ffe7.js index 5a27fa0..6cd10e3 100644 --- a/Server/templates/js/550.48260526.js +++ b/Server/templates/js/550.c577ffe7.js @@ -1 +1 @@ -"use strict";(globalThis["webpackChunksyseye"]=globalThis["webpackChunksyseye"]||[]).push([[550],{6550:(t,e,a)=>{a.r(e),a.d(e,{default:()=>it});var i=a(3673),l=a(2323);const s={class:"row"},n=(0,i._)("div",{class:"col"},null,-1),o={class:"col"},d={class:"row q-gutter-md q-mb-sm q-pa-lg"},r={key:0},h=(0,i._)("div",{class:"bg-red-5"}," ",-1),c=(0,i.Uk)(" 分数: "),u=(0,i.Uk)(" 活动状态: "),w=(0,i.Uk)(" ATTCK命中: "),p=(0,i.Uk)(" 产生的威胁: "),A=(0,i.Uk)(" 机器学习引擎 "),m=(0,i.Uk)(" 查看详情 "),g=(0,i.Uk)(" 在VT上搜索 "),_=(0,i.Uk)(" 确认威胁 "),k=(0,i.Uk)(" 忽略威胁 "),C=(0,i.Uk)(" 删除报警 "),f=(0,i._)("div",{class:"col"},null,-1),D=(0,i._)("div",{class:"text-h6"},"填写缘由",-1),B=(0,i.Uk)("Close"),b={class:"row",style:{width:"100%",height:"100%"}},U={ref:"main_draw",style:{width:"100%",height:"100%","margin-left":"5%"}},W=(0,i.Uk)("进程命中的规则: "),Q=(0,i.Uk)(" 无 "),v=(0,i.Uk)("attck矩阵: "),y=(0,i.Uk)(" 无 ");function V(t,e,a,V,q,S){const I=(0,i.up)("q-chip"),Z=(0,i.up)("q-btn"),E=(0,i.up)("q-card-actions"),K=(0,i.up)("q-card-section"),x=(0,i.up)("q-card"),Y=(0,i.up)("q-timeline-entry"),z=(0,i.up)("q-timeline"),H=(0,i.up)("q-input"),N=(0,i.up)("q-dialog"),O=(0,i.up)("q-space"),j=(0,i.up)("q-tooltip"),F=(0,i.up)("q-bar"),L=(0,i.up)("q-item-section"),X=(0,i.up)("q-item"),J=(0,i.up)("q-separator"),P=(0,i.up)("q-list"),R=(0,i.up)("q-drawer"),T=(0,i.Q2)("close-popup");return(0,i.wg)(),(0,i.iD)(i.HY,null,[(0,i._)("div",null,[(0,i._)("div",s,[n,(0,i._)("div",o,[(0,i._)("div",d,[(0,i.Wm)(z,{layout:"dense",side:"right",color:"red"},{default:(0,i.w5)((()=>[t.server_threat.data&&0!=t.server_threat.data.length?(0,i.kq)("",!0):((0,i.wg)(),(0,i.iD)("h4",r,"暂无可用数据,下次刷新时间 "+(0,l.zw)(t.last_refresh)+"...",1)),((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(t.server_threat.data,((e,a)=>((0,i.wg)(),(0,i.j4)(Y,{key:a,subtitle:"主机:"+e.host,side:"left"},{default:(0,i.w5)((()=>[(0,i._)("div",null,[(0,i.Wm)(x,{flat:"",bordered:"",style:{overflow:"auto"},"thumb-style":t.thumbStyle,"bar-style":t.barStyle},{default:(0,i.w5)((()=>[(0,i.Wm)(K,{horizontal:""},{default:(0,i.w5)((()=>[h,(0,i.Wm)(E,{vertical:"",class:"justify-around q-px-md"},{default:(0,i.w5)((()=>[(0,i._)("div",null,"进程链hash: "+(0,l.zw)(e.chain_hash),1),(0,i._)("div",null,"进程: "+(0,l.zw)(e.start_process.path),1),(0,i._)("div",null,"用户: "+(0,l.zw)(e.start_process.user),1),(0,i._)("div",null,[c,(0,i.Wm)(I,{square:"",color:"orange","text-color":"white","icon-right":"visibility"},{default:(0,i.w5)((()=>[(0,i.Uk)((0,l.zw)(e.risk_score),1)])),_:2},1024)]),(0,i._)("div",null,[u,(0,i.Wm)(I,{square:"",color:1==e.is_end?"negative":"red","text-color":"white"},{default:(0,i.w5)((()=>[(0,i.Uk)((0,l.zw)(1==e.is_end?"已结束":"进行中"),1)])),_:2},1032,["color"])]),(0,i._)("div",null,[w,((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(e.attck_hit_list,((t,e)=>((0,i.wg)(),(0,i.j4)(I,{key:t,square:"",color:"rgb(239,243,246)"},{default:(0,i.w5)((()=>[(0,i.Uk)((0,l.zw)(e)+" ("+(0,l.zw)(t)+") ",1)])),_:2},1024)))),128))]),(0,i._)("div",null,[p,((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(e.hit_rule,((t,e)=>((0,i.wg)(),(0,i.j4)(I,{key:t,square:"",color:"red","text-color":"white"},{default:(0,i.w5)((()=>[(0,i.Uk)((0,l.zw)(e)+" ("+(0,l.zw)(t)+") ",1)])),_:2},1024)))),128)),"{}"==JSON.stringify(e.hit_rule)?((0,i.wg)(),(0,i.j4)(I,{key:0,square:"",color:"negative","text-color":"white"},{default:(0,i.w5)((()=>[A])),_:1})):(0,i.kq)("",!0)]),(0,i._)("div",null,[(0,i.Wm)(Z,{flat:"",color:"accent",onClick:a=>t.show_details(e.id),icon:"open_in_new"},{default:(0,i.w5)((()=>[m])),_:2},1032,["onClick"]),(0,i.Wm)(Z,{flat:"",color:"accent",onClick:a=>t.search_vt(e.start_process.hash),icon:"search"},{default:(0,i.w5)((()=>[g])),_:2},1032,["onClick"]),(0,i.Wm)(Z,{flat:"",color:"accent",onClick:a=>t.handle_threat(e.id,1),icon:"done"},{default:(0,i.w5)((()=>[_])),_:2},1032,["onClick"]),(0,i.Wm)(Z,{flat:"",color:"accent",onClick:a=>t.handle_threat(e.id,2),icon:"texture"},{default:(0,i.w5)((()=>[k])),_:2},1032,["onClick"]),(0,i.Wm)(Z,{flat:"",color:"accent",icon:"close",onClick:a=>t.delete_threat(e.id)},{default:(0,i.w5)((()=>[C])),_:2},1032,["onClick"])])])),_:2},1024)])),_:2},1024)])),_:2},1032,["thumb-style","bar-style"])])])),_:2},1032,["subtitle"])))),128))])),_:1})])]),f])]),(0,i.Wm)(N,{modelValue:t.addwhiteListHash,"onUpdate:modelValue":e[3]||(e[3]=e=>t.addwhiteListHash=e),persistent:"","transition-show":"scale","transition-hide":"scale"},{default:(0,i.w5)((()=>[(0,i.Wm)(x,{style:{"min-width":"350px"}},{default:(0,i.w5)((()=>[(0,i.Wm)(K,null,{default:(0,i.w5)((()=>[D])),_:1}),(0,i.Wm)(K,{class:"q-pt-none"},{default:(0,i.w5)((()=>[(0,i.Wm)(H,{dense:"",modelValue:this.whiteListPostData.reason,"onUpdate:modelValue":e[0]||(e[0]=t=>this.whiteListPostData.reason=t),autofocus:""},null,8,["modelValue"])])),_:1}),(0,i.Wm)(E,{align:"right",class:"text-primary"},{default:(0,i.w5)((()=>[(0,i.wy)((0,i.Wm)(Z,{flat:"",label:"取消",onClick:e[1]||(e[1]=e=>t.addwhiteListHash=!1)},null,512),[[T]]),(0,i.wy)((0,i.Wm)(Z,{flat:"",label:"加入白名单",onClick:e[2]||(e[2]=e=>t.add_to_white_hash_post())},null,512),[[T]])])),_:1})])),_:1})])),_:1},8,["modelValue"]),(0,i.Wm)(N,{modelValue:t.dialog,"onUpdate:modelValue":e[8]||(e[8]=e=>t.dialog=e),persistent:"",maximized:t.maximizedToggle,"transition-show":"slide-up","transition-hide":"slide-down"},{default:(0,i.w5)((()=>[(0,i.Wm)(x,{class:"text-white"},{default:(0,i.w5)((()=>[(0,i.Wm)(F,null,{default:(0,i.w5)((()=>[(0,i.Wm)(O),(0,i.wy)(((0,i.wg)(),(0,i.j4)(Z,{dense:"",flat:"",icon:"close"},{default:(0,i.w5)((()=>[(0,i.Wm)(j,{"content-class":"bg-white text-primary"},{default:(0,i.w5)((()=>[B])),_:1})])),_:1})),[[T]])])),_:1}),(0,i._)("div",b,[(0,i._)("div",U," 1 ",512)]),t.processChainShowDetails?((0,i.wg)(),(0,i.j4)(R,{key:0,"show-if-above":"",modelValue:t.processChainShowDetails,"onUpdate:modelValue":e[7]||(e[7]=e=>t.processChainShowDetails=e),side:"right",bordered:"",width:"350",class:"text-dark"},{default:(0,i.w5)((()=>[(0,i.Wm)(P,{style:{width:"100%","word-break":"break-all"}},{default:(0,i.w5)((()=>[(0,i.Wm)(X,null,{default:(0,i.w5)((()=>[(0,i.Wm)(L,null,{default:(0,i.w5)((()=>[(0,i.Uk)("活跃状态: "+(0,l.zw)(t.processChainDetails.active?"运行中":"已结束"),1)])),_:1})])),_:1}),(0,i.Wm)(J),(0,i.Wm)(X,null,{default:(0,i.w5)((()=>[(0,i.Wm)(L,null,{default:(0,i.w5)((()=>[(0,i.Uk)("进程名字: "+(0,l.zw)(t.processChainDetails.name),1)])),_:1})])),_:1}),(0,i.Wm)(J),(0,i.Wm)(X,null,{default:(0,i.w5)((()=>[(0,i.Wm)(L,null,{default:(0,i.w5)((()=>[(0,i.Uk)("进程路径: "+(0,l.zw)(t.processChainDetails.path),1)])),_:1})])),_:1}),(0,i.Wm)(J),(0,i.Wm)(X,null,{default:(0,i.w5)((()=>[(0,i.Wm)(L,null,{default:(0,i.w5)((()=>[(0,i.Uk)("进程参数: "+(0,l.zw)(t.processChainDetails.params),1)])),_:1})])),_:1}),(0,i.Wm)(J),(0,i.Wm)(X,null,{default:(0,i.w5)((()=>[(0,i.Wm)(L,null,{default:(0,i.w5)((()=>[(0,i.Uk)("进程id: "+(0,l.zw)(t.processChainDetails.pid),1)])),_:1})])),_:1}),(0,i.Wm)(J),(0,i.Wm)(X,null,{default:(0,i.w5)((()=>[(0,i.Wm)(L,null,{default:(0,i.w5)((()=>[(0,i.Uk)("父进程id: "+(0,l.zw)(t.processChainDetails.ppid),1)])),_:1})])),_:1}),(0,i.Wm)(J),(0,i.Wm)(X,null,{default:(0,i.w5)((()=>[(0,i.Wm)(L,null,{default:(0,i.w5)((()=>[(0,i.Uk)("进程hash: "+(0,l.zw)(t.processChainDetails.md5),1)])),_:1})])),_:1}),(0,i.Wm)(J),(0,i.Wm)(X,null,{default:(0,i.w5)((()=>[(0,i.Wm)(L,null,{default:(0,i.w5)((()=>[(0,i.Uk)("是否在白名单中: "+(0,l.zw)(t.processChainDetails.isWhite?"是":"否"),1)])),_:1})])),_:1}),(0,i.Wm)(J),(0,i.Wm)(X,null,{default:(0,i.w5)((()=>[(0,i.Wm)(L,null,{default:(0,i.w5)((()=>[W,((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(t.processChainDetails.hitRules,((t,e)=>((0,i.wg)(),(0,i.j4)(I,{key:t,square:"",color:"rgb(239,243,246)"},{default:(0,i.w5)((()=>[(0,i.Uk)((0,l.zw)(e)+" ("+(0,l.zw)(t)+") ",1)])),_:2},1024)))),128)),"{}"==JSON.stringify(t.processChainDetails.hitRules)?((0,i.wg)(),(0,i.j4)(I,{key:0,square:"",color:"rgb(239,243,246)"},{default:(0,i.w5)((()=>[Q])),_:1})):(0,i.kq)("",!0)])),_:1})])),_:1}),(0,i.Wm)(X,null,{default:(0,i.w5)((()=>[(0,i.Wm)(L,null,{default:(0,i.w5)((()=>[v,((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(t.processChainDetails.hitAttck,((t,e)=>((0,i.wg)(),(0,i.j4)(I,{key:t,square:"",color:"rgb(239,243,246)"},{default:(0,i.w5)((()=>[(0,i.Uk)((0,l.zw)(e)+" ("+(0,l.zw)(t)+") ",1)])),_:2},1024)))),128)),"{}"==JSON.stringify(t.processChainDetails.hitAttck)?((0,i.wg)(),(0,i.j4)(I,{key:0,square:"",color:"rgb(239,243,246)"},{default:(0,i.w5)((()=>[y])),_:1})):(0,i.kq)("",!0)])),_:1})])),_:1}),(0,i.Wm)(X,null,{default:(0,i.w5)((()=>[(0,i.Wm)(Z,{icon:"search",outline:"",style:{color:"grey",width:"100%"},label:"搜索hash",onClick:e[4]||(e[4]=e=>t.search_vt(t.processChainDetails.md5))})])),_:1}),(0,i.Wm)(X,null,{default:(0,i.w5)((()=>[0==t.processChainDetails.isWhite?((0,i.wg)(),(0,i.j4)(Z,{key:0,icon:"texture",outline:"",style:{color:"grey",width:"100%"},label:"加入白名单",onClick:e[5]||(e[5]=e=>t.add_to_white_hash_pre(t.processChainDetails.path,t.processChainDetails.md5))})):((0,i.wg)(),(0,i.j4)(Z,{key:1,icon:"clear",outline:"",style:{color:"grey",width:"100%"},label:"从白名单中删除",onClick:e[6]||(e[6]=e=>t.delete_white_hash(t.processChainDetails.md5))}))])),_:1})])),_:1})])),_:1},8,["modelValue"])):(0,i.kq)("",!0)])),_:1})])),_:1},8,["modelValue","maximized"])],64)}var q=a(52),S=a.n(q),I=a(2256);const Z=(0,i.aZ)({name:"PageIndex",data:function(){return{addwhiteListHash:!1,whiteListPostData:{path:"",hash:"",reason:""},processChainShowDetails:!1,last_refresh:360,processChainDetails:{hash:"",prams:"",hitRules:[],hitAttck:[],isWhite:!1,whiteListReason:""},thumbStyle:{right:"4px",borderRadius:"5px",backgroundColor:"#027be3",width:"5px",opacity:.75},barStyle:{right:"2px",borderRadius:"9px",backgroundColor:"#027be3",width:"9px",opacity:.2},dialog:!1,maximizedToggle:!0,server_threat:{},select_chain_data:{}}},methods:{delete_white_hash(t){S().get("/api/v1/del/white_list?hash="+t).then((t=>{this.processChainDetails.isWhite=!1}))},query_white_hash(t){S().get("/api/v1/query/white_list?hash="+t).then((t=>{this.processChainDetails.isWhite=1===t.data.result}))},add_to_white_hash_pre(t,e){this.whiteListPostData={path:t,hash:e,reason:""},this.addwhiteListHash=!0,console.log("addwhiteListHash",this.addwhiteListHash)},add_to_white_hash_post(){S().post("/api/v1/set/white_list",this.whiteListPostData).then((t=>{this.processChainDetails.isWhite=!0}))},set_chain_data(t){if(t.path){const e=t.path.split("\\");t.name=e[e.length-1],console.log(t.name);for(const a in t.children)this.set_chain_data(t.children[a])}},draw_tree(){this.set_chain_data(this.select_chain_data);const t=this.$refs.main_draw,e=I.S1(t),a={tooltip:{trigger:"item",triggerOn:"mousemove",formatter:function(t){const e=t.data;let a="
参数: "+e.params+"
hash: "+e.md5+"
命名规则列表: ";0===e.operationlist.length&&(a+="无");for(const i in e.operationlist)a+=" "+i+"["+e.operationlist[i]+"] ";return a+="
",a}},series:[{roam:!0,type:"tree",id:0,name:"tree1",data:[this.select_chain_data],top:"5%",left:"15%",bottom:"22%",right:"20%",edgeShape:"polyline",edgeForkPosition:"63%",initialTreeDepth:60,lineStyle:{width:2},label:{backgroundColor:"#fff",position:"left",verticalAlign:"middle",align:"right"},leaves:{label:{position:"right",verticalAlign:"middle",align:"left"}},emphasis:{focus:"descendant"},symbolSize:[30,30],symbol:"image://data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAANXklEQVR4Xu2de6hmVRmHn0mzcUzNwcJKS8roQpdJrayEykYzMkLFcjSiwiLrj8qKhugekU1RFnSVNNDUCiqDbmSMUEnJJBVmVpNaiTmVIGlpIhpv7VPHb873fXvtddnv2uu34HD+OGu9612/dz1n7cu711qHihSQAnMVWCdtpIAUmK+AANHskAILFBAgmh5SQIBoDkiBYQpoBRmmm1o1ooAAaSTQGuYwBQTIMN3UqhEFBEgjgdYwhykgQIbpplaNKCBAGgm0hjlMAQEyTDe1akSBMQB5IvA44GHAxkZ01jDjFLgF+DNwTfcTZy2gdSlA9ge2AluARwb4p6pSYFaBncAlwDbgttzylADkDODDWi1yh7I5+7uAs4CLco48JyB7AxcCJ+UcgGw3r8D5wGuBu3MokQuQfYDLgSNzOC2bUmBGgcuAY3OokgOQPYDvAptzOCybUmCOAnapdXpqdXIAcibw6dSOyp4U6KHAicA3etTrXSU1IHsBfwAO6u2BKkqBdArYY2B7jXBvKpOpAXkVcF4q52RHCgxQ4Djg+wPardkkNSB27/GCVM7JjhQYoMC53VOtAU13b5ISkPXAHUm8khEpMFyBm4CHD29+35YpATkUuD6VY7IjBSIU2JDqn3VKQJ4GXBkxKDWVAqkU2AT8IoWxlIA8F9ge6NTzuheKs83eC7wn0FbKsQR2reprKBD6JOl9gMV9tqScV8GBSjmpUg5EgASH0l0DATITEgHibo6O6pAAESCjTkDvnQsQAeJ9jo7qnwARIKNOQO+dCxAB4n2OjuqfABEgo05A750LEAHifY6O6p8AESCjTkDvnQsQAeJ9jo7qnwARIKNOQO+dC5CJAGL7dVmqft/yk+6b+771F9U7tdtEr6+tm4HP9q28pN5RwPGBts4G7uzZRoBMBJBbAdvYrm/5BPCmvpWX1LPvp18SYMsyVC1TNUWxMXw80NABgOnVpwgQAdJnniysI0D+L4+yedeYKh7S3bWC9OdcK0h/rXarWWs2rwDpH3QB0l8rARKh1UpTXWLpEmvhNNIllm7SVyaI7kF0D7KbAlpBtIJoBVmggAARIAJEgPS6W9Mlli6xdIm1ABUBIkAEiADptZr+r5KeYukplp5iLWBGgAgQASJA5iqgp1h6iqWnWHqK1eu6WzfpuknXTbpu0nv9s9BNeqeALrF0iaVLLF1i9fqvqUssp5dYRwN79grhfyvdCOwMqL+oqh04eWCArduBHQH1F1U9GDgs0NblAfX1ReGMWLV+DxIQc1UNUECACJCA6dJeVQEiQNqb9QEjFiACJGC6tFdVgAiQ9mZ9wIgFiAAJmC7tVRUgAqS9WR8wYgEiQAKmS3tVBYgAaW/WB4xYgAiQgOnSXlUBIkDam/UBIxYgzgCxrxNV/CiwPdAVJSuuIVjKT24D46HqzhQQIALE2ZT05Y4AESC+ZqQzbwSIAHE2JX25I0AEiK8Z6cwbASJAnE1JX+4IEAHia0Y680aACBBnU9KXOwJEgPiakc68ESACxNmU9OWOABEgvmakM28EiABxNiV9uSNAAgA5FLAflXYUuAGwn9mScr+1YDXXBbeY32DUgSQch0z5UmDUeSVAfE0GeaMV5D4KzEt310SRAisKaAXRXJACCxQQIJoeUkCArK2ALrHExjIFtIIsU0h/b1oBAdJ0+DX4ZQoIkGUK6e9NKyBAmg6/Br9MAQGyTCH9vWkFBEhD4d8IPLnQeEMO3Czk0qBuBMgg2epsZJP2OQVcvwTYUqCfEl0IkBIqO+jjjcA5Bfz4HbAJ+GeBvkp0IUBKqDxyH48FfgnsldmPO4EjgV9l7qekeQFSUu0R+jIodgBPKtD364DPFeinZBcCpKTaI/T1EeCtBfr9OnBSgX5KdyFASitesD+7IbdjAFJ+d7OW+/Ylnj0du63g2Ep1JUBKKV24n/2Aa4GHZu73LuAZwM8z9zOWeQEylvKZ+/0KcErmPsy8PR37ZIF+xupCgIylfMZ+Xw5ckNH+iulvAy8q0M+YXQiQMdXP0PchwNWAXWLlLDd2T8ZuzdmJA9sCxEEQUrlgN+NXAEelMjjHzt3As4ErM/fjwbwA8RCFRD5sBT6UyNYiM28HthXox0MXAsRDFBL4YC8CrwL2TGBrkYkfAJsz9+HJvADxFI2BvqzvHrNaSknOcnN33/G3nJ04sy1AnAVkiDufAl4/pGFAm3u6TOAfBbSZQlUBUnkUjwO+V2AM7wY+UKAfb10IEG8RCfDnAOA3wIMD2gypavcdxwL3DmlceRsBUnEAvwm8OLP/dr/xeKCl+47VkgqQzBMsl/nXAJ/PZbyzayuGrRy2grRaBEiFkX9U9wHUPpl9/yDwzsx9eDcvQLxHaMY/e8/xU+DwzH7b0ypLl7enVy0XAVJZ9N8PvCuzz5ZfZfcd9t6j9SJAKpoBlmP1Y+B+mX22DF3L1FUBAVLJLLD7jV8Dlq2bs3wUeFvODiqzLUAqCdgXgFcX8PVbXdqKbd9j71hsh5IpfkrbV0oB0lepEevZuw575zFW+Qvw2w4Yg2bl5/eApb5PuQgQ59G1b8rtv7i9NfdWDI7r1gDHYNrlzdmB/giQgcKValZqu9DU47EnYWutOrb62EYPtRQB4jhSpbYLLSmBvVf546pVZzVEfyrpSM++BEhPoUpXK7VdaOlxzevvUuBlwL+8ONT5IUCcBcTcKbldqIfhfwl4hdO39gLEwwyZ8aHUdqEehv4Z4A2OU+kFiIdZssqHDcDFXR7U/s58S+1ODcmQAiR11BPZs3QSS0i0s9yPAY4GHpjItgczby50XknsWAVIrIKF2lsW79NXAfMswDZrqK3YNyZnAOdV4rgAqSRQs24+AHhmt7rYKmMbSN/f+VjsxeJpwFed+7naPQFSUbAWuWr3LnYZZpdjBswRwB6OxmaPb08EvuPIpz6uCJA+KlVYZ9/uRn8FmKcUOCdknkx/B04AflihjgKkwqANcdmOgLZgGzD2Yx9ElSi3dP3ZGYk1FgFSY9QS+PwQ4PmrbvofncDmrImbOigtdb7WIkBqjVxivw8GTk746NVS4W2lsryrmosAqTl6iX23b93tm/fYck23Mtl3JLUXAVJ7BBP5by8hLZv2QZH2ftbt/j6Vg3UESOSEmErzFGeL2FOqFwL/mIoo3T2UnRQcUuwxu33HE11SHk88KunRSoxrYO/uXuHACDfs/Ya95/CWrh4xpP80HXVeCZDY8KVp/xbAdjMZWuzNuL0hn+L36QJk6KyYSLvY1cN7unpsmARIrIKVt4/5rNfOQ3xH5eNf5r4AWabQhP9uXy7eANjOKaGllnT10HHN1hcgsQpW3N6ObbPj20JKbenqIWNbq64AiVWw0vb2fYm95Q5ZPWpMV48NjwCJVbDS9qEH8NSarh4bHgESq2CF7W31sFypR/T03V782QvAGtPVew5xbjUBEqtghe1fCZzf029LGdkMWApJi0WANBZ12wzCtv88rMe4LdnQ0iYs+bDVIkAai/zpwIU9xnx9972I/W65CJCGom+pPbYX7rLVY0rp6rHhFSCxClbU/qXAl5f4O7V09djwCJBYBStpb6vH1cATFvg7xXT12PAIkFgFK2lvqehfW+DrVNPVY8MjQGIVrKS9nVI1b/WYcrp6bHgESKyCFbRfdMahbQFqW4FajpXK7goIkAZmxVXAU9cY5zmAZeWqzFdAgEx8dhw/Z7tP+47DvudQWayAAJn4DLmi2+R6ZZh2KWUH1tiXgCrLFRAgyzWqtobtnHjZKu9bTFePDZ4AiVXQcfvVR0i3mq4eGx4BEqug0/Z2dohdXllpOV09NjwCJFZBp+3t0sousVpPV48NjwCJVdBh+5XVQ+nq8cERIPEaurNgaSP21tyC23q6emxwBEisgs7a2wtBy9i1wNr5HCpxCgiQOP3ctbazxz8G2MlOKvEKCJB4DV1Z2A+wMwFV0iggQNLoKCsTVUCATDSwGlYaBQRIGh1lZaIKCJCJBlbDSqOAAEmjo6xMVAEBMtHAalhpFBAgaXSUlYkqMBlAjgB2TDRIGlZdCthctM+co0vKQzztnAulVkSHRAYSKHAQsCuBHVICYv7cAaxP4ZhsSIGBCtwO7Duw7W7NUgNiG6PZBmkqUmAsBSxR9NRUnacGZAtwUSrnZEcKDFDg5CU7WAaZTA1I6MlJQc6qshRYosB1wGOAe1IplRoQ88t2CTw3lYOyIwUCFDgNuDig/tKqOQCxE5QuBU5Y2rsqSIF0Cti9h13iJ93CNQcgNuQN3YGTh6cbvyxJgbkKbAeOyaFPLkBWIPkicEoOx2VTCnQKXNBd1t+VQ5GcgKz4eyZwNmBf2qlIgVQK/BU4q+d5j4P7LAGIObcR2No9nz5ksLdqKAVgZ/cqYVu3IV9WTUoBsnoQm7pHcZaaYuCoSIFlCtgGGJbGZIcQXbuscsq/jwFISv9lSwpkVUCAZJVXxmtXQIDUHkH5n1UBAZJVXhmvXQEBUnsE5X9WBQRIVnllvHYFBEjtEZT/WRUQIFnllfHaFRAgtUdQ/mdVQIBklVfGa1dAgNQeQfmfVQEBklVeGa9dgX8DujCRBT7G+XAAAAAASUVORK5CYII=",expandAndCollapse:!1,animationDuration:350,animationDurationUpdate:450}]};e.setOption(a),e.on("click",(t=>{const e=t.data;this.processChainDetails={path:e.path,active:e.active,md5:e.md5,name:e.name,params:e.params,pid:e.pid,ppid:e.ppid,hitRules:void 0===e.operationlist?{}:e.operationlist,hitAttck:void 0===e.attck_hit_list?{}:e.attck_hit_list,isWhite:!1},this.query_white_hash(e.md5),this.processChainShowDetails=!0}))},search_vt(t){window.open("https://www.virustotal.com/gui/search/"+t,"_blank")},delete_threat(t){S().get("/api/v1/get/process_chain/delete?id="+t,{"Content-Type":"application/json"}).then((t=>{this.get_clientids()}))},handle_threat(t,e){S().get("/api/v1/get/process_chain/handle?id="+t+"&handletype="+e,{"Content-Type":"application/json"}).then((t=>{this.get_clientids()}))},show_details(t){S().get("/api/v1/get/process_chain/pull?id="+t,{"Content-Type":"application/json"}).then((t=>{const e=t.data;e.data&&(this.select_chain_data=e.data.chain.process_node,this.dialog=!0,console.log("this.select_chain_data",this.select_chain_data),this.$nextTick((()=>{this.draw_tree()})))}))},get_clientids(){const t=this.$route.params.queryIndex,e=null===t||void 0===t?0:t;S().get("/api/v1/get/process_chain/all?query_type="+e,{"Content-Type":"application/json"}).then((t=>{const e=t.data;e.data&&(this.server_threat={data:[]},this.server_threat.data=e.data)}))}},mounted(){this.get_clientids(),setInterval((()=>{this.last_refresh-=1,this.last_refresh<=0&&(this.get_clientids(),this.last_refresh=360)}),1e3)},watch:{$route(t,e){this.get_clientids()}}});var E=a(4260),K=a(1432),x=a(3424),Y=a(151),z=a(5589),H=a(9367),N=a(7030),O=a(8240),j=a(6778),F=a(4842),L=a(846),X=a(2025),J=a(8870),P=a(2428),R=a(7011),T=a(3414),G=a(2035),M=a(5869),$=a(677),tt=a(7518),et=a.n(tt);const at=(0,E.Z)(Z,[["render",V]]),it=at;et()(Z,"components",{QTimeline:K.Z,QTimelineEntry:x.Z,QCard:Y.Z,QCardSection:z.Z,QCardActions:H.Z,QChip:N.Z,QBtn:O.Z,QDialog:j.Z,QInput:F.Z,QBar:L.Z,QSpace:X.Z,QTooltip:J.Z,QDrawer:P.Z,QList:R.Z,QItem:T.Z,QItemSection:G.Z,QSeparator:M.Z}),et()(Z,"directives",{ClosePopup:$.Z})}}]); \ No newline at end of file +"use strict";(globalThis["webpackChunksyseye"]=globalThis["webpackChunksyseye"]||[]).push([[550],{6550:(t,e,a)=>{a.r(e),a.d(e,{default:()=>it});var i=a(3673),l=a(2323);const s={class:"row"},n=(0,i._)("div",{class:"col"},null,-1),o={class:"col"},d={class:"row q-gutter-md q-mb-sm q-pa-lg"},r={key:0},h=(0,i._)("div",{class:"bg-red-5"}," ",-1),c=(0,i.Uk)(" 分数: "),u=(0,i.Uk)(" 活动状态: "),w=(0,i.Uk)(" ATTCK命中: "),p=(0,i.Uk)(" 产生的威胁: "),A=(0,i.Uk)(" 机器学习引擎 "),m=(0,i.Uk)(" 查看详情 "),g=(0,i.Uk)(" 在VT上搜索 "),_=(0,i.Uk)(" 确认威胁 "),k=(0,i.Uk)(" 忽略威胁 "),C=(0,i.Uk)(" 删除报警 "),f=(0,i._)("div",{class:"col"},null,-1),D=(0,i._)("div",{class:"text-h6"},"填写缘由",-1),B=(0,i.Uk)("Close"),b={class:"row",style:{width:"100%",height:"100%"}},U={ref:"main_draw",style:{width:"100%",height:"100%","margin-left":"5%"}},W=(0,i.Uk)("进程命中的规则: "),Q=(0,i.Uk)(" 无 "),v=(0,i.Uk)("attck矩阵: "),y=(0,i.Uk)(" 无 ");function V(t,e,a,V,q,S){const I=(0,i.up)("q-chip"),Z=(0,i.up)("q-btn"),E=(0,i.up)("q-card-actions"),K=(0,i.up)("q-card-section"),x=(0,i.up)("q-card"),Y=(0,i.up)("q-timeline-entry"),z=(0,i.up)("q-timeline"),H=(0,i.up)("q-input"),N=(0,i.up)("q-dialog"),O=(0,i.up)("q-space"),j=(0,i.up)("q-tooltip"),F=(0,i.up)("q-bar"),L=(0,i.up)("q-item-section"),X=(0,i.up)("q-item"),J=(0,i.up)("q-separator"),P=(0,i.up)("q-list"),R=(0,i.up)("q-drawer"),T=(0,i.Q2)("close-popup");return(0,i.wg)(),(0,i.iD)(i.HY,null,[(0,i._)("div",null,[(0,i._)("div",s,[n,(0,i._)("div",o,[(0,i._)("div",d,[(0,i.Wm)(z,{layout:"dense",side:"right",color:"red"},{default:(0,i.w5)((()=>[t.server_threat.data&&0!=t.server_threat.data.length?(0,i.kq)("",!0):((0,i.wg)(),(0,i.iD)("h4",r,"暂无可用数据,下次刷新时间 "+(0,l.zw)(t.last_refresh)+"...",1)),((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(t.server_threat.data,((e,a)=>((0,i.wg)(),(0,i.j4)(Y,{key:a,subtitle:"主机:"+e.host,side:"left"},{default:(0,i.w5)((()=>[(0,i._)("div",null,[(0,i.Wm)(x,{flat:"",bordered:"",style:{overflow:"auto"},"thumb-style":t.thumbStyle,"bar-style":t.barStyle},{default:(0,i.w5)((()=>[(0,i.Wm)(K,{horizontal:""},{default:(0,i.w5)((()=>[h,(0,i.Wm)(E,{vertical:"",class:"justify-around q-px-md"},{default:(0,i.w5)((()=>[(0,i._)("div",null,"进程链hash: "+(0,l.zw)(e.chain_hash),1),(0,i._)("div",null,"进程: "+(0,l.zw)(e.start_process.path),1),(0,i._)("div",null,"用户: "+(0,l.zw)(e.start_process.user),1),(0,i._)("div",null,[c,(0,i.Wm)(I,{square:"",color:"orange","text-color":"white","icon-right":"visibility"},{default:(0,i.w5)((()=>[(0,i.Uk)((0,l.zw)(e.risk_score),1)])),_:2},1024)]),(0,i._)("div",null,[u,(0,i.Wm)(I,{square:"",color:1==e.is_end?"negative":"red","text-color":"white"},{default:(0,i.w5)((()=>[(0,i.Uk)((0,l.zw)(1==e.is_end?"已结束":"进行中"),1)])),_:2},1032,["color"])]),(0,i._)("div",null,[w,((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(e.attck_hit_list,((t,e)=>((0,i.wg)(),(0,i.j4)(I,{key:t,square:"",color:"rgb(239,243,246)"},{default:(0,i.w5)((()=>[(0,i.Uk)((0,l.zw)(e)+" ("+(0,l.zw)(t)+") ",1)])),_:2},1024)))),128))]),(0,i._)("div",null,[p,((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(e.hit_rule,((t,e)=>((0,i.wg)(),(0,i.j4)(I,{key:t,square:"",color:"red","text-color":"white"},{default:(0,i.w5)((()=>[(0,i.Uk)((0,l.zw)(e)+" ("+(0,l.zw)(t)+") ",1)])),_:2},1024)))),128)),"{}"==JSON.stringify(e.hit_rule)?((0,i.wg)(),(0,i.j4)(I,{key:0,square:"",color:"negative","text-color":"white"},{default:(0,i.w5)((()=>[A])),_:1})):(0,i.kq)("",!0)]),(0,i._)("div",null,[(0,i.Wm)(Z,{flat:"",color:"accent",onClick:a=>t.show_details(e.id),icon:"open_in_new"},{default:(0,i.w5)((()=>[m])),_:2},1032,["onClick"]),(0,i.Wm)(Z,{flat:"",color:"accent",onClick:a=>t.search_vt(e.start_process.hash),icon:"search"},{default:(0,i.w5)((()=>[g])),_:2},1032,["onClick"]),(0,i.Wm)(Z,{flat:"",color:"accent",onClick:a=>t.handle_threat(e.id,1),icon:"done"},{default:(0,i.w5)((()=>[_])),_:2},1032,["onClick"]),(0,i.Wm)(Z,{flat:"",color:"accent",onClick:a=>t.handle_threat(e.id,2),icon:"texture"},{default:(0,i.w5)((()=>[k])),_:2},1032,["onClick"]),(0,i.Wm)(Z,{flat:"",color:"accent",icon:"close",onClick:a=>t.delete_threat(e.id)},{default:(0,i.w5)((()=>[C])),_:2},1032,["onClick"])])])),_:2},1024)])),_:2},1024)])),_:2},1032,["thumb-style","bar-style"])])])),_:2},1032,["subtitle"])))),128))])),_:1})])]),f])]),(0,i.Wm)(N,{modelValue:t.addwhiteListHash,"onUpdate:modelValue":e[3]||(e[3]=e=>t.addwhiteListHash=e),persistent:"","transition-show":"scale","transition-hide":"scale"},{default:(0,i.w5)((()=>[(0,i.Wm)(x,{style:{"min-width":"350px"}},{default:(0,i.w5)((()=>[(0,i.Wm)(K,null,{default:(0,i.w5)((()=>[D])),_:1}),(0,i.Wm)(K,{class:"q-pt-none"},{default:(0,i.w5)((()=>[(0,i.Wm)(H,{dense:"",modelValue:this.whiteListPostData.reason,"onUpdate:modelValue":e[0]||(e[0]=t=>this.whiteListPostData.reason=t),autofocus:""},null,8,["modelValue"])])),_:1}),(0,i.Wm)(E,{align:"right",class:"text-primary"},{default:(0,i.w5)((()=>[(0,i.wy)((0,i.Wm)(Z,{flat:"",label:"取消",onClick:e[1]||(e[1]=e=>t.addwhiteListHash=!1)},null,512),[[T]]),(0,i.wy)((0,i.Wm)(Z,{flat:"",label:"加入白名单",onClick:e[2]||(e[2]=e=>t.add_to_white_hash_post())},null,512),[[T]])])),_:1})])),_:1})])),_:1},8,["modelValue"]),(0,i.Wm)(N,{modelValue:t.dialog,"onUpdate:modelValue":e[8]||(e[8]=e=>t.dialog=e),persistent:"",maximized:t.maximizedToggle,"transition-show":"slide-up","transition-hide":"slide-down"},{default:(0,i.w5)((()=>[(0,i.Wm)(x,{class:"text-white"},{default:(0,i.w5)((()=>[(0,i.Wm)(F,null,{default:(0,i.w5)((()=>[(0,i.Wm)(O),(0,i.wy)(((0,i.wg)(),(0,i.j4)(Z,{dense:"",flat:"",icon:"close"},{default:(0,i.w5)((()=>[(0,i.Wm)(j,{"content-class":"bg-white text-primary"},{default:(0,i.w5)((()=>[B])),_:1})])),_:1})),[[T]])])),_:1}),(0,i._)("div",b,[(0,i._)("div",U," 1 ",512)]),t.processChainShowDetails?((0,i.wg)(),(0,i.j4)(R,{key:0,"show-if-above":"",modelValue:t.processChainShowDetails,"onUpdate:modelValue":e[7]||(e[7]=e=>t.processChainShowDetails=e),side:"right",bordered:"",width:"350",class:"text-dark"},{default:(0,i.w5)((()=>[(0,i.Wm)(P,{style:{width:"100%","word-break":"break-all"}},{default:(0,i.w5)((()=>[(0,i.Wm)(X,null,{default:(0,i.w5)((()=>[(0,i.Wm)(L,null,{default:(0,i.w5)((()=>[(0,i.Uk)("活跃状态: "+(0,l.zw)(t.processChainDetails.active?"运行中":"已结束"),1)])),_:1})])),_:1}),(0,i.Wm)(J),(0,i.Wm)(X,null,{default:(0,i.w5)((()=>[(0,i.Wm)(L,null,{default:(0,i.w5)((()=>[(0,i.Uk)("进程名字: "+(0,l.zw)(t.processChainDetails.name),1)])),_:1})])),_:1}),(0,i.Wm)(J),(0,i.Wm)(X,null,{default:(0,i.w5)((()=>[(0,i.Wm)(L,null,{default:(0,i.w5)((()=>[(0,i.Uk)("进程路径: "+(0,l.zw)(t.processChainDetails.path),1)])),_:1})])),_:1}),(0,i.Wm)(J),(0,i.Wm)(X,null,{default:(0,i.w5)((()=>[(0,i.Wm)(L,null,{default:(0,i.w5)((()=>[(0,i.Uk)("进程参数: "+(0,l.zw)(t.processChainDetails.params),1)])),_:1})])),_:1}),(0,i.Wm)(J),(0,i.Wm)(X,null,{default:(0,i.w5)((()=>[(0,i.Wm)(L,null,{default:(0,i.w5)((()=>[(0,i.Uk)("进程id: "+(0,l.zw)(t.processChainDetails.pid),1)])),_:1})])),_:1}),(0,i.Wm)(J),(0,i.Wm)(X,null,{default:(0,i.w5)((()=>[(0,i.Wm)(L,null,{default:(0,i.w5)((()=>[(0,i.Uk)("父进程id: "+(0,l.zw)(t.processChainDetails.ppid),1)])),_:1})])),_:1}),(0,i.Wm)(J),(0,i.Wm)(X,null,{default:(0,i.w5)((()=>[(0,i.Wm)(L,null,{default:(0,i.w5)((()=>[(0,i.Uk)("进程hash: "+(0,l.zw)(t.processChainDetails.md5),1)])),_:1})])),_:1}),(0,i.Wm)(J),(0,i.Wm)(X,null,{default:(0,i.w5)((()=>[(0,i.Wm)(L,null,{default:(0,i.w5)((()=>[(0,i.Uk)("是否在白名单中: "+(0,l.zw)(t.processChainDetails.isWhite?"是":"否"),1)])),_:1})])),_:1}),(0,i.Wm)(J),(0,i.Wm)(X,null,{default:(0,i.w5)((()=>[(0,i.Wm)(L,null,{default:(0,i.w5)((()=>[W,((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(t.processChainDetails.hitRules,((t,e)=>((0,i.wg)(),(0,i.j4)(I,{key:t,square:"",color:"rgb(239,243,246)"},{default:(0,i.w5)((()=>[(0,i.Uk)((0,l.zw)(e)+" ("+(0,l.zw)(t)+") ",1)])),_:2},1024)))),128)),"{}"==JSON.stringify(t.processChainDetails.hitRules)?((0,i.wg)(),(0,i.j4)(I,{key:0,square:"",color:"rgb(239,243,246)"},{default:(0,i.w5)((()=>[Q])),_:1})):(0,i.kq)("",!0)])),_:1})])),_:1}),(0,i.Wm)(X,null,{default:(0,i.w5)((()=>[(0,i.Wm)(L,null,{default:(0,i.w5)((()=>[v,((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(t.processChainDetails.hitAttck,((t,e)=>((0,i.wg)(),(0,i.j4)(I,{key:t,square:"",color:"rgb(239,243,246)"},{default:(0,i.w5)((()=>[(0,i.Uk)((0,l.zw)(e)+" ("+(0,l.zw)(t)+") ",1)])),_:2},1024)))),128)),"{}"==JSON.stringify(t.processChainDetails.hitAttck)?((0,i.wg)(),(0,i.j4)(I,{key:0,square:"",color:"rgb(239,243,246)"},{default:(0,i.w5)((()=>[y])),_:1})):(0,i.kq)("",!0)])),_:1})])),_:1}),(0,i.Wm)(X,null,{default:(0,i.w5)((()=>[(0,i.Wm)(Z,{icon:"search",outline:"",style:{color:"grey",width:"100%"},label:"搜索hash",onClick:e[4]||(e[4]=e=>t.search_vt(t.processChainDetails.md5))})])),_:1}),(0,i.Wm)(X,null,{default:(0,i.w5)((()=>[0==t.processChainDetails.isWhite?((0,i.wg)(),(0,i.j4)(Z,{key:0,icon:"texture",outline:"",style:{color:"grey",width:"100%"},label:"加入白名单",onClick:e[5]||(e[5]=e=>t.add_to_white_hash_pre(t.processChainDetails.path,t.processChainDetails.md5))})):((0,i.wg)(),(0,i.j4)(Z,{key:1,icon:"clear",outline:"",style:{color:"grey",width:"100%"},label:"从白名单中删除",onClick:e[6]||(e[6]=e=>t.delete_white_hash(t.processChainDetails.md5))}))])),_:1})])),_:1})])),_:1},8,["modelValue"])):(0,i.kq)("",!0)])),_:1})])),_:1},8,["modelValue","maximized"])],64)}var q=a(52),S=a.n(q),I=a(2256);const Z=(0,i.aZ)({name:"PageIndex",data:function(){return{addwhiteListHash:!1,whiteListPostData:{path:"",hash:"",reason:""},processChainShowDetails:!1,last_refresh:360,processChainDetails:{hash:"",prams:"",hitRules:[],hitAttck:[],isWhite:!1,whiteListReason:""},thumbStyle:{right:"4px",borderRadius:"5px",backgroundColor:"#027be3",width:"5px",opacity:.75},barStyle:{right:"2px",borderRadius:"9px",backgroundColor:"#027be3",width:"9px",opacity:.2},dialog:!1,maximizedToggle:!0,server_threat:{},select_chain_data:{}}},methods:{delete_white_hash(t){S().get("/api/v1/del/white_list?hash="+t).then((t=>{this.processChainDetails.isWhite=!1}))},query_white_hash(t){S().get("/api/v1/query/white_list?hash="+t).then((t=>{this.processChainDetails.isWhite=1===t.data.result}))},add_to_white_hash_pre(t,e){this.whiteListPostData={path:t,hash:e,reason:""},this.addwhiteListHash=!0,console.log("addwhiteListHash",this.addwhiteListHash)},add_to_white_hash_post(){S().post("/api/v1/set/white_list",this.whiteListPostData).then((t=>{this.processChainDetails.isWhite=!0}))},set_chain_data(t){if(t.path){const e=t.path.split("\\");t.name=e[e.length-1],console.log(t.name);for(const a in t.children)this.set_chain_data(t.children[a])}},draw_tree(){this.set_chain_data(this.select_chain_data);const t=this.$refs.main_draw,e=I.S1(t),a={tooltip:{trigger:"item",triggerOn:"mousemove",formatter:function(t){const e=t.data;let a="
参数: "+e.params+"
hash: "+e.md5+"
命名规则列表: ";0===e.operationlist.length&&(a+="无");for(const i in e.operationlist)a+=" "+i+"["+e.operationlist[i]+"] ";return a+="
",a}},series:[{roam:!0,type:"tree",id:0,name:"tree1",data:[this.select_chain_data],top:"5%",left:"15%",bottom:"22%",right:"20%",edgeShape:"polyline",edgeForkPosition:"63%",initialTreeDepth:60,lineStyle:{width:2},label:{backgroundColor:"#fff",position:"left",verticalAlign:"middle",align:"right"},leaves:{label:{position:"right",verticalAlign:"middle",align:"left"}},emphasis:{focus:"descendant"},symbolSize:[30,30],symbol:"image://data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAANXklEQVR4Xu2de6hmVRmHn0mzcUzNwcJKS8roQpdJrayEykYzMkLFcjSiwiLrj8qKhugekU1RFnSVNNDUCiqDbmSMUEnJJBVmVpNaiTmVIGlpIhpv7VPHb873fXvtddnv2uu34HD+OGu9612/dz1n7cu711qHihSQAnMVWCdtpIAUmK+AANHskAILFBAgmh5SQIBoDkiBYQpoBRmmm1o1ooAAaSTQGuYwBQTIMN3UqhEFBEgjgdYwhykgQIbpplaNKCBAGgm0hjlMAQEyTDe1akSBMQB5IvA44GHAxkZ01jDjFLgF+DNwTfcTZy2gdSlA9ge2AluARwb4p6pSYFaBncAlwDbgttzylADkDODDWi1yh7I5+7uAs4CLco48JyB7AxcCJ+UcgGw3r8D5wGuBu3MokQuQfYDLgSNzOC2bUmBGgcuAY3OokgOQPYDvAptzOCybUmCOAnapdXpqdXIAcibw6dSOyp4U6KHAicA3etTrXSU1IHsBfwAO6u2BKkqBdArYY2B7jXBvKpOpAXkVcF4q52RHCgxQ4Djg+wPardkkNSB27/GCVM7JjhQYoMC53VOtAU13b5ISkPXAHUm8khEpMFyBm4CHD29+35YpATkUuD6VY7IjBSIU2JDqn3VKQJ4GXBkxKDWVAqkU2AT8IoWxlIA8F9ge6NTzuheKs83eC7wn0FbKsQR2reprKBD6JOl9gMV9tqScV8GBSjmpUg5EgASH0l0DATITEgHibo6O6pAAESCjTkDvnQsQAeJ9jo7qnwARIKNOQO+dCxAB4n2OjuqfABEgo05A750LEAHifY6O6p8AESCjTkDvnQsQAeJ9jo7qnwARIKNOQO+dC5CJAGL7dVmqft/yk+6b+771F9U7tdtEr6+tm4HP9q28pN5RwPGBts4G7uzZRoBMBJBbAdvYrm/5BPCmvpWX1LPvp18SYMsyVC1TNUWxMXw80NABgOnVpwgQAdJnniysI0D+L4+yedeYKh7S3bWC9OdcK0h/rXarWWs2rwDpH3QB0l8rARKh1UpTXWLpEmvhNNIllm7SVyaI7kF0D7KbAlpBtIJoBVmggAARIAJEgPS6W9Mlli6xdIm1ABUBIkAEiADptZr+r5KeYukplp5iLWBGgAgQASJA5iqgp1h6iqWnWHqK1eu6WzfpuknXTbpu0nv9s9BNeqeALrF0iaVLLF1i9fqvqUssp5dYRwN79grhfyvdCOwMqL+oqh04eWCArduBHQH1F1U9GDgs0NblAfX1ReGMWLV+DxIQc1UNUECACJCA6dJeVQEiQNqb9QEjFiACJGC6tFdVgAiQ9mZ9wIgFiAAJmC7tVRUgAqS9WR8wYgEiQAKmS3tVBYgAaW/WB4xYgAiQgOnSXlUBIkDam/UBIxYgzgCxrxNV/CiwPdAVJSuuIVjKT24D46HqzhQQIALE2ZT05Y4AESC+ZqQzbwSIAHE2JX25I0AEiK8Z6cwbASJAnE1JX+4IEAHia0Y680aACBBnU9KXOwJEgPiakc68ESACxNmU9OWOABEgvmakM28EiABxNiV9uSNAAgA5FLAflXYUuAGwn9mScr+1YDXXBbeY32DUgSQch0z5UmDUeSVAfE0GeaMV5D4KzEt310SRAisKaAXRXJACCxQQIJoeUkCArK2ALrHExjIFtIIsU0h/b1oBAdJ0+DX4ZQoIkGUK6e9NKyBAmg6/Br9MAQGyTCH9vWkFBEhD4d8IPLnQeEMO3Czk0qBuBMgg2epsZJP2OQVcvwTYUqCfEl0IkBIqO+jjjcA5Bfz4HbAJ+GeBvkp0IUBKqDxyH48FfgnsldmPO4EjgV9l7qekeQFSUu0R+jIodgBPKtD364DPFeinZBcCpKTaI/T1EeCtBfr9OnBSgX5KdyFASitesD+7IbdjAFJ+d7OW+/Ylnj0du63g2Ep1JUBKKV24n/2Aa4GHZu73LuAZwM8z9zOWeQEylvKZ+/0KcErmPsy8PR37ZIF+xupCgIylfMZ+Xw5ckNH+iulvAy8q0M+YXQiQMdXP0PchwNWAXWLlLDd2T8ZuzdmJA9sCxEEQUrlgN+NXAEelMjjHzt3As4ErM/fjwbwA8RCFRD5sBT6UyNYiM28HthXox0MXAsRDFBL4YC8CrwL2TGBrkYkfAJsz9+HJvADxFI2BvqzvHrNaSknOcnN33/G3nJ04sy1AnAVkiDufAl4/pGFAm3u6TOAfBbSZQlUBUnkUjwO+V2AM7wY+UKAfb10IEG8RCfDnAOA3wIMD2gypavcdxwL3DmlceRsBUnEAvwm8OLP/dr/xeKCl+47VkgqQzBMsl/nXAJ/PZbyzayuGrRy2grRaBEiFkX9U9wHUPpl9/yDwzsx9eDcvQLxHaMY/e8/xU+DwzH7b0ypLl7enVy0XAVJZ9N8PvCuzz5ZfZfcd9t6j9SJAKpoBlmP1Y+B+mX22DF3L1FUBAVLJLLD7jV8Dlq2bs3wUeFvODiqzLUAqCdgXgFcX8PVbXdqKbd9j71hsh5IpfkrbV0oB0lepEevZuw575zFW+Qvw2w4Yg2bl5/eApb5PuQgQ59G1b8rtv7i9NfdWDI7r1gDHYNrlzdmB/giQgcKValZqu9DU47EnYWutOrb62EYPtRQB4jhSpbYLLSmBvVf546pVZzVEfyrpSM++BEhPoUpXK7VdaOlxzevvUuBlwL+8ONT5IUCcBcTcKbldqIfhfwl4hdO39gLEwwyZ8aHUdqEehv4Z4A2OU+kFiIdZssqHDcDFXR7U/s58S+1ODcmQAiR11BPZs3QSS0i0s9yPAY4GHpjItgczby50XknsWAVIrIKF2lsW79NXAfMswDZrqK3YNyZnAOdV4rgAqSRQs24+AHhmt7rYKmMbSN/f+VjsxeJpwFed+7naPQFSUbAWuWr3LnYZZpdjBswRwB6OxmaPb08EvuPIpz6uCJA+KlVYZ9/uRn8FmKcUOCdknkx/B04AflihjgKkwqANcdmOgLZgGzD2Yx9ElSi3dP3ZGYk1FgFSY9QS+PwQ4PmrbvofncDmrImbOigtdb7WIkBqjVxivw8GTk746NVS4W2lsryrmosAqTl6iX23b93tm/fYck23Mtl3JLUXAVJ7BBP5by8hLZv2QZH2ftbt/j6Vg3UESOSEmErzFGeL2FOqFwL/mIoo3T2UnRQcUuwxu33HE11SHk88KunRSoxrYO/uXuHACDfs/Ya95/CWrh4xpP80HXVeCZDY8KVp/xbAdjMZWuzNuL0hn+L36QJk6KyYSLvY1cN7unpsmARIrIKVt4/5rNfOQ3xH5eNf5r4AWabQhP9uXy7eANjOKaGllnT10HHN1hcgsQpW3N6ObbPj20JKbenqIWNbq64AiVWw0vb2fYm95Q5ZPWpMV48NjwCJVbDS9qEH8NSarh4bHgESq2CF7W31sFypR/T03V782QvAGtPVew5xbjUBEqtghe1fCZzf029LGdkMWApJi0WANBZ12wzCtv88rMe4LdnQ0iYs+bDVIkAai/zpwIU9xnx9972I/W65CJCGom+pPbYX7rLVY0rp6rHhFSCxClbU/qXAl5f4O7V09djwCJBYBStpb6vH1cATFvg7xXT12PAIkFgFK2lvqehfW+DrVNPVY8MjQGIVrKS9nVI1b/WYcrp6bHgESKyCFbRfdMahbQFqW4FajpXK7goIkAZmxVXAU9cY5zmAZeWqzFdAgEx8dhw/Z7tP+47DvudQWayAAJn4DLmi2+R6ZZh2KWUH1tiXgCrLFRAgyzWqtobtnHjZKu9bTFePDZ4AiVXQcfvVR0i3mq4eGx4BEqug0/Z2dohdXllpOV09NjwCJFZBp+3t0sousVpPV48NjwCJVdBh+5XVQ+nq8cERIPEaurNgaSP21tyC23q6emxwBEisgs7a2wtBy9i1wNr5HCpxCgiQOP3ctbazxz8G2MlOKvEKCJB4DV1Z2A+wMwFV0iggQNLoKCsTVUCATDSwGlYaBQRIGh1lZaIKCJCJBlbDSqOAAEmjo6xMVAEBMtHAalhpFBAgaXSUlYkqMBlAjgB2TDRIGlZdCthctM+co0vKQzztnAulVkSHRAYSKHAQsCuBHVICYv7cAaxP4ZhsSIGBCtwO7Duw7W7NUgNiG6PZBmkqUmAsBSxR9NRUnacGZAtwUSrnZEcKDFDg5CU7WAaZTA1I6MlJQc6qshRYosB1wGOAe1IplRoQ88t2CTw3lYOyIwUCFDgNuDig/tKqOQCxE5QuBU5Y2rsqSIF0Cti9h13iJ93CNQcgNuQN3YGTh6cbvyxJgbkKbAeOyaFPLkBWIPkicEoOx2VTCnQKXNBd1t+VQ5GcgKz4eyZwNmBf2qlIgVQK/BU4q+d5j4P7LAGIObcR2No9nz5ksLdqKAVgZ/cqYVu3IV9WTUoBsnoQm7pHcZaaYuCoSIFlCtgGGJbGZIcQXbuscsq/jwFISv9lSwpkVUCAZJVXxmtXQIDUHkH5n1UBAZJVXhmvXQEBUnsE5X9WBQRIVnllvHYFBEjtEZT/WRUQIFnllfHaFRAgtUdQ/mdVQIBklVfGa1dAgNQeQfmfVQEBklVeGa9dgX8DujCRBT7G+XAAAAAASUVORK5CYII=",expandAndCollapse:!1,animationDuration:350,animationDurationUpdate:450}]};e.setOption(a),e.on("click",(t=>{const e=t.data;this.processChainDetails={path:e.path,active:e.active,md5:e.md5,name:e.name,params:e.params,pid:e.pid,ppid:e.ppid,hitRules:void 0===e.operationlist?{}:e.operationlist,hitAttck:void 0===e.attck_hit_list?{}:e.attck_hit_list,isWhite:!1},this.query_white_hash(e.md5),this.processChainShowDetails=!0}))},search_vt(t){window.open("https://www.virustotal.com/gui/search/"+t,"_blank")},delete_threat(t){S().get("/api/v1/get/process_chain/delete?id="+t,{"Content-Type":"application/json"}).then((t=>{this.get_clientids()}))},handle_threat(t,e){S().get("/api/v1/get/process_chain/handle?id="+t+"&handletype="+e,{"Content-Type":"application/json"}).then((t=>{this.get_clientids()}))},show_details(t){S().get("/api/v1/get/process_chain/pull?id="+t,{"Content-Type":"application/json"}).then((t=>{const e=t.data;e.data&&(this.select_chain_data=e.data.chain.process_node,this.dialog=!0,console.log("this.select_chain_data",this.select_chain_data),this.$nextTick((()=>{this.draw_tree()})))}))},get_clientids(){const t=this.$route.params.queryIndex,e=null===t||void 0===t?0:t;S().get("/api/v1/get/process_chain/all?query_type="+e,{"Content-Type":"application/json"}).then((t=>{const e=t.data;e.data&&(this.server_threat={data:[]},this.server_threat.data=e.data)}))}},mounted(){this.get_clientids(),setInterval((()=>{this.last_refresh-=1,this.last_refresh<=0&&(this.get_clientids(),this.last_refresh=360)}),1e3)},watch:{$route(t,e){this.get_clientids()}}});var E=a(4260),K=a(1432),x=a(3424),Y=a(151),z=a(5589),H=a(9367),N=a(7030),O=a(8240),j=a(6778),F=a(4842),L=a(846),X=a(2025),J=a(8870),P=a(2901),R=a(7011),T=a(3414),G=a(2035),M=a(5869),$=a(677),tt=a(7518),et=a.n(tt);const at=(0,E.Z)(Z,[["render",V]]),it=at;et()(Z,"components",{QTimeline:K.Z,QTimelineEntry:x.Z,QCard:Y.Z,QCardSection:z.Z,QCardActions:H.Z,QChip:N.Z,QBtn:O.Z,QDialog:j.Z,QInput:F.Z,QBar:L.Z,QSpace:X.Z,QTooltip:J.Z,QDrawer:P.Z,QList:R.Z,QItem:T.Z,QItemSection:G.Z,QSeparator:M.Z}),et()(Z,"directives",{ClosePopup:$.Z})}}]); \ No newline at end of file diff --git a/Server/templates/js/550.48260526.js.gz b/Server/templates/js/550.c577ffe7.js.gz similarity index 98% rename from Server/templates/js/550.48260526.js.gz rename to Server/templates/js/550.c577ffe7.js.gz index 729f322..6860cf0 100644 Binary files a/Server/templates/js/550.48260526.js.gz and b/Server/templates/js/550.c577ffe7.js.gz differ diff --git a/Server/templates/js/763.2901e17c.js b/Server/templates/js/763.2901e17c.js deleted file mode 100644 index d018e58..0000000 --- a/Server/templates/js/763.2901e17c.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis["webpackChunksyseye"]=globalThis["webpackChunksyseye"]||[]).push([[763],{1763:(t,e,s)=>{s.r(e),s.d(e,{default:()=>Z});var a=s(3673),i=s(2323);const o={class:"q-gutter-md q-mb-sm q-pa-lg"},l={class:"row q-col-gutter-sm"},n={class:"text-h6"},r=(0,a.Uk)(" 由于python+sqlite数据库作为后端,理论上最高支持的主机数量为50. "),c={class:"text-subtitle2"},h={ref:"main_draw",style:{width:"100%",height:"600px"}};function m(t,e,s,m,u,d){const p=(0,a.up)("q-icon"),w=(0,a.up)("q-item-section"),g=(0,a.up)("q-item-label"),_=(0,a.up)("q-item"),b=(0,a.up)("q-card-section"),f=(0,a.up)("q-card"),y=(0,a.up)("q-banner"),v=(0,a.up)("q-popup-proxy");return(0,a.wg)(),(0,a.iD)("div",o,[(0,a._)("div",null,[(0,a.Wm)(f,{class:"bg-transparent no-shadow no-border"},{default:(0,a.w5)((()=>[(0,a.Wm)(b,{class:"q-pa-none"},{default:(0,a.w5)((()=>[(0,a._)("div",l,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(t.Threatitems,((t,e)=>((0,a.wg)(),(0,a.iD)("div",{key:e,class:"col-md-3 col-sm-12 col-xs-12"},[(0,a.Wm)(_,{style:(0,i.j5)(`background-color: ${t.color1}`),class:"q-pa-none"},{default:(0,a.w5)((()=>[(0,a.Wm)(w,{side:"",style:(0,i.j5)(`background-color: ${t.color2}`),class:"q-pa-lg q-mr-none text-white"},{default:(0,a.w5)((()=>[(0,a.Wm)(p,{name:t.icon,color:"white",size:"24px"},null,8,["name"])])),_:2},1032,["style"]),(0,a.Wm)(w,{class:"q-pa-md q-ml-none text-white"},{default:(0,a.w5)((()=>[(0,a.Wm)(g,{class:"text-white text-h6 text-weight-bolder"},{default:(0,a.w5)((()=>[(0,a.Uk)((0,i.zw)(t.value),1)])),_:2},1024),(0,a.Wm)(g,null,{default:(0,a.w5)((()=>[(0,a.Uk)((0,i.zw)(t.title),1)])),_:2},1024)])),_:2},1024)])),_:2},1032,["style"])])))),128))])])),_:1})])),_:1})]),(0,a.Wm)(f,{class:"no-shadow",style:{background:"rbg(255,255,255)"}},{default:(0,a.w5)((()=>[(0,a.Wm)(b,null,{default:(0,a.w5)((()=>[(0,a._)("div",n,[(0,a.Uk)(" 主机数量: "+(0,i.zw)(t.threatStatistics.host_num)+"/50 ",1),(0,a.Wm)(p,{name:"info",class:"text-brown cursor-pointer"},{default:(0,a.w5)((()=>[(0,a.Wm)(v,{"transition-show":"flip-up","transition-hide":"flip-down"},{default:(0,a.w5)((()=>[(0,a.Wm)(y,{class:"bg-brown text-white"},{avatar:(0,a.w5)((()=>[(0,a.Wm)(p,{name:"lightbulb"})])),default:(0,a.w5)((()=>[r])),_:1})])),_:1})])),_:1})]),(0,a._)("div",c,"最近日志数量: "+(0,i.zw)(t.threatStatistics.all_log_num),1)])),_:1}),(0,a.Wm)(b,{class:"q-pt-none"},{default:(0,a.w5)((()=>[(0,a._)("div",h," 1 ",512)])),_:1})])),_:1})])}var u=s(52),d=s.n(u),p=s(2256);const w=(0,a.aZ)({name:"Dashboard",data(){return{Threatitems:[{title:"发现的威胁",icon:"remove_red_eye",value:"200",color1:"#EE9B00",color2:"#EE9B00"},{title:"确认的威胁",icon:"flash_on",value:"500",color1:"#CA6702",color2:"#CA6702"},{title:"忽略的威胁",icon:"add_moderator",value:"50",color1:"#BB3E03",color2:"#BB3E03"},{title:"进行中的威胁",icon:"stream",value:"1020",color1:"#AE2012",color2:"#AE2012"}],threatStatistics:{all:1,confirm:0,ingore:1,working:0,host_list:{},host_num:10,all_log_num:647}}},methods:{get_threatStatistics(){d().get("/api/v1/get/threat_statistics",{"Content-Type":"application/json"}).then((t=>{const e=t.data;e.data&&(this.threatStatistics=e.data,this.threatStatistics.host_num=Object.keys(this.threatStatistics.host_list).length,this.Threatitems[0].value=this.threatStatistics.all,this.Threatitems[1].value=this.threatStatistics.confirm,this.Threatitems[2].value=this.threatStatistics.ingore,this.Threatitems[3].value=this.threatStatistics.working,console.log(this.threatStatistics),this.draw())}))},draw(){const t=[],e=[];for(const o in this.threatStatistics.host_list)t.push(o),e.push({itemStyle:{color:"#005F73"},name:o,type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:this.threatStatistics.host_list[o].log_num});const s=this.$refs.main_draw,a=p.S1(s),i={title:{text:"最近十分钟日志量"},tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},legend:{data:t},toolbox:{feature:{saveAsImage:{}}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",boundaryGap:!1,data:["10min","9min","8min","7min","6min","5min","4min","3min","2min","1min"]}],yAxis:[{type:"value"}],series:e};a.setOption(i),setTimeout((()=>{a.resize()}),1e3)}},mounted(){this.get_threatStatistics(),setInterval((()=>{this.get_threatStatistics()}),1e4)}});var g=s(4260),_=s(151),b=s(5589),f=s(3414),y=s(2035),v=s(4554),x=s(2350),S=s(3944),q=s(5607),k=s(7518),W=s.n(k);const T=(0,g.Z)(w,[["render",m]]),Z=T;W()(w,"components",{QCard:_.Z,QCardSection:b.Z,QItem:f.Z,QItemSection:y.Z,QIcon:v.Z,QItemLabel:x.Z,QPopupProxy:S.Z,QBanner:q.Z})}}]); \ No newline at end of file diff --git a/Server/templates/js/773.945120ec.js b/Server/templates/js/773.945120ec.js new file mode 100644 index 0000000..1eca4ff --- /dev/null +++ b/Server/templates/js/773.945120ec.js @@ -0,0 +1 @@ +"use strict";(globalThis["webpackChunksyseye"]=globalThis["webpackChunksyseye"]||[]).push([[773],{3875:(t,e,a)=>{a.d(e,{Z:()=>i});a(5363);function o(){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";this.encode=function(a){let o,i,s,r,l,n,c,h="",d=0;a=e(a);while(d>2,l=(3&o)<<4|i>>4,n=(15&i)<<2|s>>6,c=63&s,isNaN(i)?n=c=64:isNaN(s)&&(c=64),h=h+t.charAt(r)+t.charAt(l)+t.charAt(n)+t.charAt(c);return h},this.decode=function(e){let o,i,s,r,l,n,c,h="",d=0;e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(d>4,i=(15&l)<<4|n>>2,s=(3&n)<<6|c,h+=String.fromCharCode(o),64!=n&&(h+=String.fromCharCode(i)),64!=c&&(h+=String.fromCharCode(s));return h=a(h),h};var e=function(t){t=t.replace(/\r\n/g,"\n");let e="";for(let a=0;a127&&o<2048?(e+=String.fromCharCode(o>>6|192),e+=String.fromCharCode(63&o|128)):(e+=String.fromCharCode(o>>12|224),e+=String.fromCharCode(o>>6&63|128),e+=String.fromCharCode(63&o|128))}return e},a=function(t){let e="",a=0,o=0,i=0,s=0;while(a191&&o<224?(s=t.charCodeAt(a+1),e+=String.fromCharCode((31&o)<<6|63&s),a+=2):(s=t.charCodeAt(a+1),i=t.charCodeAt(a+2),e+=String.fromCharCode((15&o)<<12|(63&s)<<6|63&i),a+=3);return e}}const i=o},4773:(t,e,a)=>{a.r(e),a.d(e,{default:()=>Q});var o=a(3673),i=a(2323);const s={class:"q-gutter-md q-mb-sm q-pa-lg"},r={class:"row q-col-gutter-sm"},l={class:"text-h6"},n=(0,o.Uk)(" 由于python+sqlite数据库作为后端,理论上最高支持的主机数量为50. "),c={class:"text-subtitle2"},h={ref:"main_draw",style:{width:"100%",height:"600px"}};function d(t,e,a,d,m,u){const g=(0,o.up)("q-icon"),p=(0,o.up)("q-item-section"),f=(0,o.up)("q-item-label"),w=(0,o.up)("q-color"),C=(0,o.up)("q-banner"),_=(0,o.up)("q-popup-proxy"),S=(0,o.up)("q-item"),b=(0,o.up)("q-card-section"),y=(0,o.up)("q-card");return(0,o.wg)(),(0,o.iD)("div",s,[(0,o._)("div",null,[(0,o.Wm)(y,{class:"bg-transparent no-shadow no-border"},{default:(0,o.w5)((()=>[(0,o.Wm)(b,{class:"q-pa-none"},{default:(0,o.w5)((()=>[(0,o._)("div",r,[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(t.Threatitems,((e,a)=>((0,o.wg)(),(0,o.iD)("div",{key:a,class:"col-md-3 col-sm-12 col-xs-12"},[(0,o.Wm)(S,{style:(0,i.j5)(`background-color: ${e.color1}`),class:"q-pa-none"},{default:(0,o.w5)((()=>[(0,o.Wm)(p,{side:"",style:(0,i.j5)(`background-color: ${e.color2}`),class:"q-pa-lg q-mr-none text-white"},{default:(0,o.w5)((()=>[(0,o.Wm)(g,{name:e.icon,color:"white",size:"24px"},null,8,["name"])])),_:2},1032,["style"]),(0,o.Wm)(p,{class:"q-pa-md q-ml-none text-white"},{default:(0,o.w5)((()=>[(0,o.Wm)(f,{class:"text-white text-h6 text-weight-bolder"},{default:(0,o.w5)((()=>[(0,o.Uk)((0,i.zw)(e.value),1)])),_:2},1024),(0,o.Wm)(f,null,{default:(0,o.w5)((()=>[(0,o.Uk)((0,i.zw)(e.title),1)])),_:2},1024),(0,o.Wm)(_,null,{default:(0,o.w5)((()=>[(0,o.Wm)(C,null,{default:(0,o.w5)((()=>[(0,o.Wm)(w,{modelValue:e.color1,"onUpdate:modelValue":t=>e.color1=t,onChange:e=>t.updateCookie(t.Threatitems[a].color1),class:"my-picker"},null,8,["modelValue","onUpdate:modelValue","onChange"])])),_:2},1024)])),_:2},1024)])),_:2},1024),(0,o.Wm)(_,null,{default:(0,o.w5)((()=>[(0,o.Wm)(C,null,{default:(0,o.w5)((()=>[(0,o.Wm)(w,{modelValue:e.color2,"onUpdate:modelValue":t=>e.color2=t,onChange:e=>t.updateCookie(t.Threatitems[a].color2),class:"my-picker"},null,8,["modelValue","onUpdate:modelValue","onChange"])])),_:2},1024)])),_:2},1024)])),_:2},1032,["style"])])))),128))])])),_:1})])),_:1})]),(0,o.Wm)(y,{class:"no-shadow",style:{background:"rbg(255,255,255)"}},{default:(0,o.w5)((()=>[(0,o.Wm)(b,null,{default:(0,o.w5)((()=>[(0,o._)("div",l,[(0,o.Uk)(" 主机数量: "+(0,i.zw)(t.threatStatistics.host_num)+"/50 ",1),(0,o.Wm)(g,{name:"info",class:"text-brown cursor-pointer"},{default:(0,o.w5)((()=>[(0,o.Wm)(_,{"transition-show":"flip-up","transition-hide":"flip-down"},{default:(0,o.w5)((()=>[(0,o.Wm)(C,{class:"bg-brown text-white"},{avatar:(0,o.w5)((()=>[(0,o.Wm)(g,{name:"lightbulb"})])),default:(0,o.w5)((()=>[n])),_:1})])),_:1})])),_:1})]),(0,o._)("div",c,"最近日志数量: "+(0,i.zw)(t.threatStatistics.all_log_num),1)])),_:1}),(0,o.Wm)(b,{class:"q-pt-none"},{default:(0,o.w5)((()=>[(0,o._)("div",h," 1 ",512)])),_:1})])),_:1})])}var m=a(3875),u=a(52),g=a.n(u),p=a(2471),f=a(2256);const w=(0,o.aZ)({name:"Dashboard",data(){return{Threatitems:[{title:"发现的威胁",icon:"remove_red_eye",value:"200",color1:"#EE9B00",color2:"#EE9B00"},{title:"确认的威胁",icon:"flash_on",value:"500",color1:"#CA6702",color2:"#CA6702"},{title:"忽略的威胁",icon:"add_moderator",value:"50",color1:"#BB3E03",color2:"#BB3E03"},{title:"进行中的威胁",icon:"stream",value:"1020",color1:"#AE2012",color2:"#AE2012"}],threatStatistics:{all:1,confirm:0,ingore:1,working:0,host_list:{},host_num:10,all_log_num:647}}},methods:{updateCookie(t){const e=new m.Z;p.Z.set("custom_threat_item",e.encode(JSON.stringify(this.Threatitems)))},get_threatStatistics(){g().get("/api/v1/get/threat_statistics",{"Content-Type":"application/json"}).then((t=>{const e=t.data;e.data&&(this.threatStatistics=e.data,this.threatStatistics.host_num=Object.keys(this.threatStatistics.host_list).length,this.Threatitems[0].value=this.threatStatistics.all,this.Threatitems[1].value=this.threatStatistics.confirm,this.Threatitems[2].value=this.threatStatistics.ingore,this.Threatitems[3].value=this.threatStatistics.working,console.log(this.threatStatistics),this.draw())}))},draw(){const t=[],e=[];for(const s in this.threatStatistics.host_list)t.push(s),e.push({itemStyle:{color:"#005F73"},name:s,type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:this.threatStatistics.host_list[s].log_num});const a=this.$refs.main_draw,o=f.S1(a),i={title:{text:"最近十分钟日志量"},tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},legend:{data:t},toolbox:{feature:{saveAsImage:{}}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",boundaryGap:!1,data:["10min","9min","8min","7min","6min","5min","4min","3min","2min","1min"]}],yAxis:[{type:"value"}],series:e};o.setOption(i),setTimeout((()=>{o.resize()}),1e3)}},mounted(){this.get_threatStatistics(),setInterval((()=>{this.get_threatStatistics()}),1e4);const t=p.Z.get("custom_threat_item");if(t){const e=new m.Z;this.Threatitems=JSON.parse(e.decode(t))}}});var C=a(4260),_=a(151),S=a(5589),b=a(3414),y=a(2035),v=a(4554),x=a(2350),A=a(3944),k=a(5607),q=a(281),W=a(7518),Z=a.n(W);const T=(0,C.Z)(w,[["render",d]]),Q=T;Z()(w,"components",{QCard:_.Z,QCardSection:S.Z,QItem:b.Z,QItemSection:y.Z,QIcon:v.Z,QItemLabel:x.Z,QPopupProxy:A.Z,QBanner:k.Z,QColor:q.Z})}}]); \ No newline at end of file diff --git a/Server/templates/js/95.8b297ab2.js b/Server/templates/js/95.8b297ab2.js new file mode 100644 index 0000000..236c373 --- /dev/null +++ b/Server/templates/js/95.8b297ab2.js @@ -0,0 +1 @@ +"use strict";(globalThis["webpackChunksyseye"]=globalThis["webpackChunksyseye"]||[]).push([[95],{3875:(e,t,o)=>{o.d(t,{Z:()=>n});o(5363);function r(){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";this.encode=function(o){let r,n,l,a,i,u,s,c="",d=0;o=t(o);while(d>2,i=(3&r)<<4|n>>4,u=(15&n)<<2|l>>6,s=63&l,isNaN(n)?u=s=64:isNaN(l)&&(s=64),c=c+e.charAt(a)+e.charAt(i)+e.charAt(u)+e.charAt(s);return c},this.decode=function(t){let r,n,l,a,i,u,s,c="",d=0;t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(d>4,n=(15&i)<<4|u>>2,l=(3&u)<<6|s,c+=String.fromCharCode(r),64!=u&&(c+=String.fromCharCode(n)),64!=s&&(c+=String.fromCharCode(l));return c=o(c),c};var t=function(e){e=e.replace(/\r\n/g,"\n");let t="";for(let o=0;o127&&r<2048?(t+=String.fromCharCode(r>>6|192),t+=String.fromCharCode(63&r|128)):(t+=String.fromCharCode(r>>12|224),t+=String.fromCharCode(r>>6&63|128),t+=String.fromCharCode(63&r|128))}return t},o=function(e){let t="",o=0,r=0,n=0,l=0;while(o191&&r<224?(l=e.charCodeAt(o+1),t+=String.fromCharCode((31&r)<<6|63&l),o+=2):(l=e.charCodeAt(o+1),n=e.charCodeAt(o+2),t+=String.fromCharCode((15&r)<<12|(63&l)<<6|63&n),o+=3);return t}}const n=r},7095:(e,t,o)=>{o.r(t),o.d(t,{default:()=>Q});var r=o(3673),n=o(2323);const l=(0,r.Uk)(" RmEye测试版v1.0.1.3 "),a={key:1,class:"q-gutter-md q-mb-sm q-pa-lg"};function i(e,t,o,i,u,s){const c=(0,r.up)("q-toolbar-title"),d=(0,r.up)("q-btn"),h=(0,r.up)("q-color"),m=(0,r.up)("q-banner"),g=(0,r.up)("q-popup-proxy"),p=(0,r.up)("q-toolbar"),C=(0,r.up)("q-breadcrumbs-el"),b=(0,r.up)("q-breadcrumbs"),f=(0,r.up)("q-header"),w=(0,r.up)("router-view"),y=(0,r.up)("q-page-container"),k=(0,r.up)("HtmlPanel"),Z=(0,r.up)("q-layout");return(0,r.wg)(),(0,r.j4)(Z,{view:"lHh Lpr lFf",style:(0,n.j5)(`background-color: ${e.colors.background}`)},{default:(0,r.w5)((()=>[(0,r.Wm)(f,{elevated:"","height-hint":"98"},{default:(0,r.w5)((()=>[(0,r.Wm)(p,{class:"text-white",style:(0,n.j5)(`background-color: ${e.colors.toolbar}`)},{default:(0,r.w5)((()=>[(0,r.Wm)(c,null,{default:(0,r.w5)((()=>[l])),_:1}),(0,r.Wm)(d,{flat:"",dense:"",icon:"restore",label:"重置颜色",onClick:e.cleanUpCookie},null,8,["onClick"]),(0,r.Wm)(g,null,{default:(0,r.w5)((()=>[(0,r.Wm)(m,null,{default:(0,r.w5)((()=>[(0,r.Wm)(h,{modelValue:e.colors.toolbar,"onUpdate:modelValue":t[0]||(t[0]=t=>e.colors.toolbar=t),onChange:t[1]||(t[1]=t=>e.updateCookie(e.colors.toolbar)),class:"my-picker"},null,8,["modelValue"])])),_:1})])),_:1})])),_:1},8,["style"]),(0,r.Wm)(p,{style:(0,n.j5)(`font-size: 16px;background-color: ${e.colors.layout}`)},{default:(0,r.w5)((()=>[(0,r.Wm)(b,{"active-color":"white"},{default:(0,r.w5)((()=>[(0,r.Wm)(C,{label:"仪表盘",icon:"dashboard",to:"/page/dashboard"}),(0,r.Wm)(C,{label:"未处理威胁列表",icon:"report",to:"#",onClick:t[2]||(t[2]=t=>{e.routerToThreatList(0)})}),(0,r.Wm)(C,{label:"已处理威胁列表",icon:"done",to:"#",onClick:t[3]||(t[3]=t=>{e.routerToThreatList(1)})}),(0,r.Wm)(C,{label:"已忽略威胁列表",icon:"texture",to:"#",onClick:t[4]||(t[4]=t=>{e.routerToThreatList(2)})}),(0,r.Wm)(C,{label:"白名单列表",icon:"list",to:"#",onClick:t[5]||(t[5]=t=>{e.routerToWhiteList()})})])),_:1}),(0,r.Wm)(g,null,{default:(0,r.w5)((()=>[(0,r.Wm)(m,null,{default:(0,r.w5)((()=>[(0,r.Wm)(h,{modelValue:e.colors.layout,"onUpdate:modelValue":t[6]||(t[6]=t=>e.colors.layout=t),onChange:t[7]||(t[7]=t=>e.updateCookie(e.colors.layout)),class:"my-picker"},null,8,["modelValue"])])),_:1})])),_:1})])),_:1},8,["style"])])),_:1}),0==e.isInPlugin?((0,r.wg)(),(0,r.j4)(y,{key:0},{default:(0,r.w5)((()=>[(0,r.Wm)(w)])),_:1})):(0,r.kq)("",!0),e.isInPlugin?((0,r.wg)(),(0,r.iD)("div",a,[(0,r.Wm)(k,{url:e.PluginUrl,"onUpdate:url":t[8]||(t[8]=t=>e.PluginUrl=t)},null,8,["url"])])):(0,r.kq)("",!0)])),_:1},8,["style"])}var u=o(3875);const s=["innerHTML"];function c(e,t,o,n,l,a){return(0,r.wg)(),(0,r.iD)("div",{innerHTML:e.html},null,8,s)}var d=o(52),h=o.n(d);const m=(0,r.aZ)({props:{url:{required:!0}},data(){return{html:""}},watch:{url(e){this.load(e)}},mounted(){this.load(this.url)},methods:{load(e){if(e&&e.length>0){const t={accept:"text/html, text/plain"};h().get(e,t).then((e=>{this.html=e.data})).catch((()=>{this.html="加载失败"}))}}}});var g=o(4260);const p=(0,g.Z)(m,[["render",c]]),C=p;var b=o(2471);const f=(0,r.aZ)({components:{HtmlPanel:C},name:"MainLayout",setup(){return{}},data:function(){return{selectLabel:"dashboard",drawer:!1,miniState:!0,plugin:[],isInPlugin:!1,PluginUrl:"",colors:{layout:"rgb(47,43,48)",toolbar:"rgb(210,61,42)",background:"rgb(239, 243, 246)"}}},methods:{updateCookie(e){const t=new u.Z;b.Z.set("custom_banner",t.encode(JSON.stringify(this.colors)))},cleanUpCookie(){b.Z.remove("custom_threat_item"),b.Z.remove("custom_banner"),window.location.reload()},routerToWhiteList(){this.isInPlugin=!1,this.$router.push({name:"whitelist"})},routerToThreatList(e){this.isInPlugin=!1,this.$router.push({name:"index",params:{queryIndex:e}})},routerToPlugin(e){this.isInPlugin=!0,this.PluginUrl="/plugin/"+e},getPluginsMenu(){h().get("/api/v1/get/plugin_menu",{"Content-Type":"application/json"}).then((e=>{this.plugin=e.data.data.menu,console.log(this.plugin)}))}},mounted(){this.getPluginsMenu();const e=b.Z.get("custom_banner");if(e){const t=new u.Z;this.colors=JSON.parse(t.decode(e))}}});var w=o(3066),y=o(3812),k=o(9570),Z=o(3747),W=o(8240),T=o(3944),q=o(5607),P=o(281),v=o(1481),A=o(5926),_=o(2652),S=o(7518),x=o.n(S);const L=(0,g.Z)(f,[["render",i]]),Q=L;x()(f,"components",{QLayout:w.Z,QHeader:y.Z,QToolbar:k.Z,QToolbarTitle:Z.Z,QBtn:W.Z,QPopupProxy:T.Z,QBanner:q.Z,QColor:P.Z,QBreadcrumbs:v.Z,QBreadcrumbsEl:A.Z,QPageContainer:_.Z})}}]); \ No newline at end of file diff --git a/Server/templates/js/app.563fee9e.js b/Server/templates/js/app.563fee9e.js new file mode 100644 index 0000000..4f61d41 --- /dev/null +++ b/Server/templates/js/app.563fee9e.js @@ -0,0 +1 @@ +(()=>{"use strict";var e={9942:(e,t,r)=>{var n=r(8880),o=r(9782),a=r(3673);function i(e,t,r,n,o,i){const l=(0,a.up)("router-view");return(0,a.wg)(),(0,a.j4)(l)}const l=(0,a.aZ)({name:"App"});var s=r(4260);const u=(0,s.Z)(l,[["render",i]]),c=u;var d=r(3340),p=r(8339);r(71);const h=[{path:"/",component:()=>Promise.all([r.e(736),r.e(95)]).then(r.bind(r,7095)),children:[{path:"",component:()=>Promise.all([r.e(736),r.e(773)]).then(r.bind(r,4773))}]},{path:"/page",component:()=>Promise.all([r.e(736),r.e(95)]).then(r.bind(r,7095)),children:[{path:"dashboard",component:()=>Promise.all([r.e(736),r.e(773)]).then(r.bind(r,4773))},{path:"index",name:"index",component:()=>Promise.all([r.e(736),r.e(550)]).then(r.bind(r,6550))},{path:"index",name:"whitelist",component:()=>Promise.all([r.e(736),r.e(219)]).then(r.bind(r,4219))}]},{path:"/:catchAll(.*)*",component:()=>Promise.all([r.e(736),r.e(193)]).then(r.bind(r,2193))}],f=h,m=(0,d.BC)((function(){const e=p.r5,t=(0,p.p7)({scrollBehavior:()=>({left:0,top:0}),routes:f,history:e("")});return t}));async function v(e,t){const r="function"===typeof m?await m({}):m,n=e(c);return n.use(o.Z,t),{app:n,router:r}}const b={config:{}};async function g({app:e,router:t}){e.use(t),e.mount("#q-app")}v(n.ri,b).then(g)}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,r),a.exports}r.m=e,(()=>{var e=[];r.O=(t,n,o,a)=>{if(!n){var i=1/0;for(c=0;c=a)&&Object.keys(r.O).every((e=>r.O[e](n[s])))?n.splice(s--,1):(l=!1,a0&&e[c-1][2]>a;c--)e[c]=e[c-1];e[c]=[n,o,a]}})(),(()=>{r.n=e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;return r.d(t,{a:t}),t}})(),(()=>{r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}})(),(()=>{r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce(((t,n)=>(r.f[n](e,t),t)),[]))})(),(()=>{r.u=e=>"js/"+e+"."+{95:"8b297ab2",193:"4c856c0c",219:"b83c2e16",550:"c577ffe7",773:"945120ec"}[e]+".js"})(),(()=>{r.miniCssF=e=>"css/"+({143:"app",736:"vendor"}[e]||e)+"."+{95:"5d807baf",143:"31d6cfe0",736:"5b8581f0"}[e]+".css"})(),(()=>{r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()})(),(()=>{r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{var e={},t="syseye:";r.l=(n,o,a,i)=>{if(e[n])e[n].push(o);else{var l,s;if(void 0!==a)for(var u=document.getElementsByTagName("script"),c=0;c{l.onerror=l.onload=null,clearTimeout(h);var o=e[n];if(delete e[n],l.parentNode&&l.parentNode.removeChild(l),o&&o.forEach((e=>e(r))),t)return t(r)},h=setTimeout(p.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=p.bind(null,l.onerror),l.onload=p.bind(null,l.onload),s&&document.head.appendChild(l)}}})(),(()=>{r.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})(),(()=>{r.p=""})(),(()=>{var e=(e,t,r,n)=>{var o=document.createElement("link");o.rel="stylesheet",o.type="text/css";var a=a=>{if(o.onerror=o.onload=null,"load"===a.type)r();else{var i=a&&("load"===a.type?"missing":a.type),l=a&&a.target&&a.target.href||t,s=new Error("Loading CSS chunk "+e+" failed.\n("+l+")");s.code="CSS_CHUNK_LOAD_FAILED",s.type=i,s.request=l,o.parentNode.removeChild(o),n(s)}};return o.onerror=o.onload=a,o.href=t,document.head.appendChild(o),o},t=(e,t)=>{for(var r=document.getElementsByTagName("link"),n=0;nnew Promise(((o,a)=>{var i=r.miniCssF(n),l=r.p+i;if(t(i,l))return o();e(n,l,o,a)})),o={143:0};r.f.miniCss=(e,t)=>{var r={95:1};o[e]?t.push(o[e]):0!==o[e]&&r[e]&&t.push(o[e]=n(e).then((()=>{o[e]=0}),(t=>{throw delete o[e],t})))}})(),(()=>{var e={143:0};r.f.j=(t,n)=>{var o=r.o(e,t)?e[t]:void 0;if(0!==o)if(o)n.push(o[2]);else{var a=new Promise(((r,n)=>o=e[t]=[r,n]));n.push(o[2]=a);var i=r.p+r.u(t),l=new Error,s=n=>{if(r.o(e,t)&&(o=e[t],0!==o&&(e[t]=void 0),o)){var a=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;l.message="Loading chunk "+t+" failed.\n("+a+": "+i+")",l.name="ChunkLoadError",l.type=a,l.request=i,o[1](l)}};r.l(i,s,"chunk-"+t,t)}},r.O.j=t=>0===e[t];var t=(t,n)=>{var o,a,[i,l,s]=n,u=0;if(i.some((t=>0!==e[t]))){for(o in l)r.o(l,o)&&(r.m[o]=l[o]);if(s)var c=s(r)}for(t&&t(n);ur(9942)));n=r.O(n)})(); \ No newline at end of file diff --git a/Server/templates/js/app.7c8d084f.js b/Server/templates/js/app.7c8d084f.js deleted file mode 100644 index e0f81a2..0000000 --- a/Server/templates/js/app.7c8d084f.js +++ /dev/null @@ -1 +0,0 @@ -(()=>{"use strict";var e={9942:(e,t,r)=>{var n=r(8880),o=r(9782),a=r(3673);function i(e,t,r,n,o,i){const l=(0,a.up)("router-view");return(0,a.wg)(),(0,a.j4)(l)}const l=(0,a.aZ)({name:"App"});var s=r(4260);const u=(0,s.Z)(l,[["render",i]]),d=u;var c=r(3340),p=r(8339);r(71);const h=[{path:"/",component:()=>Promise.all([r.e(736),r.e(385)]).then(r.bind(r,6385)),children:[{path:"",component:()=>Promise.all([r.e(736),r.e(763)]).then(r.bind(r,1763))}]},{path:"/page",component:()=>Promise.all([r.e(736),r.e(385)]).then(r.bind(r,6385)),children:[{path:"dashboard",component:()=>Promise.all([r.e(736),r.e(763)]).then(r.bind(r,1763))},{path:"index",name:"index",component:()=>Promise.all([r.e(736),r.e(550)]).then(r.bind(r,6550))},{path:"index",name:"whitelist",component:()=>Promise.all([r.e(736),r.e(219)]).then(r.bind(r,4219))}]},{path:"/:catchAll(.*)*",component:()=>Promise.all([r.e(736),r.e(193)]).then(r.bind(r,2193))}],f=h,m=(0,c.BC)((function(){const e=p.r5,t=(0,p.p7)({scrollBehavior:()=>({left:0,top:0}),routes:f,history:e("")});return t}));async function v(e,t){const r="function"===typeof m?await m({}):m,n=e(d);return n.use(o.Z,t),{app:n,router:r}}const b={config:{}};async function g({app:e,router:t}){e.use(t),e.mount("#q-app")}v(n.ri,b).then(g)}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,r),a.exports}r.m=e,(()=>{var e=[];r.O=(t,n,o,a)=>{if(!n){var i=1/0;for(d=0;d=a)&&Object.keys(r.O).every((e=>r.O[e](n[s])))?n.splice(s--,1):(l=!1,a0&&e[d-1][2]>a;d--)e[d]=e[d-1];e[d]=[n,o,a]}})(),(()=>{r.n=e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;return r.d(t,{a:t}),t}})(),(()=>{r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}})(),(()=>{r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce(((t,n)=>(r.f[n](e,t),t)),[]))})(),(()=>{r.u=e=>"js/"+e+"."+{193:"cfdf09ec",219:"5909d40f",385:"47f54bbe",550:"48260526",763:"2901e17c"}[e]+".js"})(),(()=>{r.miniCssF=e=>"css/"+({143:"app",736:"vendor"}[e]||e)+"."+{143:"31d6cfe0",385:"5d807baf",736:"5b8581f0"}[e]+".css"})(),(()=>{r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()})(),(()=>{r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{var e={},t="syseye:";r.l=(n,o,a,i)=>{if(e[n])e[n].push(o);else{var l,s;if(void 0!==a)for(var u=document.getElementsByTagName("script"),d=0;d{l.onerror=l.onload=null,clearTimeout(h);var o=e[n];if(delete e[n],l.parentNode&&l.parentNode.removeChild(l),o&&o.forEach((e=>e(r))),t)return t(r)},h=setTimeout(p.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=p.bind(null,l.onerror),l.onload=p.bind(null,l.onload),s&&document.head.appendChild(l)}}})(),(()=>{r.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})(),(()=>{r.p=""})(),(()=>{var e=(e,t,r,n)=>{var o=document.createElement("link");o.rel="stylesheet",o.type="text/css";var a=a=>{if(o.onerror=o.onload=null,"load"===a.type)r();else{var i=a&&("load"===a.type?"missing":a.type),l=a&&a.target&&a.target.href||t,s=new Error("Loading CSS chunk "+e+" failed.\n("+l+")");s.code="CSS_CHUNK_LOAD_FAILED",s.type=i,s.request=l,o.parentNode.removeChild(o),n(s)}};return o.onerror=o.onload=a,o.href=t,document.head.appendChild(o),o},t=(e,t)=>{for(var r=document.getElementsByTagName("link"),n=0;nnew Promise(((o,a)=>{var i=r.miniCssF(n),l=r.p+i;if(t(i,l))return o();e(n,l,o,a)})),o={143:0};r.f.miniCss=(e,t)=>{var r={385:1};o[e]?t.push(o[e]):0!==o[e]&&r[e]&&t.push(o[e]=n(e).then((()=>{o[e]=0}),(t=>{throw delete o[e],t})))}})(),(()=>{var e={143:0};r.f.j=(t,n)=>{var o=r.o(e,t)?e[t]:void 0;if(0!==o)if(o)n.push(o[2]);else{var a=new Promise(((r,n)=>o=e[t]=[r,n]));n.push(o[2]=a);var i=r.p+r.u(t),l=new Error,s=n=>{if(r.o(e,t)&&(o=e[t],0!==o&&(e[t]=void 0),o)){var a=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;l.message="Loading chunk "+t+" failed.\n("+a+": "+i+")",l.name="ChunkLoadError",l.type=a,l.request=i,o[1](l)}};r.l(i,s,"chunk-"+t,t)}},r.O.j=t=>0===e[t];var t=(t,n)=>{var o,a,[i,l,s]=n,u=0;if(i.some((t=>0!==e[t]))){for(o in l)r.o(l,o)&&(r.m[o]=l[o]);if(s)var d=s(r)}for(t&&t(n);ur(9942)));n=r.O(n)})(); \ No newline at end of file diff --git a/Server/templates/js/vendor.68a7f1bc.js b/Server/templates/js/vendor.68a7f1bc.js deleted file mode 100644 index 5d0f337..0000000 --- a/Server/templates/js/vendor.68a7f1bc.js +++ /dev/null @@ -1,32 +0,0 @@ -(globalThis["webpackChunksyseye"]=globalThis["webpackChunksyseye"]||[]).push([[736],{7518:e=>{e.exports=function(e,t,n){const i=void 0!==e.__vccOpts?e.__vccOpts:e,r=i[t];if(void 0===r)i[t]=n;else for(const o in n)void 0===r[o]&&(r[o]=n[o])}},1959:(e,t,n)=>{"use strict";n.d(t,{Bj:()=>o,Fl:()=>Ge,IU:()=>ke,Jd:()=>S,PG:()=>Me,SU:()=>ze,Um:()=>be,WL:()=>He,X$:()=>T,X3:()=>Te,XI:()=>Ne,Xl:()=>Ae,dq:()=>Re,iH:()=>Ee,j:()=>C,lk:()=>M,qj:()=>_e,qq:()=>x,yT:()=>Ie});var i=n(2323);let r;class o{constructor(e=!1){this.active=!0,this.effects=[],this.cleanups=[],!e&&r&&(this.parent=r,this.index=(r.scopes||(r.scopes=[])).push(this)-1)}run(e){if(this.active){const t=r;try{return r=this,e()}finally{r=t}}else 0}on(){r=this}off(){r=this.parent}stop(e){if(this.active){let t,n;for(t=0,n=this.effects.length;t{const t=new Set(e);return t.w=0,t.n=0,t},l=e=>(e.w&f)>0,u=e=>(e.n&f)>0,c=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let i=0;i{("length"===t||t>=r)&&u.push(e)}));else switch(void 0!==n&&u.push(l.get(n)),t){case"add":(0,i.kJ)(e)?(0,i.S0)(n)&&u.push(l.get("length")):(u.push(l.get(y)),(0,i._N)(e)&&u.push(l.get(m)));break;case"delete":(0,i.kJ)(e)||(u.push(l.get(y)),(0,i._N)(e)&&u.push(l.get(m)));break;case"set":(0,i._N)(e)&&u.push(l.get(y));break}if(1===u.length)u[0]&&k(u[0]);else{const e=[];for(const t of u)t&&e.push(...t);k(s(e))}}function k(e,t){const n=(0,i.kJ)(e)?e:[...e];for(const i of n)i.computed&&A(i,t);for(const i of n)i.computed||A(i,t)}function A(e,t){(e!==v||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const D=(0,i.fY)("__proto__,__v_isRef,__isVue"),L=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(i.yk)),P=B(),O=B(!1,!0),R=B(!0),E=N();function N(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=ke(this);for(let t=0,r=this.length;t{e[t]=function(...e){S();const n=ke(this)[t].apply(this,e);return M(),n}})),e}function B(e=!1,t=!1){return function(n,r,o){if("__v_isReactive"===r)return!e;if("__v_isReadonly"===r)return e;if("__v_isShallow"===r)return t;if("__v_raw"===r&&o===(e?t?ye:ve:t?ge:fe).get(n))return n;const a=(0,i.kJ)(n);if(!e&&a&&(0,i.RI)(E,r))return Reflect.get(E,r,o);const s=Reflect.get(n,r,o);return((0,i.yk)(r)?L.has(r):D(r))?s:(e||C(n,"get",r),t?s:Re(s)?a&&(0,i.S0)(r)?s:s.value:(0,i.Kn)(s)?e?we(s):_e(s):s)}}const F=V(),z=V(!0);function V(e=!1){return function(t,n,r,o){let a=t[n];if(Ce(a)&&Re(a)&&!Re(r))return!1;if(!e&&!Ce(r)&&(Ie(r)||(r=ke(r),a=ke(a)),!(0,i.kJ)(t)&&Re(a)&&!Re(r)))return a.value=r,!0;const s=(0,i.kJ)(t)&&(0,i.S0)(n)?Number(n)e,Y=e=>Reflect.getPrototypeOf(e);function $(e,t,n=!1,i=!1){e=e["__v_raw"];const r=ke(e),o=ke(t);n||(t!==o&&C(r,"get",t),C(r,"get",o));const{has:a}=Y(r),s=i?Z:n?Le:De;return a.call(r,t)?s(e.get(t)):a.call(r,o)?s(e.get(o)):void(e!==r&&e.get(t))}function X(e,t=!1){const n=this["__v_raw"],i=ke(n),r=ke(e);return t||(e!==r&&C(i,"has",e),C(i,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function K(e,t=!1){return e=e["__v_raw"],!t&&C(ke(e),"iterate",y),Reflect.get(e,"size",e)}function J(e){e=ke(e);const t=ke(this),n=Y(t),i=n.has.call(t,e);return i||(t.add(e),T(t,"add",e,e)),this}function Q(e,t){t=ke(t);const n=ke(this),{has:r,get:o}=Y(n);let a=r.call(n,e);a||(e=ke(e),a=r.call(n,e));const s=o.call(n,e);return n.set(e,t),a?(0,i.aU)(t,s)&&T(n,"set",e,t,s):T(n,"add",e,t),this}function ee(e){const t=ke(this),{has:n,get:i}=Y(t);let r=n.call(t,e);r||(e=ke(e),r=n.call(t,e));const o=i?i.call(t,e):void 0,a=t.delete(e);return r&&T(t,"delete",e,void 0,o),a}function te(){const e=ke(this),t=0!==e.size,n=void 0,i=e.clear();return t&&T(e,"clear",void 0,void 0,n),i}function ne(e,t){return function(n,i){const r=this,o=r["__v_raw"],a=ke(o),s=t?Z:e?Le:De;return!e&&C(a,"iterate",y),o.forEach(((e,t)=>n.call(i,s(e),s(t),r)))}}function ie(e,t,n){return function(...r){const o=this["__v_raw"],a=ke(o),s=(0,i._N)(a),l="entries"===e||e===Symbol.iterator&&s,u="keys"===e&&s,c=o[e](...r),h=n?Z:t?Le:De;return!t&&C(a,"iterate",u?m:y),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:l?[h(e[0]),h(e[1])]:h(e),done:t}},[Symbol.iterator](){return this}}}}function re(e){return function(...t){return"delete"!==e&&this}}function oe(){const e={get(e){return $(this,e)},get size(){return K(this)},has:X,add:J,set:Q,delete:ee,clear:te,forEach:ne(!1,!1)},t={get(e){return $(this,e,!1,!0)},get size(){return K(this)},has:X,add:J,set:Q,delete:ee,clear:te,forEach:ne(!1,!0)},n={get(e){return $(this,e,!0)},get size(){return K(this,!0)},has(e){return X.call(this,e,!0)},add:re("add"),set:re("set"),delete:re("delete"),clear:re("clear"),forEach:ne(!0,!1)},i={get(e){return $(this,e,!0,!0)},get size(){return K(this,!0)},has(e){return X.call(this,e,!0)},add:re("add"),set:re("set"),delete:re("delete"),clear:re("clear"),forEach:ne(!0,!0)},r=["keys","values","entries",Symbol.iterator];return r.forEach((r=>{e[r]=ie(r,!1,!1),n[r]=ie(r,!0,!1),t[r]=ie(r,!1,!0),i[r]=ie(r,!0,!0)})),[e,n,t,i]}const[ae,se,le,ue]=oe();function ce(e,t){const n=t?e?ue:le:e?se:ae;return(t,r,o)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get((0,i.RI)(n,r)&&r in t?n:t,r,o)}const he={get:ce(!1,!1)},de={get:ce(!1,!0)},pe={get:ce(!0,!1)};const fe=new WeakMap,ge=new WeakMap,ve=new WeakMap,ye=new WeakMap;function me(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function xe(e){return e["__v_skip"]||!Object.isExtensible(e)?0:me((0,i.W7)(e))}function _e(e){return Ce(e)?e:Se(e,!1,W,he,fe)}function be(e){return Se(e,!1,j,de,ge)}function we(e){return Se(e,!0,U,pe,ve)}function Se(e,t,n,r,o){if(!(0,i.Kn)(e))return e;if(e["__v_raw"]&&(!t||!e["__v_isReactive"]))return e;const a=o.get(e);if(a)return a;const s=xe(e);if(0===s)return e;const l=new Proxy(e,2===s?r:n);return o.set(e,l),l}function Me(e){return Ce(e)?Me(e["__v_raw"]):!(!e||!e["__v_isReactive"])}function Ce(e){return!(!e||!e["__v_isReadonly"])}function Ie(e){return!(!e||!e["__v_isShallow"])}function Te(e){return Me(e)||Ce(e)}function ke(e){const t=e&&e["__v_raw"];return t?ke(t):e}function Ae(e){return(0,i.Nj)(e,"__v_skip",!0),e}const De=e=>(0,i.Kn)(e)?_e(e):e,Le=e=>(0,i.Kn)(e)?we(e):e;function Pe(e){b&&v&&(e=ke(e),I(e.dep||(e.dep=s())))}function Oe(e,t){e=ke(e),e.dep&&k(e.dep)}function Re(e){return!(!e||!0!==e.__v_isRef)}function Ee(e){return Be(e,!1)}function Ne(e){return Be(e,!0)}function Be(e,t){return Re(e)?e:new Fe(e,t)}class Fe{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:ke(e),this._value=t?e:De(e)}get value(){return Pe(this),this._value}set value(e){e=this.__v_isShallow?e:ke(e),(0,i.aU)(e,this._rawValue)&&(this._rawValue=e,this._value=this.__v_isShallow?e:De(e),Oe(this,e))}}function ze(e){return Re(e)?e.value:e}const Ve={get:(e,t,n)=>ze(Reflect.get(e,t,n)),set:(e,t,n,i)=>{const r=e[t];return Re(r)&&!Re(n)?(r.value=n,!0):Reflect.set(e,t,n,i)}};function He(e){return Me(e)?e:new Proxy(e,Ve)}class qe{constructor(e,t,n,i){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new x(e,(()=>{this._dirty||(this._dirty=!0,Oe(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!i,this["__v_isReadonly"]=n}get value(){const e=ke(this);return Pe(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function Ge(e,t,n=!1){let r,o;const a=(0,i.mf)(e);a?(r=e,o=i.dG):(r=e.get,o=e.set);const s=new qe(r,o,a||!o,n);return s}},3673:(e,t,n)=>{"use strict";n.d(t,{$d:()=>a,Ah:()=>De,FN:()=>Mn,Fl:()=>Vn,HY:()=>Gt,JJ:()=>$,Jd:()=>Ae,Ko:()=>We,P$:()=>ae,Q2:()=>He,Q6:()=>de,U2:()=>le,Uk:()=>pn,Us:()=>Dt,Wm:()=>un,Xn:()=>Te,Y3:()=>w,Y8:()=>ie,YP:()=>J,_:()=>ln,aZ:()=>pe,bv:()=>Ie,dl:()=>ye,f3:()=>X,h:()=>Hn,iD:()=>en,ic:()=>ke,j4:()=>tn,kq:()=>fn,lR:()=>qt,nK:()=>he,se:()=>me,up:()=>ze,w5:()=>V,wF:()=>Ce,wg:()=>$t,wy:()=>Ee});var i=n(1959),r=n(2323);function o(e,t,n,i){let r;try{r=i?e(...i):e()}catch(o){s(o,t,n)}return r}function a(e,t,n,i){if((0,r.mf)(e)){const a=o(e,t,n,i);return a&&(0,r.tI)(a)&&a.catch((e=>{s(e,t,n)})),a}const l=[];for(let r=0;r>>1,r=P(h[i]);rd&&h.splice(t,1)}function T(e,t,n,i){(0,r.kJ)(e)?n.push(...e):t&&t.includes(e,e.allowRecurse?i+1:i)||n.push(e),C()}function k(e){T(e,f,p,g)}function A(e){T(e,y,v,m)}function D(e,t=null){if(p.length){for(b=t,f=[...new Set(p)],p.length=0,g=0;gP(e)-P(t))),m=0;mnull==e.id?1/0:e.id;function O(e){c=!1,u=!0,D(e),h.sort(((e,t)=>P(e)-P(t)));r.dG;try{for(d=0;de.trim()))),t&&(o=n.map(r.He))}let u;let c=i[u=(0,r.hR)(t)]||i[u=(0,r.hR)((0,r._A)(t))];!c&&s&&(c=i[u=(0,r.hR)((0,r.rs)(t))]),c&&a(c,e,6,o);const h=i[u+"Once"];if(h){if(e.emitted){if(e.emitted[u])return}else e.emitted={};e.emitted[u]=!0,a(h,e,6,o)}}function E(e,t,n=!1){const i=t.emitsCache,o=i.get(e);if(void 0!==o)return o;const a=e.emits;let s={},l=!1;if(!(0,r.mf)(e)){const i=e=>{const n=E(e,t,!0);n&&(l=!0,(0,r.l7)(s,n))};!n&&t.mixins.length&&t.mixins.forEach(i),e.extends&&i(e.extends),e.mixins&&e.mixins.forEach(i)}return a||l?((0,r.kJ)(a)?a.forEach((e=>s[e]=null)):(0,r.l7)(s,a),i.set(e,s),s):(i.set(e,null),null)}function N(e,t){return!(!e||!(0,r.F7)(t))&&(t=t.slice(2).replace(/Once$/,""),(0,r.RI)(e,t[0].toLowerCase()+t.slice(1))||(0,r.RI)(e,(0,r.rs)(t))||(0,r.RI)(e,t))}let B=null,F=null;function z(e){const t=B;return B=e,F=e&&e.type.__scopeId||null,t}function V(e,t=B,n){if(!t)return e;if(e._n)return e;const i=(...n)=>{i._d&&Jt(-1);const r=z(t),o=e(...n);return z(r),i._d&&Jt(1),o};return i._n=!0,i._c=!0,i._d=!0,i}function H(e){const{type:t,vnode:n,proxy:i,withProxy:o,props:a,propsOptions:[l],slots:u,attrs:c,emit:h,render:d,renderCache:p,data:f,setupState:g,ctx:v,inheritAttrs:y}=e;let m,x;const _=z(e);try{if(4&n.shapeFlag){const e=o||i;m=gn(d.call(e,e,p,a,g,f,v)),x=c}else{const e=t;0,m=gn(e.length>1?e(a,{attrs:c,slots:u,emit:h}):e(a,null)),x=t.props?c:q(c)}}catch(w){Zt.length=0,s(w,e,1),m=un(Ut)}let b=m;if(x&&!1!==y){const e=Object.keys(x),{shapeFlag:t}=b;e.length&&7&t&&(l&&e.some(r.tR)&&(x=G(x,l)),b=dn(b,x))}return n.dirs&&(b=dn(b),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&(b.transition=n.transition),m=b,z(_),m}const q=e=>{let t;for(const n in e)("class"===n||"style"===n||(0,r.F7)(n))&&((t||(t={}))[n]=e[n]);return t},G=(e,t)=>{const n={};for(const i in e)(0,r.tR)(i)&&i.slice(9)in t||(n[i]=e[i]);return n};function W(e,t,n){const{props:i,children:r,component:o}=e,{props:a,children:s,patchFlag:l}=t,u=o.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&l>=0))return!(!r&&!s||s&&s.$stable)||i!==a&&(i?!a||U(i,a,u):!!a);if(1024&l)return!0;if(16&l)return i?U(i,a,u):!!a;if(8&l){const e=t.dynamicProps;for(let t=0;te.__isSuspense;function Y(e,t){t&&t.pendingBranch?(0,r.kJ)(e)?t.effects.push(...e):t.effects.push(e):A(e)}function $(e,t){if(Sn){let n=Sn.provides;const i=Sn.parent&&Sn.parent.provides;i===n&&(n=Sn.provides=Object.create(i)),n[e]=t}else 0}function X(e,t,n=!1){const i=Sn||B;if(i){const o=null==i.parent?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&(0,r.mf)(t)?t.call(i.proxy):t}else 0}const K={};function J(e,t,n){return Q(e,t,n)}function Q(e,t,{immediate:n,deep:s,flush:l,onTrack:u,onTrigger:c}=r.kT){const h=Sn;let d,p,f=!1,g=!1;if((0,i.dq)(e)?(d=()=>e.value,f=(0,i.yT)(e)):(0,i.PG)(e)?(d=()=>e,s=!0):(0,r.kJ)(e)?(g=!0,f=e.some((e=>(0,i.PG)(e)||(0,i.yT)(e))),d=()=>e.map((e=>(0,i.dq)(e)?e.value:(0,i.PG)(e)?ne(e):(0,r.mf)(e)?o(e,h,2):void 0))):d=(0,r.mf)(e)?t?()=>o(e,h,2):()=>{if(!h||!h.isUnmounted)return p&&p(),a(e,h,3,[v])}:r.dG,t&&s){const e=d;d=()=>ne(e())}let v=e=>{p=_.onStop=()=>{o(e,h,4)}};if(Dn)return v=r.dG,t?n&&a(t,h,3,[d(),g?[]:void 0,v]):d(),r.dG;let y=g?[]:K;const m=()=>{if(_.active)if(t){const e=_.run();(s||f||(g?e.some(((e,t)=>(0,r.aU)(e,y[t]))):(0,r.aU)(e,y)))&&(p&&p(),a(t,h,3,[e,y===K?void 0:y,v]),y=e)}else _.run()};let x;m.allowRecurse=!!t,x="sync"===l?m:"post"===l?()=>At(m,h&&h.suspense):()=>k(m);const _=new i.qq(d,x);return t?n?m():y=_.run():"post"===l?At(_.run.bind(_),h&&h.suspense):_.run(),()=>{_.stop(),h&&h.scope&&(0,r.Od)(h.scope.effects,_)}}function ee(e,t,n){const i=this.proxy,o=(0,r.HD)(e)?e.includes(".")?te(i,e):()=>i[e]:e.bind(i,i);let a;(0,r.mf)(t)?a=t:(a=t.handler,n=t);const s=Sn;Cn(this);const l=Q(o,a.bind(i),n);return s?Cn(s):In(),l}function te(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e{ne(e,t)}));else if((0,r.PO)(e))for(const n in e)ne(e[n],t);return e}function ie(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ie((()=>{e.isMounted=!0})),Ae((()=>{e.isUnmounting=!0})),e}const re=[Function,Array],oe={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:re,onEnter:re,onAfterEnter:re,onEnterCancelled:re,onBeforeLeave:re,onLeave:re,onAfterLeave:re,onLeaveCancelled:re,onBeforeAppear:re,onAppear:re,onAfterAppear:re,onAppearCancelled:re},setup(e,{slots:t}){const n=Mn(),r=ie();let o;return()=>{const a=t.default&&de(t.default(),!0);if(!a||!a.length)return;let s=a[0];if(a.length>1){let e=!1;for(const t of a)if(t.type!==Ut){0,s=t,e=!0;break}}const l=(0,i.IU)(e),{mode:u}=l;if(r.isLeaving)return ue(s);const c=ce(s);if(!c)return ue(s);const h=le(c,l,r,n);he(c,h);const d=n.subTree,p=d&&ce(d);let f=!1;const{getTransitionKey:g}=c.type;if(g){const e=g();void 0===o?o=e:e!==o&&(o=e,f=!0)}if(p&&p.type!==Ut&&(!rn(c,p)||f)){const e=le(p,l,r,n);if(he(p,e),"out-in"===u)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,n.update()},ue(s);"in-out"===u&&c.type!==Ut&&(e.delayLeave=(e,t,n)=>{const i=se(r,p);i[String(p.key)]=p,e._leaveCb=()=>{t(),e._leaveCb=void 0,delete h.delayedLeave},h.delayedLeave=n})}return s}}},ae=oe;function se(e,t){const{leavingVNodes:n}=e;let i=n.get(t.type);return i||(i=Object.create(null),n.set(t.type,i)),i}function le(e,t,n,i){const{appear:o,mode:s,persisted:l=!1,onBeforeEnter:u,onEnter:c,onAfterEnter:h,onEnterCancelled:d,onBeforeLeave:p,onLeave:f,onAfterLeave:g,onLeaveCancelled:v,onBeforeAppear:y,onAppear:m,onAfterAppear:x,onAppearCancelled:_}=t,b=String(e.key),w=se(n,e),S=(e,t)=>{e&&a(e,i,9,t)},M=(e,t)=>{const n=t[1];S(e,t),(0,r.kJ)(e)?e.every((e=>e.length<=1))&&n():e.length<=1&&n()},C={mode:s,persisted:l,beforeEnter(t){let i=u;if(!n.isMounted){if(!o)return;i=y||u}t._leaveCb&&t._leaveCb(!0);const r=w[b];r&&rn(e,r)&&r.el._leaveCb&&r.el._leaveCb(),S(i,[t])},enter(e){let t=c,i=h,r=d;if(!n.isMounted){if(!o)return;t=m||c,i=x||h,r=_||d}let a=!1;const s=e._enterCb=t=>{a||(a=!0,S(t?r:i,[e]),C.delayedLeave&&C.delayedLeave(),e._enterCb=void 0)};t?M(t,[e,s]):s()},leave(t,i){const r=String(e.key);if(t._enterCb&&t._enterCb(!0),n.isUnmounting)return i();S(p,[t]);let o=!1;const a=t._leaveCb=n=>{o||(o=!0,i(),S(n?v:g,[t]),t._leaveCb=void 0,w[r]===e&&delete w[r])};w[r]=e,f?M(f,[t,a]):a()},clone(e){return le(e,t,n,i)}};return C}function ue(e){if(ge(e))return e=dn(e),e.children=null,e}function ce(e){return ge(e)?e.children?e.children[0]:void 0:e}function he(e,t){6&e.shapeFlag&&e.component?he(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function de(e,t=!1,n){let i=[],r=0;for(let o=0;o1)for(let o=0;o!!e.type.__asyncLoader;const ge=e=>e.type.__isKeepAlive;RegExp,RegExp;function ve(e,t){return(0,r.kJ)(e)?e.some((e=>ve(e,t))):(0,r.HD)(e)?e.split(",").includes(t):!!e.test&&e.test(t)}function ye(e,t){xe(e,"a",t)}function me(e,t){xe(e,"da",t)}function xe(e,t,n=Sn){const i=e.__wdc||(e.__wdc=()=>{let t=n;while(t){if(t.isDeactivated)return;t=t.parent}return e()});if(Se(t,i,n),n){let e=n.parent;while(e&&e.parent)ge(e.parent.vnode)&&_e(i,t,n,e),e=e.parent}}function _e(e,t,n,i){const o=Se(t,e,i,!0);De((()=>{(0,r.Od)(i[t],o)}),n)}function be(e){let t=e.shapeFlag;256&t&&(t-=256),512&t&&(t-=512),e.shapeFlag=t}function we(e){return 128&e.shapeFlag?e.ssContent:e}function Se(e,t,n=Sn,r=!1){if(n){const o=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...r)=>{if(n.isUnmounted)return;(0,i.Jd)(),Cn(n);const o=a(t,n,e,r);return In(),(0,i.lk)(),o});return r?o.unshift(s):o.push(s),s}}const Me=e=>(t,n=Sn)=>(!Dn||"sp"===e)&&Se(e,t,n),Ce=Me("bm"),Ie=Me("m"),Te=Me("bu"),ke=Me("u"),Ae=Me("bum"),De=Me("um"),Le=Me("sp"),Pe=Me("rtg"),Oe=Me("rtc");function Re(e,t=Sn){Se("ec",e,t)}function Ee(e,t){const n=B;if(null===n)return e;const i=Bn(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let a=0;at(e,n,void 0,a&&a[n])));else{const n=Object.keys(e);o=new Array(n.length);for(let i=0,r=n.length;ie?Tn(e)?Bn(e)||e.proxy:Ue(e.parent):null,je=(0,r.l7)(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Ue(e.parent),$root:e=>Ue(e.root),$emit:e=>e.emit,$options:e=>Qe(e),$forceUpdate:e=>e.f||(e.f=()=>M(e.update)),$nextTick:e=>e.n||(e.n=w.bind(e.proxy)),$watch:e=>ee.bind(e)}),Ze={get({_:e},t){const{ctx:n,setupState:o,data:a,props:s,accessCache:l,type:u,appContext:c}=e;let h;if("$"!==t[0]){const i=l[t];if(void 0!==i)switch(i){case 1:return o[t];case 2:return a[t];case 4:return n[t];case 3:return s[t]}else{if(o!==r.kT&&(0,r.RI)(o,t))return l[t]=1,o[t];if(a!==r.kT&&(0,r.RI)(a,t))return l[t]=2,a[t];if((h=e.propsOptions[0])&&(0,r.RI)(h,t))return l[t]=3,s[t];if(n!==r.kT&&(0,r.RI)(n,t))return l[t]=4,n[t];Ye&&(l[t]=0)}}const d=je[t];let p,f;return d?("$attrs"===t&&(0,i.j)(e,"get",t),d(e)):(p=u.__cssModules)&&(p=p[t])?p:n!==r.kT&&(0,r.RI)(n,t)?(l[t]=4,n[t]):(f=c.config.globalProperties,(0,r.RI)(f,t)?f[t]:void 0)},set({_:e},t,n){const{data:i,setupState:o,ctx:a}=e;return o!==r.kT&&(0,r.RI)(o,t)?(o[t]=n,!0):i!==r.kT&&(0,r.RI)(i,t)?(i[t]=n,!0):!(0,r.RI)(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(a[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:o,propsOptions:a}},s){let l;return!!n[s]||e!==r.kT&&(0,r.RI)(e,s)||t!==r.kT&&(0,r.RI)(t,s)||(l=a[0])&&(0,r.RI)(l,s)||(0,r.RI)(i,s)||(0,r.RI)(je,s)||(0,r.RI)(o.config.globalProperties,s)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:(0,r.RI)(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let Ye=!0;function $e(e){const t=Qe(e),n=e.proxy,o=e.ctx;Ye=!1,t.beforeCreate&&Ke(t.beforeCreate,e,"bc");const{data:a,computed:s,methods:l,watch:u,provide:c,inject:h,created:d,beforeMount:p,mounted:f,beforeUpdate:g,updated:v,activated:y,deactivated:m,beforeDestroy:x,beforeUnmount:_,destroyed:b,unmounted:w,render:S,renderTracked:M,renderTriggered:C,errorCaptured:I,serverPrefetch:T,expose:k,inheritAttrs:A,components:D,directives:L,filters:P}=t,O=null;if(h&&Xe(h,o,O,e.appContext.config.unwrapInjectedRef),l)for(const i in l){const e=l[i];(0,r.mf)(e)&&(o[i]=e.bind(n))}if(a){0;const t=a.call(n,n);0,(0,r.Kn)(t)&&(e.data=(0,i.qj)(t))}if(Ye=!0,s)for(const i in s){const e=s[i],t=(0,r.mf)(e)?e.bind(n,n):(0,r.mf)(e.get)?e.get.bind(n,n):r.dG;0;const a=!(0,r.mf)(e)&&(0,r.mf)(e.set)?e.set.bind(n):r.dG,l=Vn({get:t,set:a});Object.defineProperty(o,i,{enumerable:!0,configurable:!0,get:()=>l.value,set:e=>l.value=e})}if(u)for(const i in u)Je(u[i],o,n,i);if(c){const e=(0,r.mf)(c)?c.call(n):c;Reflect.ownKeys(e).forEach((t=>{$(t,e[t])}))}function R(e,t){(0,r.kJ)(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(d&&Ke(d,e,"c"),R(Ce,p),R(Ie,f),R(Te,g),R(ke,v),R(ye,y),R(me,m),R(Re,I),R(Oe,M),R(Pe,C),R(Ae,_),R(De,w),R(Le,T),(0,r.kJ)(k))if(k.length){const t=e.exposed||(e.exposed={});k.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});S&&e.render===r.dG&&(e.render=S),null!=A&&(e.inheritAttrs=A),D&&(e.components=D),L&&(e.directives=L)}function Xe(e,t,n=r.dG,o=!1){(0,r.kJ)(e)&&(e=rt(e));for(const a in e){const n=e[a];let s;s=(0,r.Kn)(n)?"default"in n?X(n.from||a,n.default,!0):X(n.from||a):X(n),(0,i.dq)(s)&&o?Object.defineProperty(t,a,{enumerable:!0,configurable:!0,get:()=>s.value,set:e=>s.value=e}):t[a]=s}}function Ke(e,t,n){a((0,r.kJ)(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function Je(e,t,n,i){const o=i.includes(".")?te(n,i):()=>n[i];if((0,r.HD)(e)){const n=t[e];(0,r.mf)(n)&&J(o,n)}else if((0,r.mf)(e))J(o,e.bind(n));else if((0,r.Kn)(e))if((0,r.kJ)(e))e.forEach((e=>Je(e,t,n,i)));else{const i=(0,r.mf)(e.handler)?e.handler.bind(n):t[e.handler];(0,r.mf)(i)&&J(o,i,e)}else 0}function Qe(e){const t=e.type,{mixins:n,extends:i}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:a}}=e.appContext,s=o.get(t);let l;return s?l=s:r.length||n||i?(l={},r.length&&r.forEach((e=>et(l,e,a,!0))),et(l,t,a)):l=t,o.set(t,l),l}function et(e,t,n,i=!1){const{mixins:r,extends:o}=t;o&&et(e,o,n,!0),r&&r.forEach((t=>et(e,t,n,!0)));for(const a in t)if(i&&"expose"===a);else{const i=tt[a]||n&&n[a];e[a]=i?i(e[a],t[a]):t[a]}return e}const tt={data:nt,props:at,emits:at,methods:at,computed:at,beforeCreate:ot,created:ot,beforeMount:ot,mounted:ot,beforeUpdate:ot,updated:ot,beforeDestroy:ot,beforeUnmount:ot,destroyed:ot,unmounted:ot,activated:ot,deactivated:ot,errorCaptured:ot,serverPrefetch:ot,components:at,directives:at,watch:st,provide:nt,inject:it};function nt(e,t){return t?e?function(){return(0,r.l7)((0,r.mf)(e)?e.call(this,this):e,(0,r.mf)(t)?t.call(this,this):t)}:t:e}function it(e,t){return at(rt(e),rt(t))}function rt(e){if((0,r.kJ)(e)){const t={};for(let n=0;n0)||16&l){let i;ct(e,t,a,s)&&(h=!0);for(const o in u)t&&((0,r.RI)(t,o)||(i=(0,r.rs)(o))!==o&&(0,r.RI)(t,i))||(c?!n||void 0===n[o]&&void 0===n[i]||(a[o]=ht(c,u,o,void 0,e,!0)):delete a[o]);if(s!==u)for(const e in s)t&&(0,r.RI)(t,e)||(delete s[e],h=!0)}else if(8&l){const n=e.vnode.dynamicProps;for(let i=0;i{u=!0;const[n,i]=dt(e,t,!0);(0,r.l7)(s,n),i&&l.push(...i)};!n&&t.mixins.length&&t.mixins.forEach(i),e.extends&&i(e.extends),e.mixins&&e.mixins.forEach(i)}if(!a&&!u)return i.set(e,r.Z6),r.Z6;if((0,r.kJ)(a))for(let h=0;h-1,i[1]=n<0||e-1||(0,r.RI)(i,"default"))&&l.push(t)}}}}const c=[s,l];return i.set(e,c),c}function pt(e){return"$"!==e[0]}function ft(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:null===e?"null":""}function gt(e,t){return ft(e)===ft(t)}function vt(e,t){return(0,r.kJ)(t)?t.findIndex((t=>gt(t,e))):(0,r.mf)(t)&>(t,e)?0:-1}const yt=e=>"_"===e[0]||"$stable"===e,mt=e=>(0,r.kJ)(e)?e.map(gn):[gn(e)],xt=(e,t,n)=>{if(t._n)return t;const i=V(((...e)=>mt(t(...e))),n);return i._c=!1,i},_t=(e,t,n)=>{const i=e._ctx;for(const o in e){if(yt(o))continue;const n=e[o];if((0,r.mf)(n))t[o]=xt(o,n,i);else if(null!=n){0;const e=mt(n);t[o]=()=>e}}},bt=(e,t)=>{const n=mt(t);e.slots.default=()=>n},wt=(e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=(0,i.IU)(t),(0,r.Nj)(t,"_",n)):_t(t,e.slots={})}else e.slots={},t&&bt(e,t);(0,r.Nj)(e.slots,on,1)},St=(e,t,n)=>{const{vnode:i,slots:o}=e;let a=!0,s=r.kT;if(32&i.shapeFlag){const e=t._;e?n&&1===e?a=!1:((0,r.l7)(o,t),n||1!==e||delete o._):(a=!t.$stable,_t(t,o)),s=t}else t&&(bt(e,t),s={default:1});if(a)for(const r in o)yt(r)||r in s||delete o[r]};function Mt(){return{app:null,config:{isNativeTag:r.NO,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Ct=0;function It(e,t){return function(n,i=null){(0,r.mf)(n)||(n=Object.assign({},n)),null==i||(0,r.Kn)(i)||(i=null);const o=Mt(),a=new Set;let s=!1;const l=o.app={_uid:Ct++,_component:n,_props:i,_container:null,_context:o,_instance:null,version:qn,get config(){return o.config},set config(e){0},use(e,...t){return a.has(e)||(e&&(0,r.mf)(e.install)?(a.add(e),e.install(l,...t)):(0,r.mf)(e)&&(a.add(e),e(l,...t))),l},mixin(e){return o.mixins.includes(e)||o.mixins.push(e),l},component(e,t){return t?(o.components[e]=t,l):o.components[e]},directive(e,t){return t?(o.directives[e]=t,l):o.directives[e]},mount(r,a,u){if(!s){0;const c=un(n,i);return c.appContext=o,a&&t?t(c,r):e(c,r,u),s=!0,l._container=r,r.__vue_app__=l,Bn(c.component)||c.component.proxy}},unmount(){s&&(e(null,l._container),delete l._container.__vue_app__)},provide(e,t){return o.provides[e]=t,l}};return l}}function Tt(e,t,n,a,s=!1){if((0,r.kJ)(e))return void e.forEach(((e,i)=>Tt(e,t&&((0,r.kJ)(t)?t[i]:t),n,a,s)));if(fe(a)&&!s)return;const l=4&a.shapeFlag?Bn(a.component)||a.component.proxy:a.el,u=s?null:l,{i:c,r:h}=e;const d=t&&t.r,p=c.refs===r.kT?c.refs={}:c.refs,f=c.setupState;if(null!=d&&d!==h&&((0,r.HD)(d)?(p[d]=null,(0,r.RI)(f,d)&&(f[d]=null)):(0,i.dq)(d)&&(d.value=null)),(0,r.mf)(h))o(h,c,12,[u,p]);else{const t=(0,r.HD)(h),o=(0,i.dq)(h);if(t||o){const i=()=>{if(e.f){const n=t?p[h]:h.value;s?(0,r.kJ)(n)&&(0,r.Od)(n,l):(0,r.kJ)(n)?n.includes(l)||n.push(l):t?(p[h]=[l],(0,r.RI)(f,h)&&(f[h]=p[h])):(h.value=[l],e.k&&(p[e.k]=h.value))}else t?(p[h]=u,(0,r.RI)(f,h)&&(f[h]=u)):o&&(h.value=u,e.k&&(p[e.k]=u))};u?(i.id=-1,At(i,n)):i()}else 0}}function kt(){}const At=Y;function Dt(e){return Lt(e)}function Lt(e,t){kt();const n=(0,r.E9)();n.__VUE__=!0;const{insert:o,remove:a,patchProp:s,createElement:l,createText:u,createComment:c,setText:h,setElementText:d,parentNode:p,nextSibling:f,setScopeId:g=r.dG,cloneNode:v,insertStaticContent:y}=e,m=(e,t,n,i=null,r=null,o=null,a=!1,s=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!rn(e,t)&&(i=Q(e),Y(e,r,o,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);const{type:u,ref:c,shapeFlag:h}=t;switch(u){case Wt:x(e,t,n,i);break;case Ut:_(e,t,n,i);break;case jt:null==e&&b(t,n,i,a);break;case Gt:E(e,t,n,i,r,o,a,s,l);break;default:1&h?C(e,t,n,i,r,o,a,s,l):6&h?N(e,t,n,i,r,o,a,s,l):(64&h||128&h)&&u.process(e,t,n,i,r,o,a,s,l,te)}null!=c&&r&&Tt(c,e&&e.ref,o,t||e,!t)},x=(e,t,n,i)=>{if(null==e)o(t.el=u(t.children),n,i);else{const n=t.el=e.el;t.children!==e.children&&h(n,t.children)}},_=(e,t,n,i)=>{null==e?o(t.el=c(t.children||""),n,i):t.el=e.el},b=(e,t,n,i)=>{[e.el,e.anchor]=y(e.children,t,n,i,e.el,e.anchor)},w=({el:e,anchor:t},n,i)=>{let r;while(e&&e!==t)r=f(e),o(e,n,i),e=r;o(t,n,i)},S=({el:e,anchor:t})=>{let n;while(e&&e!==t)n=f(e),a(e),e=n;a(t)},C=(e,t,n,i,r,o,a,s,l)=>{a=a||"svg"===t.type,null==e?T(t,n,i,r,o,a,s,l):P(e,t,r,o,a,s,l)},T=(e,t,n,i,a,u,c,h)=>{let p,f;const{type:g,props:y,shapeFlag:m,transition:x,patchFlag:_,dirs:b}=e;if(e.el&&void 0!==v&&-1===_)p=e.el=v(e.el);else{if(p=e.el=l(e.type,u,y&&y.is,y),8&m?d(p,e.children):16&m&&A(e.children,p,null,i,a,u&&"foreignObject"!==g,c,h),b&&Ne(e,null,i,"created"),y){for(const t in y)"value"===t||(0,r.Gg)(t)||s(p,t,null,y[t],u,e.children,i,a,J);"value"in y&&s(p,"value",null,y.value),(f=y.onVnodeBeforeMount)&&xn(f,i,e)}k(p,e,e.scopeId,c,i)}b&&Ne(e,null,i,"beforeMount");const w=(!a||a&&!a.pendingBranch)&&x&&!x.persisted;w&&x.beforeEnter(p),o(p,t,n),((f=y&&y.onVnodeMounted)||w||b)&&At((()=>{f&&xn(f,i,e),w&&x.enter(p),b&&Ne(e,null,i,"mounted")}),a)},k=(e,t,n,i,r)=>{if(n&&g(e,n),i)for(let o=0;o{for(let u=l;u{const u=t.el=e.el;let{patchFlag:c,dynamicChildren:h,dirs:p}=t;c|=16&e.patchFlag;const f=e.props||r.kT,g=t.props||r.kT;let v;n&&Pt(n,!1),(v=g.onVnodeBeforeUpdate)&&xn(v,n,t,e),p&&Ne(t,e,n,"beforeUpdate"),n&&Pt(n,!0);const y=o&&"foreignObject"!==t.type;if(h?O(e.dynamicChildren,h,u,n,i,y,a):l||q(e,t,u,null,n,i,y,a,!1),c>0){if(16&c)R(u,t,f,g,n,i,o);else if(2&c&&f.class!==g.class&&s(u,"class",null,g.class,o),4&c&&s(u,"style",f.style,g.style,o),8&c){const r=t.dynamicProps;for(let t=0;t{v&&xn(v,n,t,e),p&&Ne(t,e,n,"updated")}),i)},O=(e,t,n,i,r,o,a)=>{for(let s=0;s{if(n!==i){for(const u in i){if((0,r.Gg)(u))continue;const c=i[u],h=n[u];c!==h&&"value"!==u&&s(e,u,h,c,l,t.children,o,a,J)}if(n!==r.kT)for(const u in n)(0,r.Gg)(u)||u in i||s(e,u,n[u],null,l,t.children,o,a,J);"value"in i&&s(e,"value",n.value,i.value)}},E=(e,t,n,i,r,a,s,l,c)=>{const h=t.el=e?e.el:u(""),d=t.anchor=e?e.anchor:u("");let{patchFlag:p,dynamicChildren:f,slotScopeIds:g}=t;g&&(l=l?l.concat(g):g),null==e?(o(h,n,i),o(d,n,i),A(t.children,n,d,r,a,s,l,c)):p>0&&64&p&&f&&e.dynamicChildren?(O(e.dynamicChildren,f,n,r,a,s,l),(null!=t.key||r&&t===r.subTree)&&Ot(e,t,!0)):q(e,t,n,d,r,a,s,l,c)},N=(e,t,n,i,r,o,a,s,l)=>{t.slotScopeIds=s,null==e?512&t.shapeFlag?r.ctx.activate(t,n,i,a,l):B(t,n,i,r,o,a,l):F(e,t,l)},B=(e,t,n,i,r,o,a)=>{const s=e.component=wn(e,i,r);if(ge(e)&&(s.ctx.renderer=te),Ln(s),s.asyncDep){if(r&&r.registerDep(s,z),!e.el){const e=s.subTree=un(Ut);_(null,e,t,n)}}else z(s,e,t,n,r,o,a)},F=(e,t,n)=>{const i=t.component=e.component;if(W(e,t,n)){if(i.asyncDep&&!i.asyncResolved)return void V(i,t,n);i.next=t,I(i.update),i.update()}else t.el=e.el,i.vnode=t},z=(e,t,n,o,a,s,l)=>{const u=()=>{if(e.isMounted){let t,{next:n,bu:i,u:o,parent:u,vnode:c}=e,h=n;0,Pt(e,!1),n?(n.el=c.el,V(e,n,l)):n=c,i&&(0,r.ir)(i),(t=n.props&&n.props.onVnodeBeforeUpdate)&&xn(t,u,n,c),Pt(e,!0);const d=H(e);0;const f=e.subTree;e.subTree=d,m(f,d,p(f.el),Q(f),e,a,s),n.el=d.el,null===h&&j(e,d.el),o&&At(o,a),(t=n.props&&n.props.onVnodeUpdated)&&At((()=>xn(t,u,n,c)),a)}else{let i;const{el:l,props:u}=t,{bm:c,m:h,parent:d}=e,p=fe(t);if(Pt(e,!1),c&&(0,r.ir)(c),!p&&(i=u&&u.onVnodeBeforeMount)&&xn(i,d,t),Pt(e,!0),l&&ie){const n=()=>{e.subTree=H(e),ie(l,e.subTree,e,a,null)};p?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{0;const i=e.subTree=H(e);0,m(null,i,n,o,e,a,s),t.el=i.el}if(h&&At(h,a),!p&&(i=u&&u.onVnodeMounted)){const e=t;At((()=>xn(i,d,e)),a)}(256&t.shapeFlag||d&&fe(d.vnode)&&256&d.vnode.shapeFlag)&&e.a&&At(e.a,a),e.isMounted=!0,t=n=o=null}},c=e.effect=new i.qq(u,(()=>M(h)),e.scope),h=e.update=()=>c.run();h.id=e.uid,Pt(e,!0),h()},V=(e,t,n)=>{t.component=e;const r=e.vnode.props;e.vnode=t,e.next=null,ut(e,t.props,r,n),St(e,t.children,n),(0,i.Jd)(),D(void 0,e.update),(0,i.lk)()},q=(e,t,n,i,r,o,a,s,l=!1)=>{const u=e&&e.children,c=e?e.shapeFlag:0,h=t.children,{patchFlag:p,shapeFlag:f}=t;if(p>0){if(128&p)return void U(u,h,n,i,r,o,a,s,l);if(256&p)return void G(u,h,n,i,r,o,a,s,l)}8&f?(16&c&&J(u,r,o),h!==u&&d(n,h)):16&c?16&f?U(u,h,n,i,r,o,a,s,l):J(u,r,o,!0):(8&c&&d(n,""),16&f&&A(h,n,i,r,o,a,s,l))},G=(e,t,n,i,o,a,s,l,u)=>{e=e||r.Z6,t=t||r.Z6;const c=e.length,h=t.length,d=Math.min(c,h);let p;for(p=0;ph?J(e,o,a,!0,!1,d):A(t,n,i,o,a,s,l,u,d)},U=(e,t,n,i,o,a,s,l,u)=>{let c=0;const h=t.length;let d=e.length-1,p=h-1;while(c<=d&&c<=p){const i=e[c],r=t[c]=u?vn(t[c]):gn(t[c]);if(!rn(i,r))break;m(i,r,n,null,o,a,s,l,u),c++}while(c<=d&&c<=p){const i=e[d],r=t[p]=u?vn(t[p]):gn(t[p]);if(!rn(i,r))break;m(i,r,n,null,o,a,s,l,u),d--,p--}if(c>d){if(c<=p){const e=p+1,r=ep)while(c<=d)Y(e[c],o,a,!0),c++;else{const f=c,g=c,v=new Map;for(c=g;c<=p;c++){const e=t[c]=u?vn(t[c]):gn(t[c]);null!=e.key&&v.set(e.key,c)}let y,x=0;const _=p-g+1;let b=!1,w=0;const S=new Array(_);for(c=0;c<_;c++)S[c]=0;for(c=f;c<=d;c++){const i=e[c];if(x>=_){Y(i,o,a,!0);continue}let r;if(null!=i.key)r=v.get(i.key);else for(y=g;y<=p;y++)if(0===S[y-g]&&rn(i,t[y])){r=y;break}void 0===r?Y(i,o,a,!0):(S[r-g]=c+1,r>=w?w=r:b=!0,m(i,t[r],n,null,o,a,s,l,u),x++)}const M=b?Rt(S):r.Z6;for(y=M.length-1,c=_-1;c>=0;c--){const e=g+c,r=t[e],d=e+1{const{el:a,type:s,transition:l,children:u,shapeFlag:c}=e;if(6&c)return void Z(e.component.subTree,t,n,i);if(128&c)return void e.suspense.move(t,n,i);if(64&c)return void s.move(e,t,n,te);if(s===Gt){o(a,t,n);for(let e=0;el.enter(a)),r);else{const{leave:e,delayLeave:i,afterLeave:r}=l,s=()=>o(a,t,n),u=()=>{e(a,(()=>{s(),r&&r()}))};i?i(a,s,u):u()}else o(a,t,n)},Y=(e,t,n,i=!1,r=!1)=>{const{type:o,props:a,ref:s,children:l,dynamicChildren:u,shapeFlag:c,patchFlag:h,dirs:d}=e;if(null!=s&&Tt(s,null,n,e,!0),256&c)return void t.ctx.deactivate(e);const p=1&c&&d,f=!fe(e);let g;if(f&&(g=a&&a.onVnodeBeforeUnmount)&&xn(g,t,e),6&c)K(e.component,n,i);else{if(128&c)return void e.suspense.unmount(n,i);p&&Ne(e,null,t,"beforeUnmount"),64&c?e.type.remove(e,t,n,r,te,i):u&&(o!==Gt||h>0&&64&h)?J(u,t,n,!1,!0):(o===Gt&&384&h||!r&&16&c)&&J(l,t,n),i&&$(e)}(f&&(g=a&&a.onVnodeUnmounted)||p)&&At((()=>{g&&xn(g,t,e),p&&Ne(e,null,t,"unmounted")}),n)},$=e=>{const{type:t,el:n,anchor:i,transition:r}=e;if(t===Gt)return void X(n,i);if(t===jt)return void S(e);const o=()=>{a(n),r&&!r.persisted&&r.afterLeave&&r.afterLeave()};if(1&e.shapeFlag&&r&&!r.persisted){const{leave:t,delayLeave:i}=r,a=()=>t(n,o);i?i(e.el,o,a):a()}else o()},X=(e,t)=>{let n;while(e!==t)n=f(e),a(e),e=n;a(t)},K=(e,t,n)=>{const{bum:i,scope:o,update:a,subTree:s,um:l}=e;i&&(0,r.ir)(i),o.stop(),a&&(a.active=!1,Y(s,e,t,n)),l&&At(l,t),At((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},J=(e,t,n,i=!1,r=!1,o=0)=>{for(let a=o;a6&e.shapeFlag?Q(e.component.subTree):128&e.shapeFlag?e.suspense.next():f(e.anchor||e.el),ee=(e,t,n)=>{null==e?t._vnode&&Y(t._vnode,null,null,!0):m(t._vnode||null,e,t,null,null,null,n),L(),t._vnode=e},te={p:m,um:Y,m:Z,r:$,mt:B,mc:A,pc:q,pbc:O,n:Q,o:e};let ne,ie;return t&&([ne,ie]=t(te)),{render:ee,hydrate:ne,createApp:It(ee,ne)}}function Pt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Ot(e,t,n=!1){const i=e.children,o=t.children;if((0,r.kJ)(i)&&(0,r.kJ)(o))for(let r=0;r>1,e[n[s]]0&&(t[i]=n[o-1]),n[o]=i)}}o=n.length,a=n[o-1];while(o-- >0)n[o]=a,a=t[a];return n}const Et=e=>e.__isTeleport,Nt=e=>e&&(e.disabled||""===e.disabled),Bt=e=>"undefined"!==typeof SVGElement&&e instanceof SVGElement,Ft=(e,t)=>{const n=e&&e.to;if((0,r.HD)(n)){if(t){const e=t(n);return e}return null}return n},zt={__isTeleport:!0,process(e,t,n,i,r,o,a,s,l,u){const{mc:c,pc:h,pbc:d,o:{insert:p,querySelector:f,createText:g,createComment:v}}=u,y=Nt(t.props);let{shapeFlag:m,children:x,dynamicChildren:_}=t;if(null==e){const e=t.el=g(""),u=t.anchor=g("");p(e,n,i),p(u,n,i);const h=t.target=Ft(t.props,f),d=t.targetAnchor=g("");h&&(p(d,h),a=a||Bt(h));const v=(e,t)=>{16&m&&c(x,e,t,r,o,a,s,l)};y?v(n,u):h&&v(h,d)}else{t.el=e.el;const i=t.anchor=e.anchor,c=t.target=e.target,p=t.targetAnchor=e.targetAnchor,g=Nt(e.props),v=g?n:c,m=g?i:p;if(a=a||Bt(c),_?(d(e.dynamicChildren,_,v,r,o,a,s),Ot(e,t,!0)):l||h(e,t,v,m,r,o,a,s,!1),y)g||Vt(t,n,i,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=Ft(t.props,f);e&&Vt(t,e,null,u,0)}else g&&Vt(t,c,p,u,1)}},remove(e,t,n,i,{um:r,o:{remove:o}},a){const{shapeFlag:s,children:l,anchor:u,targetAnchor:c,target:h,props:d}=e;if(h&&o(c),(a||!Nt(d))&&(o(u),16&s))for(let p=0;p0?Yt||r.Z6:null,Xt(),Kt>0&&Yt&&Yt.push(e),e}function en(e,t,n,i,r,o){return Qt(ln(e,t,n,i,r,o,!0))}function tn(e,t,n,i,r){return Qt(un(e,t,n,i,r,!0))}function nn(e){return!!e&&!0===e.__v_isVNode}function rn(e,t){return e.type===t.type&&e.key===t.key}const on="__vInternal",an=({key:e})=>null!=e?e:null,sn=({ref:e,ref_key:t,ref_for:n})=>null!=e?(0,r.HD)(e)||(0,i.dq)(e)||(0,r.mf)(e)?{i:B,r:e,k:t,f:!!n}:e:null;function ln(e,t=null,n=null,i=0,o=null,a=(e===Gt?0:1),s=!1,l=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&an(t),ref:t&&sn(t),scopeId:F,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:i,dynamicProps:o,dynamicChildren:null,appContext:null};return l?(yn(u,n),128&a&&e.normalize(u)):n&&(u.shapeFlag|=(0,r.HD)(n)?8:16),Kt>0&&!s&&Yt&&(u.patchFlag>0||6&a)&&32!==u.patchFlag&&Yt.push(u),u}const un=cn;function cn(e,t=null,n=null,o=0,a=null,s=!1){if(e&&e!==Ve||(e=Ut),nn(e)){const i=dn(e,t,!0);return n&&yn(i,n),Kt>0&&!s&&Yt&&(6&i.shapeFlag?Yt[Yt.indexOf(e)]=i:Yt.push(i)),i.patchFlag|=-2,i}if(zn(e)&&(e=e.__vccOpts),t){t=hn(t);let{class:e,style:n}=t;e&&!(0,r.HD)(e)&&(t.class=(0,r.C_)(e)),(0,r.Kn)(n)&&((0,i.X3)(n)&&!(0,r.kJ)(n)&&(n=(0,r.l7)({},n)),t.style=(0,r.j5)(n))}const l=(0,r.HD)(e)?1:Z(e)?128:Et(e)?64:(0,r.Kn)(e)?4:(0,r.mf)(e)?2:0;return ln(e,t,n,o,a,l,s,!0)}function hn(e){return e?(0,i.X3)(e)||on in e?(0,r.l7)({},e):e:null}function dn(e,t,n=!1){const{props:i,ref:o,patchFlag:a,children:s}=e,l=t?mn(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&an(l),ref:t&&t.ref?n&&o?(0,r.kJ)(o)?o.concat(sn(t)):[o,sn(t)]:sn(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Gt?-1===a?16:16|a:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&dn(e.ssContent),ssFallback:e.ssFallback&&dn(e.ssFallback),el:e.el,anchor:e.anchor};return u}function pn(e=" ",t=0){return un(Wt,null,e,t)}function fn(e="",t=!1){return t?($t(),tn(Ut,null,e)):un(Ut,null,e)}function gn(e){return null==e||"boolean"===typeof e?un(Ut):(0,r.kJ)(e)?un(Gt,null,e.slice()):"object"===typeof e?vn(e):un(Wt,null,String(e))}function vn(e){return null===e.el||e.memo?e:dn(e)}function yn(e,t){let n=0;const{shapeFlag:i}=e;if(null==t)t=null;else if((0,r.kJ)(t))n=16;else if("object"===typeof t){if(65&i){const n=t.default;return void(n&&(n._c&&(n._d=!1),yn(e,n()),n._c&&(n._d=!0)))}{n=32;const i=t._;i||on in t?3===i&&B&&(1===B.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=B}}else(0,r.mf)(t)?(t={default:t,_ctx:B},n=32):(t=String(t),64&i?(n=16,t=[pn(t)]):n=8);e.children=t,e.shapeFlag|=n}function mn(...e){const t={};for(let n=0;nSn||B,Cn=e=>{Sn=e,e.scope.on()},In=()=>{Sn&&Sn.scope.off(),Sn=null};function Tn(e){return 4&e.vnode.shapeFlag}let kn,An,Dn=!1;function Ln(e,t=!1){Dn=t;const{props:n,children:i}=e.vnode,r=Tn(e);lt(e,n,r,t),wt(e,i);const o=r?Pn(e,t):void 0;return Dn=!1,o}function Pn(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=(0,i.Xl)(new Proxy(e.ctx,Ze));const{setup:a}=n;if(a){const n=e.setupContext=a.length>1?Nn(e):null;Cn(e),(0,i.Jd)();const l=o(a,e,0,[e.props,n]);if((0,i.lk)(),In(),(0,r.tI)(l)){if(l.then(In,In),t)return l.then((n=>{On(e,n,t)})).catch((t=>{s(t,e,0)}));e.asyncDep=l}else On(e,l,t)}else Rn(e,t)}function On(e,t,n){(0,r.mf)(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:(0,r.Kn)(t)&&(e.setupState=(0,i.WL)(t)),Rn(e,n)}function Rn(e,t,n){const o=e.type;if(!e.render){if(!t&&kn&&!o.render){const t=o.template;if(t){0;const{isCustomElement:n,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:s}=o,l=(0,r.l7)((0,r.l7)({isCustomElement:n,delimiters:a},i),s);o.render=kn(t,l)}}e.render=o.render||r.dG,An&&An(e)}Cn(e),(0,i.Jd)(),$e(e),(0,i.lk)(),In()}function En(e){return new Proxy(e.attrs,{get(t,n){return(0,i.j)(e,"get","$attrs"),t[n]}})}function Nn(e){const t=t=>{e.exposed=t||{}};let n;return{get attrs(){return n||(n=En(e))},slots:e.slots,emit:e.emit,expose:t}}function Bn(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy((0,i.WL)((0,i.Xl)(e.exposed)),{get(t,n){return n in t?t[n]:n in je?je[n](e):void 0}}))}function Fn(e,t=!0){return(0,r.mf)(e)?e.displayName||e.name:e.name||t&&e.__name}function zn(e){return(0,r.mf)(e)&&"__vccOpts"in e}const Vn=(e,t)=>(0,i.Fl)(e,t,Dn);function Hn(e,t,n){const i=arguments.length;return 2===i?(0,r.Kn)(t)&&!(0,r.kJ)(t)?nn(t)?un(e,null,[t]):un(e,t):un(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):3===i&&nn(n)&&(n=[n]),un(e,t,n))}Symbol("");const qn="3.2.37"},8880:(e,t,n)=>{"use strict";n.d(t,{ri:()=>ne,uT:()=>B});var i=n(2323),r=n(3673);n(1959);const o="http://www.w3.org/2000/svg",a="undefined"!==typeof document?document:null,s=a&&a.createElement("template"),l={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,i)=>{const r=t?a.createElementNS(o,e):a.createElement(e,n?{is:n}:void 0);return"select"===e&&i&&null!=i.multiple&&r.setAttribute("multiple",i.multiple),r},createText:e=>a.createTextNode(e),createComment:e=>a.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>a.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,n,i,r,o){const a=n?n.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling)){while(1)if(t.insertBefore(r.cloneNode(!0),n),r===o||!(r=r.nextSibling))break}else{s.innerHTML=i?`${e}`:e;const r=s.content;if(i){const e=r.firstChild;while(e.firstChild)r.appendChild(e.firstChild);r.removeChild(e)}t.insertBefore(r,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function u(e,t,n){const i=e._vtc;i&&(t=(t?[t,...i]:[...i]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function c(e,t,n){const r=e.style,o=(0,i.HD)(n);if(n&&!o){for(const e in n)d(r,e,n[e]);if(t&&!(0,i.HD)(t))for(const e in t)null==n[e]&&d(r,e,"")}else{const i=r.display;o?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=i)}}const h=/\s*!important$/;function d(e,t,n){if((0,i.kJ)(n))n.forEach((n=>d(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=g(e,t);h.test(n)?e.setProperty((0,i.rs)(r),n.replace(h,""),"important"):e[r]=n}}const p=["Webkit","Moz","ms"],f={};function g(e,t){const n=f[t];if(n)return n;let r=(0,i._A)(t);if("filter"!==r&&r in e)return f[t]=r;r=(0,i.kC)(r);for(let i=0;i{let e=Date.now,t=!1;if("undefined"!==typeof window){Date.now()>document.createEvent("Event").timeStamp&&(e=performance.now.bind(performance));const n=navigator.userAgent.match(/firefox\/(\d+)/i);t=!!(n&&Number(n[1])<=53)}return[e,t]})();let b=0;const w=Promise.resolve(),S=()=>{b=0},M=()=>b||(w.then(S),b=x());function C(e,t,n,i){e.addEventListener(t,n,i)}function I(e,t,n,i){e.removeEventListener(t,n,i)}function T(e,t,n,i,r=null){const o=e._vei||(e._vei={}),a=o[t];if(i&&a)a.value=i;else{const[n,s]=A(t);if(i){const a=o[t]=D(i,r);C(e,n,a,s)}else a&&(I(e,n,a,s),o[t]=void 0)}}const k=/(?:Once|Passive|Capture)$/;function A(e){let t;if(k.test(e)){let n;t={};while(n=e.match(k))e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[(0,i.rs)(e.slice(2)),t]}function D(e,t){const n=e=>{const i=e.timeStamp||x();(_||i>=n.attached-1)&&(0,r.$d)(L(e,n.value),t,5,[e])};return n.value=e,n.attached=M(),n}function L(e,t){if((0,i.kJ)(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}const P=/^on[a-z]/,O=(e,t,n,r,o=!1,a,s,l,h)=>{"class"===t?u(e,r,o):"style"===t?c(e,n,r):(0,i.F7)(t)?(0,i.tR)(t)||T(e,t,n,r,s):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):R(e,t,r,o))?m(e,t,r,a,s,l,h):("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),y(e,t,r,o))};function R(e,t,n,r){return r?"innerHTML"===t||"textContent"===t||!!(t in e&&P.test(t)&&(0,i.mf)(n)):"spellcheck"!==t&&"draggable"!==t&&"translate"!==t&&("form"!==t&&(("list"!==t||"INPUT"!==e.tagName)&&(("type"!==t||"TEXTAREA"!==e.tagName)&&((!P.test(t)||!(0,i.HD)(n))&&t in e))))}"undefined"!==typeof HTMLElement&&HTMLElement;const E="transition",N="animation",B=(e,{slots:t})=>(0,r.h)(r.P$,H(e),t);B.displayName="Transition";const F={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},z=(B.props=(0,i.l7)({},r.P$.props,F),(e,t=[])=>{(0,i.kJ)(e)?e.forEach((e=>e(...t))):e&&e(...t)}),V=e=>!!e&&((0,i.kJ)(e)?e.some((e=>e.length>1)):e.length>1);function H(e){const t={};for(const i in e)i in F||(t[i]=e[i]);if(!1===e.css)return t;const{name:n="v",type:r,duration:o,enterFromClass:a=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:u=a,appearActiveClass:c=s,appearToClass:h=l,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:f=`${n}-leave-to`}=e,g=q(o),v=g&&g[0],y=g&&g[1],{onBeforeEnter:m,onEnter:x,onEnterCancelled:_,onLeave:b,onLeaveCancelled:w,onBeforeAppear:S=m,onAppear:M=x,onAppearCancelled:C=_}=t,I=(e,t,n)=>{U(e,t?h:l),U(e,t?c:s),n&&n()},T=(e,t)=>{e._isLeaving=!1,U(e,d),U(e,f),U(e,p),t&&t()},k=e=>(t,n)=>{const i=e?M:x,o=()=>I(t,e,n);z(i,[t,o]),j((()=>{U(t,e?u:a),W(t,e?h:l),V(i)||Y(t,r,v,o)}))};return(0,i.l7)(t,{onBeforeEnter(e){z(m,[e]),W(e,a),W(e,s)},onBeforeAppear(e){z(S,[e]),W(e,u),W(e,c)},onEnter:k(!1),onAppear:k(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>T(e,t);W(e,d),J(),W(e,p),j((()=>{e._isLeaving&&(U(e,d),W(e,f),V(b)||Y(e,r,y,n))})),z(b,[e,n])},onEnterCancelled(e){I(e,!1),z(_,[e])},onAppearCancelled(e){I(e,!0),z(C,[e])},onLeaveCancelled(e){T(e),z(w,[e])}})}function q(e){if(null==e)return null;if((0,i.Kn)(e))return[G(e.enter),G(e.leave)];{const t=G(e);return[t,t]}}function G(e){const t=(0,i.He)(e);return t}function W(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e._vtc||(e._vtc=new Set)).add(t)}function U(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function j(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let Z=0;function Y(e,t,n,i){const r=e._endId=++Z,o=()=>{r===e._endId&&i()};if(n)return setTimeout(o,n);const{type:a,timeout:s,propCount:l}=$(e,t);if(!a)return i();const u=a+"end";let c=0;const h=()=>{e.removeEventListener(u,d),o()},d=t=>{t.target===e&&++c>=l&&h()};setTimeout((()=>{c(n[e]||"").split(", "),r=i(E+"Delay"),o=i(E+"Duration"),a=X(r,o),s=i(N+"Delay"),l=i(N+"Duration"),u=X(s,l);let c=null,h=0,d=0;t===E?a>0&&(c=E,h=a,d=o.length):t===N?u>0&&(c=N,h=u,d=l.length):(h=Math.max(a,u),c=h>0?a>u?E:N:null,d=c?c===E?o.length:l.length:0);const p=c===E&&/\b(transform|all)(,|$)/.test(n[E+"Property"]);return{type:c,timeout:h,propCount:d,hasTransform:p}}function X(e,t){while(e.lengthK(t)+K(e[n]))))}function K(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function J(){return document.body.offsetHeight}new WeakMap,new WeakMap;const Q=(0,i.l7)({patchProp:O},l);let ee;function te(){return ee||(ee=(0,r.Us)(Q))}const ne=(...e)=>{const t=te().createApp(...e);const{mount:n}=t;return t.mount=e=>{const r=ie(e);if(!r)return;const o=t._component;(0,i.mf)(o)||o.render||o.template||(o.template=r.innerHTML),r.innerHTML="";const a=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),a},t};function ie(e){if((0,i.HD)(e)){const t=document.querySelector(e);return t}return e}},2323:(e,t,n)=>{"use strict";function i(e,t){const n=Object.create(null),i=e.split(",");for(let r=0;r!!n[e.toLowerCase()]:e=>!!n[e]}n.d(t,{C_:()=>p,DM:()=>P,E9:()=>ie,F7:()=>M,Gg:()=>W,HD:()=>E,He:()=>te,Kn:()=>B,NO:()=>w,Nj:()=>ee,Od:()=>T,PO:()=>q,Pq:()=>s,RI:()=>A,S0:()=>G,W7:()=>H,WV:()=>g,Z6:()=>_,_A:()=>Z,_N:()=>L,aU:()=>J,dG:()=>b,e1:()=>o,fY:()=>i,hR:()=>K,hq:()=>v,ir:()=>Q,j5:()=>u,kC:()=>X,kJ:()=>D,kT:()=>x,l7:()=>I,mf:()=>R,rs:()=>$,tI:()=>F,tR:()=>C,yA:()=>l,yk:()=>N,zw:()=>y});const r="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",o=i(r);const a="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",s=i(a);function l(e){return!!e||""===e}function u(e){if(D(e)){const t={};for(let n=0;n{if(e){const n=e.split(h);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function p(e){let t="";if(E(e))t=e;else if(D(e))for(let n=0;ng(e,t)))}const y=e=>E(e)?e:null==e?"":D(e)||B(e)&&(e.toString===z||!R(e.toString))?JSON.stringify(e,m,2):String(e),m=(e,t)=>t&&t.__v_isRef?m(e,t.value):L(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:P(t)?{[`Set(${t.size})`]:[...t.values()]}:!B(t)||D(t)||q(t)?t:String(t),x={},_=[],b=()=>{},w=()=>!1,S=/^on[^a-z]/,M=e=>S.test(e),C=e=>e.startsWith("onUpdate:"),I=Object.assign,T=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},k=Object.prototype.hasOwnProperty,A=(e,t)=>k.call(e,t),D=Array.isArray,L=e=>"[object Map]"===V(e),P=e=>"[object Set]"===V(e),O=e=>"[object Date]"===V(e),R=e=>"function"===typeof e,E=e=>"string"===typeof e,N=e=>"symbol"===typeof e,B=e=>null!==e&&"object"===typeof e,F=e=>B(e)&&R(e.then)&&R(e.catch),z=Object.prototype.toString,V=e=>z.call(e),H=e=>V(e).slice(8,-1),q=e=>"[object Object]"===V(e),G=e=>E(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,W=i(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),U=e=>{const t=Object.create(null);return n=>{const i=t[n];return i||(t[n]=e(n))}},j=/-(\w)/g,Z=U((e=>e.replace(j,((e,t)=>t?t.toUpperCase():"")))),Y=/\B([A-Z])/g,$=U((e=>e.replace(Y,"-$1").toLowerCase())),X=U((e=>e.charAt(0).toUpperCase()+e.slice(1))),K=U((e=>e?`on${X(e)}`:"")),J=(e,t)=>!Object.is(e,t),Q=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},te=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let ne;const ie=()=>ne||(ne="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{})},52:(e,t,n)=>{e.exports=n(7974)},8699:(e,t,n)=>{"use strict";var i=n(7210),r=n(4923),o=n(3634),a=n(7696),s=n(9835),l=n(3423),u=n(8365),c=n(8838),h=n(9469),d=n(9157),p=n(7302);e.exports=function(e){return new Promise((function(t,n){var f,g=e.data,v=e.headers,y=e.responseType;function m(){e.cancelToken&&e.cancelToken.unsubscribe(f),e.signal&&e.signal.removeEventListener("abort",f)}i.isFormData(g)&&i.isStandardBrowserEnv()&&delete v["Content-Type"];var x=new XMLHttpRequest;if(e.auth){var _=e.auth.username||"",b=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";v.Authorization="Basic "+btoa(_+":"+b)}var w=s(e.baseURL,e.url);function S(){if(x){var i="getAllResponseHeaders"in x?l(x.getAllResponseHeaders()):null,o=y&&"text"!==y&&"json"!==y?x.response:x.responseText,a={data:o,status:x.status,statusText:x.statusText,headers:i,config:e,request:x};r((function(e){t(e),m()}),(function(e){n(e),m()}),a),x=null}}if(x.open(e.method.toUpperCase(),a(w,e.params,e.paramsSerializer),!0),x.timeout=e.timeout,"onloadend"in x?x.onloadend=S:x.onreadystatechange=function(){x&&4===x.readyState&&(0!==x.status||x.responseURL&&0===x.responseURL.indexOf("file:"))&&setTimeout(S)},x.onabort=function(){x&&(n(new h("Request aborted",h.ECONNABORTED,e,x)),x=null)},x.onerror=function(){n(new h("Network Error",h.ERR_NETWORK,e,x,x)),x=null},x.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",i=e.transitional||c;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new h(t,i.clarifyTimeoutError?h.ETIMEDOUT:h.ECONNABORTED,e,x)),x=null},i.isStandardBrowserEnv()){var M=(e.withCredentials||u(w))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;M&&(v[e.xsrfHeaderName]=M)}"setRequestHeader"in x&&i.forEach(v,(function(e,t){"undefined"===typeof g&&"content-type"===t.toLowerCase()?delete v[t]:x.setRequestHeader(t,e)})),i.isUndefined(e.withCredentials)||(x.withCredentials=!!e.withCredentials),y&&"json"!==y&&(x.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&x.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&x.upload&&x.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(f=function(e){x&&(n(!e||e&&e.type?new d:e),x.abort(),x=null)},e.cancelToken&&e.cancelToken.subscribe(f),e.signal&&(e.signal.aborted?f():e.signal.addEventListener("abort",f))),g||(g=null);var C=p(w);C&&-1===["http","https","file"].indexOf(C)?n(new h("Unsupported protocol "+C+":",h.ERR_BAD_REQUEST,e)):x.send(g)}))}},7974:(e,t,n)=>{"use strict";var i=n(7210),r=n(2938),o=n(8799),a=n(4495),s=n(2447);function l(e){var t=new o(e),n=r(o.prototype.request,t);return i.extend(n,o.prototype,t),i.extend(n,t),n.create=function(t){return l(a(e,t))},n}var u=l(s);u.Axios=o,u.CanceledError=n(9157),u.CancelToken=n(8858),u.isCancel=n(6029),u.VERSION=n(765).version,u.toFormData=n(4415),u.AxiosError=n(9469),u.Cancel=u.CanceledError,u.all=function(e){return Promise.all(e)},u.spread=n(5178),u.isAxiosError=n(5615),e.exports=u,e.exports["default"]=u},8858:(e,t,n)=>{"use strict";var i=n(9157);function r(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,i=n._listeners.length;for(t=0;t{"use strict";var i=n(9469),r=n(7210);function o(e){i.call(this,null==e?"canceled":e,i.ERR_CANCELED),this.name="CanceledError"}r.inherits(o,i,{__CANCEL__:!0}),e.exports=o},6029:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},8799:(e,t,n)=>{"use strict";var i=n(7210),r=n(7696),o=n(2591),a=n(516),s=n(4495),l=n(9835),u=n(3170),c=u.validators;function h(e){this.defaults=e,this.interceptors={request:new o,response:new o}}h.prototype.request=function(e,t){"string"===typeof e?(t=t||{},t.url=e):t=e||{},t=s(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&u.assertOptions(n,{silentJSONParsing:c.transitional(c.boolean),forcedJSONParsing:c.transitional(c.boolean),clarifyTimeoutError:c.transitional(c.boolean)},!1);var i=[],r=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(r=r&&e.synchronous,i.unshift(e.fulfilled,e.rejected))}));var o,l=[];if(this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)})),!r){var h=[a,void 0];Array.prototype.unshift.apply(h,i),h=h.concat(l),o=Promise.resolve(t);while(h.length)o=o.then(h.shift(),h.shift());return o}var d=t;while(i.length){var p=i.shift(),f=i.shift();try{d=p(d)}catch(g){f(g);break}}try{o=a(d)}catch(g){return Promise.reject(g)}while(l.length)o=o.then(l.shift(),l.shift());return o},h.prototype.getUri=function(e){e=s(this.defaults,e);var t=l(e.baseURL,e.url);return r(t,e.params,e.paramsSerializer)},i.forEach(["delete","get","head","options"],(function(e){h.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),i.forEach(["post","put","patch"],(function(e){function t(t){return function(n,i,r){return this.request(s(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}h.prototype[e]=t(),h.prototype[e+"Form"]=t(!0)})),e.exports=h},9469:(e,t,n)=>{"use strict";var i=n(7210);function r(e,t,n,i,r){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),r&&(this.response=r)}i.inherits(r,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var o=r.prototype,a={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){a[e]={value:e}})),Object.defineProperties(r,a),Object.defineProperty(o,"isAxiosError",{value:!0}),r.from=function(e,t,n,a,s,l){var u=Object.create(o);return i.toFlatObject(e,u,(function(e){return e!==Error.prototype})),r.call(u,e.message,t,n,a,s),u.name=e.name,l&&Object.assign(u,l),u},e.exports=r},2591:(e,t,n)=>{"use strict";var i=n(7210);function r(){this.handlers=[]}r.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){i.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=r},9835:(e,t,n)=>{"use strict";var i=n(8380),r=n(6092);e.exports=function(e,t){return e&&!i(t)?r(e,t):t}},516:(e,t,n)=>{"use strict";var i=n(7210),r=n(4330),o=n(6029),a=n(2447),s=n(9157);function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s}e.exports=function(e){l(e),e.headers=e.headers||{},e.data=r.call(e,e.data,e.headers,e.transformRequest),e.headers=i.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),i.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]}));var t=e.adapter||a.adapter;return t(e).then((function(t){return l(e),t.data=r.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(l(e),t&&t.response&&(t.response.data=r.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},4495:(e,t,n)=>{"use strict";var i=n(7210);e.exports=function(e,t){t=t||{};var n={};function r(e,t){return i.isPlainObject(e)&&i.isPlainObject(t)?i.merge(e,t):i.isPlainObject(t)?i.merge({},t):i.isArray(t)?t.slice():t}function o(n){return i.isUndefined(t[n])?i.isUndefined(e[n])?void 0:r(void 0,e[n]):r(e[n],t[n])}function a(e){if(!i.isUndefined(t[e]))return r(void 0,t[e])}function s(n){return i.isUndefined(t[n])?i.isUndefined(e[n])?void 0:r(void 0,e[n]):r(void 0,t[n])}function l(n){return n in t?r(e[n],t[n]):n in e?r(void 0,e[n]):void 0}var u={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l};return i.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=u[e]||o,r=t(e);i.isUndefined(r)&&t!==l||(n[e]=r)})),n}},4923:(e,t,n)=>{"use strict";var i=n(9469);e.exports=function(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new i("Request failed with status code "+n.status,[i.ERR_BAD_REQUEST,i.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}},4330:(e,t,n)=>{"use strict";var i=n(7210),r=n(2447);e.exports=function(e,t,n){var o=this||r;return i.forEach(n,(function(n){e=n.call(o,e,t)})),e}},2447:(e,t,n)=>{"use strict";var i=n(7210),r=n(4733),o=n(9469),a=n(8838),s=n(4415),l={"Content-Type":"application/x-www-form-urlencoded"};function u(e,t){!i.isUndefined(e)&&i.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function c(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(e=n(8699)),e}function h(e,t,n){if(i.isString(e))try{return(t||JSON.parse)(e),i.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}var d={transitional:a,adapter:c(),transformRequest:[function(e,t){if(r(t,"Accept"),r(t,"Content-Type"),i.isFormData(e)||i.isArrayBuffer(e)||i.isBuffer(e)||i.isStream(e)||i.isFile(e)||i.isBlob(e))return e;if(i.isArrayBufferView(e))return e.buffer;if(i.isURLSearchParams(e))return u(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var n,o=i.isObject(e),a=t&&t["Content-Type"];if((n=i.isFileList(e))||o&&"multipart/form-data"===a){var l=this.env&&this.env.FormData;return s(n?{"files[]":e}:e,l&&new l)}return o||"application/json"===a?(u(t,"application/json"),h(e)):e}],transformResponse:[function(e){var t=this.transitional||d.transitional,n=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||r&&i.isString(e)&&e.length)try{return JSON.parse(e)}catch(s){if(a){if("SyntaxError"===s.name)throw o.from(s,o.ERR_BAD_RESPONSE,this,null,this.response);throw s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:n(6632)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};i.forEach(["delete","get","head"],(function(e){d.headers[e]={}})),i.forEach(["post","put","patch"],(function(e){d.headers[e]=i.merge(l)})),e.exports=d},8838:e=>{"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},765:e=>{e.exports={version:"0.27.2"}},2938:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),i=0;i{"use strict";var i=n(7210);function r(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(i.isURLSearchParams(t))o=t.toString();else{var a=[];i.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(i.isArray(e)?t+="[]":e=[e],i.forEach(e,(function(e){i.isDate(e)?e=e.toISOString():i.isObject(e)&&(e=JSON.stringify(e)),a.push(r(t)+"="+r(e))})))})),o=a.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},6092:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},3634:(e,t,n)=>{"use strict";var i=n(7210);e.exports=i.isStandardBrowserEnv()?function(){return{write:function(e,t,n,r,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),i.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),i.isString(r)&&s.push("path="+r),i.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},8380:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},5615:(e,t,n)=>{"use strict";var i=n(7210);e.exports=function(e){return i.isObject(e)&&!0===e.isAxiosError}},8365:(e,t,n)=>{"use strict";var i=n(7210);e.exports=i.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(e){var i=e;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=r(window.location.href),function(t){var n=i.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return function(){return!0}}()},4733:(e,t,n)=>{"use strict";var i=n(7210);e.exports=function(e,t){i.forEach(e,(function(n,i){i!==t&&i.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[i])}))}},6632:e=>{e.exports=null},3423:(e,t,n)=>{"use strict";var i=n(7210),r=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,o,a={};return e?(i.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=i.trim(e.substr(0,o)).toLowerCase(),n=i.trim(e.substr(o+1)),t){if(a[t]&&r.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},7302:e=>{"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},5178:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},4415:(e,t,n)=>{"use strict";var i=n(7210);function r(e,t){t=t||new FormData;var n=[];function r(e){return null===e?"":i.isDate(e)?e.toISOString():i.isArrayBuffer(e)||i.isTypedArray(e)?"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function o(e,a){if(i.isPlainObject(e)||i.isArray(e)){if(-1!==n.indexOf(e))throw Error("Circular reference detected in "+a);n.push(e),i.forEach(e,(function(e,n){if(!i.isUndefined(e)){var s,l=a?a+"."+n:n;if(e&&!a&&"object"===typeof e)if(i.endsWith(n,"{}"))e=JSON.stringify(e);else if(i.endsWith(n,"[]")&&(s=i.toArray(e)))return void s.forEach((function(e){!i.isUndefined(e)&&t.append(l,r(e))}));o(e,l)}})),n.pop()}else t.append(a,r(e))}return o(e),t}e.exports=r},3170:(e,t,n)=>{"use strict";var i=n(765).version,r=n(9469),o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var a={};function s(e,t,n){if("object"!==typeof e)throw new r("options must be an object",r.ERR_BAD_OPTION_VALUE);var i=Object.keys(e),o=i.length;while(o-- >0){var a=i[o],s=t[a];if(s){var l=e[a],u=void 0===l||s(l,a,e);if(!0!==u)throw new r("option "+a+" must be "+u,r.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new r("Unknown option "+a,r.ERR_BAD_OPTION)}}o.transitional=function(e,t,n){function o(e,t){return"[Axios v"+i+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,i,s){if(!1===e)throw new r(o(i," has been removed"+(t?" in "+t:"")),r.ERR_DEPRECATED);return t&&!a[i]&&(a[i]=!0,console.warn(o(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,s)}},e.exports={assertOptions:s,validators:o}},7210:(e,t,n)=>{"use strict";var i=n(2938),r=Object.prototype.toString,o=function(e){return function(t){var n=r.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())}}(Object.create(null));function a(e){return e=e.toLowerCase(),function(t){return o(t)===e}}function s(e){return Array.isArray(e)}function l(e){return"undefined"===typeof e}function u(e){return null!==e&&!l(e)&&null!==e.constructor&&!l(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var c=a("ArrayBuffer");function h(e){var t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&c(e.buffer),t}function d(e){return"string"===typeof e}function p(e){return"number"===typeof e}function f(e){return null!==e&&"object"===typeof e}function g(e){if("object"!==o(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var v=a("Date"),y=a("File"),m=a("Blob"),x=a("FileList");function _(e){return"[object Function]"===r.call(e)}function b(e){return f(e)&&_(e.pipe)}function w(e){var t="[object FormData]";return e&&("function"===typeof FormData&&e instanceof FormData||r.call(e)===t||_(e.toString)&&e.toString()===t)}var S=a("URLSearchParams");function M(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function C(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function I(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),s(e))for(var n=0,i=e.length;n0)o=i[r],a[o]||(t[o]=e[o],a[o]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t}function P(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var i=e.indexOf(t,n);return-1!==i&&i===n}function O(e){if(!e)return null;var t=e.length;if(l(t))return null;var n=new Array(t);while(t-- >0)n[t]=e[t];return n}var R=function(e){return function(t){return e&&t instanceof e}}("undefined"!==typeof Uint8Array&&Object.getPrototypeOf(Uint8Array));e.exports={isArray:s,isArrayBuffer:c,isBuffer:u,isFormData:w,isArrayBufferView:h,isString:d,isNumber:p,isObject:f,isPlainObject:g,isUndefined:l,isDate:v,isFile:y,isBlob:m,isFunction:_,isStream:b,isURLSearchParams:S,isStandardBrowserEnv:C,forEach:I,merge:T,extend:k,trim:M,stripBOM:A,inherits:D,toFlatObject:L,kindOf:o,kindOfTest:a,endsWith:P,toArray:O,isTypedArray:R,isFileList:x}},5607:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(3673),r=n(908),o=n(2236),a=n(7657);const s=(0,r.L)({name:"QBanner",props:{...o.S,inlineActions:Boolean,dense:Boolean,rounded:Boolean},setup(e,{slots:t}){const n=(0,i.FN)(),r=(0,o.Z)(e,n.proxy.$q),s=(0,i.Fl)((()=>"q-banner row items-center"+(!0===e.dense?" q-banner--dense":"")+(!0===r.value?" q-banner--dark q-dark":"")+(!0===e.rounded?" rounded-borders":""))),l=(0,i.Fl)((()=>"q-banner__actions row items-center justify-end col-"+(!0===e.inlineActions?"auto":"all")));return()=>{const n=[(0,i.h)("div",{class:"q-banner__avatar col-auto row items-center self-start"},(0,a.KR)(t.avatar)),(0,i.h)("div",{class:"q-banner__content col text-body2"},(0,a.KR)(t.default))],r=(0,a.KR)(t.action);return void 0!==r&&n.push((0,i.h)("div",{class:l.value},r)),(0,i.h)("div",{class:s.value+(!1===e.inlineActions&&void 0!==r?" q-banner--top-padding":""),role:"alert"},n)}}})},846:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(3673),r=n(2236),o=n(908),a=n(7657);const s=(0,o.L)({name:"QBar",props:{...r.S,dense:Boolean},setup(e,{slots:t}){const n=(0,i.FN)(),o=(0,r.Z)(e,n.proxy.$q),s=(0,i.Fl)((()=>`q-bar row no-wrap items-center q-bar--${!0===e.dense?"dense":"standard"} q-bar--`+(!0===o.value?"dark":"light")));return()=>(0,i.h)("div",{class:s.value,role:"toolbar"},(0,a.KR)(t.default))}})},1481:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});n(3610);var i=n(3673),r=n(9992),o=n(908),a=n(7657),s=n(7445);const l=["",!0],u=(0,o.L)({name:"QBreadcrumbs",props:{...r.jO,separator:{type:String,default:"/"},separatorColor:String,activeColor:{type:String,default:"primary"},gutter:{type:String,validator:e=>["none","xs","sm","md","lg","xl"].includes(e),default:"sm"}},setup(e,{slots:t}){const n=(0,r.ZP)(e),o=(0,i.Fl)((()=>`flex items-center ${n.value}${"none"===e.gutter?"":` q-gutter-${e.gutter}`}`)),u=(0,i.Fl)((()=>e.separatorColor?` text-${e.separatorColor}`:"")),c=(0,i.Fl)((()=>` text-${e.activeColor}`));return()=>{const n=(0,s.Pf)((0,a.KR)(t.default));if(0===n.length)return;let r=1;const h=[],d=n.filter((e=>void 0!==e.type&&"QBreadcrumbsEl"===e.type.name)).length,p=void 0!==t.separator?t.separator:()=>e.separator;return n.forEach((e=>{if(void 0!==e.type&&"QBreadcrumbsEl"===e.type.name){const t=r{"use strict";n.d(t,{Z:()=>l});var i=n(3673),r=n(4554),o=n(908),a=n(7657),s=n(7277);const l=(0,o.L)({name:"QBreadcrumbsEl",props:{...s.$,label:String,icon:String,tag:{type:String,default:"span"}},setup(e,{slots:t}){const{linkTag:n,linkProps:o,linkClass:l,hasRouterLink:u,navigateToRouterLink:c}=(0,s.Z)(),h=(0,i.Fl)((()=>{const t={class:"q-breadcrumbs__el q-link flex inline items-center relative-position "+(!0!==e.disable?"q-link--focusable"+l.value:"q-breadcrumbs__el--disable"),...o.value};return!0===u.value&&(t.onClick=c),t})),d=(0,i.Fl)((()=>"q-breadcrumbs__el-icon"+(void 0!==e.label?" q-breadcrumbs__el-icon--with-label":"")));return()=>{const o=[];return void 0!==e.icon&&o.push((0,i.h)(r.Z,{class:d.value,name:e.icon})),void 0!==e.label&&o.push(e.label),(0,i.h)(n.value,{...h.value},(0,a.vs)(t.default,o))}}})},8240:(e,t,n)=>{"use strict";n.d(t,{Z:()=>I});var i=n(3673),r=n(1959),o=n(8880),a=n(4554),s=n(9754),l=n(6489),u=(n(3610),n(9992)),c=n(2417),h=n(7277);const d={none:0,xs:4,sm:8,md:16,lg:24,xl:32},p={xs:8,sm:10,md:14,lg:20,xl:24},f=["button","submit","reset"],g=/[^\s]\/[^\s]/,v={...c.LU,...h.$,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,round:Boolean,square:Boolean,outline:Boolean,flat:Boolean,unelevated:Boolean,rounded:Boolean,push:Boolean,glossy:Boolean,size:String,fab:Boolean,fabMini:Boolean,padding:String,color:String,textColor:String,noCaps:Boolean,noWrap:Boolean,dense:Boolean,tabindex:[Number,String],ripple:{type:[Boolean,Object],default:!0},align:{...u.jO.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean};function y(e){const t=(0,c.ZP)(e,p),n=(0,u.ZP)(e),{hasRouterLink:r,hasLink:o,linkTag:a,linkProps:s,navigateToRouterLink:l}=(0,h.Z)("button"),v=(0,i.Fl)((()=>{const n=!1===e.fab&&!1===e.fabMini?t.value:{};return void 0!==e.padding?Object.assign({},n,{padding:e.padding.split(/\s+/).map((e=>e in d?d[e]+"px":e)).join(" "),minWidth:"0",minHeight:"0"}):n})),y=(0,i.Fl)((()=>!0===e.rounded||!0===e.fab||!0===e.fabMini)),m=(0,i.Fl)((()=>!0!==e.disable&&!0!==e.loading)),x=(0,i.Fl)((()=>!0===m.value?e.tabindex||0:-1)),_=(0,i.Fl)((()=>!0===e.flat?"flat":!0===e.outline?"outline":!0===e.push?"push":!0===e.unelevated?"unelevated":"standard")),b=(0,i.Fl)((()=>{const t={tabindex:x.value};return!0===o.value?Object.assign(t,s.value):!0===f.includes(e.type)&&(t.type=e.type),"a"===a.value?(!0===e.disable?t["aria-disabled"]="true":void 0===t.href&&(t.role="button"),!0!==r.value&&!0===g.test(e.type)&&(t.type=e.type)):!0===e.disable&&(t.disabled="",t["aria-disabled"]="true"),!0===e.loading&&void 0!==e.percentage&&Object.assign(t,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e.percentage}),t})),w=(0,i.Fl)((()=>{let t;void 0!==e.color?t=!0===e.flat||!0===e.outline?`text-${e.textColor||e.color}`:`bg-${e.color} text-${e.textColor||"white"}`:e.textColor&&(t=`text-${e.textColor}`);const n=!0===e.round?"round":"rectangle"+(!0===y.value?" q-btn--rounded":!0===e.square?" q-btn--square":"");return`q-btn--${_.value} q-btn--${n}`+(void 0!==t?" "+t:"")+(!0===m.value?" q-btn--actionable q-focusable q-hoverable":!0===e.disable?" disabled":"")+(!0===e.fab?" q-btn--fab":!0===e.fabMini?" q-btn--fab-mini":"")+(!0===e.noCaps?" q-btn--no-uppercase":"")+(!0===e.dense?" q-btn--dense":"")+(!0===e.stretch?" no-border-radius self-stretch":"")+(!0===e.glossy?" glossy":"")+(e.square?" q-btn--square":"")})),S=(0,i.Fl)((()=>n.value+(!0===e.stack?" column":" row")+(!0===e.noWrap?" no-wrap text-no-wrap":"")+(!0===e.loading?" q-btn__content--hidden":"")));return{classes:w,style:v,innerClasses:S,attributes:b,hasRouterLink:r,hasLink:o,linkTag:a,navigateToRouterLink:l,isActionable:m}}var m=n(908),x=n(7657),_=n(4716),b=n(1436);const{passiveCapture:w}=_.rU;let S=null,M=null,C=null;const I=(0,m.L)({name:"QBtn",props:{...v,percentage:Number,darkPercentage:Boolean},emits:["click","keydown","touchstart","mousedown","keyup"],setup(e,{slots:t,emit:n}){const{proxy:u}=(0,i.FN)(),{classes:c,style:h,innerClasses:d,attributes:p,hasRouterLink:f,hasLink:g,linkTag:v,navigateToRouterLink:m,isActionable:I}=y(e),T=(0,r.iH)(null),k=(0,r.iH)(null);let A,D,L=null;const P=(0,i.Fl)((()=>void 0!==e.label&&null!==e.label&&""!==e.label)),O=(0,i.Fl)((()=>!0!==e.disable&&!1!==e.ripple&&{keyCodes:!0===g.value?[13,32]:[13],...!0===e.ripple?{}:e.ripple})),R=(0,i.Fl)((()=>({center:e.round}))),E=(0,i.Fl)((()=>{const t=Math.max(0,Math.min(100,e.percentage));return t>0?{transition:"transform 0.6s",transform:`translateX(${t-100}%)`}:{}})),N=(0,i.Fl)((()=>!0===e.loading?{onMousedown:W,onTouchstartPassive:W,onClick:W,onKeydown:W,onKeyup:W}:!0===I.value?{onClick:F,onKeydown:z,onMousedown:H,onTouchstart:V}:{onClick:_.NS})),B=(0,i.Fl)((()=>({ref:T,class:"q-btn q-btn-item non-selectable no-outline "+c.value,style:h.value,...p.value,...N.value})));function F(t){if(null!==T.value){if(void 0!==t){if(!0===t.defaultPrevented)return;const n=document.activeElement;if("submit"===e.type&&n!==document.body&&!1===T.value.contains(n)&&!1===n.contains(T.value)){T.value.focus();const e=()=>{document.removeEventListener("keydown",_.NS,!0),document.removeEventListener("keyup",e,w),null!==T.value&&T.value.removeEventListener("blur",e,w)};document.addEventListener("keydown",_.NS,!0),document.addEventListener("keyup",e,w),T.value.addEventListener("blur",e,w)}}if(!0===f.value){const e=()=>{t.__qNavigate=!0,m(t)};n("click",t,e),!0!==t.defaultPrevented&&e()}else n("click",t)}}function z(e){null!==T.value&&(n("keydown",e),!0===(0,b.So)(e,[13,32])&&M!==T.value&&(null!==M&&G(),!0!==e.defaultPrevented&&(T.value.focus(),M=T.value,T.value.classList.add("q-btn--active"),document.addEventListener("keyup",q,!0),T.value.addEventListener("blur",q,w)),(0,_.NS)(e)))}function V(e){null!==T.value&&(n("touchstart",e),!0!==e.defaultPrevented&&(S!==T.value&&(null!==S&&G(),S=T.value,L=e.target,L.addEventListener("touchcancel",q,w),L.addEventListener("touchend",q,w)),A=!0,clearTimeout(D),D=setTimeout((()=>{A=!1}),200)))}function H(e){null!==T.value&&(e.qSkipRipple=!0===A,n("mousedown",e),!0!==e.defaultPrevented&&C!==T.value&&(null!==C&&G(),C=T.value,T.value.classList.add("q-btn--active"),document.addEventListener("mouseup",q,w)))}function q(e){if(null!==T.value&&(void 0===e||"blur"!==e.type||document.activeElement!==T.value)){if(void 0!==e&&"keyup"===e.type){if(M===T.value&&!0===(0,b.So)(e,[13,32])){const t=new MouseEvent("click",e);t.qKeyEvent=!0,!0===e.defaultPrevented&&(0,_.X$)(t),!0===e.cancelBubble&&(0,_.sT)(t),T.value.dispatchEvent(t),(0,_.NS)(e),e.qKeyEvent=!0}n("keyup",e)}G()}}function G(e){const t=k.value;!0===e||S!==T.value&&C!==T.value||null===t||t===document.activeElement||(t.setAttribute("tabindex",-1),t.focus()),S===T.value&&(null!==L&&(L.removeEventListener("touchcancel",q,w),L.removeEventListener("touchend",q,w)),S=L=null),C===T.value&&(document.removeEventListener("mouseup",q,w),C=null),M===T.value&&(document.removeEventListener("keyup",q,!0),null!==T.value&&T.value.removeEventListener("blur",q,w),M=null),null!==T.value&&T.value.classList.remove("q-btn--active")}function W(e){(0,_.NS)(e),e.qSkipRipple=!0}return(0,i.Jd)((()=>{G(!0)})),Object.assign(u,{click:F}),()=>{let n=[];void 0!==e.icon&&n.push((0,i.h)(a.Z,{name:e.icon,left:!1===e.stack&&!0===P.value,role:"img","aria-hidden":"true"})),!0===P.value&&n.push((0,i.h)("span",{class:"block"},[e.label])),n=(0,x.vs)(t.default,n),void 0!==e.iconRight&&!1===e.round&&n.push((0,i.h)(a.Z,{name:e.iconRight,right:!1===e.stack&&!0===P.value,role:"img","aria-hidden":"true"}));const r=[(0,i.h)("span",{class:"q-focus-helper",ref:k})];return!0===e.loading&&void 0!==e.percentage&&r.push((0,i.h)("span",{class:"q-btn__progress absolute-full overflow-hidden"+(!0===e.darkPercentage?" q-btn__progress--dark":"")},[(0,i.h)("span",{class:"q-btn__progress-indicator fit block",style:E.value})])),r.push((0,i.h)("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+d.value},n)),null!==e.loading&&r.push((0,i.h)(o.uT,{name:"q-transition--fade"},(()=>!0===e.loading?[(0,i.h)("span",{key:"loading",class:"absolute-full flex flex-center"},void 0!==t.loading?t.loading():[(0,i.h)(s.Z)])]:null))),(0,i.wy)((0,i.h)(v.value,B.value,r),[[l.Z,O.value,void 0,R.value]])}}})},151:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(3673),r=n(2236),o=n(908),a=n(7657);const s=(0,o.L)({name:"QCard",props:{...r.S,tag:{type:String,default:"div"},square:Boolean,flat:Boolean,bordered:Boolean},setup(e,{slots:t}){const n=(0,i.FN)(),o=(0,r.Z)(e,n.proxy.$q),s=(0,i.Fl)((()=>"q-card"+(!0===o.value?" q-card--dark q-dark":"")+(!0===e.bordered?" q-card--bordered":"")+(!0===e.square?" q-card--square no-border-radius":"")+(!0===e.flat?" q-card--flat no-shadow":"")));return()=>(0,i.h)(e.tag,{class:s.value},(0,a.KR)(t.default))}})},9367:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(3673),r=n(9992),o=n(908),a=n(7657);const s=(0,o.L)({name:"QCardActions",props:{...r.jO,vertical:Boolean},setup(e,{slots:t}){const n=(0,r.ZP)(e),o=(0,i.Fl)((()=>`q-card__actions ${n.value} q-card__actions--`+(!0===e.vertical?"vert column":"horiz row")));return()=>(0,i.h)("div",{class:o.value},(0,a.KR)(t.default))}})},5589:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(3673),r=n(908),o=n(7657);const a=(0,r.L)({name:"QCardSection",props:{tag:{type:String,default:"div"},horizontal:Boolean},setup(e,{slots:t}){const n=(0,i.Fl)((()=>"q-card__section q-card__section--"+(!0===e.horizontal?"horiz row no-wrap":"vert")));return()=>(0,i.h)(e.tag,{class:n.value},(0,o.KR)(t.default))}})},7030:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var i=n(3673),r=n(4554),o=n(6489),a=n(2236),s=n(2417),l=n(908),u=n(4716),c=n(7657);const h={xs:8,sm:10,md:14,lg:20,xl:24},d=(0,l.L)({name:"QChip",props:{...a.S,...s.LU,dense:Boolean,icon:String,iconRight:String,iconRemove:String,iconSelected:String,label:[String,Number],color:String,textColor:String,modelValue:{type:Boolean,default:!0},selected:{type:Boolean,default:null},square:Boolean,outline:Boolean,clickable:Boolean,removable:Boolean,tabindex:[String,Number],disable:Boolean,ripple:{type:[Boolean,Object],default:!0}},emits:["update:modelValue","update:selected","remove","click"],setup(e,{slots:t,emit:n}){const{proxy:{$q:l}}=(0,i.FN)(),d=(0,a.Z)(e,l),p=(0,s.ZP)(e,h),f=(0,i.Fl)((()=>!0===e.selected||void 0!==e.icon)),g=(0,i.Fl)((()=>!0===e.selected?e.iconSelected||l.iconSet.chip.selected:e.icon)),v=(0,i.Fl)((()=>e.iconRemove||l.iconSet.chip.remove)),y=(0,i.Fl)((()=>!1===e.disable&&(!0===e.clickable||null!==e.selected))),m=(0,i.Fl)((()=>{const t=!0===e.outline&&e.color||e.textColor;return"q-chip row inline no-wrap items-center"+(!1===e.outline&&void 0!==e.color?` bg-${e.color}`:"")+(t?` text-${t} q-chip--colored`:"")+(!0===e.disable?" disabled":"")+(!0===e.dense?" q-chip--dense":"")+(!0===e.outline?" q-chip--outline":"")+(!0===e.selected?" q-chip--selected":"")+(!0===y.value?" q-chip--clickable cursor-pointer non-selectable q-hoverable":"")+(!0===e.square?" q-chip--square":"")+(!0===d.value?" q-chip--dark q-dark":"")})),x=(0,i.Fl)((()=>!0===e.disable?{tabindex:-1,"aria-disabled":"true"}:{tabindex:e.tabindex||0}));function _(e){13===e.keyCode&&b(e)}function b(t){e.disable||(n("update:selected",!e.selected),n("click",t))}function w(t){void 0!==t.keyCode&&13!==t.keyCode||((0,u.NS)(t),!1===e.disable&&(n("update:modelValue",!1),n("remove")))}function S(){const n=[];!0===y.value&&n.push((0,i.h)("div",{class:"q-focus-helper"})),!0===f.value&&n.push((0,i.h)(r.Z,{class:"q-chip__icon q-chip__icon--left",name:g.value}));const o=void 0!==e.label?[(0,i.h)("div",{class:"ellipsis"},[e.label])]:void 0;return n.push((0,i.h)("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},(0,c.pf)(t.default,o))),e.iconRight&&n.push((0,i.h)(r.Z,{class:"q-chip__icon q-chip__icon--right",name:e.iconRight})),!0===e.removable&&n.push((0,i.h)(r.Z,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:v.value,...x.value,onClick:w,onKeyup:w})),n}return()=>{if(!1===e.modelValue)return;const t={class:m.value,style:p.value};return!0===y.value&&Object.assign(t,x.value,{onClick:b,onKeyup:_}),(0,c.Jl)("div",t,S(),"ripple",!1!==e.ripple&&!0!==e.disable,(()=>[[o.Z,e.ripple]]))}}})},6778:(e,t,n)=>{"use strict";n.d(t,{Z:()=>w});n(3610),n(71);var i=n(3673),r=n(1959),o=n(8880),a=n(69),s=n(4955),l=n(416),u=n(3628),c=n(6104),h=n(5911),d=n(405),p=n(908),f=n(2012),g=n(7657),v=n(4704),y=n(8517),m=n(230);let x=0;const _={standard:"fixed-full flex-center",top:"fixed-top justify-center",bottom:"fixed-bottom justify-center",right:"fixed-right items-center",left:"fixed-left items-center"},b={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},w=(0,p.L)({name:"QDialog",inheritAttrs:!1,props:{...u.vr,...c.D,transitionShow:String,transitionHide:String,persistent:Boolean,autoClose:Boolean,allowFocusOutside:Boolean,noEscDismiss:Boolean,noBackdropDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,noShake:Boolean,seamless:Boolean,maximized:Boolean,fullWidth:Boolean,fullHeight:Boolean,square:Boolean,position:{type:String,default:"standard",validator:e=>"standard"===e||["top","bottom","left","right"].includes(e)}},emits:[...u.gH,"shake","click","escape-key"],setup(e,{slots:t,emit:n,attrs:c}){const p=(0,i.FN)(),w=(0,r.iH)(null),S=(0,r.iH)(!1),M=(0,r.iH)(!1),C=(0,r.iH)(!1);let I,T,k,A=null;const D=(0,i.Fl)((()=>!0!==e.persistent&&!0!==e.noRouteDismiss&&!0!==e.seamless)),{preventBodyScroll:L}=(0,d.Z)(),{registerTimeout:P,removeTimeout:O}=(0,s.Z)(),{registerTick:R,removeTick:E}=(0,l.Z)(),{showPortal:N,hidePortal:B,portalIsAccessible:F,renderPortal:z}=(0,h.Z)(p,w,se,!0),{hide:V}=(0,u.ZP)({showing:S,hideOnRouteChange:D,handleShow:K,handleHide:J,processOnMount:!0}),{addToHistory:H,removeFromHistory:q}=(0,a.Z)(S,V,D),G=(0,i.Fl)((()=>"q-dialog__inner flex no-pointer-events q-dialog__inner--"+(!0===e.maximized?"maximized":"minimized")+` q-dialog__inner--${e.position} ${_[e.position]}`+(!0===C.value?" q-dialog__inner--animating":"")+(!0===e.fullWidth?" q-dialog__inner--fullwidth":"")+(!0===e.fullHeight?" q-dialog__inner--fullheight":"")+(!0===e.square?" q-dialog__inner--square":""))),W=(0,i.Fl)((()=>"q-transition--"+(void 0===e.transitionShow?b[e.position][0]:e.transitionShow))),U=(0,i.Fl)((()=>"q-transition--"+(void 0===e.transitionHide?b[e.position][1]:e.transitionHide))),j=(0,i.Fl)((()=>!0===M.value?U.value:W.value)),Z=(0,i.Fl)((()=>`--q-transition-duration: ${e.transitionDuration}ms`)),Y=(0,i.Fl)((()=>!0===S.value&&!0!==e.seamless)),$=(0,i.Fl)((()=>!0===e.autoClose?{onClick:re}:{})),X=(0,i.Fl)((()=>["q-dialog fullscreen no-pointer-events q-dialog--"+(!0===Y.value?"modal":"seamless"),c.class]));function K(t){O(),E(),H(),A=!1===e.noRefocus&&null!==document.activeElement?document.activeElement:null,ie(e.maximized),N(),C.value=!0,!0!==e.noFocus&&(null!==document.activeElement&&document.activeElement.blur(),R(Q)),P((()=>{if(!0===p.proxy.$q.platform.is.ios){if(!0!==e.seamless&&document.activeElement){const{top:e,bottom:t}=document.activeElement.getBoundingClientRect(),{innerHeight:n}=window,i=void 0!==window.visualViewport?window.visualViewport.height:n;e>0&&t>i/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-i,t>=n?1/0:Math.ceil(document.scrollingElement.scrollTop+t-i/2))),document.activeElement.scrollIntoView()}k=!0,w.value.click(),k=!1}N(!0),C.value=!1,n("show",t)}),e.transitionDuration)}function J(t){O(),E(),q(),ne(!0),C.value=!0,B(),null!==A&&(A.focus(),A=null),P((()=>{B(!0),C.value=!1,n("hide",t)}),e.transitionDuration)}function Q(e){(0,m.jd)((()=>{let t=w.value;null!==t&&!0!==t.contains(document.activeElement)&&(t=t.querySelector(e||"[autofocus], [data-autofocus]")||t,t.focus({preventScroll:!0}))}))}function ee(){Q(),n("shake");const e=w.value;null!==e&&(e.classList.remove("q-animate--scale"),e.classList.add("q-animate--scale"),clearTimeout(I),I=setTimeout((()=>{null!==w.value&&(e.classList.remove("q-animate--scale"),Q())}),170))}function te(){!0!==e.seamless&&(!0===e.persistent||!0===e.noEscDismiss?!0!==e.maximized&&!0!==e.noShake&&ee():(n("escape-key"),V()))}function ne(t){clearTimeout(I),!0!==t&&!0!==S.value||(ie(!1),!0!==e.seamless&&(L(!1),(0,y.H)(ae),(0,v.k)(te))),!0!==t&&(A=null)}function ie(e){!0===e?!0!==T&&(x<1&&document.body.classList.add("q-body--dialog"),x++,T=!0):!0===T&&(x<2&&document.body.classList.remove("q-body--dialog"),x--,T=!1)}function re(e){!0!==k&&(V(e),n("click",e))}function oe(t){!0!==e.persistent&&!0!==e.noBackdropDismiss?V(t):!0!==e.noShake&&ee()}function ae(t){!0!==e.allowFocusOutside&&!0===F.value&&!0!==(0,f.mY)(w.value,t.target)&&Q('[tabindex]:not([tabindex="-1"])')}function se(){return(0,i.h)("div",{...c,class:X.value},[(0,i.h)(o.uT,{name:"q-transition--fade",appear:!0},(()=>!0===Y.value?(0,i.h)("div",{class:"q-dialog__backdrop fixed-full",style:Z.value,"aria-hidden":"true",onMousedown:oe}):null)),(0,i.h)(o.uT,{name:j.value,appear:!0},(()=>!0===S.value?(0,i.h)("div",{ref:w,class:G.value,style:Z.value,tabindex:-1,...$.value},(0,g.KR)(t.default)):null))])}return(0,i.YP)(S,(e=>{(0,i.Y3)((()=>{M.value=e}))})),(0,i.YP)((()=>e.maximized),(e=>{!0===S.value&&ie(e)})),(0,i.YP)(Y,(e=>{L(e),!0===e?((0,y.i)(ae),(0,v.c)(te)):((0,y.H)(ae),(0,v.k)(te))})),Object.assign(p.proxy,{focus:Q,shake:ee,__updateRefocusTarget(e){A=e||null}}),(0,i.Jd)(ne),z}})},2428:(e,t,n)=>{"use strict";n.d(t,{Z:()=>C});n(3610),n(71);var i=n(3673),r=n(1959),o=n(69),a=n(3628),s=n(405),l=n(4955),u=n(2236),c=n(4688),h=n(908);const d={left:!0,right:!0,up:!0,down:!0,horizontal:!0,vertical:!0},p=Object.keys(d);function f(e){const t={};for(const n of p)!0===e[n]&&(t[n]=!0);return 0===Object.keys(t).length?d:(!0===t.horizontal?t.left=t.right=!0:!0===t.left&&!0===t.right&&(t.horizontal=!0),!0===t.vertical?t.up=t.down=!0:!0===t.up&&!0===t.down&&(t.vertical=!0),!0===t.horizontal&&!0===t.vertical&&(t.all=!0),t)}function g(e,t){return void 0===t.event&&void 0!==e.target&&!0!==e.target.draggable&&"function"===typeof t.handler&&"INPUT"!==e.target.nodeName.toUpperCase()&&(void 0===e.qClonedBy||-1===e.qClonedBy.indexOf(t.uid))}d.all=!0;var v=n(4716),y=n(9725);function m(e,t,n){const i=(0,v.FK)(e);let r,o=i.left-t.event.x,a=i.top-t.event.y,s=Math.abs(o),l=Math.abs(a);const u=t.direction;!0===u.horizontal&&!0!==u.vertical?r=o<0?"left":"right":!0!==u.horizontal&&!0===u.vertical?r=a<0?"up":"down":!0===u.up&&a<0?(r="up",s>l&&(!0===u.left&&o<0?r="left":!0===u.right&&o>0&&(r="right"))):!0===u.down&&a>0?(r="down",s>l&&(!0===u.left&&o<0?r="left":!0===u.right&&o>0&&(r="right"))):!0===u.left&&o<0?(r="left",s0&&(r="down"))):!0===u.right&&o>0&&(r="right",s0&&(r="down")));let c=!1;if(void 0===r&&!1===n){if(!0===t.event.isFirst||void 0===t.event.lastDir)return{};r=t.event.lastDir,c=!0,"left"===r||"right"===r?(i.left-=o,s=0,o=0):(i.top-=a,l=0,a=0)}return{synthetic:c,payload:{evt:e,touch:!0!==t.event.mouse,mouse:!0===t.event.mouse,position:i,direction:r,isFirst:t.event.isFirst,isFinal:!0===n,duration:Date.now()-t.event.time,distance:{x:s,y:l},offset:{x:o,y:a},delta:{x:i.left-t.event.lastX,y:i.top-t.event.lastY}}}}let x=0;const _=(0,h.f)({name:"touch-pan",beforeMount(e,{value:t,modifiers:n}){if(!0!==n.mouse&&!0!==c.Lp.has.touch)return;function i(e,t){!0===n.mouse&&!0===t?(0,v.NS)(e):(!0===n.stop&&(0,v.sT)(e),!0===n.prevent&&(0,v.X$)(e))}const r={uid:"qvtp_"+x++,handler:t,modifiers:n,direction:f(n),noop:v.ZT,mouseStart(e){g(e,r)&&(0,v.du)(e)&&((0,v.M0)(r,"temp",[[document,"mousemove","move","notPassiveCapture"],[document,"mouseup","end","passiveCapture"]]),r.start(e,!0))},touchStart(e){if(g(e,r)){const t=e.target;(0,v.M0)(r,"temp",[[t,"touchmove","move","notPassiveCapture"],[t,"touchcancel","end","passiveCapture"],[t,"touchend","end","passiveCapture"]]),r.start(e)}},start(t,i){if(!0===c.Lp.is.firefox&&(0,v.Jf)(e,!0),r.lastEvt=t,!0===i||!0===n.stop){if(!0!==r.direction.all&&(!0!==i||!0!==r.modifiers.mouseAllDir)){const e=t.type.indexOf("mouse")>-1?new MouseEvent(t.type,t):new TouchEvent(t.type,t);!0===t.defaultPrevented&&(0,v.X$)(e),!0===t.cancelBubble&&(0,v.sT)(e),Object.assign(e,{qKeyEvent:t.qKeyEvent,qClickOutside:t.qClickOutside,qAnchorHandled:t.qAnchorHandled,qClonedBy:void 0===t.qClonedBy?[r.uid]:t.qClonedBy.concat(r.uid)}),r.initialEvent={target:t.target,event:e}}(0,v.sT)(t)}const{left:o,top:a}=(0,v.FK)(t);r.event={x:o,y:a,time:Date.now(),mouse:!0===i,detected:!1,isFirst:!0,isFinal:!1,lastX:o,lastY:a}},move(e){if(void 0===r.event)return;const t=(0,v.FK)(e),o=t.left-r.event.x,a=t.top-r.event.y;if(0===o&&0===a)return;r.lastEvt=e;const s=!0===r.event.mouse,l=()=>{i(e,s),!0!==n.preserveCursor&&(document.documentElement.style.cursor="grabbing"),!0===s&&document.body.classList.add("no-pointer-events--children"),document.body.classList.add("non-selectable"),(0,y.M)(),r.styleCleanup=e=>{if(r.styleCleanup=void 0,!0!==n.preserveCursor&&(document.documentElement.style.cursor=""),document.body.classList.remove("non-selectable"),!0===s){const t=()=>{document.body.classList.remove("no-pointer-events--children")};void 0!==e?setTimeout((()=>{t(),e()}),50):t()}else void 0!==e&&e()}};if(!0===r.event.detected){!0!==r.event.isFirst&&i(e,r.event.mouse);const{payload:t,synthetic:n}=m(e,r,!1);return void(void 0!==t&&(!1===r.handler(t)?r.end(e):(void 0===r.styleCleanup&&!0===r.event.isFirst&&l(),r.event.lastX=t.position.left,r.event.lastY=t.position.top,r.event.lastDir=!0===n?void 0:t.direction,r.event.isFirst=!1)))}if(!0===r.direction.all||!0===s&&!0===r.modifiers.mouseAllDir)return l(),r.event.detected=!0,void r.move(e);const u=Math.abs(o),c=Math.abs(a);u!==c&&(!0===r.direction.horizontal&&u>c||!0===r.direction.vertical&&u0||!0===r.direction.left&&u>c&&o<0||!0===r.direction.right&&u>c&&o>0?(r.event.detected=!0,r.move(e)):r.end(e,!0))},end(t,n){if(void 0!==r.event){if((0,v.ul)(r,"temp"),!0===c.Lp.is.firefox&&(0,v.Jf)(e,!1),!0===n)void 0!==r.styleCleanup&&r.styleCleanup(),!0!==r.event.detected&&void 0!==r.initialEvent&&r.initialEvent.target.dispatchEvent(r.initialEvent.event);else if(!0===r.event.detected){!0===r.event.isFirst&&r.handler(m(void 0===t?r.lastEvt:t,r).payload);const{payload:e}=m(void 0===t?r.lastEvt:t,r,!0),n=()=>{r.handler(e)};void 0!==r.styleCleanup?r.styleCleanup(n):n()}r.event=void 0,r.initialEvent=void 0,r.lastEvt=void 0}}};e.__qtouchpan=r,!0===n.mouse&&(0,v.M0)(r,"main",[[e,"mousedown","mouseStart","passive"+(!0===n.mouseCapture?"Capture":"")]]),!0===c.Lp.has.touch&&(0,v.M0)(r,"main",[[e,"touchstart","touchStart","passive"+(!0===n.capture?"Capture":"")],[e,"touchmove","noop","notPassiveCapture"]])},updated(e,t){const n=e.__qtouchpan;void 0!==n&&(t.oldValue!==t.value&&("function"!==typeof value&&n.end(),n.handler=t.value),n.direction=f(t.modifiers))},beforeUnmount(e){const t=e.__qtouchpan;void 0!==t&&(void 0!==t.event&&t.end(),(0,v.ul)(t,"main"),(0,v.ul)(t,"temp"),!0===c.Lp.is.firefox&&(0,v.Jf)(e,!1),void 0!==t.styleCleanup&&t.styleCleanup(),delete e.__qtouchpan)}});var b=n(2130),w=n(7657),S=n(2547);const M=150,C=(0,h.L)({name:"QDrawer",inheritAttrs:!1,props:{...a.vr,...u.S,side:{type:String,default:"left",validator:e=>["left","right"].includes(e)},width:{type:Number,default:300},mini:Boolean,miniToOverlay:Boolean,miniWidth:{type:Number,default:57},breakpoint:{type:Number,default:1023},showIfAbove:Boolean,behavior:{type:String,validator:e=>["default","desktop","mobile"].includes(e),default:"default"},bordered:Boolean,elevated:Boolean,overlay:Boolean,persistent:Boolean,noSwipeOpen:Boolean,noSwipeClose:Boolean,noSwipeBackdrop:Boolean},emits:[...a.gH,"on-layout","mini-state"],setup(e,{slots:t,emit:n,attrs:c}){const h=(0,i.FN)(),{proxy:{$q:d}}=h,p=(0,u.Z)(e,d),{preventBodyScroll:f}=(0,s.Z)(),{registerTimeout:g}=(0,l.Z)(),v=(0,i.f3)(S.YE,(()=>{console.error("QDrawer needs to be child of QLayout")}));let y,m,x;const C=(0,r.iH)("mobile"===e.behavior||"desktop"!==e.behavior&&v.totalWidth.value<=e.breakpoint),I=(0,i.Fl)((()=>!0===e.mini&&!0!==C.value)),T=(0,i.Fl)((()=>!0===I.value?e.miniWidth:e.width)),k=(0,r.iH)(!0===e.showIfAbove&&!1===C.value||!0===e.modelValue),A=(0,i.Fl)((()=>!0!==e.persistent&&(!0===C.value||!0===Z.value)));function D(e,t){if(R(),!1!==e&&v.animate(),ae(0),!0===C.value){const e=v.instances[G.value];void 0!==e&&!0===e.belowBreakpoint&&e.hide(!1),se(1),!0!==v.isContainer.value&&f(!0)}else se(0),!1!==e&&le(!1);g((()=>{!1!==e&&le(!0),!0!==t&&n("show",e)}),M)}function L(e,t){E(),!1!==e&&v.animate(),se(0),ae(F.value*T.value),de(),!0!==t&&g((()=>{n("hide",e)}),M)}const{show:P,hide:O}=(0,a.ZP)({showing:k,hideOnRouteChange:A,handleShow:D,handleHide:L}),{addToHistory:R,removeFromHistory:E}=(0,o.Z)(k,O,A),N={belowBreakpoint:C,hide:O},B=(0,i.Fl)((()=>"right"===e.side)),F=(0,i.Fl)((()=>(!0===d.lang.rtl?-1:1)*(!0===B.value?1:-1))),z=(0,r.iH)(0),V=(0,r.iH)(!1),H=(0,r.iH)(!1),q=(0,r.iH)(T.value*F.value),G=(0,i.Fl)((()=>!0===B.value?"left":"right")),W=(0,i.Fl)((()=>!0===k.value&&!1===C.value&&!1===e.overlay?!0===e.miniToOverlay?e.miniWidth:T.value:0)),U=(0,i.Fl)((()=>!0===e.overlay||!0===e.miniToOverlay||v.view.value.indexOf(B.value?"R":"L")>-1||!0===d.platform.is.ios&&!0===v.isContainer.value)),j=(0,i.Fl)((()=>!1===e.overlay&&!0===k.value&&!1===C.value)),Z=(0,i.Fl)((()=>!0===e.overlay&&!0===k.value&&!1===C.value)),Y=(0,i.Fl)((()=>"fullscreen q-drawer__backdrop"+(!1===k.value&&!1===V.value?" hidden":""))),$=(0,i.Fl)((()=>({backgroundColor:`rgba(0,0,0,${.4*z.value})`}))),X=(0,i.Fl)((()=>!0===B.value?"r"===v.rows.value.top[2]:"l"===v.rows.value.top[0])),K=(0,i.Fl)((()=>!0===B.value?"r"===v.rows.value.bottom[2]:"l"===v.rows.value.bottom[0])),J=(0,i.Fl)((()=>{const e={};return!0===v.header.space&&!1===X.value&&(!0===U.value?e.top=`${v.header.offset}px`:!0===v.header.space&&(e.top=`${v.header.size}px`)),!0===v.footer.space&&!1===K.value&&(!0===U.value?e.bottom=`${v.footer.offset}px`:!0===v.footer.space&&(e.bottom=`${v.footer.size}px`)),e})),Q=(0,i.Fl)((()=>{const e={width:`${T.value}px`,transform:`translateX(${q.value}px)`};return!0===C.value?e:Object.assign(e,J.value)})),ee=(0,i.Fl)((()=>"q-drawer__content fit "+(!0!==v.isContainer.value?"scroll":"overflow-auto"))),te=(0,i.Fl)((()=>`q-drawer q-drawer--${e.side}`+(!0===H.value?" q-drawer--mini-animate":"")+(!0===e.bordered?" q-drawer--bordered":"")+(!0===p.value?" q-drawer--dark q-dark":"")+(!0===V.value?" no-transition":!0===k.value?"":" q-layout--prevent-focus")+(!0===C.value?" fixed q-drawer--on-top q-drawer--mobile q-drawer--top-padding":" q-drawer--"+(!0===I.value?"mini":"standard")+(!0===U.value||!0!==j.value?" fixed":"")+(!0===e.overlay||!0===e.miniToOverlay?" q-drawer--on-top":"")+(!0===X.value?" q-drawer--top-padding":"")))),ne=(0,i.Fl)((()=>{const t=!0===d.lang.rtl?e.side:G.value;return[[_,ce,void 0,{[t]:!0,mouse:!0}]]})),ie=(0,i.Fl)((()=>{const t=!0===d.lang.rtl?G.value:e.side;return[[_,he,void 0,{[t]:!0,mouse:!0}]]})),re=(0,i.Fl)((()=>{const t=!0===d.lang.rtl?G.value:e.side;return[[_,he,void 0,{[t]:!0,mouse:!0,mouseAllDir:!0}]]}));function oe(){fe(C,"mobile"===e.behavior||"desktop"!==e.behavior&&v.totalWidth.value<=e.breakpoint)}function ae(e){void 0===e?(0,i.Y3)((()=>{e=!0===k.value?0:T.value,ae(F.value*e)})):(!0!==v.isContainer.value||!0!==B.value||!0!==C.value&&Math.abs(e)!==T.value||(e+=F.value*v.scrollbarWidth.value),q.value=e)}function se(e){z.value=e}function le(e){const t=!0===e?"remove":!0!==v.isContainer.value?"add":"";""!==t&&document.body.classList[t]("q-body--drawer-toggle")}function ue(){clearTimeout(m),h.proxy&&h.proxy.$el&&h.proxy.$el.classList.add("q-drawer--mini-animate"),H.value=!0,m=setTimeout((()=>{H.value=!1,h&&h.proxy&&h.proxy.$el&&h.proxy.$el.classList.remove("q-drawer--mini-animate")}),150)}function ce(e){if(!1!==k.value)return;const t=T.value,n=(0,b.vX)(e.distance.x,0,t);if(!0===e.isFinal){const e=n>=Math.min(75,t);return!0===e?P():(v.animate(),se(0),ae(F.value*t)),void(V.value=!1)}ae((!0===d.lang.rtl?!0!==B.value:B.value)?Math.max(t-n,0):Math.min(0,n-t)),se((0,b.vX)(n/t,0,1)),!0===e.isFirst&&(V.value=!0)}function he(t){if(!0!==k.value)return;const n=T.value,i=t.direction===e.side,r=(!0===d.lang.rtl?!0!==i:i)?(0,b.vX)(t.distance.x,0,n):0;if(!0===t.isFinal){const e=Math.abs(r){!0===t?(y=k.value,!0===k.value&&O(!1)):!1===e.overlay&&"mobile"!==e.behavior&&!1!==y&&(!0===k.value?(ae(0),se(0),de()):P(!1))})),(0,i.YP)((()=>e.side),((e,t)=>{v.instances[t]===N&&(v.instances[t]=void 0,v[t].space=!1,v[t].offset=0),v.instances[e]=N,v[e].size=T.value,v[e].space=j.value,v[e].offset=W.value})),(0,i.YP)(v.totalWidth,(()=>{!0!==v.isContainer.value&&!0===document.qScrollPrevented||oe()})),(0,i.YP)((()=>e.behavior+e.breakpoint),oe),(0,i.YP)(v.isContainer,(e=>{!0===k.value&&f(!0!==e),!0===e&&oe()})),(0,i.YP)(v.scrollbarWidth,(()=>{ae(!0===k.value?0:void 0)})),(0,i.YP)(W,(e=>{pe("offset",e)})),(0,i.YP)(j,(e=>{n("on-layout",e),pe("space",e)})),(0,i.YP)(B,(()=>{ae()})),(0,i.YP)(T,(t=>{ae(),ge(e.miniToOverlay,t)})),(0,i.YP)((()=>e.miniToOverlay),(e=>{ge(e,T.value)})),(0,i.YP)((()=>d.lang.rtl),(()=>{ae()})),(0,i.YP)((()=>e.mini),(()=>{!0===e.modelValue&&(ue(),v.animate())})),(0,i.YP)(I,(e=>{n("mini-state",e)})),v.instances[e.side]=N,ge(e.miniToOverlay,T.value),pe("space",j.value),pe("offset",W.value),!0===e.showIfAbove&&!0!==e.modelValue&&!0===k.value&&void 0!==e["onUpdate:modelValue"]&&n("update:modelValue",!0),(0,i.bv)((()=>{n("on-layout",j.value),n("mini-state",I.value),y=!0===e.showIfAbove;const t=()=>{const e=!0===k.value?D:L;e(!1,!0)};0===v.totalWidth.value?x=(0,i.YP)(v.totalWidth,(()=>{x(),x=void 0,!1===k.value&&!0===e.showIfAbove&&!1===C.value?P(!1):t()})):(0,i.Y3)(t)})),(0,i.Jd)((()=>{void 0!==x&&x(),clearTimeout(m),!0===k.value&&de(),v.instances[e.side]===N&&(v.instances[e.side]=void 0,pe("size",0),pe("offset",0),pe("space",!1))})),()=>{const n=[];!0===C.value&&(!1===e.noSwipeOpen&&n.push((0,i.wy)((0,i.h)("div",{key:"open",class:`q-drawer__opener fixed-${e.side}`,"aria-hidden":"true"}),ne.value)),n.push((0,w.Jl)("div",{ref:"backdrop",class:Y.value,style:$.value,"aria-hidden":"true",onClick:O},void 0,"backdrop",!0!==e.noSwipeBackdrop&&!0===k.value,(()=>re.value))));const r=!0===I.value&&void 0!==t.mini,o=[(0,i.h)("div",{...c,key:""+r,class:[ee.value,c.class]},!0===r?t.mini():(0,w.KR)(t.default))];return!0===e.elevated&&!0===k.value&&o.push((0,i.h)("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),n.push((0,w.Jl)("aside",{ref:"content",class:te.value,style:Q.value},o,"contentclose",!0!==e.noSwipeClose&&!0===C.value,(()=>ie.value))),(0,i.h)("div",{class:"q-drawer-container"},n)}}})},3812:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var i=n(3673),r=n(1959),o=n(5151),a=n(908),s=n(7657),l=n(2547);const u=(0,a.L)({name:"QHeader",props:{modelValue:{type:Boolean,default:!0},reveal:Boolean,revealOffset:{type:Number,default:250},bordered:Boolean,elevated:Boolean,heightHint:{type:[String,Number],default:50}},emits:["reveal","focusin"],setup(e,{slots:t,emit:n}){const{proxy:{$q:a}}=(0,i.FN)(),u=(0,i.f3)(l.YE,(()=>{console.error("QHeader needs to be child of QLayout")})),c=(0,r.iH)(parseInt(e.heightHint,10)),h=(0,r.iH)(!0),d=(0,i.Fl)((()=>!0===e.reveal||u.view.value.indexOf("H")>-1||a.platform.is.ios&&!0===u.isContainer.value)),p=(0,i.Fl)((()=>{if(!0!==e.modelValue)return 0;if(!0===d.value)return!0===h.value?c.value:0;const t=c.value-u.scroll.value.position;return t>0?t:0})),f=(0,i.Fl)((()=>!0!==e.modelValue||!0===d.value&&!0!==h.value)),g=(0,i.Fl)((()=>!0===e.modelValue&&!0===f.value&&!0===e.reveal)),v=(0,i.Fl)((()=>"q-header q-layout__section--marginal "+(!0===d.value?"fixed":"absolute")+"-top"+(!0===e.bordered?" q-header--bordered":"")+(!0===f.value?" q-header--hidden":"")+(!0!==e.modelValue?" q-layout--prevent-focus":""))),y=(0,i.Fl)((()=>{const e=u.rows.value.top,t={};return"l"===e[0]&&!0===u.left.space&&(t[!0===a.lang.rtl?"right":"left"]=`${u.left.size}px`),"r"===e[2]&&!0===u.right.space&&(t[!0===a.lang.rtl?"left":"right"]=`${u.right.size}px`),t}));function m(e,t){u.update("header",e,t)}function x(e,t){e.value!==t&&(e.value=t)}function _({height:e}){x(c,e),m("size",e)}function b(e){!0===g.value&&x(h,!0),n("focusin",e)}(0,i.YP)((()=>e.modelValue),(e=>{m("space",e),x(h,!0),u.animate()})),(0,i.YP)(p,(e=>{m("offset",e)})),(0,i.YP)((()=>e.reveal),(t=>{!1===t&&x(h,e.modelValue)})),(0,i.YP)(h,(e=>{u.animate(),n("reveal",e)})),(0,i.YP)(u.scroll,(t=>{!0===e.reveal&&x(h,"up"===t.direction||t.position<=e.revealOffset||t.position-t.inflectionPoint<100)}));const w={};return u.instances.header=w,!0===e.modelValue&&m("size",c.value),m("space",e.modelValue),m("offset",p.value),(0,i.Jd)((()=>{u.instances.header===w&&(u.instances.header=void 0,m("size",0),m("offset",0),m("space",!1))})),()=>{const n=(0,s.Bl)(t.default,[]);return!0===e.elevated&&n.push((0,i.h)("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),n.push((0,i.h)(o.Z,{debounce:0,onResize:_})),(0,i.h)("header",{class:v.value,style:y.value,onFocusin:b},n)}}})},4554:(e,t,n)=>{"use strict";n.d(t,{Z:()=>b});n(71);var i=n(3673),r=n(2417),o=n(908),a=n(7657);const s="0 0 24 24",l=e=>e,u=e=>`ionicons ${e}`,c={"mdi-":e=>`mdi ${e}`,"icon-":l,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":u,"ion-ios":u,"ion-logo":u,"iconfont ":l,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`},h={o_:"-outlined",r_:"-round",s_:"-sharp"},d={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},p=new RegExp("^("+Object.keys(c).join("|")+")"),f=new RegExp("^("+Object.keys(h).join("|")+")"),g=new RegExp("^("+Object.keys(d).join("|")+")"),v=/^[Mm]\s?[-+]?\.?\d/,y=/^img:/,m=/^svguse:/,x=/^ion-/,_=/^(fa-(solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,b=(0,o.L)({name:"QIcon",props:{...r.LU,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(e,{slots:t}){const{proxy:{$q:n}}=(0,i.FN)(),o=(0,r.ZP)(e),l=(0,i.Fl)((()=>"q-icon"+(!0===e.left?" on-left":"")+(!0===e.right?" on-right":"")+(void 0!==e.color?` text-${e.color}`:""))),u=(0,i.Fl)((()=>{let t,r=e.name;if("none"===r||!r)return{none:!0};if(null!==n.iconMapFn){const e=n.iconMapFn(r);if(void 0!==e){if(void 0===e.icon)return{cls:e.cls,content:void 0!==e.content?e.content:" "};if(r=e.icon,"none"===r||!r)return{none:!0}}}if(!0===v.test(r)){const[e,t=s]=r.split("|");return{svg:!0,viewBox:t,nodes:e.split("&&").map((e=>{const[t,n,r]=e.split("@@");return(0,i.h)("path",{style:n,d:t,transform:r})}))}}if(!0===y.test(r))return{img:!0,src:r.substring(4)};if(!0===m.test(r)){const[e,t=s]=r.split("|");return{svguse:!0,src:e.substring(7),viewBox:t}}let o=" ";const a=r.match(p);if(null!==a)t=c[a[1]](r);else if(!0===_.test(r))t=r;else if(!0===x.test(r))t=`ionicons ion-${!0===n.platform.is.ios?"ios":"md"}${r.substring(3)}`;else if(!0===g.test(r)){t="notranslate material-symbols";const e=r.match(g);null!==e&&(r=r.substring(6),t+=d[e[1]]),o=r}else{t="notranslate material-icons";const e=r.match(f);null!==e&&(r=r.substring(2),t+=h[e[1]]),o=r}return{cls:t,content:o}}));return()=>{const n={class:l.value,style:o.value,"aria-hidden":"true",role:"presentation"};return!0===u.value.none?(0,i.h)(e.tag,n,(0,a.KR)(t.default)):!0===u.value.img?(0,i.h)("span",n,(0,a.vs)(t.default,[(0,i.h)("img",{src:u.value.src})])):!0===u.value.svg?(0,i.h)("span",n,(0,a.vs)(t.default,[(0,i.h)("svg",{viewBox:u.value.viewBox||"0 0 24 24"},u.value.nodes)])):!0===u.value.svguse?(0,i.h)("span",n,(0,a.vs)(t.default,[(0,i.h)("svg",{viewBox:u.value.viewBox},[(0,i.h)("use",{"xlink:href":u.value.src})])])):(void 0!==u.value.cls&&(n.class+=" "+u.value.cls),(0,i.h)(e.tag,n,(0,a.vs)(t.default,[u.value.content])))}}})},4842:(e,t,n)=>{"use strict";n.d(t,{Z:()=>b});n(71),n(3610);var i=n(1959),r=n(3673),o=n(2659),a=(n(5363),n(1436));const s={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},l={"#":{pattern:"[\\d]",negate:"[^\\d]"},S:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]"},N:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]"},A:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:e=>e.toLocaleUpperCase()},a:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:e=>e.toLocaleLowerCase()},X:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:e=>e.toLocaleUpperCase()},x:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:e=>e.toLocaleLowerCase()}},u=Object.keys(l);u.forEach((e=>{l[e].regex=new RegExp(l[e].pattern)}));const c=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+u.join("")+"])|(.)","g"),h=/[.*+?^${}()|[\]\\]/g,d=String.fromCharCode(1),p={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean};function f(e,t,n,o){let u,p,f,g;const v=(0,i.iH)(null),y=(0,i.iH)(x());function m(){return!0===e.autogrow||["textarea","text","search","url","tel","password"].includes(e.type)}function x(){if(b(),!0===v.value){const t=I(k(e.modelValue));return!1!==e.fillMask?A(t):t}return e.modelValue}function _(e){if(e-1){for(let i=e-n.length;i>0;i--)t+=d;n=n.slice(0,i)+t+n.slice(i)}return n}function b(){if(v.value=void 0!==e.mask&&e.mask.length>0&&m(),!1===v.value)return g=void 0,u="",void(p="");const t=void 0===s[e.mask]?e.mask:s[e.mask],n="string"===typeof e.fillMask&&e.fillMask.length>0?e.fillMask.slice(0,1):"_",i=n.replace(h,"\\$&"),r=[],o=[],a=[];let y=!0===e.reverseFillMask,x="",_="";t.replace(c,((e,t,n,i,s)=>{if(void 0!==i){const e=l[i];a.push(e),_=e.negate,!0===y&&(o.push("(?:"+_+"+)?("+e.pattern+"+)?(?:"+_+"+)?("+e.pattern+"+)?"),y=!1),o.push("(?:"+_+"+)?("+e.pattern+")?")}else if(void 0!==n)x="\\"+("\\"===n?"":n),a.push(n),r.push("([^"+x+"]+)?"+x+"?");else{const e=void 0!==t?t:s;x="\\"===e?"\\\\\\\\":e.replace(h,"\\\\$&"),a.push(e),r.push("([^"+x+"]+)?"+x+"?")}}));const b=new RegExp("^"+r.join("")+"("+(""===x?".":"[^"+x+"]")+"+)?$"),w=o.length-1,S=o.map(((t,n)=>0===n&&!0===e.reverseFillMask?new RegExp("^"+i+"*"+t):n===w?new RegExp("^"+t+"("+(""===_?".":_)+"+)?"+(!0===e.reverseFillMask?"$":i+"*")):new RegExp("^"+t)));f=a,g=e=>{const t=b.exec(e);null!==t&&(e=t.slice(1).join(""));const n=[],i=S.length;for(let r=0,o=e;r0?n.join(""):e},u=a.map((e=>"string"===typeof e?e:d)).join(""),p=u.split(d).join(n)}function w(t,i,a){const s=o.value,l=s.selectionEnd,c=s.value.length-l,h=k(t);!0===i&&b();const f=I(h),g=!1!==e.fillMask?A(f):f,v=y.value!==g;s.value!==g&&(s.value=g),!0===v&&(y.value=g),document.activeElement===s&&(0,r.Y3)((()=>{if(g!==p)if("insertFromPaste"!==a||!0===e.reverseFillMask)if(["deleteContentBackward","deleteContentForward"].indexOf(a)>-1){const t=!0===e.reverseFillMask?0===l?g.length>f.length?1:0:Math.max(0,g.length-(g===p?0:Math.min(f.length,c)+1))+1:l;s.setSelectionRange(t,t,"forward")}else if(!0===e.reverseFillMask)if(!0===v){const e=Math.max(0,g.length-(g===p?0:Math.min(f.length,c+1)));1===e&&1===l?s.setSelectionRange(e,e,"forward"):M.rightReverse(s,e,e)}else{const e=g.length-c;s.setSelectionRange(e,e,"backward")}else if(!0===v){const e=Math.max(0,u.indexOf(d),Math.min(f.length,l)-1);M.right(s,e,e)}else{const e=l-1;M.right(s,e,e)}else{const e=l-1;M.right(s,e,e)}else{const t=!0===e.reverseFillMask?p.length:0;s.setSelectionRange(t,t,"forward")}}));const m=!0===e.unmaskedValue?k(g):g;String(e.modelValue)!==m&&n(m,!0)}function S(e,t,n){const i=I(k(e.value));t=Math.max(0,u.indexOf(d),Math.min(i.length,t)),e.setSelectionRange(t,n,"forward")}(0,r.YP)((()=>e.type+e.autogrow),b),(0,r.YP)((()=>e.mask),(n=>{if(void 0!==n)w(y.value,!0);else{const n=k(y.value);b(),e.modelValue!==n&&t("update:modelValue",n)}})),(0,r.YP)((()=>e.fillMask+e.reverseFillMask),(()=>{!0===v.value&&w(y.value,!0)})),(0,r.YP)((()=>e.unmaskedValue),(()=>{!0===v.value&&w(y.value)}));const M={left(e,t,n,i){const r=-1===u.slice(t-1).indexOf(d);let o=Math.max(0,t-1);for(;o>=0;o--)if(u[o]===d){t=o,!0===r&&t++;break}if(o<0&&void 0!==u[t]&&u[t]!==d)return M.right(e,0,0);t>=0&&e.setSelectionRange(t,!0===i?n:t,"backward")},right(e,t,n,i){const r=e.value.length;let o=Math.min(r,n+1);for(;o<=r;o++){if(u[o]===d){n=o;break}u[o-1]===d&&(n=o)}if(o>r&&void 0!==u[n-1]&&u[n-1]!==d)return M.left(e,r,r);e.setSelectionRange(i?t:n,n,"forward")},leftReverse(e,t,n,i){const r=_(e.value.length);let o=Math.max(0,t-1);for(;o>=0;o--){if(r[o-1]===d){t=o;break}if(r[o]===d&&(t=o,0===o))break}if(o<0&&void 0!==r[t]&&r[t]!==d)return M.rightReverse(e,0,0);t>=0&&e.setSelectionRange(t,!0===i?n:t,"backward")},rightReverse(e,t,n,i){const r=e.value.length,o=_(r),a=-1===o.slice(0,n+1).indexOf(d);let s=Math.min(r,n+1);for(;s<=r;s++)if(o[s-1]===d){n=s,n>0&&!0===a&&n--;break}if(s>r&&void 0!==o[n-1]&&o[n-1]!==d)return M.leftReverse(e,r,r);e.setSelectionRange(!0===i?t:n,n,"forward")}};function C(t){if(!0===(0,a.Wm)(t))return;const n=o.value,i=n.selectionStart,r=n.selectionEnd;if(37===t.keyCode||39===t.keyCode){const o=M[(39===t.keyCode?"right":"left")+(!0===e.reverseFillMask?"Reverse":"")];t.preventDefault(),o(n,i,r,t.shiftKey)}else 8===t.keyCode&&!0!==e.reverseFillMask&&i===r?M.left(n,i,r,!0):46===t.keyCode&&!0===e.reverseFillMask&&i===r&&M.rightReverse(n,i,r,!0)}function I(t){if(void 0===t||null===t||""===t)return"";if(!0===e.reverseFillMask)return T(t);const n=f;let i=0,r="";for(let e=0;e=0&&i>-1;o--){const a=t[o];let s=e[i];if("string"===typeof a)r=a+r,s===a&&i--;else{if(void 0===s||!a.regex.test(s))return r;do{r=(void 0!==a.transform?a.transform(s):s)+r,i--,s=e[i]}while(n===o&&void 0!==s&&a.regex.test(s))}}return r}function k(e){return"string"!==typeof e||void 0===g?"number"===typeof e?g(""+e):e:g(e)}function A(t){return p.length-t.length<=0?t:!0===e.reverseFillMask&&t.length>0?p.slice(0,-t.length)+t:t+p.slice(t.length)}return{innerValue:y,hasMask:v,moveCursorForPaste:S,updateMaskValue:w,onMaskedKeydown:C}}var g=n(9550);function v(e,t){function n(){const t=e.modelValue;try{const e="DataTransfer"in window?new DataTransfer:"ClipboardEvent"in window?new ClipboardEvent("").clipboardData:void 0;return Object(t)===t&&("length"in t?Array.from(t):[t]).forEach((t=>{e.items.add(t)})),{files:e.files}}catch(n){return{files:void 0}}}return!0===t?(0,r.Fl)((()=>{if("file"===e.type)return n()})):(0,r.Fl)(n)}var y=n(4421),m=n(908),x=n(4716),_=n(230);const b=(0,m.L)({name:"QInput",inheritAttrs:!1,props:{...o.Cl,...p,...g.Fz,modelValue:{required:!1},shadowText:String,type:{type:String,default:"text"},debounce:[String,Number],autogrow:Boolean,inputClass:[Array,String,Object],inputStyle:[Array,String,Object]},emits:[...o.HJ,"paste","change"],setup(e,{emit:t,attrs:n}){const a={};let s,l,u,c,h=NaN;const d=(0,i.iH)(null),p=(0,g.Do)(e),{innerValue:m,hasMask:b,moveCursorForPaste:w,updateMaskValue:S,onMaskedKeydown:M}=f(e,t,B,d),C=v(e,!0),I=(0,r.Fl)((()=>(0,o.yV)(m.value))),T=(0,y.Z)(N),k=(0,o.tL)(),A=(0,r.Fl)((()=>"textarea"===e.type||!0===e.autogrow)),D=(0,r.Fl)((()=>!0===A.value||["text","search","url","tel","password"].includes(e.type))),L=(0,r.Fl)((()=>{const t={...k.splitAttrs.listeners.value,onInput:N,onPaste:E,onChange:z,onBlur:V,onFocus:x.sT};return t.onCompositionstart=t.onCompositionupdate=t.onCompositionend=T,!0===b.value&&(t.onKeydown=M),!0===e.autogrow&&(t.onAnimationend=F),t})),P=(0,r.Fl)((()=>{const t={tabindex:0,"data-autofocus":!0===e.autofocus||void 0,rows:"textarea"===e.type?6:void 0,"aria-label":e.label,name:p.value,...k.splitAttrs.attributes.value,id:k.targetUid.value,maxlength:e.maxlength,disabled:!0===e.disable,readonly:!0===e.readonly};return!1===A.value&&(t.type=e.type),!0===e.autogrow&&(t.rows=1),t}));function O(){(0,_.jd)((()=>{const e=document.activeElement;null===d.value||d.value===e||null!==e&&e.id===k.targetUid.value||d.value.focus({preventScroll:!0})}))}function R(){null!==d.value&&d.value.select()}function E(n){if(!0===b.value&&!0!==e.reverseFillMask){const e=n.target;w(e,e.selectionStart,e.selectionEnd)}t("paste",n)}function N(n){if(!n||!n.target)return;if("file"===e.type)return void t("update:modelValue",n.target.files);const i=n.target.value;if(!0!==n.target.qComposing){if(!0===b.value)S(i,!1,n.inputType);else if(B(i),!0===D.value&&n.target===document.activeElement){const{selectionStart:e,selectionEnd:t}=n.target;void 0!==e&&void 0!==t&&(0,r.Y3)((()=>{n.target===document.activeElement&&0===i.indexOf(n.target.value)&&n.target.setSelectionRange(e,t)}))}!0===e.autogrow&&F()}else a.value=i}function B(n,i){c=()=>{"number"!==e.type&&!0===a.hasOwnProperty("value")&&delete a.value,e.modelValue!==n&&h!==n&&(h=n,!0===i&&(l=!0),t("update:modelValue",n),(0,r.Y3)((()=>{h===n&&(h=NaN)}))),c=void 0},"number"===e.type&&(s=!0,a.value=n),void 0!==e.debounce?(clearTimeout(u),a.value=n,u=setTimeout(c,e.debounce)):c()}function F(){const e=d.value;if(null!==e){const t=e.parentNode.style,{overflow:n}=e.style;t.marginBottom=e.scrollHeight-1+"px",e.style.height="1px",e.style.overflow="hidden",e.style.height=e.scrollHeight+"px",e.style.overflow=n,t.marginBottom=""}}function z(e){T(e),clearTimeout(u),void 0!==c&&c(),t("change",e.target.value)}function V(t){void 0!==t&&(0,x.sT)(t),clearTimeout(u),void 0!==c&&c(),s=!1,l=!1,delete a.value,"file"!==e.type&&setTimeout((()=>{null!==d.value&&(d.value.value=void 0!==m.value?m.value:"")}))}function H(){return!0===a.hasOwnProperty("value")?a.value:void 0!==m.value?m.value:""}(0,r.YP)((()=>e.type),(()=>{d.value&&(d.value.value=e.modelValue)})),(0,r.YP)((()=>e.modelValue),(t=>{if(!0===b.value){if(!0===l&&(l=!1,String(t)===h))return;S(t)}else m.value!==t&&(m.value=t,"number"===e.type&&!0===a.hasOwnProperty("value")&&(!0===s?s=!1:delete a.value));!0===e.autogrow&&(0,r.Y3)(F)})),(0,r.YP)((()=>e.autogrow),(e=>{!0===e?(0,r.Y3)(F):null!==d.value&&n.rows>0&&(d.value.style.height="auto")})),(0,r.YP)((()=>e.dense),(()=>{!0===e.autogrow&&(0,r.Y3)(F)})),(0,r.Jd)((()=>{V()})),(0,r.bv)((()=>{!0===e.autogrow&&F()})),Object.assign(k,{innerValue:m,fieldClass:(0,r.Fl)((()=>"q-"+(!0===A.value?"textarea":"input")+(!0===e.autogrow?" q-textarea--autogrow":""))),hasShadow:(0,r.Fl)((()=>"file"!==e.type&&"string"===typeof e.shadowText&&e.shadowText.length>0)),inputRef:d,emitValue:B,hasValue:I,floatingLabel:(0,r.Fl)((()=>!0===I.value||(0,o.yV)(e.displayValue))),getControl:()=>(0,r.h)(!0===A.value?"textarea":"input",{ref:d,class:["q-field__native q-placeholder",e.inputClass],style:e.inputStyle,...P.value,...L.value,..."file"!==e.type?{value:H()}:C.value}),getShadowControl:()=>(0,r.h)("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(!0===A.value?"":" text-no-wrap")},[(0,r.h)("span",{class:"invisible"},H()),(0,r.h)("span",e.shadowText)])});const q=(0,o.ZP)(k),G=(0,r.FN)();return Object.assign(G.proxy,{focus:O,select:R,getNativeElement:()=>d.value}),q}})},3414:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var i=n(3673),r=n(1959),o=n(2236),a=n(7277),s=n(908),l=n(7657),u=n(4716),c=n(1436);const h=(0,s.L)({name:"QItem",props:{...o.S,...a.$,tag:{type:String,default:"div"},active:{type:Boolean,default:null},clickable:Boolean,dense:Boolean,insetLevel:Number,tabindex:[String,Number],focused:Boolean,manualFocus:Boolean},emits:["click","keyup"],setup(e,{slots:t,emit:n}){const{proxy:{$q:s}}=(0,i.FN)(),h=(0,o.Z)(e,s),{hasRouterLink:d,hasLink:p,linkProps:f,linkClass:g,linkTag:v,navigateToRouterLink:y}=(0,a.Z)(),m=(0,r.iH)(null),x=(0,r.iH)(null),_=(0,i.Fl)((()=>!0===e.clickable||!0===p.value||"label"===e.tag)),b=(0,i.Fl)((()=>!0!==e.disable&&!0===_.value)),w=(0,i.Fl)((()=>"q-item q-item-type row no-wrap"+(!0===e.dense?" q-item--dense":"")+(!0===h.value?" q-item--dark":"")+(!0===p.value&&null===e.active?g.value:!0===e.active?(void 0!==e.activeClass?` ${e.activeClass}`:"")+" q-item--active":"")+(!0===e.disable?" disabled":"")+(!0===b.value?" q-item--clickable q-link cursor-pointer "+(!0===e.manualFocus?"q-manual-focusable":"q-focusable q-hoverable")+(!0===e.focused?" q-manual-focusable--focused":""):""))),S=(0,i.Fl)((()=>{if(void 0===e.insetLevel)return null;const t=!0===s.lang.rtl?"Right":"Left";return{["padding"+t]:16+56*e.insetLevel+"px"}}));function M(e){!0===b.value&&(null!==x.value&&(!0!==e.qKeyEvent&&document.activeElement===m.value?x.value.focus():document.activeElement===x.value&&m.value.focus()),!0===d.value&&y(e),n("click",e))}function C(e){if(!0===b.value&&!0===(0,c.So)(e,13)){(0,u.NS)(e),e.qKeyEvent=!0;const t=new MouseEvent("click",e);t.qKeyEvent=!0,m.value.dispatchEvent(t)}n("keyup",e)}function I(){const e=(0,l.Bl)(t.default,[]);return!0===b.value&&e.unshift((0,i.h)("div",{class:"q-focus-helper",tabindex:-1,ref:x})),e}return()=>{const t={ref:m,class:w.value,style:S.value,onClick:M,onKeyup:C};return!0===b.value?(t.tabindex=e.tabindex||"0",Object.assign(t,f.value)):!0===_.value&&(t["aria-disabled"]="true"),(0,i.h)(v.value,t,I())}}})},2350:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(3673),r=n(908),o=n(7657);const a=(0,r.L)({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(e,{slots:t}){const n=(0,i.Fl)((()=>parseInt(e.lines,10))),r=(0,i.Fl)((()=>"q-item__label"+(!0===e.overline?" q-item__label--overline text-overline":"")+(!0===e.caption?" q-item__label--caption text-caption":"")+(!0===e.header?" q-item__label--header":"")+(1===n.value?" ellipsis":""))),a=(0,i.Fl)((()=>void 0!==e.lines&&n.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":n.value}:null));return()=>(0,i.h)("div",{style:a.value,class:r.value},(0,o.KR)(t.default))}})},2035:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(3673),r=n(908),o=n(7657);const a=(0,r.L)({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(e,{slots:t}){const n=(0,i.Fl)((()=>"q-item__section column q-item__section--"+(!0===e.avatar||!0===e.side||!0===e.thumbnail?"side":"main")+(!0===e.top?" q-item__section--top justify-start":" justify-center")+(!0===e.avatar?" q-item__section--avatar":"")+(!0===e.thumbnail?" q-item__section--thumbnail":"")+(!0===e.noWrap?" q-item__section--nowrap":"")));return()=>(0,i.h)("div",{class:n.value},(0,o.KR)(t.default))}})},7011:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(3673),r=n(908),o=n(2236),a=n(7657);const s=(0,r.L)({name:"QList",props:{...o.S,bordered:Boolean,dense:Boolean,separator:Boolean,padding:Boolean},setup(e,{slots:t}){const n=(0,i.FN)(),r=(0,o.Z)(e,n.proxy.$q),s=(0,i.Fl)((()=>"q-list"+(!0===e.bordered?" q-list--bordered":"")+(!0===e.dense?" q-list--dense":"")+(!0===e.separator?" q-list--separator":"")+(!0===r.value?" q-list--dark":"")+(!0===e.padding?" q-list--padding":"")));return()=>(0,i.h)("div",{class:s.value},(0,a.KR)(t.default))}})},3066:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var i=n(3673),r=n(1959),o=n(4688),a=(n(3610),n(71),n(908)),s=n(8400),l=n(4716);const{passive:u}=l.rU,c=["both","horizontal","vertical"],h=(0,a.L)({name:"QScrollObserver",props:{axis:{type:String,validator:e=>c.includes(e),default:"vertical"},debounce:[String,Number],scrollTarget:{default:void 0}},emits:["scroll"],setup(e,{emit:t}){const n={position:{top:0,left:0},direction:"down",directionChanged:!1,delta:{top:0,left:0},inflectionPoint:{top:0,left:0}};let r,o,a=null;function c(){null!==a&&a();const i=Math.max(0,(0,s.u3)(r)),o=(0,s.OI)(r),l={top:i-n.position.top,left:o-n.position.left};if("vertical"===e.axis&&0===l.top||"horizontal"===e.axis&&0===l.left)return;const u=Math.abs(l.top)>=Math.abs(l.left)?l.top<0?"up":"down":l.left<0?"left":"right";n.position={top:i,left:o},n.directionChanged=n.direction!==u,n.delta=l,!0===n.directionChanged&&(n.direction=u,n.inflectionPoint=n.position),t("scroll",{...n})}function h(){r=(0,s.b0)(o,e.scrollTarget),r.addEventListener("scroll",p,u),p(!0)}function d(){void 0!==r&&(r.removeEventListener("scroll",p,u),r=void 0)}function p(t){if(!0===t||0===e.debounce||"0"===e.debounce)c();else if(null===a){const[t,n]=e.debounce?[setTimeout(c,e.debounce),clearTimeout]:[requestAnimationFrame(c),cancelAnimationFrame];a=()=>{n(t),a=null}}}(0,i.YP)((()=>e.scrollTarget),(()=>{d(),h()}));const f=(0,i.FN)();return(0,i.bv)((()=>{o=f.proxy.$el.parentNode,h()})),(0,i.Jd)((()=>{null!==a&&a(),d()})),Object.assign(f.proxy,{trigger:p,getPosition:()=>n}),l.ZT}});var d=n(5151),p=n(7657),f=n(2547);const g=(0,a.L)({name:"QLayout",props:{container:Boolean,view:{type:String,default:"hhh lpr fff",validator:e=>/^(h|l)h(h|r) lpr (f|l)f(f|r)$/.test(e.toLowerCase())},onScroll:Function,onScrollHeight:Function,onResize:Function},setup(e,{slots:t,emit:n}){const{proxy:{$q:a}}=(0,i.FN)(),l=(0,r.iH)(null),u=(0,r.iH)(a.screen.height),c=(0,r.iH)(!0===e.container?0:a.screen.width),g=(0,r.iH)({position:0,direction:"down",inflectionPoint:0}),v=(0,r.iH)(0),y=(0,r.iH)(!0===o.uX.value?0:(0,s.np)()),m=(0,i.Fl)((()=>"q-layout q-layout--"+(!0===e.container?"containerized":"standard"))),x=(0,i.Fl)((()=>!1===e.container?{minHeight:a.screen.height+"px"}:null)),_=(0,i.Fl)((()=>0!==y.value?{[!0===a.lang.rtl?"left":"right"]:`${y.value}px`}:null)),b=(0,i.Fl)((()=>0!==y.value?{[!0===a.lang.rtl?"right":"left"]:0,[!0===a.lang.rtl?"left":"right"]:`-${y.value}px`,width:`calc(100% + ${y.value}px)`}:null));function w(t){if(!0===e.container||!0!==document.qScrollPrevented){const i={position:t.position.top,direction:t.direction,directionChanged:t.directionChanged,inflectionPoint:t.inflectionPoint.top,delta:t.delta.top};g.value=i,void 0!==e.onScroll&&n("scroll",i)}}function S(t){const{height:i,width:r}=t;let o=!1;u.value!==i&&(o=!0,u.value=i,void 0!==e.onScrollHeight&&n("scroll-height",i),C()),c.value!==r&&(o=!0,c.value=r),!0===o&&void 0!==e.onResize&&n("resize",t)}function M({height:e}){v.value!==e&&(v.value=e,C())}function C(){if(!0===e.container){const e=u.value>v.value?(0,s.np)():0;y.value!==e&&(y.value=e)}}let I;const T={instances:{},view:(0,i.Fl)((()=>e.view)),isContainer:(0,i.Fl)((()=>e.container)),rootRef:l,height:u,containerHeight:v,scrollbarWidth:y,totalWidth:(0,i.Fl)((()=>c.value+y.value)),rows:(0,i.Fl)((()=>{const t=e.view.toLowerCase().split(" ");return{top:t[0].split(""),middle:t[1].split(""),bottom:t[2].split("")}})),header:(0,r.qj)({size:0,offset:0,space:!1}),right:(0,r.qj)({size:300,offset:0,space:!1}),footer:(0,r.qj)({size:0,offset:0,space:!1}),left:(0,r.qj)({size:300,offset:0,space:!1}),scroll:g,animate(){void 0!==I?clearTimeout(I):document.body.classList.add("q-body--layout-animate"),I=setTimeout((()=>{document.body.classList.remove("q-body--layout-animate"),I=void 0}),155)},update(e,t,n){T[e][t]=n}};if((0,i.JJ)(f.YE,T),(0,s.np)()>0){let k=null;const A=document.body;function D(){k=null,A.classList.remove("hide-scrollbar")}function L(){if(null===k){if(A.scrollHeight>a.screen.height)return;A.classList.add("hide-scrollbar")}else clearTimeout(k);k=setTimeout(D,300)}function P(e){null!==k&&"remove"===e&&(clearTimeout(k),D()),window[`${e}EventListener`]("resize",L)}(0,i.YP)((()=>!0!==e.container?"add":"remove"),P),!0!==e.container&&P("add"),(0,i.Ah)((()=>{P("remove")}))}return()=>{const n=(0,p.vs)(t.default,[(0,i.h)(h,{onScroll:w}),(0,i.h)(d.Z,{onResize:S})]),r=(0,i.h)("div",{class:m.value,style:x.value,ref:!0===e.container?void 0:l,tabindex:-1},n);return!0===e.container?(0,i.h)("div",{class:"q-layout-container overflow-hidden",ref:l},[(0,i.h)(d.Z,{onResize:M}),(0,i.h)("div",{class:"absolute-full",style:_.value},[(0,i.h)("div",{class:"scroll",style:b.value},[r])])]):r}}})},811:(e,t,n)=>{"use strict";n.d(t,{Z:()=>C});n(71);var i=n(3673),r=n(1959),o=n(8880),a=n(5875),s=n(1372),l=n(3628),u=n(2236),c=n(5911),h=n(6104),d=n(416),p=n(4955),f=n(908),g=n(4312),v=n(8400),y=n(4716),m=n(7657),x=n(4704),_=n(8517),b=n(2012),w=n(9916),S=n(230),M=n(2657);const C=(0,f.L)({name:"QMenu",inheritAttrs:!1,props:{...a.u,...l.vr,...u.S,...h.D,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:M.$},self:{type:String,validator:M.$},offset:{type:Array,validator:M.io},scrollTarget:{default:void 0},touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...l.gH,"click","escape-key"],setup(e,{slots:t,emit:n,attrs:f}){let C,I,T,k=null;const A=(0,i.FN)(),{proxy:D}=A,{$q:L}=D,P=(0,r.iH)(null),O=(0,r.iH)(!1),R=(0,i.Fl)((()=>!0!==e.persistent&&!0!==e.noRouteDismiss)),E=(0,u.Z)(e,L),{registerTick:N,removeTick:B}=(0,d.Z)(),{registerTimeout:F,removeTimeout:z}=(0,p.Z)(),{transition:V,transitionStyle:H}=(0,h.Z)(e,O),{localScrollTarget:q,changeScrollEvent:G,unconfigureScrollTarget:W}=(0,s.Z)(e,se),{anchorEl:U,canShow:j}=(0,a.Z)({showing:O}),{hide:Z}=(0,l.ZP)({showing:O,canShow:j,handleShow:re,handleHide:oe,hideOnRouteChange:R,processOnMount:!0}),{showPortal:Y,hidePortal:$,renderPortal:X}=(0,c.Z)(A,P,de),K={anchorEl:U,innerRef:P,onClickOutside(t){if(!0!==e.persistent&&!0===O.value)return Z(t),("touchstart"===t.type||t.target.classList.contains("q-dialog__backdrop"))&&(0,y.NS)(t),!0}},J=(0,i.Fl)((()=>(0,M.li)(e.anchor||(!0===e.cover?"center middle":"bottom start"),L.lang.rtl))),Q=(0,i.Fl)((()=>!0===e.cover?J.value:(0,M.li)(e.self||"top start",L.lang.rtl))),ee=(0,i.Fl)((()=>(!0===e.square?" q-menu--square":"")+(!0===E.value?" q-menu--dark q-dark":""))),te=(0,i.Fl)((()=>!0===e.autoClose?{onClick:le}:{})),ne=(0,i.Fl)((()=>!0===O.value&&!0!==e.persistent));function ie(){(0,S.jd)((()=>{let e=P.value;e&&!0!==e.contains(document.activeElement)&&(e=e.querySelector("[autofocus], [data-autofocus]")||e,e.focus({preventScroll:!0}))}))}function re(t){if(B(),z(),k=!1===e.noRefocus?document.activeElement:null,(0,_.i)(ue),Y(),se(),C=void 0,void 0!==t&&(e.touchPosition||e.contextMenu)){const e=(0,y.FK)(t);if(void 0!==e.left){const{top:t,left:n}=U.value.getBoundingClientRect();C={left:e.left-n,top:e.top-t}}}void 0===I&&(I=(0,i.YP)((()=>L.screen.width+"|"+L.screen.height+"|"+e.self+"|"+e.anchor+"|"+L.lang.rtl),he)),!0!==e.noFocus&&document.activeElement.blur(),N((()=>{he(),!0!==e.noFocus&&ie()})),F((()=>{!0===L.platform.is.ios&&(T=e.autoClose,P.value.click()),he(),Y(!0),n("show",t)}),e.transitionDuration)}function oe(t){B(),z(),$(),ae(!0),null===k||void 0!==t&&!0===t.qClickOutside||(k.focus(),k=null),F((()=>{$(!0),n("hide",t)}),e.transitionDuration)}function ae(e){C=void 0,void 0!==I&&(I(),I=void 0),!0!==e&&!0!==O.value||((0,_.H)(ue),W(),(0,w.D)(K),(0,x.k)(ce)),!0!==e&&(k=null)}function se(){null===U.value&&void 0===e.scrollTarget||(q.value=(0,v.b0)(U.value,e.scrollTarget),G(q.value,he))}function le(e){!0!==T?((0,g.AH)(D,e),n("click",e)):T=!1}function ue(t){!0===ne.value&&!0!==e.noFocus&&!0!==(0,b.mY)(P.value,t.target)&&ie()}function ce(e){n("escape-key"),Z(e)}function he(){const t=P.value;null!==t&&null!==U.value&&(0,M.wq)({el:t,offset:e.offset,anchorEl:U.value,anchorOrigin:J.value,selfOrigin:Q.value,absoluteOffset:C,fit:e.fit,cover:e.cover,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}function de(){return(0,i.h)(o.uT,{name:V.value,appear:!0},(()=>!0===O.value?(0,i.h)("div",{...f,ref:P,tabindex:-1,class:["q-menu q-position-engine scroll"+ee.value,f.class],style:[f.style,H.value],...te.value},(0,m.KR)(t.default)):null))}return(0,i.YP)(ne,(e=>{!0===e?((0,x.c)(ce),(0,w.m)(K)):((0,x.k)(ce),(0,w.D)(K))})),(0,i.Jd)(ae),Object.assign(D,{focus:ie,updatePosition:he}),X}})},2652:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(3673),r=n(908),o=n(7657),a=n(2547);const s=(0,r.L)({name:"QPageContainer",setup(e,{slots:t}){const{proxy:{$q:n}}=(0,i.FN)(),r=(0,i.f3)(a.YE,(()=>{console.error("QPageContainer needs to be child of QLayout")}));(0,i.JJ)(a.Mw,!0);const s=(0,i.Fl)((()=>{const e={};return!0===r.header.space&&(e.paddingTop=`${r.header.size}px`),!0===r.right.space&&(e["padding"+(!0===n.lang.rtl?"Left":"Right")]=`${r.right.size}px`),!0===r.footer.space&&(e.paddingBottom=`${r.footer.size}px`),!0===r.left.space&&(e["padding"+(!0===n.lang.rtl?"Right":"Left")]=`${r.left.size}px`),e}));return()=>(0,i.h)("div",{class:"q-page-container",style:s.value},(0,o.KR)(t.default))}})},3944:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var i=n(3673),r=n(1959),o=n(6778),a=n(811),s=n(5875),l=n(908);const u=(0,l.L)({name:"QPopupProxy",props:{...s.u,breakpoint:{type:[String,Number],default:450}},emits:["show","hide"],setup(e,{slots:t,emit:n,attrs:l}){const{proxy:u}=(0,i.FN)(),{$q:c}=u,h=(0,r.iH)(!1),d=(0,r.iH)(null),p=(0,i.Fl)((()=>parseInt(e.breakpoint,10))),{canShow:f}=(0,s.Z)({showing:h});function g(){return c.screen.width"menu"===v.value?{maxHeight:"99vh"}:{}));function m(e){h.value=!0,n("show",e)}function x(e){h.value=!1,v.value=g(),n("hide",e)}return(0,i.YP)((()=>g()),(e=>{!0!==h.value&&(v.value=e)})),Object.assign(u,{show(e){!0===f(e)&&d.value.show(e)},hide(e){d.value.hide(e)},toggle(e){d.value.toggle(e)}}),()=>{const n={ref:d,...y.value,...l,onShow:m,onHide:x};let r;return"dialog"===v.value?r=o.Z:(r=a.Z,Object.assign(n,{target:e.target,contextMenu:e.contextMenu,noParentEvent:!0,separateClosePopup:!0})),(0,i.h)(r,n,t.default)}}})},5151:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var i=n(3673),r=n(1959),o=n(4688);function a(){const e=(0,r.iH)(!o.uX.value);return!1===e.value&&(0,i.bv)((()=>{e.value=!0})),e}var s=n(908),l=n(4716);const u="undefined"!==typeof ResizeObserver,c=!0===u?{}:{style:"display:block;position:absolute;top:0;left:0;right:0;bottom:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1;",url:"about:blank"},h=(0,s.L)({name:"QResizeObserver",props:{debounce:{type:[String,Number],default:100}},emits:["resize"],setup(e,{emit:t}){let n,r=null,o={width:-1,height:-1};function s(t){!0===t||0===e.debounce||"0"===e.debounce?h():null===r&&(r=setTimeout(h,e.debounce))}function h(){if(clearTimeout(r),r=null,n){const{offsetWidth:e,offsetHeight:i}=n;e===o.width&&i===o.height||(o={width:e,height:i},t("resize",o))}}const d=(0,i.FN)();if(Object.assign(d.proxy,{trigger:s}),!0===u){let p;return(0,i.bv)((()=>{(0,i.Y3)((()=>{n=d.proxy.$el.parentNode,n&&(p=new ResizeObserver(s),p.observe(n),h())}))})),(0,i.Jd)((()=>{clearTimeout(r),void 0!==p&&(void 0!==p.disconnect?p.disconnect():n&&p.unobserve(n))})),l.ZT}{const f=a();let g;function v(){clearTimeout(r),void 0!==g&&(void 0!==g.removeEventListener&&g.removeEventListener("resize",s,l.rU.passive),g=void 0)}function y(){v(),n&&n.contentDocument&&(g=n.contentDocument.defaultView,g.addEventListener("resize",s,l.rU.passive),h())}return(0,i.bv)((()=>{(0,i.Y3)((()=>{n=d.proxy.$el,n&&y()}))})),(0,i.Jd)(v),()=>{if(!0===f.value)return(0,i.h)("object",{style:c.style,tabindex:-1,type:"text/html",data:c.url,"aria-hidden":"true",onLoad:y})}}}})},5869:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(3673),r=n(2236),o=n(908);const a={true:"inset",item:"item-inset","item-thumbnail":"item-thumbnail-inset"},s={xs:2,sm:4,md:8,lg:16,xl:24},l=(0,o.L)({name:"QSeparator",props:{...r.S,spaced:[Boolean,String],inset:[Boolean,String],vertical:Boolean,color:String,size:String},setup(e){const t=(0,i.FN)(),n=(0,r.Z)(e,t.proxy.$q),o=(0,i.Fl)((()=>!0===e.vertical?"vertical":"horizontal")),l=(0,i.Fl)((()=>` q-separator--${o.value}`)),u=(0,i.Fl)((()=>!1!==e.inset?`${l.value}-${a[e.inset]}`:"")),c=(0,i.Fl)((()=>`q-separator${l.value}${u.value}`+(void 0!==e.color?` bg-${e.color}`:"")+(!0===n.value?" q-separator--dark":""))),h=(0,i.Fl)((()=>{const t={};if(void 0!==e.size&&(t[!0===e.vertical?"width":"height"]=e.size),!1!==e.spaced){const n=!0===e.spaced?`${s.md}px`:e.spaced in s?`${s[e.spaced]}px`:e.spaced,i=!0===e.vertical?["Left","Right"]:["Top","Bottom"];t[`margin${i[0]}`]=t[`margin${i[1]}`]=n}return t}));return()=>(0,i.h)("hr",{class:c.value,style:h.value,"aria-orientation":o.value})}})},2025:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(3673),r=n(908);const o=(0,i.h)("div",{class:"q-space"}),a=(0,r.L)({name:"QSpace",setup(){return()=>o}})},9754:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(3673),r=n(2417);const o={size:{type:[Number,String],default:"1em"},color:String};function a(e){return{cSize:(0,i.Fl)((()=>e.size in r.Ok?`${r.Ok[e.size]}px`:e.size)),classes:(0,i.Fl)((()=>"q-spinner"+(e.color?` text-${e.color}`:"")))}}var s=n(908);const l=(0,s.L)({name:"QSpinner",props:{...o,thickness:{type:Number,default:5}},setup(e){const{cSize:t,classes:n}=a(e);return()=>(0,i.h)("svg",{class:n.value+" q-spinner-mat",width:t.value,height:t.value,viewBox:"25 25 50 50"},[(0,i.h)("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":e.thickness,"stroke-miterlimit":"10"})])}})},4147:(e,t,n)=>{"use strict";n.d(t,{Z:()=>Be});n(3610),n(71);var i=n(3673),r=n(1959),o=n(4554),a=n(908),s=n(7657);const l=(0,a.L)({name:"QTh",props:{props:Object,autoWidth:Boolean},emits:["click"],setup(e,{slots:t,emit:n}){const r=(0,i.FN)(),{proxy:{$q:a}}=r,l=e=>{n("click",e)};return()=>{if(void 0===e.props)return(0,i.h)("th",{class:!0===e.autoWidth?"q-table--col-auto-width":"",onClick:l},(0,s.KR)(t.default));let n,u;const c=r.vnode.key;if(c){if(n=e.props.colsMap[c],void 0===n)return}else n=e.props.col;if(!0===n.sortable){const e="right"===n.align?"unshift":"push";u=(0,s.Bl)(t.default,[]),u[e]((0,i.h)(o.Z,{class:n.__iconClass,name:a.iconSet.table.arrowUp}))}else u=(0,s.KR)(t.default);const h={class:n.__thClass+(!0===e.autoWidth?" q-table--col-auto-width":""),style:n.headerStyle,onClick:t=>{!0===n.sortable&&e.props.sort(n),l(t)}};return(0,i.h)("th",h,u)}}});var u=n(5869),c=n(7011),h=n(2236);const d=["horizontal","vertical","cell","none"],p=(0,a.L)({name:"QMarkupTable",props:{...h.S,dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,wrapCells:Boolean,separator:{type:String,default:"horizontal",validator:e=>d.includes(e)}},setup(e,{slots:t}){const n=(0,i.FN)(),r=(0,h.Z)(e,n.proxy.$q),o=(0,i.Fl)((()=>`q-markup-table q-table__container q-table__card q-table--${e.separator}-separator`+(!0===r.value?" q-table--dark q-table__card--dark q-dark":"")+(!0===e.dense?" q-table--dense":"")+(!0===e.flat?" q-table--flat":"")+(!0===e.bordered?" q-table--bordered":"")+(!0===e.square?" q-table--square":"")+(!1===e.wrapCells?" q-table--no-wrap":"")));return()=>(0,i.h)("div",{class:o.value},[(0,i.h)("table",{class:"q-table"},(0,s.KR)(t.default))])}});function f(e,t){return(0,i.h)("div",e,[(0,i.h)("table",{class:"q-table"},t)])}n(5363);var g=n(9405),v=n(4716);let y=!1;{const e=document.createElement("div"),t=document.createElement("div");e.setAttribute("dir","rtl"),e.style.width="1px",e.style.height="1px",e.style.overflow="auto",t.style.width="1000px",t.style.height="1px",document.body.appendChild(e),e.appendChild(t),e.scrollLeft=-1e3,y=e.scrollLeft>=0,e.remove()}const m=1e3,x=["start","center","end","start-force","center-force","end-force"],_=Array.prototype.filter,b=void 0===window.getComputedStyle(document.body).overflowAnchor?v.ZT:function(e,t){null!==e&&(cancelAnimationFrame(e._qOverflowAnimationFrame),e._qOverflowAnimationFrame=requestAnimationFrame((()=>{if(null===e)return;const n=e.children||[];_.call(n,(e=>e.dataset&&void 0!==e.dataset.qVsAnchor)).forEach((e=>{delete e.dataset.qVsAnchor}));const i=n[t];i&&i.dataset&&(i.dataset.qVsAnchor="")})))};function w(e,t){return e+t}function S(e,t,n,i,r,o,a,s){const l=e===window?document.scrollingElement||document.documentElement:e,u=!0===r?"offsetWidth":"offsetHeight",c={scrollStart:0,scrollViewSize:-a-s,scrollMaxSize:0,offsetStart:-a,offsetEnd:-s};if(!0===r?(e===window?(c.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,c.scrollViewSize+=document.documentElement.clientWidth):(c.scrollStart=l.scrollLeft,c.scrollViewSize+=l.clientWidth),c.scrollMaxSize=l.scrollWidth,!0===o&&(c.scrollStart=(!0===y?c.scrollMaxSize-c.scrollViewSize:0)-c.scrollStart)):(e===window?(c.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,c.scrollViewSize+=document.documentElement.clientHeight):(c.scrollStart=l.scrollTop,c.scrollViewSize+=l.clientHeight),c.scrollMaxSize=l.scrollHeight),null!==n)for(let h=n.previousElementSibling;null!==h;h=h.previousElementSibling)!1===h.classList.contains("q-virtual-scroll--skip")&&(c.offsetStart+=h[u]);if(null!==i)for(let h=i.nextElementSibling;null!==h;h=h.nextElementSibling)!1===h.classList.contains("q-virtual-scroll--skip")&&(c.offsetEnd+=h[u]);if(t!==e){const n=l.getBoundingClientRect(),i=t.getBoundingClientRect();!0===r?(c.offsetStart+=i.left-n.left,c.offsetEnd-=i.width):(c.offsetStart+=i.top-n.top,c.offsetEnd-=i.height),e!==window&&(c.offsetStart+=c.scrollStart),c.offsetEnd+=c.scrollMaxSize-c.offsetStart}return c}function M(e,t,n,i){"end"===t&&(t=(e===window?document.body:e)[!0===n?"scrollWidth":"scrollHeight"]),e===window?!0===n?(!0===i&&(t=(!0===y?document.body.scrollWidth-document.documentElement.clientWidth:0)-t),window.scrollTo(t,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,t):!0===n?(!0===i&&(t=(!0===y?e.scrollWidth-e.offsetWidth:0)-t),e.scrollLeft=t):e.scrollTop=t}function C(e,t,n,i){if(n>=i)return 0;const r=t.length,o=Math.floor(n/m),a=Math.floor((i-1)/m)+1;let s=e.slice(o,a).reduce(w,0);return n%m!==0&&(s-=t.slice(o*m,n).reduce(w,0)),i%m!==0&&i!==r&&(s-=t.slice(i,a*m).reduce(w,0)),s}const I={virtualScrollSliceSize:{type:[Number,String],default:null},virtualScrollSliceRatioBefore:{type:[Number,String],default:1},virtualScrollSliceRatioAfter:{type:[Number,String],default:1},virtualScrollItemSize:{type:[Number,String],default:24},virtualScrollStickySizeStart:{type:[Number,String],default:0},virtualScrollStickySizeEnd:{type:[Number,String],default:0},tableColspan:[Number,String]},T=Object.keys(I),k={virtualScrollHorizontal:Boolean,onVirtualScroll:Function,...I};function A({virtualScrollLength:e,getVirtualScrollTarget:t,getVirtualScrollEl:n,virtualScrollItemSizeComputed:o}){const a=(0,i.FN)(),{props:s,emit:l,proxy:u}=a,{$q:c}=u;let h,d,p,f,v=[];const y=(0,r.iH)(0),I=(0,r.iH)(0),T=(0,r.iH)({}),k=(0,r.iH)(null),A=(0,r.iH)(null),D=(0,r.iH)(null),L=(0,r.iH)({from:0,to:0}),P=(0,i.Fl)((()=>void 0!==s.tableColspan?s.tableColspan:100));void 0===o&&(o=(0,i.Fl)((()=>s.virtualScrollItemSize)));const O=(0,i.Fl)((()=>o.value+";"+s.virtualScrollHorizontal)),R=(0,i.Fl)((()=>O.value+";"+s.virtualScrollSliceRatioBefore+";"+s.virtualScrollSliceRatioAfter));function E(){q(d,!0)}function N(e){q(void 0===e?d:e)}function B(i,r){const o=t();if(void 0===o||null===o||8===o.nodeType)return;const a=S(o,n(),k.value,A.value,s.virtualScrollHorizontal,c.lang.rtl,s.virtualScrollStickySizeStart,s.virtualScrollStickySizeEnd);p!==a.scrollViewSize&&G(a.scrollViewSize),z(o,a,Math.min(e.value-1,Math.max(0,parseInt(i,10)||0)),0,x.indexOf(r)>-1?r:d>-1&&i>d?"end":"start")}function F(){const i=t();if(void 0===i||null===i||8===i.nodeType)return;const r=S(i,n(),k.value,A.value,s.virtualScrollHorizontal,c.lang.rtl,s.virtualScrollStickySizeStart,s.virtualScrollStickySizeEnd),o=e.value-1,a=r.scrollMaxSize-r.offsetStart-r.offsetEnd-I.value;if(h===r.scrollStart)return;if(r.scrollMaxSize<=0)return void z(i,r,0,0);p!==r.scrollViewSize&&G(r.scrollViewSize),V(L.value.from);const l=Math.floor(r.scrollMaxSize-Math.max(r.scrollViewSize,r.offsetEnd)-Math.min(f[o],r.scrollViewSize/2));if(l>0&&Math.ceil(r.scrollStart)>=l)return void z(i,r,o,r.scrollMaxSize-r.offsetEnd-v.reduce(w,0));let u=0,d=r.scrollStart-r.offsetStart,g=d;if(d<=a&&d+r.scrollViewSize>=y.value)d-=y.value,u=L.value.from,g=d;else for(let e=0;d>=v[e]&&u0&&u-r.scrollViewSize?(u++,g=d):g=f[u]+d;z(i,r,u,g)}function z(t,n,i,r,o){const a="string"===typeof o&&o.indexOf("-force")>-1,l=!0===a?o.replace("-force",""):o,u=void 0!==l?l:"start";let d=Math.max(0,i-T.value[u]),p=d+T.value.total;p>e.value&&(p=e.value,d=Math.max(0,p-T.value.total)),h=n.scrollStart;const g=d!==L.value.from||p!==L.value.to;if(!1===g&&void 0===l)return void U(i);const{activeElement:m}=document,x=D.value;!0===g&&null!==x&&x!==m&&!0===x.contains(m)&&(x.addEventListener("focusout",H),setTimeout((()=>{null!==x&&x.removeEventListener("focusout",H)}))),b(x,i-d);const _=void 0!==l?f.slice(d,i).reduce(w,0):0;if(!0===g){const t=p>=L.value.from&&d<=L.value.to?L.value.to:p;L.value={from:d,to:t},y.value=C(v,f,0,d),I.value=C(v,f,p,e.value),requestAnimationFrame((()=>{L.value.to!==p&&h===n.scrollStart&&(L.value={from:L.value.from,to:p},I.value=C(v,f,p,e.value))}))}requestAnimationFrame((()=>{if(h!==n.scrollStart)return;!0===g&&V(d);const e=f.slice(d,i).reduce(w,0),o=e+n.offsetStart+y.value,u=o+f[i];let p=o+r;if(void 0!==l){const t=e-_,r=n.scrollStart+t;p=!0!==a&&re.classList&&!1===e.classList.contains("q-virtual-scroll--skip"))),i=n.length,r=!0===s.virtualScrollHorizontal?e=>e.getBoundingClientRect().width:e=>e.offsetHeight;let o,a,l=e;for(let e=0;e=a;i--)f[i]=r;const s=Math.floor((e.value-1)/m);v=[];for(let i=0;i<=s;i++){let t=0;const n=Math.min((i+1)*m,e.value);for(let e=i*m;e=0?(V(L.value.from),(0,i.Y3)((()=>{B(t)}))):j()}function G(e){if(void 0===e&&"undefined"!==typeof window){const i=t();void 0!==i&&null!==i&&8!==i.nodeType&&(e=S(i,n(),k.value,A.value,s.virtualScrollHorizontal,c.lang.rtl,s.virtualScrollStickySizeStart,s.virtualScrollStickySizeEnd).scrollViewSize)}p=e;const i=parseFloat(s.virtualScrollSliceRatioBefore)||0,r=parseFloat(s.virtualScrollSliceRatioAfter)||0,a=1+i+r,l=void 0===e||e<=0?1:Math.ceil(e/o.value),u=Math.max(1,l,Math.ceil((s.virtualScrollSliceSize>0?s.virtualScrollSliceSize:10)/a));T.value={total:Math.ceil(u*a),start:Math.ceil(u*i),center:Math.ceil(u*(.5+i)),end:Math.ceil(u*(1+i)),view:l}}function W(e,t){const n=!0===s.virtualScrollHorizontal?"width":"height",r={["--q-virtual-scroll-item-"+n]:o.value+"px"};return["tbody"===e?(0,i.h)(e,{class:"q-virtual-scroll__padding",key:"before",ref:k},[(0,i.h)("tr",[(0,i.h)("td",{style:{[n]:`${y.value}px`,...r},colspan:P.value})])]):(0,i.h)(e,{class:"q-virtual-scroll__padding",key:"before",ref:k,style:{[n]:`${y.value}px`,...r}}),(0,i.h)(e,{class:"q-virtual-scroll__content",key:"content",ref:D,tabindex:-1},t.flat()),"tbody"===e?(0,i.h)(e,{class:"q-virtual-scroll__padding",key:"after",ref:A},[(0,i.h)("tr",[(0,i.h)("td",{style:{[n]:`${I.value}px`,...r},colspan:P.value})])]):(0,i.h)(e,{class:"q-virtual-scroll__padding",key:"after",ref:A,style:{[n]:`${I.value}px`,...r}})]}function U(e){d!==e&&(void 0!==s.onVirtualScroll&&l("virtual-scroll",{index:e,from:L.value.from,to:L.value.to-1,direction:e{G()})),(0,i.YP)(O,E),G();const j=(0,g.Z)(F,!0===c.platform.is.ios?120:35);(0,i.wF)((()=>{G()}));let Z=!1;return(0,i.se)((()=>{Z=!0})),(0,i.dl)((()=>{if(!0!==Z)return;const e=t();void 0!==h&&void 0!==e&&null!==e&&8!==e.nodeType?M(e,h,s.virtualScrollHorizontal,c.lang.rtl):B(d)})),(0,i.Jd)((()=>{j.cancel()})),Object.assign(u,{scrollTo:B,reset:E,refresh:N}),{virtualScrollSliceRange:L,virtualScrollSliceSizeComputed:T,setVirtualScrollSize:G,onVirtualScrollEvt:j,localResetVirtualScroll:q,padVirtualScroll:W,scrollTo:B,reset:E,refresh:N}}var D=n(8400);const L={list:c.Z,table:p},P=["list","table","__qtable"],O=(0,a.L)({name:"QVirtualScroll",props:{...k,type:{type:String,default:"list",validator:e=>P.includes(e)},items:{type:Array,default:()=>[]},itemsFn:Function,itemsSize:Number,scrollTarget:{default:void 0}},setup(e,{slots:t,attrs:n}){let o;const a=(0,r.iH)(null),l=(0,i.Fl)((()=>e.itemsSize>=0&&void 0!==e.itemsFn?parseInt(e.itemsSize,10):Array.isArray(e.items)?e.items.length:0)),{virtualScrollSliceRange:u,localResetVirtualScroll:c,padVirtualScroll:h,onVirtualScrollEvt:d}=A({virtualScrollLength:l,getVirtualScrollTarget:x,getVirtualScrollEl:m}),p=(0,i.Fl)((()=>{if(0===l.value)return[];const t=(e,t)=>({index:u.value.from+t,item:e});return void 0===e.itemsFn?e.items.slice(u.value.from,u.value.to).map(t):e.itemsFn(u.value.from,u.value.to-u.value.from).map(t)})),g=(0,i.Fl)((()=>"q-virtual-scroll q-virtual-scroll"+(!0===e.virtualScrollHorizontal?"--horizontal":"--vertical")+(void 0!==e.scrollTarget?"":" scroll"))),y=(0,i.Fl)((()=>void 0!==e.scrollTarget?{}:{tabindex:0}));function m(){return a.value.$el||a.value}function x(){return o}function _(){o=(0,D.b0)(m(),e.scrollTarget),o.addEventListener("scroll",d,v.rU.passive)}function b(){void 0!==o&&(o.removeEventListener("scroll",d,v.rU.passive),o=void 0)}function w(){let n=h("list"===e.type?"div":"tbody",p.value.map(t.default));return void 0!==t.before&&(n=t.before().concat(n)),(0,s.vs)(t.after,n)}return(0,i.YP)(l,(()=>{c()})),(0,i.YP)((()=>e.scrollTarget),(()=>{b(),_()})),(0,i.wF)((()=>{c()})),(0,i.bv)((()=>{_()})),(0,i.dl)((()=>{_()})),(0,i.se)((()=>{b()})),(0,i.Jd)((()=>{b()})),()=>{if(void 0!==t.default)return"__qtable"===e.type?f({ref:a,class:"q-table__middle "+g.value},w()):(0,i.h)(L[e.type],{...n,ref:a,class:[n.class,g.value],...y.value},w);console.error("QVirtualScroll: default scoped slot is required for rendering")}}});var R=n(2659);const E=(0,a.L)({name:"QField",inheritAttrs:!1,props:R.Cl,emits:R.HJ,setup(){return(0,R.ZP)((0,R.tL)())}});var N=n(7030),B=n(3414),F=n(2035),z=n(2350),V=n(811),H=n(6778),q=n(9550),G=n(4421),W=n(782),U=n(2130),j=n(1436);const Z=e=>["add","add-unique","toggle"].includes(e),Y=".*+?^${}()|[]\\",$=Object.keys(R.Cl),X=(0,a.L)({name:"QSelect",inheritAttrs:!1,props:{...k,...q.Fz,...R.Cl,modelValue:{required:!0},multiple:Boolean,displayValue:[String,Number],displayValueHtml:Boolean,dropdownIcon:String,options:{type:Array,default:()=>[]},optionValue:[Function,String],optionLabel:[Function,String],optionDisable:[Function,String],hideSelected:Boolean,hideDropdownIcon:Boolean,fillInput:Boolean,maxValues:[Number,String],optionsDense:Boolean,optionsDark:{type:Boolean,default:null},optionsSelectedClass:String,optionsHtml:Boolean,optionsCover:Boolean,menuShrink:Boolean,menuAnchor:String,menuSelf:String,menuOffset:Array,popupContentClass:String,popupContentStyle:[String,Array,Object],useInput:Boolean,useChips:Boolean,newValueMode:{type:String,validator:Z},mapOptions:Boolean,emitValue:Boolean,inputDebounce:{type:[Number,String],default:500},inputClass:[Array,String,Object],inputStyle:[Array,String,Object],tabindex:{type:[String,Number],default:0},autocomplete:String,transitionShow:String,transitionHide:String,transitionDuration:[String,Number],behavior:{type:String,validator:e=>["default","menu","dialog"].includes(e),default:"default"},virtualScrollItemSize:{type:[Number,String],default:void 0},onNewValue:Function,onFilter:Function},emits:[...R.HJ,"add","remove","input-value","new-value","keyup","keypress","keydown","filter-abort"],setup(e,{slots:t,emit:n}){const{proxy:a}=(0,i.FN)(),{$q:l}=a,u=(0,r.iH)(!1),c=(0,r.iH)(!1),h=(0,r.iH)(-1),d=(0,r.iH)(""),p=(0,r.iH)(!1),f=(0,r.iH)(!1);let g,y,m,x,_,b,w,S,M;const C=(0,r.iH)(null),I=(0,r.iH)(null),T=(0,r.iH)(null),k=(0,r.iH)(null),D=(0,r.iH)(null),L=(0,q.Do)(e),P=(0,G.Z)(Ye),O=(0,i.Fl)((()=>Array.isArray(e.options)?e.options.length:0)),X=(0,i.Fl)((()=>void 0===e.virtualScrollItemSize?!0===e.optionsDense?24:48:e.virtualScrollItemSize)),{virtualScrollSliceRange:K,virtualScrollSliceSizeComputed:J,localResetVirtualScroll:Q,padVirtualScroll:ee,onVirtualScrollEvt:te,scrollTo:ne,setVirtualScrollSize:ie}=A({virtualScrollLength:O,getVirtualScrollTarget:We,getVirtualScrollEl:Ge,virtualScrollItemSizeComputed:X}),re=(0,R.tL)(),oe=(0,i.Fl)((()=>{const t=!0===e.mapOptions&&!0!==e.multiple,n=void 0===e.modelValue||null===e.modelValue&&!0!==t?[]:!0===e.multiple&&Array.isArray(e.modelValue)?e.modelValue:[e.modelValue];if(!0===e.mapOptions&&!0===Array.isArray(e.options)){const i=!0===e.mapOptions&&void 0!==y?y:[],r=n.map((e=>Ee(e,i)));return null===e.modelValue&&!0===t?r.filter((e=>null!==e)):r}return n})),ae=(0,i.Fl)((()=>{const t={};return $.forEach((n=>{const i=e[n];void 0!==i&&(t[n]=i)})),t})),se=(0,i.Fl)((()=>null===e.optionsDark?re.isDark.value:e.optionsDark)),le=(0,i.Fl)((()=>(0,R.yV)(oe.value))),ue=(0,i.Fl)((()=>{let t="q-field__input q-placeholder col";return!0===e.hideSelected||0===oe.value.length?[t,e.inputClass]:(t+=" q-field__input--padding",void 0===e.inputClass?t:[t,e.inputClass])})),ce=(0,i.Fl)((()=>(!0===e.virtualScrollHorizontal?"q-virtual-scroll--horizontal":"")+(e.popupContentClass?" "+e.popupContentClass:""))),he=(0,i.Fl)((()=>0===O.value)),de=(0,i.Fl)((()=>oe.value.map((e=>Me.value(e))).join(", "))),pe=(0,i.Fl)((()=>!0===e.optionsHtml?()=>!0:e=>void 0!==e&&null!==e&&!0===e.html)),fe=(0,i.Fl)((()=>!0===e.displayValueHtml||void 0===e.displayValue&&(!0===e.optionsHtml||oe.value.some(pe.value)))),ge=(0,i.Fl)((()=>!0===re.focused.value?e.tabindex:-1)),ve=(0,i.Fl)((()=>{const t={tabindex:e.tabindex,role:"combobox","aria-label":e.label,"aria-autocomplete":!0===e.useInput?"list":"none","aria-expanded":!0===u.value?"true":"false","aria-owns":`${re.targetUid.value}_lb`,"aria-controls":`${re.targetUid.value}_lb`};return h.value>=0&&(t["aria-activedescendant"]=`${re.targetUid.value}_${h.value}`),t})),ye=(0,i.Fl)((()=>{const t={id:`${re.targetUid.value}_lb`,role:"listbox","aria-multiselectable":!0===e.multiple?"true":"false"};return h.value>=0&&(t["aria-activedescendant"]=`${re.targetUid.value}_${h.value}`),t})),me=(0,i.Fl)((()=>oe.value.map(((e,t)=>({index:t,opt:e,html:pe.value(e),selected:!0,removeAtIndex:De,toggleOption:Pe,tabindex:ge.value}))))),xe=(0,i.Fl)((()=>{if(0===O.value)return[];const{from:t,to:n}=K.value;return e.options.slice(t,n).map(((n,i)=>{const r=!0===Ce.value(n),o=t+i,a={clickable:!0,active:!1,activeClass:we.value,manualFocus:!0,focused:!1,disable:r,tabindex:-1,dense:e.optionsDense,dark:se.value,role:"option",id:`${re.targetUid.value}_${o}`,onClick:()=>{Pe(n)}};return!0!==r&&(!0===Be(n)&&(a.active=!0),h.value===o&&(a.focused=!0),a["aria-selected"]=!0===a.active?"true":"false",!0===l.platform.is.desktop&&(a.onMousemove=()=>{!0===u.value&&Oe(o)})),{index:o,opt:n,html:pe.value(n),label:Me.value(n),selected:a.active,focused:a.focused,toggleOption:Pe,setOptionIndex:Oe,itemProps:a}}))})),_e=(0,i.Fl)((()=>void 0!==e.dropdownIcon?e.dropdownIcon:l.iconSet.arrow.dropdown)),be=(0,i.Fl)((()=>!1===e.optionsCover&&!0!==e.outlined&&!0!==e.standout&&!0!==e.borderless&&!0!==e.rounded)),we=(0,i.Fl)((()=>void 0!==e.optionsSelectedClass?e.optionsSelectedClass:void 0!==e.color?`text-${e.color}`:"")),Se=(0,i.Fl)((()=>Ne(e.optionValue,"value"))),Me=(0,i.Fl)((()=>Ne(e.optionLabel,"label"))),Ce=(0,i.Fl)((()=>Ne(e.optionDisable,"disable"))),Ie=(0,i.Fl)((()=>oe.value.map((e=>Se.value(e))))),Te=(0,i.Fl)((()=>{const e={onInput:Ye,onChange:P,onKeydown:qe,onKeyup:Ve,onKeypress:He,onFocus:Fe,onClick(e){!0===m&&(0,v.sT)(e)}};return e.onCompositionstart=e.onCompositionupdate=e.onCompositionend=P,e}));function ke(t){return!0===e.emitValue?Se.value(t):t}function Ae(t){if(t>-1&&t=e.maxValues)return;const o=e.modelValue.slice();n("add",{index:o.length,value:r}),o.push(r),n("update:modelValue",o)}function Pe(t,i){if(!0!==re.editable.value||void 0===t||!0===Ce.value(t))return;const r=Se.value(t);if(!0!==e.multiple)return!0!==i&&(Xe(!0===e.fillInput?Me.value(t):"",!0,!0),ut()),null!==I.value&&I.value.focus(),void(0!==oe.value.length&&!0===(0,W.xb)(Se.value(oe.value[0]),r)||n("update:modelValue",!0===e.emitValue?r:t));if((!0!==m||!0===p.value)&&re.focus(),Fe(),0===oe.value.length){const i=!0===e.emitValue?r:t;return n("add",{index:0,value:i}),void n("update:modelValue",!0===e.multiple?[i]:i)}const o=e.modelValue.slice(),a=Ie.value.findIndex((e=>(0,W.xb)(e,r)));if(a>-1)n("remove",{index:a,value:o.splice(a,1)[0]});else{if(void 0!==e.maxValues&&o.length>=e.maxValues)return;const i=!0===e.emitValue?r:t;n("add",{index:o.length,value:i}),o.push(i)}n("update:modelValue",o)}function Oe(e){if(!0!==l.platform.is.desktop)return;const t=e>-1&&e=0?Me.value(e.options[i]):b))}}function Ee(t,n){const i=e=>(0,W.xb)(Se.value(e),t);return e.options.find(i)||n.find(i)||t}function Ne(e,t){const n=void 0!==e?e:t;return"function"===typeof n?n:e=>null!==e&&"object"===typeof e&&n in e?e[n]:e}function Be(e){const t=Se.value(e);return void 0!==Ie.value.find((e=>(0,W.xb)(e,t)))}function Fe(t){!0===e.useInput&&null!==I.value&&(void 0===t||I.value===t.target&&t.target.value===de.value)&&I.value.select()}function ze(e){!0===(0,j.So)(e,27)&&!0===u.value&&((0,v.sT)(e),ut(),ct()),n("keyup",e)}function Ve(t){const{value:n}=t.target;if(void 0===t.keyCode)if(t.target.value="",clearTimeout(g),ct(),"string"===typeof n&&n.length>0){const t=n.toLocaleLowerCase(),i=n=>{const i=e.options.find((e=>n.value(e).toLocaleLowerCase()===t));return void 0!==i&&(-1===oe.value.indexOf(i)?Pe(i):ut(),!0)},r=e=>{!0!==i(Se)&&!0!==i(Me)&&!0!==e&&Ke(n,!0,(()=>r(!0)))};r()}else re.clearValue(t);else ze(t)}function He(e){n("keypress",e)}function qe(t){if(n("keydown",t),!0===(0,j.Wm)(t))return;const r=d.value.length>0&&(void 0!==e.newValueMode||void 0!==e.onNewValue),o=!0!==t.shiftKey&&!0!==e.multiple&&(h.value>-1||!0===r);if(27===t.keyCode)return void(0,v.X$)(t);if(9===t.keyCode&&!1===o)return void st();if(void 0===t.target||t.target.id!==re.targetUid.value)return;if(40===t.keyCode&&!0!==re.innerLoading.value&&!1===u.value)return(0,v.NS)(t),void lt();if(8===t.keyCode&&!0!==e.hideSelected&&0===d.value.length)return void(!0===e.multiple&&!0===Array.isArray(e.modelValue)?Ae(e.modelValue.length-1):!0!==e.multiple&&null!==e.modelValue&&n("update:modelValue",null));35!==t.keyCode&&36!==t.keyCode||"string"===typeof d.value&&0!==d.value.length||((0,v.NS)(t),h.value=-1,Re(36===t.keyCode?1:-1,e.multiple)),33!==t.keyCode&&34!==t.keyCode||void 0===J.value||((0,v.NS)(t),h.value=Math.max(-1,Math.min(O.value,h.value+(33===t.keyCode?-1:1)*J.value.view)),Re(33===t.keyCode?1:-1,e.multiple)),38!==t.keyCode&&40!==t.keyCode||((0,v.NS)(t),Re(38===t.keyCode?-1:1,e.multiple));const a=O.value;if((void 0===S||M0&&!0!==e.useInput&&void 0!==t.key&&1===t.key.length&&t.altKey===t.ctrlKey&&(32!==t.keyCode||S.length>0)){!0!==u.value&<(t);const n=t.key.toLocaleLowerCase(),r=1===S.length&&S[0]===n;M=Date.now()+1500,!1===r&&((0,v.NS)(t),S+=n);const o=new RegExp("^"+S.split("").map((e=>Y.indexOf(e)>-1?"\\"+e:e)).join(".*"),"i");let s=h.value;if(!0===r||s<0||!0!==o.test(Me.value(e.options[s])))do{s=(0,U.Uz)(s+1,-1,a-1)}while(s!==h.value&&(!0===Ce.value(e.options[s])||!0!==o.test(Me.value(e.options[s]))));h.value!==s&&(0,i.Y3)((()=>{Oe(s),ne(s),s>=0&&!0===e.useInput&&!0===e.fillInput&&$e(Me.value(e.options[s]))}))}else if(13===t.keyCode||32===t.keyCode&&!0!==e.useInput&&""===S||9===t.keyCode&&!1!==o)if(9!==t.keyCode&&(0,v.NS)(t),h.value>-1&&h.value{if(n){if(!0!==Z(n))return}else n=e.newValueMode;if(void 0===t||null===t)return;Xe("",!0!==e.multiple,!0);const i="toggle"===n?Pe:Le;i(t,"add-unique"===n),!0!==e.multiple&&(null!==I.value&&I.value.focus(),ut())};if(void 0!==e.onNewValue?n("new-value",d.value,t):t(d.value),!0!==e.multiple)return}!0===u.value?st():!0!==re.innerLoading.value&<()}}function Ge(){return!0===m?D.value:null!==T.value&&null!==T.value.__qPortalInnerRef.value?T.value.__qPortalInnerRef.value:void 0}function We(){return Ge()}function Ue(){return!0===e.hideSelected?[]:void 0!==t["selected-item"]?me.value.map((e=>t["selected-item"](e))).slice():void 0!==t.selected?[].concat(t.selected()):!0===e.useChips?me.value.map(((t,n)=>(0,i.h)(N.Z,{key:"option-"+n,removable:!0===re.editable.value&&!0!==Ce.value(t.opt),dense:!0,textColor:e.color,tabindex:ge.value,onRemove(){t.removeAtIndex(n)}},(()=>(0,i.h)("span",{class:"ellipsis",[!0===t.html?"innerHTML":"textContent"]:Me.value(t.opt)}))))):[(0,i.h)("span",{[!0===fe.value?"innerHTML":"textContent"]:void 0!==e.displayValue?e.displayValue:de.value})]}function je(){if(!0===he.value)return void 0!==t["no-option"]?t["no-option"]({inputValue:d.value}):void 0;const e=void 0!==t.option?t.option:e=>(0,i.h)(B.Z,{key:e.index,...e.itemProps},(()=>(0,i.h)(F.Z,(()=>(0,i.h)(z.Z,(()=>(0,i.h)("span",{[!0===e.html?"innerHTML":"textContent"]:e.label})))))));let n=ee("div",xe.value.map(e));return void 0!==t["before-options"]&&(n=t["before-options"]().concat(n)),(0,s.vs)(t["after-options"],n)}function Ze(t,n){const r=!0===n?{...ve.value,...re.splitAttrs.attributes.value}:void 0,o={ref:!0===n?I:void 0,key:"i_t",class:ue.value,style:e.inputStyle,value:void 0!==d.value?d.value:"",type:"search",...r,id:!0===n?re.targetUid.value:void 0,maxlength:e.maxlength,autocomplete:e.autocomplete,"data-autofocus":!0!==t&&!0===e.autofocus||void 0,disabled:!0===e.disable,readonly:!0===e.readonly,...Te.value};return!0!==t&&!0===m&&(!0===Array.isArray(o.class)?o.class=[...o.class,"no-pointer-events"]:o.class+=" no-pointer-events"),(0,i.h)("input",o)}function Ye(t){clearTimeout(g),t&&t.target&&!0===t.target.qComposing||($e(t.target.value||""),x=!0,b=d.value,!0===re.focused.value||!0===m&&!0!==p.value||re.focus(),void 0!==e.onFilter&&(g=setTimeout((()=>{Ke(d.value)}),e.inputDebounce)))}function $e(e){d.value!==e&&(d.value=e,n("input-value",e))}function Xe(t,n,i){x=!0!==i,!0===e.useInput&&($e(t),!0!==n&&!0===i||(b=t),!0!==n&&Ke(t))}function Ke(t,r,o){if(void 0===e.onFilter||!0!==r&&!0!==re.focused.value)return;!0===re.innerLoading.value?n("filter-abort"):(re.innerLoading.value=!0,f.value=!0),""!==t&&!0!==e.multiple&&oe.value.length>0&&!0!==x&&t===Me.value(oe.value[0])&&(t="");const s=setTimeout((()=>{!0===u.value&&(u.value=!1)}),10);clearTimeout(_),_=s,n("filter",t,((e,t)=>{!0!==r&&!0!==re.focused.value||_!==s||(clearTimeout(_),"function"===typeof e&&e(),f.value=!1,(0,i.Y3)((()=>{re.innerLoading.value=!1,!0===re.editable.value&&(!0===r?!0===u.value&&ut():!0===u.value?ht(!0):u.value=!0),"function"===typeof t&&(0,i.Y3)((()=>{t(a)})),"function"===typeof o&&(0,i.Y3)((()=>{o(a)}))})))}),(()=>{!0===re.focused.value&&_===s&&(clearTimeout(_),re.innerLoading.value=!1,f.value=!1),!0===u.value&&(u.value=!1)}))}function Je(){return(0,i.h)(V.Z,{ref:T,class:ce.value,style:e.popupContentStyle,modelValue:u.value,fit:!0!==e.menuShrink,cover:!0===e.optionsCover&&!0!==he.value&&!0!==e.useInput,anchor:e.menuAnchor,self:e.menuSelf,offset:e.menuOffset,dark:se.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,square:be.value,transitionShow:e.transitionShow,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,separateClosePopup:!0,...ye.value,onScrollPassive:te,onBeforeShow:ft,onBeforeHide:Qe,onShow:et},je)}function Qe(e){gt(e),st()}function et(){ie()}function tt(e){(0,v.sT)(e),null!==I.value&&I.value.focus(),p.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function nt(e){(0,v.sT)(e),(0,i.Y3)((()=>{p.value=!1}))}function it(){const n=[(0,i.h)(E,{class:`col-auto ${re.fieldClass.value}`,...ae.value,for:re.targetUid.value,dark:se.value,square:!0,loading:f.value,itemAligned:!1,filled:!0,stackLabel:d.value.length>0,...re.splitAttrs.listeners.value,onFocus:tt,onBlur:nt},{...t,rawControl:()=>re.getControl(!0),before:void 0,after:void 0})];return!0===u.value&&n.push((0,i.h)("div",{ref:D,class:ce.value+" scroll",style:e.popupContentStyle,...ye.value,onClick:v.X$,onScrollPassive:te},je())),(0,i.h)(H.Z,{ref:k,modelValue:c.value,position:!0===e.useInput?"top":void 0,transitionShow:w,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,onBeforeShow:ft,onBeforeHide:rt,onHide:ot,onShow:at},(()=>(0,i.h)("div",{class:"q-select__dialog"+(!0===se.value?" q-select__dialog--dark q-dark":"")+(!0===p.value?" q-select__dialog--focused":"")},n)))}function rt(e){gt(e),null!==k.value&&k.value.__updateRefocusTarget(re.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),re.focused.value=!1}function ot(e){ut(),!1===re.focused.value&&n("blur",e),ct()}function at(){const e=document.activeElement;null!==e&&e.id===re.targetUid.value||null===I.value||I.value===e||I.value.focus(),ie()}function st(){!0!==c.value&&(h.value=-1,!0===u.value&&(u.value=!1),!1===re.focused.value&&(clearTimeout(_),_=void 0,!0===re.innerLoading.value&&(n("filter-abort"),re.innerLoading.value=!1,f.value=!1)))}function lt(n){!0===re.editable.value&&(!0===m?(re.onControlFocusin(n),c.value=!0,(0,i.Y3)((()=>{re.focus()}))):re.focus(),void 0!==e.onFilter?Ke(d.value):!0===he.value&&void 0===t["no-option"]||(u.value=!0))}function ut(){c.value=!1,st()}function ct(){!0===e.useInput&&Xe(!0!==e.multiple&&!0===e.fillInput&&oe.value.length>0&&Me.value(oe.value[0])||"",!0,!0)}function ht(t){let n=-1;if(!0===t){if(oe.value.length>0){const t=Se.value(oe.value[0]);n=e.options.findIndex((e=>(0,W.xb)(Se.value(e),t)))}Q(n)}Oe(n)}function dt(e,t){!0===u.value&&!1===re.innerLoading.value&&(Q(-1,!0),(0,i.Y3)((()=>{!0===u.value&&!1===re.innerLoading.value&&(e>t?Q():ht(!0))})))}function pt(){!1===c.value&&null!==T.value&&T.value.updatePosition()}function ft(e){void 0!==e&&(0,v.sT)(e),n("popup-show",e),re.hasPopupOpen=!0,re.onControlFocusin(e)}function gt(e){void 0!==e&&(0,v.sT)(e),n("popup-hide",e),re.hasPopupOpen=!1,re.onControlFocusout(e)}function vt(){m=(!0===l.platform.is.mobile||"dialog"===e.behavior)&&("menu"!==e.behavior&&(!0!==e.useInput||(void 0!==t["no-option"]||void 0!==e.onFilter||!1===he.value))),w=!0===l.platform.is.ios&&!0===m&&!0===e.useInput?"fade":e.transitionShow}return(0,i.YP)(oe,(t=>{y=t,!0===e.useInput&&!0===e.fillInput&&!0!==e.multiple&&!0!==re.innerLoading.value&&(!0!==c.value&&!0!==u.value||!0!==le.value)&&(!0!==x&&ct(),!0!==c.value&&!0!==u.value||Ke(""))}),{immediate:!0}),(0,i.YP)((()=>e.fillInput),ct),(0,i.YP)(u,ht),(0,i.YP)(O,dt),(0,i.Xn)(vt),(0,i.ic)(pt),vt(),(0,i.Jd)((()=>{clearTimeout(g)})),Object.assign(a,{showPopup:lt,hidePopup:ut,removeAtIndex:Ae,add:Le,toggleOption:Pe,getOptionIndex:()=>h.value,setOptionIndex:Oe,moveOptionSelection:Re,filter:Ke,updateMenuPosition:pt,updateInputValue:Xe,isOptionSelected:Be,getEmittingOptionValue:ke,isOptionDisabled:(...e)=>!0===Ce.value.apply(null,e),getOptionValue:(...e)=>Se.value.apply(null,e),getOptionLabel:(...e)=>Me.value.apply(null,e)}),Object.assign(re,{innerValue:oe,fieldClass:(0,i.Fl)((()=>`q-select q-field--auto-height q-select--with${!0!==e.useInput?"out":""}-input q-select--with${!0!==e.useChips?"out":""}-chips q-select--`+(!0===e.multiple?"multiple":"single"))),inputRef:C,targetRef:I,hasValue:le,showPopup:lt,floatingLabel:(0,i.Fl)((()=>!0!==e.hideSelected&&!0===le.value||"number"===typeof d.value||d.value.length>0||(0,R.yV)(e.displayValue))),getControlChild:()=>{if(!1!==re.editable.value&&(!0===c.value||!0!==he.value||void 0!==t["no-option"]))return!0===m?it():Je();!0===re.hasPopupOpen&&(re.hasPopupOpen=!1)},controlEvents:{onFocusin(e){re.onControlFocusin(e)},onFocusout(e){re.onControlFocusout(e,(()=>{ct(),st()}))},onClick(e){if((0,v.X$)(e),!0!==m&&!0===u.value)return st(),void(null!==I.value&&I.value.focus());lt(e)}},getControl:t=>{const n=Ue(),r=!0===t||!0!==c.value||!0!==m;if(!0===e.useInput)n.push(Ze(t,r));else if(!0===re.editable.value){const o=!0===r?ve.value:void 0;n.push((0,i.h)("input",{ref:!0===r?I:void 0,key:"d_t",class:"q-select__focus-target",id:!0===r?re.targetUid.value:void 0,readonly:!0,"data-autofocus":!0!==t&&!0===e.autofocus||void 0,...o,onKeydown:qe,onKeyup:ze,onKeypress:He})),!0===r&&"string"===typeof e.autocomplete&&e.autocomplete.length>0&&n.push((0,i.h)("input",{class:"q-select__autocomplete-input",autocomplete:e.autocomplete,onKeyup:Ve}))}if(void 0!==L.value&&!0!==e.disable&&Ie.value.length>0){const t=Ie.value.map((e=>(0,i.h)("option",{value:e,selected:!0})));n.push((0,i.h)("select",{class:"hidden",name:L.value,multiple:e.multiple},t))}const o=!0===e.useInput||!0!==r?void 0:re.splitAttrs.attributes.value;return(0,i.h)("div",{class:"q-field__native row items-center",...o},n)},getInnerAppend:()=>!0!==e.loading&&!0!==f.value&&!0!==e.hideDropdownIcon?[(0,i.h)(o.Z,{class:"q-select__dropdown-icon"+(!0===u.value?" rotate-180":""),name:_e.value})]:null}),(0,R.ZP)(re)}});var K=n(2417);const J={xs:2,sm:4,md:6,lg:10,xl:14};function Q(e,t,n){return{transform:!0===t?`translateX(${!0===n.lang.rtl?"-":""}100%) scale3d(${-e},1,1)`:`scale3d(${e},1,1)`}}const ee=(0,a.L)({name:"QLinearProgress",props:{...h.S,...K.LU,value:{type:Number,default:0},buffer:Number,color:String,trackColor:String,reverse:Boolean,stripe:Boolean,indeterminate:Boolean,query:Boolean,rounded:Boolean,animationSpeed:{type:[String,Number],default:2100},instantFeedback:Boolean},setup(e,{slots:t}){const{proxy:n}=(0,i.FN)(),r=(0,h.Z)(e,n.$q),o=(0,K.ZP)(e,J),a=(0,i.Fl)((()=>!0===e.indeterminate||!0===e.query)),l=(0,i.Fl)((()=>e.reverse!==e.query)),u=(0,i.Fl)((()=>({...null!==o.value?o.value:{},"--q-linear-progress-speed":`${e.animationSpeed}ms`}))),c=(0,i.Fl)((()=>"q-linear-progress"+(void 0!==e.color?` text-${e.color}`:"")+(!0===e.reverse||!0===e.query?" q-linear-progress--reverse":"")+(!0===e.rounded?" rounded-borders":""))),d=(0,i.Fl)((()=>Q(void 0!==e.buffer?e.buffer:1,l.value,n.$q))),p=(0,i.Fl)((()=>`q-linear-progress__track absolute-full q-linear-progress__track--with${!0===e.instantFeedback?"out":""}-transition q-linear-progress__track--`+(!0===r.value?"dark":"light")+(void 0!==e.trackColor?` bg-${e.trackColor}`:""))),f=(0,i.Fl)((()=>Q(!0===a.value?1:e.value,l.value,n.$q))),g=(0,i.Fl)((()=>`q-linear-progress__model absolute-full q-linear-progress__model--with${!0===e.instantFeedback?"out":""}-transition q-linear-progress__model--${!0===a.value?"in":""}determinate`)),v=(0,i.Fl)((()=>({width:100*e.value+"%"}))),y=(0,i.Fl)((()=>"q-linear-progress__stripe absolute-"+(!0===e.reverse?"right":"left")));return()=>{const n=[(0,i.h)("div",{class:p.value,style:d.value}),(0,i.h)("div",{class:g.value,style:f.value})];return!0===e.stripe&&!1===a.value&&n.push((0,i.h)("div",{class:y.value,style:v.value})),(0,i.h)("div",{class:c.value,style:u.value,role:"progressbar","aria-valuemin":0,"aria-valuemax":1,"aria-valuenow":!0===e.indeterminate?void 0:e.value},(0,s.vs)(t.default,n))}}});function te(e,t){const n=(0,r.iH)(null),o=(0,i.Fl)((()=>!0===e.disable?null:(0,i.h)("span",{ref:n,class:"no-outline",tabindex:-1})));function a(e){const i=t.value;void 0!==e&&0===e.type.indexOf("key")?null!==i&&document.activeElement!==i&&!0===i.contains(document.activeElement)&&i.focus():null!==n.value&&(void 0===e||null!==i&&!0===i.contains(e.target))&&n.value.focus()}return{refocusTargetEl:o,refocusTarget:a}}const ne={xs:30,sm:35,md:40,lg:50,xl:60},ie={...h.S,...K.LU,...q.Fz,modelValue:{required:!0,default:null},val:{},trueValue:{default:!0},falseValue:{default:!1},indeterminateValue:{default:null},checkedIcon:String,uncheckedIcon:String,indeterminateIcon:String,toggleOrder:{type:String,validator:e=>"tf"===e||"ft"===e},toggleIndeterminate:Boolean,label:String,leftLabel:Boolean,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},re=["update:modelValue"];function oe(e,t){const{props:n,slots:o,emit:a,proxy:l}=(0,i.FN)(),{$q:u}=l,c=(0,h.Z)(n,u),d=(0,r.iH)(null),{refocusTargetEl:p,refocusTarget:f}=te(n,d),g=(0,K.ZP)(n,ne),y=(0,i.Fl)((()=>void 0!==n.val&&Array.isArray(n.modelValue))),m=(0,i.Fl)((()=>{const e=(0,r.IU)(n.val);return!0===y.value?n.modelValue.findIndex((t=>(0,r.IU)(t)===e)):-1})),x=(0,i.Fl)((()=>!0===y.value?m.value>-1:(0,r.IU)(n.modelValue)===(0,r.IU)(n.trueValue))),_=(0,i.Fl)((()=>!0===y.value?-1===m.value:(0,r.IU)(n.modelValue)===(0,r.IU)(n.falseValue))),b=(0,i.Fl)((()=>!1===x.value&&!1===_.value)),w=(0,i.Fl)((()=>!0===n.disable?-1:n.tabindex||0)),S=(0,i.Fl)((()=>`q-${e} cursor-pointer no-outline row inline no-wrap items-center`+(!0===n.disable?" disabled":"")+(!0===c.value?` q-${e}--dark`:"")+(!0===n.dense?` q-${e}--dense`:"")+(!0===n.leftLabel?" reverse":""))),M=(0,i.Fl)((()=>{const t=!0===x.value?"truthy":!0===_.value?"falsy":"indet",i=void 0===n.color||!0!==n.keepColor&&("toggle"===e?!0!==x.value:!0===_.value)?"":` text-${n.color}`;return`q-${e}__inner relative-position non-selectable q-${e}__inner--${t}${i}`})),C=(0,i.Fl)((()=>{const e={type:"checkbox"};return void 0!==n.name&&Object.assign(e,{"^checked":!0===x.value?"checked":void 0,name:n.name,value:!0===y.value?n.val:n.trueValue}),e})),I=(0,q.eX)(C),T=(0,i.Fl)((()=>{const e={tabindex:w.value,role:"checkbox","aria-label":n.label,"aria-checked":!0===b.value?"mixed":!0===x.value?"true":"false"};return!0===n.disable&&(e["aria-disabled"]="true"),e}));function k(e){void 0!==e&&((0,v.NS)(e),f(e)),!0!==n.disable&&a("update:modelValue",A(),e)}function A(){if(!0===y.value){if(!0===x.value){const e=n.modelValue.slice();return e.splice(m.value,1),e}return n.modelValue.concat([n.val])}if(!0===x.value){if("ft"!==n.toggleOrder||!1===n.toggleIndeterminate)return n.falseValue}else{if(!0!==_.value)return"ft"!==n.toggleOrder?n.trueValue:n.falseValue;if("ft"===n.toggleOrder||!1===n.toggleIndeterminate)return n.trueValue}return n.indeterminateValue}function D(e){13!==e.keyCode&&32!==e.keyCode||(0,v.NS)(e)}function L(e){13!==e.keyCode&&32!==e.keyCode||k(e)}const P=t(x,b);return Object.assign(l,{toggle:k}),()=>{const t=P();!0!==n.disable&&I(t,"unshift",` q-${e}__native absolute q-ma-none q-pa-none`);const r=[(0,i.h)("div",{class:M.value,style:g.value},t)];null!==p.value&&r.push(p.value);const a=void 0!==n.label?(0,s.vs)(o.default,[n.label]):(0,s.KR)(o.default);return void 0!==a&&r.push((0,i.h)("div",{class:`q-${e}__label q-anchor--skip`},a)),(0,i.h)("div",{ref:d,class:S.value,...T.value,onClick:k,onKeydown:D,onKeyup:L},r)}}const ae=(0,i.h)("div",{key:"svg",class:"q-checkbox__bg absolute"},[(0,i.h)("svg",{class:"q-checkbox__svg fit absolute-full",viewBox:"0 0 24 24","aria-hidden":"true"},[(0,i.h)("path",{class:"q-checkbox__truthy",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}),(0,i.h)("path",{class:"q-checkbox__indet",d:"M4,14H20V10H4"})])]),se=(0,a.L)({name:"QCheckbox",props:ie,emits:re,setup(e){function t(t,n){const r=(0,i.Fl)((()=>(!0===t.value?e.checkedIcon:!0===n.value?e.indeterminateIcon:e.uncheckedIcon)||null));return()=>null!==r.value?[(0,i.h)("div",{key:"icon",class:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[(0,i.h)(o.Z,{class:"q-checkbox__icon",name:r.value})])]:[ae]}return oe("checkbox",t)}});var le=n(8240),ue=n(6583),ce=n(7445);let he=0;const de={fullscreen:Boolean,noRouteFullscreenExit:Boolean},pe=["update:fullscreen","fullscreen"];function fe(){const e=(0,i.FN)(),{props:t,emit:n,proxy:o}=e;let a,s,l;const u=(0,r.iH)(!1);function c(){!0===u.value?d():h()}function h(){!0!==u.value&&(u.value=!0,l=o.$el.parentNode,l.replaceChild(s,o.$el),document.body.appendChild(o.$el),he++,1===he&&document.body.classList.add("q-body--fullscreen-mixin"),a={handler:d},ue.Z.add(a))}function d(){!0===u.value&&(void 0!==a&&(ue.Z.remove(a),a=void 0),l.replaceChild(o.$el,s),u.value=!1,he=Math.max(0,he-1),0===he&&(document.body.classList.remove("q-body--fullscreen-mixin"),void 0!==o.$el.scrollIntoView&&setTimeout((()=>{o.$el.scrollIntoView()}))))}return!0===(0,ce.Rb)(e)&&(0,i.YP)((()=>o.$route.fullPath),(()=>{!0!==t.noRouteFullscreenExit&&d()})),(0,i.YP)((()=>t.fullscreen),(e=>{u.value!==e&&c()})),(0,i.YP)(u,(e=>{n("update:fullscreen",e),n("fullscreen",e)})),(0,i.wF)((()=>{s=document.createElement("span")})),(0,i.bv)((()=>{!0===t.fullscreen&&h()})),(0,i.Jd)(d),Object.assign(o,{toggleFullscreen:c,setFullscreen:h,exitFullscreen:d}),{inFullscreen:u,toggleFullscreen:c}}function ge(e,t){return new Date(e)-new Date(t)}const ve={sortMethod:Function,binaryStateSort:Boolean,columnSortOrder:{type:String,validator:e=>"ad"===e||"da"===e,default:"ad"}};function ye(e,t,n,r){const o=(0,i.Fl)((()=>{const{sortBy:e}=t.value;return e&&n.value.find((t=>t.name===e))||null})),a=(0,i.Fl)((()=>void 0!==e.sortMethod?e.sortMethod:(e,t,i)=>{const r=n.value.find((e=>e.name===t));if(void 0===r||void 0===r.field)return e;const o=!0===i?-1:1,a="function"===typeof r.field?e=>r.field(e):e=>e[r.field];return e.sort(((e,t)=>{let n=a(e),i=a(t);return null===n||void 0===n?-1*o:null===i||void 0===i?1*o:void 0!==r.sort?r.sort(n,i,e,t)*o:!0===(0,W.hj)(n)&&!0===(0,W.hj)(i)?(n-i)*o:!0===(0,W.J_)(n)&&!0===(0,W.J_)(i)?ge(n,i)*o:"boolean"===typeof n&&"boolean"===typeof i?(n-i)*o:([n,i]=[n,i].map((e=>(e+"").toLocaleString().toLowerCase())),ne.name===i));void 0!==e&&e.sortOrder&&(o=e.sortOrder)}let{sortBy:a,descending:s}=t.value;a!==i?(a=i,s="da"===o):!0===e.binaryStateSort?s=!s:!0===s?"ad"===o?a=null:s=!1:"ad"===o?s=!0:a=null,r({sortBy:a,descending:s,page:1})}return{columnToSort:o,computedSortMethod:a,sort:s}}const me={filter:[String,Object],filterMethod:Function};function xe(e,t){const n=(0,i.Fl)((()=>void 0!==e.filterMethod?e.filterMethod:(e,t,n,i)=>{const r=t?t.toLowerCase():"";return e.filter((e=>n.some((t=>{const n=i(t,e)+"",o="undefined"===n||"null"===n?"":n.toLowerCase();return-1!==o.indexOf(r)}))))}));return(0,i.YP)((()=>e.filter),(()=>{(0,i.Y3)((()=>{t({page:1},!0)}))}),{deep:!0}),{computedFilterMethod:n}}function _e(e,t){for(const n in t)if(t[n]!==e[n])return!1;return!0}function be(e){return e.page<1&&(e.page=1),void 0!==e.rowsPerPage&&e.rowsPerPage<1&&(e.rowsPerPage=0),e}const we={pagination:Object,rowsPerPageOptions:{type:Array,default:()=>[5,7,10,15,20,25,50,0]},"onUpdate:pagination":[Function,Array]};function Se(e,t){const{props:n,emit:o}=e,a=(0,r.iH)(Object.assign({sortBy:null,descending:!1,page:1,rowsPerPage:n.rowsPerPageOptions.length>0?n.rowsPerPageOptions[0]:5},n.pagination)),s=(0,i.Fl)((()=>{const e=void 0!==n["onUpdate:pagination"]?{...a.value,...n.pagination}:a.value;return be(e)})),l=(0,i.Fl)((()=>void 0!==s.value.rowsNumber));function u(e){c({pagination:e,filter:n.filter})}function c(e={}){(0,i.Y3)((()=>{o("request",{pagination:e.pagination||s.value,filter:e.filter||n.filter,getCellValue:t})}))}function h(e,t){const i=be({...s.value,...e});!0!==_e(s.value,i)?!0!==l.value?void 0!==n.pagination&&void 0!==n["onUpdate:pagination"]?o("update:pagination",i):a.value=i:u(i):!0===l.value&&!0===t&&u(i)}return{innerPagination:a,computedPagination:s,isServerSide:l,requestServerInteraction:c,setPagination:h}}function Me(e,t,n,r,o,a){const{props:s,emit:l,proxy:{$q:u}}=e,c=(0,i.Fl)((()=>!0===r.value?n.value.rowsNumber||0:a.value)),h=(0,i.Fl)((()=>{const{page:e,rowsPerPage:t}=n.value;return(e-1)*t})),d=(0,i.Fl)((()=>{const{page:e,rowsPerPage:t}=n.value;return e*t})),p=(0,i.Fl)((()=>1===n.value.page)),f=(0,i.Fl)((()=>0===n.value.rowsPerPage?1:Math.max(1,Math.ceil(c.value/n.value.rowsPerPage)))),g=(0,i.Fl)((()=>0===d.value||n.value.page>=f.value)),v=(0,i.Fl)((()=>{const e=s.rowsPerPageOptions.includes(t.value.rowsPerPage)?s.rowsPerPageOptions:[t.value.rowsPerPage].concat(s.rowsPerPageOptions);return e.map((e=>({label:0===e?u.lang.table.allRows:""+e,value:e})))}));function y(){o({page:1})}function m(){const{page:e}=n.value;e>1&&o({page:e-1})}function x(){const{page:e,rowsPerPage:t}=n.value;d.value>0&&e*t{if(e===t)return;const i=n.value.page;e&&!i?o({page:1}):e["single","multiple","none"].includes(e)},selected:{type:Array,default:()=>[]}},Ie=["update:selected","selection"];function Te(e,t,n,r){const o=(0,i.Fl)((()=>{const t={};return e.selected.map(r.value).forEach((e=>{t[e]=!0})),t})),a=(0,i.Fl)((()=>"none"!==e.selection)),s=(0,i.Fl)((()=>"single"===e.selection)),l=(0,i.Fl)((()=>"multiple"===e.selection)),u=(0,i.Fl)((()=>n.value.length>0&&n.value.every((e=>!0===o.value[r.value(e)])))),c=(0,i.Fl)((()=>!0!==u.value&&n.value.some((e=>!0===o.value[r.value(e)])))),h=(0,i.Fl)((()=>e.selected.length));function d(e){return!0===o.value[e]}function p(){t("update:selected",[])}function f(n,i,o,a){t("selection",{rows:i,added:o,keys:n,evt:a});const l=!0===s.value?!0===o?i:[]:!0===o?e.selected.concat(i):e.selected.filter((e=>!1===n.includes(r.value(e))));t("update:selected",l)}return{hasSelectionMode:a,singleSelection:s,multipleSelection:l,allRowsSelected:u,someRowsSelected:c,rowsSelectedNumber:h,isRowSelected:d,clearSelection:p,updateSelection:f}}function ke(e){return Array.isArray(e)?e.slice():[]}const Ae={expanded:Array},De=["update:expanded"];function Le(e,t){const n=(0,r.iH)(ke(e.expanded));function o(e){return n.value.includes(e)}function a(i){void 0!==e.expanded?t("update:expanded",i):n.value=i}function s(e,t){const i=n.value.slice(),r=i.indexOf(e);!0===t?-1===r&&(i.push(e),a(i)):-1!==r&&(i.splice(r,1),a(i))}return(0,i.YP)((()=>e.expanded),(e=>{n.value=ke(e)})),{isRowExpanded:o,setExpanded:a,updateExpanded:s}}const Pe={visibleColumns:Array};function Oe(e,t,n){const r=(0,i.Fl)((()=>{if(void 0!==e.columns)return e.columns;const t=e.rows[0];return void 0!==t?Object.keys(t).map((e=>({name:e,label:e.toUpperCase(),field:e,align:(0,W.hj)(t[e])?"right":"left",sortable:!0}))):[]})),o=(0,i.Fl)((()=>{const{sortBy:n,descending:i}=t.value,o=void 0!==e.visibleColumns?r.value.filter((t=>!0===t.required||!0===e.visibleColumns.includes(t.name))):r.value;return o.map((e=>{const t=e.align||"right",r=`text-${t}`;return{...e,align:t,__iconClass:`q-table__sort-icon q-table__sort-icon--${t}`,__thClass:r+(void 0!==e.headerClasses?" "+e.headerClasses:"")+(!0===e.sortable?" sortable":"")+(e.name===n?" sorted "+(!0===i?"sort-desc":""):""),__tdStyle:void 0!==e.style?"function"!==typeof e.style?()=>e.style:e.style:()=>null,__tdClass:void 0!==e.classes?"function"!==typeof e.classes?()=>r+" "+e.classes:t=>r+" "+e.classes(t):()=>r}}))})),a=(0,i.Fl)((()=>{const e={};return o.value.forEach((t=>{e[t.name]=t})),e})),s=(0,i.Fl)((()=>void 0!==e.tableColspan?e.tableColspan:o.value.length+(!0===n.value?1:0)));return{colList:r,computedCols:o,computedColsMap:a,computedColspan:s}}var Re=n(9085);const Ee="q-table__bottom row items-center",Ne={};T.forEach((e=>{Ne[e]={}}));const Be=(0,a.L)({name:"QTable",props:{rows:{type:Array,default:()=>[]},rowKey:{type:[String,Function],default:"id"},columns:Array,loading:Boolean,iconFirstPage:String,iconPrevPage:String,iconNextPage:String,iconLastPage:String,title:String,hideHeader:Boolean,grid:Boolean,gridHeader:Boolean,dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,separator:{type:String,default:"horizontal",validator:e=>["horizontal","vertical","cell","none"].includes(e)},wrapCells:Boolean,virtualScroll:Boolean,virtualScrollTarget:{default:void 0},...Ne,noDataLabel:String,noResultsLabel:String,loadingLabel:String,selectedRowsLabel:Function,rowsPerPageLabel:String,paginationLabel:Function,color:{type:String,default:"grey-8"},titleClass:[String,Array,Object],tableStyle:[String,Array,Object],tableClass:[String,Array,Object],tableHeaderStyle:[String,Array,Object],tableHeaderClass:[String,Array,Object],cardContainerClass:[String,Array,Object],cardContainerStyle:[String,Array,Object],cardStyle:[String,Array,Object],cardClass:[String,Array,Object],hideBottom:Boolean,hideSelectedBanner:Boolean,hideNoData:Boolean,hidePagination:Boolean,onRowClick:Function,onRowDblclick:Function,onRowContextmenu:Function,...h.S,...de,...Pe,...me,...we,...Ae,...Ce,...ve},emits:["request","virtual-scroll",...pe,...De,...Ie],setup(e,{slots:t,emit:n}){const a=(0,i.FN)(),{proxy:{$q:s}}=a,c=(0,h.Z)(e,s),{inFullscreen:d,toggleFullscreen:p}=fe(),g=(0,i.Fl)((()=>"function"===typeof e.rowKey?e.rowKey:t=>t[e.rowKey])),v=(0,r.iH)(null),y=(0,r.iH)(null),m=(0,i.Fl)((()=>!0!==e.grid&&!0===e.virtualScroll)),x=(0,i.Fl)((()=>" q-table__card"+(!0===c.value?" q-table__card--dark q-dark":"")+(!0===e.square?" q-table--square":"")+(!0===e.flat?" q-table--flat":"")+(!0===e.bordered?" q-table--bordered":""))),_=(0,i.Fl)((()=>`q-table__container q-table--${e.separator}-separator column no-wrap`+(!0===e.grid?" q-table--grid":x.value)+(!0===c.value?" q-table--dark":"")+(!0===e.dense?" q-table--dense":"")+(!1===e.wrapCells?" q-table--no-wrap":"")+(!0===d.value?" fullscreen scroll":""))),b=(0,i.Fl)((()=>_.value+(!0===e.loading?" q-table--loading":"")));(0,i.YP)((()=>e.tableStyle+e.tableClass+e.tableHeaderStyle+e.tableHeaderClass+_.value),(()=>{!0===m.value&&null!==y.value&&y.value.reset()}));const{innerPagination:w,computedPagination:S,isServerSide:M,requestServerInteraction:C,setPagination:I}=Se(a,Ne),{computedFilterMethod:k}=xe(e,I),{isRowExpanded:A,setExpanded:D,updateExpanded:L}=Le(e,n),P=(0,i.Fl)((()=>{let t=e.rows;if(!0===M.value||0===t.length)return t;const{sortBy:n,descending:i}=S.value;return e.filter&&(t=k.value(t,e.filter,j.value,Ne)),null!==$.value&&(t=K.value(e.rows===t?t.slice():t,n,i)),t})),R=(0,i.Fl)((()=>P.value.length)),E=(0,i.Fl)((()=>{let t=P.value;if(!0===M.value)return t;const{rowsPerPage:n}=S.value;return 0!==n&&(0===Q.value&&e.rows!==t?t.length>te.value&&(t=t.slice(0,te.value)):t=t.slice(Q.value,te.value)),t})),{hasSelectionMode:N,singleSelection:B,multipleSelection:F,allRowsSelected:z,someRowsSelected:V,rowsSelectedNumber:H,isRowSelected:q,clearSelection:G,updateSelection:W}=Te(e,n,E,g),{colList:U,computedCols:j,computedColsMap:Z,computedColspan:Y}=Oe(e,S,N),{columnToSort:$,computedSortMethod:K,sort:J}=ye(e,S,U,I),{firstRowIndex:Q,lastRowIndex:te,isFirstPage:ne,isLastPage:ie,pagesNumber:re,computedRowsPerPageOptions:oe,computedRowsNumber:ae,firstPage:ue,prevPage:ce,nextPage:he,lastPage:de}=Me(a,w,S,M,I,R),pe=(0,i.Fl)((()=>0===E.value.length)),ge=(0,i.Fl)((()=>{const t={};return T.forEach((n=>{t[n]=e[n]})),void 0===t.virtualScrollItemSize&&(t.virtualScrollItemSize=!0===e.dense?28:48),t}));function ve(){!0===m.value&&y.value.reset()}function me(){if(!0===e.grid)return $e();const n=!0!==e.hideHeader?Ve:null;if(!0===m.value){const r=t["top-row"],o=t["bottom-row"],a={default:e=>Ce(e.item,t.body,e.index)};if(void 0!==r){const e=(0,i.h)("tbody",r({cols:j.value}));a.before=null===n?()=>e:()=>[n()].concat(e)}else null!==n&&(a.before=n);return void 0!==o&&(a.after=()=>(0,i.h)("tbody",o({cols:j.value}))),(0,i.h)(O,{ref:y,class:e.tableClass,style:e.tableStyle,...ge.value,scrollTarget:e.virtualScrollTarget,items:E.value,type:"__qtable",tableColspan:Y.value,onVirtualScroll:be},a)}const r=[Ie()];return null!==n&&r.unshift(n()),f({class:["q-table__middle scroll",e.tableClass],style:e.tableStyle},r)}function _e(e,t){if(null!==y.value)return void y.value.scrollTo(e,t);e=parseInt(e,10);const i=v.value.querySelector(`tbody tr:nth-of-type(${e+1})`);if(null!==i){const t=v.value.querySelector(".q-table__middle.scroll"),{offsetTop:r}=i,o=r{const n=t[`body-cell-${e.name}`],o=void 0!==n?n:u;return void 0!==o?o(Ae({key:s,row:r,pageIndex:a,col:e})):(0,i.h)("td",{class:e.__tdClass(r),style:e.__tdStyle(r)},Ne(e,r))}));if(!0===N.value){const n=t["body-selection"],o=void 0!==n?n(De({key:s,row:r,pageIndex:a})):[(0,i.h)(se,{modelValue:l,color:e.color,dark:c.value,dense:e.dense,"onUpdate:modelValue":(e,t)=>{W([s],[r],e,t)}})];h.unshift((0,i.h)("td",{class:"q-table--col-auto-width"},o))}const d={key:s,class:{selected:l}};return void 0!==e.onRowClick&&(d.class["cursor-pointer"]=!0,d.onClick=e=>{n("RowClick",e,r,a)}),void 0!==e.onRowDblclick&&(d.class["cursor-pointer"]=!0,d.onDblclick=e=>{n("RowDblclick",e,r,a)}),void 0!==e.onRowContextmenu&&(d.class["cursor-pointer"]=!0,d.onContextmenu=e=>{n("RowContextmenu",e,r,a)}),(0,i.h)("tr",d,h)}function Ie(){const e=t.body,n=t["top-row"],r=t["bottom-row"];let o=E.value.map(((t,n)=>Ce(t,e,n)));return void 0!==n&&(o=n({cols:j.value}).concat(o)),void 0!==r&&(o=o.concat(r({cols:j.value}))),(0,i.h)("tbody",o)}function ke(e){return Pe(e),e.cols=e.cols.map((t=>{const n={...t};return(0,Re.g)(n,"value",(()=>Ne(t,e.row))),n})),e}function Ae(e){return Pe(e),(0,Re.g)(e,"value",(()=>Ne(e.col,e.row))),e}function De(e){return Pe(e),e}function Pe(t){Object.assign(t,{cols:j.value,colsMap:Z.value,sort:J,rowIndex:Q.value+t.pageIndex,color:e.color,dark:c.value,dense:e.dense}),!0===N.value&&(0,Re.g)(t,"selected",(()=>q(t.key)),((e,n)=>{W([t.key],[t.row],e,n)})),(0,Re.g)(t,"expand",(()=>A(t.key)),(e=>{L(t.key,e)}))}function Ne(e,t){const n="function"===typeof e.field?e.field(t):t[e.field];return void 0!==e.format?e.format(n,t):n}const Be=(0,i.Fl)((()=>({pagination:S.value,pagesNumber:re.value,isFirstPage:ne.value,isLastPage:ie.value,firstPage:ue,prevPage:ce,nextPage:he,lastPage:de,inFullscreen:d.value,toggleFullscreen:p})));function Fe(){const n=t.top,r=t["top-left"],o=t["top-right"],a=t["top-selection"],s=!0===N.value&&void 0!==a&&H.value>0,l="q-table__top relative-position row items-center";if(void 0!==n)return(0,i.h)("div",{class:l},[n(Be.value)]);let u;return!0===s?u=a(Be.value).slice():(u=[],void 0!==r?u.push((0,i.h)("div",{class:"q-table-control"},[r(Be.value)])):e.title&&u.push((0,i.h)("div",{class:"q-table__control"},[(0,i.h)("div",{class:["q-table__title",e.titleClass]},e.title)]))),void 0!==o&&(u.push((0,i.h)("div",{class:"q-table__separator col"})),u.push((0,i.h)("div",{class:"q-table__control"},[o(Be.value)]))),0!==u.length?(0,i.h)("div",{class:l},u):void 0}const ze=(0,i.Fl)((()=>!0===V.value?null:z.value));function Ve(){const n=He();return!0===e.loading&&void 0===t.loading&&n.push((0,i.h)("tr",{class:"q-table__progress"},[(0,i.h)("th",{class:"relative-position",colspan:Y.value},we())])),(0,i.h)("thead",n)}function He(){const n=t.header,r=t["header-cell"];if(void 0!==n)return n(qe({header:!0})).slice();const o=j.value.map((e=>{const n=t[`header-cell-${e.name}`],o=void 0!==n?n:r,a=qe({col:e});return void 0!==o?o(a):(0,i.h)(l,{key:e.name,props:a},(()=>e.label))}));if(!0===B.value&&!0!==e.grid)o.unshift((0,i.h)("th",{class:"q-table--col-auto-width"}," "));else if(!0===F.value){const n=t["header-selection"],r=void 0!==n?n(qe({})):[(0,i.h)(se,{color:e.color,modelValue:ze.value,dark:c.value,dense:e.dense,"onUpdate:modelValue":Ge})];o.unshift((0,i.h)("th",{class:"q-table--col-auto-width"},r))}return[(0,i.h)("tr",{class:e.tableHeaderClass,style:e.tableHeaderStyle},o)]}function qe(t){return Object.assign(t,{cols:j.value,sort:J,colsMap:Z.value,color:e.color,dark:c.value,dense:e.dense}),!0===F.value&&(0,Re.g)(t,"selected",(()=>ze.value),Ge),t}function Ge(e){!0===V.value&&(e=!1),W(E.value.map(g.value),E.value,e)}const We=(0,i.Fl)((()=>{const t=[e.iconFirstPage||s.iconSet.table.firstPage,e.iconPrevPage||s.iconSet.table.prevPage,e.iconNextPage||s.iconSet.table.nextPage,e.iconLastPage||s.iconSet.table.lastPage];return!0===s.lang.rtl?t.reverse():t}));function Ue(){if(!0===e.hideBottom)return;if(!0===pe.value){if(!0===e.hideNoData)return;const n=!0===e.loading?e.loadingLabel||s.lang.table.loading:e.filter?e.noResultsLabel||s.lang.table.noResults:e.noDataLabel||s.lang.table.noData,r=t["no-data"],a=void 0!==r?[r({message:n,icon:s.iconSet.table.warning,filter:e.filter})]:[(0,i.h)(o.Z,{class:"q-table__bottom-nodata-icon",name:s.iconSet.table.warning}),n];return(0,i.h)("div",{class:Ee+" q-table__bottom--nodata"},a)}const n=t.bottom;if(void 0!==n)return(0,i.h)("div",{class:Ee},[n(Be.value)]);const r=!0!==e.hideSelectedBanner&&!0===N.value&&H.value>0?[(0,i.h)("div",{class:"q-table__control"},[(0,i.h)("div",[(e.selectedRowsLabel||s.lang.table.selectedRecords)(H.value)])])]:[];return!0!==e.hidePagination?(0,i.h)("div",{class:Ee+" justify-end"},Ze(r)):r.length>0?(0,i.h)("div",{class:Ee},r):void 0}function je(e){I({page:1,rowsPerPage:e.value})}function Ze(n){let r;const{rowsPerPage:o}=S.value,a=e.paginationLabel||s.lang.table.pagination,l=t.pagination,u=e.rowsPerPageOptions.length>1;if(n.push((0,i.h)("div",{class:"q-table__separator col"})),!0===u&&n.push((0,i.h)("div",{class:"q-table__control"},[(0,i.h)("span",{class:"q-table__bottom-item"},[e.rowsPerPageLabel||s.lang.table.recordsPerPage]),(0,i.h)(X,{class:"q-table__select inline q-table__bottom-item",color:e.color,modelValue:o,options:oe.value,displayValue:0===o?s.lang.table.allRows:o,dark:c.value,borderless:!0,dense:!0,optionsDense:!0,optionsCover:!0,"onUpdate:modelValue":je})])),void 0!==l)r=l(Be.value);else if(r=[(0,i.h)("span",0!==o?{class:"q-table__bottom-item"}:{},[o?a(Q.value+1,Math.min(te.value,ae.value),ae.value):a(1,R.value,ae.value)])],0!==o&&re.value>1){const t={color:e.color,round:!0,dense:!0,flat:!0};!0===e.dense&&(t.size="sm"),re.value>2&&r.push((0,i.h)(le.Z,{key:"pgFirst",...t,icon:We.value[0],disable:ne.value,onClick:ue})),r.push((0,i.h)(le.Z,{key:"pgPrev",...t,icon:We.value[1],disable:ne.value,onClick:ce}),(0,i.h)(le.Z,{key:"pgNext",...t,icon:We.value[2],disable:ie.value,onClick:he})),re.value>2&&r.push((0,i.h)(le.Z,{key:"pgLast",...t,icon:We.value[3],disable:ie.value,onClick:de}))}return n.push((0,i.h)("div",{class:"q-table__control"},r)),n}function Ye(){const n=!0===e.gridHeader?[(0,i.h)("table",{class:"q-table"},[Ve(i.h)])]:!0===e.loading&&void 0===t.loading?we(i.h):void 0;return(0,i.h)("div",{class:"q-table__middle"},n)}function $e(){const r=void 0!==t.item?t.item:r=>{const o=r.cols.map((e=>(0,i.h)("div",{class:"q-table__grid-item-row"},[(0,i.h)("div",{class:"q-table__grid-item-title"},[e.label]),(0,i.h)("div",{class:"q-table__grid-item-value"},[e.value])])));if(!0===N.value){const n=t["body-selection"],a=void 0!==n?n(r):[(0,i.h)(se,{modelValue:r.selected,color:e.color,dark:c.value,dense:e.dense,"onUpdate:modelValue":(e,t)=>{W([r.key],[r.row],e,t)}})];o.unshift((0,i.h)("div",{class:"q-table__grid-item-row"},a),(0,i.h)(u.Z,{dark:c.value}))}const a={class:["q-table__grid-item-card"+x.value,e.cardClass],style:e.cardStyle};return void 0===e.onRowClick&&void 0===e.onRowDblclick||(a.class[0]+=" cursor-pointer",void 0!==e.onRowClick&&(a.onClick=e=>{n("RowClick",e,r.row,r.pageIndex)}),void 0!==e.onRowDblclick&&(a.onDblclick=e=>{n("RowDblclick",e,r.row,r.pageIndex)})),(0,i.h)("div",{class:"q-table__grid-item col-xs-12 col-sm-6 col-md-4 col-lg-3"+(!0===r.selected?" q-table__grid-item--selected":"")},[(0,i.h)("div",a,o)])};return(0,i.h)("div",{class:["q-table__grid-content row",e.cardContainerClass],style:e.cardContainerStyle},E.value.map(((e,t)=>r(ke({key:g.value(e),row:e,pageIndex:t})))))}return Object.assign(a.proxy,{requestServerInteraction:C,setPagination:I,firstPage:ue,prevPage:ce,nextPage:he,lastPage:de,isRowSelected:q,clearSelection:G,isRowExpanded:A,setExpanded:D,sort:J,resetVirtualScroll:ve,scrollTo:_e,getCellValue:Ne}),(0,Re.K)(a.proxy,{filteredSortedRows:()=>P.value,computedRows:()=>E.value,computedRowsNumber:()=>ae.value}),()=>{const n=[Fe()],r={ref:v,class:b.value};return!0===e.grid?n.push(Ye()):Object.assign(r,{class:[r.class,e.cardClass],style:e.cardStyle}),n.push(me(),Ue()),!0===e.loading&&void 0!==t.loading&&n.push(t.loading()),(0,i.h)("div",r,n)}}})},3884:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(3673),r=n(908),o=n(7657);const a=(0,r.L)({name:"QTd",props:{props:Object,autoWidth:Boolean,noHover:Boolean},setup(e,{slots:t}){const n=(0,i.FN)(),r=(0,i.Fl)((()=>"q-td"+(!0===e.autoWidth?" q-table--col-auto-width":"")+(!0===e.noHover?" q-td--no-hover":"")+" "));return()=>{if(void 0===e.props)return(0,i.h)("td",{class:r.value},(0,o.KR)(t.default));const a=n.vnode.key,s=(void 0!==e.props.colsMap?e.props.colsMap[a]:null)||e.props.col;if(void 0===s)return;const{row:l}=e.props;return(0,i.h)("td",{class:r.value+s.__tdClass(l),style:s.__tdStyle(l)},(0,o.KR)(t.default))}}})},8186:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(3673),r=n(908),o=n(7657);const a=(0,r.L)({name:"QTr",props:{props:Object,noHover:Boolean},setup(e,{slots:t}){const n=(0,i.Fl)((()=>"q-tr"+(void 0===e.props||!0===e.props.header?"":" "+e.props.__trClass)+(!0===e.noHover?" q-tr--no-hover":"")));return()=>(0,i.h)("tr",{class:n.value},(0,o.KR)(t.default))}})},1432:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});n(3610);var i=n(3673),r=n(2236),o=n(908),a=n(7657),s=n(2547);const l=(0,o.L)({name:"QTimeline",props:{...r.S,color:{type:String,default:"primary"},side:{type:String,default:"right",validator:e=>["left","right"].includes(e)},layout:{type:String,default:"dense",validator:e=>["dense","comfortable","loose"].includes(e)}},setup(e,{slots:t}){const n=(0,i.FN)(),o=(0,r.Z)(e,n.proxy.$q);(0,i.JJ)(s.xP,e);const l=(0,i.Fl)((()=>`q-timeline q-timeline--${e.layout} q-timeline--${e.layout}--${e.side}`+(!0===o.value?" q-timeline--dark":"")));return()=>(0,i.h)("ul",{class:l.value},(0,a.KR)(t.default))}})},3424:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});n(3610);var i=n(3673),r=n(4554),o=n(908),a=n(7657),s=n(2547);const l=(0,o.L)({name:"QTimelineEntry",props:{heading:Boolean,tag:{type:String,default:"h3"},side:{type:String,default:"right",validator:e=>["left","right"].includes(e)},icon:String,avatar:String,color:String,title:String,subtitle:String,body:String},setup(e,{slots:t}){const n=(0,i.f3)(s.xP,(()=>{console.error("QTimelineEntry needs to be child of QTimeline")})),o=(0,i.Fl)((()=>`q-timeline__entry q-timeline__entry--${e.side}`+(void 0!==e.icon||void 0!==e.avatar?" q-timeline__entry--icon":""))),l=(0,i.Fl)((()=>`q-timeline__dot text-${e.color||n.color}`)),u=(0,i.Fl)((()=>"comfortable"===n.layout&&"left"===n.side));return()=>{const n=(0,a.Bl)(t.default,[]);if(void 0!==e.body&&n.unshift(e.body),!0===e.heading){const t=[(0,i.h)("div"),(0,i.h)("div"),(0,i.h)(e.tag,{class:"q-timeline__heading-title"},n)];return(0,i.h)("div",{class:"q-timeline__heading"},!0===u.value?t.reverse():t)}let s;void 0!==e.icon?s=[(0,i.h)(r.Z,{class:"row items-center justify-center",name:e.icon})]:void 0!==e.avatar&&(s=[(0,i.h)("img",{class:"q-timeline__dot-img",src:e.avatar})]);const c=[(0,i.h)("div",{class:"q-timeline__subtitle"},[(0,i.h)("span",{},(0,a.KR)(t.subtitle,[e.subtitle]))]),(0,i.h)("div",{class:l.value},s),(0,i.h)("div",{class:"q-timeline__content"},[(0,i.h)("h6",{class:"q-timeline__title"},(0,a.KR)(t.title,[e.title]))].concat(n))];return(0,i.h)("li",{class:o.value},!0===u.value?c.reverse():c)}}})},9570:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(3673),r=n(908),o=n(7657);const a=(0,r.L)({name:"QToolbar",props:{inset:Boolean},setup(e,{slots:t}){const n=(0,i.Fl)((()=>"q-toolbar row no-wrap items-center"+(!0===e.inset?" q-toolbar--inset":"")));return()=>(0,i.h)("div",{class:n.value},(0,o.KR)(t.default))}})},3747:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(3673),r=n(908),o=n(7657);const a=(0,r.L)({name:"QToolbarTitle",props:{shrink:Boolean},setup(e,{slots:t}){const n=(0,i.Fl)((()=>"q-toolbar__title ellipsis"+(!0===e.shrink?" col-shrink":"")));return()=>(0,i.h)("div",{class:n.value},(0,o.KR)(t.default))}})},8870:(e,t,n)=>{"use strict";n.d(t,{Z:()=>_});n(71);var i=n(3673),r=n(1959),o=n(8880),a=n(5875),s=n(1372),l=n(3628),u=n(5911),c=n(6104),h=n(416),d=n(4955),p=n(908),f=n(8400),g=n(4716),v=n(9725),y=n(7657),m=n(9916),x=n(2657);const _=(0,p.L)({name:"QTooltip",inheritAttrs:!1,props:{...a.u,...l.vr,...c.D,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null},transitionShow:{default:"jump-down"},transitionHide:{default:"jump-up"},anchor:{type:String,default:"bottom middle",validator:x.$},self:{type:String,default:"top middle",validator:x.$},offset:{type:Array,default:()=>[14,14],validator:x.io},scrollTarget:{default:void 0},delay:{type:Number,default:0},hideDelay:{type:Number,default:0}},emits:[...l.gH],setup(e,{slots:t,emit:n,attrs:p}){let _,b;const w=(0,i.FN)(),{proxy:{$q:S}}=w,M=(0,r.iH)(null),C=(0,r.iH)(!1),I=(0,i.Fl)((()=>(0,x.li)(e.anchor,S.lang.rtl))),T=(0,i.Fl)((()=>(0,x.li)(e.self,S.lang.rtl))),k=(0,i.Fl)((()=>!0!==e.persistent)),{registerTick:A,removeTick:D}=(0,h.Z)(),{registerTimeout:L,removeTimeout:P}=(0,d.Z)(),{transition:O,transitionStyle:R}=(0,c.Z)(e,C),{localScrollTarget:E,changeScrollEvent:N,unconfigureScrollTarget:B}=(0,s.Z)(e,Q),{anchorEl:F,canShow:z,anchorEvents:V}=(0,a.Z)({showing:C,configureAnchorEl:J}),{show:H,hide:q}=(0,l.ZP)({showing:C,canShow:z,handleShow:j,handleHide:Z,hideOnRouteChange:k,processOnMount:!0});Object.assign(V,{delayShow:X,delayHide:K});const{showPortal:G,hidePortal:W,renderPortal:U}=(0,u.Z)(w,M,te);if(!0===S.platform.is.mobile){const t={anchorEl:F,innerRef:M,onClickOutside(e){return q(e),e.target.classList.contains("q-dialog__backdrop")&&(0,g.NS)(e),!0}},n=(0,i.Fl)((()=>null===e.modelValue&&!0!==e.persistent&&!0===C.value));(0,i.YP)(n,(e=>{const n=!0===e?m.m:m.D;n(t)})),(0,i.Jd)((()=>{(0,m.D)(t)}))}function j(t){D(),P(),G(),A((()=>{b=new MutationObserver((()=>$())),b.observe(M.value,{attributes:!1,childList:!0,characterData:!0,subtree:!0}),$(),Q()})),void 0===_&&(_=(0,i.YP)((()=>S.screen.width+"|"+S.screen.height+"|"+e.self+"|"+e.anchor+"|"+S.lang.rtl),$)),L((()=>{G(!0),n("show",t)}),e.transitionDuration)}function Z(t){D(),P(),W(),Y(),L((()=>{W(!0),n("hide",t)}),e.transitionDuration)}function Y(){void 0!==b&&(b.disconnect(),b=void 0),void 0!==_&&(_(),_=void 0),B(),(0,g.ul)(V,"tooltipTemp")}function $(){const t=M.value;null!==F.value&&t&&(0,x.wq)({el:t,offset:e.offset,anchorEl:F.value,anchorOrigin:I.value,selfOrigin:T.value,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}function X(t){if(!0===S.platform.is.mobile){(0,v.M)(),document.body.classList.add("non-selectable");const e=F.value,t=["touchmove","touchcancel","touchend","click"].map((t=>[e,t,"delayHide","passiveCapture"]));(0,g.M0)(V,"tooltipTemp",t)}L((()=>{H(t)}),e.delay)}function K(t){P(),!0===S.platform.is.mobile&&((0,g.ul)(V,"tooltipTemp"),(0,v.M)(),setTimeout((()=>{document.body.classList.remove("non-selectable")}),10)),L((()=>{q(t)}),e.hideDelay)}function J(){if(!0===e.noParentEvent||null===F.value)return;const t=!0===S.platform.is.mobile?[[F.value,"touchstart","delayShow","passive"]]:[[F.value,"mouseenter","delayShow","passive"],[F.value,"mouseleave","delayHide","passive"]];(0,g.M0)(V,"anchor",t)}function Q(){if(null!==F.value||void 0!==e.scrollTarget){E.value=(0,f.b0)(F.value,e.scrollTarget);const t=!0===e.noParentEvent?$:q;N(E.value,t)}}function ee(){return!0===C.value?(0,i.h)("div",{...p,ref:M,class:["q-tooltip q-tooltip--style q-position-engine no-pointer-events",p.class],style:[p.style,R.value],role:"complementary"},(0,y.KR)(t.default)):null}function te(){return(0,i.h)(o.uT,{name:O.value,appear:!0},ee)}return(0,i.Jd)(Y),Object.assign(w.proxy,{updatePosition:$}),U}})},9992:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>s,jO:()=>a});n(3610);var i=n(3673);const r={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},o=Object.keys(r),a={align:{type:String,validator:e=>o.includes(e)}};function s(e){return(0,i.Fl)((()=>{const t=void 0===e.align?!0===e.vertical?"stretch":"left":e.align;return`${!0===e.vertical?"items":"justify"}-${r[t]}`}))}},5875:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u,u:()=>l});var i=n(3673),r=n(1959),o=n(9725),a=n(4716),s=n(1436);const l={target:{default:!0},noParentEvent:Boolean,contextMenu:Boolean};function u({showing:e,avoidEmit:t,configureAnchorEl:n}){const{props:l,proxy:u,emit:c}=(0,i.FN)(),h=(0,r.iH)(null);let d;function p(e){return null!==h.value&&(void 0===e||void 0===e.touches||e.touches.length<=1)}const f={};function g(){(0,a.ul)(f,"anchor")}function v(e){h.value=e;while(h.value.classList.contains("q-anchor--skip"))h.value=h.value.parentNode;n()}function y(){if(!1===l.target||""===l.target||null===u.$el.parentNode)h.value=null;else if(!0===l.target)v(u.$el.parentNode);else{let t=l.target;if("string"===typeof l.target)try{t=document.querySelector(l.target)}catch(e){t=void 0}void 0!==t&&null!==t?(h.value=t.$el||t,n()):(h.value=null,console.error(`Anchor: target "${l.target}" not found`))}}return void 0===n&&(Object.assign(f,{hide(e){u.hide(e)},toggle(e){u.toggle(e),e.qAnchorHandled=!0},toggleKey(e){!0===(0,s.So)(e,13)&&f.toggle(e)},contextClick(e){u.hide(e),(0,a.X$)(e),(0,i.Y3)((()=>{u.show(e),e.qAnchorHandled=!0}))},prevent:a.X$,mobileTouch(e){if(f.mobileCleanup(e),!0!==p(e))return;u.hide(e),h.value.classList.add("non-selectable");const t=e.target;(0,a.M0)(f,"anchor",[[t,"touchmove","mobileCleanup","passive"],[t,"touchend","mobileCleanup","passive"],[t,"touchcancel","mobileCleanup","passive"],[h.value,"contextmenu","prevent","notPassive"]]),d=setTimeout((()=>{u.show(e),e.qAnchorHandled=!0}),300)},mobileCleanup(t){h.value.classList.remove("non-selectable"),clearTimeout(d),!0===e.value&&void 0!==t&&(0,o.M)()}}),n=function(e=l.contextMenu){if(!0===l.noParentEvent||null===h.value)return;let t;t=!0===e?!0===u.$q.platform.is.mobile?[[h.value,"touchstart","mobileTouch","passive"]]:[[h.value,"mousedown","hide","passive"],[h.value,"contextmenu","contextClick","notPassive"]]:[[h.value,"click","toggle","passive"],[h.value,"keyup","toggleKey","passive"]],(0,a.M0)(f,"anchor",t)}),(0,i.YP)((()=>l.contextMenu),(e=>{null!==h.value&&(g(),n(e))})),(0,i.YP)((()=>l.target),(()=>{null!==h.value&&g(),y()})),(0,i.YP)((()=>l.noParentEvent),(e=>{null!==h.value&&(!0===e?g():n())})),(0,i.bv)((()=>{y(),!0!==t&&!0===l.modelValue&&null===h.value&&c("update:modelValue",!1)})),(0,i.Jd)((()=>{clearTimeout(d),g()})),{anchorEl:h,canShow:p,anchorEvents:f}}},2236:(e,t,n)=>{"use strict";n.d(t,{S:()=>r,Z:()=>o});var i=n(3673);const r={dark:{type:Boolean,default:null}};function o(e,t){return(0,i.Fl)((()=>null===e.dark?t.dark.isActive:e.dark))}},2659:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>Q,yV:()=>$,HJ:()=>K,Cl:()=>X,tL:()=>J});var i=n(3673),r=n(1959),o=n(8880),a=n(4688),s=n(4554),l=n(9754),u=n(2236),c=(n(3610),n(71),n(2547));function h({validate:e,resetValidation:t,requiresQForm:n}){const r=(0,i.f3)(c.vh,!1);if(!1!==r){const{props:n,proxy:o}=(0,i.FN)();Object.assign(o,{validate:e,resetValidation:t}),(0,i.YP)((()=>n.disable),(e=>{!0===e?("function"===typeof t&&t(),r.unbindComponent(o)):r.bindComponent(o)})),!0!==n.disable&&r.bindComponent(o),(0,i.Jd)((()=>{!0!==n.disable&&r.unbindComponent(o)}))}else!0===n&&console.error("Parent QForm not found on useFormChild()!")}const d=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,p=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,f=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,g=/^rgb\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5])\)$/,v=/^rgba\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),(0|0\.[0-9]+[1-9]|0\.[1-9]+|1)\)$/,y={date:e=>/^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(e),time:e=>/^([0-1]?\d|2[0-3]):[0-5]\d$/.test(e),fulltime:e=>/^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/.test(e),timeOrFulltime:e=>/^([0-1]?\d|2[0-3]):[0-5]\d(:[0-5]\d)?$/.test(e),email:e=>/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e),hexColor:e=>d.test(e),hexaColor:e=>p.test(e),hexOrHexaColor:e=>f.test(e),rgbColor:e=>g.test(e),rgbaColor:e=>v.test(e),rgbOrRgbaColor:e=>g.test(e)||v.test(e),hexOrRgbColor:e=>d.test(e)||g.test(e),hexaOrRgbaColor:e=>p.test(e)||v.test(e),anyColor:e=>f.test(e)||g.test(e)||v.test(e)};n(4406);n(6701),n(5363);Object.prototype.toString,Object.prototype.hasOwnProperty;const m={};"Boolean Number String Function Array Date RegExp Object".split(" ").forEach((e=>{m["[object "+e+"]"]=e.toLowerCase()}));n(7965),n(6016),n(8240);var x=n(2417);const _={...x.LU,min:{type:Number,default:0},max:{type:Number,default:100},color:String,centerColor:String,trackColor:String,fontSize:String,thickness:{type:Number,default:.2,validator:e=>e>=0&&e<=1},angle:{type:Number,default:0},showValue:Boolean,reverse:Boolean,instantFeedback:Boolean};var b=n(908),w=n(7657),S=n(2130);const M=50,C=2*M,I=C*Math.PI,T=Math.round(1e3*I)/1e3;(0,b.L)({name:"QCircularProgress",props:{..._,value:{type:Number,default:0},animationSpeed:{type:[String,Number],default:600},indeterminate:Boolean},setup(e,{slots:t}){const{proxy:{$q:n}}=(0,i.FN)(),r=(0,x.ZP)(e),o=(0,i.Fl)((()=>{const t=(!0===n.lang.rtl?-1:1)*e.angle;return{transform:e.reverse!==(!0===n.lang.rtl)?`scale3d(-1, 1, 1) rotate3d(0, 0, 1, ${-90-t}deg)`:`rotate3d(0, 0, 1, ${t-90}deg)`}})),a=(0,i.Fl)((()=>!0!==e.instantFeedback&&!0!==e.indeterminate?{transition:`stroke-dashoffset ${e.animationSpeed}ms ease 0s, stroke ${e.animationSpeed}ms ease`}:"")),s=(0,i.Fl)((()=>C/(1-e.thickness/2))),l=(0,i.Fl)((()=>`${s.value/2} ${s.value/2} ${s.value} ${s.value}`)),u=(0,i.Fl)((()=>(0,S.vX)(e.value,e.min,e.max))),c=(0,i.Fl)((()=>I*(1-(u.value-e.min)/(e.max-e.min)))),h=(0,i.Fl)((()=>e.thickness/2*s.value));function d({thickness:e,offset:t,color:n,cls:r}){return(0,i.h)("circle",{class:"q-circular-progress__"+r+(void 0!==n?` text-${n}`:""),style:a.value,fill:"transparent",stroke:"currentColor","stroke-width":e,"stroke-dasharray":T,"stroke-dashoffset":t,cx:s.value,cy:s.value,r:M})}return()=>{const n=[];void 0!==e.centerColor&&"transparent"!==e.centerColor&&n.push((0,i.h)("circle",{class:`q-circular-progress__center text-${e.centerColor}`,fill:"currentColor",r:M-h.value/2,cx:s.value,cy:s.value})),void 0!==e.trackColor&&"transparent"!==e.trackColor&&n.push(d({cls:"track",thickness:h.value,offset:0,color:e.trackColor})),n.push(d({cls:"circle",thickness:h.value,offset:c.value,color:e.color}));const a=[(0,i.h)("svg",{class:"q-circular-progress__svg",style:o.value,viewBox:l.value,"aria-hidden":"true"},n)];return!0===e.showValue&&a.push((0,i.h)("div",{class:"q-circular-progress__text absolute-full row flex-center content-center",style:{fontSize:e.fontSize}},void 0!==t.default?t.default():[(0,i.h)("div",u.value)])),(0,i.h)("div",{class:`q-circular-progress q-circular-progress--${!0===e.indeterminate?"in":""}determinate`,style:r.value,role:"progressbar","aria-valuemin":e.min,"aria-valuemax":e.max,"aria-valuenow":!0===e.indeterminate?void 0:u.value},(0,w.pf)(t.internal,a))}}});var k=n(4716);const A={multiple:Boolean,accept:String,capture:String,maxFileSize:[Number,String],maxTotalSize:[Number,String],maxFiles:[Number,String],filter:Function},D=["rejected"];u.S,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean;const L=[...D,"start","finish","added","removed"];const P=()=>!0;function O(e){const t={};return e.forEach((e=>{t[e]=P})),t}n(782);O(L);n(9111);var R=n(9405);n(2012);n(8400),n(4398),n(6105),n(5123),n(8836),n(8685),n(2396),n(9802),n(2773);let E,N=0;const B=new Array(256);for(let ee=0;ee<256;ee++)B[ee]=(ee+256).toString(16).substring(1);const F=(()=>{const e="undefined"!==typeof crypto?crypto:"undefined"!==typeof window?window.crypto||window.msCrypto:void 0;if(void 0!==e){if(void 0!==e.randomBytes)return e.randomBytes;if(void 0!==e.getRandomValues)return t=>{const n=new Uint8Array(t);return e.getRandomValues(n),n}}return e=>{const t=[];for(let n=e;n>0;n--)t.push(Math.floor(256*Math.random()));return t}})(),z=4096;function V(){(void 0===E||N+16>z)&&(N=0,E=F(z));const e=Array.prototype.slice.call(E,N,N+=16);return e[6]=15&e[6]|64,e[8]=63&e[8]|128,B[e[0]]+B[e[1]]+B[e[2]]+B[e[3]]+"-"+B[e[4]]+B[e[5]]+"-"+B[e[6]]+B[e[7]]+"-"+B[e[8]]+B[e[9]]+"-"+B[e[10]]+B[e[11]]+B[e[12]]+B[e[13]]+B[e[14]]+B[e[15]]}var H=n(9085);const q=[!0,!1,"ondemand"],G={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],validator:e=>q.includes(e)}};function W(e,t){const{props:n,proxy:o}=(0,i.FN)(),a=(0,r.iH)(!1),s=(0,r.iH)(null),l=(0,r.iH)(null);h({validate:m,resetValidation:v});let u,c=0;const d=(0,i.Fl)((()=>void 0!==n.rules&&null!==n.rules&&n.rules.length>0)),p=(0,i.Fl)((()=>!0!==n.disable&&!0===d.value)),f=(0,i.Fl)((()=>!0===n.error||!0===a.value)),g=(0,i.Fl)((()=>"string"===typeof n.errorMessage&&n.errorMessage.length>0?n.errorMessage:s.value));function v(){c++,t.value=!1,l.value=null,a.value=!1,s.value=null,_.cancel()}function m(e=n.modelValue){if(!0!==p.value)return!0;const i=++c;!0!==t.value&&!0!==n.lazyRules&&(l.value=!0);const r=(e,n)=>{a.value!==e&&(a.value=e);const i=n||void 0;s.value!==i&&(s.value=i),t.value=!1},o=[];for(let t=0;t{if(void 0===e||!1===Array.isArray(e)||0===e.length)return i===c&&r(!1),!0;const t=e.find((e=>!1===e||"string"===typeof e));return i===c&&r(void 0!==t,t),void 0===t}),(e=>(i===c&&(console.error(e),r(!0)),!1))))}function x(e){!0===p.value&&"ondemand"!==n.lazyRules&&(!0===l.value||!0!==n.lazyRules&&!0!==e)&&_()}(0,i.YP)((()=>n.modelValue),(()=>{x()})),(0,i.YP)((()=>n.reactiveRules),(e=>{!0===e?void 0===u&&(u=(0,i.YP)((()=>n.rules),(()=>{x(!0)}))):void 0!==u&&(u(),u=void 0)}),{immediate:!0}),(0,i.YP)(e,(e=>{!0===e?null===l.value&&(l.value=!1):!1===l.value&&(l.value=!0,!0===p.value&&"ondemand"!==n.lazyRules&&!1===t.value&&_())}));const _=(0,R.Z)(m,0);return(0,i.Jd)((()=>{void 0!==u&&u(),_.cancel()})),Object.assign(o,{resetValidation:v,validate:m}),(0,H.g)(o,"hasError",(()=>f.value)),{isDirtyModel:l,hasRules:d,hasError:f,errorMessage:g,validate:m,resetValidation:v}}const U=/^on[A-Z]/;function j(e,t){const n={listeners:(0,r.iH)({}),attributes:(0,r.iH)({})};function o(){const i={},r={};for(const t in e)"class"!==t&&"style"!==t&&!1===U.test(t)&&(i[t]=e[t]);for(const e in t.props)!0===U.test(e)&&(r[e]=t.props[e]);n.attributes.value=i,n.listeners.value=r}return(0,i.Xn)(o),o(),n}var Z=n(230);function Y(e){return void 0===e?`f_${V()}`:e}function $(e){return void 0!==e&&null!==e&&(""+e).length>0}const X={...u.S,...G,label:String,stackLabel:Boolean,hint:String,hideHint:Boolean,prefix:String,suffix:String,labelColor:String,color:String,bgColor:String,filled:Boolean,outlined:Boolean,borderless:Boolean,standout:[Boolean,String],square:Boolean,loading:Boolean,labelSlot:Boolean,bottomSlots:Boolean,hideBottomSpace:Boolean,rounded:Boolean,dense:Boolean,itemAligned:Boolean,counter:Boolean,clearable:Boolean,clearIcon:String,disable:Boolean,readonly:Boolean,autofocus:Boolean,for:String,maxlength:[Number,String]},K=["update:modelValue","clear","focus","blur","popup-show","popup-hide"];function J(){const{props:e,attrs:t,proxy:n,vnode:o}=(0,i.FN)(),a=(0,u.Z)(e,n.$q);return{isDark:a,editable:(0,i.Fl)((()=>!0!==e.disable&&!0!==e.readonly)),innerLoading:(0,r.iH)(!1),focused:(0,r.iH)(!1),hasPopupOpen:!1,splitAttrs:j(t,o),targetUid:(0,r.iH)(Y(e.for)),rootRef:(0,r.iH)(null),targetRef:(0,r.iH)(null),controlRef:(0,r.iH)(null)}}function Q(e){const{props:t,emit:n,slots:r,attrs:u,proxy:c}=(0,i.FN)(),{$q:h}=c;let d;void 0===e.hasValue&&(e.hasValue=(0,i.Fl)((()=>$(t.modelValue)))),void 0===e.emitValue&&(e.emitValue=e=>{n("update:modelValue",e)}),void 0===e.controlEvents&&(e.controlEvents={onFocusin:P,onFocusout:O}),Object.assign(e,{clearValue:R,onControlFocusin:P,onControlFocusout:O,focus:D}),void 0===e.computedCounter&&(e.computedCounter=(0,i.Fl)((()=>{if(!1!==t.counter){const e="string"===typeof t.modelValue||"number"===typeof t.modelValue?(""+t.modelValue).length:!0===Array.isArray(t.modelValue)?t.modelValue.length:0,n=void 0!==t.maxlength?t.maxlength:t.maxValues;return e+(void 0!==n?" / "+n:"")}})));const{isDirtyModel:p,hasRules:f,hasError:g,errorMessage:v,resetValidation:y}=W(e.focused,e.innerLoading),m=void 0!==e.floatingLabel?(0,i.Fl)((()=>!0===t.stackLabel||!0===e.focused.value||!0===e.floatingLabel.value)):(0,i.Fl)((()=>!0===t.stackLabel||!0===e.focused.value||!0===e.hasValue.value)),x=(0,i.Fl)((()=>!0===t.bottomSlots||void 0!==t.hint||!0===f.value||!0===t.counter||null!==t.error)),_=(0,i.Fl)((()=>!0===t.filled?"filled":!0===t.outlined?"outlined":!0===t.borderless?"borderless":t.standout?"standout":"standard")),b=(0,i.Fl)((()=>`q-field row no-wrap items-start q-field--${_.value}`+(void 0!==e.fieldClass?` ${e.fieldClass.value}`:"")+(!0===t.rounded?" q-field--rounded":"")+(!0===t.square?" q-field--square":"")+(!0===m.value?" q-field--float":"")+(!0===M.value?" q-field--labeled":"")+(!0===t.dense?" q-field--dense":"")+(!0===t.itemAligned?" q-field--item-aligned q-item-type":"")+(!0===e.isDark.value?" q-field--dark":"")+(void 0===e.getControl?" q-field--auto-height":"")+(!0===e.focused.value?" q-field--focused":"")+(!0===g.value?" q-field--error":"")+(!0===g.value||!0===e.focused.value?" q-field--highlighted":"")+(!0!==t.hideBottomSpace&&!0===x.value?" q-field--with-bottom":"")+(!0===t.disable?" q-field--disabled":!0===t.readonly?" q-field--readonly":""))),S=(0,i.Fl)((()=>"q-field__control relative-position row no-wrap"+(void 0!==t.bgColor?` bg-${t.bgColor}`:"")+(!0===g.value?" text-negative":"string"===typeof t.standout&&t.standout.length>0&&!0===e.focused.value?` ${t.standout}`:void 0!==t.color?` text-${t.color}`:""))),M=(0,i.Fl)((()=>!0===t.labelSlot||void 0!==t.label)),C=(0,i.Fl)((()=>"q-field__label no-pointer-events absolute ellipsis"+(void 0!==t.labelColor&&!0!==g.value?` text-${t.labelColor}`:""))),I=(0,i.Fl)((()=>({id:e.targetUid.value,editable:e.editable.value,focused:e.focused.value,floatingLabel:m.value,modelValue:t.modelValue,emitValue:e.emitValue}))),T=(0,i.Fl)((()=>{const n={for:e.targetUid.value};return!0===t.disable?n["aria-disabled"]="true":!0===t.readonly&&(n["aria-readonly"]="true"),n}));function A(){const t=document.activeElement;let n=void 0!==e.targetRef&&e.targetRef.value;!n||null!==t&&t.id===e.targetUid.value||(!0===n.hasAttribute("tabindex")||(n=n.querySelector("[tabindex]")),n&&n!==t&&n.focus({preventScroll:!0}))}function D(){(0,Z.jd)(A)}function L(){(0,Z.fP)(A);const t=document.activeElement;null!==t&&e.rootRef.value.contains(t)&&t.blur()}function P(t){clearTimeout(d),!0===e.editable.value&&!1===e.focused.value&&(e.focused.value=!0,n("focus",t))}function O(t,i){clearTimeout(d),d=setTimeout((()=>{(!0!==document.hasFocus()||!0!==e.hasPopupOpen&&void 0!==e.controlRef&&null!==e.controlRef.value&&!1===e.controlRef.value.contains(document.activeElement))&&(!0===e.focused.value&&(e.focused.value=!1,n("blur",t)),void 0!==i&&i())}))}function R(r){if((0,k.NS)(r),!0!==h.platform.is.mobile){const t=void 0!==e.targetRef&&e.targetRef.value||e.rootRef.value;t.focus()}else!0===e.rootRef.value.contains(document.activeElement)&&document.activeElement.blur();"file"===t.type&&(e.inputRef.value.value=null),n("update:modelValue",null),n("clear",t.modelValue),(0,i.Y3)((()=>{y(),!0!==h.platform.is.mobile&&(p.value=!1)}))}function E(){const n=[];return void 0!==r.prepend&&n.push((0,i.h)("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:k.X$},r.prepend())),n.push((0,i.h)("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},N())),!0===g.value&&!1===t.noErrorIcon&&n.push(F("error",[(0,i.h)(s.Z,{name:h.iconSet.field.error,color:"negative"})])),!0===t.loading||!0===e.innerLoading.value?n.push(F("inner-loading-append",void 0!==r.loading?r.loading():[(0,i.h)(l.Z,{color:t.color})])):!0===t.clearable&&!0===e.hasValue.value&&!0===e.editable.value&&n.push(F("inner-clearable-append",[(0,i.h)(s.Z,{class:"q-field__focusable-action",tag:"button",name:t.clearIcon||h.iconSet.field.clear,tabindex:0,type:"button","aria-hidden":null,role:null,onClick:R})])),void 0!==r.append&&n.push((0,i.h)("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:k.X$},r.append())),void 0!==e.getInnerAppend&&n.push(F("inner-append",e.getInnerAppend())),void 0!==e.getControlChild&&n.push(e.getControlChild()),n}function N(){const n=[];return void 0!==t.prefix&&null!==t.prefix&&n.push((0,i.h)("div",{class:"q-field__prefix no-pointer-events row items-center"},t.prefix)),void 0!==e.getShadowControl&&!0===e.hasShadow.value&&n.push(e.getShadowControl()),void 0!==e.getControl?n.push(e.getControl()):void 0!==r.rawControl?n.push(r.rawControl()):void 0!==r.control&&n.push((0,i.h)("div",{ref:e.targetRef,class:"q-field__native row",tabindex:-1,...e.splitAttrs.attributes.value,"data-autofocus":!0===t.autofocus||void 0},r.control(I.value))),!0===M.value&&n.push((0,i.h)("div",{class:C.value},(0,w.KR)(r.label,t.label))),void 0!==t.suffix&&null!==t.suffix&&n.push((0,i.h)("div",{class:"q-field__suffix no-pointer-events row items-center"},t.suffix)),n.concat((0,w.KR)(r.default))}function B(){let n,a;!0===g.value?null!==v.value?(n=[(0,i.h)("div",{role:"alert"},v.value)],a=`q--slot-error-${v.value}`):(n=(0,w.KR)(r.error),a="q--slot-error"):!0===t.hideHint&&!0!==e.focused.value||(void 0!==t.hint?(n=[(0,i.h)("div",t.hint)],a=`q--slot-hint-${t.hint}`):(n=(0,w.KR)(r.hint),a="q--slot-hint"));const s=!0===t.counter||void 0!==r.counter;if(!0===t.hideBottomSpace&&!1===s&&void 0===n)return;const l=(0,i.h)("div",{key:a,class:"q-field__messages col"},n);return(0,i.h)("div",{class:"q-field__bottom row items-start q-field__bottom--"+(!0!==t.hideBottomSpace?"animated":"stale")},[!0===t.hideBottomSpace?l:(0,i.h)(o.uT,{name:"q-transition--field-message"},(()=>l)),!0===s?(0,i.h)("div",{class:"q-field__counter"},void 0!==r.counter?r.counter():e.computedCounter.value):null])}function F(e,t){return null===t?null:(0,i.h)("div",{key:e,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},t)}(0,i.YP)((()=>t.for),(t=>{e.targetUid.value=Y(t)})),Object.assign(c,{focus:D,blur:L});let z=!1;return(0,i.se)((()=>{z=!0})),(0,i.dl)((()=>{!0===z&&!0===t.autofocus&&c.focus()})),(0,i.bv)((()=>{!0===a.uX.value&&void 0===t.for&&(e.targetUid.value=Y()),!0===t.autofocus&&c.focus()})),(0,i.Jd)((()=>{clearTimeout(d)})),function(){const n=void 0===e.getControl&&void 0===r.control?{...e.splitAttrs.attributes.value,"data-autofocus":!0===t.autofocus||void 0,...T.value}:T.value;return(0,i.h)("label",{ref:e.rootRef,class:[b.value,u.class],style:u.style,...n},[void 0!==r.before?(0,i.h)("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:k.X$},r.before()):null,(0,i.h)("div",{class:"q-field__inner relative-position col self-stretch"},[(0,i.h)("div",{ref:e.controlRef,class:S.value,tabindex:-1,...e.controlEvents},E()),!0===x.value?B():null]),void 0!==r.after?(0,i.h)("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:k.X$},r.after()):null])}}},9550:(e,t,n)=>{"use strict";n.d(t,{Do:()=>a,Fz:()=>r,eX:()=>o});var i=n(3673);const r={name:String};function o(e={}){return(t,n,r)=>{t[n]((0,i.h)("input",{class:"hidden"+(r||""),...e.value}))}}function a(e){return(0,i.Fl)((()=>e.name||e.for))}},69:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var i=n(3673),r=n(6583);function o(e,t,n){let o;function a(){void 0!==o&&(r.Z.remove(o),o=void 0)}return(0,i.Jd)((()=>{!0===e.value&&a()})),{removeFromHistory:a,addToHistory(){o={condition:()=>!0===n.value,handler:t},r.Z.add(o)}}}},4421:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(4688);const r=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,o=/[\u4e00-\u9fff\u3400-\u4dbf\u{20000}-\u{2a6df}\u{2a700}-\u{2b73f}\u{2b740}-\u{2b81f}\u{2b820}-\u{2ceaf}\uf900-\ufaff\u3300-\u33ff\ufe30-\ufe4f\uf900-\ufaff\u{2f800}-\u{2fa1f}]/u,a=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,s=/[a-z0-9_ -]$/i;function l(e){return function(t){if("compositionend"===t.type||"change"===t.type){if(!0!==t.target.qComposing)return;t.target.qComposing=!1,e(t)}else if("compositionupdate"===t.type&&!0!==t.target.qComposing&&"string"===typeof t.data){const e=!0===i.Lp.is.firefox?!1===s.test(t.data):!0===r.test(t.data)||!0===o.test(t.data)||!0===a.test(t.data);!0===e&&(t.target.qComposing=!0)}}}},3628:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>s,gH:()=>a,vr:()=>o});var i=n(3673),r=n(7445);const o={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},a=["before-show","show","before-hide","hide"];function s({showing:e,canShow:t,hideOnRouteChange:n,handleShow:o,handleHide:a,processOnMount:s}){const l=(0,i.FN)(),{props:u,emit:c,proxy:h}=l;let d;function p(t){!0===e.value?v(t):f(t)}function f(e){if(!0===u.disable||void 0!==e&&!0===e.qAnchorHandled||void 0!==t&&!0!==t(e))return;const n=void 0!==u["onUpdate:modelValue"];!0===n&&(c("update:modelValue",!0),d=e,(0,i.Y3)((()=>{d===e&&(d=void 0)}))),null!==u.modelValue&&!1!==n||g(e)}function g(t){!0!==e.value&&(e.value=!0,c("before-show",t),void 0!==o?o(t):c("show",t))}function v(e){if(!0===u.disable)return;const t=void 0!==u["onUpdate:modelValue"];!0===t&&(c("update:modelValue",!1),d=e,(0,i.Y3)((()=>{d===e&&(d=void 0)}))),null!==u.modelValue&&!1!==t||y(e)}function y(t){!1!==e.value&&(e.value=!1,c("before-hide",t),void 0!==a?a(t):c("hide",t))}function m(t){if(!0===u.disable&&!0===t)void 0!==u["onUpdate:modelValue"]&&c("update:modelValue",!1);else if(!0===t!==e.value){const e=!0===t?g:y;e(d)}}(0,i.YP)((()=>u.modelValue),m),void 0!==n&&!0===(0,r.Rb)(l)&&(0,i.YP)((()=>h.$route.fullPath),(()=>{!0===n.value&&!0===e.value&&v()})),!0===s&&(0,i.bv)((()=>{m(u.modelValue)}));const x={show:f,hide:v,toggle:p};return Object.assign(h,x),x}},5911:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var i=n(1959),r=n(3673),o=(n(4716),n(230)),a=n(5578);const s=[];let l=document.body;function u(e){const t=document.createElement("div");if(void 0!==e&&(t.id=e),void 0!==a.w6.globalNodes){const e=a.w6.globalNodes["class"];void 0!==e&&(t.className=e)}return l.appendChild(t),s.push(t),t}function c(e){s.splice(s.indexOf(e),1),e.remove()}var h=n(4312);function d(e){e=e.parent;while(void 0!==e&&null!==e){if("QGlobalDialog"===e.type.name)return!0;if("QDialog"===e.type.name||"QMenu"===e.type.name)return!1;e=e.parent}return!1}function p(e,t,n,a){const s=(0,i.iH)(!1),l=(0,i.iH)(!1);let p=null;const f={},g=!0===a&&d(e);function v(t){if(!0===t)return(0,o.xF)(f),void(l.value=!0);l.value=!1,!1===s.value&&(!1===g&&null===p&&(p=u()),s.value=!0,h.wN.push(e.proxy),(0,o.YX)(f))}function y(t){if(l.value=!1,!0!==t)return;(0,o.xF)(f),s.value=!1;const n=h.wN.indexOf(e.proxy);n>-1&&h.wN.splice(n,1),null!==p&&(c(p),p=null)}return(0,r.Ah)((()=>{y(!0)})),Object.assign(e.proxy,{__qPortalInnerRef:t}),{showPortal:v,hidePortal:y,portalIsActive:s,portalIsAccessible:l,renderPortal:()=>!0===g?n():!0===s.value?[(0,r.h)(r.lR,{to:p},n())]:void 0}}},405:(e,t,n)=>{"use strict";n.d(t,{Z:()=>_});var i=n(4716),r=n(8400),o=n(4688);let a,s,l,u,c,h,d=0,p=!1;function f(e){g(e)&&(0,i.NS)(e)}function g(e){if(e.target===document.body||e.target.classList.contains("q-layout__backdrop"))return!0;const t=(0,i.AZ)(e),n=e.shiftKey&&!e.deltaX,o=!n&&Math.abs(e.deltaX)<=Math.abs(e.deltaY),a=n||o?e.deltaY:e.deltaX;for(let i=0;i0&&e.scrollTop+e.clientHeight===e.scrollHeight:a<0&&0===e.scrollLeft||a>0&&e.scrollLeft+e.clientWidth===e.scrollWidth}return!0}function v(e){e.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function y(e){!0!==p&&(p=!0,requestAnimationFrame((()=>{p=!1;const{height:t}=e.target,{clientHeight:n,scrollTop:i}=document.scrollingElement;void 0!==l&&t===window.innerHeight||(l=n-t,document.scrollingElement.scrollTop=i),i>l&&(document.scrollingElement.scrollTop-=Math.ceil((i-l)/8))})))}function m(e){const t=document.body,n=void 0!==window.visualViewport;if("add"===e){const{overflowY:e,overflowX:l}=window.getComputedStyle(t);a=(0,r.OI)(window),s=(0,r.u3)(window),u=t.style.left,c=t.style.top,t.style.left=`-${a}px`,t.style.top=`-${s}px`,"hidden"!==l&&("scroll"===l||t.scrollWidth>window.innerWidth)&&t.classList.add("q-body--force-scrollbar-x"),"hidden"!==e&&("scroll"===e||t.scrollHeight>window.innerHeight)&&t.classList.add("q-body--force-scrollbar-y"),t.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,!0===o.Lp.is.ios&&(!0===n?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",y,i.rU.passiveCapture),window.visualViewport.addEventListener("scroll",y,i.rU.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",v,i.rU.passiveCapture))}!0===o.Lp.is.desktop&&!0===o.Lp.is.mac&&window[`${e}EventListener`]("wheel",f,i.rU.notPassive),"remove"===e&&(!0===o.Lp.is.ios&&(!0===n?(window.visualViewport.removeEventListener("resize",y,i.rU.passiveCapture),window.visualViewport.removeEventListener("scroll",y,i.rU.passiveCapture)):window.removeEventListener("scroll",v,i.rU.passiveCapture)),t.classList.remove("q-body--prevent-scroll"),t.classList.remove("q-body--force-scrollbar-x"),t.classList.remove("q-body--force-scrollbar-y"),document.qScrollPrevented=!1,t.style.left=u,t.style.top=c,window.scrollTo(a,s),l=void 0)}function x(e){let t="add";if(!0===e){if(d++,void 0!==h)return clearTimeout(h),void(h=void 0);if(d>1)return}else{if(0===d)return;if(d--,d>0)return;if(t="remove",!0===o.Lp.is.ios&&!0===o.Lp.is.nativeMobile)return clearTimeout(h),void(h=setTimeout((()=>{m(t),h=void 0}),100))}m(t)}function _(){let e;return{preventBodyScroll(t){t===e||void 0===e&&!0!==t||(e=t,x(t))}}}},7277:(e,t,n)=>{"use strict";n.d(t,{$:()=>d,Z:()=>p});n(5363);var i=n(3673),r=n(4716),o=n(7445);function a(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function s(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function l(e,t){for(const n in t){const i=t[n],r=e[n];if("string"===typeof i){if(i!==r)return!1}else if(!1===Array.isArray(r)||r.length!==i.length||i.some(((e,t)=>e!==r[t])))return!1}return!0}function u(e,t){return!0===Array.isArray(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}function c(e,t){return!0===Array.isArray(e)?u(e,t):!0===Array.isArray(t)?u(t,e):e===t}function h(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!1===c(e[n],t[n]))return!1;return!0}const d={to:[String,Object],replace:Boolean,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"},href:String,target:String,disable:Boolean};function p(e){const t=(0,i.FN)(),{props:n,proxy:u}=t,c=(0,o.Rb)(t),d=(0,i.Fl)((()=>!0!==n.disable&&void 0!==n.href)),p=(0,i.Fl)((()=>!0===c&&!0!==n.disable&&!0!==d.value&&void 0!==n.to&&null!==n.to&&""!==n.to)),f=(0,i.Fl)((()=>{if(!0===p.value)try{return u.$router.resolve(n.to)}catch(e){}return null})),g=(0,i.Fl)((()=>null!==f.value)),v=(0,i.Fl)((()=>!0===d.value||!0===g.value)),y=(0,i.Fl)((()=>"a"===n.type||!0===v.value?"a":n.tag||e||"div")),m=(0,i.Fl)((()=>!0===d.value?{href:n.href,target:n.target}:!0===g.value?{href:f.value.href,target:n.target}:{})),x=(0,i.Fl)((()=>{if(!1===g.value)return null;const{matched:e}=f.value,{length:t}=e,n=e[t-1];if(void 0===n)return-1;const i=u.$route.matched;if(0===i.length)return-1;const r=i.findIndex(s.bind(null,n));if(r>-1)return r;const o=a(e[t-2]);return t>1&&a(n)===o&&i[i.length-1].path!==o?i.findIndex(s.bind(null,e[t-2])):r})),_=(0,i.Fl)((()=>!0===g.value&&x.value>-1&&l(u.$route.params,f.value.params))),b=(0,i.Fl)((()=>!0===_.value&&x.value===u.$route.matched.length-1&&h(u.$route.params,f.value.params))),w=(0,i.Fl)((()=>!0===g.value?!0===b.value?` ${n.exactActiveClass} ${n.activeClass}`:!0===n.exact?"":!0===_.value?` ${n.activeClass}`:"":""));function S(e){return!(!0===n.disable||e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||!0!==e.__qNavigate&&!0===e.defaultPrevented||void 0!==e.button&&0!==e.button||"_blank"===n.target)&&((0,r.X$)(e),u.$router[!0===n.replace?"replace":"push"](n.to).catch((e=>e)))}return{hasRouterLink:g,hasHrefLink:d,hasLink:v,linkTag:y,linkRoute:f,linkIsActive:_,linkIsExactActive:b,linkClass:w,linkProps:m,navigateToRouterLink:S}}},1372:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(1959),r=n(3673),o=n(4716);function a(e,t){const n=(0,i.iH)(null);let a;function s(e,t){const n=(void 0!==t?"add":"remove")+"EventListener",i=void 0!==t?t:a;e!==window&&e[n]("scroll",i,o.rU.passive),window[n]("scroll",i,o.rU.passive),a=t}function l(){null!==n.value&&(s(n.value),n.value=null)}const u=(0,r.YP)((()=>e.noParentEvent),(()=>{null!==n.value&&(l(),t())}));return(0,r.Jd)(u),{localScrollTarget:n,unconfigureScrollTarget:l,changeScrollEvent:s}}},2417:(e,t,n)=>{"use strict";n.d(t,{LU:()=>o,Ok:()=>r,ZP:()=>a});var i=n(3673);const r={xs:18,sm:24,md:32,lg:38,xl:46},o={size:String};function a(e,t=r){return(0,i.Fl)((()=>void 0!==e.size?{fontSize:e.size in t?`${t[e.size]}px`:e.size}:null))}},416:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(3673);function r(){let e;return(0,i.Jd)((()=>{e=void 0})),{registerTick(t){e=t,(0,i.Y3)((()=>{e===t&&(e(),e=void 0)}))},removeTick(){e=void 0}}}},4955:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(3673);function r(){let e;return(0,i.Jd)((()=>{clearTimeout(e)})),{registerTimeout(t,n){clearTimeout(e),e=setTimeout(t,n)},removeTimeout(){clearTimeout(e)}}}},6104:(e,t,n)=>{"use strict";n.d(t,{D:()=>o,Z:()=>a});var i=n(1959),r=n(3673);const o={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function a(e,t){const n=(0,i.iH)(t.value);return(0,r.YP)(t,(e=>{(0,r.Y3)((()=>{n.value=e}))})),{transition:(0,r.Fl)((()=>"q-transition--"+(!0===n.value?e.transitionHide:e.transitionShow))),transitionStyle:(0,r.Fl)((()=>`--q-transition-duration: ${e.transitionDuration}ms`))}}},677:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(908),r=n(4312),o=n(1436);function a(e){if(!1===e)return 0;if(!0===e||void 0===e)return 1;const t=parseInt(e,10);return isNaN(t)?0:t}const s=(0,i.f)({name:"close-popup",beforeMount(e,{value:t}){const n={depth:a(t),handler(t){0!==n.depth&&setTimeout((()=>{const i=(0,r.HW)(e);void 0!==i&&(0,r.S7)(i,t,n.depth)}))},handlerKey(e){!0===(0,o.So)(e,13)&&n.handler(e)}};e.__qclosepopup=n,e.addEventListener("click",n.handler),e.addEventListener("keyup",n.handlerKey)},updated(e,{value:t,oldValue:n}){t!==n&&(e.__qclosepopup.depth=a(t))},beforeUnmount(e){const t=e.__qclosepopup;e.removeEventListener("click",t.handler),e.removeEventListener("keyup",t.handlerKey),delete e.__qclosepopup}})},6489:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var i=n(908),r=n(2012),o=n(4716),a=n(1436);function s(e,t=250){let n,i=!1;return function(){return!1===i&&(i=!0,setTimeout((()=>{i=!1}),t),n=e.apply(this,arguments)),n}}function l(e,t,n,i){!0===n.modifiers.stop&&(0,o.sT)(e);const a=n.modifiers.color;let s=n.modifiers.center;s=!0===s||!0===i;const l=document.createElement("span"),u=document.createElement("span"),c=(0,o.FK)(e),{left:h,top:d,width:p,height:f}=t.getBoundingClientRect(),g=Math.sqrt(p*p+f*f),v=g/2,y=(p-g)/2+"px",m=s?y:c.left-h-v+"px",x=(f-g)/2+"px",_=s?x:c.top-d-v+"px";u.className="q-ripple__inner",(0,r.iv)(u,{height:`${g}px`,width:`${g}px`,transform:`translate3d(${m},${_},0) scale3d(.2,.2,1)`,opacity:0}),l.className="q-ripple"+(a?" text-"+a:""),l.setAttribute("dir","ltr"),l.appendChild(u),t.appendChild(l);const b=()=>{l.remove(),clearTimeout(w)};n.abort.push(b);let w=setTimeout((()=>{u.classList.add("q-ripple__inner--enter"),u.style.transform=`translate3d(${y},${x},0) scale3d(1,1,1)`,u.style.opacity=.2,w=setTimeout((()=>{u.classList.remove("q-ripple__inner--enter"),u.classList.add("q-ripple__inner--leave"),u.style.opacity=0,w=setTimeout((()=>{l.remove(),n.abort.splice(n.abort.indexOf(b),1)}),275)}),250)}),50)}function u(e,{modifiers:t,value:n,arg:i}){const r=Object.assign({},e.cfg.ripple,t,n);e.modifiers={early:!0===r.early,stop:!0===r.stop,center:!0===r.center,color:r.color||i,keyCodes:[].concat(r.keyCodes||13)}}const c=(0,i.f)({name:"ripple",beforeMount(e,t){const n=t.instance.$.appContext.config.globalProperties.$q.config||{};if(!1===n.ripple)return;const i={cfg:n,enabled:!1!==t.value,modifiers:{},abort:[],start(t){!0===i.enabled&&!0!==t.qSkipRipple&&t.type===(!0===i.modifiers.early?"pointerdown":"click")&&l(t,e,i,!0===t.qKeyEvent)},keystart:s((t=>{!0===i.enabled&&!0!==t.qSkipRipple&&!0===(0,a.So)(t,i.modifiers.keyCodes)&&t.type==="key"+(!0===i.modifiers.early?"down":"up")&&l(t,e,i,!0)}),300)};u(i,t),e.__qripple=i,(0,o.M0)(i,"main",[[e,"pointerdown","start","passive"],[e,"click","start","passive"],[e,"keydown","keystart","passive"],[e,"keyup","keystart","passive"]])},updated(e,t){if(t.oldValue!==t.value){const n=e.__qripple;void 0!==n&&(n.enabled=!1!==t.value,!0===n.enabled&&Object(t.value)===t.value&&u(n,t))}},beforeUnmount(e){const t=e.__qripple;void 0!==t&&(t.abort.forEach((e=>{e()})),(0,o.ul)(t,"main"),delete e._qripple)}})},6583:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});n(71),n(3610);var i=n(4688),r=n(4716);const o=()=>!0;function a(e){return"string"===typeof e&&""!==e&&"/"!==e&&"#/"!==e}function s(e){return!0===e.startsWith("#")&&(e=e.substring(1)),!1===e.startsWith("/")&&(e="/"+e),!0===e.endsWith("/")&&(e=e.substring(0,e.length-1)),"#"+e}function l(e){if(!1===e.backButtonExit)return()=>!1;if("*"===e.backButtonExit)return o;const t=["#/"];return!0===Array.isArray(e.backButtonExit)&&t.push(...e.backButtonExit.filter(a).map(s)),()=>t.includes(window.location.hash)}const u={__history:[],add:r.ZT,remove:r.ZT,install({$q:e}){if(!0===this.__installed)return;const{cordova:t,capacitor:n}=i.Lp.is;if(!0!==t&&!0!==n)return;const r=e.config[!0===t?"cordova":"capacitor"];if(void 0!==r&&!1===r.backButton)return;if(!0===n&&(void 0===window.Capacitor||void 0===window.Capacitor.Plugins.App))return;this.add=e=>{void 0===e.condition&&(e.condition=o),this.__history.push(e)},this.remove=e=>{const t=this.__history.indexOf(e);t>=0&&this.__history.splice(t,1)};const a=l(Object.assign({backButtonExit:!0},r)),s=()=>{if(this.__history.length){const e=this.__history[this.__history.length-1];!0===e.condition()&&(this.__history.pop(),e.handler())}else!0===a()?navigator.app.exitApp():window.history.back()};!0===t?document.addEventListener("deviceready",(()=>{document.addEventListener("backbutton",s,!1)})):window.Capacitor.Plugins.App.addListener("backButton",s)}}},9111:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s,F:()=>r});n(5363);var i=n(2002);const r={isoName:"en-US",nativeName:"English (US)",label:{clear:"Clear",ok:"OK",cancel:"Cancel",close:"Close",set:"Set",select:"Select",reset:"Reset",remove:"Remove",update:"Update",create:"Create",search:"Search",filter:"Filter",refresh:"Refresh"},date:{days:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),daysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),firstDayOfWeek:0,format24h:!1,pluralDay:"days"},table:{noData:"No data available",noResults:"No matching records found",loading:"Loading...",selectedRecords:e=>1===e?"1 record selected.":(0===e?"No":e)+" records selected.",recordsPerPage:"Records per page:",allRows:"All",pagination:(e,t,n)=>e+"-"+t+" of "+n,columns:"Columns"},editor:{url:"URL",bold:"Bold",italic:"Italic",strikethrough:"Strikethrough",underline:"Underline",unorderedList:"Unordered List",orderedList:"Ordered List",subscript:"Subscript",superscript:"Superscript",hyperlink:"Hyperlink",toggleFullscreen:"Toggle Fullscreen",quote:"Quote",left:"Left align",center:"Center align",right:"Right align",justify:"Justify align",print:"Print",outdent:"Decrease indentation",indent:"Increase indentation",removeFormat:"Remove formatting",formatting:"Formatting",fontSize:"Font Size",align:"Align",hr:"Insert Horizontal Rule",undo:"Undo",redo:"Redo",heading1:"Heading 1",heading2:"Heading 2",heading3:"Heading 3",heading4:"Heading 4",heading5:"Heading 5",heading6:"Heading 6",paragraph:"Paragraph",code:"Code",size1:"Very small",size2:"A bit small",size3:"Normal",size4:"Medium-large",size5:"Big",size6:"Very big",size7:"Maximum",defaultFont:"Default Font",viewSource:"View Source"},tree:{noNodes:"No nodes available",noResults:"No matching nodes found"}};function o(){const e=!0===Array.isArray(navigator.languages)&&navigator.languages.length>0?navigator.languages[0]:navigator.language;if("string"===typeof e)return e.split(/[-_]/).map(((e,t)=>0===t?e.toLowerCase():t>1||e.length<4?e.toUpperCase():e[0].toUpperCase()+e.slice(1).toLowerCase())).join("-")}const a=(0,i.Z)({__langPack:{}},{getLocale:o,set(e=r,t){const n={...e,rtl:!0===e.rtl,getLocale:o};{const e=document.documentElement;e.setAttribute("dir",!0===n.rtl?"rtl":"ltr"),e.setAttribute("lang",n.isoName),n.set=a.set,Object.assign(a.__langPack,n),a.props=n,a.isoName=n.isoName,a.nativeName=n.nativeName}},install({$q:e,lang:t,ssrContext:n}){e.lang=a.__langPack,!0===this.__installed?void 0!==t&&this.set(t):this.set(t||r)}}),s=a},4688:(e,t,n)=>{"use strict";n.d(t,{Lp:()=>g,ZP:()=>y,aG:()=>a,uX:()=>o});var i=n(1959),r=n(9085);const o=(0,i.iH)(!1);let a,s=!1;function l(e,t){const n=/(edg|edge|edga|edgios)\/([\w.]+)/.exec(e)||/(opr)[\/]([\w.]+)/.exec(e)||/(vivaldi)[\/]([\w.]+)/.exec(e)||/(chrome|crios)[\/]([\w.]+)/.exec(e)||/(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e)||/(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e)||/(firefox|fxios)[\/]([\w.]+)/.exec(e)||/(webkit)[\/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[\/]([\w.]+)/.exec(e)||[];return{browser:n[5]||n[3]||n[1]||"",version:n[2]||n[4]||"0",versionNumber:n[4]||n[2]||"0",platform:t[0]||""}}function u(e){return/(ipad)/.exec(e)||/(ipod)/.exec(e)||/(windows phone)/.exec(e)||/(iphone)/.exec(e)||/(kindle)/.exec(e)||/(silk)/.exec(e)||/(android)/.exec(e)||/(win)/.exec(e)||/(mac)/.exec(e)||/(linux)/.exec(e)||/(cros)/.exec(e)||/(playbook)/.exec(e)||/(bb)/.exec(e)||/(blackberry)/.exec(e)||[]}const c="ontouchstart"in window||window.navigator.maxTouchPoints>0;function h(e){a={is:{...e}},delete e.mac,delete e.desktop;const t=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(e,{mobile:!0,ios:!0,platform:t,[t]:!0})}function d(e){const t=e.toLowerCase(),n=u(t),i=l(t,n),r={};i.browser&&(r[i.browser]=!0,r.version=i.version,r.versionNumber=parseInt(i.versionNumber,10)),i.platform&&(r[i.platform]=!0);const o=r.android||r.ios||r.bb||r.blackberry||r.ipad||r.iphone||r.ipod||r.kindle||r.playbook||r.silk||r["windows phone"];return!0===o||t.indexOf("mobile")>-1?(r.mobile=!0,r.edga||r.edgios?(r.edge=!0,i.browser="edge"):r.crios?(r.chrome=!0,i.browser="chrome"):r.fxios&&(r.firefox=!0,i.browser="firefox")):r.desktop=!0,(r.ipod||r.ipad||r.iphone)&&(r.ios=!0),r["windows phone"]&&(r.winphone=!0,delete r["windows phone"]),(r.chrome||r.opr||r.safari||r.vivaldi||!0===r.mobile&&!0!==r.ios&&!0!==o)&&(r.webkit=!0),r.edg&&(i.browser="edgechromium",r.edgeChromium=!0),(r.safari&&r.blackberry||r.bb)&&(i.browser="blackberry",r.blackberry=!0),r.safari&&r.playbook&&(i.browser="playbook",r.playbook=!0),r.opr&&(i.browser="opera",r.opera=!0),r.safari&&r.android&&(i.browser="android",r.android=!0),r.safari&&r.kindle&&(i.browser="kindle",r.kindle=!0),r.safari&&r.silk&&(i.browser="silk",r.silk=!0),r.vivaldi&&(i.browser="vivaldi",r.vivaldi=!0),r.name=i.browser,r.platform=i.platform,t.indexOf("electron")>-1?r.electron=!0:document.location.href.indexOf("-extension://")>-1?r.bex=!0:(void 0!==window.Capacitor?(r.capacitor=!0,r.nativeMobile=!0,r.nativeMobileWrapper="capacitor"):void 0===window._cordovaNative&&void 0===window.cordova||(r.cordova=!0,r.nativeMobile=!0,r.nativeMobileWrapper="cordova"),!0===c&&!0===r.mac&&(!0===r.desktop&&!0===r.safari||!0===r.nativeMobile&&!0!==r.android&&!0!==r.ios&&!0!==r.ipad)&&h(r)),r}const p=navigator.userAgent||navigator.vendor||window.opera,f={has:{touch:!1,webStorage:!1},within:{iframe:!1}},g={userAgent:p,is:d(p),has:{touch:c},within:{iframe:window.self!==window.top}},v={install(e){const{$q:t}=e;!0===o.value?(e.onSSRHydrated.push((()=>{o.value=!1,Object.assign(t.platform,g),a=void 0})),t.platform=(0,i.qj)(this)):t.platform=this}};{let e;(0,r.g)(g.has,"webStorage",(()=>{if(void 0!==e)return e;try{if(window.localStorage)return e=!0,!0}catch(t){}return e=!1,!1})),s=!0===g.is.ios&&-1===window.navigator.vendor.toLowerCase().indexOf("apple"),!0===o.value?Object.assign(v,g,a,f):Object.assign(v,g)}const y=v},9405:(e,t,n)=>{"use strict";function i(e,t=250,n){let i;function r(){const r=arguments,o=()=>{i=void 0,!0!==n&&e.apply(this,r)};clearTimeout(i),!0===n&&void 0===i&&e.apply(this,r),i=setTimeout(o,t)}return r.cancel=()=>{clearTimeout(i)},r}n.d(t,{Z:()=>i})},2012:(e,t,n)=>{"use strict";n.d(t,{iv:()=>r,mY:()=>a,sb:()=>o});var i=n(1959);function r(e,t){const n=e.style;for(const i in t)n[i]=t[i]}function o(e){if(void 0===e||null===e)return;if("string"===typeof e)try{return document.querySelector(e)||void 0}catch(n){return}const t=!0===(0,i.dq)(e)?e.value:e;return t?t.$el||t:void 0}function a(e,t){if(void 0===e||null===e||!0===e.contains(t))return!0;for(let n=e.nextElementSibling;null!==n;n=n.nextElementSibling)if(n.contains(t))return!0;return!1}},4716:(e,t,n)=>{"use strict";n.d(t,{AZ:()=>s,FK:()=>a,Jf:()=>h,M0:()=>d,NS:()=>c,X$:()=>u,ZT:()=>r,du:()=>o,rU:()=>i,sT:()=>l,ul:()=>p});n(71);const i={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const e=Object.defineProperty({},"passive",{get(){Object.assign(i,{hasPassive:!0,passive:{passive:!0},notPassive:{passive:!1},passiveCapture:{passive:!0,capture:!0},notPassiveCapture:{passive:!1,capture:!0}})}});window.addEventListener("qtest",null,e),window.removeEventListener("qtest",null,e)}catch(f){}function r(){}function o(e){return 0===e.button}function a(e){return e.touches&&e.touches[0]?e=e.touches[0]:e.changedTouches&&e.changedTouches[0]?e=e.changedTouches[0]:e.targetTouches&&e.targetTouches[0]&&(e=e.targetTouches[0]),{top:e.clientY,left:e.clientX}}function s(e){if(e.path)return e.path;if(e.composedPath)return e.composedPath();const t=[];let n=e.target;while(n){if(t.push(n),"HTML"===n.tagName)return t.push(document),t.push(window),t;n=n.parentElement}}function l(e){e.stopPropagation()}function u(e){!1!==e.cancelable&&e.preventDefault()}function c(e){!1!==e.cancelable&&e.preventDefault(),e.stopPropagation()}function h(e,t){if(void 0===e||!0===t&&!0===e.__dragPrevented)return;const n=!0===t?e=>{e.__dragPrevented=!0,e.addEventListener("dragstart",u,i.notPassiveCapture)}:e=>{delete e.__dragPrevented,e.removeEventListener("dragstart",u,i.notPassiveCapture)};e.querySelectorAll("a, img").forEach(n)}function d(e,t,n){const r=`__q_${t}_evt`;e[r]=void 0!==e[r]?e[r].concat(n):n,n.forEach((t=>{t[0].addEventListener(t[1],e[t[2]],i[t[3]])}))}function p(e,t){const n=`__q_${t}_evt`;void 0!==e[n]&&(e[n].forEach((t=>{t[0].removeEventListener(t[1],e[t[2]],i[t[3]])})),e[n]=void 0)}},2130:(e,t,n)=>{"use strict";n.d(t,{Uz:()=>o,kC:()=>i,vX:()=>r,vk:()=>a});function i(e){return e.charAt(0).toUpperCase()+e.slice(1)}function r(e,t,n){return n<=t?t:Math.min(n,Math.max(t,e))}function o(e,t,n){if(n<=t)return t;const i=n-t+1;let r=t+(e-t)%i;return r=t?i:new Array(t-i.length+1).join(n)+i}},9916:(e,t,n)=>{"use strict";n.d(t,{D:()=>c,m:()=>u});var i=n(4716),r=n(4312);let o;const{notPassiveCapture:a}=i.rU,s=[];function l(e){clearTimeout(o);const t=e.target;if(void 0===t||8===t.nodeType||!0===t.classList.contains("no-pointer-events"))return;let n=r.wN.length-1;while(n>=0){const e=r.wN[n].$;if("QDialog"!==e.type.name)break;if(!0!==e.props.seamless)return;n--}for(let i=s.length-1;i>=0;i--){const n=s[i];if(null!==n.anchorEl.value&&!1!==n.anchorEl.value.contains(t)||t!==document.body&&(null===n.innerRef.value||!1!==n.innerRef.value.contains(t)))return;e.qClickOutside=!0,n.onClickOutside(e)}}function u(e){s.push(e),1===s.length&&(document.addEventListener("mousedown",l,a),document.addEventListener("touchstart",l,a))}function c(e){const t=s.findIndex((t=>t===e));t>-1&&(s.splice(t,1),0===s.length&&(clearTimeout(o),document.removeEventListener("mousedown",l,a),document.removeEventListener("touchstart",l,a)))}},908:(e,t,n)=>{"use strict";n.d(t,{L:()=>o,f:()=>a});var i=n(1959),r=n(3673);const o=e=>(0,i.Xl)((0,r.aZ)(e)),a=e=>(0,i.Xl)(e)},2002:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var i=n(1959),r=n(9085);const o=(e,t)=>{const n=(0,i.qj)(e);for(const i in e)(0,r.g)(t,i,(()=>n[i]),(e=>{n[i]=e}));return t}},4704:(e,t,n)=>{"use strict";n.d(t,{c:()=>h,k:()=>d});var i=n(4688),r=n(1436);const o=[];let a;function s(e){a=27===e.keyCode}function l(){!0===a&&(a=!1)}function u(e){!0===a&&(a=!1,!0===(0,r.So)(e,27)&&o[o.length-1](e))}function c(e){window[e]("keydown",s),window[e]("blur",l),window[e]("keyup",u),a=!1}function h(e){!0===i.Lp.is.desktop&&(o.push(e),1===o.length&&c("addEventListener"))}function d(e){const t=o.indexOf(e);t>-1&&(o.splice(t,1),0===o.length&&c("removeEventListener"))}},230:(e,t,n)=>{"use strict";n.d(t,{YX:()=>a,fP:()=>u,jd:()=>l,xF:()=>s});let i=[],r=[];function o(e){r=r.filter((t=>t!==e))}function a(e){o(e),r.push(e)}function s(e){o(e),0===r.length&&i.length>0&&(i[i.length-1](),i=[])}function l(e){0===r.length?e():i.push(e)}function u(e){i=i.filter((t=>t!==e))}},8517:(e,t,n)=>{"use strict";n.d(t,{H:()=>s,i:()=>a});var i=n(4688);const r=[];function o(e){r[r.length-1](e)}function a(e){!0===i.Lp.is.desktop&&(r.push(e),1===r.length&&document.body.addEventListener("focusin",o))}function s(e){const t=r.indexOf(e);t>-1&&(r.splice(t,1),0===r.length&&document.body.removeEventListener("focusin",o))}},5578:(e,t,n)=>{"use strict";n.d(t,{Uf:()=>r,tP:()=>o,w6:()=>i});const i={};let r=!1;function o(){r=!0}},9085:(e,t,n)=>{"use strict";function i(e,t,n,i){Object.defineProperty(e,t,{get:n,set:i,enumerable:!0})}function r(e,t){for(const n in t)i(e,n,t[n])}n.d(t,{K:()=>r,g:()=>i})},782:(e,t,n)=>{"use strict";n.d(t,{J_:()=>l,Kn:()=>s,hj:()=>u,xb:()=>a});n(71),n(4406);const i="function"===typeof Map,r="function"===typeof Set,o="function"===typeof ArrayBuffer;function a(e,t){if(e===t)return!0;if(null!==e&&null!==t&&"object"===typeof e&&"object"===typeof t){if(e.constructor!==t.constructor)return!1;let n,s;if(e.constructor===Array){if(n=e.length,n!==t.length)return!1;for(s=n;0!==s--;)if(!0!==a(e[s],t[s]))return!1;return!0}if(!0===i&&e.constructor===Map){if(e.size!==t.size)return!1;s=e.entries().next();while(!0!==s.done){if(!0!==t.has(s.value[0]))return!1;s=s.next()}s=e.entries().next();while(!0!==s.done){if(!0!==a(s.value[1],t.get(s.value[0])))return!1;s=s.next()}return!0}if(!0===r&&e.constructor===Set){if(e.size!==t.size)return!1;s=e.entries().next();while(!0!==s.done){if(!0!==t.has(s.value[0]))return!1;s=s.next()}return!0}if(!0===o&&null!=e.buffer&&e.buffer.constructor===ArrayBuffer){if(n=e.length,n!==t.length)return!1;for(s=n;0!==s--;)if(e[s]!==t[s])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const l=Object.keys(e).filter((t=>void 0!==e[t]));if(n=l.length,n!==Object.keys(t).filter((e=>void 0!==t[e])).length)return!1;for(s=n;0!==s--;){const n=l[s];if(!0!==a(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function s(e){return null!==e&&"object"===typeof e&&!0!==Array.isArray(e)}function l(e){return"[object Date]"===Object.prototype.toString.call(e)}function u(e){return"number"===typeof e&&isFinite(e)}},1436:(e,t,n)=>{"use strict";n.d(t,{So:()=>a,Wm:()=>o,ZK:()=>r});n(3610);let i=!1;function r(e){i=!0===e.isComposing}function o(e){return!0===i||e!==Object(e)||!0===e.isComposing||!0===e.qKeyEvent}function a(e,t){return!0!==o(e)&&[].concat(t).includes(e.keyCode)}},4312:(e,t,n)=>{"use strict";n.d(t,{AH:()=>a,HW:()=>o,S7:()=>s,wN:()=>r});var i=n(7445);const r=[];function o(e){return r.find((t=>null!==t.__qPortalInnerRef.value&&t.__qPortalInnerRef.value.contains(e)))}function a(e,t){do{if("QMenu"===e.$options.name){if(e.hide(t),!0===e.$props.separateClosePopup)return(0,i.Kq)(e)}else if(void 0!==e.__qPortalInnerRef){const n=(0,i.Kq)(e);return void 0!==n&&"QPopupProxy"===n.$options.name?(e.hide(t),n):e}e=(0,i.Kq)(e)}while(void 0!==e&&null!==e)}function s(e,t,n){while(0!==n&&void 0!==e&&null!==e){if(void 0!==e.__qPortalInnerRef){if(n--,"QMenu"===e.$options.name){e=a(e,t);continue}e.hide(t)}e=(0,i.Kq)(e)}}},2657:(e,t,n)=>{"use strict";n.d(t,{$:()=>s,io:()=>l,li:()=>c,wq:()=>p});n(3610);var i=n(8400),r=n(4688);let o,a;function s(e){const t=e.split(" ");return 2===t.length&&(!0!==["top","center","bottom"].includes(t[0])?(console.error("Anchor/Self position must start with one of top/center/bottom"),!1):!0===["left","middle","right","start","end"].includes(t[1])||(console.error("Anchor/Self position must end with one of left/middle/right/start/end"),!1))}function l(e){return!e||2===e.length&&("number"===typeof e[0]&&"number"===typeof e[1])}const u={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};function c(e,t){const n=e.split(" ");return{vertical:n[0],horizontal:u[`${n[1]}#${!0===t?"rtl":"ltr"}`]}}function h(e,t){let{top:n,left:i,right:r,bottom:o,width:a,height:s}=e.getBoundingClientRect();return void 0!==t&&(n-=t[1],i-=t[0],o+=t[1],r+=t[0],a+=t[0],s+=t[1]),{top:n,left:i,right:r,bottom:o,width:a,height:s,middle:i+(r-i)/2,center:n+(o-n)/2}}function d(e){return{top:0,center:e.offsetHeight/2,bottom:e.offsetHeight,left:0,middle:e.offsetWidth/2,right:e.offsetWidth}}function p(e){if(!0===r.Lp.is.ios&&void 0!==window.visualViewport){const e=document.body.style,{offsetLeft:t,offsetTop:n}=window.visualViewport;t!==o&&(e.setProperty("--q-pe-left",t+"px"),o=t),n!==a&&(e.setProperty("--q-pe-top",n+"px"),a=n)}let t;const{scrollLeft:n,scrollTop:i}=e.el;if(void 0===e.absoluteOffset)t=h(e.anchorEl,!0===e.cover?[0,0]:e.offset);else{const{top:n,left:i}=e.anchorEl.getBoundingClientRect(),r=n+e.absoluteOffset.top,o=i+e.absoluteOffset.left;t={top:r,left:o,width:1,height:1,right:o+1,center:r,middle:o,bottom:r+1}}let s={maxHeight:e.maxHeight,maxWidth:e.maxWidth,visibility:"visible"};!0!==e.fit&&!0!==e.cover||(s.minWidth=t.width+"px",!0===e.cover&&(s.minHeight=t.height+"px")),Object.assign(e.el.style,s);const l=d(e.el),u={top:t[e.anchorOrigin.vertical]-l[e.selfOrigin.vertical],left:t[e.anchorOrigin.horizontal]-l[e.selfOrigin.horizontal]};f(u,t,l,e.anchorOrigin,e.selfOrigin),s={top:u.top+"px",left:u.left+"px"},void 0!==u.maxHeight&&(s.maxHeight=u.maxHeight+"px",t.height>u.maxHeight&&(s.minHeight=s.maxHeight)),void 0!==u.maxWidth&&(s.maxWidth=u.maxWidth+"px",t.width>u.maxWidth&&(s.minWidth=s.maxWidth)),Object.assign(e.el.style,s),e.el.scrollTop!==i&&(e.el.scrollTop=i),e.el.scrollLeft!==n&&(e.el.scrollLeft=n)}function f(e,t,n,r,o){const a=n.bottom,s=n.right,l=(0,i.np)(),u=window.innerHeight-l,c=document.body.clientWidth;if(e.top<0||e.top+a>u)if("center"===o.vertical)e.top=t[r.vertical]>u/2?Math.max(0,u-a):0,e.maxHeight=Math.min(a,u);else if(t[r.vertical]>u/2){const n=Math.min(u,"center"===r.vertical?t.center:r.vertical===o.vertical?t.bottom:t.top);e.maxHeight=Math.min(a,n),e.top=Math.max(0,n-a)}else e.top=Math.max(0,"center"===r.vertical?t.center:r.vertical===o.vertical?t.top:t.bottom),e.maxHeight=Math.min(a,u-e.top);if(e.left<0||e.left+s>c)if(e.maxWidth=Math.min(s,c),"middle"===o.horizontal)e.left=t[r.horizontal]>c/2?Math.max(0,c-s):0;else if(t[r.horizontal]>c/2){const n=Math.min(c,"middle"===r.horizontal?t.middle:r.horizontal===o.horizontal?t.right:t.left);e.maxWidth=Math.min(s,n),e.left=Math.max(0,n-e.maxWidth)}else e.left=Math.max(0,"middle"===r.horizontal?t.middle:r.horizontal===o.horizontal?t.left:t.right),e.maxWidth=Math.min(s,c-e.left)}["left","middle","right"].forEach((e=>{u[`${e}#ltr`]=e,u[`${e}#rtl`]=e}))},7657:(e,t,n)=>{"use strict";n.d(t,{Bl:()=>o,Jl:()=>l,KR:()=>r,pf:()=>s,vs:()=>a});var i=n(3673);function r(e,t){return void 0!==e&&e()||t}function o(e,t){if(void 0!==e){const t=e();if(void 0!==t&&null!==t)return t.slice()}return t}function a(e,t){return void 0!==e?t.concat(e()):t}function s(e,t){return void 0===e?t:void 0!==t?t.concat(e()):e()}function l(e,t,n,r,o,a){t.key=r+o;const s=(0,i.h)(e,t,n);return!0===o?(0,i.wy)(s,a()):s}},9725:(e,t,n)=>{"use strict";n.d(t,{M:()=>r});var i=n(4688);function r(){if(void 0!==window.getSelection){const e=window.getSelection();void 0!==e.empty?e.empty():void 0!==e.removeAllRanges&&(e.removeAllRanges(),!0!==i.ZP.is.mobile&&e.addRange(document.createRange()))}else void 0!==document.selection&&document.selection.empty()}},2547:(e,t,n)=>{"use strict";n.d(t,{Mw:()=>a,Ng:()=>i,YE:()=>o,vh:()=>s,xP:()=>r});const i="_q_",r="_q_t_",o="_q_l_",a="_q_pc_",s="_q_fo_"},7445:(e,t,n)=>{"use strict";n.d(t,{Kq:()=>i,Pf:()=>o,Rb:()=>a});n(71);function i(e){if(Object(e.$parent)===e.$parent)return e.$parent;e=e.$.parent;while(Object(e)===e){if(Object(e.proxy)===e.proxy)return e.proxy;e=e.parent}}function r(e,t){"symbol"===typeof t.type?!0===Array.isArray(t.children)&&t.children.forEach((t=>{r(e,t)})):e.add(t)}function o(e){const t=new Set;return e.forEach((e=>{r(t,e)})),Array.from(t)}function a(e){return void 0!==e.appContext.config.globalProperties.$router}},8400:(e,t,n)=>{"use strict";n.d(t,{OI:()=>s,QA:()=>c,b0:()=>o,np:()=>u,u3:()=>a});n(3610);var i=n(2012);const r=[null,document,document.body,document.scrollingElement,document.documentElement];function o(e,t){let n=(0,i.sb)(t);if(void 0===n){if(void 0===e||null===e)return window;n=e.closest(".scroll,.scroll-y,.overflow-auto")}return r.includes(n)?window:n}function a(e){return e===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:e.scrollTop}function s(e){return e===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:e.scrollLeft}let l;function u(){if(void 0!==l)return l;const e=document.createElement("p"),t=document.createElement("div");(0,i.iv)(e,{width:"100%",height:"200px"}),(0,i.iv)(t,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),t.appendChild(e),document.body.appendChild(t);const n=e.offsetWidth;t.style.overflow="scroll";let r=e.offsetWidth;return n===r&&(r=t.clientWidth),t.remove(),l=n-r,l}function c(e,t=!0){return!(!e||e.nodeType!==Node.ELEMENT_NODE)&&(t?e.scrollHeight>e.clientHeight&&(e.classList.contains("scroll")||e.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(e)["overflow-y"])):e.scrollWidth>e.clientWidth&&(e.classList.contains("scroll")||e.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(e)["overflow-x"])))}},4398:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});n(6701);function i(e,t,n=document.body){if("string"!==typeof e)throw new TypeError("Expected a string as propName");if("string"!==typeof t)throw new TypeError("Expected a string as value");if(!(n instanceof Element))throw new TypeError("Expected a DOM element");n.style.setProperty(`--q-${e}`,t)}},9782:(e,t,n)=>{"use strict";n.d(t,{Z:()=>P});n(3610);var i=n(4688),r=(n(71),n(2002)),o=n(4716),a=n(9405);const s=["sm","md","lg","xl"],{passive:l}=o.rU,u=(0,r.Z)({width:0,height:0,name:"xs",sizes:{sm:600,md:1024,lg:1440,xl:1920},lt:{sm:!0,md:!0,lg:!0,xl:!0},gt:{xs:!1,sm:!1,md:!1,lg:!1},xs:!0,sm:!1,md:!1,lg:!1,xl:!1},{setSizes:o.ZT,setDebounce:o.ZT,install({$q:e,onSSRHydrated:t}){if(e.screen=this,!0===this.__installed)return void(void 0!==e.config.screen&&(!1===e.config.screen.bodyClasses?document.body.classList.remove(`screen--${this.name}`):this.__update(!0)));const{visualViewport:n}=window,r=n||window,o=document.scrollingElement||document.documentElement,u=void 0===n||!0===i.Lp.is.mobile?()=>[Math.max(window.innerWidth,o.clientWidth),Math.max(window.innerHeight,o.clientHeight)]:()=>[n.width*n.scale+window.innerWidth-o.clientWidth,n.height*n.scale+window.innerHeight-o.clientHeight],c=void 0!==e.config.screen&&!0===e.config.screen.bodyClasses;this.__update=e=>{const[t,n]=u();if(n!==this.height&&(this.height=n),t!==this.width)this.width=t;else if(!0!==e)return;let i=this.sizes;this.gt.xs=t>=i.sm,this.gt.sm=t>=i.md,this.gt.md=t>=i.lg,this.gt.lg=t>=i.xl,this.lt.sm=t{s.forEach((t=>{void 0!==e[t]&&(d[t]=e[t])}))},this.setDebounce=e=>{p=e};const f=()=>{const e=getComputedStyle(document.body);e.getPropertyValue("--q-size-sm")&&s.forEach((t=>{this.sizes[t]=parseInt(e.getPropertyValue(`--q-size-${t}`),10)})),this.setSizes=e=>{s.forEach((t=>{e[t]&&(this.sizes[t]=e[t])})),this.__update(!0)},this.setDebounce=e=>{void 0!==h&&r.removeEventListener("resize",h,l),h=e>0?(0,a.Z)(this.__update,e):this.__update,r.addEventListener("resize",h,l)},this.setDebounce(p),Object.keys(d).length>0?(this.setSizes(d),d=void 0):this.__update(),!0===c&&"xs"===this.name&&document.body.classList.add("screen--xs")};!0===i.uX.value?t.push(f):f()}});n(5363);const c=(0,r.Z)({isActive:!1,mode:!1},{__media:void 0,set(e){c.mode=e,"auto"===e?(void 0===c.__media&&(c.__media=window.matchMedia("(prefers-color-scheme: dark)"),c.__updateMedia=()=>{c.set("auto")},c.__media.addListener(c.__updateMedia)),e=c.__media.matches):void 0!==c.__media&&(c.__media.removeListener(c.__updateMedia),c.__media=void 0),c.isActive=!0===e,document.body.classList.remove("body--"+(!0===e?"light":"dark")),document.body.classList.add("body--"+(!0===e?"dark":"light"))},toggle(){c.set(!1===c.isActive)},install({$q:e,onSSRHydrated:t,ssrContext:n}){const{dark:r}=e.config;if(e.dark=this,!0===this.__installed&&void 0===r)return;this.isActive=!0===r;const o=void 0!==r&&r;if(!0===i.uX.value){const e=e=>{this.__fromSSR=e},n=this.set;this.set=e,e(o),t.push((()=>{this.set=n,this.set(this.__fromSSR)}))}else this.set(o)}}),h=c;var d=n(6583),p=n(9111),f=n(4398),g=n(1436);function v(e){return!0===e.ios?"ios":!0===e.android?"android":void 0}function y({is:e,has:t,within:n},i){const r=[!0===e.desktop?"desktop":"mobile",(!1===t.touch?"no-":"")+"touch"];if(!0===e.mobile){const t=v(e);void 0!==t&&r.push("platform-"+t)}if(!0===e.nativeMobile){const t=e.nativeMobileWrapper;r.push(t),r.push("native-mobile"),!0!==e.ios||void 0!==i[t]&&!1===i[t].iosStatusBarPadding||r.push("q-ios-padding")}else!0===e.electron?r.push("electron"):!0===e.bex&&r.push("bex");return!0===n.iframe&&r.push("within-iframe"),r}function m(){const e=document.body.className;let t=e;void 0!==i.aG&&(t=t.replace("desktop","platform-ios mobile")),!0===i.Lp.has.touch&&(t=t.replace("no-touch","touch")),!0===i.Lp.within.iframe&&(t+=" within-iframe"),e!==t&&(document.body.className=t)}function x(e){for(const t in e)(0,f.Z)(t,e[t])}const _={install(e){if(!0!==this.__installed){if(!0===i.uX.value)m();else{const{$q:t}=e;void 0!==t.config.brand&&x(t.config.brand);const n=y(i.Lp,t.config);document.body.classList.add.apply(document.body.classList,n)}!0===i.Lp.is.ios&&document.body.addEventListener("touchstart",o.ZT),window.addEventListener("keydown",g.ZK,!0)}}};var b=n(9085);const w={name:"material-icons",type:{positive:"check_circle",negative:"warning",info:"info",warning:"priority_high"},arrow:{up:"arrow_upward",right:"arrow_forward",down:"arrow_downward",left:"arrow_back",dropdown:"arrow_drop_down"},chevron:{left:"chevron_left",right:"chevron_right"},colorPicker:{spectrum:"gradient",tune:"tune",palette:"style"},pullToRefresh:{icon:"refresh"},carousel:{left:"chevron_left",right:"chevron_right",up:"keyboard_arrow_up",down:"keyboard_arrow_down",navigationIcon:"lens"},chip:{remove:"cancel",selected:"check"},datetime:{arrowLeft:"chevron_left",arrowRight:"chevron_right",now:"access_time",today:"today"},editor:{bold:"format_bold",italic:"format_italic",strikethrough:"strikethrough_s",underline:"format_underlined",unorderedList:"format_list_bulleted",orderedList:"format_list_numbered",subscript:"vertical_align_bottom",superscript:"vertical_align_top",hyperlink:"link",toggleFullscreen:"fullscreen",quote:"format_quote",left:"format_align_left",center:"format_align_center",right:"format_align_right",justify:"format_align_justify",print:"print",outdent:"format_indent_decrease",indent:"format_indent_increase",removeFormat:"format_clear",formatting:"text_format",fontSize:"format_size",align:"format_align_left",hr:"remove",undo:"undo",redo:"redo",heading:"format_size",code:"code",size:"format_size",font:"font_download",viewSource:"code"},expansionItem:{icon:"keyboard_arrow_down",denseIcon:"arrow_drop_down"},fab:{icon:"add",activeIcon:"close"},field:{clear:"cancel",error:"error"},pagination:{first:"first_page",prev:"keyboard_arrow_left",next:"keyboard_arrow_right",last:"last_page"},rating:{icon:"grade"},stepper:{done:"check",active:"edit",error:"warning"},tabs:{left:"chevron_left",right:"chevron_right",up:"keyboard_arrow_up",down:"keyboard_arrow_down"},table:{arrowUp:"arrow_upward",warning:"warning",firstPage:"first_page",prevPage:"chevron_left",nextPage:"chevron_right",lastPage:"last_page"},tree:{icon:"play_arrow"},uploader:{done:"done",clear:"clear",add:"add_box",upload:"cloud_upload",removeQueue:"clear_all",removeUploaded:"done_all"}},S=(0,r.Z)({iconMapFn:null,__icons:{}},{set(e,t){const n={...e,rtl:!0===e.rtl};n.set=S.set,Object.assign(S.__icons,n)},install({$q:e,iconSet:t,ssrContext:n}){void 0!==e.config.iconMapFn&&(this.iconMapFn=e.config.iconMapFn),e.iconSet=this.__icons,(0,b.g)(e,"iconMapFn",(()=>this.iconMapFn),(e=>{this.iconMapFn=e})),!0===this.__installed?void 0!==t&&this.set(t):this.set(t||w)}}),M=S;var C=n(2547),I=n(5578),T=n(782);const k=[i.ZP,_,h,u,d.Z,p.Z,M];function A(e,t){t.forEach((t=>{t.install(e),t.__installed=!0}))}function D(e,t,n){e.config.globalProperties.$q=n.$q,e.provide(C.Ng,n.$q),A(n,k),void 0!==t.components&&Object.values(t.components).forEach((t=>{!0===(0,T.Kn)(t)&&void 0!==t.name&&e.component(t.name,t)})),void 0!==t.directives&&Object.values(t.directives).forEach((t=>{!0===(0,T.Kn)(t)&&void 0!==t.name&&e.directive(t.name,t)})),void 0!==t.plugins&&A(n,Object.values(t.plugins).filter((e=>"function"===typeof e.install&&!1===k.includes(e)))),!0===i.uX.value&&(n.$q.onSSRHydrated=()=>{n.onSSRHydrated.forEach((e=>{e()})),n.$q.onSSRHydrated=()=>{}})}const L=function(e,t={}){const n={version:"2.7.7"};!1===I.Uf?(void 0!==t.config&&Object.assign(I.w6,t.config),n.config={...I.w6},(0,I.tP)()):n.config=t.config||{},D(e,t,{parentApp:e,$q:n,lang:t.lang,iconSet:t.iconSet,onSSRHydrated:[]})},P={version:"2.7.7",install:L,lang:p.Z,iconSet:M}},392:(e,t,n)=>{var i=n(419),r=n(3353),o=TypeError;e.exports=function(e){if(i(e))return e;throw o(r(e)+" is not a function")}},2722:(e,t,n)=>{var i=n(7593),r=n(3353),o=TypeError;e.exports=function(e){if(i(e))return e;throw o(r(e)+" is not a constructor")}},8248:(e,t,n)=>{var i=n(419),r=String,o=TypeError;e.exports=function(e){if("object"==typeof e||i(e))return e;throw o("Can't set "+r(e)+" as a prototype")}},2852:(e,t,n)=>{var i=n(854),r=n(1074),o=n(928).f,a=i("unscopables"),s=Array.prototype;void 0==s[a]&&o(s,a,{configurable:!0,value:r(null)}),e.exports=function(e){s[a][e]=!0}},6412:(e,t,n)=>{"use strict";var i=n(1021).charAt;e.exports=function(e,t,n){return t+(n?i(e,t).length:1)}},2827:(e,t,n)=>{var i=n(7673),r=TypeError;e.exports=function(e,t){if(i(t,e))return e;throw r("Incorrect invocation")}},7950:(e,t,n)=>{var i=n(776),r=String,o=TypeError;e.exports=function(e){if(i(e))return e;throw o(r(e)+" is not an object")}},6257:e=>{e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},683:(e,t,n)=>{"use strict";var i,r,o,a=n(6257),s=n(9631),l=n(7358),u=n(419),c=n(776),h=n(7322),d=n(5976),p=n(3353),f=n(1904),g=n(3460),v=n(928).f,y=n(7673),m=n(4945),x=n(6184),_=n(854),b=n(6862),w=n(7624),S=w.enforce,M=w.get,C=l.Int8Array,I=C&&C.prototype,T=l.Uint8ClampedArray,k=T&&T.prototype,A=C&&m(C),D=I&&m(I),L=Object.prototype,P=l.TypeError,O=_("toStringTag"),R=b("TYPED_ARRAY_TAG"),E="TypedArrayConstructor",N=a&&!!x&&"Opera"!==d(l.opera),B=!1,F={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},z={BigInt64Array:8,BigUint64Array:8},V=function(e){if(!c(e))return!1;var t=d(e);return"DataView"===t||h(F,t)||h(z,t)},H=function(e){var t=m(e);if(c(t)){var n=M(t);return n&&h(n,E)?n[E]:H(t)}},q=function(e){if(!c(e))return!1;var t=d(e);return h(F,t)||h(z,t)},G=function(e){if(q(e))return e;throw P("Target is not a typed array")},W=function(e){if(u(e)&&(!x||y(A,e)))return e;throw P(p(e)+" is not a typed array constructor")},U=function(e,t,n,i){if(s){if(n)for(var r in F){var o=l[r];if(o&&h(o.prototype,e))try{delete o.prototype[e]}catch(a){try{o.prototype[e]=t}catch(u){}}}D[e]&&!n||g(D,e,n?t:N&&I[e]||t,i)}},j=function(e,t,n){var i,r;if(s){if(x){if(n)for(i in F)if(r=l[i],r&&h(r,e))try{delete r[e]}catch(o){}if(A[e]&&!n)return;try{return g(A,e,n?t:N&&A[e]||t)}catch(o){}}for(i in F)r=l[i],!r||r[e]&&!n||g(r,e,t)}};for(i in F)r=l[i],o=r&&r.prototype,o?S(o)[E]=r:N=!1;for(i in z)r=l[i],o=r&&r.prototype,o&&(S(o)[E]=r);if((!N||!u(A)||A===Function.prototype)&&(A=function(){throw P("Incorrect invocation")},N))for(i in F)l[i]&&x(l[i],A);if((!N||!D||D===L)&&(D=A.prototype,N))for(i in F)l[i]&&x(l[i].prototype,D);if(N&&m(k)!==D&&x(k,D),s&&!h(D,O))for(i in B=!0,v(D,O,{get:function(){return c(this)?this[R]:void 0}}),F)l[i]&&f(l[i],R,i);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:N,TYPED_ARRAY_TAG:B&&R,aTypedArray:G,aTypedArrayConstructor:W,exportTypedArrayMethod:U,exportTypedArrayStaticMethod:j,getTypedArrayConstructor:H,isView:V,isTypedArray:q,TypedArray:A,TypedArrayPrototype:D}},62:(e,t,n)=>{"use strict";var i=n(7358),r=n(1890),o=n(9631),a=n(6257),s=n(7961),l=n(1904),u=n(6703),c=n(6400),h=n(2827),d=n(1860),p=n(4068),f=n(833),g=n(8830),v=n(4945),y=n(6184),m=n(1454).f,x=n(928).f,_=n(5786),b=n(5771),w=n(1061),S=n(7624),M=s.PROPER,C=s.CONFIGURABLE,I=S.get,T=S.set,k="ArrayBuffer",A="DataView",D="prototype",L="Wrong length",P="Wrong index",O=i[k],R=O,E=R&&R[D],N=i[A],B=N&&N[D],F=Object.prototype,z=i.Array,V=i.RangeError,H=r(_),q=r([].reverse),G=g.pack,W=g.unpack,U=function(e){return[255&e]},j=function(e){return[255&e,e>>8&255]},Z=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},Y=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},$=function(e){return G(e,23,4)},X=function(e){return G(e,52,8)},K=function(e,t){x(e[D],t,{get:function(){return I(this)[t]}})},J=function(e,t,n,i){var r=f(n),o=I(e);if(r+t>o.byteLength)throw V(P);var a=I(o.buffer).bytes,s=r+o.byteOffset,l=b(a,s,s+t);return i?l:q(l)},Q=function(e,t,n,i,r,o){var a=f(n),s=I(e);if(a+t>s.byteLength)throw V(P);for(var l=I(s.buffer).bytes,u=a+s.byteOffset,c=i(+r),h=0;hie;)(te=ne[ie++])in R||l(R,te,O[te]);E.constructor=R}y&&v(B)!==F&&y(B,F);var re=new N(new R(2)),oe=r(B.setInt8);re.setInt8(0,2147483648),re.setInt8(1,2147483649),!re.getInt8(0)&&re.getInt8(1)||u(B,{setInt8:function(e,t){oe(this,e,t<<24>>24)},setUint8:function(e,t){oe(this,e,t<<24>>24)}},{unsafe:!0})}else R=function(e){h(this,E);var t=f(e);T(this,{bytes:H(z(t),0),byteLength:t}),o||(this.byteLength=t)},E=R[D],N=function(e,t,n){h(this,B),h(e,E);var i=I(e).byteLength,r=d(t);if(r<0||r>i)throw V("Wrong offset");if(n=void 0===n?i-r:p(n),r+n>i)throw V(L);T(this,{buffer:e,byteLength:n,byteOffset:r}),o||(this.buffer=e,this.byteLength=n,this.byteOffset=r)},B=N[D],o&&(K(R,"byteLength"),K(N,"buffer"),K(N,"byteLength"),K(N,"byteOffset")),u(B,{getInt8:function(e){return J(this,1,e)[0]<<24>>24},getUint8:function(e){return J(this,1,e)[0]},getInt16:function(e){var t=J(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=J(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return Y(J(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return Y(J(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return W(J(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return W(J(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){Q(this,1,e,U,t)},setUint8:function(e,t){Q(this,1,e,U,t)},setInt16:function(e,t){Q(this,2,e,j,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){Q(this,2,e,j,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){Q(this,4,e,Z,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){Q(this,4,e,Z,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){Q(this,4,e,$,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){Q(this,8,e,X,t,arguments.length>2?arguments[2]:void 0)}});w(R,k),w(N,A),e.exports={ArrayBuffer:R,DataView:N}},5786:(e,t,n)=>{"use strict";var i=n(7475),r=n(1801),o=n(6042);e.exports=function(e){var t=i(this),n=o(t),a=arguments.length,s=r(a>1?arguments[1]:void 0,n),l=a>2?arguments[2]:void 0,u=void 0===l?n:r(l,n);while(u>s)t[s++]=e;return t}},2029:(e,t,n)=>{"use strict";var i=n(422),r=n(3577),o=n(7475),a=n(9234),s=n(1558),l=n(7593),u=n(6042),c=n(6496),h=n(2151),d=n(7143),p=Array;e.exports=function(e){var t=o(e),n=l(this),f=arguments.length,g=f>1?arguments[1]:void 0,v=void 0!==g;v&&(g=i(g,f>2?arguments[2]:void 0));var y,m,x,_,b,w,S=d(t),M=0;if(!S||this===p&&s(S))for(y=u(t),m=n?new this(y):p(y);y>M;M++)w=v?g(t[M],M):t[M],c(m,M,w);else for(_=h(t,S),b=_.next,m=n?new this:[];!(x=r(b,_)).done;M++)w=v?a(_,g,[x.value,M],!0):x.value,c(m,M,w);return m.length=M,m}},6963:(e,t,n)=>{var i=n(7120),r=n(1801),o=n(6042),a=function(e){return function(t,n,a){var s,l=i(t),u=o(l),c=r(a,u);if(e&&n!=n){while(u>c)if(s=l[c++],s!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},5416:(e,t,n)=>{var i=n(422),r=n(2985),o=n(7475),a=n(6042),s=function(e){var t=1==e;return function(n,s,l){var u,c,h=o(n),d=r(h),p=i(s,l),f=a(d);while(f-- >0)if(u=d[f],c=p(u,f,h),c)switch(e){case 0:return u;case 1:return f}return t?-1:void 0}};e.exports={findLast:s(0),findLastIndex:s(1)}},2099:(e,t,n)=>{var i=n(422),r=n(1890),o=n(2985),a=n(7475),s=n(6042),l=n(6340),u=r([].push),c=function(e){var t=1==e,n=2==e,r=3==e,c=4==e,h=6==e,d=7==e,p=5==e||h;return function(f,g,v,y){for(var m,x,_=a(f),b=o(_),w=i(g,v),S=s(b),M=0,C=y||l,I=t?C(f,S):n||d?C(f,0):void 0;S>M;M++)if((p||M in b)&&(m=b[M],x=w(m,M,_),e))if(t)I[M]=x;else if(x)switch(e){case 3:return!0;case 5:return m;case 6:return M;case 2:u(I,m)}else switch(e){case 4:return!1;case 7:u(I,m)}return h?-1:r||c?c:I}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},5771:(e,t,n)=>{var i=n(1801),r=n(6042),o=n(6496),a=Array,s=Math.max;e.exports=function(e,t,n){for(var l=r(e),u=i(t,l),c=i(void 0===n?l:n,l),h=a(s(c-u,0)),d=0;u{var i=n(5771),r=Math.floor,o=function(e,t){var n=e.length,l=r(n/2);return n<8?a(e,t):s(e,o(i(e,0,l),t),o(i(e,l),t),t)},a=function(e,t){var n,i,r=e.length,o=1;while(o0)e[i]=e[--i];i!==o++&&(e[i]=n)}return e},s=function(e,t,n,i){var r=t.length,o=n.length,a=0,s=0;while(a{var i=n(6894),r=n(7593),o=n(776),a=n(854),s=a("species"),l=Array;e.exports=function(e){var t;return i(e)&&(t=e.constructor,r(t)&&(t===l||i(t.prototype))?t=void 0:o(t)&&(t=t[s],null===t&&(t=void 0))),void 0===t?l:t}},6340:(e,t,n)=>{var i=n(330);e.exports=function(e,t){return new(i(e))(0===t?0:t)}},9234:(e,t,n)=>{var i=n(7950),r=n(8105);e.exports=function(e,t,n,o){try{return o?t(i(n)[0],n[1]):t(n)}catch(a){r(e,"throw",a)}}},8047:(e,t,n)=>{var i=n(854),r=i("iterator"),o=!1;try{var a=0,s={next:function(){return{done:!!a++}},return:function(){o=!0}};s[r]=function(){return this},Array.from(s,(function(){throw 2}))}catch(l){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(l){}return n}},5173:(e,t,n)=>{var i=n(1890),r=i({}.toString),o=i("".slice);e.exports=function(e){return o(r(e),8,-1)}},5976:(e,t,n)=>{var i=n(5705),r=n(419),o=n(5173),a=n(854),s=a("toStringTag"),l=Object,u="Arguments"==o(function(){return arguments}()),c=function(e,t){try{return e[t]}catch(n){}};e.exports=i?o:function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=c(t=l(e),s))?n:u?o(t):"Object"==(i=o(t))&&r(t.callee)?"Arguments":i}},767:(e,t,n)=>{var i=n(1890),r=Error,o=i("".replace),a=function(e){return String(r(e).stack)}("zxcasd"),s=/\n\s*at [^:]*:[^\n]*/,l=s.test(a);e.exports=function(e,t){if(l&&"string"==typeof e&&!r.prepareStackTrace)while(t--)e=o(e,s,"");return e}},8438:(e,t,n)=>{var i=n(7322),r=n(7764),o=n(2404),a=n(928);e.exports=function(e,t,n){for(var s=r(t),l=a.f,u=o.f,c=0;c{var i=n(6400);e.exports=!i((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},5912:(e,t,n)=>{"use strict";var i=n(4848).IteratorPrototype,r=n(1074),o=n(5442),a=n(1061),s=n(2184),l=function(){return this};e.exports=function(e,t,n,u){var c=t+" Iterator";return e.prototype=r(i,{next:o(+!u,n)}),a(e,c,!1,!0),s[c]=l,e}},1904:(e,t,n)=>{var i=n(9631),r=n(928),o=n(5442);e.exports=i?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},5442:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},6496:(e,t,n)=>{"use strict";var i=n(8618),r=n(928),o=n(5442);e.exports=function(e,t,n){var a=i(t);a in e?r.f(e,a,o(0,n)):e[a]=n}},9468:(e,t,n)=>{var i=n(9843),r=n(928);e.exports=function(e,t,n){return n.get&&i(n.get,t,{getter:!0}),n.set&&i(n.set,t,{setter:!0}),r.f(e,t,n)}},3460:(e,t,n)=>{var i=n(419),r=n(928),o=n(9843),a=n(1615);e.exports=function(e,t,n,s){s||(s={});var l=s.enumerable,u=void 0!==s.name?s.name:t;if(i(n)&&o(n,u,s),s.global)l?e[t]=n:a(t,n);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(c){}l?e[t]=n:r.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},6703:(e,t,n)=>{var i=n(3460);e.exports=function(e,t,n){for(var r in t)i(e,r,t[r],n);return e}},1615:(e,t,n)=>{var i=n(7358),r=Object.defineProperty;e.exports=function(e,t){try{r(i,e,{value:t,configurable:!0,writable:!0})}catch(n){i[e]=t}return t}},8810:(e,t,n)=>{"use strict";var i=n(8934),r=n(3577),o=n(6692),a=n(7961),s=n(419),l=n(5912),u=n(4945),c=n(6184),h=n(1061),d=n(1904),p=n(3460),f=n(854),g=n(2184),v=n(4848),y=a.PROPER,m=a.CONFIGURABLE,x=v.IteratorPrototype,_=v.BUGGY_SAFARI_ITERATORS,b=f("iterator"),w="keys",S="values",M="entries",C=function(){return this};e.exports=function(e,t,n,a,f,v,I){l(n,t,a);var T,k,A,D=function(e){if(e===f&&E)return E;if(!_&&e in O)return O[e];switch(e){case w:return function(){return new n(this,e)};case S:return function(){return new n(this,e)};case M:return function(){return new n(this,e)}}return function(){return new n(this)}},L=t+" Iterator",P=!1,O=e.prototype,R=O[b]||O["@@iterator"]||f&&O[f],E=!_&&R||D(f),N="Array"==t&&O.entries||R;if(N&&(T=u(N.call(new e)),T!==Object.prototype&&T.next&&(o||u(T)===x||(c?c(T,x):s(T[b])||p(T,b,C)),h(T,L,!0,!0),o&&(g[L]=C))),y&&f==S&&R&&R.name!==S&&(!o&&m?d(O,"name",S):(P=!0,E=function(){return r(R,this)})),f)if(k={values:D(S),keys:v?E:D(w),entries:D(M)},I)for(A in k)(_||P||!(A in O))&&p(O,A,k[A]);else i({target:t,proto:!0,forced:_||P},k);return o&&!I||O[b]===E||p(O,b,E,{name:f}),g[t]=E,k}},9631:(e,t,n)=>{var i=n(6400);e.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},5354:(e,t,n)=>{var i=n(7358),r=n(776),o=i.document,a=r(o)&&r(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},4296:e=>{e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8753:(e,t,n)=>{var i=n(5354),r=i("span").classList,o=r&&r.constructor&&r.constructor.prototype;e.exports=o===Object.prototype?void 0:o},1544:(e,t,n)=>{var i=n(9173),r=i.match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},8979:(e,t,n)=>{var i=n(9173);e.exports=/MSIE|Trident/.test(i)},9173:(e,t,n)=>{var i=n(9694);e.exports=i("navigator","userAgent")||""},5068:(e,t,n)=>{var i,r,o=n(7358),a=n(9173),s=o.process,l=o.Deno,u=s&&s.versions||l&&l.version,c=u&&u.v8;c&&(i=c.split("."),r=i[0]>0&&i[0]<4?1:+(i[0]+i[1])),!r&&a&&(i=a.match(/Edge\/(\d+)/),(!i||i[1]>=74)&&(i=a.match(/Chrome\/(\d+)/),i&&(r=+i[1]))),e.exports=r},1513:(e,t,n)=>{var i=n(9173),r=i.match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},2875:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},6429:(e,t,n)=>{var i=n(6400),r=n(5442);e.exports=!i((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",r(1,7)),7!==e.stack)}))},8934:(e,t,n)=>{var i=n(7358),r=n(2404).f,o=n(1904),a=n(3460),s=n(1615),l=n(8438),u=n(4389);e.exports=function(e,t){var n,c,h,d,p,f,g=e.target,v=e.global,y=e.stat;if(c=v?i:y?i[g]||s(g,{}):(i[g]||{}).prototype,c)for(h in t){if(p=t[h],e.dontCallGetSet?(f=r(c,h),d=f&&f.value):d=c[h],n=u(v?h:g+(y?".":"#")+h,e.forced),!n&&void 0!==d){if(typeof p==typeof d)continue;l(p,d)}(e.sham||d&&d.sham)&&o(p,"sham",!0),a(c,h,p,e)}}},6400:e=>{e.exports=function(e){try{return!!e()}catch(t){return!0}}},9529:(e,t,n)=>{"use strict";n(7280);var i=n(1890),r=n(3460),o=n(4348),a=n(6400),s=n(854),l=n(1904),u=s("species"),c=RegExp.prototype;e.exports=function(e,t,n,h){var d=s(e),p=!a((function(){var t={};return t[d]=function(){return 7},7!=""[e](t)})),f=p&&!a((function(){var t=!1,n=/a/;return"split"===e&&(n={},n.constructor={},n.constructor[u]=function(){return n},n.flags="",n[d]=/./[d]),n.exec=function(){return t=!0,null},n[d](""),!t}));if(!p||!f||n){var g=i(/./[d]),v=t(d,""[e],(function(e,t,n,r,a){var s=i(e),l=t.exec;return l===o||l===c.exec?p&&!a?{done:!0,value:g(t,n,r)}:{done:!0,value:s(n,t,r)}:{done:!1}}));r(String.prototype,e,v[0]),r(c,d,v[1])}h&&l(c[d],"sham",!0)}},4157:(e,t,n)=>{var i=n(8427),r=Function.prototype,o=r.apply,a=r.call;e.exports="object"==typeof Reflect&&Reflect.apply||(i?a.bind(o):function(){return a.apply(o,arguments)})},422:(e,t,n)=>{var i=n(1890),r=n(392),o=n(8427),a=i(i.bind);e.exports=function(e,t){return r(e),void 0===t?e:o?a(e,t):function(){return e.apply(t,arguments)}}},8427:(e,t,n)=>{var i=n(6400);e.exports=!i((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},3577:(e,t,n)=>{var i=n(8427),r=Function.prototype.call;e.exports=i?r.bind(r):function(){return r.apply(r,arguments)}},7961:(e,t,n)=>{var i=n(9631),r=n(7322),o=Function.prototype,a=i&&Object.getOwnPropertyDescriptor,s=r(o,"name"),l=s&&"something"===function(){}.name,u=s&&(!i||i&&a(o,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:u}},1890:(e,t,n)=>{var i=n(8427),r=Function.prototype,o=r.bind,a=r.call,s=i&&o.bind(a,a);e.exports=i?function(e){return e&&s(e)}:function(e){return e&&function(){return a.apply(e,arguments)}}},9694:(e,t,n)=>{var i=n(7358),r=n(419),o=function(e){return r(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(i[e]):i[e]&&i[e][t]}},7143:(e,t,n)=>{var i=n(5976),r=n(2344),o=n(2184),a=n(854),s=a("iterator");e.exports=function(e){if(void 0!=e)return r(e,s)||r(e,"@@iterator")||o[i(e)]}},2151:(e,t,n)=>{var i=n(3577),r=n(392),o=n(7950),a=n(3353),s=n(7143),l=TypeError;e.exports=function(e,t){var n=arguments.length<2?s(e):t;if(r(n))return o(i(n,e));throw l(a(e)+" is not iterable")}},2344:(e,t,n)=>{var i=n(392);e.exports=function(e,t){var n=e[t];return null==n?void 0:i(n)}},8716:(e,t,n)=>{var i=n(1890),r=n(7475),o=Math.floor,a=i("".charAt),s=i("".replace),l=i("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,i,h,d){var p=n+e.length,f=i.length,g=c;return void 0!==h&&(h=r(h),g=u),s(d,g,(function(r,s){var u;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,n);case"'":return l(t,p);case"<":u=h[l(s,1,-1)];break;default:var c=+s;if(0===c)return r;if(c>f){var d=o(c/10);return 0===d?r:d<=f?void 0===i[d-1]?a(s,1):i[d-1]+a(s,1):r}u=i[c-1]}return void 0===u?"":u}))}},7358:(e,t,n)=>{var i=function(e){return e&&e.Math==Math&&e};e.exports=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},7322:(e,t,n)=>{var i=n(1890),r=n(7475),o=i({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(r(e),t)}},600:e=>{e.exports={}},9970:(e,t,n)=>{var i=n(9694);e.exports=i("document","documentElement")},7021:(e,t,n)=>{var i=n(9631),r=n(6400),o=n(5354);e.exports=!i&&!r((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},8830:e=>{var t=Array,n=Math.abs,i=Math.pow,r=Math.floor,o=Math.log,a=Math.LN2,s=function(e,s,l){var u,c,h,d=t(l),p=8*l-s-1,f=(1<>1,v=23===s?i(2,-24)-i(2,-77):0,y=e<0||0===e&&1/e<0?1:0,m=0;e=n(e),e!=e||e===1/0?(c=e!=e?1:0,u=f):(u=r(o(e)/a),h=i(2,-u),e*h<1&&(u--,h*=2),e+=u+g>=1?v/h:v*i(2,1-g),e*h>=2&&(u++,h/=2),u+g>=f?(c=0,u=f):u+g>=1?(c=(e*h-1)*i(2,s),u+=g):(c=e*i(2,g-1)*i(2,s),u=0));while(s>=8)d[m++]=255&c,c/=256,s-=8;u=u<0)d[m++]=255&u,u/=256,p-=8;return d[--m]|=128*y,d},l=function(e,t){var n,r=e.length,o=8*r-t-1,a=(1<>1,l=o-7,u=r-1,c=e[u--],h=127&c;c>>=7;while(l>0)h=256*h+e[u--],l-=8;n=h&(1<<-l)-1,h>>=-l,l+=t;while(l>0)n=256*n+e[u--],l-=8;if(0===h)h=1-s;else{if(h===a)return n?NaN:c?-1/0:1/0;n+=i(2,t),h-=s}return(c?-1:1)*n*i(2,h-t)};e.exports={pack:s,unpack:l}},2985:(e,t,n)=>{var i=n(1890),r=n(6400),o=n(5173),a=Object,s=i("".split);e.exports=r((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?s(e,""):a(e)}:a},9941:(e,t,n)=>{var i=n(419),r=n(776),o=n(6184);e.exports=function(e,t,n){var a,s;return o&&i(a=t.constructor)&&a!==n&&r(s=a.prototype)&&s!==n.prototype&&o(e,s),e}},3725:(e,t,n)=>{var i=n(1890),r=n(419),o=n(1089),a=i(Function.toString);r(o.inspectSource)||(o.inspectSource=function(e){return a(e)}),e.exports=o.inspectSource},5684:(e,t,n)=>{var i=n(776),r=n(1904);e.exports=function(e,t){i(t)&&"cause"in t&&r(e,"cause",t.cause)}},7624:(e,t,n)=>{var i,r,o,a=n(9262),s=n(7358),l=n(1890),u=n(776),c=n(1904),h=n(7322),d=n(1089),p=n(203),f=n(600),g="Object already initialized",v=s.TypeError,y=s.WeakMap,m=function(e){return o(e)?r(e):i(e,{})},x=function(e){return function(t){var n;if(!u(t)||(n=r(t)).type!==e)throw v("Incompatible receiver, "+e+" required");return n}};if(a||d.state){var _=d.state||(d.state=new y),b=l(_.get),w=l(_.has),S=l(_.set);i=function(e,t){if(w(_,e))throw new v(g);return t.facade=e,S(_,e,t),t},r=function(e){return b(_,e)||{}},o=function(e){return w(_,e)}}else{var M=p("state");f[M]=!0,i=function(e,t){if(h(e,M))throw new v(g);return t.facade=e,c(e,M,t),t},r=function(e){return h(e,M)?e[M]:{}},o=function(e){return h(e,M)}}e.exports={set:i,get:r,has:o,enforce:m,getterFor:x}},1558:(e,t,n)=>{var i=n(854),r=n(2184),o=i("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||a[o]===e)}},6894:(e,t,n)=>{var i=n(5173);e.exports=Array.isArray||function(e){return"Array"==i(e)}},419:e=>{e.exports=function(e){return"function"==typeof e}},7593:(e,t,n)=>{var i=n(1890),r=n(6400),o=n(419),a=n(5976),s=n(9694),l=n(3725),u=function(){},c=[],h=s("Reflect","construct"),d=/^\s*(?:class|function)\b/,p=i(d.exec),f=!d.exec(u),g=function(e){if(!o(e))return!1;try{return h(u,c,e),!0}catch(t){return!1}},v=function(e){if(!o(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return f||!!p(d,l(e))}catch(t){return!0}};v.sham=!0,e.exports=!h||r((function(){var e;return g(g.call)||!g(Object)||!g((function(){e=!0}))||e}))?v:g},4389:(e,t,n)=>{var i=n(6400),r=n(419),o=/#|\.prototype\./,a=function(e,t){var n=l[s(e)];return n==c||n!=u&&(r(t)?i(t):!!t)},s=a.normalize=function(e){return String(e).replace(o,".").toLowerCase()},l=a.data={},u=a.NATIVE="N",c=a.POLYFILL="P";e.exports=a},2818:(e,t,n)=>{var i=n(776),r=Math.floor;e.exports=Number.isInteger||function(e){return!i(e)&&isFinite(e)&&r(e)===e}},776:(e,t,n)=>{var i=n(419);e.exports=function(e){return"object"==typeof e?null!==e:i(e)}},6692:e=>{e.exports=!1},410:(e,t,n)=>{var i=n(9694),r=n(419),o=n(7673),a=n(8476),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=i("Symbol");return r(t)&&o(t.prototype,s(e))}},8105:(e,t,n)=>{var i=n(3577),r=n(7950),o=n(2344);e.exports=function(e,t,n){var a,s;r(e);try{if(a=o(e,"return"),!a){if("throw"===t)throw n;return n}a=i(a,e)}catch(l){s=!0,a=l}if("throw"===t)throw n;if(s)throw a;return r(a),n}},4848:(e,t,n)=>{"use strict";var i,r,o,a=n(6400),s=n(419),l=n(1074),u=n(4945),c=n(3460),h=n(854),d=n(6692),p=h("iterator"),f=!1;[].keys&&(o=[].keys(),"next"in o?(r=u(u(o)),r!==Object.prototype&&(i=r)):f=!0);var g=void 0==i||a((function(){var e={};return i[p].call(e)!==e}));g?i={}:d&&(i=l(i)),s(i[p])||c(i,p,(function(){return this})),e.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:f}},2184:e=>{e.exports={}},6042:(e,t,n)=>{var i=n(4068);e.exports=function(e){return i(e.length)}},9843:(e,t,n)=>{var i=n(6400),r=n(419),o=n(7322),a=n(9631),s=n(7961).CONFIGURABLE,l=n(3725),u=n(7624),c=u.enforce,h=u.get,d=Object.defineProperty,p=a&&!i((function(){return 8!==d((function(){}),"length",{value:8}).length})),f=String(String).split("String"),g=e.exports=function(e,t,n){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!o(e,"name")||s&&e.name!==t)&&(a?d(e,"name",{value:t,configurable:!0}):e.name=t),p&&n&&o(n,"arity")&&e.length!==n.arity&&d(e,"length",{value:n.arity});try{n&&o(n,"constructor")&&n.constructor?a&&d(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(r){}var i=c(e);return o(i,"source")||(i.source=f.join("string"==typeof t?t:"")),e};Function.prototype.toString=g((function(){return r(this)&&h(this).source||l(this)}),"toString")},1243:e=>{var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var i=+e;return(i>0?n:t)(i)}},7529:(e,t,n)=>{var i=n(5068),r=n(6400);e.exports=!!Object.getOwnPropertySymbols&&!r((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&i&&i<41}))},6595:(e,t,n)=>{var i=n(6400),r=n(854),o=n(6692),a=r("iterator");e.exports=!i((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,i){t["delete"]("b"),n+=i+e})),o&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},9262:(e,t,n)=>{var i=n(7358),r=n(419),o=n(3725),a=i.WeakMap;e.exports=r(a)&&/native code/.test(o(a))},7598:(e,t,n)=>{var i=n(4481);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:i(e)}},8439:(e,t,n)=>{"use strict";var i=n(9631),r=n(1890),o=n(3577),a=n(6400),s=n(9158),l=n(4199),u=n(5604),c=n(7475),h=n(2985),d=Object.assign,p=Object.defineProperty,f=r([].concat);e.exports=!d||a((function(){if(i&&1!==d({b:1},d(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=d({},e)[n]||s(d({},t)).join("")!=r}))?function(e,t){var n=c(e),r=arguments.length,a=1,d=l.f,p=u.f;while(r>a){var g,v=h(arguments[a++]),y=d?f(s(v),d(v)):s(v),m=y.length,x=0;while(m>x)g=y[x++],i&&!o(p,v,g)||(n[g]=v[g])}return n}:d},1074:(e,t,n)=>{var i,r=n(7950),o=n(3605),a=n(2875),s=n(600),l=n(9970),u=n(5354),c=n(203),h=">",d="<",p="prototype",f="script",g=c("IE_PROTO"),v=function(){},y=function(e){return d+f+h+e+d+"/"+f+h},m=function(e){e.write(y("")),e.close();var t=e.parentWindow.Object;return e=null,t},x=function(){var e,t=u("iframe"),n="java"+f+":";return t.style.display="none",l.appendChild(t),t.src=String(n),e=t.contentWindow.document,e.open(),e.write(y("document.F=Object")),e.close(),e.F},_=function(){try{i=new ActiveXObject("htmlfile")}catch(t){}_="undefined"!=typeof document?document.domain&&i?m(i):x():m(i);var e=a.length;while(e--)delete _[p][a[e]];return _()};s[g]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(v[p]=r(e),n=new v,v[p]=null,n[g]=e):n=_(),void 0===t?n:o.f(n,t)}},3605:(e,t,n)=>{var i=n(9631),r=n(5953),o=n(928),a=n(7950),s=n(7120),l=n(9158);t.f=i&&!r?Object.defineProperties:function(e,t){a(e);var n,i=s(t),r=l(t),u=r.length,c=0;while(u>c)o.f(e,n=r[c++],i[n]);return e}},928:(e,t,n)=>{var i=n(9631),r=n(7021),o=n(5953),a=n(7950),s=n(8618),l=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,h="enumerable",d="configurable",p="writable";t.f=i?o?function(e,t,n){if(a(e),t=s(t),a(n),"function"===typeof e&&"prototype"===t&&"value"in n&&p in n&&!n[p]){var i=c(e,t);i&&i[p]&&(e[t]=n.value,n={configurable:d in n?n[d]:i[d],enumerable:h in n?n[h]:i[h],writable:!1})}return u(e,t,n)}:u:function(e,t,n){if(a(e),t=s(t),a(n),r)try{return u(e,t,n)}catch(i){}if("get"in n||"set"in n)throw l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},2404:(e,t,n)=>{var i=n(9631),r=n(3577),o=n(5604),a=n(5442),s=n(7120),l=n(8618),u=n(7322),c=n(7021),h=Object.getOwnPropertyDescriptor;t.f=i?h:function(e,t){if(e=s(e),t=l(t),c)try{return h(e,t)}catch(n){}if(u(e,t))return a(!r(o.f,e,t),e[t])}},1454:(e,t,n)=>{var i=n(1587),r=n(2875),o=r.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,o)}},4199:(e,t)=>{t.f=Object.getOwnPropertySymbols},4945:(e,t,n)=>{var i=n(7322),r=n(419),o=n(7475),a=n(203),s=n(123),l=a("IE_PROTO"),u=Object,c=u.prototype;e.exports=s?u.getPrototypeOf:function(e){var t=o(e);if(i(t,l))return t[l];var n=t.constructor;return r(n)&&t instanceof n?n.prototype:t instanceof u?c:null}},7673:(e,t,n)=>{var i=n(1890);e.exports=i({}.isPrototypeOf)},1587:(e,t,n)=>{var i=n(1890),r=n(7322),o=n(7120),a=n(6963).indexOf,s=n(600),l=i([].push);e.exports=function(e,t){var n,i=o(e),u=0,c=[];for(n in i)!r(s,n)&&r(i,n)&&l(c,n);while(t.length>u)r(i,n=t[u++])&&(~a(c,n)||l(c,n));return c}},9158:(e,t,n)=>{var i=n(1587),r=n(2875);e.exports=Object.keys||function(e){return i(e,r)}},5604:(e,t)=>{"use strict";var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,r=i&&!n.call({1:2},1);t.f=r?function(e){var t=i(this,e);return!!t&&t.enumerable}:n},6184:(e,t,n)=>{var i=n(1890),r=n(7950),o=n(8248);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=i(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),e(n,[]),t=n instanceof Array}catch(a){}return function(n,i){return r(n),o(i),t?e(n,i):n.__proto__=i,n}}():void 0)},9308:(e,t,n)=>{var i=n(3577),r=n(419),o=n(776),a=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&r(n=e.toString)&&!o(s=i(n,e)))return s;if(r(n=e.valueOf)&&!o(s=i(n,e)))return s;if("string"!==t&&r(n=e.toString)&&!o(s=i(n,e)))return s;throw a("Can't convert object to primitive value")}},7764:(e,t,n)=>{var i=n(9694),r=n(1890),o=n(1454),a=n(4199),s=n(7950),l=r([].concat);e.exports=i("Reflect","ownKeys")||function(e){var t=o.f(s(e)),n=a.f;return n?l(t,n(e)):t}},4836:(e,t,n)=>{var i=n(928).f;e.exports=function(e,t,n){n in e||i(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},9395:(e,t,n)=>{var i=n(3577),r=n(7950),o=n(419),a=n(5173),s=n(4348),l=TypeError;e.exports=function(e,t){var n=e.exec;if(o(n)){var u=i(n,e,t);return null!==u&&r(u),u}if("RegExp"===a(e))return i(s,e,t);throw l("RegExp#exec called on incompatible receiver")}},4348:(e,t,n)=>{"use strict";var i=n(3577),r=n(1890),o=n(4481),a=n(136),s=n(2351),l=n(1586),u=n(1074),c=n(7624).get,h=n(5337),d=n(1442),p=l("native-string-replace",String.prototype.replace),f=RegExp.prototype.exec,g=f,v=r("".charAt),y=r("".indexOf),m=r("".replace),x=r("".slice),_=function(){var e=/a/,t=/b*/g;return i(f,e,"a"),i(f,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),b=s.BROKEN_CARET,w=void 0!==/()??/.exec("")[1],S=_||w||b||h||d;S&&(g=function(e){var t,n,r,s,l,h,d,S=this,M=c(S),C=o(e),I=M.raw;if(I)return I.lastIndex=S.lastIndex,t=i(g,I,C),S.lastIndex=I.lastIndex,t;var T=M.groups,k=b&&S.sticky,A=i(a,S),D=S.source,L=0,P=C;if(k&&(A=m(A,"y",""),-1===y(A,"g")&&(A+="g"),P=x(C,S.lastIndex),S.lastIndex>0&&(!S.multiline||S.multiline&&"\n"!==v(C,S.lastIndex-1))&&(D="(?: "+D+")",P=" "+P,L++),n=new RegExp("^(?:"+D+")",A)),w&&(n=new RegExp("^"+D+"$(?!\\s)",A)),_&&(r=S.lastIndex),s=i(f,k?n:S,P),k?s?(s.input=x(s.input,L),s[0]=x(s[0],L),s.index=S.lastIndex,S.lastIndex+=s[0].length):S.lastIndex=0:_&&s&&(S.lastIndex=S.global?s.index+s[0].length:r),w&&s&&s.length>1&&i(p,s[0],n,(function(){for(l=1;l{"use strict";var i=n(7950);e.exports=function(){var e=i(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},2351:(e,t,n)=>{var i=n(6400),r=n(7358),o=r.RegExp,a=i((function(){var e=o("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),s=a||i((function(){return!o("a","y").sticky})),l=a||i((function(){var e=o("^r","gy");return e.lastIndex=2,null!=e.exec("str")}));e.exports={BROKEN_CARET:l,MISSED_STICKY:s,UNSUPPORTED_Y:a}},5337:(e,t,n)=>{var i=n(6400),r=n(7358),o=r.RegExp;e.exports=i((function(){var e=o(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}))},1442:(e,t,n)=>{var i=n(6400),r=n(7358),o=r.RegExp;e.exports=i((function(){var e=o("(?b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$c")}))},7933:e=>{var t=TypeError;e.exports=function(e){if(void 0==e)throw t("Can't call method on "+e);return e}},4114:(e,t,n)=>{"use strict";var i=n(9694),r=n(928),o=n(854),a=n(9631),s=o("species");e.exports=function(e){var t=i(e),n=r.f;a&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},1061:(e,t,n)=>{var i=n(928).f,r=n(7322),o=n(854),a=o("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!r(e,a)&&i(e,a,{configurable:!0,value:t})}},203:(e,t,n)=>{var i=n(1586),r=n(6862),o=i("keys");e.exports=function(e){return o[e]||(o[e]=r(e))}},1089:(e,t,n)=>{var i=n(7358),r=n(1615),o="__core-js_shared__",a=i[o]||r(o,{});e.exports=a},1586:(e,t,n)=>{var i=n(6692),r=n(1089);(e.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.24.1",mode:i?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE",source:"https://github.com/zloirock/core-js"})},1021:(e,t,n)=>{var i=n(1890),r=n(1860),o=n(4481),a=n(7933),s=i("".charAt),l=i("".charCodeAt),u=i("".slice),c=function(e){return function(t,n){var i,c,h=o(a(t)),d=r(n),p=h.length;return d<0||d>=p?e?"":void 0:(i=l(h,d),i<55296||i>56319||d+1===p||(c=l(h,d+1))<56320||c>57343?e?s(h,d):i:e?u(h,d,d+2):c-56320+(i-55296<<10)+65536)}};e.exports={codeAt:c(!1),charAt:c(!0)}},5253:(e,t,n)=>{"use strict";var i=n(1890),r=2147483647,o=36,a=1,s=26,l=38,u=700,c=72,h=128,d="-",p=/[^\0-\u007E]/,f=/[.\u3002\uFF0E\uFF61]/g,g="Overflow: input needs wider integers to process",v=o-a,y=RangeError,m=i(f.exec),x=Math.floor,_=String.fromCharCode,b=i("".charCodeAt),w=i([].join),S=i([].push),M=i("".replace),C=i("".split),I=i("".toLowerCase),T=function(e){var t=[],n=0,i=e.length;while(n=55296&&r<=56319&&n>1,e+=x(e/t);while(e>v*s>>1)e=x(e/v),i+=o;return x(i+(v+1)*e/(e+l))},D=function(e){var t=[];e=T(e);var n,i,l=e.length,u=h,p=0,f=c;for(n=0;n=u&&ix((r-p)/M))throw y(g);for(p+=(b-u)*M,u=b,n=0;nr)throw y(g);if(i==u){var C=p,I=o;while(1){var D=I<=f?a:I>=f+s?s:I-f;if(C{var i=n(1860),r=Math.max,o=Math.min;e.exports=function(e,t){var n=i(e);return n<0?r(n+t,0):o(n,t)}},5492:(e,t,n)=>{var i=n(2181),r=TypeError;e.exports=function(e){var t=i(e,"number");if("number"==typeof t)throw r("Can't convert number to bigint");return BigInt(t)}},833:(e,t,n)=>{var i=n(1860),r=n(4068),o=RangeError;e.exports=function(e){if(void 0===e)return 0;var t=i(e),n=r(t);if(t!==n)throw o("Wrong length or index");return n}},7120:(e,t,n)=>{var i=n(2985),r=n(7933);e.exports=function(e){return i(r(e))}},1860:(e,t,n)=>{var i=n(1243);e.exports=function(e){var t=+e;return t!==t||0===t?0:i(t)}},4068:(e,t,n)=>{var i=n(1860),r=Math.min;e.exports=function(e){return e>0?r(i(e),9007199254740991):0}},7475:(e,t,n)=>{var i=n(7933),r=Object;e.exports=function(e){return r(i(e))}},701:(e,t,n)=>{var i=n(1443),r=RangeError;e.exports=function(e,t){var n=i(e);if(n%t)throw r("Wrong offset");return n}},1443:(e,t,n)=>{var i=n(1860),r=RangeError;e.exports=function(e){var t=i(e);if(t<0)throw r("The argument can't be less than 0");return t}},2181:(e,t,n)=>{var i=n(3577),r=n(776),o=n(410),a=n(2344),s=n(9308),l=n(854),u=TypeError,c=l("toPrimitive");e.exports=function(e,t){if(!r(e)||o(e))return e;var n,l=a(e,c);if(l){if(void 0===t&&(t="default"),n=i(l,e,t),!r(n)||o(n))return n;throw u("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},8618:(e,t,n)=>{var i=n(2181),r=n(410);e.exports=function(e){var t=i(e,"string");return r(t)?t:t+""}},5705:(e,t,n)=>{var i=n(854),r=i("toStringTag"),o={};o[r]="z",e.exports="[object z]"===String(o)},4481:(e,t,n)=>{var i=n(5976),r=String;e.exports=function(e){if("Symbol"===i(e))throw TypeError("Cannot convert a Symbol value to a string");return r(e)}},3353:e=>{var t=String;e.exports=function(e){try{return t(e)}catch(n){return"Object"}}},6968:(e,t,n)=>{"use strict";var i=n(8934),r=n(7358),o=n(3577),a=n(9631),s=n(8689),l=n(683),u=n(62),c=n(2827),h=n(5442),d=n(1904),p=n(2818),f=n(4068),g=n(833),v=n(701),y=n(8618),m=n(7322),x=n(5976),_=n(776),b=n(410),w=n(1074),S=n(7673),M=n(6184),C=n(1454).f,I=n(9401),T=n(2099).forEach,k=n(4114),A=n(928),D=n(2404),L=n(7624),P=n(9941),O=L.get,R=L.set,E=L.enforce,N=A.f,B=D.f,F=Math.round,z=r.RangeError,V=u.ArrayBuffer,H=V.prototype,q=u.DataView,G=l.NATIVE_ARRAY_BUFFER_VIEWS,W=l.TYPED_ARRAY_TAG,U=l.TypedArray,j=l.TypedArrayPrototype,Z=l.aTypedArrayConstructor,Y=l.isTypedArray,$="BYTES_PER_ELEMENT",X="Wrong length",K=function(e,t){Z(e);var n=0,i=t.length,r=new e(i);while(i>n)r[n]=t[n++];return r},J=function(e,t){N(e,t,{get:function(){return O(this)[t]}})},Q=function(e){var t;return S(H,e)||"ArrayBuffer"==(t=x(e))||"SharedArrayBuffer"==t},ee=function(e,t){return Y(e)&&!b(t)&&t in e&&p(+t)&&t>=0},te=function(e,t){return t=y(t),ee(e,t)?h(2,e[t]):B(e,t)},ne=function(e,t,n){return t=y(t),!(ee(e,t)&&_(n)&&m(n,"value"))||m(n,"get")||m(n,"set")||n.configurable||m(n,"writable")&&!n.writable||m(n,"enumerable")&&!n.enumerable?N(e,t,n):(e[t]=n.value,e)};a?(G||(D.f=te,A.f=ne,J(j,"buffer"),J(j,"byteOffset"),J(j,"byteLength"),J(j,"length")),i({target:"Object",stat:!0,forced:!G},{getOwnPropertyDescriptor:te,defineProperty:ne}),e.exports=function(e,t,n){var a=e.match(/\d+$/)[0]/8,l=e+(n?"Clamped":"")+"Array",u="get"+e,h="set"+e,p=r[l],y=p,m=y&&y.prototype,x={},b=function(e,t){var n=O(e);return n.view[u](t*a+n.byteOffset,!0)},S=function(e,t,i){var r=O(e);n&&(i=(i=F(i))<0?0:i>255?255:255&i),r.view[h](t*a+r.byteOffset,i,!0)},A=function(e,t){N(e,t,{get:function(){return b(this,t)},set:function(e){return S(this,t,e)},enumerable:!0})};G?s&&(y=t((function(e,t,n,i){return c(e,m),P(function(){return _(t)?Q(t)?void 0!==i?new p(t,v(n,a),i):void 0!==n?new p(t,v(n,a)):new p(t):Y(t)?K(y,t):o(I,y,t):new p(g(t))}(),e,y)})),M&&M(y,U),T(C(p),(function(e){e in y||d(y,e,p[e])})),y.prototype=m):(y=t((function(e,t,n,i){c(e,m);var r,s,l,u=0,h=0;if(_(t)){if(!Q(t))return Y(t)?K(y,t):o(I,y,t);r=t,h=v(n,a);var d=t.byteLength;if(void 0===i){if(d%a)throw z(X);if(s=d-h,s<0)throw z(X)}else if(s=f(i)*a,s+h>d)throw z(X);l=s/a}else l=g(t),s=l*a,r=new V(s);R(e,{buffer:r,byteOffset:h,byteLength:s,length:l,view:new q(r)});while(u{var i=n(7358),r=n(6400),o=n(8047),a=n(683).NATIVE_ARRAY_BUFFER_VIEWS,s=i.ArrayBuffer,l=i.Int8Array;e.exports=!a||!r((function(){l(1)}))||!r((function(){new l(-1)}))||!o((function(e){new l,new l(null),new l(1.5),new l(e)}),!0)||r((function(){return 1!==new l(new s(2),1,void 0).length}))},9401:(e,t,n)=>{var i=n(422),r=n(3577),o=n(2722),a=n(7475),s=n(6042),l=n(2151),u=n(7143),c=n(1558),h=n(683).aTypedArrayConstructor;e.exports=function(e){var t,n,d,p,f,g,v=o(this),y=a(e),m=arguments.length,x=m>1?arguments[1]:void 0,_=void 0!==x,b=u(y);if(b&&!c(b)){f=l(y,b),g=f.next,y=[];while(!(p=r(g,f)).done)y.push(p.value)}for(_&&m>2&&(x=i(x,arguments[2])),n=s(y),d=new(h(v))(n),t=0;n>t;t++)d[t]=_?x(y[t],t):y[t];return d}},6862:(e,t,n)=>{var i=n(1890),r=0,o=Math.random(),a=i(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++r+o,36)}},8476:(e,t,n)=>{var i=n(7529);e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},5953:(e,t,n)=>{var i=n(9631),r=n(6400);e.exports=i&&r((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},6596:e=>{var t=TypeError;e.exports=function(e,n){if(e{var i=n(7358),r=n(1586),o=n(7322),a=n(6862),s=n(7529),l=n(8476),u=r("wks"),c=i.Symbol,h=c&&c["for"],d=l?c:c&&c.withoutSetter||a;e.exports=function(e){if(!o(u,e)||!s&&"string"!=typeof u[e]){var t="Symbol."+e;s&&o(c,e)?u[e]=c[e]:u[e]=l&&h?h(t):d(t)}return u[e]}},7971:(e,t,n)=>{"use strict";var i=n(9694),r=n(7322),o=n(1904),a=n(7673),s=n(6184),l=n(8438),u=n(4836),c=n(9941),h=n(7598),d=n(5684),p=n(767),f=n(6429),g=n(9631),v=n(6692);e.exports=function(e,t,n,y){var m="stackTraceLimit",x=y?2:1,_=e.split("."),b=_[_.length-1],w=i.apply(null,_);if(w){var S=w.prototype;if(!v&&r(S,"cause")&&delete S.cause,!n)return w;var M=i("Error"),C=t((function(e,t){var n=h(y?t:e,void 0),i=y?new w(e):new w;return void 0!==n&&o(i,"message",n),f&&o(i,"stack",p(i.stack,2)),this&&a(S,this)&&c(i,this,C),arguments.length>x&&d(i,arguments[x]),i}));if(C.prototype=S,"Error"!==b?s?s(C,M):l(C,M,{name:!0}):g&&m in w&&(u(C,w,m),u(C,w,"prepareStackTrace")),l(C,w),!v)try{S.name!==b&&o(S,"name",b),S.constructor=C}catch(I){}return C}}},3610:(e,t,n)=>{"use strict";var i=n(8934),r=n(6963).includes,o=n(6400),a=n(2852),s=o((function(){return!Array(1).includes()}));i({target:"Array",proto:!0,forced:s},{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},6843:(e,t,n)=>{"use strict";var i=n(7120),r=n(2852),o=n(2184),a=n(7624),s=n(928).f,l=n(8810),u=n(6692),c=n(9631),h="Array Iterator",d=a.set,p=a.getterFor(h);e.exports=l(Array,"Array",(function(e,t){d(this,{type:h,target:i(e),index:0,kind:t})}),(function(){var e=p(this),t=e.target,n=e.kind,i=e.index++;return!t||i>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:i,done:!1}:"values"==n?{value:t[i],done:!1}:{value:[i,t[i]],done:!1}}),"values");var f=o.Arguments=o.Array;if(r("keys"),r("values"),r("entries"),!u&&c&&"values"!==f.name)try{s(f,"name",{value:"values"})}catch(g){}},6701:(e,t,n)=>{var i=n(8934),r=n(7358),o=n(4157),a=n(7971),s="WebAssembly",l=r[s],u=7!==Error("e",{cause:7}).cause,c=function(e,t){var n={};n[e]=a(e,t,u),i({global:!0,constructor:!0,arity:1,forced:u},n)},h=function(e,t){if(l&&l[e]){var n={};n[e]=a(s+"."+e,t,u),i({target:s,stat:!0,constructor:!0,arity:1,forced:u},n)}};c("Error",(function(e){return function(t){return o(e,this,arguments)}})),c("EvalError",(function(e){return function(t){return o(e,this,arguments)}})),c("RangeError",(function(e){return function(t){return o(e,this,arguments)}})),c("ReferenceError",(function(e){return function(t){return o(e,this,arguments)}})),c("SyntaxError",(function(e){return function(t){return o(e,this,arguments)}})),c("TypeError",(function(e){return function(t){return o(e,this,arguments)}})),c("URIError",(function(e){return function(t){return o(e,this,arguments)}})),h("CompileError",(function(e){return function(t){return o(e,this,arguments)}})),h("LinkError",(function(e){return function(t){return o(e,this,arguments)}})),h("RuntimeError",(function(e){return function(t){return o(e,this,arguments)}}))},7280:(e,t,n)=>{"use strict";var i=n(8934),r=n(4348);i({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},4406:(e,t,n)=>{var i=n(7358),r=n(9631),o=n(9468),a=n(136),s=n(6400),l=i.RegExp,u=l.prototype,c=r&&s((function(){var e=!0;try{l(".","d")}catch(c){e=!1}var t={},n="",i=e?"dgimsy":"gimsy",r=function(e,i){Object.defineProperty(t,e,{get:function(){return n+=i,!0}})},o={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in e&&(o.hasIndices="d"),o)r(a,o[a]);var s=Object.getOwnPropertyDescriptor(u,"flags").get.call(t);return s!==i||n!==i}));c&&o(u,"flags",{configurable:!0,get:a})},839:(e,t,n)=>{"use strict";var i=n(1021).charAt,r=n(4481),o=n(7624),a=n(8810),s="String Iterator",l=o.set,u=o.getterFor(s);a(String,"String",(function(e){l(this,{type:s,string:r(e),index:0})}),(function(){var e,t=u(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=i(n,r),t.index+=e.length,{value:e,done:!1})}))},5363:(e,t,n)=>{"use strict";var i=n(4157),r=n(3577),o=n(1890),a=n(9529),s=n(6400),l=n(7950),u=n(419),c=n(1860),h=n(4068),d=n(4481),p=n(7933),f=n(6412),g=n(2344),v=n(8716),y=n(9395),m=n(854),x=m("replace"),_=Math.max,b=Math.min,w=o([].concat),S=o([].push),M=o("".indexOf),C=o("".slice),I=function(e){return void 0===e?e:String(e)},T=function(){return"$0"==="a".replace(/./,"$0")}(),k=function(){return!!/./[x]&&""===/./[x]("a","$0")}(),A=!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")}));a("replace",(function(e,t,n){var o=k?"$":"$0";return[function(e,n){var i=p(this),o=void 0==e?void 0:g(e,x);return o?r(o,e,i,n):r(t,d(i),e,n)},function(e,r){var a=l(this),s=d(e);if("string"==typeof r&&-1===M(r,o)&&-1===M(r,"$<")){var p=n(t,a,s,r);if(p.done)return p.value}var g=u(r);g||(r=d(r));var m=a.global;if(m){var x=a.unicode;a.lastIndex=0}var T=[];while(1){var k=y(a,s);if(null===k)break;if(S(T,k),!m)break;var A=d(k[0]);""===A&&(a.lastIndex=f(s,h(a.lastIndex),x))}for(var D="",L=0,P=0;P=L&&(D+=C(s,L,R)+z,L=R+O.length)}return D+C(s,L)}]}),!A||!T||k)},5123:(e,t,n)=>{"use strict";var i=n(683),r=n(6042),o=n(1860),a=i.aTypedArray,s=i.exportTypedArrayMethod;s("at",(function(e){var t=a(this),n=r(t),i=o(e),s=i>=0?i:n+i;return s<0||s>=n?void 0:t[s]}))},8836:(e,t,n)=>{"use strict";var i=n(683),r=n(5786),o=n(5492),a=n(5976),s=n(3577),l=n(1890),u=n(6400),c=i.aTypedArray,h=i.exportTypedArrayMethod,d=l("".slice),p=u((function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e}));h("fill",(function(e){var t=arguments.length;c(this);var n="Big"===d(a(this),0,3)?o(e):+e;return s(r,this,n,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}),p)},7648:(e,t,n)=>{"use strict";var i=n(683),r=n(5416).findLastIndex,o=i.aTypedArray,a=i.exportTypedArrayMethod;a("findLastIndex",(function(e){return r(o(this),e,arguments.length>1?arguments[1]:void 0)}))},4331:(e,t,n)=>{"use strict";var i=n(683),r=n(5416).findLast,o=i.aTypedArray,a=i.exportTypedArrayMethod;a("findLast",(function(e){return r(o(this),e,arguments.length>1?arguments[1]:void 0)}))},8685:(e,t,n)=>{"use strict";var i=n(7358),r=n(3577),o=n(683),a=n(6042),s=n(701),l=n(7475),u=n(6400),c=i.RangeError,h=i.Int8Array,d=h&&h.prototype,p=d&&d.set,f=o.aTypedArray,g=o.exportTypedArrayMethod,v=!u((function(){var e=new Uint8ClampedArray(2);return r(p,e,{length:1,0:3},1),3!==e[1]})),y=v&&o.NATIVE_ARRAY_BUFFER_VIEWS&&u((function(){var e=new h(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));g("set",(function(e){f(this);var t=s(arguments.length>1?arguments[1]:void 0,1),n=l(e);if(v)return r(p,this,n,t);var i=this.length,o=a(n),u=0;if(o+t>i)throw c("Wrong length");while(u{"use strict";var i=n(7358),r=n(1890),o=n(6400),a=n(392),s=n(6534),l=n(683),u=n(1544),c=n(8979),h=n(5068),d=n(1513),p=l.aTypedArray,f=l.exportTypedArrayMethod,g=i.Uint16Array,v=g&&r(g.prototype.sort),y=!!v&&!(o((function(){v(new g(2),null)}))&&o((function(){v(new g(2),{})}))),m=!!v&&!o((function(){if(h)return h<74;if(u)return u<67;if(c)return!0;if(d)return d<602;var e,t,n=new g(516),i=Array(516);for(e=0;e<516;e++)t=e%4,n[e]=515-e,i[e]=e-2*t+3;for(v(n,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(n[e]!==i[e])return!0})),x=function(e){return function(t,n){return void 0!==e?+e(t,n)||0:n!==n?-1:t!==t?1:0===t&&0===n?1/t>0&&1/n<0?1:-1:t>n}};f("sort",(function(e){return void 0!==e&&a(e),m?v(this,e):s(p(this),x(e))}),!m||y)},6105:(e,t,n)=>{var i=n(6968);i("Uint8",(function(e){return function(t,n,i){return e(this,t,n,i)}}))},2773:(e,t,n)=>{n(7648)},9802:(e,t,n)=>{n(4331)},71:(e,t,n)=>{var i=n(7358),r=n(4296),o=n(8753),a=n(6843),s=n(1904),l=n(854),u=l("iterator"),c=l("toStringTag"),h=a.values,d=function(e,t){if(e){if(e[u]!==h)try{s(e,u,h)}catch(i){e[u]=h}if(e[c]||s(e,c,t),r[t])for(var n in a)if(e[n]!==a[n])try{s(e,n,a[n])}catch(i){e[n]=a[n]}}};for(var p in r)d(i[p]&&i[p].prototype,p);d(o,"DOMTokenList")},1999:(e,t,n)=>{"use strict";n(6843);var i=n(8934),r=n(7358),o=n(3577),a=n(1890),s=n(9631),l=n(6595),u=n(3460),c=n(6703),h=n(1061),d=n(5912),p=n(7624),f=n(2827),g=n(419),v=n(7322),y=n(422),m=n(5976),x=n(7950),_=n(776),b=n(4481),w=n(1074),S=n(5442),M=n(2151),C=n(7143),I=n(6596),T=n(854),k=n(6534),A=T("iterator"),D="URLSearchParams",L=D+"Iterator",P=p.set,O=p.getterFor(D),R=p.getterFor(L),E=Object.getOwnPropertyDescriptor,N=function(e){if(!s)return r[e];var t=E(r,e);return t&&t.value},B=N("fetch"),F=N("Request"),z=N("Headers"),V=F&&F.prototype,H=z&&z.prototype,q=r.RegExp,G=r.TypeError,W=r.decodeURIComponent,U=r.encodeURIComponent,j=a("".charAt),Z=a([].join),Y=a([].push),$=a("".replace),X=a([].shift),K=a([].splice),J=a("".split),Q=a("".slice),ee=/\+/g,te=Array(4),ne=function(e){return te[e-1]||(te[e-1]=q("((?:%[\\da-f]{2}){"+e+"})","gi"))},ie=function(e){try{return W(e)}catch(t){return e}},re=function(e){var t=$(e,ee," "),n=4;try{return W(t)}catch(i){while(n)t=$(t,ne(n--),ie);return t}},oe=/[!'()~]|%20/g,ae={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},se=function(e){return ae[e]},le=function(e){return $(U(e),oe,se)},ue=d((function(e,t){P(this,{type:L,iterator:M(O(e).entries),kind:t})}),"Iterator",(function(){var e=R(this),t=e.kind,n=e.iterator.next(),i=n.value;return n.done||(n.value="keys"===t?i.key:"values"===t?i.value:[i.key,i.value]),n}),!0),ce=function(e){this.entries=[],this.url=null,void 0!==e&&(_(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===j(e,0)?Q(e,1):e:b(e)))};ce.prototype={type:D,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,i,r,a,s,l,u=C(e);if(u){t=M(e,u),n=t.next;while(!(i=o(n,t)).done){if(r=M(x(i.value)),a=r.next,(s=o(a,r)).done||(l=o(a,r)).done||!o(a,r).done)throw G("Expected sequence with length 2");Y(this.entries,{key:b(s.value),value:b(l.value)})}}else for(var c in e)v(e,c)&&Y(this.entries,{key:c,value:b(e[c])})},parseQuery:function(e){if(e){var t,n,i=J(e,"&"),r=0;while(r0?arguments[0]:void 0;P(this,new ce(e))},de=he.prototype;if(c(de,{append:function(e,t){I(arguments.length,2);var n=O(this);Y(n.entries,{key:b(e),value:b(t)}),n.updateURL()},delete:function(e){I(arguments.length,1);var t=O(this),n=t.entries,i=b(e),r=0;while(rt.key?1:-1})),e.updateURL()},forEach:function(e){var t,n=O(this).entries,i=y(e,arguments.length>1?arguments[1]:void 0),r=0;while(r1?ge(arguments[1]):{})}}),g(F)){var ve=function(e){return f(this,V),new F(e,arguments.length>1?ge(arguments[1]):{})};V.constructor=ve,ve.prototype=V,i({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:ve})}}e.exports={URLSearchParams:he,getState:O}},6016:(e,t,n)=>{n(1999)},6295:(e,t,n)=>{"use strict";n(839);var i,r=n(8934),o=n(9631),a=n(6595),s=n(7358),l=n(422),u=n(1890),c=n(3460),h=n(9468),d=n(2827),p=n(7322),f=n(8439),g=n(2029),v=n(5771),y=n(1021).codeAt,m=n(5253),x=n(4481),_=n(1061),b=n(6596),w=n(1999),S=n(7624),M=S.set,C=S.getterFor("URL"),I=w.URLSearchParams,T=w.getState,k=s.URL,A=s.TypeError,D=s.parseInt,L=Math.floor,P=Math.pow,O=u("".charAt),R=u(/./.exec),E=u([].join),N=u(1..toString),B=u([].pop),F=u([].push),z=u("".replace),V=u([].shift),H=u("".split),q=u("".slice),G=u("".toLowerCase),W=u([].unshift),U="Invalid authority",j="Invalid scheme",Z="Invalid host",Y="Invalid port",$=/[a-z]/i,X=/[\d+-.a-z]/i,K=/\d/,J=/^0x/i,Q=/^[0-7]+$/,ee=/^\d+$/,te=/^[\da-f]+$/i,ne=/[\0\t\n\r #%/:<>?@[\\\]^|]/,ie=/[\0\t\n\r #/:<>?@[\\\]^|]/,re=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,oe=/[\t\n\r]/g,ae=function(e){var t,n,i,r,o,a,s,l=H(e,".");if(l.length&&""==l[l.length-1]&&l.length--,t=l.length,t>4)return e;for(n=[],i=0;i1&&"0"==O(r,0)&&(o=R(J,r)?16:8,r=q(r,8==o?1:2)),""===r)a=0;else{if(!R(10==o?ee:8==o?Q:te,r))return e;a=D(r,o)}F(n,a)}for(i=0;i=P(256,5-t))return null}else if(a>255)return null;for(s=B(n),i=0;i6)return;i=0;while(d()){if(r=null,i>0){if(!("."==d()&&i<4))return;h++}if(!R(K,d()))return;while(R(K,d())){if(o=D(d(),10),null===r)r=o;else{if(0==r)return;r=10*r+o}if(r>255)return;h++}l[u]=256*l[u]+r,i++,2!=i&&4!=i||u++}if(4!=i)return;break}if(":"==d()){if(h++,!d())return}else if(d())return;l[u++]=t}else{if(null!==c)return;h++,u++,c=u}}if(null!==c){a=u-c,u=7;while(0!=u&&a>0)s=l[u],l[u--]=l[c+a-1],l[c+--a]=s}else if(8!=u)return;return l},le=function(e){for(var t=null,n=1,i=null,r=0,o=0;o<8;o++)0!==e[o]?(r>n&&(t=i,n=r),i=null,r=0):(null===i&&(i=o),++r);return r>n&&(t=i,n=r),t},ue=function(e){var t,n,i,r;if("number"==typeof e){for(t=[],n=0;n<4;n++)W(t,e%256),e=L(e/256);return E(t,".")}if("object"==typeof e){for(t="",i=le(e),n=0;n<8;n++)r&&0===e[n]||(r&&(r=!1),i===n?(t+=n?":":"::",r=!0):(t+=N(e[n],16),n<7&&(t+=":")));return"["+t+"]"}return e},ce={},he=f({},ce,{" ":1,'"':1,"<":1,">":1,"`":1}),de=f({},he,{"#":1,"?":1,"{":1,"}":1}),pe=f({},de,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),fe=function(e,t){var n=y(e,0);return n>32&&n<127&&!p(t,e)?e:encodeURIComponent(e)},ge={ftp:21,file:null,http:80,https:443,ws:80,wss:443},ve=function(e,t){var n;return 2==e.length&&R($,O(e,0))&&(":"==(n=O(e,1))||!t&&"|"==n)},ye=function(e){var t;return e.length>1&&ve(q(e,0,2))&&(2==e.length||"/"===(t=O(e,2))||"\\"===t||"?"===t||"#"===t)},me=function(e){return"."===e||"%2e"===G(e)},xe=function(e){return e=G(e),".."===e||"%2e."===e||".%2e"===e||"%2e%2e"===e},_e={},be={},we={},Se={},Me={},Ce={},Ie={},Te={},ke={},Ae={},De={},Le={},Pe={},Oe={},Re={},Ee={},Ne={},Be={},Fe={},ze={},Ve={},He=function(e,t,n){var i,r,o,a=x(e);if(t){if(r=this.parse(a),r)throw A(r);this.searchParams=null}else{if(void 0!==n&&(i=new He(n,!0)),r=this.parse(a,null,i),r)throw A(r);o=T(new I),o.bindURL(this),this.searchParams=o}};He.prototype={type:"URL",parse:function(e,t,n){var r,o,a,s,l=this,u=t||_e,c=0,h="",d=!1,f=!1,y=!1;e=x(e),t||(l.scheme="",l.username="",l.password="",l.host=null,l.port=null,l.path=[],l.query=null,l.fragment=null,l.cannotBeABaseURL=!1,e=z(e,re,"")),e=z(e,oe,""),r=g(e);while(c<=r.length){switch(o=r[c],u){case _e:if(!o||!R($,o)){if(t)return j;u=we;continue}h+=G(o),u=be;break;case be:if(o&&(R(X,o)||"+"==o||"-"==o||"."==o))h+=G(o);else{if(":"!=o){if(t)return j;h="",u=we,c=0;continue}if(t&&(l.isSpecial()!=p(ge,h)||"file"==h&&(l.includesCredentials()||null!==l.port)||"file"==l.scheme&&!l.host))return;if(l.scheme=h,t)return void(l.isSpecial()&&ge[l.scheme]==l.port&&(l.port=null));h="","file"==l.scheme?u=Oe:l.isSpecial()&&n&&n.scheme==l.scheme?u=Se:l.isSpecial()?u=Te:"/"==r[c+1]?(u=Me,c++):(l.cannotBeABaseURL=!0,F(l.path,""),u=Fe)}break;case we:if(!n||n.cannotBeABaseURL&&"#"!=o)return j;if(n.cannotBeABaseURL&&"#"==o){l.scheme=n.scheme,l.path=v(n.path),l.query=n.query,l.fragment="",l.cannotBeABaseURL=!0,u=Ve;break}u="file"==n.scheme?Oe:Ce;continue;case Se:if("/"!=o||"/"!=r[c+1]){u=Ce;continue}u=ke,c++;break;case Me:if("/"==o){u=Ae;break}u=Be;continue;case Ce:if(l.scheme=n.scheme,o==i)l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=v(n.path),l.query=n.query;else if("/"==o||"\\"==o&&l.isSpecial())u=Ie;else if("?"==o)l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=v(n.path),l.query="",u=ze;else{if("#"!=o){l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=v(n.path),l.path.length--,u=Be;continue}l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=v(n.path),l.query=n.query,l.fragment="",u=Ve}break;case Ie:if(!l.isSpecial()||"/"!=o&&"\\"!=o){if("/"!=o){l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,u=Be;continue}u=Ae}else u=ke;break;case Te:if(u=ke,"/"!=o||"/"!=O(h,c+1))continue;c++;break;case ke:if("/"!=o&&"\\"!=o){u=Ae;continue}break;case Ae:if("@"==o){d&&(h="%40"+h),d=!0,a=g(h);for(var m=0;m65535)return Y;l.port=l.isSpecial()&&w===ge[l.scheme]?null:w,h=""}if(t)return;u=Ne;continue}return Y}h+=o;break;case Oe:if(l.scheme="file","/"==o||"\\"==o)u=Re;else{if(!n||"file"!=n.scheme){u=Be;continue}if(o==i)l.host=n.host,l.path=v(n.path),l.query=n.query;else if("?"==o)l.host=n.host,l.path=v(n.path),l.query="",u=ze;else{if("#"!=o){ye(E(v(r,c),""))||(l.host=n.host,l.path=v(n.path),l.shortenPath()),u=Be;continue}l.host=n.host,l.path=v(n.path),l.query=n.query,l.fragment="",u=Ve}}break;case Re:if("/"==o||"\\"==o){u=Ee;break}n&&"file"==n.scheme&&!ye(E(v(r,c),""))&&(ve(n.path[0],!0)?F(l.path,n.path[0]):l.host=n.host),u=Be;continue;case Ee:if(o==i||"/"==o||"\\"==o||"?"==o||"#"==o){if(!t&&ve(h))u=Be;else if(""==h){if(l.host="",t)return;u=Ne}else{if(s=l.parseHost(h),s)return s;if("localhost"==l.host&&(l.host=""),t)return;h="",u=Ne}continue}h+=o;break;case Ne:if(l.isSpecial()){if(u=Be,"/"!=o&&"\\"!=o)continue}else if(t||"?"!=o)if(t||"#"!=o){if(o!=i&&(u=Be,"/"!=o))continue}else l.fragment="",u=Ve;else l.query="",u=ze;break;case Be:if(o==i||"/"==o||"\\"==o&&l.isSpecial()||!t&&("?"==o||"#"==o)){if(xe(h)?(l.shortenPath(),"/"==o||"\\"==o&&l.isSpecial()||F(l.path,"")):me(h)?"/"==o||"\\"==o&&l.isSpecial()||F(l.path,""):("file"==l.scheme&&!l.path.length&&ve(h)&&(l.host&&(l.host=""),h=O(h,0)+":"),F(l.path,h)),h="","file"==l.scheme&&(o==i||"?"==o||"#"==o))while(l.path.length>1&&""===l.path[0])V(l.path);"?"==o?(l.query="",u=ze):"#"==o&&(l.fragment="",u=Ve)}else h+=fe(o,de);break;case Fe:"?"==o?(l.query="",u=ze):"#"==o?(l.fragment="",u=Ve):o!=i&&(l.path[0]+=fe(o,ce));break;case ze:t||"#"!=o?o!=i&&("'"==o&&l.isSpecial()?l.query+="%27":l.query+="#"==o?"%23":fe(o,ce)):(l.fragment="",u=Ve);break;case Ve:o!=i&&(l.fragment+=fe(o,he));break}c++}},parseHost:function(e){var t,n,i;if("["==O(e,0)){if("]"!=O(e,e.length-1))return Z;if(t=se(q(e,1,-1)),!t)return Z;this.host=t}else if(this.isSpecial()){if(e=m(e),R(ne,e))return Z;if(t=ae(e),null===t)return Z;this.host=t}else{if(R(ie,e))return Z;for(t="",n=g(e),i=0;i1?arguments[1]:void 0,i=M(t,new He(e,!1,n));o||(t.href=i.serialize(),t.origin=i.getOrigin(),t.protocol=i.getProtocol(),t.username=i.getUsername(),t.password=i.getPassword(),t.host=i.getHost(),t.hostname=i.getHostname(),t.port=i.getPort(),t.pathname=i.getPathname(),t.search=i.getSearch(),t.searchParams=i.getSearchParams(),t.hash=i.getHash())},Ge=qe.prototype,We=function(e,t){return{get:function(){return C(this)[e]()},set:t&&function(e){return C(this)[t](e)},configurable:!0,enumerable:!0}};if(o&&(h(Ge,"href",We("serialize","setHref")),h(Ge,"origin",We("getOrigin")),h(Ge,"protocol",We("getProtocol","setProtocol")),h(Ge,"username",We("getUsername","setUsername")),h(Ge,"password",We("getPassword","setPassword")),h(Ge,"host",We("getHost","setHost")),h(Ge,"hostname",We("getHostname","setHostname")),h(Ge,"port",We("getPort","setPort")),h(Ge,"pathname",We("getPathname","setPathname")),h(Ge,"search",We("getSearch","setSearch")),h(Ge,"searchParams",We("getSearchParams")),h(Ge,"hash",We("getHash","setHash"))),c(Ge,"toJSON",(function(){return C(this).serialize()}),{enumerable:!0}),c(Ge,"toString",(function(){return C(this).serialize()}),{enumerable:!0}),k){var Ue=k.createObjectURL,je=k.revokeObjectURL;Ue&&c(qe,"createObjectURL",l(Ue,k)),je&&c(qe,"revokeObjectURL",l(je,k))}_(qe,"URL"),r({global:!0,constructor:!0,forced:!a,sham:!o},{URL:qe})},7965:(e,t,n)=>{n(6295)},2256:(e,t,n)=>{"use strict";n.d(t,{S1:()=>Tw});var i={};n.r(i),n.d(i,{Arc:()=>Jy,BezierCurve:()=>$y,BoundingRect:()=>oo,Circle:()=>ly,CompoundPath:()=>em,Ellipse:()=>hy,Group:()=>Lo,Image:()=>iu,IncrementalDisplayable:()=>gm,Line:()=>Wy,LinearGradient:()=>rm,OrientedBoundingRect:()=>dm,Path:()=>$l,Point:()=>$r,Polygon:()=>By,Polyline:()=>Vy,RadialGradient:()=>am,Rect:()=>du,Ring:()=>Py,Sector:()=>Ay,Text:()=>Du,applyTransform:()=>Om,clipPointsByRect:()=>Fm,clipRectByRect:()=>zm,createIcon:()=>Vm,extendPath:()=>bm,extendShape:()=>xm,getShapeClass:()=>Sm,getTransform:()=>Pm,groupTransition:()=>Bm,initProps:()=>Kc,isElementRemoved:()=>Jc,lineLineIntersect:()=>qm,linePolygonIntersect:()=>Hm,makeImage:()=>Cm,makePath:()=>Mm,mergePath:()=>Tm,registerShape:()=>wm,removeElement:()=>Qc,removeElementWithFadeOut:()=>th,resizePath:()=>km,setTooltipConfig:()=>Um,subPixelOptimize:()=>Lm,subPixelOptimizeLine:()=>Am,subPixelOptimizeRect:()=>Dm,transformDirection:()=>Rm,traverseElements:()=>Zm,updateProps:()=>Xc}); -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */ -var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}Object.create;Object.create;var a=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),s=function(){function e(){this.browser=new a,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!==typeof window}return e}(),l=new s;function u(e,t){var n=t.browser,i=e.match(/Firefox\/([\d.]+)/),r=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),o=e.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(e);i&&(n.firefox=!0,n.version=i[1]),r&&(n.ie=!0,n.version=r[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18),a&&(n.weChat=!0),t.svgSupported="undefined"!==typeof SVGRect,t.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,t.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported="undefined"!==typeof document;var s=document.documentElement.style;t.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}"object"===typeof wx&&"function"===typeof wx.getSystemInfoSync?(l.wxa=!0,l.touchEventsSupported=!0):"undefined"===typeof document&&"undefined"!==typeof self?l.worker=!0:"undefined"===typeof navigator?(l.node=!0,l.svgSupported=!0):u(navigator.userAgent,l);const c=l;var h=12,d="sans-serif",p=h+"px "+d,f=20,g=100,v="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function y(e){var t={};if("undefined"===typeof JSON)return t;for(var n=0;n=0)s=a*n.length;else for(var l=0;l>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",r[u]+":0",i[1-l]+":auto",r[1-u]+":auto",""].join("!important;"),e.appendChild(a),n.push(a)}return n}function ut(e,t,n){for(var i=n?"invTrans":"trans",r=t[i],o=t.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var c=e[u].getBoundingClientRect(),h=2*u,d=c.left,p=c.top;a.push(d,p),l=l&&o&&d===o[h]&&p===o[h+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&r?r:(t.srcCoords=a,t[i]=n?it(s,a):it(a,s))}function ct(e){return"CANVAS"===e.nodeName.toUpperCase()}var ht=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,dt=[],pt=c.browser.firefox&&+c.browser.version.split(".")[0]<39;function ft(e,t,n,i){return n=n||{},i?gt(e,t,n):pt&&null!=t.layerX&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):null!=t.offsetX?(n.zrX=t.offsetX,n.zrY=t.offsetY):gt(e,t,n),n}function gt(e,t,n){if(c.domSupported&&e.getBoundingClientRect){var i=t.clientX,r=t.clientY;if(ct(e)){var o=e.getBoundingClientRect();return n.zrX=i-o.left,void(n.zrY=r-o.top)}if(st(dt,e,i,r))return n.zrX=dt[0],void(n.zrY=dt[1])}n.zrX=n.zrY=0}function vt(e){return e||window.event}function yt(e,t,n){if(t=vt(t),null!=t.zrX)return t;var i=t.type,r=i&&i.indexOf("touch")>=0;if(r){var o="touchend"!==i?t.targetTouches[0]:t.changedTouches[0];o&&ft(e,o,t,n)}else{ft(e,t,t,n);var a=mt(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return null==t.which&&void 0!==s&&ht.test(t.type)&&(t.which=1&s?1:2&s?3:4&s?2:0),t}function mt(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,i=e.deltaY;if(null==n||null==i)return t;var r=0!==i?Math.abs(i):Math.abs(n),o=i>0?-1:i<0?1:n>0?-1:1;return 3*r*o}function xt(e,t,n,i){e.addEventListener(t,n,i)}function _t(e,t,n,i){e.removeEventListener(t,n,i)}var bt=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function wt(e){return 2===e.which||3===e.which}var St=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var i=e.touches;if(i){for(var r={points:[],touches:[],target:t,event:e},o=0,a=i.length;o1&&i&&i.length>1){var o=Mt(i)/Mt(r);!isFinite(o)&&(o=1),t.pinchScale=o;var a=Ct(i);return t.pinchX=a[0],t.pinchY=a[1],{type:"pinch",target:e[0].target,event:t}}}}},Tt="silent";function kt(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:At}}function At(){bt(this.event)}var Dt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handler=null,t}return De(t,e),t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(et),Lt=function(){function e(e,t){this.x=e,this.y=t}return e}(),Pt=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Ot=function(e){function t(t,n,i,r){var o=e.call(this)||this;return o._hovered=new Lt(0,0),o.storage=t,o.painter=n,o.painterRoot=r,i=i||new Dt,o.proxy=null,o.setHandlerProxy(i),o._draggingMgr=new Je(o),o}return De(t,e),t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(G(Pt,(function(t){e.on&&e.on(t,this[t],this)}),this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,i=Et(this,t,n),r=this._hovered,o=r.target;o&&!o.__zr&&(r=this.findHover(r.x,r.y),o=r.target);var a=this._hovered=i?new Lt(t,n):this.findHover(t,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(r,"mouseout",e),this.dispatchToElement(a,"mousemove",e),s&&s!==o&&this.dispatchToElement(a,"mouseover",e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;"only_globalout"!==t&&this.dispatchToElement(this._hovered,"mouseout",e),"no_globalout"!==t&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new Lt(0,0)},t.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,n){e=e||{};var i=e.target;if(!i||!i.silent){var r="on"+t,o=kt(t,e,n);while(i)if(i[r]&&(o.cancelBubble=!!i[r].call(i,o)),i.trigger(t,o),i=i.__hostTarget?i.__hostTarget:i.parent,o.cancelBubble)break;o.cancelBubble||(this.trigger(t,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(e){"function"===typeof e[r]&&e[r].call(e,o),e.trigger&&e.trigger(t,o)})))}},t.prototype.findHover=function(e,t,n){for(var i=this.storage.getDisplayList(),r=new Lt(e,t),o=i.length-1;o>=0;o--){var a=void 0;if(i[o]!==n&&!i[o].ignore&&(a=Rt(i[o],e,t))&&(!r.topTarget&&(r.topTarget=i[o]),a!==Tt)){r.target=i[o];break}}return r},t.prototype.processGesture=function(e,t){this._gestureMgr||(this._gestureMgr=new St);var n=this._gestureMgr;"start"===t&&n.clear();var i=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if("end"===t&&n.clear(),i){var r=i.type;e.gestureEvent=r;var o=new Lt;o.target=i.target,this.dispatchToElement(o,r,i.event)}},t}(et);function Rt(e,t,n){if(e[e.rectHover?"rectContain":"contain"](t,n)){var i=e,r=void 0,o=!1;while(i){if(i.ignoreClip&&(o=!0),!o){var a=i.getClipPath();if(a&&!a.contain(t,n))return!1;i.silent&&(r=!0)}var s=i.__hostTarget;i=s||i.parent}return!r||Tt}return!1}function Et(e,t,n){var i=e.painter;return t<0||t>i.getWidth()||n<0||n>i.getHeight()}G(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(e){Ot.prototype[e]=function(t){var n,i,r=t.zrX,o=t.zrY,a=Et(this,r,o);if("mouseup"===e&&a||(n=this.findHover(r,o),i=n.target),"mousedown"===e)this._downEl=i,this._downPoint=[t.zrX,t.zrY],this._upEl=i;else if("mouseup"===e)this._upEl=i;else if("click"===e){if(this._downEl!==this._upEl||!this._downPoint||Ge(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,e,t)}}));const Nt=Ot;var Bt=32,Ft=7;function zt(e){var t=0;while(e>=Bt)t|=1&e,e>>=1;return e+t}function Vt(e,t,n,i){var r=t+1;if(r===n)return 1;if(i(e[r++],e[t])<0){while(r=0)r++;return r-t}function Ht(e,t,n){n--;while(t>>1,r(a,e[o])<0?l=o:s=o+1;var u=i-s;switch(u){case 3:e[s+3]=e[s+2];case 2:e[s+2]=e[s+1];case 1:e[s+1]=e[s];break;default:while(u>0)e[s+u]=e[s+u-1],u--}e[s]=a}}function Gt(e,t,n,i,r,o){var a=0,s=0,l=1;if(o(e,t[n+r])>0){s=i-r;while(l0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{s=r+1;while(ls&&(l=s);var u=a;a=r-l,l=r-u}a++;while(a>>1);o(e,t[n+c])>0?a=c+1:l=c}return l}function Wt(e,t,n,i,r,o){var a=0,s=0,l=1;if(o(e,t[n+r])<0){s=r+1;while(ls&&(l=s);var u=a;a=r-l,l=r-u}else{s=i-r;while(l=0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}a++;while(a>>1);o(e,t[n+c])<0?l=c:a=c+1}return l}function Ut(e,t){var n,i,r=Ft,o=0,a=0;o=e.length;var s=[];function l(e,t){n[a]=e,i[a]=t,a+=1}function u(){while(a>1){var e=a-2;if(e>=1&&i[e-1]<=i[e]+i[e+1]||e>=2&&i[e-2]<=i[e]+i[e-1])i[e-1]i[e+1])break;h(e)}}function c(){while(a>1){var e=a-2;e>0&&i[e-1]=Ft||p>=Ft);if(f)break;g<0&&(g=0),g+=2}if(r=g,r<1&&(r=1),1===i){for(l=0;l=0;l--)e[p+l]=e[d+l];if(0===i){y=!0;break}}if(e[h--]=s[c--],1===--a){y=!0;break}if(v=a-Gt(e[u],s,0,a,a-1,t),0!==v){for(h-=v,c-=v,a-=v,p=h+1,d=c+1,l=0;l=Ft||v>=Ft);if(y)break;f<0&&(f=0),f+=2}if(r=f,r<1&&(r=1),1===a){for(h-=i,u-=i,p=h+1,d=u+1,l=i-1;l>=0;l--)e[p+l]=e[d+l];e[h]=s[c]}else{if(0===a)throw new Error;for(d=h-(a-1),l=0;l=0;l--)e[p+l]=e[d+l];e[h]=s[c]}else for(d=h-(a-1),l=0;ls&&(l=s),qt(e,n,n+l,n+o,t),o=l}a.pushRun(n,o),a.mergeRuns(),r-=o,n+=o}while(0!==r);a.forceMergeRuns()}}var Zt=1,Yt=2,$t=4,Xt=!1;function Kt(){Xt||(Xt=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Jt(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Qt=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Jt}return e.prototype.traverse=function(e,t){for(var n=0;n0&&(u.__clipPaths=[]),isNaN(u.z)&&(Kt(),u.z=0),isNaN(u.z2)&&(Kt(),u.z2=0),isNaN(u.zlevel)&&(Kt(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var c=e.getDecalElement&&e.getDecalElement();c&&this._updateAndAddDisplayable(c,t,n);var h=e.getTextGuideLine();h&&this._updateAndAddDisplayable(h,t,n);var d=e.getTextContent();d&&this._updateAndAddDisplayable(d,t,n)}},e.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},e.prototype.delRoot=function(e){if(e instanceof Array)for(var t=0,n=e.length;t=0&&this._roots.splice(i,1)}},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}();const en=Qt;var tn;tn=c.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};const nn=tn;var rn={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return.5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return 0===e?0:Math.pow(1024,e-1)},exponentialOut:function(e){return 1===e?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(2-Math.pow(2,-10*(e-1)))},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1,i=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=i/4):t=i*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i))},elasticOut:function(e){var t,n=.1,i=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=i/4):t=i*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/i)+1)},elasticInOut:function(e){var t,n=.1,i=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=i/4):t=i*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)*-.5:n*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?e*e*((t+1)*e-t)*.5:.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-rn.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?.5*rn.bounceIn(2*e):.5*rn.bounceOut(2*e-1)+.5}};const on=rn;var an=Math.pow,sn=Math.sqrt,ln=1e-8,un=1e-4,cn=sn(3),hn=1/3,dn=Le(),pn=Le(),fn=Le();function gn(e){return e>-ln&&eln||e<-ln}function yn(e,t,n,i,r){var o=1-r;return o*o*(o*e+3*r*t)+r*r*(r*i+3*o*n)}function mn(e,t,n,i,r){var o=1-r;return 3*(((t-e)*o+2*(n-t)*r)*o+(i-n)*r*r)}function xn(e,t,n,i,r,o){var a=i+3*(t-n)-e,s=3*(n-2*t+e),l=3*(t-e),u=e-r,c=s*s-3*a*l,h=s*l-9*a*u,d=l*l-3*s*u,p=0;if(gn(c)&&gn(h))if(gn(s))o[0]=0;else{var f=-l/s;f>=0&&f<=1&&(o[p++]=f)}else{var g=h*h-4*c*d;if(gn(g)){var v=h/c,y=(f=-s/a+v,-v/2);f>=0&&f<=1&&(o[p++]=f),y>=0&&y<=1&&(o[p++]=y)}else if(g>0){var m=sn(g),x=c*s+1.5*a*(-h+m),_=c*s+1.5*a*(-h-m);x=x<0?-an(-x,hn):an(x,hn),_=_<0?-an(-_,hn):an(_,hn);f=(-s-(x+_))/(3*a);f>=0&&f<=1&&(o[p++]=f)}else{var b=(2*c*s-3*a*h)/(2*sn(c*c*c)),w=Math.acos(b)/3,S=sn(c),M=Math.cos(w),C=(f=(-s-2*S*M)/(3*a),y=(-s+S*(M+cn*Math.sin(w)))/(3*a),(-s+S*(M-cn*Math.sin(w)))/(3*a));f>=0&&f<=1&&(o[p++]=f),y>=0&&y<=1&&(o[p++]=y),C>=0&&C<=1&&(o[p++]=C)}}return p}function _n(e,t,n,i,r){var o=6*n-12*t+6*e,a=9*t+3*i-3*e-9*n,s=3*t-3*e,l=0;if(gn(a)){if(vn(o)){var u=-s/o;u>=0&&u<=1&&(r[l++]=u)}}else{var c=o*o-4*a*s;if(gn(c))r[0]=-o/(2*a);else if(c>0){var h=sn(c),d=(u=(-o+h)/(2*a),(-o-h)/(2*a));u>=0&&u<=1&&(r[l++]=u),d>=0&&d<=1&&(r[l++]=d)}}return l}function bn(e,t,n,i,r,o){var a=(t-e)*r+e,s=(n-t)*r+t,l=(i-n)*r+n,u=(s-a)*r+a,c=(l-s)*r+s,h=(c-u)*r+u;o[0]=e,o[1]=a,o[2]=u,o[3]=h,o[4]=h,o[5]=c,o[6]=l,o[7]=i}function wn(e,t,n,i,r,o,a,s,l,u,c){var h,d,p,f,g,v=.005,y=1/0;dn[0]=l,dn[1]=u;for(var m=0;m<1;m+=.05)pn[0]=yn(e,n,r,a,m),pn[1]=yn(t,i,o,s,m),f=Ue(dn,pn),f=0&&f=0&&u<=1&&(r[l++]=u)}}else{var c=a*a-4*o*s;if(gn(c)){u=-a/(2*o);u>=0&&u<=1&&(r[l++]=u)}else if(c>0){var h=sn(c),d=(u=(-a+h)/(2*o),(-a-h)/(2*o));u>=0&&u<=1&&(r[l++]=u),d>=0&&d<=1&&(r[l++]=d)}}return l}function Tn(e,t,n){var i=e+n-2*t;return 0===i?.5:(e-t)/i}function kn(e,t,n,i,r){var o=(t-e)*i+e,a=(n-t)*i+t,s=(a-o)*i+o;r[0]=e,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=n}function An(e,t,n,i,r,o,a,s,l){var u,c=.005,h=1/0;dn[0]=a,dn[1]=s;for(var d=0;d<1;d+=.05){pn[0]=Mn(e,n,r,d),pn[1]=Mn(t,i,o,d);var p=Ue(dn,pn);p=0&&p=1?1:xn(0,i,o,1,e,s)&&yn(0,r,a,1,s[0])}}}var On=function(){function e(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Te,this.ondestroy=e.ondestroy||Te,this.onrestart=e.onrestart||Te,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),!this._paused){var n=this._life,i=e-this._startTime-this._pausedTime,r=i/n;r<0&&(r=0),r=Math.min(r,1);var o=this.easingFunc,a=o?o(r):r;if(this.onframe(a),1===r){if(!this.loop)return!0;var s=i%n;this._startTime=e-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=t},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=Q(e)?e:on[e]||Pn(e)},e}();const Rn=On;var En=function(){function e(e){this.value=e}return e}(),Nn=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new En(e);return this.insertEntry(t),t},e.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},e.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),Bn=function(){function e(e){this._list=new Nn,this._maxSize=10,this._map={},this._maxSize=e}return e.prototype.put=function(e,t){var n=this._list,i=this._map,r=null;if(null==i[e]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete i[s.key],r=s.value,this._lastRemovedEntry=s}a?a.value=t:a=new En(t),a.key=e,n.insertEntry(a),i[e]=a}return r},e.prototype.get=function(e){var t=this._map[e],n=this._list;if(null!=t)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}();const Fn=Bn;var zn={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Vn(e){return e=Math.round(e),e<0?0:e>255?255:e}function Hn(e){return e=Math.round(e),e<0?0:e>360?360:e}function qn(e){return e<0?0:e>1?1:e}function Gn(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?Vn(parseFloat(t)/100*255):Vn(parseInt(t,10))}function Wn(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?qn(parseFloat(t)/100):qn(parseFloat(t))}function Un(e,t,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function jn(e,t,n){return e+(t-e)*n}function Zn(e,t,n,i,r){return e[0]=t,e[1]=n,e[2]=i,e[3]=r,e}function Yn(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var $n=new Fn(20),Xn=null;function Kn(e,t){Xn&&Yn(Xn,t),Xn=$n.put(e,Xn||t.slice())}function Jn(e,t){if(e){t=t||[];var n=$n.get(e);if(n)return Yn(t,n);e+="";var i=e.replace(/ /g,"").toLowerCase();if(i in zn)return Yn(t,zn[i]),Kn(e,t),t;var r=i.length;if("#"!==i.charAt(0)){var o=i.indexOf("("),a=i.indexOf(")");if(-1!==o&&a+1===r){var s=i.substr(0,o),l=i.substr(o+1,a-(o+1)).split(","),u=1;switch(s){case"rgba":if(4!==l.length)return 3===l.length?Zn(t,+l[0],+l[1],+l[2],1):Zn(t,0,0,0,1);u=Wn(l.pop());case"rgb":return 3!==l.length?void Zn(t,0,0,0,1):(Zn(t,Gn(l[0]),Gn(l[1]),Gn(l[2]),u),Kn(e,t),t);case"hsla":return 4!==l.length?void Zn(t,0,0,0,1):(l[3]=Wn(l[3]),Qn(l,t),Kn(e,t),t);case"hsl":return 3!==l.length?void Zn(t,0,0,0,1):(Qn(l,t),Kn(e,t),t);default:return}}Zn(t,0,0,0,1)}else{if(4===r||5===r){var c=parseInt(i.slice(1,4),16);return c>=0&&c<=4095?(Zn(t,(3840&c)>>4|(3840&c)>>8,240&c|(240&c)>>4,15&c|(15&c)<<4,5===r?parseInt(i.slice(4),16)/15:1),Kn(e,t),t):void Zn(t,0,0,0,1)}if(7===r||9===r){c=parseInt(i.slice(1,7),16);return c>=0&&c<=16777215?(Zn(t,(16711680&c)>>16,(65280&c)>>8,255&c,9===r?parseInt(i.slice(7),16)/255:1),Kn(e,t),t):void Zn(t,0,0,0,1)}}}}function Qn(e,t){var n=(parseFloat(e[0])%360+360)%360/360,i=Wn(e[1]),r=Wn(e[2]),o=r<=.5?r*(i+1):r+i-r*i,a=2*r-o;return t=t||[],Zn(t,Vn(255*Un(a,o,n+1/3)),Vn(255*Un(a,o,n)),Vn(255*Un(a,o,n-1/3)),1),4===e.length&&(t[3]=e[3]),t}function ei(e){if(e){var t,n,i=e[0]/255,r=e[1]/255,o=e[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a,u=(s+a)/2;if(0===l)t=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var c=((s-i)/6+l/2)/l,h=((s-r)/6+l/2)/l,d=((s-o)/6+l/2)/l;i===s?t=d-h:r===s?t=1/3+c-d:o===s&&(t=2/3+h-c),t<0&&(t+=1),t>1&&(t-=1)}var p=[360*t,n,u];return null!=e[3]&&p.push(e[3]),p}}function ti(e,t){var n=Jn(e);if(n){for(var i=0;i<3;i++)n[i]=t<0?n[i]*(1-t)|0:(255-n[i])*t+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return ai(n,4===n.length?"rgba":"rgb")}}function ni(e,t,n){if(t&&t.length&&e>=0&&e<=1){n=n||[];var i=e*(t.length-1),r=Math.floor(i),o=Math.ceil(i),a=t[r],s=t[o],l=i-r;return n[0]=Vn(jn(a[0],s[0],l)),n[1]=Vn(jn(a[1],s[1],l)),n[2]=Vn(jn(a[2],s[2],l)),n[3]=qn(jn(a[3],s[3],l)),n}}function ii(e,t,n){if(t&&t.length&&e>=0&&e<=1){var i=e*(t.length-1),r=Math.floor(i),o=Math.ceil(i),a=Jn(t[r]),s=Jn(t[o]),l=i-r,u=ai([Vn(jn(a[0],s[0],l)),Vn(jn(a[1],s[1],l)),Vn(jn(a[2],s[2],l)),qn(jn(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:r,rightIndex:o,value:i}:u}}function ri(e,t,n,i){var r=Jn(e);if(e)return r=ei(r),null!=t&&(r[0]=Hn(t)),null!=n&&(r[1]=Wn(n)),null!=i&&(r[2]=Wn(i)),ai(Qn(r),"rgba")}function oi(e,t){var n=Jn(e);if(n&&null!=t)return n[3]=qn(t),ai(n,"rgba")}function ai(e,t){if(e&&e.length){var n=e[0]+","+e[1]+","+e[2];return"rgba"!==t&&"hsva"!==t&&"hsla"!==t||(n+=","+e[3]),t+"("+n+")"}}function si(e,t){var n=Jn(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var li=Math.round;function ui(e){var t;if(e&&"transparent"!==e){if("string"===typeof e&&e.indexOf("rgba")>-1){var n=Jn(e);n&&(e="rgb("+n[0]+","+n[1]+","+n[2]+")",t=n[3])}}else e="none";return{color:e,opacity:null==t?1:t}}var ci=1e-4;function hi(e){return e-ci}function di(e){return li(1e3*e)/1e3}function pi(e){return li(1e4*e)/1e4}function fi(e){return"matrix("+di(e[0])+","+di(e[1])+","+di(e[2])+","+di(e[3])+","+pi(e[4])+","+pi(e[5])+")"}var gi={left:"start",right:"end",center:"middle",middle:"middle"};function vi(e,t,n){return"top"===n?e+=t/2:"bottom"===n&&(e-=t/2),e}function yi(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function mi(e){var t=e.style,n=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}function xi(e){return e&&!!e.image}function _i(e){return e&&!!e.svgElement}function bi(e){return xi(e)||_i(e)}function wi(e){return"linear"===e.type}function Si(e){return"radial"===e.type}function Mi(e){return e&&("linear"===e.type||"radial"===e.type)}function Ci(e){return"url(#"+e+")"}function Ii(e){var t=e.getGlobalScale(),n=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function Ti(e){var t=e.x||0,n=e.y||0,i=(e.rotation||0)*ke,r=de(e.scaleX,1),o=de(e.scaleY,1),a=e.skewX||0,s=e.skewY||0,l=[];return(t||n)&&l.push("translate("+t+"px,"+n+"px)"),i&&l.push("rotate("+i+")"),1===r&&1===o||l.push("scale("+r+","+o+")"),(a||s)&&l.push("skew("+li(a*ke)+"deg, "+li(s*ke)+"deg)"),l.join(" ")}var ki=function(){return c.hasGlobalWindow&&Q(window.btoa)?function(e){return window.btoa(unescape(e))}:"undefined"!==typeof Buffer?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}}(),Ai=Array.prototype.slice;function Di(e,t,n){return(t-e)*n+e}function Li(e,t,n,i){for(var r=t.length,o=0;oi?t:e,o=Math.min(n,i),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;sa;if(s)i.length=a;else for(var l=o;l=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var i=this.keyframes,r=i.length,o=!1,a=ji,s=t;if(q(t)){var l=zi(t);a=l,(1===l&&!ne(t[0])||2===l&&!ne(t[0][0]))&&(o=!0)}else if(ne(t)&&!ce(t))a=Vi;else if(ee(t))if(isNaN(+t)){var u=Jn(t);u&&(s=u,a=Gi)}else a=Vi;else if(se(t)){var c=B({},s);c.colorStops=W(t.colorStops,(function(e){return{offset:e.offset,color:Jn(e.color)}})),wi(t)?a=Wi:Si(t)&&(a=Ui),s=c}0===r?this.valType=a:a===this.valType&&a!==ji||(o=!0),this.discrete=this.discrete||o;var h={time:e,value:s,rawValue:t,percent:0};return n&&(h.easing=n,h.easingFunc=Q(n)?n:on[n]||Pn(n)),i.push(h),h},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort((function(e,t){return e.time-t.time}));for(var i=this.valType,r=n.length,o=n[r-1],a=this.discrete,s=Yi(i),l=Zi(i),u=0;u=0;n--)if(l[n].percent<=t)break;n=p(n,u-2)}else{for(n=d;nt)break;n=p(n-1,u-2)}r=l[n+1],i=l[n]}if(i&&r){this._lastFr=n,this._lastFrP=t;var g=r.percent-i.percent,v=0===g?1:p((t-i.percent)/g,1);r.easingFunc&&(v=r.easingFunc(v));var y=o?this._additiveValue:h?$i:e[c];if(!Yi(s)&&!h||y||(y=this._additiveValue=[]),this.discrete)e[c]=v<1?i.rawValue:r.rawValue;else if(Yi(s))s===Hi?Li(y,i[a],r[a],v):Pi(y,i[a],r[a],v);else if(Zi(s)){var m=i[a],x=r[a],_=s===Wi;e[c]={type:_?"linear":"radial",x:Di(m.x,x.x,v),y:Di(m.y,x.y,v),colorStops:W(m.colorStops,(function(e,t){var n=x.colorStops[t];return{offset:Di(e.offset,n.offset,v),color:Fi(Li([],e.color,n.color,v))}})),global:x.global},_?(e[c].x2=Di(m.x2,x.x2,v),e[c].y2=Di(m.y2,x.y2,v)):e[c].r=Di(m.r,x.r,v)}else if(h)Li(y,i[a],r[a],v),o||(e[c]=Fi(y));else{var b=Di(i[a],r[a],v);o?this._additiveValue=b:e[c]=b}o&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,i=this._additiveValue;t===Vi?e[n]=e[n]+i:t===Gi?(Jn(e[n],$i),Oi($i,$i,i,1),e[n]=Fi($i)):t===Hi?Oi(e[n],e[n],i,1):t===qi&&Ri(e[n],e[n],i,1)},e}(),Ki=function(){function e(e,t,n,i){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&i?O("Can' use additive animation on looped animation."):(this._additiveAnimators=i,this._allowDiscrete=n)}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(e){this._target=e},e.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,Y(t),n)},e.prototype.whenWithKeys=function(e,t,n,i){for(var r=this._tracks,o=0;o0&&s.addKeyframe(0,Bi(l),i),this._trackKeys.push(a)}s.addKeyframe(e,Bi(t[a]),i)}return this._maxTime=Math.max(this._maxTime,e),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n0)){this._started=1;for(var t=this,n=[],i=this._maxTime||0,r=0;r1){var a=o.pop();r.addKeyframe(a.time,e[i]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},e}();const Ji=Ki;function Qi(){return(new Date).getTime()}var er=function(e){function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t=t||{},n.stage=t.stage||{},n}return De(t,e),t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._head=n,n?n.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){var t=Qi()-this._pausedTime,n=t-this._time,i=this._head;while(i){var r=i.next,o=i.step(t,n);o?(i.ondestroy(),this.removeClip(i),i=r):i=r}this._time=t,e||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;function t(){e._running&&(nn(t),!e._paused&&e.update())}this._running=!0,nn(t)},t.prototype.start=function(){this._running||(this._time=Qi(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Qi(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Qi()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){var e=this._head;while(e){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return null==this._head},t.prototype.animate=function(e,t){t=t||{},this.start();var n=new Ji(e,t.loop);return this.addAnimator(n),n},t}(et);const tr=er;var nr=300,ir=c.domSupported,rr=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=W(e,(function(e){var t=e.replace("mouse","pointer");return n.hasOwnProperty(t)?t:e}));return{mouse:e,touch:t,pointer:i}}(),or={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},ar=!1;function sr(e){var t=e.pointerType;return"pen"===t||"touch"===t}function lr(e){e.touching=!0,null!=e.touchTimer&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout((function(){e.touching=!1,e.touchTimer=null}),700)}function ur(e){e&&(e.zrByTouch=!0)}function cr(e,t){return yt(e.dom,new dr(e,t),!0)}function hr(e,t){var n=t,i=!1;while(n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==t&&n===e.painterRoot))n=n.parentNode;return i}var dr=function(){function e(e,t){this.stopPropagation=Te,this.stopImmediatePropagation=Te,this.preventDefault=Te,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return e}(),pr={mousedown:function(e){e=yt(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=yt(this.dom,e);var t=this.__mayPointerCapture;!t||e.zrX===t[0]&&e.zrY===t[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=yt(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=yt(this.dom,e);var t=e.toElement||e.relatedTarget;hr(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){ar=!0,e=yt(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){ar||(e=yt(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=yt(this.dom,e),ur(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),pr.mousemove.call(this,e),pr.mousedown.call(this,e)},touchmove:function(e){e=yt(this.dom,e),ur(e),this.handler.processGesture(e,"change"),pr.mousemove.call(this,e)},touchend:function(e){e=yt(this.dom,e),ur(e),this.handler.processGesture(e,"end"),pr.mouseup.call(this,e),+new Date-+this.__lastTouchMomentFr||e<-Fr}var Vr=[],Hr=[],qr=kr(),Gr=Math.abs,Wr=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return zr(this.rotation)||zr(this.x)||zr(this.y)||zr(this.scaleX-1)||zr(this.scaleY-1)||zr(this.skewX)||zr(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;t||e?(n=n||kr(),t?this.getLocalTransform(n):Br(n),e&&(t?Lr(n,e,n):Dr(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&Br(n)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(null!=t&&1!==t){this.getGlobalScale(Vr);var n=Vr[0]<0?-1:1,i=Vr[1]<0?-1:1,r=((Vr[0]-n)*t+n)/Vr[0]||0,o=((Vr[1]-i)*t+i)/Vr[1]||0;e[0]*=r,e[1]*=r,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||kr(),Er(this.invTransform,e)},e.prototype.getComputedTransform=function(){var e=this,t=[];while(e)t.push(e),e=e.parent;while(e=t.pop())e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],i=Math.atan2(e[1],e[0]),r=Math.PI/2+i-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(r),t=Math.sqrt(t),this.skewX=r,this.skewY=0,this.rotation=-i,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(Lr(Hr,e.invTransform,t),t=Hr);var n=this.originX,i=this.originY;(n||i)&&(qr[4]=n,qr[5]=i,Lr(Hr,t,qr),Hr[4]-=n,Hr[5]-=i,t=Hr),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],i=this.invTransform;return i&&Ze(n,n,i),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],i=this.transform;return i&&Ze(n,n,i),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&Gr(e[0]-1)>1e-10&&Gr(e[3]-1)>1e-10?Math.sqrt(Gr(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){jr(this,e)},e.getLocalTransform=function(e,t){t=t||[];var n=e.originX||0,i=e.originY||0,r=e.scaleX,o=e.scaleY,a=e.anchorX,s=e.anchorY,l=e.rotation||0,u=e.x,c=e.y,h=e.skewX?Math.tan(e.skewX):0,d=e.skewY?Math.tan(-e.skewY):0;if(n||i||a||s){var p=n+a,f=i+s;t[4]=-p*r-h*f*o,t[5]=-f*o-d*p*r}else t[4]=t[5]=0;return t[0]=r,t[3]=o,t[1]=d*r,t[2]=h*o,l&&Or(t,t,l),t[4]+=n+u,t[5]+=i+c,t},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),Ur=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function jr(e,t){for(var n=0;nf&&(f=x,gf&&(f=_,y=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return 0===this.width||0===this.height},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},e.applyTransform=function(t,n,i){if(i){if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],o=i[3],a=i[4],s=i[5];return t.x=n.x*r+a,t.y=n.y*o+s,t.width=n.width*r,t.height=n.height*o,t.width<0&&(t.x+=t.width,t.width=-t.width),void(t.height<0&&(t.y+=t.height,t.height=-t.height))}Jr.x=eo.x=n.x,Jr.y=to.y=n.y,Qr.x=to.x=n.x+n.width,Qr.y=eo.y=n.y+n.height,Jr.transform(i),to.transform(i),Qr.transform(i),eo.transform(i),t.x=Xr(Jr.x,Qr.x,eo.x,to.x),t.y=Xr(Jr.y,Qr.y,eo.y,to.y);var l=Kr(Jr.x,Qr.x,eo.x,to.x),u=Kr(Jr.y,Qr.y,eo.y,to.y);t.width=l-t.x,t.height=u-t.y}else t!==n&&e.copy(t,n)},e}();const oo=ro;var ao={};function so(e,t){t=t||p;var n=ao[t];n||(n=ao[t]=new Fn(500));var i=n.get(e);return null==i&&(i=x.measureText(e,t).width,n.put(e,i)),i}function lo(e,t,n,i){var r=so(e,t),o=po(t),a=co(0,r,n),s=ho(0,o,i),l=new oo(a,s,r,o);return l}function uo(e,t,n,i){var r=((e||"")+"").split("\n"),o=r.length;if(1===o)return lo(r[0],t,n,i);for(var a=new oo(0,0,0,0),s=0;s=0?parseFloat(e)/100*t:parseFloat(e):e}function go(e,t,n){var i=t.position||"inside",r=null!=t.distance?t.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,c="left",h="top";if(i instanceof Array)l+=fo(i[0],n.width),u+=fo(i[1],n.height),c=null,h=null;else switch(i){case"left":l-=r,u+=s,c="right",h="middle";break;case"right":l+=r+a,u+=s,h="middle";break;case"top":l+=a/2,u-=r,c="center",h="bottom";break;case"bottom":l+=a/2,u+=o+r,c="center";break;case"inside":l+=a/2,u+=s,c="center",h="middle";break;case"insideLeft":l+=r,u+=s,h="middle";break;case"insideRight":l+=a-r,u+=s,c="right",h="middle";break;case"insideTop":l+=a/2,u+=r,c="center";break;case"insideBottom":l+=a/2,u+=o-r,c="center",h="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,c="right";break;case"insideBottomLeft":l+=r,u+=o-r,h="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,c="right",h="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=c,e.verticalAlign=h,e}var vo="__zr_normal__",yo=Ur.concat(["ignore"]),mo=U(Ur,(function(e,t){return e[t]=!0,e}),{ignore:!1}),xo={},_o=new oo(0,0,0,0),bo=function(){function e(e){this.id=P(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return e.prototype._init=function(e){this.attr(e)},e.prototype.drift=function(e,t,n){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=e,i[5]+=t,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,r=t.innerTransformable,o=void 0,a=void 0,s=!1;r.parent=i?this:null;var l=!1;if(r.copyTransform(t),null!=n.position){var u=_o;n.layoutRect?u.copy(n.layoutRect):u.copy(this.getBoundingRect()),i||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(xo,n,u):go(xo,n,u),r.x=xo.x,r.y=xo.y,o=xo.align,a=xo.verticalAlign;var c=n.origin;if(c&&null!=n.rotation){var h=void 0,d=void 0;"center"===c?(h=.5*u.width,d=.5*u.height):(h=fo(c[0],u.width),d=fo(c[1],u.height)),l=!0,r.originX=-r.x+h+(i?0:u.x),r.originY=-r.y+d+(i?0:u.y)}}null!=n.rotation&&(r.rotation=n.rotation);var p=n.offset;p&&(r.x+=p[0],r.y+=p[1],l||(r.originX=-p[0],r.originY=-p[1]));var f=null==n.inside?"string"===typeof n.position&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),v=void 0,y=void 0,m=void 0;f&&this.canBeInsideText()?(v=n.insideFill,y=n.insideStroke,null!=v&&"auto"!==v||(v=this.getInsideTextFill()),null!=y&&"auto"!==y||(y=this.getInsideTextStroke(v),m=!0)):(v=n.outsideFill,y=n.outsideStroke,null!=v&&"auto"!==v||(v=this.getOutsideFill()),null!=y&&"auto"!==y||(y=this.getOutsideStroke(v),m=!0)),v=v||"#000",v===g.fill&&y===g.stroke&&m===g.autoStroke&&o===g.align&&a===g.verticalAlign||(s=!0,g.fill=v,g.stroke=y,g.autoStroke=m,g.align=o,g.verticalAlign=a,t.setDefaultTextStyle(g)),t.__dirty|=Zt,s&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(e){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Ir:Cr},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n="string"===typeof t&&Jn(t);n||(n=[255,255,255,1]);for(var i=n[3],r=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(r?0:255)*(1-i);return n[3]=1,ai(n,"rgba")},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){"textConfig"===e?this.setTextConfig(t):"textContent"===e?this.setTextContent(t):"clipPath"===e?this.setClipPath(t):"extra"===e?(this.extra=this.extra||{},B(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if("string"===typeof e)this.attrKV(e,t);else if(ie(e))for(var n=e,i=Y(n),r=0;r0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState(vo,!1,e)},e.prototype.useState=function(e,t,n,i){var r=e===vo,o=this.hasState();if(o||!r){var a=this.currentStates,s=this.stateTransition;if(!(z(a,e)>=0)||!t&&1!==a.length){var l;if(this.stateProxy&&!r&&(l=this.stateProxy(e)),l||(l=this.states&&this.states[e]),l||r){r||this.saveCurrentToNormalState(l);var u=!!(l&&l.hoverLayer||i);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,l,this._normalState,t,!n&&!this.__inHover&&s&&s.duration>0,s);var c=this._textContent,h=this._textGuide;return c&&c.useState(e,t,n,u),h&&h.useState(e,t,n,u),r?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Zt),l}O("State "+e+" not exists.")}}},e.prototype.useStates=function(e,t,n){if(e.length){var i=[],r=this.currentStates,o=e.length,a=o===r.length;if(a)for(var s=0;s0,p);var f=this._textContent,g=this._textGuide;f&&f.useStates(e,t,h),g&&g.useStates(e,t,h),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Zt)}else this.clearStates()},e.prototype._updateAnimationTargets=function(){for(var e=0;e=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var i=this.currentStates.slice(),r=z(i,e),o=z(i,t)>=0;r>=0?o?i.splice(r,1):i[r]=t:n&&!o&&i.push(t),this.useStates(i)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t,n={},i=0;i=0&&t.splice(n,1)})),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,i=n.length,r=[],o=0;o0&&n.during&&o[0].during((function(e,t){n.during(t)}));for(var d=0;d0||r.force&&!a.length){var M=void 0,C=void 0,I=void 0;if(s){C={},d&&(M={});for(_=0;_=0&&(n.splice(i,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=z(this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,i=n[t];if(e&&e!==this&&e.parent!==this&&e!==i){n[t]=e,i.parent=null;var r=this.__zr;r&&i.removeSelfFromZr(r),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,i=z(n,e);return i<0||(n.splice(i,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh()),this},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;n0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},e.prototype.resize=function(e){e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},e.prototype.clearAnimation=function(){this.animation.clear()},e.prototype.getWidth=function(){return this.painter.getWidth()},e.prototype.getHeight=function(){return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this.handler.off(e,t)},e.prototype.trigger=function(e,t){this.handler.trigger(e,t)},e.prototype.clear=function(){for(var e=this.storage.getRoots(),t=0;t0){if(e<=r)return a;if(e>=o)return s}else{if(e>=r)return a;if(e<=o)return s}else{if(e===r)return a;if(e===o)return s}return(e-r)/l*u+a}function Go(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return ee(e)?Ho(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):null==e?NaN:+e}function Wo(e,t,n){return null==t&&(t=10),t=Math.min(Math.max(0,t),Vo),e=(+e).toFixed(t),n?e:+e}function Uo(e){return e.sort((function(e,t){return e-t})),e}function jo(e){if(e=+e,isNaN(e))return 0;if(e>1e-14)for(var t=1,n=0;n<15;n++,t*=10)if(Math.round(e*t)/t===e)return n;return Zo(e)}function Zo(e){var t=e.toString().toLowerCase(),n=t.indexOf("e"),i=n>0?+t.slice(n+1):0,r=n>0?n:t.length,o=t.indexOf("."),a=o<0?0:r-1-o;return Math.max(0,a-i)}function Yo(e,t){var n=Math.log,i=Math.LN10,r=Math.floor(n(e[1]-e[0])/i),o=Math.round(n(Math.abs(t[1]-t[0]))/i),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20}function $o(e,t,n){if(!e[t])return 0;var i=U(e,(function(e,t){return e+(isNaN(t)?0:t)}),0);if(0===i)return 0;var r=Math.pow(10,n),o=W(e,(function(e){return(isNaN(e)?0:e)/i*r*100})),a=100*r,s=W(o,(function(e){return Math.floor(e)})),l=U(s,(function(e,t){return e+t}),0),u=W(o,(function(e,t){return e-s[t]}));while(lc&&(c=u[d],h=d);++s[h],u[h]=0,++l}return s[t]/r}function Xo(e,t){var n=Math.max(jo(e),jo(t)),i=e+t;return n>Vo?i:Wo(i,n)}var Ko=9007199254740991;function Jo(e){var t=2*Math.PI;return(e%t+t)%t}function Qo(e){return e>-zo&&e=10&&t++,t}function ra(e,t){var n,i=ia(e),r=Math.pow(10,i),o=e/r;return n=t?o<1.5?1:o<2.5?2:o<4?3:o<7?5:10:o<1?1:o<2?2:o<3?3:o<5?5:10,e=n*r,i>=-20?+e.toFixed(i<0?-i:0):e}function oa(e,t){var n=(e.length-1)*t+1,i=Math.floor(n),r=+e[i-1],o=n-i;return o?r+o*(e[i]-r):r}function aa(e){e.sort((function(e,t){return s(e,t,0)?-1:1}));for(var t=-1/0,n=1,i=0;i=0||r&&z(r,s)<0)){var l=n.getShallow(s,t);null!=l&&(o[e[a][0]]=l)}}return o}}var cs=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],hs=us(cs),ds=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return hs(this,e,t)},e}(),ps=new Fn(50);function fs(e){if("string"===typeof e){var t=ps.get(e);return t&&t.image}return e}function gs(e,t,n,i,r){if(e){if("string"===typeof e){if(t&&t.__zrImageSrc===e||!n)return t;var o=ps.get(e),a={hostEl:n,cb:i,cbPayload:r};return o?(t=o.image,!ys(t)&&o.pending.push(a)):(t=x.loadImage(e,vs,vs),t.__zrImageSrc=e,ps.put(e,t.__cachedImgObj={image:t,pending:[a]})),t}return e}return t}function vs(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=a;l++)s-=a;var u=so(n,t);return u>s&&(n="",u=0),s=e-u,r.ellipsis=n,r.ellipsisWidth=u,r.contentWidth=s,r.containerWidth=e,r}function bs(e,t){var n=t.containerWidth,i=t.font,r=t.contentWidth;if(!n)return"";var o=so(e,i);if(o<=n)return e;for(var a=0;;a++){if(o<=r||a>=t.maxIterations){e+=t.ellipsis;break}var s=0===a?ws(e,r,t.ascCharWidth,t.cnCharWidth):o>0?Math.floor(e.length*r/o):0;e=e.substr(0,s),o=so(e,i)}return""===e&&(e=t.placeholder),e}function ws(e,t,n,i){for(var r=0,o=0,a=e.length;op&&c){var f=Math.floor(p/l);n=n.slice(0,f)}if(e&&a&&null!=h)for(var g=_s(h,o,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),v=0;vl&&ks(n,e.substring(l,u),t,s),ks(n,i[2],t,s,i[1]),l=ms.lastIndex}lo){b>0?(m.tokens=m.tokens.slice(0,b),v(m,_,x),n.lines=n.lines.slice(0,y+1)):n.lines=n.lines.slice(0,y);break e}var k=S.width,A=null==k||"auto"===k;if("string"===typeof k&&"%"===k.charAt(k.length-1))w.percentWidth=k,c.push(w),w.contentWidth=so(w.text,I);else{if(A){var D=S.backgroundColor,L=D&&D.image;L&&(L=fs(L),ys(L)&&(w.width=Math.max(w.width,L.width*T/L.height)))}var P=f&&null!=r?r-_:null;null!=P&&P0&&f+i.accumWidth>i.width&&(o=t.split("\n"),h=!0),i.accumWidth=f}else{var g=Ps(t,c,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+p,a=g.linesWidths,o=g.lines}}else o=t.split("\n");for(var v=0;v=33&&t<=383}var Ds=U(",&?/;] ".split(""),(function(e,t){return e[t]=!0,e}),{});function Ls(e){return!As(e)||!!Ds[e]}function Ps(e,t,n,i,r){for(var o=[],a=[],s="",l="",u=0,c=0,h=0;hn:r+c+p>n)?c?(s||l)&&(f?(s||(s=l,l="",u=0,c=u),o.push(s),a.push(c-u),l+=d,u+=p,s="",c=u):(l&&(s+=l,l="",u=0),o.push(s),a.push(c),s=d,c=p)):f?(o.push(l),a.push(u),l=d,u=p):(o.push(d),a.push(p)):(c+=p,f?(l+=d,u+=p):(l&&(s+=l,l="",u=0),s+=d))}else l&&(s+=l,c+=u),o.push(s),a.push(c),s="",l="",u=0,c=0}return o.length||s||(s=e,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(c)),1===o.length&&(c+=r),{accumWidth:c,lines:o,linesWidths:a}}var Os="__zr_style_"+Math.round(10*Math.random()),Rs={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Es={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Rs[Os]=!0;var Ns=["z","z2","invisible"],Bs=["invisible"],Fs=function(e){function t(t){return e.call(this,t)||this}return De(t,e),t.prototype._init=function(t){for(var n=Y(t),i=0;i1e-4)return s[0]=e-n,s[1]=t-i,l[0]=e+n,void(l[1]=t+i);if(Ys[0]=js(r)*n+e,Ys[1]=Us(r)*i+t,$s[0]=js(o)*n+e,$s[1]=Us(o)*i+t,u(s,Ys,$s),c(l,Ys,$s),r%=Zs,r<0&&(r+=Zs),o%=Zs,o<0&&(o+=Zs),r>o&&!a?o+=Zs:rr&&(Xs[0]=js(p)*n+e,Xs[1]=Us(p)*i+t,u(s,Xs,s),c(l,Xs,l))}var rl={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},ol=[],al=[],sl=[],ll=[],ul=[],cl=[],hl=Math.min,dl=Math.max,pl=Math.cos,fl=Math.sin,gl=Math.abs,vl=Math.PI,yl=2*vl,ml="undefined"!==typeof Float32Array,xl=[];function _l(e){var t=Math.round(e/vl*1e8)/1e8;return t%2*vl}function bl(e,t){var n=_l(e[0]);n<0&&(n+=yl);var i=n-e[0],r=e[1];r+=i,!t&&r-n>=yl?r=n+yl:t&&n-r>=yl?r=n-yl:!t&&n>r?r=n+(yl-_l(n-r)):t&&n0&&(this._ux=gl(n/Sr/e)||0,this._uy=gl(n/Sr/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(rl.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=gl(e-this._xi),i=gl(t-this._yi),r=n>this._ux||i>this._uy;if(this.addData(rl.L,e,t),this._ctx&&r&&this._ctx.lineTo(e,t),r)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(e,t,n,i,r,o){return this._drawPendingPt(),this.addData(rl.C,e,t,n,i,r,o),this._ctx&&this._ctx.bezierCurveTo(e,t,n,i,r,o),this._xi=r,this._yi=o,this},e.prototype.quadraticCurveTo=function(e,t,n,i){return this._drawPendingPt(),this.addData(rl.Q,e,t,n,i),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,i),this._xi=n,this._yi=i,this},e.prototype.arc=function(e,t,n,i,r,o){this._drawPendingPt(),xl[0]=i,xl[1]=r,bl(xl,o),i=xl[0],r=xl[1];var a=r-i;return this.addData(rl.A,e,t,n,n,i,a,0,o?0:1),this._ctx&&this._ctx.arc(e,t,n,i,r,o),this._xi=pl(r)*n+e,this._yi=fl(r)*n+t,this},e.prototype.arcTo=function(e,t,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,i,r),this},e.prototype.rect=function(e,t,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,i),this.addData(rl.R,e,t,n,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(rl.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){var t=e.length;this.data&&this.data.length===t||!ml||(this.data=new Float32Array(t));for(var n=0;nu.length&&(this._expandData(),u=this.data);for(var c=0;c0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){sl[0]=sl[1]=ul[0]=ul[1]=Number.MAX_VALUE,ll[0]=ll[1]=cl[0]=cl[1]=-Number.MAX_VALUE;var e,t=this.data,n=0,i=0,r=0,o=0;for(e=0;en||gl(m)>i||h===t-1)&&(f=Math.sqrt(y*y+m*m),r=g,o=v);break;case rl.C:var x=e[h++],_=e[h++],b=(g=e[h++],v=e[h++],e[h++]),w=e[h++];f=Sn(r,o,x,_,g,v,b,w,10),r=b,o=w;break;case rl.Q:x=e[h++],_=e[h++],g=e[h++],v=e[h++];f=Dn(r,o,x,_,g,v,10),r=g,o=v;break;case rl.A:var S=e[h++],M=e[h++],C=e[h++],I=e[h++],T=e[h++],k=e[h++],A=k+T;h+=1;e[h++];p&&(a=pl(T)*C+S,s=fl(T)*I+M),f=dl(C,I)*hl(yl,Math.abs(k)),r=pl(A)*C+S,o=fl(A)*I+M;break;case rl.R:a=r=e[h++],s=o=e[h++];var D=e[h++],L=e[h++];f=2*D+2*L;break;case rl.Z:y=a-r,m=s-o;f=Math.sqrt(y*y+m*m),r=a,o=s;break}f>=0&&(l[c++]=f,u+=f)}return this._pathLen=u,u},e.prototype.rebuildPath=function(e,t){var n,i,r,o,a,s,l,u,c,h,d,p=this.data,f=this._ux,g=this._uy,v=this._len,y=t<1,m=0,x=0,_=0;if(!y||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=this._pathLen,c=t*u,c))e:for(var b=0;b0&&(e.lineTo(h,d),_=0),w){case rl.M:n=r=p[b++],i=o=p[b++],e.moveTo(r,o);break;case rl.L:a=p[b++],s=p[b++];var M=gl(a-r),C=gl(s-o);if(M>f||C>g){if(y){var I=l[x++];if(m+I>c){var T=(c-m)/I;e.lineTo(r*(1-T)+a*T,o*(1-T)+s*T);break e}m+=I}e.lineTo(a,s),r=a,o=s,_=0}else{var k=M*M+C*C;k>_&&(h=a,d=s,_=k)}break;case rl.C:var A=p[b++],D=p[b++],L=p[b++],P=p[b++],O=p[b++],R=p[b++];if(y){I=l[x++];if(m+I>c){T=(c-m)/I;bn(r,A,L,O,T,ol),bn(o,D,P,R,T,al),e.bezierCurveTo(ol[1],al[1],ol[2],al[2],ol[3],al[3]);break e}m+=I}e.bezierCurveTo(A,D,L,P,O,R),r=O,o=R;break;case rl.Q:A=p[b++],D=p[b++],L=p[b++],P=p[b++];if(y){I=l[x++];if(m+I>c){T=(c-m)/I;kn(r,A,L,T,ol),kn(o,D,P,T,al),e.quadraticCurveTo(ol[1],al[1],ol[2],al[2]);break e}m+=I}e.quadraticCurveTo(A,D,L,P),r=L,o=P;break;case rl.A:var E=p[b++],N=p[b++],B=p[b++],F=p[b++],z=p[b++],V=p[b++],H=p[b++],q=!p[b++],G=B>F?B:F,W=gl(B-F)>.001,U=z+V,j=!1;if(y){I=l[x++];m+I>c&&(U=z+V*(c-m)/I,j=!0),m+=I}if(W&&e.ellipse?e.ellipse(E,N,B,F,H,z,U,q):e.arc(E,N,G,z,U,q),j)break e;S&&(n=pl(z)*B+E,i=fl(z)*F+N),r=pl(U)*B+E,o=fl(U)*F+N;break;case rl.R:n=r=p[b],i=o=p[b+1],a=p[b++],s=p[b++];var Z=p[b++],Y=p[b++];if(y){I=l[x++];if(m+I>c){var $=c-m;e.moveTo(a,s),e.lineTo(a+hl($,Z),s),$-=Z,$>0&&e.lineTo(a+Z,s+hl($,Y)),$-=Y,$>0&&e.lineTo(a+dl(Z-$,0),s+Y),$-=Z,$>0&&e.lineTo(a,s+dl(Y-$,0));break e}m+=I}e.rect(a,s,Z,Y);break;case rl.Z:if(y){I=l[x++];if(m+I>c){T=(c-m)/I;e.lineTo(r*(1-T)+n*T,o*(1-T)+i*T);break e}m+=I}e.closePath(),r=n,o=i}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.CMD=rl,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();const Sl=wl;function Ml(e,t,n,i,r,o,a){if(0===r)return!1;var s=r,l=0,u=e;if(a>t+s&&a>i+s||ae+s&&o>n+s||ot+h&&c>i+h&&c>o+h&&c>s+h||ce+h&&u>n+h&&u>r+h&&u>a+h||ut+u&&l>i+u&&l>o+u||le+u&&s>n+u&&s>r+u||sn||c+ur&&(r+=Al);var d=Math.atan2(l,s);return d<0&&(d+=Al),d>=i&&d<=r||d+Al>=i&&d+Al<=r}function Ll(e,t,n,i,r,o){if(o>t&&o>i||or?s:0}var Pl=Sl.CMD,Ol=2*Math.PI,Rl=1e-4;function El(e,t){return Math.abs(e-t)t&&u>i&&u>o&&u>s||u1&&Fl(),p=yn(t,i,o,s,Bl[0]),d>1&&(f=yn(t,i,o,s,Bl[1]))),2===d?vt&&s>i&&s>o||s=0&&u<=1){for(var c=0,h=Mn(t,i,o,u),d=0;dn||s<-n)return 0;var l=Math.sqrt(n*n-s*s);Nl[0]=-l,Nl[1]=l;var u=Math.abs(i-r);if(u<1e-4)return 0;if(u>=Ol-1e-4){i=0,r=Ol;var c=o?1:-1;return a>=Nl[0]+e&&a<=Nl[1]+e?c:0}if(i>r){var h=i;i=r,r=h}i<0&&(i+=Ol,r+=Ol);for(var d=0,p=0;p<2;p++){var f=Nl[p];if(f+e>a){var g=Math.atan2(s,f);c=o?1:-1;g<0&&(g=Ol+g),(g>=i&&g<=r||g+Ol>=i&&g+Ol<=r)&&(g>Math.PI/2&&g<1.5*Math.PI&&(c=-c),d+=c)}}return d}function ql(e,t,n,i,r){for(var o,a,s=e.data,l=e.len(),u=0,c=0,h=0,d=0,p=0,f=0;f1&&(n||(u+=Ll(c,h,d,p,i,r))),v&&(c=s[f],h=s[f+1],d=c,p=h),g){case Pl.M:d=s[f++],p=s[f++],c=d,h=p;break;case Pl.L:if(n){if(Ml(c,h,s[f],s[f+1],t,i,r))return!0}else u+=Ll(c,h,s[f],s[f+1],i,r)||0;c=s[f++],h=s[f++];break;case Pl.C:if(n){if(Cl(c,h,s[f++],s[f++],s[f++],s[f++],s[f],s[f+1],t,i,r))return!0}else u+=zl(c,h,s[f++],s[f++],s[f++],s[f++],s[f],s[f+1],i,r)||0;c=s[f++],h=s[f++];break;case Pl.Q:if(n){if(Il(c,h,s[f++],s[f++],s[f],s[f+1],t,i,r))return!0}else u+=Vl(c,h,s[f++],s[f++],s[f],s[f+1],i,r)||0;c=s[f++],h=s[f++];break;case Pl.A:var y=s[f++],m=s[f++],x=s[f++],_=s[f++],b=s[f++],w=s[f++];f+=1;var S=!!(1-s[f++]);o=Math.cos(b)*x+y,a=Math.sin(b)*_+m,v?(d=o,p=a):u+=Ll(c,h,o,a,i,r);var M=(i-y)*_/x+y;if(n){if(Dl(y,m,_,b,b+w,S,t,M,r))return!0}else u+=Hl(y,m,_,b,b+w,S,M,r);c=Math.cos(b+w)*x+y,h=Math.sin(b+w)*_+m;break;case Pl.R:d=c=s[f++],p=h=s[f++];var C=s[f++],I=s[f++];if(o=d+C,a=p+I,n){if(Ml(d,p,o,p,t,i,r)||Ml(o,p,o,a,t,i,r)||Ml(o,a,d,a,t,i,r)||Ml(d,a,d,p,t,i,r))return!0}else u+=Ll(o,p,o,a,i,r),u+=Ll(d,a,d,p,i,r);break;case Pl.Z:if(n){if(Ml(c,h,d,p,t,i,r))return!0}else u+=Ll(c,h,d,p,i,r);c=d,h=p;break}}return n||El(h,p)||(u+=Ll(c,h,d,p,i,r)||0),0!==u}function Gl(e,t,n){return ql(e,0,!1,t,n)}function Wl(e,t,n,i){return ql(e,t,!0,n,i)}var Ul=F({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Rs),jl={style:F({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Es.style)},Zl=Ur.concat(["invisible","culling","z","z2","zlevel","parent"]),Yl=function(e){function t(t){return e.call(this,t)||this}return De(t,e),t.prototype.update=function(){var n=this;e.prototype.update.call(this);var i=this.style;if(i.decal){var r=this._decalEl=this._decalEl||new t;r.buildPath===t.prototype.buildPath&&(r.buildPath=function(e){n.buildPath(e,n.shape)}),r.silent=!0;var o=r.style;for(var a in i)o[a]!==i[a]&&(o[a]=i[a]);o.fill=i.fill?i.decal:null,o.decal=null,o.shadowColor=null,i.strokeFirst&&(o.stroke=null);for(var s=0;s.5?Cr:t>.2?Tr:Ir}if(e)return Ir}return Cr},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(ee(t)){var n=this.__zr,i=!(!n||!n.isDarkMode()),r=si(e,0)0))},t.prototype.hasFill=function(){var e=this.style,t=e.fill;return null!=t&&"none"!==t},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var r=this.path;(i||this.__dirty&$t)&&(r.beginPath(),this.buildPath(r,this.shape,!1),this.pathUpdated()),e=r.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||n){o.copy(e);var a=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),i=this.getBoundingRect(),r=this.style;if(e=n[0],t=n[1],i.contain(e,t)){var o=this.path;if(this.hasStroke()){var a=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),Wl(o,a/s,e,t)))return!0}if(this.hasFill())return Gl(o,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=$t,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():"shape"===e?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){"shape"===t?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||(n=this.shape={}),"string"===typeof e?n[e]=t:B(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&$t)},t.prototype.createStyle=function(e){return Me(Ul,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=B({},this.shape))},t.prototype._applyStateObj=function(t,n,i,r,o,a){e.prototype._applyStateObj.call(this,t,n,i,r,o,a);var s,l=!(n&&r);if(n&&n.shape?o?r?s=n.shape:(s=B({},i.shape),B(s,n.shape)):(s=B({},r?this.shape:i.shape),B(s,n.shape)):l&&(s=i.shape),s)if(o){this.shape=B({},this.shape);for(var u={},c=Y(s),h=0;h0},t.prototype.hasFill=function(){var e=this.style,t=e.fill;return null!=t&&"none"!==t},t.prototype.createStyle=function(e){return Me(Xl,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var t=e.text;null!=t?t+="":t="";var n=uo(t,e.font,e.textAlign,e.textBaseline);if(n.x+=e.x||0,n.y+=e.y||0,this.hasStroke()){var i=e.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},t.initDefaultProps=function(){var e=t.prototype;e.dirtyRectTolerance=10}(),t}(qs);Kl.prototype.type="tspan";const Jl=Kl;var Ql=F({x:0,y:0},Rs),eu={style:F({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Es.style)};function tu(e){return!!(e&&"string"!==typeof e&&e.width&&e.height)}var nu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return De(t,e),t.prototype.createStyle=function(e){return Me(Ql,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(null!=n)return n;var i=tu(t.image)?t.image:this.__image;if(!i)return 0;var r="width"===e?"height":"width",o=t[r];return null==o?i[e]:i[e]/i[r]*o},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return eu},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new oo(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(qs);nu.prototype.type="image";const iu=nu;function ru(e,t){var n,i,r,o,a,s=t.x,l=t.y,u=t.width,c=t.height,h=t.r;u<0&&(s+=u,u=-u),c<0&&(l+=c,c=-c),"number"===typeof h?n=i=r=o=h:h instanceof Array?1===h.length?n=i=r=o=h[0]:2===h.length?(n=r=h[0],i=o=h[1]):3===h.length?(n=h[0],i=o=h[1],r=h[2]):(n=h[0],i=h[1],r=h[2],o=h[3]):n=i=r=o=0,n+i>u&&(a=n+i,n*=u/a,i*=u/a),r+o>u&&(a=r+o,r*=u/a,o*=u/a),i+r>c&&(a=i+r,i*=c/a,r*=c/a),n+o>c&&(a=n+o,n*=c/a,o*=c/a),e.moveTo(s+n,l),e.lineTo(s+u-i,l),0!==i&&e.arc(s+u-i,l+i,i,-Math.PI/2,0),e.lineTo(s+u,l+c-r),0!==r&&e.arc(s+u-r,l+c-r,r,0,Math.PI/2),e.lineTo(s+o,l+c),0!==o&&e.arc(s+o,l+c-o,o,Math.PI/2,Math.PI),e.lineTo(s,l+n),0!==n&&e.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}var ou=Math.round;function au(e,t,n){if(t){var i=t.x1,r=t.x2,o=t.y1,a=t.y2;e.x1=i,e.x2=r,e.y1=o,e.y2=a;var s=n&&n.lineWidth;return s?(ou(2*i)===ou(2*r)&&(e.x1=e.x2=lu(i,s,!0)),ou(2*o)===ou(2*a)&&(e.y1=e.y2=lu(o,s,!0)),e):e}}function su(e,t,n){if(t){var i=t.x,r=t.y,o=t.width,a=t.height;e.x=i,e.y=r,e.width=o,e.height=a;var s=n&&n.lineWidth;return s?(e.x=lu(i,s,!0),e.y=lu(r,s,!0),e.width=Math.max(lu(i+o,s,!1)-e.x,0===o?0:1),e.height=Math.max(lu(r+a,s,!1)-e.y,0===a?0:1),e):e}}function lu(e,t,n){if(!t)return e;var i=ou(2*e);return(i+ou(t))%2===0?i/2:(i+(n?1:-1))/2}var uu=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),cu={},hu=function(e){function t(t){return e.call(this,t)||this}return De(t,e),t.prototype.getDefaultShape=function(){return new uu},t.prototype.buildPath=function(e,t){var n,i,r,o;if(this.subPixelOptimize){var a=su(cu,t,this.style);n=a.x,i=a.y,r=a.width,o=a.height,a.r=t.r,t=a}else n=t.x,i=t.y,r=t.width,o=t.height;t.r?ru(e,t):e.rect(n,i,r,o)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}($l);hu.prototype.type="rect";const du=hu;var pu={fill:"#000"},fu=2,gu={style:F({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Es.style)},vu=function(e){function t(t){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=pu,n.attr(t),n}return De(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t0,T=null!=e.width&&("truncate"===e.overflow||"break"===e.overflow||"breakAll"===e.overflow),k=r.calculatedLineHeight,A=0;A=0&&(k=_[T],"right"===k.align))this._placeToken(k,e,w,g,I,"right",y),S-=k.width,I-=k.width,T--;C+=(i-(C-f)-(v-I)-S)/2;while(M<=T)k=_[M],this._placeToken(k,e,w,g,C+k.width/2,"center",y),C+=k.width,M++;g+=w}},t.prototype._placeToken=function(e,t,n,i,r,o,a){var s=t.rich[e.styleName]||{};s.text=e.text;var l=e.verticalAlign,u=i+n/2;"top"===l?u=i+e.height/2:"bottom"===l&&(u=i+n-e.height/2);var c=!e.isLineHolder&&Au(s);c&&this._renderBackground(s,t,"right"===o?r-e.width:"center"===o?r-e.width/2:r,u-e.height/2,e.width,e.height);var h=!!s.backgroundColor,d=e.textPadding;d&&(r=Tu(r,o,d),u-=e.height/2-d[0]-e.innerHeight/2);var f=this._getOrCreateChild(Jl),g=f.createStyle();f.useStyle(g);var v=this._defaultStyle,y=!1,m=0,x=Iu("fill"in s?s.fill:"fill"in t?t.fill:(y=!0,v.fill)),_=Cu("stroke"in s?s.stroke:"stroke"in t?t.stroke:h||a||v.autoStroke&&!y?null:(m=fu,v.stroke)),b=s.textShadowBlur>0||t.textShadowBlur>0;g.text=e.text,g.x=r,g.y=u,b&&(g.shadowBlur=s.textShadowBlur||t.textShadowBlur||0,g.shadowColor=s.textShadowColor||t.textShadowColor||"transparent",g.shadowOffsetX=s.textShadowOffsetX||t.textShadowOffsetX||0,g.shadowOffsetY=s.textShadowOffsetY||t.textShadowOffsetY||0),g.textAlign=o,g.textBaseline="middle",g.font=e.font||p,g.opacity=pe(s.opacity,t.opacity,1),bu(g,s),_&&(g.lineWidth=pe(s.lineWidth,t.lineWidth,m),g.lineDash=de(s.lineDash,t.lineDash),g.lineDashOffset=t.lineDashOffset||0,g.stroke=_),x&&(g.fill=x);var w=e.contentWidth,S=e.contentHeight;f.setBoundingRect(new oo(co(g.x,w,g.textAlign),ho(g.y,S,g.textBaseline),w,S))},t.prototype._renderBackground=function(e,t,n,i,r,o){var a,s,l=e.backgroundColor,u=e.borderWidth,c=e.borderColor,h=l&&l.image,d=l&&!h,p=e.borderRadius,f=this;if(d||e.lineHeight||u&&c){a=this._getOrCreateChild(du),a.useStyle(a.createStyle()),a.style.fill=null;var g=a.shape;g.x=n,g.y=i,g.width=r,g.height=o,g.r=p,a.dirtyShape()}if(d){var v=a.style;v.fill=l||null,v.fillOpacity=de(e.fillOpacity,1)}else if(h){s=this._getOrCreateChild(iu),s.onload=function(){f.dirtyStyle()};var y=s.style;y.image=l.image,y.x=n,y.y=i,y.width=r,y.height=o}if(u&&c){v=a.style;v.lineWidth=u,v.stroke=c,v.strokeOpacity=de(e.strokeOpacity,1),v.lineDash=e.borderDash,v.lineDashOffset=e.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(v.strokeFirst=!0,v.lineWidth*=2)}var m=(a||s).style;m.shadowBlur=e.shadowBlur||0,m.shadowColor=e.shadowColor||"transparent",m.shadowOffsetX=e.shadowOffsetX||0,m.shadowOffsetY=e.shadowOffsetY||0,m.opacity=pe(e.opacity,t.opacity,1)},t.makeFont=function(e){var t="";return wu(e)&&(t=[e.fontStyle,e.fontWeight,_u(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),t&&ye(t)||e.textFont||e.font},t}(qs),yu={left:!0,right:1,center:1},mu={top:1,bottom:1,middle:1},xu=["fontStyle","fontWeight","fontSize","fontFamily"];function _u(e){return"string"!==typeof e||-1===e.indexOf("px")&&-1===e.indexOf("rem")&&-1===e.indexOf("em")?isNaN(+e)?h+"px":e+"px":e}function bu(e,t){for(var n=0;n=0,o=!1;if(e instanceof $l){var a=Eu(e),s=r&&a.selectFill||a.normalFill,l=r&&a.selectStroke||a.normalStroke;if($u(s)||$u(l)){i=i||{};var u=i.style||{};"inherit"===u.fill?(o=!0,i=B({},i),u=B({},u),u.fill=s):!$u(u.fill)&&$u(s)?(o=!0,i=B({},i),u=B({},u),u.fill=Ku(s)):!$u(u.stroke)&&$u(l)&&(o||(i=B({},i),u=B({},u)),u.stroke=Ku(l)),i.style=u}}if(i&&null==i.z2){o||(i=B({},i));var c=e.z2EmphasisLift;i.z2=e.z2+(null!=c?c:qu)}return i}function cc(e,t,n){if(n&&null==n.z2){n=B({},n);var i=e.z2SelectLift;n.z2=e.z2+(null!=i?i:Gu)}return n}function hc(e,t,n){var i=z(e.currentStates,t)>=0,r=e.style.opacity,o=i?null:lc(e,["opacity"],t,{opacity:1});n=n||{};var a=n.style||{};return null==a.opacity&&(n=B({},n),a=B({opacity:i?r:.1*o.opacity},a),n.style=a),n}function dc(e,t){var n=this.states[e];if(this.style){if("emphasis"===e)return uc(this,e,t,n);if("blur"===e)return hc(this,e,n);if("select"===e)return cc(this,e,n)}return n}function pc(e){e.stateProxy=dc;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=dc),n&&(n.stateProxy=dc)}function fc(e,t){!wc(e,t)&&!e.__highByOuter&&ac(e,Qu)}function gc(e,t){!wc(e,t)&&!e.__highByOuter&&ac(e,ec)}function vc(e,t){e.__highByOuter|=1<<(t||0),ac(e,Qu)}function yc(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&ac(e,ec)}function mc(e){ac(e,tc)}function xc(e){ac(e,nc)}function _c(e){ac(e,ic)}function bc(e){ac(e,rc)}function wc(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Sc(e){var t=e.getModel(),n=[],i=[];t.eachComponent((function(t,r){var o=Nu(r),a="series"===t,s=a?e.getViewOfSeriesModel(r):e.getViewOfComponentModel(r);!a&&i.push(s),o.isBlured&&(s.group.traverse((function(e){nc(e)})),a&&n.push(r)),o.isBlured=!1})),G(i,(function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)}))}function Mc(e,t,n,i){var r=i.getModel();function o(e,t){for(var n=0;n0){var o={dataIndex:r,seriesIndex:e.seriesIndex};null!=i&&(o.dataType=i),t.push(o)}}))})),t}function Oc(e,t,n){Vc(e,!0),ac(e,pc),Nc(e,t,n)}function Rc(e){Vc(e,!1)}function Ec(e,t,n,i){i?Rc(e):Oc(e,t,n)}function Nc(e,t,n){var i=Lu(e);null!=t?(i.focus=t,i.blurScope=n):i.focus&&(i.focus=null)}var Bc=["emphasis","blur","select"],Fc={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function zc(e,t,n,i){n=n||"itemStyle";for(var r=0;r0){var h=c.duration,d=c.delay,p=c.easing,f={duration:h,delay:d||0,easing:p,done:o,force:!!o||!!a,setToFinal:!u,scope:e,during:a};l?t.animateFrom(n,f):t.animateTo(n,f)}else t.stopAnimation(),!l&&t.attr(n),a&&a(1),o&&o()}function Xc(e,t,n,i,r,o){$c("update",e,t,n,i,r,o)}function Kc(e,t,n,i,r,o){$c("enter",e,t,n,i,r,o)}function Jc(e){if(!e.__zr)return!0;for(var t=0;t=0&&n.push(e)})),n}e.topologicalTravel=function(e,t,i,r){if(e.length){var o=n(t),a=o.graph,s=o.noEntryList,l={};G(e,(function(e){l[e]=!0}));while(s.length){var u=s.pop(),c=a[u],h=!!l[u];h&&(i.call(r,u,c.originalDeps.slice()),delete l[u]),G(c.successor,h?p:d)}G(l,(function(){var e="";throw new Error(e)}))}function d(e){a[e].entryCount--,0===a[e].entryCount&&s.push(e)}function p(e){l[e]=!0,d(e)}}}function Fh(e,t){return E(E({},e,!0),t,!0)}const zh={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},Vh={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var Hh="ZH",qh="EN",Gh=qh,Wh={},Uh={},jh=c.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return e.indexOf(Hh)>-1?Hh:Gh}():Gh;function Zh(e,t){e=e.toUpperCase(),Uh[e]=new Oh(t),Wh[e]=t}function Yh(e){if(ee(e)){var t=Wh[e.toUpperCase()]||{};return e===Hh||e===qh?R(t):E(R(t),R(Wh[Gh]),!1)}return E(R(e),R(Wh[Gh]),!1)}function $h(e){return Uh[e]}function Xh(){return Uh[Gh]}Zh(qh,zh),Zh(Hh,Vh);var Kh=1e3,Jh=60*Kh,Qh=60*Jh,ed=24*Qh,td=365*ed,nd={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},id="{yyyy}-{MM}-{dd}",rd={year:"{yyyy}",month:"{yyyy}-{MM}",day:id,hour:id+" "+nd.hour,minute:id+" "+nd.minute,second:id+" "+nd.second,millisecond:nd.none},od=["year","month","day","hour","minute","second","millisecond"],ad=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function sd(e,t){return e+="","0000".substr(0,t-e.length)+e}function ld(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function ud(e){return e===ld(e)}function cd(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function hd(e,t,n,i){var r=ta(e),o=r[gd(n)](),a=r[vd(n)]()+1,s=Math.floor((a-1)/3)+1,l=r[yd(n)](),u=r["get"+(n?"UTC":"")+"Day"](),c=r[md(n)](),h=(c-1)%12+1,d=r[xd(n)](),p=r[_d(n)](),f=r[bd(n)](),g=i instanceof Oh?i:$h(i||jh)||Xh(),v=g.getModel("time"),y=v.get("month"),m=v.get("monthAbbr"),x=v.get("dayOfWeek"),_=v.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,o%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[a-1]).replace(/{MMM}/g,m[a-1]).replace(/{MM}/g,sd(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,sd(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,_[u]).replace(/{e}/g,u+"").replace(/{HH}/g,sd(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,sd(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,sd(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,sd(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,sd(f,3)).replace(/{S}/g,f+"")}function dd(e,t,n,i,r){var o=null;if(ee(n))o=n;else if(Q(n))o=n(e.value,t,{level:e.level});else{var a=B({},nd);if(e.level>0)for(var s=0;s=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if(J(o)){var h=null==e.level?0:e.level>=0?e.level:o.length+e.level;h=Math.min(h,o.length-1),o=o[h]}}return hd(new Date(e.value),o,r,i)}function pd(e,t){var n=ta(e),i=n[vd(t)]()+1,r=n[yd(t)](),o=n[md(t)](),a=n[xd(t)](),s=n[_d(t)](),l=n[bd(t)](),u=0===l,c=u&&0===s,h=c&&0===a,d=h&&0===o,p=d&&1===r,f=p&&1===i;return f?"year":p?"month":d?"day":h?"hour":c?"minute":u?"second":"millisecond"}function fd(e,t,n){var i=ne(e)?ta(e):e;switch(t=t||pd(e,n),t){case"year":return i[gd(n)]();case"half-year":return i[vd(n)]()>=6?1:0;case"quarter":return Math.floor((i[vd(n)]()+1)/4);case"month":return i[vd(n)]();case"day":return i[yd(n)]();case"half-day":return i[md(n)]()/24;case"hour":return i[md(n)]();case"minute":return i[xd(n)]();case"second":return i[_d(n)]();case"millisecond":return i[bd(n)]()}}function gd(e){return e?"getUTCFullYear":"getFullYear"}function vd(e){return e?"getUTCMonth":"getMonth"}function yd(e){return e?"getUTCDate":"getDate"}function md(e){return e?"getUTCHours":"getHours"}function xd(e){return e?"getUTCMinutes":"getMinutes"}function _d(e){return e?"getUTCSeconds":"getSeconds"}function bd(e){return e?"getUTCMilliseconds":"getMilliseconds"}function wd(e){return e?"setUTCFullYear":"setFullYear"}function Sd(e){return e?"setUTCMonth":"setMonth"}function Md(e){return e?"setUTCDate":"setDate"}function Cd(e){return e?"setUTCHours":"setHours"}function Id(e){return e?"setUTCMinutes":"setMinutes"}function Td(e){return e?"setUTCSeconds":"setSeconds"}function kd(e){return e?"setUTCMilliseconds":"setMilliseconds"}function Ad(e){if(!la(e))return ee(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function Dd(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()})),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var Ld=ge,Pd=/([&<>"'])/g,Od={"&":"&","<":"<",">":">",'"':""","'":"'"};function Rd(e){return null==e?"":(e+"").replace(Pd,(function(e,t){return Od[t]}))}function Ed(e,t,n){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function r(e){return e&&ye(e)?e:"-"}function o(e){return!(null==e||isNaN(e)||!isFinite(e))}var a="time"===t,s=e instanceof Date;if(a||s){var l=a?ta(e):e;if(!isNaN(+l))return hd(l,i,n);if(s)return"-"}if("ordinal"===t)return te(e)?r(e):ne(e)&&o(e)?e+"":"-";var u=sa(e);return o(u)?Ad(u):te(e)?r(e):"boolean"===typeof e?e+"":"-"}var Nd=["a","b","c","d","e","f","g"],Bd=function(e,t){return"{"+e+(null==t?"":t)+"}"};function Fd(e,t,n){J(t)||(t=[t]);var i=t.length;if(!i)return"";for(var r=t[0].$vars||[],o=0;o':'';var a=n.markerId||"markerX";return{renderMode:o,content:"{"+a+"|} ",style:"subItem"===r?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function Hd(e,t){return t=t||"transparent",ee(e)?e:ie(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function qd(e,t){if("_blank"===t||"blank"===t){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var Gd=G,Wd=["left","right","top","bottom","width","height"],Ud=[["width","left","right"],["height","top","bottom"]];function jd(e,t,n,i,r){var o=0,a=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;t.eachChild((function(l,u){var c,h,d=l.getBoundingRect(),p=t.childAt(u+1),f=p&&p.getBoundingRect();if("horizontal"===e){var g=d.width+(f?-f.x+d.x:0);c=o+g,c>i||l.newline?(o=0,c=g,a+=s+n,s=d.height):s=Math.max(s,d.height)}else{var v=d.height+(f?-f.y+d.y:0);h=a+v,h>r||l.newline?(o+=s+n,a=0,h=v,s=d.width):s=Math.max(s,d.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===e?o=c+n:a=h+n)}))}var Zd=jd;K(jd,"vertical"),K(jd,"horizontal");function Yd(e,t,n){var i=t.width,r=t.height,o=Go(e.left,i),a=Go(e.top,r),s=Go(e.right,i),l=Go(e.bottom,r);return(isNaN(o)||isNaN(parseFloat(e.left)))&&(o=0),(isNaN(s)||isNaN(parseFloat(e.right)))&&(s=i),(isNaN(a)||isNaN(parseFloat(e.top)))&&(a=0),(isNaN(l)||isNaN(parseFloat(e.bottom)))&&(l=r),n=Ld(n||0),{width:Math.max(s-o-n[1]-n[3],0),height:Math.max(l-a-n[0]-n[2],0)}}function $d(e,t,n){n=Ld(n||0);var i=t.width,r=t.height,o=Go(e.left,i),a=Go(e.top,r),s=Go(e.right,i),l=Go(e.bottom,r),u=Go(e.width,i),c=Go(e.height,r),h=n[2]+n[0],d=n[1]+n[3],p=e.aspect;switch(isNaN(u)&&(u=i-s-d-o),isNaN(c)&&(c=r-l-h-a),null!=p&&(isNaN(u)&&isNaN(c)&&(p>i/r?u=.8*i:c=.8*r),isNaN(u)&&(u=p*c),isNaN(c)&&(c=u/p)),isNaN(o)&&(o=i-s-u-d),isNaN(a)&&(a=r-l-c-h),e.left||e.right){case"center":o=i/2-u/2-n[3];break;case"right":o=i-u-d;break}switch(e.top||e.bottom){case"middle":case"center":a=r/2-c/2-n[0];break;case"bottom":a=r-c-h;break}o=o||0,a=a||0,isNaN(u)&&(u=i-d-o-(s||0)),isNaN(c)&&(c=r-h-a-(l||0));var f=new oo(o+n[3],a+n[0],u,c);return f.margin=n,f}function Xd(e,t,n,i,r,o){var a,s=!r||!r.hv||r.hv[0],l=!r||!r.hv||r.hv[1],u=r&&r.boundingMode||"all";if(o=o||e,o.x=e.x,o.y=e.y,!s&&!l)return!1;if("raw"===u)a="group"===e.type?new oo(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(a=e.getBoundingRect(),e.needLocalTransform()){var c=e.getLocalTransform();a=a.clone(),a.applyTransform(c)}var h=$d(F({width:a.width,height:a.height},t),n,i),d=s?h.x-a.x:0,p=l?h.y-a.y:0;return"raw"===u?(o.x=d,o.y=p):(o.x+=d,o.y+=p),o===e&&e.markRedraw(),!0}function Kd(e,t){return null!=e[Ud[t][0]]||null!=e[Ud[t][1]]&&null!=e[Ud[t][2]]}function Jd(e){var t=e.layoutMode||e.constructor.layoutMode;return ie(t)?t:t?{type:t}:null}function Qd(e,t,n){var i=n&&n.ignoreSize;!J(i)&&(i=[i,i]);var r=a(Ud[0],0),o=a(Ud[1],1);function a(n,r){var o={},a=0,u={},c=0,h=2;if(Gd(n,(function(t){u[t]=e[t]})),Gd(n,(function(e){s(t,e)&&(o[e]=u[e]=t[e]),l(o,e)&&a++,l(u,e)&&c++})),i[r])return l(t,n[1])?u[n[2]]=null:l(t,n[2])&&(u[n[1]]=null),u;if(c!==h&&a){if(a>=h)return o;for(var d=0;d=0;a--)o=E(o,n[a],!0);t.defaultOption=o}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+"Index",i=e+"Id";return Ga(this.ecModel,e,{index:this.get(n,!0),id:this.get(i,!0)},t)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(Oh);function rp(e){var t=[];return G(ip.getClassesByMainType(e),(function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])})),t=W(t,(function(e){return Ja(e).main})),"dataset"!==e&&z(t,"dataset")<=0&&t.unshift("dataset"),t}is(ip,Oh),ls(ip),Nh(ip),Bh(ip,rp);const op=ip;var ap="";"undefined"!==typeof navigator&&(ap=navigator.platform||"");var sp="rgba(0, 0, 0, 0.2)";const lp={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:sp,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:sp,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:sp,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:sp,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:sp,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:sp,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:ap.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var up=we(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),cp="original",hp="arrayRows",dp="objectRows",pp="keyedColumns",fp="typedArray",gp="unknown",vp="column",yp="row",mp={Must:1,Might:2,Not:3},xp=Ba();function _p(e){xp(e).datasetMap=we()}function bp(e,t,n){var i={},r=Sp(t);if(!r||!e)return i;var o,a,s=[],l=[],u=t.ecModel,c=xp(u).datasetMap,h=r.uid+"_"+n.seriesLayoutBy;e=e.slice(),G(e,(function(t,n){var r=ie(t)?t:e[n]={name:t};"ordinal"===r.type&&null==o&&(o=n,a=f(r)),i[r.name]=[]}));var d=c.get(h)||c.set(h,{categoryWayDim:a,valueWayDim:0});function p(e,t,n){for(var i=0;it)return e[i];return e[n-1]}function Fp(e,t,n,i,r,o,a){o=o||e;var s=t(o),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(r))return u[r];var c=null!=a&&i?Bp(i,a):n;if(c=c||n,c&&c.length){var h=c[l];return r&&(u[r]=h),s.paletteIdx=(l+1)%c.length,h}}function zp(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Vp="\0_ec_inner",Hp=1;var qp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.init=function(e,t,n,i,r,o){i=i||{},this.option=null,this._theme=new Oh(i),this._locale=new Oh(r),this._optionManager=o},t.prototype.setOption=function(e,t,n){var i=Zp(t);this._optionManager.setOption(e,n,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,t){return this._resetOption(e,Zp(t))},t.prototype._resetOption=function(e,t){var n=!1,i=this._optionManager;if(!e||"recreate"===e){var r=i.mountOption("recreate"===e);0,this.option&&"recreate"!==e?(this.restoreData(),this._mergeOption(r,t)):Pp(this,r),n=!0}if("timeline"!==e&&"media"!==e||this.restoreData(),!e||"recreate"===e||"timeline"===e){var o=i.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,t))}if(!e||"recreate"===e||"media"===e){var a=i.getMediaOption(this);a.length&&G(a,(function(e){n=!0,this._mergeOption(e,t)}),this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,t){var n=this.option,i=this._componentsMap,r=this._componentsCount,o=[],a=we(),s=t&&t.replaceMergeMainTypeMap;function l(t){var o=Ap(this,t,ga(e[t])),a=i.get(t),l=a?s&&s.get(t)?"replaceMerge":"normalMerge":"replaceAll",u=_a(a,o,l);Oa(u,t,op),n[t]=null,i.set(t,null),r.set(t,0);var c,h=[],d=[],p=0;G(u,(function(e,n){var i=e.existing,r=e.newOption;if(r){var o="series"===t,a=op.getClass(t,e.keyInfo.subType,!o);if(!a)return;if("tooltip"===t){if(c)return void 0;c=!0}if(i&&i.constructor===a)i.name=e.keyInfo.name,i.mergeOption(r,this),i.optionUpdated(r,!1);else{var s=B({componentIndex:n},e.keyInfo);i=new a(r,this,this,s),B(i,s),e.brandNew&&(i.__requireNewView=!0),i.init(r,this,this),i.optionUpdated(null,!0)}}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(h.push(i.option),d.push(i),p++):(h.push(void 0),d.push(void 0))}),this),n[t]=h,i.set(t,d),r.set(t,p),"series"===t&&Dp(this)}_p(this),G(e,(function(e,t){null!=e&&(op.hasClass(t)?t&&(o.push(t),a.set(t,!0)):n[t]=null==n[t]?R(e):E(n[t],e,!0))})),s&&s.each((function(e,t){op.hasClass(t)&&!a.get(t)&&(o.push(t),a.set(t,!0))})),op.topologicalTravel(o,op.getAllClassMainTypes(),l,this),this._seriesIndices||Dp(this)},t.prototype.getOption=function(){var e=R(this.option);return G(e,(function(t,n){if(op.hasClass(n)){for(var i=ga(t),r=i.length,o=!1,a=r-1;a>=0;a--)i[a]&&!La(i[a])?o=!0:(i[a]=null,!o&&r--);i.length=r,e[n]=i}})),delete e[Vp],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var i=n[t||0];if(i)return i;if(null==t)for(var r=0;r=t:"max"===n?e<=t:e===t}function sf(e,t){return e.join(",")===t.join(",")}const lf=nf;var uf=G,cf=ie,hf=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function df(e){var t=e&&e.itemStyle;if(t)for(var n=0,i=hf.length;n=0;g--){var v=e[g];if(s||(d=v.data.rawIndexOf(v.stackedByDimension,h)),d>=0){var y=v.data.getByRawIndex(v.stackResultDimension,d);if("all"===l||"positive"===l&&y>0||"negative"===l&&y<0||"samesign"===l&&p>=0&&y>0||"samesign"===l&&p<=0&&y<0){p=Xo(p,y),f=y;break}}}return i[0]=p,i[1]=f,i}))}))}var Ef,Nf,Bf,Ff,zf,Vf=function(){function e(e){this.data=e.data||(e.sourceFormat===pp?{}:[]),this.sourceFormat=e.sourceFormat||gp,this.seriesLayoutBy=e.seriesLayoutBy||vp,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;nu&&(u=p)}s[0]=l,s[1]=u}},i=function(){return this._data?this._data.length/this._dimSize:0};function r(e){for(var t=0;t=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""}))}},e.prototype.getRawValue=function(e,t){return lg(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function hg(e){var t,n;return ie(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function dg(e){return new pg(e)}var pg=function(){function e(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t,n=this._upstream,i=e&&e.skip;if(this._dirty&&n){var r=this.context;r.data=r.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!i&&(t=this._plan(this.context));var o,a=c(this._modBy),s=this._modDataCount||0,l=c(e&&e.modBy),u=e&&e.modDataCount||0;function c(e){return!(e>=1)&&(e=1),e}a===l&&s===u||(t="reset"),(this._dirty||"reset"===t)&&(this._dirty=!1,o=this._doReset(i)),this._modBy=l,this._modDataCount=u;var h=e&&e.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,p=Math.min(null!=h?this._dueIndex+h:1/0,this._dueEnd);if(!i&&(o||d1&&i>0?s:a}};return o;function a(){return t=e?null:ot},gte:function(e,t){return e>=t}},bg=function(){function e(e,t){if(!ne(t)){var n="";0,vg(n)}this._opFn=_g[e],this._rvalFloat=sa(t)}return e.prototype.evaluate=function(e){return ne(e)?this._opFn(e,this._rvalFloat):this._opFn(sa(e),this._rvalFloat)},e}(),wg=function(){function e(e,t){var n="desc"===e;this._resultLT=n?1:-1,null==t&&(t=n?"min":"max"),this._incomparable="min"===t?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=ne(e)?e:sa(e),i=ne(t)?t:sa(t),r=isNaN(n),o=isNaN(i);if(r&&(n=this._incomparable),o&&(i=this._incomparable),r&&o){var a=ee(e),s=ee(t);a&&(n=s?e:0),s&&(i=a?t:0)}return ni?-this._resultLT:0},e}(),Sg=function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=sa(t)}return e.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(t=sa(e)===this._rvalFloat)}return this._isEQ?t:!t},e}();function Mg(e,t){return"eq"===e||"ne"===e?new Sg("eq"===e,t):Ie(_g,e)?new bg(e,t):null}var Cg=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(e){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(e){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(e,t){},e.prototype.retrieveValueFromItem=function(e,t){},e.prototype.convertValue=function(e,t){return yg(e,t)},e}();function Ig(e,t){var n=new Cg,i=e.data,r=n.sourceFormat=e.sourceFormat,o=e.startIndex,a="";e.seriesLayoutBy!==vp&&vg(a);var s=[],l={},u=e.dimensionsDefine;if(u)G(u,(function(e,t){var n=e.name,i={index:t,name:n,displayName:e.displayName};if(s.push(i),null!=n){var r="";Ie(l,n)&&vg(r),l[n]=i}}));else for(var c=0;c65535?Fg:zg}function Wg(){return[1/0,-1/0]}function Ug(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function jg(e,t,n,i,r){var o=qg[n||"float"];if(r){var a=e[t],s=a&&a.length;if(s!==i){for(var l=new o(i),u=0;ug[1]&&(g[1]=f)}return this._rawCount=this._count=s,{start:a,end:s}},e.prototype._initDataFromProvider=function(e,t,n){for(var i=this._provider,r=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=W(o,(function(e){return e.property})),u=0;uv[1]&&(v[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t=0&&t=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(null!=n&&ne))return o;r=o-1}}return-1},e.prototype.indicesOfNearest=function(e,t,n){var i=this._chunks,r=i[e],o=[];if(!r)return o;null==n&&(n=1/0);for(var a=1/0,s=-1,l=0,u=0,c=this.count();u=0&&s<0)&&(a=p,s=d,l=0),d===s&&(o[l++]=u))}return o.length=l,o},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,i=this._count;if(n===Array){e=new n(i);for(var r=0;r=c&&y<=h||isNaN(y))&&(s[l++]=f),f++}p=!0}else if(2===r){g=d[i[0]];var m=d[i[1]],x=e[i[1]][0],_=e[i[1]][1];for(v=0;v=c&&y<=h||isNaN(y))&&(b>=x&&b<=_||isNaN(b))&&(s[l++]=f),f++}p=!0}}if(!p)if(1===r)for(v=0;v=c&&y<=h||isNaN(y))&&(s[l++]=w)}else for(v=0;ve[C][1])&&(S=!1)}S&&(s[l++]=t.getRawIndex(v))}return lv[1]&&(v[1]=g)}}}},e.prototype.lttbDownSample=function(e,t){var n,i,r,o=this.clone([e],!0),a=o._chunks,s=a[e],l=this.count(),u=0,c=Math.floor(1/t),h=this.getRawIndex(0),d=new(Gg(this._rawCount))(Math.min(2*(Math.ceil(l/c)+2),l));d[u++]=h;for(var p=1;pn&&(n=i,r=x))}I>0&&Iu-p&&(s=u-p,a.length=s);for(var f=0;fc[1]&&(c[1]=v),h[d++]=y}return r._count=d,r._indices=h,r._updateGetRawIdx(),r},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,i=this._chunks,r=0,o=this.count();rs&&(s=c)}return i=[a,s],this._extent[e]=i,i},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],i=this._chunks,r=0;r=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,n,i){return yg(e[i],this._dimensions[i])}Ng={arrayRows:e,objectRows:function(e,t,n,i){return yg(e[t],this._dimensions[i])},keyedColumns:e,original:function(e,t,n,i){var r=e&&(null==e.value?e:e.value);return yg(r instanceof Array?r[i]:r,this._dimensions[i])},typedArray:function(e,t,n,i){return e[i]}}}(),e}();const Yg=Zg;var $g=function(){function e(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var e,t,n=this._sourceHost,i=this._getUpstreamSourceManagers(),r=!!i.length;if(Kg(n)){var o=n,a=void 0,s=void 0,l=void 0;if(r){var u=i[0];u.prepareSource(),l=u.getSource(),a=l.data,s=l.sourceFormat,t=[u._getVersionSign()]}else a=o.get("data",!0),s=oe(a)?fp:cp,t=[];var c=this._getSourceMetaRawOption()||{},h=l&&l.metaRawOption||{},d=de(c.seriesLayoutBy,h.seriesLayoutBy)||null,p=de(c.sourceHeader,h.sourceHeader),f=de(c.dimensions,h.dimensions),g=d!==h.seriesLayoutBy||!!p!==!!h.sourceHeader||f;e=g?[qf(a,{seriesLayoutBy:d,sourceHeader:p,dimensions:f},s)]:[]}else{var v=n;if(r){var y=this._applyTransform(i);e=y.sourceList,t=y.upstreamSignList}else{var m=v.get("source",!0);e=[qf(m,this._getSourceMetaRawOption(),null)],t=[]}}this._setLocalSource(e,t)},e.prototype._applyTransform=function(e){var t,n=this._sourceHost,i=n.get("transform",!0),r=n.get("fromTransformResult",!0);if(null!=r){var o="";1!==e.length&&Jg(o)}var a=[],s=[];return G(e,(function(e){e.prepareSource();var t=e.getSource(r||0),n="";null==r||t||Jg(n),a.push(t),s.push(e._getVersionSign())})),i?t=Og(i,a,{datasetIndex:n.componentIndex}):null!=r&&(t=[Wf(a[0])]),{sourceList:t,upstreamSignList:s}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t1||n>0&&!e.noHeader;return G(e.blocks,(function(e){var n=av(e);n>=t&&(t=n+ +(i&&(!n||rv(e)&&!e.noHeader)))})),t}return 0}function sv(e,t,n,i){var r=t.noHeader,o=cv(av(t)),a=[],s=t.blocks||[];ve(!s||J(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Ie(u,l)){var c=new wg(u[l],null);s.sort((function(e,t){return c.evaluate(e.sortParam,t.sortParam)}))}else"seriesDesc"===l&&s.reverse()}G(s,(function(n,r){var s=t.valueFormatter,l=ov(n)(s?B(B({},e),{valueFormatter:s}):e,n,r>0?o.html:0,i);null!=l&&a.push(l)}));var h="richText"===e.renderMode?a.join(o.richText):hv(a.join(""),r?n:o.html);if(r)return h;var d=Ed(t.header,"ordinal",e.useUTC),p=ev(i,e.renderMode).nameStyle;return"richText"===e.renderMode?fv(e,d,p)+o.richText+h:hv('
'+Rd(d)+"
"+h,n)}function lv(e,t,n,i){var r=e.renderMode,o=t.noName,a=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,c=t.valueFormatter||e.valueFormatter||function(e){return e=J(e)?e:[e],W(e,(function(e,t){return Ed(e,J(p)?p[t]:p,u)}))};if(!o||!a){var h=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",r),d=o?"":Ed(l,"ordinal",u),p=t.valueType,f=a?[]:c(t.value),g=!s||!o,v=!s&&o,y=ev(i,r),m=y.nameStyle,x=y.valueStyle;return"richText"===r?(s?"":h)+(o?"":fv(e,d,m))+(a?"":gv(e,f,g,v,x)):hv((s?"":h)+(o?"":dv(d,!s,m))+(a?"":pv(f,g,v,x)),n)}}function uv(e,t,n,i,r,o){if(e){var a=ov(e),s={useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:t,valueFormatter:e.valueFormatter};return a(s,e,0,o)}}function cv(e){return{html:tv[e],richText:nv[e]}}function hv(e,t){var n='
',i="margin: "+t+"px 0 0";return'
'+e+n+"
"}function dv(e,t,n){var i=t?"margin-left:2px":"";return''+Rd(e)+""}function pv(e,t,n,i){var r=n?"10px":"20px",o=t?"float:right;margin-left:"+r:"";return e=J(e)?e:[e],''+W(e,(function(e){return Rd(e)})).join("  ")+""}function fv(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function gv(e,t,n,i,r){var o=[r],a=i?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(J(t)?t.join(" "):t,o)}function vv(e,t){var n=e.getData().getItemVisual(t,"style"),i=n[e.visualDrawType];return Hd(i)}function yv(e,t){var n=e.get("padding");return null!=n?n:"richText"===t?[8,10]:10}var mv=function(){function e(){this.richTextStyles={},this._nextStyleNameId=ua()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var i="richText"===n?this._generateStyleName():null,r=Vd({color:t,type:e,renderMode:n,markerId:i});return ee(r)?r:(this.richTextStyles[i]=r.style,r.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};J(t)?G(t,(function(e){return B(n,e)})):B(n,t);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+e+"}"},e}();function xv(e){var t,n,i,r,o=e.series,a=e.dataIndex,s=e.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),c=u.length,h=o.getRawValue(a),d=J(h),p=vv(o,a);if(c>1||d&&!c){var f=_v(h,o,a,u,p);t=f.inlineValues,n=f.inlineValueTypes,i=f.blocks,r=f.inlineValues[0]}else if(c){var g=l.getDimensionInfo(u[0]);r=t=lg(l,a,u[0]),n=g.type}else r=t=d?h[0]:h;var v=Da(o),y=v&&o.name||"",m=l.getName(a),x=s?y:m;return iv("section",{header:y,noHeader:s||!v,sortParam:r,blocks:[iv("nameValue",{markerType:"item",markerColor:p,name:x,noName:!ye(x),value:t,valueType:n})].concat(i||[])})}function _v(e,t,n,i,r){var o=t.getData(),a=U(e,(function(e,t,n){var i=o.getDimensionInfo(n);return e||i&&!1!==i.tooltip&&null!=i.displayName}),!1),s=[],l=[],u=[];function c(e,t){var n=o.getDimensionInfo(t);n&&!1!==n.otherDims.tooltip&&(a?u.push(iv("nameValue",{markerType:"subItem",markerColor:r,name:n.displayName,value:e,valueType:n.type})):(s.push(e),l.push(n.type)))}return i.length?G(i,(function(e){c(lg(o,n,e),e)})):G(e,c),{inlineValues:s,inlineValueTypes:l,blocks:u}}var bv=Ba();function wv(e,t){return e.getName(t)||e.getId(t)}var Sv="__universalTransitionEnabled",Mv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return o(t,e),t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=dg({count:Tv,reset:kv}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n);var i=bv(this).sourceManager=new $g(this);i.prepareSource();var r=this.getInitialData(e,n);Dv(r,this),this.dataTask.context.data=r,bv(this).dataBeforeProcessed=r,Cv(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=Jd(this),i=n?ep(e):{},r=this.subType;op.hasClass(r)&&(r+="Series"),E(e,t.getTheme().get(this.subType)),E(e,this.getDefaultOption()),va(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&Qd(e,i,n)},t.prototype.mergeOption=function(e,t){e=E(this.option,e,!0),this.fillDataTextStyle(e.data);var n=Jd(this);n&&Qd(this.option,e,n);var i=bv(this).sourceManager;i.dirty(),i.prepareSource();var r=this.getInitialData(e,t);Dv(r,this),this.dataTask.dirty(),this.dataTask.context.data=r,bv(this).dataBeforeProcessed=r,Cv(this),this._initSelectedMapFromData(r)},t.prototype.fillDataTextStyle=function(e){if(e&&!oe(e))for(var t=["show"],n=0;nthis.getShallow("animationThreshold")&&(t=!1),!!t},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,n){var i=this.ecModel,r=Ep.prototype.getColorFromPalette.call(this,e,t,n);return r||(r=i.getColorFromPalette(e,t,n)),r},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,r=this.getData(t);if("series"===i||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o=0&&n.push(r)}return n},t.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(t);return("all"===n||n[wv(i,e)])&&!i.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Sv])return!0;var e=this.option.universalTransition;return!!e&&(!0===e||e&&e.enabled)},t.prototype._innerSelect=function(e,t){var n,i,r=this.option,o=r.selectedMode,a=t.length;if(o&&a)if("series"===o)r.selectedMap="all";else if("multiple"===o){ie(r.selectedMap)||(r.selectedMap={});for(var s=r.selectedMap,l=0;l0&&this._innerSelect(e,t)}},t.registerClass=function(e){return op.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(op);function Cv(e){var t=e.name;Da(e)||(e.name=Iv(e)||t)}function Iv(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),i=[];return G(n,(function(e){var n=t.getDimensionInfo(e);n.displayName&&i.push(n.displayName)})),i.join(" ")}function Tv(e){return e.model.getRawData().count()}function kv(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),Av}function Av(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Dv(e,t){G(Se(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),(function(n){e.wrapMethod(n,K(Lv,t))}))}function Lv(e,t){var n=Pv(e);return n&&n.setOutputEnd((t||this).count()),t}function Pv(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(e.uid))}return i}}H(Mv,cg),H(Mv,Ep),is(Mv,op);const Ov=Mv;var Rv=function(){function e(){this.group=new Lo,this.uid=Eh("viewComponent")}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,i){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,i){},e.prototype.updateLayout=function(e,t,n,i){},e.prototype.updateVisual=function(e,t,n,i){},e.prototype.toggleBlurSeries=function(e,t,n){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();ts(Rv),ls(Rv);const Ev=Rv;function Nv(){var e=Ba();return function(t){var n=e(t),i=t.pipelineContext,r=!!n.large,o=!!n.progressiveRender,a=n.large=!(!i||!i.large),s=n.progressiveRender=!(!i||!i.progressiveRender);return!(r===a&&o===s)&&"reset"}}var Bv=Sl.CMD,Fv=[[],[],[]],zv=Math.sqrt,Vv=Math.atan2;function Hv(e,t){if(t){var n,i,r,o,a,s,l=e.data,u=e.len(),c=Bv.M,h=Bv.C,d=Bv.L,p=Bv.R,f=Bv.A,g=Bv.Q;for(r=0,o=0;r1&&(a*=qv(f),s*=qv(f));var g=(r===o?-1:1)*qv((a*a*(s*s)-a*a*(p*p)-s*s*(d*d))/(a*a*(p*p)+s*s*(d*d)))||0,v=g*a*p/s,y=g*-s*d/a,m=(e+n)/2+Wv(h)*v-Gv(h)*y,x=(t+i)/2+Gv(h)*v+Wv(h)*y,_=Yv([1,0],[(d-v)/a,(p-y)/s]),b=[(d-v)/a,(p-y)/s],w=[(-1*d-v)/a,(-1*p-y)/s],S=Yv(b,w);if(Zv(b,w)<=-1&&(S=Uv),Zv(b,w)>=1&&(S=0),S<0){var M=Math.round(S/Uv*1e6)/1e6;S=2*Uv+M%2*Uv}c.addData(u,m,x,a,s,_,S,h,o)}var Xv=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Kv=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Jv(e){var t=new Sl;if(!e)return t;var n,i=0,r=0,o=i,a=r,s=Sl.CMD,l=e.match(Xv);if(!l)return t;for(var u=0;uD*D+L*L&&(M=I,C=T),{cx:M,cy:C,x0:-c,y0:-h,x1:M*(r/b-1),y1:C*(r/b-1)}}function Cy(e){var t;if(J(e)){var n=e.length;if(!n)return e;t=1===n?[e[0],e[0],0,0]:2===n?[e[0],e[0],e[1],e[1]]:3===n?e.concat(e[2]):e}else t=[e,e,e,e];return t}function Iy(e,t){var n,i=_y(t.r,0),r=_y(t.r0||0,0),o=i>0,a=r>0;if(o||a){if(o||(i=r,r=0),r>i){var s=i;i=r,r=s}var l=t.startAngle,u=t.endAngle;if(!isNaN(l)&&!isNaN(u)){var c=t.cx,h=t.cy,d=!!t.clockwise,p=my(u-l),f=p>py&&p%py;if(f>wy&&(p=f),i>wy)if(p>py-wy)e.moveTo(c+i*gy(l),h+i*fy(l)),e.arc(c,h,i,l,u,!d),r>wy&&(e.moveTo(c+r*gy(u),h+r*fy(u)),e.arc(c,h,r,u,l,d));else{var g=void 0,v=void 0,y=void 0,m=void 0,x=void 0,_=void 0,b=void 0,w=void 0,S=void 0,M=void 0,C=void 0,I=void 0,T=void 0,k=void 0,A=void 0,D=void 0,L=i*gy(l),P=i*fy(l),O=r*gy(u),R=r*fy(u),E=p>wy;if(E){var N=t.cornerRadius;N&&(n=Cy(N),g=n[0],v=n[1],y=n[2],m=n[3]);var B=my(i-r)/2;if(x=by(B,y),_=by(B,m),b=by(B,g),w=by(B,v),C=S=_y(x,_),I=M=_y(b,w),(S>wy||M>wy)&&(T=i*gy(u),k=i*fy(u),A=r*gy(l),D=r*fy(l),pwy){var U=by(y,C),j=by(m,C),Z=My(A,D,L,P,i,U,d),Y=My(T,k,O,R,i,j,d);e.moveTo(c+Z.cx+Z.x0,h+Z.cy+Z.y0),C0&&e.arc(c+Z.cx,h+Z.cy,U,yy(Z.y0,Z.x0),yy(Z.y1,Z.x1),!d),e.arc(c,h,i,yy(Z.cy+Z.y1,Z.cx+Z.x1),yy(Y.cy+Y.y1,Y.cx+Y.x1),!d),j>0&&e.arc(c+Y.cx,h+Y.cy,j,yy(Y.y1,Y.x1),yy(Y.y0,Y.x0),!d))}else e.moveTo(c+L,h+P),e.arc(c,h,i,l,u,!d);else e.moveTo(c+L,h+P);if(r>wy&&E)if(I>wy){U=by(g,I),j=by(v,I),Z=My(O,R,T,k,r,-j,d),Y=My(L,P,A,D,r,-U,d);e.lineTo(c+Z.cx+Z.x0,h+Z.cy+Z.y0),I0&&e.arc(c+Z.cx,h+Z.cy,j,yy(Z.y0,Z.x0),yy(Z.y1,Z.x1),!d),e.arc(c,h,r,yy(Z.cy+Z.y1,Z.cx+Z.x1),yy(Y.cy+Y.y1,Y.cx+Y.x1),d),U>0&&e.arc(c+Y.cx,h+Y.cy,U,yy(Y.y1,Y.x1),yy(Y.y0,Y.x0),!d))}else e.lineTo(c+O,h+R),e.arc(c,h,r,u,l,d);else e.lineTo(c+O,h+R)}else e.moveTo(c,h);e.closePath()}}}var Ty=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0}return e}(),ky=function(e){function t(t){return e.call(this,t)||this}return De(t,e),t.prototype.getDefaultShape=function(){return new Ty},t.prototype.buildPath=function(e,t){Iy(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}($l);ky.prototype.type="sector";const Ay=ky;var Dy=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),Ly=function(e){function t(t){return e.call(this,t)||this}return De(t,e),t.prototype.getDefaultShape=function(){return new Dy},t.prototype.buildPath=function(e,t){var n=t.cx,i=t.cy,r=2*Math.PI;e.moveTo(n+t.r,i),e.arc(n,i,t.r,0,r,!1),e.moveTo(n+t.r0,i),e.arc(n,i,t.r0,0,r,!0)},t}($l);Ly.prototype.type="ring";const Py=Ly;function Oy(e,t,n,i){var r,o,a,s,l=[],u=[],c=[],h=[];if(i){a=[1/0,1/0],s=[-1/0,-1/0];for(var d=0,p=e.length;d=2){if(i){var o=Oy(r,i,n,t.smoothConstraint);e.moveTo(r[0][0],r[0][1]);for(var a=r.length,s=0;s<(n?a:a-1);s++){var l=o[2*s],u=o[2*s+1],c=r[(s+1)%a];e.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{e.moveTo(r[0][0],r[0][1]);s=1;for(var h=r.length;slm[1]){if(a=!1,r)return a;var u=Math.abs(lm[0]-sm[1]),c=Math.abs(sm[0]-lm[1]);Math.min(u,c)>i.len()&&(uMath.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function Em(e){return!e.isGroup}function Nm(e){return null!=e.shape}function Bm(e,t,n){if(e&&t){var i=r(e);t.traverse((function(e){if(Em(e)&&e.anid){var t=i[e.anid];if(t){var r=o(e);e.attr(o(t)),Xc(e,r,n,Lu(e).dataIndex)}}}))}function r(e){var t={};return e.traverse((function(e){Em(e)&&e.anid&&(t[e.anid]=e)})),t}function o(e){var t={x:e.x,y:e.y,rotation:e.rotation};return Nm(e)&&(t.shape=B({},e.shape)),t}}function Fm(e,t){return W(e,(function(e){var n=e[0];n=vm(n,t.x),n=ym(n,t.x+t.width);var i=e[1];return i=vm(i,t.y),i=ym(i,t.y+t.height),[n,i]}))}function zm(e,t){var n=vm(e.x,t.x),i=ym(e.x+e.width,t.x+t.width),r=vm(e.y,t.y),o=ym(e.y+e.height,t.y+t.height);if(i>=n&&o>=r)return{x:n,y:r,width:i-n,height:o-r}}function Vm(e,t,n){var i=B({rectHover:!0},t),r=i.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return 0===e.indexOf("image://")?(r.image=e.slice(8),F(r,n),new iu(i)):Mm(e.replace("path://",""),i,n,"center")}function Hm(e,t,n,i,r){for(var o=0,a=r[r.length-1];o1)return!1;var v=Gm(p,f,c,h)/d;return!(v<0||v>1)}function Gm(e,t,n,i){return e*i-n*t}function Wm(e){return e<=1e-6&&e>=-1e-6}function Um(e){var t=e.itemTooltipOption,n=e.componentModel,i=e.itemName,r=ee(t)?{formatter:t}:t,o=n.mainType,a=n.componentIndex,s={componentType:o,name:i,$vars:["name"]};s[o+"Index"]=a;var l=e.formatterParamsExtra;l&&G(Y(l),(function(e){Ie(s,e)||(s[e]=l[e],s.$vars.push(e))}));var u=Lu(e.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:i,option:F({content:i,formatterParams:s},r)}}function jm(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function Zm(e,t){if(e)if(J(e))for(var n=0;n=0?h():c=setTimeout(h,-r),l=i};return d.clear=function(){c&&(clearTimeout(c),c=null)},d.debounceNextCall=function(e){s=e},d}function sx(e,t,n,i){var r=e[t];if(r){var o=r[ix]||r,a=r[ox],s=r[rx];if(s!==n||a!==i){if(null==n||!i)return e[t]=o;r=e[t]=ax(o,n,"debounce"===i),r[ix]=o,r[ox]=i,r[rx]=n}return r}}function lx(e,t){var n=e[t];n&&n[ix]&&(n.clear&&n.clear(),e[t]=n[ix])}var ux=Ba(),cx={itemStyle:us(Ah,!0),lineStyle:us(Ih,!0)},hx={lineStyle:"stroke",itemStyle:"fill"};function dx(e,t){var n=e.visualStyleMapper||cx[t];return n||(console.warn("Unkown style type '"+t+"'."),cx.itemStyle)}function px(e,t){var n=e.visualDrawType||hx[t];return n||(console.warn("Unkown style type '"+t+"'."),"fill")}var fx={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),i=e.visualStyleAccessPath||"itemStyle",r=e.getModel(i),o=dx(e,i),a=o(r),s=r.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=px(e,i),u=a[l],c=Q(u)?u:null,h="auto"===a.fill||"auto"===a.stroke;if(!a[l]||c||h){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[l]||(a[l]=d,n.setVisual("colorFromPalette",!0)),a.fill="auto"===a.fill||Q(a.fill)?d:a.fill,a.stroke="auto"===a.stroke||Q(a.stroke)?d:a.stroke}if(n.setVisual("style",a),n.setVisual("drawType",l),!t.isSeriesFiltered(e)&&c)return n.setVisual("colorFromPalette",!1),{dataEach:function(t,n){var i=e.getDataParams(n),r=B({},a);r[l]=c(i),t.setItemVisual(n,"style",r)}}}},gx=new Oh,vx={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData&&!t.isSeriesFiltered(e)){var n=e.getData(),i=e.visualStyleAccessPath||"itemStyle",r=dx(e,i),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[i]){gx.option=n[i];var a=r(gx),s=e.ensureUniqueItemVisual(t,"style");B(s,a),gx.option.decal&&(e.setItemVisual(t,"decal",gx.option.decal),gx.option.decal.dirty=!0),o in a&&e.setItemVisual(t,"colorFromPalette",!1)}}:null}}}},yx={performRawSeries:!0,overallReset:function(e){var t=we();e.eachSeries((function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var i=e.type+"-"+n,r=t.get(i);r||(r={},t.set(i,r)),ux(e).scope=r}})),e.eachSeries((function(t){if(!t.isColorBySeries()&&!e.isSeriesFiltered(t)){var n=t.getRawData(),i={},r=t.getData(),o=ux(t).scope,a=t.visualStyleAccessPath||"itemStyle",s=px(t,a);r.each((function(e){var t=r.getRawIndex(e);i[t]=e})),n.each((function(e){var a=i[e],l=r.getItemVisual(a,"colorFromPalette");if(l){var u=r.ensureUniqueItemVisual(a,"style"),c=n.getName(e)||e+"",h=n.count();u[s]=t.getColorFromPalette(c,o,h)}}))}}))}},mx=Math.PI;function xx(e,t){t=t||{},F(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Lo,i=new du({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(i);var r,o=new Du({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new du({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});return n.add(a),t.showSpinner&&(r=new Jy({shape:{startAngle:-mx/2,endAngle:-mx/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),r.animateShape(!0).when(1e3,{endAngle:3*mx/2}).start("circularInOut"),r.animateShape(!0).when(1e3,{startAngle:3*mx/2}).delay(300).start("circularInOut"),n.add(r)),n.resize=function(){var n=o.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,l=(e.getWidth()-2*s-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:s),u=e.getHeight()/2;t.showSpinner&&r.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),i.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var _x=function(){function e(e,t,n,i){this._stageTaskMap=we(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each((function(e){var t=e.overallTask;t&&t.dirty()}))},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),i=n.context,r=!t&&n.progressiveEnabled&&(!i||i.progressiveRender)&&e.__idxInPipeline>n.blockIndex,o=r?n.step:null,a=i&&i.modDataCount,s=null!=a?Math.ceil(a/o):null;return{step:o,modBy:s,modDataCount:a}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid),i=e.getData(),r=i.count(),o=n.progressiveEnabled&&t.incrementalPrepareRender&&r>=n.threshold,a=e.get("large")&&r>=e.get("largeThreshold"),s="mod"===e.get("progressiveChunkMode")?r:null;e.pipelineContext=n.context={progressiveRender:o,modDataCount:s,large:a}},e.prototype.restorePipelines=function(e){var t=this,n=t._pipelineMap=we();e.eachSeries((function(e){var i=e.getProgressive(),r=e.uid;n.set(r,{id:r,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:i&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),t._pipe(e,e.dataTask)}))},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;G(this._allHandlers,(function(i){var r=e.get(i.uid)||e.set(i.uid,{}),o="";ve(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,r,t,n),i.overallReset&&this._createOverallStageTask(i,r,t,n)}),this)},e.prototype.prepareView=function(e,t,n,i){var r=e.renderTask,o=r.context;o.model=t,o.ecModel=n,o.api=i,r.__block=!e.incrementalPrepareRender,this._pipe(t,r)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,i){i=i||{};var r=!1,o=this;function a(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}G(e,(function(e,s){if(!i.visualType||i.visualType===e.visualType){var l=o._stageTaskMap.get(e.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var h,d=c.agentStubMap;d.each((function(e){a(i,e)&&(e.dirty(),h=!0)})),h&&c.dirty(),o.updatePayload(c,n);var p=o.getPerformArgs(c,i.block);d.each((function(e){e.perform(p)})),c.perform(p)&&(r=!0)}else u&&u.each((function(s,l){a(i,s)&&s.dirty();var u=o.getPerformArgs(s,i.block);u.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(u)&&(r=!0)}))}})),this.unfinished=r||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries((function(e){t=e.dataTask.perform()||t})),this.unfinished=t||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each((function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)}))},e.prototype.updatePayload=function(e,t){"remain"!==t&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,i){var r=this,o=t.seriesTaskMap,a=t.seriesTaskMap=we(),s=e.seriesType,l=e.getTargetSeries;function u(t){var s=t.uid,l=a.set(s,o&&o.get(s)||dg({plan:Ix,reset:Tx,count:Dx}));l.context={model:t,ecModel:n,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:r},r._pipe(t,l)}e.createOnAllSeries?n.eachRawSeries(u):s?n.eachRawSeriesByType(s,u):l&&l(n,i).each(u)},e.prototype._createOverallStageTask=function(e,t,n,i){var r=this,o=t.overallTask=t.overallTask||dg({reset:bx});o.context={ecModel:n,api:i,overallReset:e.overallReset,scheduler:r};var a=o.agentStubMap,s=o.agentStubMap=we(),l=e.seriesType,u=e.getTargetSeries,c=!0,h=!1,d="";function p(e){var t=e.uid,n=s.set(t,a&&a.get(t)||(h=!0,dg({reset:Sx,onDirty:Cx})));n.context={model:e,overallProgress:c},n.agent=o,n.__block=c,r._pipe(e,n)}ve(!e.createOnAllSeries,d),l?n.eachRawSeriesByType(l,p):u?u(n,i).each(p):(c=!1,G(n.getSeries(),p)),h&&o.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=t),i.tail&&i.tail.pipe(t),i.tail=t,t.__idxInPipeline=i.count++,t.__pipeline=i},e.wrapStageHandler=function(e,t){return Q(e)&&(e={overallReset:e,seriesType:Lx(e)}),e.uid=Eh("stageHandler"),t&&(e.visualType=t),e},e}();function bx(e){e.overallReset(e.ecModel,e.api,e.payload)}function Sx(e){return e.overallProgress&&Mx}function Mx(){this.agent.dirty(),this.getDownstream().dirty()}function Cx(){this.agent&&this.agent.dirty()}function Ix(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function Tx(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=ga(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?W(t,(function(e,t){return Ax(t)})):kx}var kx=Ax(0);function Ax(e){return function(t,n){var i=n.data,r=n.resetDefines[e];if(r&&r.dataEach)for(var o=t.start;o0&&c===r.length-u.length){var h=r.slice(0,c);"data"!==h&&(t.mainType=h,t[u.toLowerCase()]=e,s=!0)}}a.hasOwnProperty(r)&&(n[r]=e,s=!0),s||(i[r]=e)}))}return{cptQuery:t,dataQuery:n,otherQuery:i}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,r=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=t.cptQuery,l=t.dataQuery;return u(s,o,"mainType")&&u(s,o,"subType")&&u(s,o,"index","componentIndex")&&u(s,o,"name")&&u(s,o,"id")&&u(l,r,"name")&&u(l,r,"dataIndex")&&u(l,r,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(e,t.otherQuery,i,r));function u(e,t,n,i){return null==e[n]||t[i||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),jx=["symbol","symbolSize","symbolRotate","symbolOffset"],Zx=jx.concat(["symbolKeepAspect"]),Yx={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual("legendIcon",e.legendIcon),e.hasSymbolVisual){for(var i={},r={},o=!1,a=0;a=0&&x_(l)?l:.5;var u=e.createRadialGradient(a,s,0,a,s,l);return u}function w_(e,t,n){for(var i="radial"===t.type?b_(e,t,n):__(e,t,n),r=t.colorStops,o=0;o0?"dashed"===e?[4*t,2*t]:"dotted"===e?[t]:ne(e)?[e]:J(e)?e:null:null}function T_(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&I_(t.lineDash,t.lineWidth),i=t.lineDashOffset;if(n){var r=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;r&&1!==r&&(n=W(n,(function(e){return e/r})),i/=r)}return[n,i]}var k_=new Sl(!0);function A_(e){var t=e.stroke;return!(null==t||"none"===t||!(e.lineWidth>0))}function D_(e){return"string"===typeof e&&"none"!==e}function L_(e){var t=e.fill;return null!=t&&"none"!==t}function P_(e,t){if(null!=t.fillOpacity&&1!==t.fillOpacity){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function O_(e,t){if(null!=t.strokeOpacity&&1!==t.strokeOpacity){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function R_(e,t,n){var i=gs(t.image,t.__image,n);if(ys(i)){var r=e.createPattern(i,t.repeat||"repeat");if("function"===typeof DOMMatrix&&r&&r.setTransform){var o=new DOMMatrix;o.translateSelf(t.x||0,t.y||0),o.rotateSelf(0,0,(t.rotation||0)*ke),o.scaleSelf(t.scaleX||1,t.scaleY||1),r.setTransform(o)}return r}}function E_(e,t,n,i){var r,o=A_(n),a=L_(n),s=n.strokePercent,l=s<1,u=!t.path;t.silent&&!l||!u||t.createPathProxy();var c=t.path||k_,h=t.__dirty;if(!i){var d=n.fill,p=n.stroke,f=a&&!!d.colorStops,g=o&&!!p.colorStops,v=a&&!!d.image,y=o&&!!p.image,m=void 0,x=void 0,_=void 0,b=void 0,w=void 0;(f||g)&&(w=t.getBoundingRect()),f&&(m=h?w_(e,d,w):t.__canvasFillGradient,t.__canvasFillGradient=m),g&&(x=h?w_(e,p,w):t.__canvasStrokeGradient,t.__canvasStrokeGradient=x),v&&(_=h||!t.__canvasFillPattern?R_(e,d,t):t.__canvasFillPattern,t.__canvasFillPattern=_),y&&(b=h||!t.__canvasStrokePattern?R_(e,p,t):t.__canvasStrokePattern,t.__canvasStrokePattern=_),f?e.fillStyle=m:v&&(_?e.fillStyle=_:a=!1),g?e.strokeStyle=x:y&&(b?e.strokeStyle=b:o=!1)}var S,M,C=t.getGlobalScale();c.setScale(C[0],C[1],t.segmentIgnoreThreshold),e.setLineDash&&n.lineDash&&(r=T_(t),S=r[0],M=r[1]);var I=!0;(u||h&$t)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),I=!1),c.reset(),t.buildPath(c,t.shape,i),c.toStatic(),t.pathUpdated()),I&&c.rebuildPath(e,l?s:1),S&&(e.setLineDash(S),e.lineDashOffset=M),i||(n.strokeFirst?(o&&O_(e,n),a&&P_(e,n)):(a&&P_(e,n),o&&O_(e,n))),S&&e.setLineDash([])}function N_(e,t,n){var i=t.__image=gs(n.image,t.__image,t,t.onload);if(i&&ys(i)){var r=n.x||0,o=n.y||0,a=t.getWidth(),s=t.getHeight(),l=i.width/i.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=i.width,s=i.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;e.drawImage(i,u,c,n.sWidth,n.sHeight,r,o,a,s)}else if(n.sx&&n.sy){u=n.sx,c=n.sy;var h=a-u,d=s-c;e.drawImage(i,u,c,h,d,r,o,a,s)}else e.drawImage(i,r,o,a,s)}}function B_(e,t,n){var i,r=n.text;if(null!=r&&(r+=""),r){e.font=n.font||p,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var o=void 0,a=void 0;e.setLineDash&&n.lineDash&&(i=T_(t),o=i[0],a=i[1]),o&&(e.setLineDash(o),e.lineDashOffset=a),n.strokeFirst?(A_(n)&&e.strokeText(r,n.x,n.y),L_(n)&&e.fillText(r,n.x,n.y)):(L_(n)&&e.fillText(r,n.x,n.y),A_(n)&&e.strokeText(r,n.x,n.y)),o&&e.setLineDash([])}}var F_=["shadowBlur","shadowOffsetX","shadowOffsetY"],z_=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function V_(e,t,n,i,r){var o=!1;if(!i&&(n=n||{},t===n))return!1;if(i||t.opacity!==n.opacity){K_(e,r),o=!0;var a=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(a)?Rs.opacity:a}(i||t.blend!==n.blend)&&(o||(K_(e,r),o=!0),e.globalCompositeOperation=t.blend||Rs.blend);for(var s=0;s0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,t,n){if(!this[Eb])if(this._disposed)gw(this.id);else{var i,r,o;if(ie(t)&&(n=t.lazyUpdate,i=t.silent,r=t.replaceMerge,o=t.transition,t=t.notMerge),this[Eb]=!0,!this._model||t){var a=new lf(this._api),s=this._theme,l=this._model=new Yp;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(e,{replaceMerge:r},xw);var u={seriesTransition:o,optionChanged:!0};if(n)this[Nb]={silent:i,updateParams:u},this[Eb]=!1,this.getZr().wakeUp();else{try{jb(this),$b.update.call(this,null,u)}catch(wy){throw this[Nb]=null,this[Eb]=!1,wy}this._ssr||this._zr.flush(),this[Nb]=null,this[Eb]=!1,Qb.call(this,i),ew.call(this,i)}}},t.prototype.setTheme=function(){gg("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||yb&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var t=this._zr.painter;return t.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var t=this._zr.painter;return t.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(c.svgSupported){var e=this._zr,t=e.storage.getDisplayList();return G(t,(function(e){e.stopAnimation(null,!0)})),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(!this._disposed){e=e||{};var t=e.excludeComponents,n=this._model,i=[],r=this;G(t,(function(e){n.eachComponent({mainType:e},(function(e){var t=r._componentsMap[e.__viewId];t.group.ignore||(i.push(t),t.group.ignore=!0)}))}));var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return G(i,(function(e){e.group.ignore=!1})),o}gw(this.id)},t.prototype.getConnectedDataURL=function(e){if(!this._disposed){var t="svg"===e.type,n=this.group,i=Math.min,r=Math.max,o=1/0;if(Mw[n]){var a=o,s=o,l=-o,u=-o,c=[],h=e&&e.pixelRatio||this.getDevicePixelRatio();G(Sw,(function(o,h){if(o.group===n){var d=t?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas(R(e)),p=o.getDom().getBoundingClientRect();a=i(p.left,a),s=i(p.top,s),l=r(p.right,l),u=r(p.bottom,u),c.push({dom:d,left:p.left,top:p.top})}})),a*=h,s*=h,l*=h,u*=h;var d=l-a,p=u-s,f=x.createCanvas(),g=Bo(f,{renderer:t?"svg":"canvas"});if(g.resize({width:d,height:p}),t){var v="";return G(c,(function(e){var t=e.left-a,n=e.top-s;v+=''+e.dom+""})),g.painter.getSvgRoot().innerHTML=v,e.connectedBackgroundColor&&g.painter.setBackgroundColor(e.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}return e.connectedBackgroundColor&&g.add(new du({shape:{x:0,y:0,width:d,height:p},style:{fill:e.connectedBackgroundColor}})),G(c,(function(e){var t=new iu({style:{x:e.left*h-a,y:e.top*h-s,image:e.dom}});g.add(t)})),g.refreshImmediately(),f.toDataURL("image/"+(e&&e.type||"png"))}return this.getDataURL(e)}gw(this.id)},t.prototype.convertToPixel=function(e,t){return Xb(this,"convertToPixel",e,t)},t.prototype.convertFromPixel=function(e,t){return Xb(this,"convertFromPixel",e,t)},t.prototype.containPixel=function(e,t){if(!this._disposed){var n,i=this._model,r=za(i,e);return G(r,(function(e,i){i.indexOf("Models")>=0&&G(e,(function(e){var r=e.coordinateSystem;if(r&&r.containPoint)n=n||!!r.containPoint(t);else if("seriesModels"===i){var o=this._chartsMap[e.__viewId];o&&o.containPoint&&(n=n||o.containPoint(t,e))}else 0}),this)}),this),!!n}gw(this.id)},t.prototype.getVisual=function(e,t){var n=this._model,i=za(n,e,{defaultMainType:"series"}),r=i.seriesModel;var o=r.getData(),a=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?o.indexOfRawIndex(i.dataIndex):null;return null!=a?Xx(o,a,t):Kx(o,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;G(fw,(function(t){var n=function(n){var i,r=e.getModel(),o=n.target,a="globalout"===t;if(a?i={}:o&&n_(o,(function(e){var t=Lu(e);if(t&&null!=t.dataIndex){var n=t.dataModel||r.getSeriesByIndex(t.seriesIndex);return i=n&&n.getDataParams(t.dataIndex,t.dataType)||{},!0}if(t.eventData)return i=B({},t.eventData),!0}),!0),i){var s=i.componentType,l=i.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",l=i.seriesIndex);var u=s&&null!=l&&r.getComponent(s,l),c=u&&e["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];0,i.event=n,i.type=t,e._$eventProcessor.eventInfo={targetEl:o,packedEvent:i,model:u,view:c},e.trigger(t,i)}};n.zrEventfulCallAtLast=!0,e._zr.on(t,n,e)})),G(yw,(function(t,n){e._messageCenter.on(n,(function(e){this.trigger(n,e)}),e)})),G(["selectchanged"],(function(t){e._messageCenter.on(t,(function(e){this.trigger(t,e)}),e)})),t_(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed?gw(this.id):this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed)gw(this.id);else{this._disposed=!0;var e=this.getDom();e&&Wa(this.getDom(),Iw,"");var t=this,n=t._api,i=t._model;G(t._componentsViews,(function(e){e.dispose(i,n)})),G(t._chartsViews,(function(e){e.dispose(i,n)})),t._zr.dispose(),t._dom=t._model=t._chartsMap=t._componentsMap=t._chartsViews=t._componentsViews=t._scheduler=t._api=t._zr=t._throttledZrFlush=t._theme=t._coordSysMgr=t._messageCenter=null,delete Sw[t.id]}},t.prototype.resize=function(e){if(!this[Eb])if(this._disposed)gw(this.id);else{this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption("media"),i=e&&e.silent;this[Nb]&&(null==i&&(i=this[Nb].silent),n=!0,this[Nb]=null),this[Eb]=!0;try{n&&jb(this),$b.update.call(this,{type:"resize",animation:B({duration:0},e&&e.animation)})}catch(wy){throw this[Eb]=!1,wy}this[Eb]=!1,Qb.call(this,i),ew.call(this,i)}}},t.prototype.showLoading=function(e,t){if(this._disposed)gw(this.id);else if(ie(e)&&(t=e,e=""),e=e||"default",this.hideLoading(),ww[e]){var n=ww[e](this._api,t),i=this._zr;this._loadingFX=n,i.add(n)}},t.prototype.hideLoading=function(){this._disposed?gw(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t.prototype.makeActionFromEvent=function(e){var t=B({},e);return t.type=yw[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed)gw(this.id);else if(ie(t)||(t={silent:!!t}),vw[e.type]&&this._model)if(this[Eb])this._pendingActions.push(e);else{var n=t.silent;Jb.call(this,e,n);var i=t.flush;i?this._zr.flush():!1!==i&&c.browser.weChat&&this._throttledZrFlush(),Qb.call(this,n),ew.call(this,n)}},t.prototype.updateLabelLayout=function(){pb.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed)gw(this.id);else{var t=e.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(t);0,i.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},t.internalField=function(){function e(e){e.clearColorPalette(),e.eachSeries((function(e){e.clearColorPalette()}))}function t(e){var t=[],n=[],i=!1;if(e.eachComponent((function(e,r){var o=r.get("zlevel")||0,a=r.get("z")||0,s=r.getZLevelKey();i=i||!!s,("series"===e?n:t).push({zlevel:o,z:a,idx:r.componentIndex,type:e,key:s})})),i){var r,o,a=t.concat(n);jt(a,(function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel})),G(a,(function(t){var n=e.getComponent(t.type,t.idx),i=t.zlevel,a=t.key;null!=r&&(i=Math.max(r,i)),a?(i===r&&a!==o&&i++,o=a):o&&(i===r&&i++,o=""),r=i,n.setZLevel(i)}))}}function n(e){for(var t=[],n=e.currentStates,i=0;it.get("hoverLayerThreshold")&&!c.node&&!c.worker&&t.eachSeries((function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered((function(e){e.states.emphasis&&(e.states.emphasis.hoverLayer=!0)}))}}))}function r(e,t){var n=e.get("blendMode")||null;t.eachRendered((function(e){e.isGroup||(e.style.blend=n)}))}function a(e,t){if(!e.preventAutoZ){var n=e.get("z")||0,i=e.get("zlevel")||0;t.eachRendered((function(e){return s(e,n,i,-1/0),!0}))}}function s(e,t,n,i){var r=e.getTextContent(),o=e.getTextGuideLine(),a=e.isGroup;if(a)for(var l=e.childrenRef(),u=0;u0?{duration:o,delay:i.get("delay"),easing:i.get("easing")}:null;t.eachRendered((function(e){if(e.states&&e.states.emphasis){if(Jc(e))return;if(e instanceof $l&&jc(e),e.__dirty){var t=e.prevStates;t&&e.useStates(t)}if(r){e.stateTransition=a;var i=e.getTextContent(),o=e.getTextGuideLine();i&&(i.stateTransition=a),o&&(o.stateTransition=a)}e.__dirty&&n(e)}}))}jb=function(e){var t=e._scheduler;t.restorePipelines(e._model),t.prepareStageTasks(),Zb(e,!0),Zb(e,!1),t.plan()},Zb=function(e,t){for(var n=e._model,i=e._scheduler,r=t?e._componentsViews:e._chartsViews,o=t?e._componentsMap:e._chartsMap,a=e._zr,s=e._api,l=0;l=0)){zw.push(n);var o=Nx.wrapStageHandler(n,r);o.__prio=t,o.__raw=n,e.push(o)}}function Hw(e,t){ww[e]=t}function qw(e,t,n){var i=vb("registerMap");i&&i(e,t,n)}var Gw=Pg;Fw(Ib,fx),Fw(Ab,vx),Fw(Ab,yx),Fw(Ib,Yx),Fw(Ab,$x),Fw(Ob,hb),Dw(Pf),Lw(_b,Of),Hw("default",xx),Ew({type:Wu,event:Wu,update:Wu},Te),Ew({type:Uu,event:Uu,update:Uu},Te),Ew({type:ju,event:ju,update:ju},Te),Ew({type:Zu,event:Zu,update:Zu},Te),Ew({type:Yu,event:Yu,update:Yu},Te),Aw("light",Fx),Aw("dark",Wx);var Ww=[],Uw={registerPreprocessor:Dw,registerProcessor:Lw,registerPostInit:Pw,registerPostUpdate:Ow,registerUpdateLifecycle:Rw,registerAction:Ew,registerCoordinateSystem:Nw,registerLayout:Bw,registerVisual:Fw,registerTransform:Gw,registerLoading:Hw,registerMap:qw,registerImpl:gb,PRIORITY:Rb,ComponentModel:op,ComponentView:Ev,SeriesModel:Ov,ChartView:nx,registerComponentModel:function(e){op.registerClass(e)},registerComponentView:function(e){Ev.registerClass(e)},registerSeriesModel:function(e){Ov.registerClass(e)},registerChartView:function(e){nx.registerClass(e)},registerSubTypeDefaulter:function(e,t){op.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Fo(e,t)}};function jw(e){J(e)?G(e,(function(e){jw(e)})):z(Ww,e)>=0||(Ww.push(e),Q(e)&&(e={install:e}),e.install(Uw))}var Zw=2*Math.PI,Yw=Sl.CMD,$w=["top","right","bottom","left"];function Xw(e,t,n,i,r){var o=n.width,a=n.height;switch(e){case"top":i.set(n.x+o/2,n.y-t),r.set(0,-1);break;case"bottom":i.set(n.x+o/2,n.y+a+t),r.set(0,1);break;case"left":i.set(n.x-t,n.y+a/2),r.set(-1,0);break;case"right":i.set(n.x+o+t,n.y+a/2),r.set(1,0);break}}function Kw(e,t,n,i,r,o,a,s,l){a-=e,s-=t;var u=Math.sqrt(a*a+s*s);a/=u,s/=u;var c=a*n+e,h=s*n+t;if(Math.abs(i-r)%Zw<1e-4)return l[0]=c,l[1]=h,u-n;if(o){var d=i;i=kl(r),r=kl(d)}else i=kl(i),r=kl(r);i>r&&(r+=Zw);var p=Math.atan2(s,a);if(p<0&&(p+=Zw),p>=i&&p<=r||p+Zw>=i&&p+Zw<=r)return l[0]=c,l[1]=h,u-n;var f=n*Math.cos(i)+e,g=n*Math.sin(i)+t,v=n*Math.cos(r)+e,y=n*Math.sin(r)+t,m=(f-a)*(f-a)+(g-s)*(g-s),x=(v-a)*(v-a)+(y-s)*(y-s);return m0){t=t/180*Math.PI,iS.fromArray(e[0]),rS.fromArray(e[1]),oS.fromArray(e[2]),$r.sub(aS,iS,rS),$r.sub(sS,oS,rS);var n=aS.len(),i=sS.len();if(!(n<.001||i<.001)){aS.scale(1/n),sS.scale(1/i);var r=aS.dot(sS),o=Math.cos(t);if(o1&&$r.copy(cS,oS),cS.toArray(e[1])}}}}function dS(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,iS.fromArray(e[0]),rS.fromArray(e[1]),oS.fromArray(e[2]),$r.sub(aS,rS,iS),$r.sub(sS,oS,rS);var i=aS.len(),r=sS.len();if(!(i<.001||r<.001)){aS.scale(1/i),sS.scale(1/r);var o=aS.dot(t),a=Math.cos(n);if(o=l)$r.copy(cS,oS);else{cS.scaleAndAdd(sS,s/Math.tan(Math.PI/2-c));var h=oS.x!==rS.x?(cS.x-rS.x)/(oS.x-rS.x):(cS.y-rS.y)/(oS.y-rS.y);if(isNaN(h))return;h<0?$r.copy(cS,rS):h>1&&$r.copy(cS,oS)}cS.toArray(e[1])}}}}function pS(e,t,n,i){var r="normal"===n,o=r?e:e.ensureState(n);o.ignore=t;var a=i.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=i.getModel("lineStyle").getLineStyle();r?e.useStyle(s):o.style=s}function fS(e,t){var n=t.smooth,i=t.points;if(i)if(e.moveTo(i[0][0],i[0][1]),n>0&&i.length>=3){var r=Ge(i[0],i[1]),o=Ge(i[1],i[2]);if(!r||!o)return e.lineTo(i[1][0],i[1][1]),void e.lineTo(i[2][0],i[2][1]);var a=Math.min(r,o)*n,s=je([],i[1],i[0],a/r),l=je([],i[1],i[2],a/o),u=je([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var c=1;c0&&o&&w(-h/a,0,a);var v,y,m=e[0],x=e[a-1];return _(),v<0&&S(-v,.8),y<0&&S(y,.8),_(),b(v,y,1),b(y,v,-1),_(),v<0&&M(-v),y<0&&M(y),u}function _(){v=m.rect[t]-i,y=r-x.rect[t]-x.rect[n]}function b(e,t,n){if(e<0){var i=Math.min(t,-e);if(i>0){w(i*n,0,a);var r=i+e;r<0&&S(-r*n,1)}else S(-e*n,1)}}function w(n,i,r){0!==n&&(u=!0);for(var o=i;o0)for(l=0;l0;l--){d=o[l-1]*h;w(-d,l,a)}}}function M(e){var t=e<0?-1:1;e=Math.abs(e);for(var n=Math.ceil(e/(a-1)),i=0;i0?w(n,0,i+1):w(-n,a-i-1,a),e-=n,e<=0)return}}function xS(e,t,n,i){return mS(e,"x","width",t,n,i)}function _S(e,t,n,i){return mS(e,"y","height",t,n,i)}function bS(e){var t=[];e.sort((function(e,t){return t.priority-e.priority}));var n=new oo(0,0,0,0);function i(e){if(!e.ignore){var t=e.ensureState("emphasis");null==t.ignore&&(t.ignore=!1)}e.ignore=!0}for(var r=0;r=0&&n.attr(r.oldLayoutSelect),z(c,"emphasis")>=0&&n.attr(r.oldLayoutEmphasis)),Xc(n,l,t,s)}else if(n.attr(l),!mh(n).valueAnimation){var h=de(n.style.opacity,1);n.style.opacity=0,Kc(n,{style:{opacity:h}},t,s)}if(r.oldLayout=l,n.states.select){var d=r.oldLayoutSelect={};kS(d,l,AS),kS(d,n.states.select,AS)}if(n.states.emphasis){var p=r.oldLayoutEmphasis={};kS(p,l,AS),kS(p,n.states.emphasis,AS)}_h(n,s,u,t,t)}if(i&&!i.ignore&&!i.invisible){r=TS(i),o=r.oldLayout;var f={points:i.shape.points};o?(i.attr({shape:o}),Xc(i,{shape:f},t)):(i.setShape(f),i.style.strokePercent=0,Kc(i,{style:{strokePercent:1}},t)),r.oldLayout=f}},e}();const LS=DS;var PS=Ba();function OS(e){e.registerUpdateLifecycle("series:beforeupdate",(function(e,t,n){var i=PS(t).labelManager;i||(i=PS(t).labelManager=new LS),i.clearLabels()})),e.registerUpdateLifecycle("series:layoutlabels",(function(e,t,n){var i=PS(t).labelManager;n.updatedSeries.forEach((function(e){i.addLabelsOfSeries(t.getViewOfSeriesModel(e))})),i.updateLayoutConfig(t),i.layout(t),i.processLabelsOverall()}))}function RS(e,t,n){var i=x.createCanvas(),r=t.getWidth(),o=t.getHeight(),a=i.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=r+"px",a.height=o+"px",i.setAttribute("data-zr-dom-id",e)),i.width=r*n,i.height=o*n,i}jw(OS);var ES=function(e){function t(t,n,i){var r,o=e.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null,i=i||Sr,"string"===typeof t?r=RS(t,n,i):ie(t)&&(r=t,t=r.id),o.id=t,o.dom=r;var a=r.style;return a&&(Ce(r),r.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),o.painter=n,o.dpr=i,o}return De(t,e),t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=RS("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),1!==e&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,t,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var r,o=[],a=this.maxRepaintRectCount,s=!1,l=new oo(0,0,0,0);function u(e){if(e.isFinite()&&!e.isZero())if(0===o.length){var t=new oo(0,0,0,0);t.copy(e),o.push(t)}else{for(var n=!1,i=1/0,r=0,u=0;u=a)}}for(var c=this.__startIndex;c15)break}}n.prevElClipPaths&&c.restore()};if(d)if(0===d.length)s=l.__endIndex;else for(var _=p.dpr,b=0;b0&&e>i[0]){for(s=0;se)break;a=n[i[s]]}if(i.splice(s+1,0,e),n[e]=t,!t.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(t.dom,l.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.__painter=this}},e.prototype.eachLayer=function(e,t){for(var n=this._zlevelList,i=0;i0?zS:0),this._needsManuallyCompositing),u.__builtin__||O("ZLevel "+l+" has been used by unkown layer "+u.id),u!==a&&(u.__used=!0,u.__startIndex!==o&&(u.__dirty=!0),u.__startIndex=o,u.incremental?u.__drawIndex=-1:u.__drawIndex=o,t(o),a=u),i.__dirty&Zt&&!i.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=o))}t(o),this.eachBuiltinLayer((function(e,t){!e.__used&&e.getElementCount()>0&&(e.__dirty=!0,e.__startIndex=e.__endIndex=e.__drawIndex=0),e.__dirty&&e.__drawIndex<0&&(e.__drawIndex=e.__startIndex)}))},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(e){e.clear()},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e,G(this._layers,(function(e){e.setUnpainted()}))},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?E(n[e],t,!0):n[e]=t;for(var i=0;i=$S:-l>=$S),d=l>0?l%$S:l%$S+$S,p=!1;p=!!h||!hi(c)&&d>=YS===!!u;var f=e+n*ZS(o),g=t+i*jS(o);this._start&&this._add("M",f,g);var v=Math.round(r*XS);if(h){var y=1/this._p,m=(u?1:-1)*($S-y);this._add("A",n,i,v,1,+u,e+n*ZS(o+m),t+i*jS(o+m)),y>.01&&this._add("A",n,i,v,0,+u,f,g)}else{var x=e+n*ZS(a),_=t+i*jS(a);this._add("A",n,i,v,+p,+u,x,_)}},e.prototype.rect=function(e,t,n,i){this._add("M",e,t),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(e,t,n,i,r,o,a,s,l){for(var u=[],c=this._p,h=1;h"}function pM(e){return""}function fM(e,t){t=t||{};var n=t.newline?"\n":"";function i(e){var t=e.children,r=e.tag,o=e.attrs;return dM(r,o)+(e.text||"")+(t?""+n+W(t,(function(e){return i(e)})).join(n)+n:"")+pM(r)}return i(e)}function gM(e,t,n){n=n||{};var i=n.newline?"\n":"",r=" {"+i,o=i+"}",a=W(Y(e),(function(t){return t+r+W(Y(e[t]),(function(n){return n+":"+e[t][n]+";"})).join(i)+o})).join(i),s=W(Y(t),(function(e){return"@keyframes "+e+r+W(Y(t[e]),(function(n){return n+r+W(Y(t[e][n]),(function(i){var r=t[e][n][i];return"d"===i&&(r='path("'+r+'")'),i+":"+r+";"})).join(i)+o})).join(i)+o})).join(i);return a||s?[""].join(i):""}function vM(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function yM(e,t,n,i){return hM("svg","root",{width:e,height:t,xmlns:aM,"xmlns:xlink":sM,version:"1.1",baseProfile:"full",viewBox:!!i&&"0 0 "+e+" "+t},n)}var mM={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},xM="transform-origin";function _M(e,t,n){var i=B({},e.shape);B(i,t),e.buildPath(n,i);var r=new JS;return r.reset(Ii(e)),n.rebuildPath(r,1),r.generateStr(),r.getStr()}function bM(e,t){var n=t.originX,i=t.originY;(n||i)&&(e[xM]=n+"px "+i+"px")}var wM={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function SM(e,t){var n=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function MM(e,t,n){var i,r,o=e.shape.paths,a={};if(G(o,(function(e){var t=vM(n.zrId);t.animation=!0,IM(e,{},t,!0);var o=t.cssAnims,s=t.cssNodes,l=Y(o),u=l.length;if(u){r=l[u-1];var c=o[r];for(var h in c){var d=c[h];a[h]=a[h]||{d:""},a[h].d+=d.d||""}for(var p in s){var f=s[p].animation;f.indexOf(r)>=0&&(i=f)}}})),i){t.d=!1;var s=SM(a,n);return i.replace(r,s)}}function CM(e){return ee(e)?mM[e]?"cubic-bezier("+mM[e]+")":Pn(e)?e:"":""}function IM(e,t,n,i){var r=e.animators,o=r.length,a=[];if(e instanceof em){var s=MM(e,t,n);if(s)a.push(s);else if(!o)return}else if(!o)return;for(var l={},u=0;u0})).length){var A=SM(c,n);return A+" "+r[0]+" both"}}for(var v in l){s=g(l[v]);s&&a.push(s)}if(a.length){var y=n.zrId+"-cls-"+n.cssClassIdx++;n.cssNodes["."+y]={animation:a.join(",")},t["class"]=y}}var TM=Math.round;function kM(e){return e&&ee(e.src)}function AM(e){return e&&Q(e.toDataURL)}function DM(e,t,n,i){oM((function(r,o){var a="fill"===r||"stroke"===r;a&&Mi(o)?WM(t,e,r,i):a&&bi(o)?UM(n,e,r,i):e[r]=o}),t,n,!1),GM(n,e,i)}function LM(e){return hi(e[0]-1)&&hi(e[1])&&hi(e[2])&&hi(e[3]-1)}function PM(e){return hi(e[4])&&hi(e[5])}function OM(e,t,n){if(t&&(!PM(t)||!LM(t))){var i=n?10:1e4;e.transform=LM(t)?"translate("+TM(t[4]*i)/i+" "+TM(t[5]*i)/i+")":fi(t)}}function RM(e,t,n){for(var i=e.points,r=[],o=0;ou?(a=null==n[d+1]?null:n[d+1].elm,lC(e,a,n,l,d)):uC(e,t,s,u))}function dC(e,t){var n=t.elm=e.elm,i=e.children,r=t.children;e!==t&&(cC(e,t),iC(t.text)?rC(i)&&rC(r)?i!==r&&hC(n,i,r):rC(r)?(rC(e.text)&&QM(n,""),lC(n,null,r,0,r.length-1)):rC(i)?uC(n,i,0,i.length-1):rC(e.text)&&QM(n,""):e.text!==t.text&&(rC(i)&&uC(n,i,0,i.length-1),QM(n,t.text)))}function pC(e,t){if(aC(e,t))dC(e,t);else{var n=e.elm,i=KM(n);sC(t),null!==i&&(YM(i,t.elm,JM(n)),uC(i,[e],0,0))}return t}var fC=0,gC=function(){function e(e,t,n){if(this.type="svg",this.refreshHover=vC("refreshHover"),this.configLayer=vC("configLayer"),this.storage=t,this._opts=n=B({},n),this.root=e,this._id="zr"+fC++,this._oldVNode=yM(n.width,n.height),e&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var r=this._svgDom=this._oldVNode.elm=cM("svg");cC(null,this._oldVNode),i.appendChild(r),e.appendChild(i)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",pC(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return qM(e,vM(this._id))},e.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),n=this._backgroundColor,i=this._width,r=this._height,o=vM(this._id);o.animation=e.animation,o.willUpdate=e.willUpdate,o.compress=e.compress;var a=[];if(n&&"none"!==n){var s=ui(n),l=s.color,u=s.opacity;this._bgVNode=hM("rect","bg",{width:i,height:r,x:"0",y:"0",id:"0",fill:l,"fill-opacity":u}),a.push(this._bgVNode)}else this._bgVNode=null;var c=e.compress?null:this._mainVNode=hM("g","main",{},[]);this._paintList(t,o,c?c.children:a),c&&a.push(c);var h=W(Y(o.defs),(function(e){return o.defs[e]}));if(h.length&&a.push(hM("defs","defs",{},h)),e.animation){var d=gM(o.cssNodes,o.cssAnims,{newline:!0});if(d){var p=hM("style","stl",{},[],d);a.push(p)}}return yM(i,r,a,e.useViewBox)},e.prototype.renderToString=function(e){return e=e||{},fM(this.renderToVNode({animation:de(e.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:de(e.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e;var t=this._bgVNode;if(t&&t.elm){var n=ui(e),i=n.color,r=n.opacity;t.elm.setAttribute("fill",i),r<1&&t.elm.setAttribute("fill-opacity",r)}},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(e,t,n){for(var i,r,o=e.length,a=[],s=0,l=0,u=0;u=0;f--)if(h&&r&&h[f]===r[f])break;for(var g=p-1;g>f;g--)s--,i=a[s-1];for(var v=f+1;v1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(r,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},i={},r=[],o=[];this._initIndexMap(e,n,r,"_oldKeyGetter"),this._initIndexMap(t,i,o,"_newKeyGetter");for(var a=0;a1&&1===h)this._updateManyToOne&&this._updateManyToOne(u,l),i[s]=null;else if(1===c&&h>1)this._updateOneToMany&&this._updateOneToMany(u,l),i[s]=null;else if(1===c&&1===h)this._update&&this._update(u,l),i[s]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(u,l),i[s]=null;else if(c>1)for(var d=0;d1)for(var a=0;a30}var BC,FC,zC,VC,HC,qC,GC,WC=ie,UC=W,jC="undefined"===typeof Int32Array?Array:Int32Array,ZC="e\0\0",YC=-1,$C=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],XC=["_approximateExtent"],KC=function(){function e(e,t){var n;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var i=!1;OC(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(i=!0,n=e),n=n||["x","y"];for(var r={},o=[],a={},s=!1,l={},u=0;u=t)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var r=this._nameList,o=this._idList,a=i.getSource().sourceFormat,s=a===cp;if(s&&!i.pure)for(var l=[],u=e;u0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,i=n[e];i||(i=n[e]={});var r=i[t];return null==r&&(r=this.getVisual(t),J(r)?r=r.slice():WC(r)&&(r=B({},r)),i[t]=r),r},e.prototype.setItemVisual=function(e,t,n){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,WC(t)?B(i,t):i[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){WC(e)?B(this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?B(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){var n=this.hostModel&&this.hostModel.seriesIndex;Pu(n,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){G(this._graphicEls,(function(n,i){n&&e&&e.call(t,n,i)}))},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:UC(this.dimensions,this._getDimInfo,this),this.hostModel)),HC(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];Q(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(fe(arguments)))})},e.internalField=function(){BC=function(e){var t=e._invertedIndicesMap;G(t,(function(n,i){var r=e._dimInfos[i],o=r.ordinalMeta,a=e._store;if(o){n=t[i]=new jC(o.categories.length);for(var s=0;s1&&(s+="__ec__"+u),i[t]=s}}}(),e}();const JC=KC;function QC(e,t){Hf(e)||(e=Gf(e)),t=t||{};var n=t.coordDimensions||[],i=t.dimensionsDefine||e.dimensionsDefine||[],r=we(),o=[],a=tI(e,n,i,t.dimensionsCount),s=t.canOmitUnusedDimensions&&NC(a),l=i===e.dimensionsDefine,u=l?EC(e):RC(i),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,a));for(var h=we(c),d=new Vg(a),p=0;p0&&(i.name=r+(o-1)),o++,t.set(r,o)}}function tI(e,t,n,i){var r=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,i||0);return G(t,(function(e){var t;ie(e)&&(t=e.dimsDef)&&(r=Math.max(r,t.length))})),r}function nI(e,t,n){var i=t.data;if(n||i.hasOwnProperty(e)){var r=0;while(i.hasOwnProperty(e+r))r++;e+=r}return t.set(e,!0),e}var iI=function(){function e(e){this.coordSysDims=[],this.axisMap=we(),this.categoryAxisMap=we(),this.coordSysName=e}return e}();function rI(e){var t=e.get("coordinateSystem"),n=new iI(t),i=oI[t];if(i)return i(e,n,n.axisMap,n.categoryAxisMap),n}var oI={cartesian2d:function(e,t,n,i){var r=e.getReferringComponents("xAxis",Ha).models[0],o=e.getReferringComponents("yAxis",Ha).models[0];t.coordSysDims=["x","y"],n.set("x",r),n.set("y",o),aI(r)&&(i.set("x",r),t.firstCategoryDimIndex=0),aI(o)&&(i.set("y",o),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,i){var r=e.getReferringComponents("singleAxis",Ha).models[0];t.coordSysDims=["single"],n.set("single",r),aI(r)&&(i.set("single",r),t.firstCategoryDimIndex=0)},polar:function(e,t,n,i){var r=e.getReferringComponents("polar",Ha).models[0],o=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),aI(o)&&(i.set("radius",o),t.firstCategoryDimIndex=0),aI(a)&&(i.set("angle",a),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},geo:function(e,t,n,i){t.coordSysDims=["lng","lat"]},parallel:function(e,t,n,i){var r=e.ecModel,o=r.getComponent("parallel",e.get("parallelIndex")),a=t.coordSysDims=o.dimensions.slice();G(o.parallelAxisIndex,(function(e,o){var s=r.getComponent("parallelAxis",e),l=a[o];n.set(l,s),aI(s)&&(i.set(l,s),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=o))}))}};function aI(e){return"category"===e.get("type")}function sI(e,t,n){n=n||{};var i,r,o,a=n.byIndex,s=n.stackedCoordDimension;lI(t)?i=t:(r=t.schema,i=r.dimensions,o=t.store);var l,u,c,h,d=!(!e||!e.get("stack"));if(G(i,(function(e,t){ee(e)&&(i[t]=e={name:e}),d&&!e.isExtraCoord&&(a||l||!e.ordinalMeta||(l=e),u||"ordinal"===e.type||"time"===e.type||s&&s!==e.coordDim||(u=e))})),!u||a||l||(a=!0),u){c="__\0ecstackresult_"+e.id,h="__\0ecstackedover_"+e.id,l&&(l.createInvertedIndices=!0);var p=u.coordDim,f=u.type,g=0;G(i,(function(e){e.coordDim===p&&g++}));var v={name:c,coordDim:p,coordDimIndex:g,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:h,coordDim:h,coordDimIndex:g+1,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};r?(o&&(v.storeDimIndex=o.ensureCalculationDimension(h,f),y.storeDimIndex=o.ensureCalculationDimension(c,f)),r.appendCalculationDimension(v),r.appendCalculationDimension(y)):(i.push(v),i.push(y))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:h,stackResultDimension:c}}function lI(e){return!OC(e.schema)}function uI(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function cI(e,t){return uI(e,t)?e.getCalculationInfo("stackResultDimension"):t}function hI(e,t){var n,i=e.get("coordinateSystem"),r=ef.get(i);return t&&t.coordSysDims&&(n=W(t.coordSysDims,(function(e){var n={name:e},i=t.axisMap.get(e);if(i){var r=i.get("type");n.type=IC(r)}return n}))),n||(n=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),n}function dI(e,t,n){var i,r;return n&&G(e,(function(e,o){var a=e.coordDim,s=n.categoryAxisMap.get(a);s&&(null==i&&(i=o),e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),null!=e.otherDims.itemName&&(r=!0)})),r||null==i||(e[i].otherDims.itemName=0),i}function pI(e,t,n){n=n||{};var i,r=t.getSourceManager(),o=!1;e?(o=!0,i=Gf(e)):(i=r.getSource(),o=i.sourceFormat===cp);var a=rI(t),s=hI(t,a),l=n.useEncodeDefaulter,u=Q(l)?l:l?K(bp,s,t):null,c={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o},h=QC(i,c),d=dI(h.dimensions,n.createInvertedIndices,a),p=o?null:r.getSharedDataStore(h),f=sI(t,{schema:h,store:p}),g=new JC(h,t);g.setCalculationInfo(f);var v=null!=d&&fI(i)?function(e,t,n,i){return i===d?n:this.defaultDimValueGetter(e,t,n,i)}:null;return g.hasItemOption=!1,g.initData(o?i:p,null,v),g}function fI(e){if(e.sourceFormat===cp){var t=gI(e.data||[]);return!J(ma(t))}}function gI(e){var t=0;while(t-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),t},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(Ov);const mI=yI;function xI(e,t){var n=e.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i){var r=lg(e,t,n[0]);return null!=r?r+"":null}if(i){for(var o=[],a=0;a=0&&i.push(t[o])}return i.join(" ")}var bI=function(e){function t(t,n,i,r){var o=e.call(this)||this;return o.updateData(t,n,i,r),o}return o(t,e),t.prototype._createSymbol=function(e,t,n,i,r){this.removeAll();var o=v_(e,-1,-1,2,2,null,r);o.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),o.drift=wI,this._symbolType=e,this.add(o)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){vc(this.childAt(0))},t.prototype.downplay=function(){yc(this.childAt(0))},t.prototype.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},t.prototype.setDraggable=function(e,t){var n=this.childAt(0);n.draggable=e,n.cursor=!t&&e?"move":n.cursor},t.prototype.updateData=function(e,n,i,r){this.silent=!1;var o=e.getItemVisual(n,"symbol")||"circle",a=e.hostModel,s=t.getSymbolSize(e,n),l=o!==this._symbolType,u=r&&r.disableAnimation;if(l){var c=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,e,n,s,c)}else{var h=this.childAt(0);h.silent=!1;var d={scaleX:s[0]/2,scaleY:s[1]/2};u?h.attr(d):Xc(h,d,a,n),nh(h)}if(this._updateCommon(e,n,s,i,r),l){h=this.childAt(0);if(!u){d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,Kc(h,d,a,n)}}u&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,t,n,i,r){var o,a,s,l,u,c,h,d,p,f=this.childAt(0),g=e.hostModel;if(i&&(o=i.emphasisItemStyle,a=i.blurItemStyle,s=i.selectItemStyle,l=i.focus,u=i.blurScope,h=i.labelStatesModels,d=i.hoverScale,p=i.cursorStyle,c=i.emphasisDisabled),!i||e.hasItemOption){var v=i&&i.itemModel?i.itemModel:e.getItemModel(t),y=v.getModel("emphasis");o=y.getModel("itemStyle").getItemStyle(),s=v.getModel(["select","itemStyle"]).getItemStyle(),a=v.getModel(["blur","itemStyle"]).getItemStyle(),l=y.get("focus"),u=y.get("blurScope"),c=y.get("disabled"),h=lh(v),d=y.getShallow("scale"),p=v.getShallow("cursor")}var m=e.getItemVisual(t,"symbolRotate");f.attr("rotation",(m||0)*Math.PI/180||0);var x=m_(e.getItemVisual(t,"symbolOffset"),n);x&&(f.x=x[0],f.y=x[1]),p&&f.attr("cursor",p);var _=e.getItemVisual(t,"style"),b=_.fill;if(f instanceof iu){var w=f.style;f.useStyle(B({image:w.image,x:w.x,y:w.y,width:w.width,height:w.height},_))}else f.__isEmptyBrush?f.useStyle(B({},_)):f.useStyle(_),f.style.decal=null,f.setColor(b,r&&r.symbolInnerColor),f.style.strokeNoScale=!0;var S=e.getItemVisual(t,"liftZ"),M=this._z2;null!=S?null==M&&(this._z2=f.z2,f.z2+=S):null!=M&&(f.z2=M,this._z2=null);var C=r&&r.useNameLabel;function I(t){return C?e.getName(t):xI(e,t)}sh(f,h,{labelFetcher:g,labelDataIndex:t,defaultText:I,inheritColor:b,defaultOpacity:_.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var T=f.ensureState("emphasis");if(T.style=o,f.ensureState("select").style=s,f.ensureState("blur").style=a,d){var k=Math.max(ne(d)?d:1.1,3/this._sizeY);T.scaleX=this._sizeX*k,T.scaleY=this._sizeY*k}this.setSymbolScale(1),Ec(this,l,u,c)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,n){var i=this.childAt(0),r=Lu(this).dataIndex,o=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var a=i.getTextContent();a&&Qc(a,{style:{opacity:0}},t,{dataIndex:r,removeOpt:o,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Qc(i,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:r,cb:e,removeOpt:o})},t.getSymbolSize=function(e,t){return y_(e.getItemVisual(t,"symbolSize"))},t}(Lo);function wI(e,t){this.parent.drift(e,t)}const SI=bI;function MI(e,t,n,i){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(i.isIgnore&&i.isIgnore(n))&&!(i.clipShape&&!i.clipShape.contain(t[0],t[1]))&&"none"!==e.getItemVisual(n,"symbol")}function CI(e){return null==e||ie(e)||(e={isIgnore:e}),e||{}}function II(e){var t=e.hostModel,n=t.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:lh(t),cursorStyle:t.get("cursor")}}var TI=function(){function e(e){this.group=new Lo,this._SymbolCtor=e||SI}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=CI(t);var n=this.group,i=e.hostModel,r=this._data,o=this._SymbolCtor,a=t.disableAnimation,s=II(e),l={disableAnimation:a},u=t.getSymbolPoint||function(t){return e.getItemLayout(t)};r||n.removeAll(),e.diff(r).add((function(i){var r=u(i);if(MI(e,r,i,t)){var a=new o(e,i,s,l);a.setPosition(r),e.setItemGraphicEl(i,a),n.add(a)}})).update((function(c,h){var d=r.getItemGraphicEl(h),p=u(c);if(MI(e,p,c,t)){var f=e.getItemVisual(c,"symbol")||"circle",g=d&&d.getSymbolType&&d.getSymbolType();if(!d||g&&g!==f)n.remove(d),d=new o(e,c,s,l),d.setPosition(p);else{d.updateData(e,c,s,l);var v={x:p[0],y:p[1]};a?d.attr(v):Xc(d,v,i)}n.add(d),e.setItemGraphicEl(c,d)}else n.remove(d)})).remove((function(e){var t=r.getItemGraphicEl(e);t&&t.fadeOut((function(){n.remove(t)}),i)})).execute(),this._getSymbolPoint=u,this._data=e},e.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl((function(t,n){var i=e._getSymbolPoint(n);t.setPosition(i),t.markRedraw()}))},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=II(e),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n){function i(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=CI(n);for(var r=e.start;r0?n=i[0]:i[1]<0&&(n=i[1]),n}function LI(e,t,n,i){var r=NaN;e.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=e.valueStart);var o=e.baseDataOffset,a=[];return a[o]=n.get(e.baseDim,i),a[1-o]=r,t.dataToPoint(a)}var PI="undefined"!==typeof Float32Array,OI=PI?Float32Array:Array;function RI(e){return J(e)?PI?new Float32Array(e):e:new OI(e)}function EI(e,t){var n=[];return t.diff(e).add((function(e){n.push({cmd:"+",idx:e})})).update((function(e,t){n.push({cmd:"=",idx:t,idx1:e})})).remove((function(e){n.push({cmd:"-",idx:e})})).execute(),n}function NI(e,t,n,i,r,o,a,s){for(var l=EI(e,t),u=[],c=[],h=[],d=[],p=[],f=[],g=[],v=AI(r,t,a),y=e.getLayout("points")||[],m=t.getLayout("points")||[],x=0;x=r||g<0)break;if(zI(y,m)){if(l){g+=o;continue}break}if(g===n)e[o>0?"moveTo":"lineTo"](y,m),h=y,d=m;else{var x=y-u,_=m-c;if(x*x+_*_<.5){g+=o;continue}if(a>0){var b=g+o,w=t[2*b],S=t[2*b+1];while(w===y&&S===m&&v=i||zI(w,S))p=y,f=m;else{I=w-u,T=S-c;var D=y-u,L=w-y,P=m-c,O=S-m,R=void 0,E=void 0;if("x"===s){R=Math.abs(D),E=Math.abs(L);var N=I>0?1:-1;p=y-N*R*a,f=m,k=y+N*E*a,A=m}else if("y"===s){R=Math.abs(P),E=Math.abs(O);var B=T>0?1:-1;p=y,f=m-B*R*a,k=y,A=m+B*E*a}else R=Math.sqrt(D*D+P*P),E=Math.sqrt(L*L+O*O),C=E/(E+R),p=y-I*a*(1-C),f=m-T*a*(1-C),k=y+I*a*C,A=m+T*a*C,k=BI(k,FI(w,y)),A=BI(A,FI(S,m)),k=FI(k,BI(w,y)),A=FI(A,BI(S,m)),I=k-y,T=A-m,p=y-I*R/E,f=m-T*R/E,p=BI(p,FI(u,y)),f=BI(f,FI(c,m)),p=FI(p,BI(u,y)),f=FI(f,BI(c,m)),I=y-p,T=m-f,k=y+I*E/R,A=m+T*E/R}e.bezierCurveTo(h,d,p,f,y,m),h=k,d=A}else e.lineTo(y,m)}u=y,c=m,g+=o}return v}var HI=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),qI=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polyline",n}return o(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new HI},t.prototype.buildPath=function(e,t){var n=t.points,i=0,r=n.length/2;if(t.connectNulls){for(;r>0;r--)if(!zI(n[2*r-2],n[2*r-1]))break;for(;i=0){var m=s?(d-i)*y+i:(h-n)*y+n;return s?[e,m]:[m,e]}n=h,i=d;break;case a.C:h=o[u++],d=o[u++],p=o[u++],f=o[u++],g=o[u++],v=o[u++];var x=s?xn(n,h,p,g,e,l):xn(i,d,f,v,e,l);if(x>0)for(var _=0;_=0){m=s?yn(i,d,f,v,b):yn(n,h,p,g,b);return s?[e,m]:[m,e]}}n=g,i=v;break}}},t}($l),GI=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(HI),WI=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polygon",n}return o(t,e),t.prototype.getDefaultShape=function(){return new GI},t.prototype.buildPath=function(e,t){var n=t.points,i=t.stackedOnPoints,r=0,o=n.length/2,a=t.smoothMonotone;if(t.connectNulls){for(;o>0;o--)if(!zI(n[2*o-2],n[2*o-1]))break;for(;rt){i?r.push(a(i,l,t)):n&&r.push(a(n,l,0),a(n,l,t));break}n&&(r.push(a(n,l,0)),n=null),r.push(l),i=l}}return r}function nT(e,t,n){var i=e.getVisual("visualMeta");if(i&&i.length&&e.count()&&"cartesian2d"===t.type){for(var r,o,a=i.length-1;a>=0;a--){var s=e.getDimensionInfo(i[a].dimension);if(r=s&&s.coordDim,"x"===r||"y"===r){o=i[a];break}}if(o){var l=t.getAxis(r),u=W(o.stops,(function(e){return{coord:l.toGlobalCoord(l.dataToCoord(e.value)),color:e.color}})),c=u.length,h=o.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),h.reverse());var d=tT(u,"x"===r?n.getWidth():n.getHeight()),p=d.length;if(!p&&c)return u[0].coord<0?h[1]?h[1]:u[c-1].color:h[0]?h[0]:u[0].color;var f=10,g=d[0].coord-f,v=d[p-1].coord+f,y=v-g;if(y<.001)return"transparent";G(d,(function(e){e.offset=(e.coord-g)/y})),d.push({offset:p?d[p-1].offset:.5,color:h[1]||"transparent"}),d.unshift({offset:p?d[0].offset:.5,color:h[0]||"transparent"});var m=new rm(0,0,0,0,d,!0);return m[r]=g,m[r+"2"]=v,m}}}function iT(e,t,n){var i=e.get("showAllSymbol"),r="auto"===i;if(!i||r){var o=n.getAxesByScale("ordinal")[0];if(o&&(!r||!rT(o,t))){var a=t.mapDimension(o.dim),s={};return G(o.getViewLabels(),(function(e){var t=o.scale.getRawOrdinalNumber(e.tickValue);s[t]=1})),function(e){return!s.hasOwnProperty(t.get(a,e))}}}}function rT(e,t){var n=e.getExtent(),i=Math.abs(n[1]-n[0])/e.scale.count();isNaN(i)&&(i=0);for(var r=t.count(),o=Math.max(1,Math.round(r/5)),a=0;ai)return!1;return!0}function oT(e,t){return isNaN(e)||isNaN(t)}function aT(e){for(var t=e.length/2;t>0;t--)if(!oT(e[2*t-2],e[2*t-1]))break;return t-1}function sT(e,t){return[e[2*t],e[2*t+1]]}function lT(e,t,n){for(var i,r,o=e.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u=t||i>=t&&r<=t){l=u;break}s=u,i=r}else i=r;return{range:[s,l],t:(t-i)/(r-i)}}function uT(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t0&&"bolder"===e.get(["emphasis","lineStyle","width"])){var R=p.getState("emphasis").style;R.lineWidth=+p.style.lineWidth+1}Lu(p).seriesIndex=e.seriesIndex,Ec(p,L,P,O);var E=JI(e.get("smooth")),N=e.get("smoothMonotone");if(p.setShape({smooth:E,smoothMonotone:N,connectNulls:w}),f){var B=a.getCalculationInfo("stackedOnSeries"),z=0;f.useStyle(F(l.getAreaStyle(),{fill:T,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),B&&(z=JI(B.get("smooth"))),f.setShape({smooth:E,stackedOnSmooth:z,smoothMonotone:N,connectNulls:w}),zc(f,e,"areaStyle"),Lu(f).seriesIndex=e.seriesIndex,Ec(f,L,P,O)}var V=function(e){i._changePolyState(e)};a.eachItemGraphicEl((function(e){e&&(e.onHoverStateChange=V)})),this._polyline.onHoverStateChange=V,this._data=a,this._coordSys=r,this._stackedOnPoints=_,this._points=u,this._step=I,this._valueOrigin=m,e.get("triggerLineEvent")&&(this.packEventData(e,p),f&&this.packEventData(e,f))},t.prototype.packEventData=function(e,t){Lu(t).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,t,n,i){var r=e.getData(),o=Na(r,i);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=r.getLayout("points"),s=r.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var c=e.get("zlevel"),h=e.get("z");s=new SI(r,o),s.x=l,s.y=u,s.setZ(c,h);var d=s.getSymbolPath().getTextContent();d&&(d.zlevel=c,d.z=h,d.z2=this._polyline.z2+1),s.__temp=!0,r.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else nx.prototype.highlight.call(this,e,t,n,i)},t.prototype.downplay=function(e,t,n,i){var r=e.getData(),o=Na(r,i);if(this._changePolyState("normal"),null!=o&&o>=0){var a=r.getItemGraphicEl(o);a&&(a.__temp?(r.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else nx.prototype.downplay.call(this,e,t,n,i)},t.prototype._changePolyState=function(e){var t=this._polygon;sc(this._polyline,e),t&&sc(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new qI({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t,t},t.prototype._newPolygon=function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new WI({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,t,n){var i,r,o=t.getBaseAxis(),a=o.inverse;"cartesian2d"===t.type?(i=o.isHorizontal(),r=!1):"polar"===t.type&&(i="angle"===o.dim,r=!0);var s=e.hostModel,l=s.get("animationDuration");Q(l)&&(l=l(null));var u=s.get("animationDelay")||0,c=Q(u)?u(null):u;e.eachItemGraphicEl((function(e,o){var s=e;if(s){var h=[e.x,e.y],d=void 0,p=void 0,f=void 0;if(n)if(r){var g=n,v=t.pointToCoord(h);i?(d=g.startAngle,p=g.endAngle,f=-v[1]/180*Math.PI):(d=g.r0,p=g.r,f=v[0])}else{var y=n;i?(d=y.x,p=y.x+y.width,f=e.x):(d=y.y+y.height,p=y.y,f=e.y)}var m=p===d?0:(f-d)/(p-d);a&&(m=1-m);var x=Q(u)?u(o):l*m+c,_=s.getSymbolPath(),b=_.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:x}),b&&b.animateFrom({style:{opacity:0}},{duration:300,delay:x}),_.disableLabelAnimation=!0}}))},t.prototype._initOrUpdateEndLabel=function(e,t,n){var i=e.getModel("endLabel");if(uT(e)){var r=e.getData(),o=this._polyline,a=r.getLayout("points");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||(s=this._endLabel=new Du({z2:200}),s.ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=aT(a);l>=0&&(sh(o,lh(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:l,defaultText:function(e,t,n){return null!=n?_I(r,n):xI(r,e)},enableTextSetter:!0},hT(i,t)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,t,n,i,r,o,a){var s=this._endLabel,l=this._polyline;if(s){e<1&&null==i.originalX&&(i.originalX=s.x,i.originalY=s.y);var u=n.getLayout("points"),c=n.hostModel,h=c.get("connectNulls"),d=o.get("precision"),p=o.get("distance")||0,f=a.getBaseAxis(),g=f.isHorizontal(),v=f.inverse,y=t.shape,m=v?g?y.x:y.y+y.height:g?y.x+y.width:y.y,x=(g?p:0)*(v?-1:1),_=(g?0:-p)*(v?-1:1),b=g?"x":"y",w=lT(u,m,b),S=w.range,M=S[1]-S[0],C=void 0;if(M>=1){if(M>1&&!h){var I=sT(u,S[0]);s.attr({x:I[0]+x,y:I[1]+_}),r&&(C=c.getRawValue(S[0]))}else{I=l.getPointOn(m,b);I&&s.attr({x:I[0]+x,y:I[1]+_});var T=c.getRawValue(S[0]),k=c.getRawValue(S[1]);r&&(C=Ya(n,d,T,k,w.t))}i.lastFrameIndex=S[0]}else{var A=1===e||i.lastFrameIndex>0?S[0]:0;I=sT(u,A);r&&(C=c.getRawValue(A)),s.attr({x:I[0]+x,y:I[1]+_})}r&&mh(s).setLabelText(C)}},t.prototype._doUpdateAnimation=function(e,t,n,i,r,o,a){var s=this._polyline,l=this._polygon,u=e.hostModel,c=NI(this._data,e,this._stackedOnPoints,t,this._coordSys,n,this._valueOrigin,o),h=c.current,d=c.stackedOnCurrent,p=c.next,f=c.stackedOnNext;if(r&&(h=eT(c.current,n,r,a),d=eT(c.stackedOnCurrent,n,r,a),p=eT(c.next,n,r,a),f=eT(c.stackedOnNext,n,r,a)),KI(h,p)>3e3||l&&KI(d,f)>3e3)return s.stopAnimation(),s.setShape({points:p}),void(l&&(l.stopAnimation(),l.setShape({points:p,stackedOnPoints:f})));s.shape.__points=c.current,s.shape.points=h;var g={shape:{points:p}};c.current!==h&&(g.shape.__points=c.next),s.stopAnimation(),Xc(s,g,u),l&&(l.setShape({points:h,stackedOnPoints:d}),l.stopAnimation(),Xc(l,{shape:{stackedOnPoints:f}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var v=[],y=c.status,m=0;mt&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n10&&"cartesian2d"===o.type&&r){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),c=n.getDevicePixelRatio(),h=Math.abs(u[1]-u[0])*(c||1),d=Math.round(a/h);if(isFinite(d)&&d>1){"lttb"===r&&e.setData(i.lttbDownSample(i.mapDimension(l.dim),1/d));var p=void 0;ee(r)?p=gT[r]:Q(r)&&(p=r),p&&e.setData(i.downSample(i.mapDimension(l.dim),1/d,p,vT))}}}}}function mT(e){e.registerChartView(pT),e.registerSeriesModel(mI),e.registerLayout(fT("line",!0)),e.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,yT("line"))}var xT="__ec_stack_";function _T(e){return e.get("stack")||xT+e.seriesIndex}function bT(e){return e.dim+e.index}function wT(e){var t=[],n=e.axis,i="axis0";if("category"===n.type){for(var r=n.getBandWidth(),o=0;o0&&(o=null===o?s:Math.min(o,s))}n[i]=o}}return n}function CT(e){var t=MT(e),n=[];return G(e,(function(e){var i,r=e.coordinateSystem,o=r.getBaseAxis(),a=o.getExtent();if("category"===o.type)i=o.getBandWidth();else if("value"===o.type||"time"===o.type){var s=o.dim+"_"+o.index,l=t[s],u=Math.abs(a[1]-a[0]),c=o.scale.getExtent(),h=Math.abs(c[1]-c[0]);i=l?u/h*l:u}else{var d=e.getData();i=Math.abs(a[1]-a[0])/d.count()}var p=Go(e.get("barWidth"),i),f=Go(e.get("barMaxWidth"),i),g=Go(e.get("barMinWidth")||(LT(e)?.5:1),i),v=e.get("barGap"),y=e.get("barCategoryGap");n.push({bandWidth:i,barWidth:p,barMaxWidth:f,barMinWidth:g,barGap:v,barCategoryGap:y,axisKey:bT(o),stackId:_T(e)})})),IT(n)}function IT(e){var t={};G(e,(function(e,n){var i=e.axisKey,r=e.bandWidth,o=t[i]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;t[i]=o;var s=e.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=e.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=e.barMaxWidth;u&&(a[s].maxWidth=u);var c=e.barMinWidth;c&&(a[s].minWidth=c);var h=e.barGap;null!=h&&(o.gap=h);var d=e.barCategoryGap;null!=d&&(o.categoryGap=d)}));var n={};return G(t,(function(e,t){n[t]={};var i=e.stacks,r=e.bandWidth,o=e.categoryGap;if(null==o){var a=Y(i).length;o=Math.max(35-4*a,15)+"%"}var s=Go(o,r),l=Go(e.gap,1),u=e.remainedWidth,c=e.autoWidthCount,h=(u-s)/(c+(c-1)*l);h=Math.max(h,0),G(i,(function(e){var t=e.maxWidth,n=e.minWidth;if(e.width){i=e.width;t&&(i=Math.min(i,t)),n&&(i=Math.max(i,n)),e.width=i,u-=i+l*i,c--}else{var i=h;t&&ti&&(i=n),i!==h&&(e.width=i,u-=i+l*i,c--)}})),h=(u-s)/(c+(c-1)*l),h=Math.max(h,0);var d,p=0;G(i,(function(e,t){e.width||(e.width=h),d=e,p+=e.width*(1+l)})),d&&(p-=d.width*l);var f=-p/2;G(i,(function(e,i){n[t][i]=n[t][i]||{bandWidth:r,offset:f,width:e.width},f+=e.width*(1+l)}))})),n}function TT(e,t,n){if(e&&t){var i=e[bT(t)];return null!=i&&null!=n?i[_T(n)]:i}}function kT(e,t){var n=ST(e,t),i=CT(n);G(n,(function(e){var t=e.getData(),n=e.coordinateSystem,r=n.getBaseAxis(),o=_T(e),a=i[bT(r)][o],s=a.offset,l=a.width;t.setLayout({bandWidth:a.bandWidth,offset:s,size:l})}))}function AT(e){return{seriesType:e,plan:Nv(),reset:function(e){if(DT(e)){var t=e.getData(),n=e.coordinateSystem,i=n.getBaseAxis(),r=n.getOtherAxis(i),o=t.getDimensionIndex(t.mapDimension(r.dim)),a=t.getDimensionIndex(t.mapDimension(i.dim)),s=e.get("showBackground",!0),l=t.mapDimension(r.dim),u=t.getCalculationInfo("stackResultDimension"),c=uI(t,l)&&!!t.getCalculationInfo("stackedOnSeries"),h=r.isHorizontal(),d=PT(i,r),p=LT(e),f=e.get("barMinHeight")||0,g=u&&t.getDimensionIndex(u),v=t.getLayout("size"),y=t.getLayout("offset");return{progress:function(e,t){var i,r=e.count,l=p&&RI(3*r),u=p&&s&&RI(3*r),m=p&&RI(r),x=n.master.getRect(),_=h?x.width:x.height,b=t.getStore(),w=0;while(null!=(i=e.next())){var S=b.get(c?g:o,i),M=b.get(a,i),C=d,I=void 0;c&&(I=+S-b.get(o,i));var T=void 0,k=void 0,A=void 0,D=void 0;if(h){var L=n.dataToPoint([S,M]);if(c){var P=n.dataToPoint([I,M]);C=P[0]}T=C,k=L[1]+y,A=L[0]-C,D=v,Math.abs(A)e&&(e=t),e},t.prototype.brushSelector=function(e,t,n){return n.rect(t.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Fh(RT.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(RT);const NT=ET;var BT=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return e}(),FT=function(e){function t(t){var n=e.call(this,t)||this;return n.type="sausage",n}return o(t,e),t.prototype.getDefaultShape=function(){return new BT},t.prototype.buildPath=function(e,t){var n=t.cx,i=t.cy,r=Math.max(t.r0||0,0),o=Math.max(t.r,0),a=.5*(o-r),s=r+a,l=t.startAngle,u=t.endAngle,c=t.clockwise,h=2*Math.PI,d=c?u-lMath.PI/2&&c<1.5*Math.PI&&(c-=Math.PI),e.setTextConfig({rotation:c})}}function qT(e,t,n){return t*Math.sin(e)*(n?-1:1)}function GT(e,t,n){return t*Math.cos(e)*(n?1:-1)}var WT=Math.max,UT=Math.min;function jT(e,t){var n=e.getArea&&e.getArea();if(YI(e,"cartesian2d")){var i=e.getBaseAxis();if("category"!==i.type||!i.onBand){var r=t.getLayout("bandWidth");i.isHorizontal()?(n.x-=r,n.width+=2*r):(n.y-=r,n.height+=2*r)}}return n}var ZT=function(e){function t(){var n=e.call(this)||this;return n.type=t.type,n._isFirstFrame=!0,n}return o(t,e),t.prototype.render=function(e,t,n,i){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var r=e.get("coordinateSystem");("cartesian2d"===r||"polar"===r)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,t,n):this._renderNormal(e,t,n,i))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,t){this._progressiveEls=[],this._incrementalRenderLarge(e,t)},t.prototype.eachRendered=function(e){Zm(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e,t,n,i){var r,o=this.group,a=e.getData(),s=this._data,l=e.coordinateSystem,u=l.getBaseAxis();"cartesian2d"===l.type?r=u.isHorizontal():"polar"===l.type&&(r="angle"===u.dim);var c=e.isAnimationEnabled()?e:null,h=XT(e,l);h&&this._enableRealtimeSort(h,a,n);var d=e.get("clip",!0)||h,p=jT(l,a);o.removeClipPath();var f=e.get("roundCap",!0),g=e.get("showBackground",!0),v=e.getModel("backgroundStyle"),y=v.get("borderRadius")||0,m=[],x=this._backgroundEls,_=i&&i.isInitSort,b=i&&"changeAxisOrder"===i.type;function w(e){var t=nk[l.type](a,e),n=pk(l,r,t);return n.useStyle(v.getItemStyle()),"cartesian2d"===l.type&&n.setShape("r",y),m[e]=n,n}a.diff(s).add((function(t){var n=a.getItemModel(t),i=nk[l.type](a,t,n);if(g&&w(t),a.hasValue(t)&&tk[l.type](i)){var s=!1;d&&(s=YT[l.type](p,i));var v=$T[l.type](e,a,t,i,r,c,u.model,!1,f);h&&(v.forceLabelAnimation=!0),ok(v,a,t,n,i,e,r,"polar"===l.type),_?v.attr({shape:i}):h?KT(h,c,v,i,t,r,!1,!1):Kc(v,{shape:i},e,t),a.setItemGraphicEl(t,v),o.add(v),v.ignore=s}})).update((function(t,n){var i=a.getItemModel(t),S=nk[l.type](a,t,i);if(g){var M=void 0;0===x.length?M=w(n):(M=x[n],M.useStyle(v.getItemStyle()),"cartesian2d"===l.type&&M.setShape("r",y),m[t]=M);var C=nk[l.type](a,t),I=dk(r,C,l);Xc(M,{shape:I},c,t)}var T=s.getItemGraphicEl(n);if(a.hasValue(t)&&tk[l.type](S)){var k=!1;if(d&&(k=YT[l.type](p,S),k&&o.remove(T)),T?nh(T):T=$T[l.type](e,a,t,S,r,c,u.model,!!T,f),h&&(T.forceLabelAnimation=!0),b){var A=T.getTextContent();if(A){var D=mh(A);null!=D.prevValue&&(D.prevValue=D.value)}}else ok(T,a,t,i,S,e,r,"polar"===l.type);_?T.attr({shape:S}):h?KT(h,c,T,S,t,r,!0,b):Xc(T,{shape:S},e,t,null),a.setItemGraphicEl(t,T),T.ignore=k,o.add(T)}else o.remove(T)})).remove((function(t){var n=s.getItemGraphicEl(t);n&&th(n,e,t)})).execute();var S=this._backgroundGroup||(this._backgroundGroup=new Lo);S.removeAll();for(var M=0;Mo)return!0;o=u}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,i=n.getExtent(),r=Math.max(0,i[0]),o=Math.min(i[1],n.getOrdinalMeta().categories.length-1);r<=o;++r)if(e.ordinalNumbers[r]!==n.getRawOrdinalNumber(r))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,i){if(this._isOrderChangedWithinSameData(e,t,n)){var r=this._dataSort(e,n,t);this._isOrderDifferentInView(r,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:r}))}},t.prototype._dispatchInitSort=function(e,t,n){var i=t.baseAxis,r=this._dataSort(e,i,(function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:r})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(t){th(t,e,Lu(t).dataIndex)}))):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(nx),YT={cartesian2d:function(e,t){var n=t.width<0?-1:1,i=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height);var r=e.x+e.width,o=e.y+e.height,a=WT(t.x,e.x),s=UT(t.x+t.width,r),l=WT(t.y,e.y),u=UT(t.y+t.height,o),c=sr?s:a,t.y=h&&l>o?u:l,t.width=c?0:s-a,t.height=h?0:u-l,n<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height),c||h},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var i=t.r;t.r=t.r0,t.r0=i}var r=UT(t.r,e.r),o=WT(t.r0,e.r0);t.r=r,t.r0=o;var a=r-o<0;if(n<0){i=t.r;t.r=t.r0,t.r0=i}return a}},$T={cartesian2d:function(e,t,n,i,r,o,a,s,l){var u=new du({shape:B({},i),z2:1});if(u.__dataIndex=n,u.name="item",o){var c=u.shape,h=r?"height":"width";c[h]=0}return u},polar:function(e,t,n,i,r,o,a,s,l){var u=!r&&l?zT:Ay,c=new u({shape:i,z2:1});c.name="item";var h=rk(r);if(c.calculateTextPosition=VT(h,{isRoundCap:u===zT}),o){var d=c.shape,p=r?"r":"endAngle",f={};d[p]=r?0:i.startAngle,f[p]=i[p],(s?Xc:Kc)(c,{shape:f},o)}return c}};function XT(e,t){var n=e.get("realtimeSort",!0),i=t.getBaseAxis();if(n&&"category"===i.type&&"cartesian2d"===t.type)return{baseAxis:i,otherAxis:t.getOtherAxis(i)}}function KT(e,t,n,i,r,o,a,s){var l,u;o?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(a?Xc:Kc)(n,{shape:l},t,r,null);var c=t?e.baseAxis.model:null;(a?Xc:Kc)(n,{shape:u},c,r)}function JT(e,t){for(var n=0;n0?1:-1,a=i.height>0?1:-1;return{x:i.x+o*r/2,y:i.y+a*r/2,width:i.width-o*r,height:i.height-a*r}},polar:function(e,t,n){var i=e.getItemLayout(t);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function ik(e){return null!=e.startAngle&&null!=e.endAngle&&e.startAngle===e.endAngle}function rk(e){return function(e){var t=e?"Arc":"Angle";return function(e){switch(e){case"start":case"insideStart":case"end":case"insideEnd":return e+t;default:return e}}}(e)}function ok(e,t,n,i,r,o,a,s){var l=t.getItemVisual(n,"style");s||e.setShape("r",i.get(["itemStyle","borderRadius"])||0),e.useStyle(l);var u=i.getShallow("cursor");u&&e.attr("cursor",u);var c=s?a?r.r>=r.r0?"endArc":"startArc":r.endAngle>=r.startAngle?"endAngle":"startAngle":a?r.height>=0?"bottom":"top":r.width>=0?"right":"left",h=lh(i);sh(e,h,{labelFetcher:o,labelDataIndex:n,defaultText:xI(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:c});var d=e.getTextContent();if(s&&d){var p=i.get(["label","position"]);e.textConfig.inside="middle"===p||null,HT(e,"outside"===p?c:p,rk(a),i.get(["label","rotate"]))}xh(d,h,o.getRawValue(n),(function(e){return _I(t,e)}));var f=i.getModel(["emphasis"]);Ec(e,f.get("focus"),f.get("blurScope"),f.get("disabled")),zc(e,i),ik(r)&&(e.style.fill="none",e.style.stroke="none",G(e.states,(function(e){e.style&&(e.style.fill=e.style.stroke="none")})))}function ak(e,t){var n=e.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var i=e.get(["itemStyle","borderWidth"])||0,r=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),o=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(i,r,o)}var sk=function(){function e(){}return e}(),lk=function(e){function t(t){var n=e.call(this,t)||this;return n.type="largeBar",n}return o(t,e),t.prototype.getDefaultShape=function(){return new sk},t.prototype.buildPath=function(e,t){for(var n=t.points,i=this.baseDimIdx,r=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;l=0?n:null}),30,!1);function hk(e,t,n){for(var i=e.baseDimIdx,r=1-i,o=e.shape.points,a=e.largeDataIndices,s=[],l=[],u=e.barWidth,c=0,h=o.length/3;c=s[0]&&t<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[c]}return-1}function dk(e,t,n){if(YI(n,"cartesian2d")){var i=t,r=n.getArea();return{x:e?i.x:r.x,y:e?r.y:i.y,width:e?i.width:r.width,height:e?r.height:i.height}}r=n.getArea();var o=t;return{cx:r.cx,cy:r.cy,r0:e?r.r0:o.r0,r:e?r.r:o.r,startAngle:e?o.startAngle:0,endAngle:e?o.endAngle:2*Math.PI}}function pk(e,t,n){var i="polar"===e.type?Ay:du;return new i({shape:dk(t,n,e),silent:!0,z2:0})}const fk=ZT;function gk(e){e.registerChartView(fk),e.registerSeriesModel(NT),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,K(kT,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,AT("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,yT("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(e,t){var n=e.componentType||"series";t.eachComponent({mainType:n,query:e},(function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)}))}))}var vk=2*Math.PI,yk=Math.PI/180;function mk(e,t){return $d(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function xk(e,t){var n=mk(e,t),i=e.get("center"),r=e.get("radius");J(r)||(r=[0,r]),J(i)||(i=[i,i]);var o=Go(n.width,t.getWidth()),a=Go(n.height,t.getHeight()),s=Math.min(o,a),l=Go(i[0],o)+n.x,u=Go(i[1],a)+n.y,c=Go(r[0],s/2),h=Go(r[1],s/2);return{cx:l,cy:u,r0:c,r:h}}function _k(e,t,n){t.eachSeriesByType(e,(function(e){var t=e.getData(),i=t.mapDimension("value"),r=mk(e,n),o=xk(e,n),a=o.cx,s=o.cy,l=o.r,u=o.r0,c=-e.get("startAngle")*yk,h=e.get("minAngle")*yk,d=0;t.each(i,(function(e){!isNaN(e)&&d++}));var p=t.getSum(i),f=Math.PI/(p||d)*2,g=e.get("clockwise"),v=e.get("roseType"),y=e.get("stillShowZeroSum"),m=t.getDataExtent(i);m[0]=0;var x=vk,_=0,b=c,w=g?1:-1;if(t.setLayout({viewRect:r,r:l}),t.each(i,(function(e,n){var i;if(isNaN(e))t.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:g,cx:a,cy:s,r0:u,r:v?NaN:l});else{i="area"!==v?0===p&&y?f:e*f:vk/d,in?a:o,c=Math.abs(l.label.y-n);if(c>=u.maxY){var h=l.label.x-t-l.len2*r,d=i+l.len,f=Math.abs(h)e.unconstrainedWidth?null:p:null;i.setStyle("width",f)}var g=i.getBoundingRect();o.width=g.width;var v=(i.style.margin||0)+2.1;o.height=g.height+v,o.y-=(o.height-h)/2}}}function Ik(e){return"center"===e.position}function Tk(e){var t,n,i=e.getData(),r=[],o=!1,a=(e.get("minShowLabelAngle")||0)*wk,s=i.getLayout("viewRect"),l=i.getLayout("r"),u=s.width,c=s.x,h=s.y,d=s.height;function p(e){e.ignore=!0}function f(e){if(!e.ignore)return!0;for(var t in e.states)if(!1===e.states[t].ignore)return!0;return!1}i.each((function(e){var s=i.getItemGraphicEl(e),h=s.shape,d=s.getTextContent(),g=s.getTextGuideLine(),v=i.getItemModel(e),y=v.getModel("label"),m=y.get("position")||v.get(["emphasis","label","position"]),x=y.get("distanceToLabelLine"),_=y.get("alignTo"),b=Go(y.get("edgeDistance"),u),w=y.get("bleedMargin"),S=v.getModel("labelLine"),M=S.get("length");M=Go(M,u);var C=S.get("length2");if(C=Go(C,u),Math.abs(h.endAngle-h.startAngle)0?"right":"left":L>0?"left":"right"}var V=Math.PI,H=0,q=y.get("rotate");if(ne(q))H=q*(V/180);else if("center"===m)H=0;else if("radial"===q||!0===q){var W=L<0?-D+V:-D;H=W}else if("tangential"===q&&"outside"!==m&&"outer"!==m){var U=Math.atan2(L,P);U<0&&(U=2*V+U);var j=P>0;j&&(U=V+U),H=U-V}if(o=!!H,d.x=I,d.y=T,d.rotation=H,d.setStyle({verticalAlign:"middle"}),O){d.setStyle({align:A});var Z=d.states.select;Z&&(Z.x+=d.x,Z.y+=d.y)}else{var Y=d.getBoundingRect().clone();Y.applyTransform(d.getComputedTransform());var $=(d.style.margin||0)+2.1;Y.y-=$/2,Y.height+=$,r.push({label:d,labelLine:g,position:m,len:M,len2:C,minTurnAngle:S.get("minTurnAngle"),maxSurfaceAngle:S.get("maxSurfaceAngle"),surfaceNormal:new $r(L,P),linePoints:k,textAlign:A,labelDistance:x,labelAlignTo:_,edgeDistance:b,bleedMargin:w,rect:Y,unconstrainedWidth:Y.width,labelStyleWidth:d.style.width})}s.setTextConfig({inside:O})}})),!o&&e.get("avoidLabelOverlap")&&Mk(r,t,n,l,u,d,c,h);for(var g=0;g0){for(var l=o.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u=i.r0}},t.type="pie",t}(nx);const Lk=Dk;function Pk(e,t,n){t=J(t)&&{coordDimensions:t}||B({encodeDefine:e.getEncode()},t);var i=e.getSource(),r=QC(i,t).dimensions,o=new JC(r,e);return o.initData(i,n),o}var Ok=function(){function e(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return e.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},e.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},e.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},e.prototype.getItemVisual=function(e,t){var n=this._getDataWithEncodedVisual();return n.getItemVisual(e,t)},e}();const Rk=Ok;var Ek=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Rk(X(this.getData,this),X(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return Pk(this,{coordDimensions:["value"],encodeDefaulter:K(wp,this)})},t.prototype.getDataParams=function(t){var n=this.getData(),i=e.prototype.getDataParams.call(this,t),r=[];return n.each(n.mapDimension("value"),(function(e){r.push(e)})),i.percent=$o(r,t,n.hostModel.get("percentPrecision")),i.$vars.push("percent"),i},t.prototype._defaultLabelLine=function(e){va(e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(Ov);const Nk=Ek;function Bk(e){return{seriesType:e,reset:function(e,t){var n=e.getData();n.filterSelf((function(e){var t=n.mapDimension("value"),i=n.get(t,e);return!(ne(i)&&!isNaN(i)&&i<0)}))}}}function Fk(e){e.registerChartView(Lk),e.registerSeriesModel(Nk),Qx("pie",e.registerAction),e.registerLayout(K(_k,"pie")),e.registerProcessor(bk("pie")),e.registerProcessor(Bk("pie"))}var zk=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return o(t,e),t.prototype.getInitialData=function(e,t){return vI(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?5e3:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?1e4:this.get("progressiveThreshold"):e},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(Ov);const Vk=zk;var Hk=4,qk=function(){function e(){}return e}(),Gk=function(e){function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return o(t,e),t.prototype.getDefaultShape=function(){return new qk},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,t){var n,i=t.points,r=t.size,o=this.symbolProxy,a=o.shape,s=e.getContext?e.getContext():e,l=s&&r[0]=0;s--){var l=2*s,u=i[l]-o/2,c=i[l+1]-a/2;if(e>=u&&t>=c&&e<=u+o&&t<=c+a)return s}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),i=this.getBoundingRect();if(e=n[0],t=n[1],i.contain(e,t)){var r=this.hoverDataIdx=this.findDataIndex(e,t);return r>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape,n=t.points,i=t.size,r=i[0],o=i[1],a=1/0,s=1/0,l=-1/0,u=-1/0,c=0;c=0&&(l.dataIndex=n+(e.startIndex||0))}))},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}();const Uk=Wk;var jk=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),r=this._updateSymbolDraw(i,e);r.updateData(i,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var i=e.getData(),r=this._updateSymbolDraw(i,e);r.incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._symbolDraw.incrementalUpdate(e,t.getData(),{clipShape:this._getClipShape(t)}),this._finished=e.end===t.getData().count()},t.prototype.updateTransform=function(e,t,n){var i=e.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var r=fT("").reset(e,t,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){var t=e.coordinateSystem,n=t&&t.getArea&&t.getArea();return e.get("clip",!0)?n:null},t.prototype._updateSymbolDraw=function(e,t){var n=this._symbolDraw,i=t.pipelineContext,r=i.large;return n&&r===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=r?new Uk:new kI,this._isLargeDraw=r,this.group.removeAll()),this.group.add(n.group),n},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(nx);const Zk=jk;var Yk=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(op);const $k=Yk;var Xk=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},e.prototype.getCoordSysModel=function(){},e}(),Kk=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Ha).models[0]},t.type="cartesian2dAxis",t}(op);H(Kk,Xk);var Jk={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},Qk=E({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Jk),eA=E({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},Jk),tA=E({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},eA),nA=F({logBase:10},eA);const iA={category:Qk,value:eA,time:tA,log:nA};var rA=0,oA=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++rA}return e.createByAxisModel=function(t){var n=t.option,i=n.data,r=i&&W(i,aA);return new e({categories:r,needCollect:!r,deduplication:!1!==n.dedplication})},e.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},e.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!ee(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var i=this._getOrCreateMap();return t=i.get(e),null==t&&(n?(t=this.categories.length,this.categories[t]=e,i.set(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||(this._map=we(this.categories))},e}();function aA(e){return ie(e)&&null!=e.value?e.value:e+""}const sA=oA;var lA={value:1,category:1,time:1,log:1};function uA(e,t,n,i){G(lA,(function(r,a){var s=E(E({},iA[a],!0),i,!0),l=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t+"Axis."+a,n}return o(n,e),n.prototype.mergeDefaultAndTheme=function(e,t){var n=Jd(this),i=n?ep(e):{},r=t.getTheme();E(e,r.get(a+"Axis")),E(e,this.getDefaultOption()),e.type=cA(e),n&&Qd(e,i,n)},n.prototype.optionUpdated=function(){var e=this.option;"category"===e.type&&(this.__ordinalMeta=sA.createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if("category"===t.type)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=t+"Axis."+a,n.defaultOption=s,n}(n);e.registerComponentModel(l)})),e.registerSubTypeDefaulter(t+"Axis",cA)}function cA(e){return e.type||(e.data?"category":"value")}var hA=function(){function e(e){this._setting=e||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(e){return this._setting[e]},e.prototype.unionExtent=function(e){var t=this._extent;e[0]t[1]&&(t[1]=e[1])},e.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t)},e.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();ls(hA);const dA=hA;function pA(e){return"interval"===e.type||"log"===e.type}function fA(e,t,n,i){var r={},o=e[1]-e[0],a=r.interval=ra(o/t,!0);null!=n&&ai&&(a=r.interval=i);var s=r.intervalPrecision=vA(a),l=r.niceTickExtent=[Wo(Math.ceil(e[0]/a)*a,s),Wo(Math.floor(e[1]/a)*a,s)];return mA(l,e),r}function gA(e){var t=Math.pow(10,ia(e)),n=e/t;return n?2===n?n=3:3===n?n=5:n*=2:n=1,Wo(n*t)}function vA(e){return jo(e)+2}function yA(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function mA(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),yA(e,0,t),yA(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function xA(e,t){return e>=t[0]&&e<=t[1]}function _A(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function bA(e,t){return e*(t[1]-t[0])+t[0]}var wA=function(e){function t(t){var n=e.call(this,t)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new sA({})),J(i)&&(i=new sA({categories:W(i,(function(e){return ie(e)?e.value:e}))})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return o(t,e),t.prototype.parse=function(e){return null==e?NaN:ee(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),xA(e,this._extent)&&null!=this._ordinalMeta.categories[e]},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),_A(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(bA(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){var e=[],t=this._extent,n=t[0];while(n<=t[1])e.push({value:n}),n++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(null!=e){for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=Math.min(o,t.length);r=0&&e=0&&e=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(dA);dA.registerClass(wA);const SA=wA;var MA=Wo,CA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return o(t,e),t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return xA(e,this._extent)},t.prototype.normalize=function(e){return _A(e,this._extent)},t.prototype.scale=function(e){return bA(e,this._extent)},t.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(t)||(n[1]=parseFloat(t))},t.prototype.unionExtent=function(e){var t=this._extent;e[0]t[1]&&(t[1]=e[1]),this.setExtent(t[0],t[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=vA(e)},t.prototype.getTicks=function(e){var t=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,o=[];if(!t)return o;var a=1e4;n[0]a)return[]}var l=o.length?o[o.length-1].value:i[1];return n[1]>l&&(e?o.push({value:MA(l+t,r)}):o.push({value:n[1]})),o},t.prototype.getMinorTicks=function(e){for(var t=this.getTicks(!0),n=[],i=this.getExtent(),r=1;ri[0]&&h>>1;e[r][1]n&&(this._approxInterval=n);var o=AA.length,a=Math.min(TA(AA,this._approxInterval,0,o),o-1);this._interval=AA[a][1],this._minLevelUnit=AA[Math.max(a-1,0)][0]},t.prototype.parse=function(e){return ne(e)?e:+ta(e)},t.prototype.contain=function(e){return xA(this.parse(e),this._extent)},t.prototype.normalize=function(e){return _A(this.parse(e),this._extent)},t.prototype.scale=function(e){return bA(e,this._extent)},t.type="time",t}(IA),AA=[["second",Kh],["minute",Jh],["hour",Qh],["quarter-day",6*Qh],["half-day",12*Qh],["day",1.2*ed],["half-week",3.5*ed],["week",7*ed],["month",31*ed],["quarter",95*ed],["half-year",td/2],["year",td]];function DA(e,t,n,i){var r=ta(t),o=ta(n),a=function(e){return fd(r,e,i)===fd(o,e,i)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},c=function(){return u()&&a("hour")},h=function(){return c()&&a("minute")},d=function(){return h()&&a("second")},p=function(){return d()&&a("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return h();case"second":return d();case"millisecond":return p()}}function LA(e,t){return e/=ed,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function PA(e){var t=30*ed;return e/=t,e>6?6:e>3?3:e>2?2:1}function OA(e){return e/=Qh,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function RA(e,t){return e/=t?Jh:Kh,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function EA(e){return ra(e,!0)}function NA(e,t,n){var i=new Date(e);switch(ld(t)){case"year":case"month":i[Sd(n)](0);case"day":i[Md(n)](1);case"hour":i[Cd(n)](0);case"minute":i[Id(n)](0);case"second":i[Td(n)](0),i[kd(n)](0)}return i.getTime()}function BA(e,t,n,i){var r=1e4,o=ad,a=0;function s(e,t,n,r,o,a,s){var l=new Date(t),u=t,c=l[r]();while(u1&&0===u&&o.unshift({value:o[0].value-d})}}for(u=0;u=i[0]&&m<=i[1]&&h++)}var x=(i[1]-i[0])/t;if(h>1.5*x&&d>x/1.5)break;if(u.push(v),h>x||e===o[p])break}c=[]}}}var _=j(W(u,(function(e){return j(e,(function(e){return e.value>=i[0]&&e.value<=i[1]&&!e.notAdd}))})),(function(e){return e.length>0})),b=[],w=_.length-1;for(p=0;p<_.length;++p)for(var S=_[p],M=0;M0)i*=10;var o=[Wo(GA(t[0]/i)*i),Wo(qA(t[1]/i)*i)];this._interval=i,this._niceExtent=o}},t.prototype.calcNiceExtent=function(e){VA.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=UA(e)/UA(this.base),xA(e,this._extent)},t.prototype.normalize=function(e){return e=UA(e)/UA(this.base),_A(e,this._extent)},t.prototype.scale=function(e){return e=bA(e,this._extent),WA(this.base,e)},t.type="log",t}(dA),ZA=jA.prototype;function YA(e,t){return HA(e,jo(t))}ZA.getMinorTicks=VA.getMinorTicks,ZA.getLabel=VA.getLabel,dA.registerClass(jA);const $A=jA;var XA=function(){function e(e,t,n){this._prepareParams(e,t,n)}return e.prototype._prepareParams=function(e,t,n){n[1]0&&s>0&&!l&&(a=0),a<0&&s<0&&!u&&(s=0));var h=this._determinedMin,d=this._determinedMax;return null!=h&&(a=h,l=!0),null!=d&&(s=d,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:c}},e.prototype.modifyDataMinMax=function(e,t){this[JA[e]]=t},e.prototype.setDeterminedMinMax=function(e,t){var n=KA[e];this[n]=t},e.prototype.freeze=function(){this.frozen=!0},e}(),KA={min:"_determinedMin",max:"_determinedMax"},JA={min:"_dataMin",max:"_dataMax"};function QA(e,t,n){var i=e.rawExtentInfo;return i||(i=new XA(e,t,n),e.rawExtentInfo=i,i)}function eD(e,t){return null==t?null:ce(t)?NaN:e.parse(t)}function tD(e,t){var n=e.type,i=QA(e,t,e.getExtent()).calculate();e.setBlank(i.isBlank);var r=i.min,o=i.max,a=t.ecModel;if(a&&"time"===n){var s=ST("bar",a),l=!1;if(G(s,(function(e){l=l||e.getBaseAxis()===t.axis})),l){var u=CT(s),c=nD(r,o,t,u);r=c.min,o=c.max}}return{extent:[r,o],fixMin:i.minFixed,fixMax:i.maxFixed}}function nD(e,t,n,i){var r=n.axis.getExtent(),o=r[1]-r[0],a=TT(i,n.axis);if(void 0===a)return{min:e,max:t};var s=1/0;G(a,(function(e){s=Math.min(e.offset,s)}));var l=-1/0;G(a,(function(e){l=Math.max(e.offset+e.width,l)})),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-e,h=1-(s+l)/o,d=c/h-c;return t+=d*(l/u),e-=d*(s/u),{min:e,max:t}}function iD(e,t){var n=t,i=tD(e,n),r=i.extent,o=n.get("splitNumber");e instanceof $A&&(e.base=n.get("logBase"));var a=e.type,s=n.get("interval"),l="interval"===a||"time"===a;e.setExtent(r[0],r[1]),e.calcNiceExtent({splitNumber:o,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&e.setInterval&&e.setInterval(s)}function rD(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new SA({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new FA({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(dA.getClass(t)||IA)}}function oD(e){var t=e.scale.getExtent(),n=t[0],i=t[1];return!(n>0&&i>0||n<0&&i<0)}function aD(e){var t=e.getLabelModel().get("formatter"),n="category"===e.type?e.scale.getExtent()[0]:null;return"time"===e.scale.type?function(t){return function(n,i){return e.scale.getFormattedLabel(n,i,t)}}(t):ee(t)?function(t){return function(n){var i=e.scale.getLabel(n),r=t.replace("{value}",null!=i?i:"");return r}}(t):Q(t)?function(t){return function(i,r){return null!=n&&(r=i.value-n),t(sD(e,i),r,null!=i.level?{level:i.level}:null)}}(t):function(t){return e.scale.getLabel(t)}}function sD(e,t){return"category"===e.type?e.scale.getLabel(t):t.value}function lD(e){var t=e.model,n=e.scale;if(t.get(["axisLabel","show"])&&!n.isBlank()){var i,r,o=n.getExtent();n instanceof SA?r=n.count():(i=n.getTicks(),r=i.length);var a,s=e.getLabelModel(),l=aD(e),u=1;r>40&&(u=Math.ceil(r/40));for(var c=0;ce[1]&&(e[1]=i[1])}))}var fD=function(){function e(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return W(this._dimList,(function(e){return this._axes[e]}),this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),j(this.getAxes(),(function(t){return t.scale.type===e}))},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}();const gD=fD;var vD=["x","y"];function yD(e){return"interval"===e.type||"time"===e.type}var mD=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=vD,t}return o(t,e),t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,t=this.getAxis("y").scale;if(yD(e)&&yD(t)){var n=e.getExtent(),i=t.getExtent(),r=this.dataToPoint([n[0],i[0]]),o=this.dataToPoint([n[1],i[1]]),a=n[1]-n[0],s=i[1]-i[0];if(a&&s){var l=(o[0]-r[0])/a,u=(o[1]-r[1])/s,c=r[0]-n[0]*l,h=r[1]-i[0]*u,d=this._transform=[l,0,0,u,c,h];this._invTransform=Er([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var t=this.getAxis("x"),n=this.getAxis("y");return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,t){var n=this.dataToPoint(e),i=this.dataToPoint(t),r=this.getArea(),o=new oo(n[0],n[1],i[0]-n[0],i[1]-n[1]);return r.intersect(o)},t.prototype.dataToPoint=function(e,t,n){n=n||[];var i=e[0],r=e[1];if(this._transform&&null!=i&&isFinite(i)&&null!=r&&isFinite(r))return Ze(n,e,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(i,t)),n[1]=a.toGlobalCoord(a.dataToCoord(r,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),o=i.getExtent(),a=n.parse(e[0]),s=i.parse(e[1]);return t=t||[],t[0]=Math.min(Math.max(Math.min(r[0],r[1]),a),Math.max(r[0],r[1])),t[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),t},t.prototype.pointToData=function(e,t){var n=[];if(this._invTransform)return Ze(n,e,this._invTransform);var i=this.getAxis("x"),r=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(e[0]),t),n[1]=r.coordToData(r.toLocalCoord(e[1]),t),n},t.prototype.getOtherAxis=function(e){return this.getAxis("x"===e.dim?"y":"x")},t.prototype.getArea=function(){var e=this.getAxis("x").getGlobalExtent(),t=this.getAxis("y").getGlobalExtent(),n=Math.min(e[0],e[1]),i=Math.min(t[0],t[1]),r=Math.max(e[0],e[1])-n,o=Math.max(t[0],t[1])-i;return new oo(n,i,r,o)},t}(gD);const xD=mD;var _D=Ba();function bD(e){return"category"===e.type?SD(e):ID(e)}function wD(e,t){return"category"===e.type?CD(e,t):{ticks:W(e.scale.getTicks(),(function(e){return e.value}))}}function SD(e){var t=e.getLabelModel(),n=MD(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function MD(e,t){var n,i,r=TD(e,"labels"),o=cD(t),a=kD(r,o);return a||(Q(o)?n=RD(e,o):(i="auto"===o?DD(e):o,n=OD(e,i)),AD(r,o,{labels:n,labelCategoryInterval:i}))}function CD(e,t){var n,i,r=TD(e,"ticks"),o=cD(t),a=kD(r,o);if(a)return a;if(t.get("show")&&!e.scale.isBlank()||(n=[]),Q(o))n=RD(e,o,!0);else if("auto"===o){var s=MD(e,e.getLabelModel());i=s.labelCategoryInterval,n=W(s.labels,(function(e){return e.tickValue}))}else i=o,n=OD(e,i,!0);return AD(r,o,{ticks:n,tickCategoryInterval:i})}function ID(e){var t=e.scale.getTicks(),n=aD(e);return{labels:W(t,(function(t,i){return{level:t.level,formattedLabel:n(t,i),rawLabel:e.scale.getLabel(t),tickValue:t.value}}))}}function TD(e,t){return _D(e)[t]||(_D(e)[t]=[])}function kD(e,t){for(var n=0;n40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),c=Math.abs(u*Math.cos(i)),h=Math.abs(u*Math.sin(i)),d=0,p=0;l<=o[1];l+=s){var f=0,g=0,v=uo(n({value:l}),t.font,"center","top");f=1.3*v.width,g=1.3*v.height,d=Math.max(d,f,7),p=Math.max(p,g,7)}var y=d/c,m=p/h;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var x=Math.max(0,Math.floor(Math.min(y,m))),_=_D(e.model),b=e.getExtent(),w=_.lastAutoInterval,S=_.lastTickCount;return null!=w&&null!=S&&Math.abs(w-x)<=1&&Math.abs(S-a)<=1&&w>x&&_.axisExtent0===b[0]&&_.axisExtent1===b[1]?x=w:(_.lastTickCount=a,_.lastAutoInterval=x,_.axisExtent0=b[0],_.axisExtent1=b[1]),x}function PD(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function OD(e,t,n){var i=aD(e),r=e.scale,o=r.getExtent(),a=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=o[0],c=r.count();0!==u&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=hD(e),d=a.get("showMinLabel")||h,p=a.get("showMaxLabel")||h;d&&u!==o[0]&&g(o[0]);for(var f=u;f<=o[1];f+=l)g(f);function g(e){var t={value:e};s.push(n?e:{formattedLabel:i(t),rawLabel:r.getLabel(t),tickValue:e})}return p&&f-l!==o[1]&&g(o[1]),s}function RD(e,t,n){var i=e.scale,r=aD(e),o=[];return G(i.getTicks(),(function(e){var a=i.getLabel(e),s=e.value;t(e.value,a)&&o.push(n?s:{formattedLabel:r(e),rawLabel:a,tickValue:s})})),o}var ED=[0,1],ND=function(){function e(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return e.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),i=Math.max(t[0],t[1]);return e>=n&&e<=i},e.prototype.containData=function(e){return this.scale.contain(e)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(e){return Yo(e||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this._extent,i=this.scale;return e=i.normalize(e),this.onBand&&"ordinal"===i.type&&(n=n.slice(),BD(n,i.count())),qo(e,ED,n,t)},e.prototype.coordToData=function(e,t){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&(n=n.slice(),BD(n,i.count()));var r=qo(e,n,ED,t);return this.scale.scale(r)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),n=wD(this,t),i=n.ticks,r=W(i,(function(e){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(e):e),tickValue:e}}),this),o=t.get("alignWithLabel");return FD(this,r,o,e.clamp),r},e.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var n=this.scale.getMinorTicks(t),i=W(n,(function(e){return W(e,(function(e){return{coord:this.dataToCoord(e),tickValue:e}}),this)}),this);return i},e.prototype.getViewLabels=function(){return bD(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),n=t[1]-t[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(e[1]-e[0]);return Math.abs(i)/n},e.prototype.calculateCategoryInterval=function(){return LD(this)},e}();function BD(e,t){var n=e[1]-e[0],i=t,r=n/i/2;e[0]+=r,e[1]-=r}function FD(e,t,n,i){var r=t.length;if(e.onBand&&!n&&r){var o,a,s=e.getExtent();if(1===r)t[0].coord=s[0],o=t[1]={coord:s[0]};else{var l=t[r-1].tickValue-t[0].tickValue,u=(t[r-1].coord-t[0].coord)/l;G(t,(function(e){e.coord-=u/2}));var c=e.scale.getExtent();a=1+c[1]-t[r-1].tickValue,o={coord:t[r-1].coord+u*a},t.push(o)}var h=s[0]>s[1];d(t[0].coord,s[0])&&(i?t[0].coord=s[0]:t.shift()),i&&d(s[0],t[0].coord)&&t.unshift({coord:s[0]}),d(s[1],o.coord)&&(i?o.coord=s[1]:t.pop()),i&&d(o.coord,s[1])&&t.push({coord:s[1]})}function d(e,t){return e=Wo(e),t=Wo(t),h?e>t:et[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e["x"===this.dim?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if("category"!==this.type)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(zD);const HD=VD;function qD(e,t,n){n=n||{};var i=e.coordinateSystem,r=t.axis,o={},a=r.getAxesOnZeroOf()[0],s=r.position,l=a?"onZero":s,u=r.dim,c=i.getRect(),h=[c.x,c.x+c.width,c.y,c.y+c.height],d={left:0,right:1,top:0,bottom:1,onZero:2},p=t.get("offset")||0,f="x"===u?[h[2]-p,h[3]+p]:[h[0]-p,h[1]+p];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));f[d.onZero]=Math.max(Math.min(g,f[1]),f[0])}o.position=["y"===u?f[d[l]]:h[0],"x"===u?f[d[l]]:h[3]],o.rotation=Math.PI/2*("x"===u?0:1);var v={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=v[s],o.labelOffset=a?f[d[s]]-f[d.onZero]:0,t.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),he(n.labelInside,t.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var y=t.get(["axisLabel","rotate"]);return o.labelRotate="top"===l?-y:y,o.z2=1,o}function GD(e){return"cartesian2d"===e.get("coordinateSystem")}function WD(e){var t={xAxisModel:null,yAxisModel:null};return G(t,(function(n,i){var r=i.replace(/Model$/,""),o=e.getReferringComponents(r,Ha).models[0];t[i]=o})),t}var UD=Math.log;function jD(e,t,n){var i=IA.prototype,r=i.getTicks.call(n),o=i.getTicks.call(n,!0),a=r.length-1,s=i.getInterval.call(n),l=tD(e,t),u=l.extent,c=l.fixMin,h=l.fixMax;if("log"===e.type){var d=UD(e.base);u=[UD(u[0])/d,UD(u[1])/d]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:h});var p=i.getExtent.call(e);c&&(u[0]=p[0]),h&&(u[1]=p[1]);var f=i.getInterval.call(e),g=u[0],v=u[1];if(c&&h)f=(v-g)/a;else if(c){v=u[0]+f*a;while(vu[0]&&isFinite(g)&&isFinite(u[0]))f=gA(f),g=u[1]-f*a}else{var y=e.getTicks().length-1;y>a&&(f=gA(f));var m=f*a;v=Math.ceil(u[1]/f)*f,g=Wo(v-m),g<0&&u[0]>=0?(g=0,v=Wo(m)):v>0&&u[1]<=0&&(v=0,g=-Wo(m))}var x=(r[0].value-o[0].value)/s,_=(r[a].value-o[a].value)/s;i.setExtent.call(e,g+f*x,v+f*_),i.setInterval.call(e,f),(x||_)&&i.setNiceExtent.call(e,g+f,v-f)}var ZD=function(){function e(e,t,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=vD,this._initCartesian(e,t,n),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var n=this._axesMap;function i(e){var t,n=Y(e),i=n.length;if(i){for(var r=[],o=i-1;o>=0;o--){var a=+n[o],s=e[a],l=s.model,u=s.scale;pA(u)&&l.get("alignTicks")&&null==l.get("interval")?r.push(s):(iD(u,l),pA(u)&&(t=s))}r.length&&(t||(t=r.pop(),iD(t.scale,t.model)),G(r,(function(e){jD(e.scale,e.model,t.scale)})))}}this._updateScale(e,this.model),i(n.x),i(n.y);var r={};G(n.x,(function(e){$D(n,"y",e,r)})),G(n.y,(function(e){$D(n,"x",e,r)})),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var i=e.getBoxLayoutParams(),r=!n&&e.get("containLabel"),o=$d(i,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var a=this._axesList;function s(){G(a,(function(e){var t=e.isHorizontal(),n=t?[0,o.width]:[0,o.height],i=e.inverse?1:0;e.setExtent(n[i],n[1-i]),KD(e,t?o.x:o.y)}))}s(),r&&(G(a,(function(e){if(!e.model.get(["axisLabel","inside"])){var t=lD(e);if(t){var n=e.isHorizontal()?"height":"width",i=e.model.get(["axisLabel","margin"]);o[n]-=t[n]+i,"top"===e.position?o.y+=t.height+i:"left"===e.position&&(o.x+=t.width+i)}}})),s()),G(this._coordsList,(function(e){e.calcAffineTransform()}))},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(null!=n)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(null!=e&&null!=t){var n="x"+e+"y"+t;return this._coordsMap[n]}ie(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,r=this._coordsList;i0?"top":"bottom",i="center"):Qo(o-QD)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=o>0&&o0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:i,textVerticalAlign:r}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},e}(),tL={axisLine:function(e,t,n,i){var r=t.get(["axisLine","show"]);if("auto"===r&&e.handleAutoShown&&(r=e.handleAutoShown("axisLine")),r){var o=t.axis.getExtent(),a=i.transform,s=[o[0],0],l=[o[1],0];a&&(Ze(s,s,a),Ze(l,l,a));var u=B({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new Wy({subPixelOptimize:!0,shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:u,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});c.anid="line",n.add(c);var h=t.get(["axisLine","symbol"]);if(null!=h){var d=t.get(["axisLine","symbolSize"]);ee(h)&&(h=[h,h]),(ee(d)||ne(d))&&(d=[d,d]);var p=m_(t.get(["axisLine","symbolOffset"])||0,d),f=d[0],g=d[1];G([{rotate:e.rotation+Math.PI/2,offset:p[0],r:0},{rotate:e.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],(function(t,i){if("none"!==h[i]&&null!=h[i]){var r=v_(h[i],-f/2,-g/2,f,g,u.stroke,!0),o=t.r+t.offset;r.attr({rotation:t.rotate,x:s[0]+o*Math.cos(e.rotation),y:s[1]-o*Math.sin(e.rotation),silent:!0,z2:11}),n.add(r)}}))}}},axisTickLabel:function(e,t,n,i){var r=lL(n,i,t,e),o=cL(n,i,t,e);if(iL(t,o,r),uL(n,i,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var a=yS(W(o,(function(e){return{label:e,priority:e.z2,defaultAttr:{ignore:e.ignore}}})));bS(a)}},axisName:function(e,t,n,i){var r=he(e.axisName,t.get("name"));if(r){var o,a,s=t.get("nameLocation"),l=e.nameDirection,u=t.getModel("nameTextStyle"),c=t.get("nameGap")||0,h=t.axis.getExtent(),d=h[0]>h[1]?-1:1,p=["start"===s?h[0]-d*c:"end"===s?h[1]+d*c:(h[0]+h[1])/2,aL(s)?e.labelOffset+l*c:0],f=t.get("nameRotate");null!=f&&(f=f*QD/180),aL(s)?o=eL.innerTextLayout(e.rotation,null!=f?f:e.rotation,l):(o=nL(e.rotation,s,f||0,h),a=e.axisNameAvailableWidth,null!=a&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var g=u.getFont(),v=t.get("nameTruncate",!0)||{},y=v.ellipsis,m=he(e.nameTruncateMaxWidth,v.maxWidth,a),x=new Du({x:p[0],y:p[1],rotation:o.rotation,silent:eL.isLabelSilent(t),style:uh(u,{text:r,font:g,overflow:"truncate",width:m,ellipsis:y,fill:u.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:u.get("align")||o.textAlign,verticalAlign:u.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(Um({el:x,componentModel:t,itemName:r}),x.__fullText=r,x.anid="name",t.get("triggerEvent")){var _=eL.makeAxisEventDataBase(t);_.targetType="axisName",_.name=r,Lu(x).eventData=_}i.add(x),x.updateTransform(),n.add(x),x.decomposeTransform()}}};function nL(e,t,n,i){var r,o,a=Jo(n-e),s=i[0]>i[1],l="start"===t&&!s||"start"!==t&&s;return Qo(a-QD/2)?(o=l?"bottom":"top",r="center"):Qo(a-1.5*QD)?(o=l?"top":"bottom",r="center"):(o="middle",r=a<1.5*QD&&a>QD/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:r,textVerticalAlign:o}}function iL(e,t,n){if(!hD(e.axis)){var i=e.get(["axisLabel","showMinLabel"]),r=e.get(["axisLabel","showMaxLabel"]);t=t||[],n=n||[];var o=t[0],a=t[1],s=t[t.length-1],l=t[t.length-2],u=n[0],c=n[1],h=n[n.length-1],d=n[n.length-2];!1===i?(rL(o),rL(u)):oL(o,a)&&(i?(rL(a),rL(c)):(rL(o),rL(u))),!1===r?(rL(s),rL(h)):oL(l,s)&&(r?(rL(l),rL(d)):(rL(s),rL(h)))}}function rL(e){e&&(e.ignore=!0)}function oL(e,t){var n=e&&e.getBoundingRect().clone(),i=t&&t.getBoundingRect().clone();if(n&&i){var r=Ar([]);return Or(r,r,-e.rotation),n.applyTransform(Lr([],r,e.getLocalTransform())),i.applyTransform(Lr([],r,t.getLocalTransform())),n.intersect(i)}}function aL(e){return"middle"===e||"center"===e}function sL(e,t,n,i,r){for(var o=[],a=[],s=[],l=0;l=0||e===t}function mL(e){var t=xL(e);if(t){var n=t.axisPointerModel,i=t.axis.scale,r=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=i.parse(a));var s=bL(n);null==o&&(r.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a0&&!h.min?h.min=0:null!=h.min&&h.min<0&&!h.max&&(h.max=0);var d=a;null!=h.color&&(d=F({color:h.color},a));var p=E(R(h),{boundaryGap:e,splitNumber:t,scale:n,axisLine:i,axisTick:r,axisLabel:o,name:h.text,showName:s,nameLocation:"end",nameGap:u,nameTextStyle:d,triggerEvent:c},!1);if(ee(l)){var f=p.name;p.name=l.replace("{value}",null!=f?f:"")}else Q(l)&&(p.name=l(p.name,p));var g=new Oh(p,null,this.ecModel);return H(g,Xk.prototype),g.mainType="radar",g.componentIndex=this.componentIndex,g}),this);this._indicatorModels=h},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:E({lineStyle:{color:"#bbb"}},ZL.axisLine),axisLabel:YL(ZL.axisLabel,!1),axisTick:YL(ZL.axisTick,!1),splitLine:YL(ZL.splitLine,!0),splitArea:YL(ZL.splitArea,!0),indicator:[]},t}(op);const XL=$L;var KL=["axisLine","axisTickLabel","axisName"],JL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.render=function(e,t,n){var i=this.group;i.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes(),i=W(n,(function(e){var n=e.model.get("showName")?e.name:"",i=new hL(e.model,{axisName:n,position:[t.cx,t.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return i}));G(i,(function(e){G(KL,e.add,e),this.group.add(e.getGroup())}),this)},t.prototype._buildSplitLineAndArea=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes();if(n.length){var i=e.get("shape"),r=e.getModel("splitLine"),o=e.getModel("splitArea"),a=r.getModel("lineStyle"),s=o.getModel("areaStyle"),l=r.get("show"),u=o.get("show"),c=a.get("color"),h=s.get("color"),d=J(c)?c:[c],p=J(h)?h:[h],f=[],g=[];if("circle"===i)for(var v=n[0].getTicksCoords(),y=t.cx,m=t.cy,x=0;x3?1.4:r>1?1.2:1.1,l=i>0?s:1/s;dP(this,"zoom","zoomOnMouseWheel",e,{scale:l,originX:o,originY:a,isAvailableBehavior:null})}if(n){var u=Math.abs(i),c=(i>0?1:-1)*(u>3?.4:u>1?.15:.05);dP(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:c,originX:o,originY:a,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!uP(this._zr,"globalPan")){var t=e.pinchScale>1?1.1:1/1.1;dP(this,"zoom",null,e,{scale:t,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}(et);function dP(e,t,n,i,r){e.pointerChecker&&e.pointerChecker(i,r.originX,r.originY)&&(bt(i.event),pP(e,t,n,i,r))}function pP(e,t,n,i,r){r.isAvailableBehavior=X(fP,null,n,i),e.trigger(t,r)}function fP(e,t,n){var i=n[e];return!e||i&&(!ee(i)||t.event[i+"Key"])}const gP=hP;function vP(e,t,n){var i=e.target;i.x+=t,i.y+=n,i.dirty()}function yP(e,t,n,i){var r=e.target,o=e.zoomLimit,a=e.zoom=e.zoom||1;if(a*=t,o){var s=o.min||0,l=o.max||1/0;a=Math.max(Math.min(l,a),s)}var u=a/e.zoom;e.zoom=a,r.x-=(n-r.x)*(u-1),r.y-=(i-r.y)*(u-1),r.scaleX*=u,r.scaleY*=u,r.dirty()}var mP,xP={axisPointer:1,tooltip:1,brush:1};function _P(e,t,n){var i=t.getComponentByElement(e.topTarget),r=i&&i.coordinateSystem;return i&&i!==n&&!xP.hasOwnProperty(i.mainType)&&r&&r.model!==n}function bP(e){if(ee(e)){var t=new DOMParser;e=t.parseFromString(e,"text/xml")}var n=e;9===n.nodeType&&(n=n.firstChild);while("svg"!==n.nodeName.toLowerCase()||1!==n.nodeType)n=n.nextSibling;return n}var wP={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},SP=Y(wP),MP={"alignment-baseline":"textBaseline","stop-color":"stopColor"},CP=Y(MP),IP=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(e,t){t=t||{};var n=bP(e);this._defsUsePending=[];var i=new Lo;this._root=i;var r=[],o=n.getAttribute("viewBox")||"",a=parseFloat(n.getAttribute("width")||t.width),s=parseFloat(n.getAttribute("height")||t.height);isNaN(a)&&(a=null),isNaN(s)&&(s=null),PP(n,i,null,!0,!1);var l,u,c=n.firstChild;while(c)this._parseNode(c,i,r,null,!1,!1),c=c.nextSibling;if(NP(this._defs,this._defsUsePending),this._defsUsePending=[],o){var h=FP(o);h.length>=4&&(l={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(l&&null!=a&&null!=s&&(u=UP(l,{x:0,y:0,width:a,height:s}),!t.ignoreViewBox)){var d=i;i=new Lo,i.add(d),d.scaleX=d.scaleY=u.scale,d.x=u.x,d.y=u.y}return t.ignoreRootClip||null==a||null==s||i.setClipPath(new du({shape:{x:0,y:0,width:a,height:s}})),{root:i,width:a,height:s,viewBoxRect:l,viewBoxTransform:u,named:r}},e.prototype._parseNode=function(e,t,n,i,r,o){var a,s=e.nodeName.toLowerCase(),l=i;if("defs"===s&&(r=!0),"text"===s&&(o=!0),"defs"===s||"switch"===s)a=t;else{if(!r){var u=mP[s];if(u&&Ie(mP,s)){a=u.call(this,e,t);var c=e.getAttribute("name");if(c){var h={name:c,namedFrom:null,svgNodeTagLower:s,el:a};n.push(h),"g"===s&&(l=h)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:a});t.add(a)}}var d=TP[s];if(d&&Ie(TP,s)){var p=d.call(this,e),f=e.getAttribute("id");f&&(this._defs[f]=p)}}if(a&&a.isGroup){var g=e.firstChild;while(g)1===g.nodeType?this._parseNode(g,a,n,l,r,o):3===g.nodeType&&o&&this._parseText(g,a),g=g.nextSibling}},e.prototype._parseText=function(e,t){var n=new Jl({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});DP(t,n),PP(e,n,this._defsUsePending,!1,!1),OP(n,t);var i=n.style,r=i.fontSize;r&&r<9&&(i.fontSize=9,n.scaleX*=r/9,n.scaleY*=r/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var a=n.getBoundingRect();return this._textX+=a.width,t.add(n),n},e.internalField=function(){mP={g:function(e,t){var n=new Lo;return DP(t,n),PP(e,n,this._defsUsePending,!1,!1),n},rect:function(e,t){var n=new du;return DP(t,n),PP(e,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(e,t){var n=new ly;return DP(t,n),PP(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),n.silent=!0,n},line:function(e,t){var n=new Wy;return DP(t,n),PP(e,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(e,t){var n=new hy;return DP(t,n),PP(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(e,t){var n,i=e.getAttribute("points");i&&(n=LP(i));var r=new By({shape:{points:n||[]},silent:!0});return DP(t,r),PP(e,r,this._defsUsePending,!1,!1),r},polyline:function(e,t){var n,i=e.getAttribute("points");i&&(n=LP(i));var r=new Vy({shape:{points:n||[]},silent:!0});return DP(t,r),PP(e,r,this._defsUsePending,!1,!1),r},image:function(e,t){var n=new iu;return DP(t,n),PP(e,n,this._defsUsePending,!1,!1),n.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),n.silent=!0,n},text:function(e,t){var n=e.getAttribute("x")||"0",i=e.getAttribute("y")||"0",r=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(r),this._textY=parseFloat(i)+parseFloat(o);var a=new Lo;return DP(t,a),PP(e,a,this._defsUsePending,!1,!0),a},tspan:function(e,t){var n=e.getAttribute("x"),i=e.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=i&&(this._textY=parseFloat(i));var r=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",a=new Lo;return DP(t,a),PP(e,a,this._defsUsePending,!1,!0),this._textX+=parseFloat(r),this._textY+=parseFloat(o),a},path:function(e,t){var n=e.getAttribute("d")||"",i=ny(n);return DP(t,i),PP(e,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),e}(),TP={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),n=parseInt(e.getAttribute("y1")||"0",10),i=parseInt(e.getAttribute("x2")||"10",10),r=parseInt(e.getAttribute("y2")||"0",10),o=new rm(t,n,i,r);return kP(e,o),AP(e,o),o},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),n=parseInt(e.getAttribute("cy")||"0",10),i=parseInt(e.getAttribute("r")||"0",10),r=new am(t,n,i);return kP(e,r),AP(e,r),r}};function kP(e,t){var n=e.getAttribute("gradientUnits");"userSpaceOnUse"===n&&(t.global=!0)}function AP(e,t){var n=e.firstChild;while(n){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var i=n.getAttribute("offset"),r=void 0;r=i&&i.indexOf("%")>0?parseInt(i,10)/100:i?parseFloat(i):0;var o={};GP(n,o,o);var a=o.stopColor||n.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:r,color:a})}n=n.nextSibling}}function DP(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),F(t.__inheritedStyle,e.__inheritedStyle))}function LP(e){for(var t=FP(e),n=[],i=0;i0;o-=2){var a=i[o],s=i[o-1],l=FP(a);switch(r=r||kr(),s){case"translate":Pr(r,r,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Rr(r,r,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Or(r,r,-parseFloat(l[0])*VP);break;case"skewX":var u=Math.tan(parseFloat(l[0])*VP);Lr(r,[1,0,u,1,0,0],r);break;case"skewY":var c=Math.tan(parseFloat(l[0])*VP);Lr(r,[1,c,0,1,0,0],r);break;case"matrix":r[0]=parseFloat(l[0]),r[1]=parseFloat(l[1]),r[2]=parseFloat(l[2]),r[3]=parseFloat(l[3]),r[4]=parseFloat(l[4]),r[5]=parseFloat(l[5]);break}}t.setLocalTransform(r)}}var qP=/([^\s:;]+)\s*:\s*([^:;]+)/g;function GP(e,t,n){var i=e.getAttribute("style");if(i){var r;qP.lastIndex=0;while(null!=(r=qP.exec(i))){var o=r[1],a=Ie(wP,o)?wP[o]:null;a&&(t[a]=r[2]);var s=Ie(MP,o)?MP[o]:null;s&&(n[s]=r[2])}}}function WP(e,t,n){for(var i=0;in&&(e=r,n=a)}if(e)return QP(e.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},t.prototype.getBoundingRect=function(e){var t=this._rect;if(t&&!e)return t;var n=[1/0,1/0],i=[-1/0,-1/0],r=this.geometries;return G(r,(function(t){"polygon"===t.type?JP(t.exterior,n,i,e):G(t.points,(function(t){JP(t,n,i,e)}))})),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),t=new oo(n[0],n[1],i[0]-n[0],i[1]-n[1]),e||(this._rect=t),t},t.prototype.contain=function(e){var t=this.getBoundingRect(),n=this.geometries;if(!t.contain(e[0],e[1]))return!1;e:for(var i=0,r=n.length;i>1^-(1&s),l=l>>1^-(1&l),s+=r,l+=o,r=s,o=l,i.push([s/n,l/n])}return i}function dO(e,t){return e=uO(e),W(j(e.features,(function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0})),(function(e){var n=e.properties,i=e.geometry,r=[];switch(i.type){case"Polygon":var o=i.coordinates;r.push(new tO(o[0],o.slice(1)));break;case"MultiPolygon":G(i.coordinates,(function(e){e[0]&&r.push(new tO(e[0],e.slice(1)))}));break;case"LineString":r.push(new nO([i.coordinates]));break;case"MultiLineString":r.push(new nO(i.coordinates))}var a=new iO(n[t||"name"],r,n.cp);return a.properties=n,a}))}for(var pO=[126,25],fO="南海诸岛",gO=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],vO=0;vO0,g={api:n,geo:s,mapOrGeoModel:e,data:a,isVisualEncodedByVisualMap:f,isGeo:o,transformInfoRaw:h};"geoJSON"===s.resourceType?this._buildGeoJSON(g):"geoSVG"===s.resourceType&&this._buildSVG(g),this._updateController(e,t,n),this._updateMapSelectHandler(e,l,n,i)},e.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=we(),n=we(),i=this._regionsGroup,r=e.transformInfoRaw,o=e.mapOrGeoModel,a=e.data,s=e.geo.projection,l=s&&s.stream;function u(e,t){return t&&(e=t(e)),e&&[e[0]*r.scaleX+r.x,e[1]*r.scaleY+r.y]}function c(e){for(var t=[],n=!l&&s&&s.project,i=0;i=0)&&(d=r);var p=a?{normal:{align:"center",verticalAlign:"middle"}}:null;sh(t,lh(i),{labelFetcher:d,labelDataIndex:h,defaultText:n},p);var f=t.getTextContent();if(f&&(OO(f).ignore=f.ignore,t.textConfig&&a)){var g=t.getBoundingRect().clone();t.textConfig.layoutRect=g,t.textConfig.position=[(a[0]-g.x)/g.width*100+"%",(a[1]-g.y)/g.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function zO(e,t,n,i,r,o){e.data?e.data.setItemGraphicEl(o,t):Lu(t).eventData={componentType:"geo",componentIndex:r.componentIndex,geoIndex:r.componentIndex,name:n,region:i&&i.option||{}}}function VO(e,t,n,i,r){e.data||Um({el:t,componentModel:r,itemName:n,itemTooltipOption:i.get("tooltip")})}function HO(e,t,n,i,r){t.highDownSilentOnTouch=!!r.get("selectedMode");var o=i.getModel("emphasis"),a=o.get("focus");return Ec(t,a,o.get("blurScope"),o.get("disabled")),e.isGeo&&qc(t,r,n),a}function qO(e,t,n){var i,r=[];function o(){i=[]}function a(){i.length&&(r.push(i),i=[])}var s=t({polygonStart:o,polygonEnd:a,lineStart:o,lineEnd:a,point:function(e,t){isFinite(e)&&isFinite(t)&&i.push([e,t])},sphere:function(){}});return!n&&s.polygonStart(),G(e,(function(e){s.lineStart();for(var t=0;t-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(Ov);const ZO=jO;function YO(e,t){var n={};return G(e,(function(e){e.each(e.mapDimension("value"),(function(t,i){var r="ec-"+e.getName(i);n[r]=n[r]||[],isNaN(t)||n[r].push(t)}))})),e[0].map(e[0].mapDimension("value"),(function(i,r){for(var o,a="ec-"+e[0].getName(r),s=0,l=1/0,u=-1/0,c=n[a].length,h=0;h1?(p.width=d,p.height=d/x):(p.height=d,p.width=d*x),p.y=h[1]-p.height/2,p.x=h[0]-p.width/2;else{var b=e.getBoxLayoutParams();b.aspect=x,p=$d(b,{width:y,height:m})}this.setViewRect(p.x,p.y,p.width,p.height),this.setCenter(e.get("center"),t),this.setZoom(e.get("zoom"))}function sR(e,t){G(t.get("geoCoord"),(function(t,n){e.addGeoCoord(n,t)}))}var lR=function(){function e(){this.dimensions=nR}return e.prototype.create=function(e,t){var n=[];function i(e){return{nameProperty:e.get("nameProperty"),aspectScale:e.get("aspectScale"),projection:e.get("projection")}}e.eachComponent("geo",(function(e,r){var o=e.get("map"),a=new oR(o+r,o,B({nameMap:e.get("nameMap")},i(e)));a.zoomLimit=e.get("scaleLimit"),n.push(a),e.coordinateSystem=a,a.model=e,a.resize=aR,a.resize(e,t)})),e.eachSeries((function(e){var t=e.get("coordinateSystem");if("geo"===t){var i=e.get("geoIndex")||0;e.coordinateSystem=n[i]}}));var r={};return e.eachSeriesByType("map",(function(e){if(!e.getHostGeoModel()){var t=e.getMapType();r[t]=r[t]||[],r[t].push(e)}})),G(r,(function(e,r){var o=W(e,(function(e){return e.get("nameMap")})),a=new oR(r,r,B({nameMap:N(o)},i(e[0])));a.zoomLimit=he.apply(null,W(e,(function(e){return e.get("scaleLimit")}))),n.push(a),a.resize=aR,a.resize(e[0],t),G(e,(function(e){e.coordinateSystem=a,sR(a,e)}))})),n},e.prototype.getFilledRegions=function(e,t,n,i){for(var r=(e||[]).slice(),o=we(),a=0;a=0;a--){var s=i[a];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:a,thread:null},r.push(s)}}function bR(e,t){var n=e.isExpand?e.children:[],i=e.parentNode.children,r=e.hierNode.i?i[e.hierNode.i-1]:null;if(n.length){IR(e);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;r?(e.hierNode.prelim=r.hierNode.prelim+t(e,r),e.hierNode.modifier=e.hierNode.prelim-o):e.hierNode.prelim=o}else r&&(e.hierNode.prelim=r.hierNode.prelim+t(e,r));e.parentNode.hierNode.defaultAncestor=TR(e,r,e.parentNode.hierNode.defaultAncestor||i[0],t)}function wR(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function SR(e){return arguments.length?e:PR}function MR(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function CR(e,t){return $d(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function IR(e){var t=e.children,n=t.length,i=0,r=0;while(--n>=0){var o=t[n];o.hierNode.prelim+=i,o.hierNode.modifier+=i,r+=o.hierNode.change,i+=o.hierNode.shift+r}}function TR(e,t,n,i){if(t){var r=e,o=e,a=o.parentNode.children[0],s=t,l=r.hierNode.modifier,u=o.hierNode.modifier,c=a.hierNode.modifier,h=s.hierNode.modifier;while(s=kR(s),o=AR(o),s&&o){r=kR(r),a=AR(a),r.hierNode.ancestor=e;var d=s.hierNode.prelim+h-o.hierNode.prelim-u+i(s,o);d>0&&(LR(DR(s,e,n),e,d),u+=d,l+=d),h+=s.hierNode.modifier,u+=o.hierNode.modifier,l+=r.hierNode.modifier,c+=a.hierNode.modifier}s&&!kR(r)&&(r.hierNode.thread=s,r.hierNode.modifier+=h-l),o&&!AR(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=u-c,n=e)}return n}function kR(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function AR(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function DR(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function LR(e,t,n){var i=n/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=i,t.hierNode.shift+=n,t.hierNode.modifier+=n,t.hierNode.prelim+=n,e.hierNode.change+=i}function PR(e,t){return e.parentNode===t.parentNode?1:2}var OR=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),RR=function(e){function t(t){return e.call(this,t)||this}return o(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new OR},t.prototype.buildPath=function(e,t){var n=t.childPoints,i=n.length,r=t.parentPoint,o=n[0],a=n[i-1];if(1===i)return e.moveTo(r[0],r[1]),void e.lineTo(o[0],o[1]);var s=t.orient,l="TB"===s||"BT"===s?0:1,u=1-l,c=Go(t.forkPosition,1),h=[];h[l]=r[l],h[u]=r[u]+(a[u]-r[u])*c,e.moveTo(r[0],r[1]),e.lineTo(h[0],h[1]),e.moveTo(o[0],o[1]),h[l]=o[l],e.lineTo(h[0],h[1]),h[l]=a[l],e.lineTo(h[0],h[1]),e.lineTo(a[0],a[1]);for(var d=1;dm.x,b||(_-=Math.PI));var S=b?"left":"right",M=s.getModel("label"),C=M.get("rotate"),I=C*(Math.PI/180),T=v.getTextContent();T&&(v.setTextConfig({position:M.get("position")||S,rotation:null==C?-_:I,origin:"center"}),T.setStyle("verticalAlign","middle"))}var k=s.get(["emphasis","focus"]),A="relative"===k?Se(a.getAncestorsIndices(),a.getDescendantIndices()):"ancestor"===k?a.getAncestorsIndices():"descendant"===k?a.getDescendantIndices():null;A&&(Lu(n).focus=A),FR(r,a,c,n,f,p,g,i),n.__edge&&(n.onHoverStateChange=function(t){if("blur"!==t){var i=a.parentNode&&e.getItemGraphicEl(a.parentNode.dataIndex);i&&i.hoverState===Fu||sc(n.__edge,t)}})}function FR(e,t,n,i,r,o,a,s){var l=t.getModel(),u=e.get("edgeShape"),c=e.get("layout"),h=e.getOrient(),d=e.get(["lineStyle","curveness"]),p=e.get("edgeForkPosition"),f=l.getModel("lineStyle").getLineStyle(),g=i.__edge;if("curve"===u)t.parentNode&&t.parentNode!==n&&(g||(g=i.__edge=new $y({shape:qR(c,h,d,r,r)})),Xc(g,{shape:qR(c,h,d,o,a)},e));else if("polyline"===u)if("orthogonal"===c){if(t!==n&&t.children&&0!==t.children.length&&!0===t.isExpand){for(var v=t.children,y=[],m=0;mt&&(t=i.height)}this.height=t+1},e.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,i=n.length;t=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,n=t.data.getItemModel(this.dataIndex);return n.getModel(e)}},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},e.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t=0){var i=n.getData().tree.root,r=e.targetNode;if(ee(r)&&(r=i.getNodeById(r)),r&&i.contains(r))return{node:r};var o=e.targetNodeId;if(null!=o&&(r=i.getNodeById(o)))return{node:r}}}function aE(e){var t=[];while(e)e=e.parentNode,e&&t.push(e);return t.reverse()}function sE(e,t){var n=aE(e);return z(n,t)>=0}function lE(e,t){var n=[];while(e){var i=e.dataIndex;n.push({name:e.name,dataIndex:i,value:t.getRawValue(i)}),e=e.parentNode}return n.reverse(),n}var uE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return o(t,e),t.prototype.getInitialData=function(e){var t={name:e.name,children:e.data},n=e.leaves||{},i=new Oh(n,this,this.ecModel),r=rE.createTree(t,this,o);function o(e){e.wrapMethod("getItemModel",(function(e,t){var n=r.getNodeByDataIndex(t);return n&&n.children.length&&n.isExpand||(e.parentModel=i),e}))}var a=0;r.eachNode("preorder",(function(e){e.depth>a&&(a=e.depth)}));var s=e.expandAndCollapse,l=s&&e.initialTreeDepth>=0?e.initialTreeDepth:a;return r.root.eachNode("preorder",(function(e){var t=e.hostTree.data.getRawDataItem(e.dataIndex);e.isExpand=t&&null!=t.collapsed?!t.collapsed:e.depth<=l})),r.data},t.prototype.getOrient=function(){var e=this.get("orient");return"horizontal"===e?e="LR":"vertical"===e&&(e="TB"),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,t,n){var i=this.getData().tree,r=i.root.children[0],o=i.getNodeByDataIndex(e),a=o.getValue(),s=o.name;while(o&&o!==r)s=o.parentNode.name+"."+s,o=o.parentNode;return iv("nameValue",{name:s,value:a,noValue:isNaN(a)||null==a})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=lE(i,this),n.collapsed=!i.isExpand,n},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(Ov);const cE=uE;function hE(e,t,n){var i,r=[e],o=[];while(i=r.pop())if(o.push(i),i.isExpand){var a=i.children;if(a.length)for(var s=0;s=0;o--)i.push(r[o])}}function pE(e,t){e.eachSeriesByType("tree",(function(e){fE(e,t)}))}function fE(e,t){var n=CR(e,t);e.layoutInfo=n;var i=e.get("layout"),r=0,o=0,a=null;"radial"===i?(r=2*Math.PI,o=Math.min(n.height,n.width)/2,a=SR((function(e,t){return(e.parentNode===t.parentNode?1:2)/e.depth}))):(r=n.width,o=n.height,a=SR());var s=e.getData().tree.root,l=s.children[0];if(l){_R(s),hE(l,bR,a),s.hierNode.modifier=-l.hierNode.prelim,dE(l,wR);var u=l,c=l,h=l;dE(l,(function(e){var t=e.getLayout().x;tc.getLayout().x&&(c=e),e.depth>h.depth&&(h=e)}));var d=u===c?1:a(u,c)/2,p=d-u.getLayout().x,f=0,g=0,v=0,y=0;if("radial"===i)f=r/(c.getLayout().x+d+p),g=o/(h.depth-1||1),dE(l,(function(e){v=(e.getLayout().x+p)*f,y=(e.depth-1)*g;var t=MR(v,y);e.setLayout({x:t.x,y:t.y,rawX:v,rawY:y},!0)}));else{var m=e.getOrient();"RL"===m||"LR"===m?(g=o/(c.getLayout().x+d+p),f=r/(h.depth-1||1),dE(l,(function(e){y=(e.getLayout().x+p)*g,v="LR"===m?(e.depth-1)*f:r-(e.depth-1)*f,e.setLayout({x:v,y},!0)}))):"TB"!==m&&"BT"!==m||(f=r/(c.getLayout().x+d+p),g=o/(h.depth-1||1),dE(l,(function(e){v=(e.getLayout().x+p)*f,y="TB"===m?(e.depth-1)*g:o-(e.depth-1)*g,e.setLayout({x:v,y},!0)})))}}}function gE(e){e.eachSeriesByType("tree",(function(e){var t=e.getData(),n=t.tree;n.eachNode((function(e){var n=e.getModel(),i=n.getModel("itemStyle").getItemStyle(),r=t.ensureUniqueItemVisual(e.dataIndex,"style");B(r,i)}))}))}function vE(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var n=e.dataIndex,i=t.getData().tree,r=i.getNodeByDataIndex(n);r.isExpand=!r.isExpand}))})),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(e,t,n){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var i=t.coordinateSystem,r=fR(i,e,void 0,n);t.setCenter&&t.setCenter(r.center),t.setZoom&&t.setZoom(r.zoom)}))}))}function yE(e){e.registerChartView(GR),e.registerSeriesModel(cE),e.registerLayout(pE),e.registerVisual(gE),vE(e)}var mE=["treemapZoomToNode","treemapRender","treemapMove"];function xE(e){for(var t=0;t1)n=n.parentNode;var r=Np(e.ecModel,n.name||n.dataIndex+"",i);t.setVisual("decal",r)}))}var bE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.preventUsingHoverLayer=!0,n}return o(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};wE(n);var i=e.levels||[],r=this.designatedVisualItemStyle={},o=new Oh({itemStyle:r},this,t);i=e.levels=SE(i,t);var a=W(i||[],(function(e){return new Oh(e,o,t)}),this),s=rE.createTree(n,this,l);function l(e){e.wrapMethod("getItemModel",(function(e,t){var n=s.getNodeByDataIndex(t),i=n?a[n.depth]:null;return e.parentModel=i||o,e}))}return s.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),r=this.getRawValue(e),o=i.getName(e);return iv("nameValue",{name:o,value:r})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=lE(i,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},B(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var t=this._idIndexMap;t||(t=this._idIndexMap=we(),this._idIndexMapCount=0);var n=t.get(e);return null==n&&t.set(e,n=this._idIndexMapCount++),n},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){_E(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(Ov);function wE(e){var t=0;G(e.children,(function(e){wE(e);var n=e.value;J(n)&&(n=n[0]),t+=n}));var n=e.value;J(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),n<0&&(n=0),J(e.value)?e.value[0]=n:e.value=n}function SE(e,t){var n=ga(t.get("color")),i=ga(t.get(["aria","decal","decals"]));if(n){var r,o;e=e||[],G(e,(function(e){var t=new Oh(e),n=t.get("color"),i=t.get("decal");(t.get(["itemStyle","color"])||n&&"none"!==n)&&(r=!0),(t.get(["itemStyle","decal"])||i&&"none"!==i)&&(o=!0)}));var a=e[0]||(e[0]={});return r||(a.color=n.slice()),!o&&i&&(a.decal=i.slice()),e}}const ME=bE;var CE=8,IE=8,TE=5,kE=function(){function e(e){this.group=new Lo,e.add(this.group)}return e.prototype.render=function(e,t,n,i){var r=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),r.get("show")&&n){var a=r.getModel("itemStyle"),s=a.getModel("textStyle"),l={pos:{left:r.get("left"),right:r.get("right"),top:r.get("top"),bottom:r.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:r.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,l,s),this._renderContent(e,l,a,s,i),Xd(o,l.pos,l.box)}},e.prototype._prepare=function(e,t,n){for(var i=e;i;i=i.parentNode){var r=Aa(i.getModel().get("name"),""),o=n.getTextRect(r),a=Math.max(o.width+2*CE,t.emptyItemWidth);t.totalWidth+=a+IE,t.renderList.push({node:i,text:r,width:a})}},e.prototype._renderContent=function(e,t,n,i,r){for(var o=0,a=t.emptyItemWidth,s=e.get(["breadcrumb","height"]),l=Yd(t.pos,t.box),u=t.totalWidth,c=t.renderList,h=c.length-1;h>=0;h--){var d=c[h],p=d.node,f=d.width,g=d.text;u>l.width&&(u-=f-a,f=a,g=null);var v=new By({shape:{points:AE(o,0,f,s,h===c.length-1,0===h)},style:F(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new Du({style:{text:g,fill:i.getTextColor(),font:i.getFont()}}),textConfig:{position:"inside"},z2:1e4*qu,onclick:K(r,p)});v.disableLabelAnimation=!0,this.group.add(v),DE(v,e,p),o+=f+IE}},e.prototype.remove=function(){this.group.removeAll()},e}();function AE(e,t,n,i,r,o){var a=[[r?e:e-TE,t],[e+n,t],[e+n,t+i],[r?e:e-TE,t+i]];return!o&&a.splice(2,0,[e+n+TE,t+i/2]),!r&&a.push([e,t+i/2]),a}function DE(e,t,n){Lu(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&lE(n,t)}}const LE=kE;var PE=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(e,t,n,i,r){return!this._elExistsMap[e.id]&&(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:n,delay:i,easing:r}),!0)},e.prototype.finished=function(e){return this._finishedCallback=e,this},e.prototype.start=function(){for(var e=this,t=this._storage.length,n=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},i=0,r=this._storage.length;iNE||Math.abs(e.dy)>NE)){var t=this.seriesModel.getData().tree.root;if(!t)return;var n=t.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+e.dx,y:n.y+e.dy,width:n.width,height:n.height}})}},t.prototype._onZoom=function(e){var t=e.originX,n=e.originY;if("animating"!==this._state){var i=this.seriesModel.getData().tree.root;if(!i)return;var r=i.getLayout();if(!r)return;var o=new oo(r.x,r.y,r.width,r.height),a=this.seriesModel.layoutInfo;t-=a.x,n-=a.y;var s=kr();Pr(s,s,[-t,-n]),Rr(s,s,[e.scale,e.scale]),Pr(s,s,[t,n]),o.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x,y:o.y,width:o.width,height:o.height}})}},t.prototype._initEvents=function(e){var t=this;e.on("click",(function(e){if("ready"===t._state){var n=t.seriesModel.get("nodeClick",!0);if(n){var i=t.findTarget(e.offsetX,e.offsetY);if(i){var r=i.node;if(r.getLayout().isLeafRoot)t._rootToNode(i);else if("zoomToNode"===n)t._zoomToNode(i);else if("link"===n){var o=r.hostTree.data.getItemModel(r.dataIndex),a=o.get("link",!0),s=o.get("target",!0)||"blank";a&&qd(a,s)}}}}}),this)},t.prototype._renderBreadcrumb=function(e,t,n){var i=this;n||(n=null!=e.get("leafDepth",!0)?{node:e.getViewRoot()}:this.findTarget(t.getWidth()/2,t.getHeight()/2),n||(n={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new LE(this.group))).render(e,t,n.node,(function(t){"animating"!==i._state&&(sE(e.getViewRoot(),t)?i._rootToNode({node:t}):i._zoomToNode({node:t}))}))},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=jE(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,t){var n,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},(function(i){var r=this._storage.background[i.getRawIndex()];if(r){var o=r.transformCoordToLocal(e,t),a=r.shape;if(!(a.x<=o[0]&&o[0]<=a.x+a.width&&a.y<=o[1]&&o[1]<=a.y+a.height))return!1;n={node:i,offsetX:o[0],offsetY:o[1]}}}),this),n},t.type="treemap",t}(nx);function jE(){return{nodeGroup:[],background:[],content:[]}}function ZE(e,t,n,i,r,o,a,s,l,u){if(a){var c=a.getLayout(),h=e.getData(),d=a.getModel();if(h.setItemGraphicEl(a.dataIndex,null),c&&c.isInView){var p=c.width,f=c.height,g=c.borderWidth,v=c.invisible,y=a.getRawIndex(),m=s&&s.getRawIndex(),x=a.viewChildren,_=c.upperHeight,b=x&&x.length,w=d.getModel("itemStyle"),S=d.getModel(["emphasis","itemStyle"]),M=d.getModel(["blur","itemStyle"]),C=d.getModel(["select","itemStyle"]),I=w.get("borderRadius")||0,T=H("nodeGroup",RE);if(T){if(l.add(T),T.x=c.x||0,T.y=c.y||0,T.markRedraw(),WE(T).nodeWidth=p,WE(T).nodeHeight=f,c.isAboveViewRoot)return T;var k=H("background",EE,u,VE);k&&E(T,k,b&&c.upperLabelHeight);var A=d.getModel("emphasis"),D=A.get("focus"),L=A.get("blurScope"),P=A.get("disabled"),O="ancestor"===D?a.getAncestorsIndices():"descendant"===D?a.getDescendantIndices():D;if(b)Hc(T)&&Vc(T,!1),k&&(Vc(k,!P),h.setItemGraphicEl(a.dataIndex,k),Nc(k,O,L));else{var R=H("content",EE,u,HE);R&&N(T,R),k.disableMorphing=!0,k&&Hc(k)&&Vc(k,!1),Vc(T,!P),h.setItemGraphicEl(a.dataIndex,T),Nc(T,O,L)}return T}}}function E(t,n,i){var r=Lu(n);if(r.dataIndex=a.dataIndex,r.seriesIndex=e.seriesIndex,n.setShape({x:0,y:0,width:p,height:f,r:I}),v)F(n);else{n.invisible=!1;var o=a.getVisual("style"),s=o.stroke,l=GE(w);l.fill=s;var u=qE(S);u.fill=S.get("borderColor");var c=qE(M);c.fill=M.get("borderColor");var h=qE(C);if(h.fill=C.get("borderColor"),i){var d=p-2*g;z(n,s,o.opacity,{x:g,y:0,width:d,height:_})}else n.removeTextContent();n.setStyle(l),n.ensureState("emphasis").style=u,n.ensureState("blur").style=c,n.ensureState("select").style=h,pc(n)}t.add(n)}function N(t,n){var i=Lu(n);i.dataIndex=a.dataIndex,i.seriesIndex=e.seriesIndex;var r=Math.max(p-2*g,0),o=Math.max(f-2*g,0);if(n.culling=!0,n.setShape({x:g,y:g,width:r,height:o,r:I}),v)F(n);else{n.invisible=!1;var s=a.getVisual("style"),l=s.fill,u=GE(w);u.fill=l,u.decal=s.decal;var c=qE(S),h=qE(M),d=qE(C);z(n,l,s.opacity,null),n.setStyle(u),n.ensureState("emphasis").style=c,n.ensureState("blur").style=h,n.ensureState("select").style=d,pc(n)}t.add(n)}function F(e){!e.invisible&&o.push(e)}function z(t,n,i,r){var o=d.getModel(r?FE:BE),s=Aa(d.get("name"),null),l=o.getShallow("show");sh(t,lh(d,r?FE:BE),{defaultText:l?s:null,inheritColor:n,defaultOpacity:i,labelFetcher:e,labelDataIndex:a.dataIndex});var u=t.getTextContent();if(u){var h=u.style,p=ge(h.padding||0);r&&(t.setTextConfig({layoutRect:r}),u.disableLabelLayout=!0),u.beforeUpdate=function(){var e=Math.max((r?r.width:t.shape.width)-p[1]-p[3],0),n=Math.max((r?r.height:t.shape.height)-p[0]-p[2],0);h.width===e&&h.height===n||u.setStyle({width:e,height:n})},h.truncateMinChar=2,h.lineOverflow="truncate",V(h,r,c);var f=u.getState("emphasis");V(f?f.style:null,r,c)}}function V(t,n,i){var r=t?t.text:null;if(!n&&i.isLeafRoot&&null!=r){var o=e.get("drillDownIcon",!0);t.text=o?o+" "+r:r}}function H(e,i,o,a){var s=null!=m&&n[e][m],l=r[e];return s?(n[e][m]=null,q(l,s)):v||(s=new i,s instanceof qs&&(s.z2=YE(o,a)),G(l,s)),t[e][y]=s}function q(e,t){var n=e[y]={};t instanceof RE?(n.oldX=t.x,n.oldY=t.y):n.oldShape=B({},t.shape)}function G(e,t){var n=e[y]={},o=a.parentNode,s=t instanceof Lo;if(o&&(!i||"drillDown"===i.direction)){var l=0,u=0,c=r.background[o.getRawIndex()];!i&&c&&c.oldShape&&(l=c.oldShape.width,u=c.oldShape.height),s?(n.oldX=0,n.oldY=u):n.oldShape={x:l,y:u,width:0,height:0}}n.fadein=!s}}function YE(e,t){return e*zE+t}const $E=UE;var XE=G,KE=ie,JE=-1,QE=function(){function e(t){var n=t.mappingMethod,i=t.type,r=this.option=R(t);this.type=i,this.mappingMethod=n,this._normalizeData=hN[n];var o=e.visualHandlers[i];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[n],"piecewise"===n?(nN(r),eN(r)):"category"===n?r.categories?tN(r):nN(r,!0):(ve("linear"!==n||r.dataExtent),nN(r))}return e.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},e.prototype.getNormalizer=function(){return X(this._normalizeData,this)},e.listVisualTypes=function(){return Y(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(e,t,n){ie(e)?G(e,t,n):t.call(n,e)},e.mapVisual=function(t,n,i){var r,o=J(t)?[]:ie(t)?{}:(r=!0,null);return e.eachVisual(t,(function(e,t){var a=n.call(i,e,t);r?o=a:o[t]=a})),o},e.retrieveVisuals=function(t){var n,i={};return t&&XE(e.visualHandlers,(function(e,r){t.hasOwnProperty(r)&&(i[r]=t[r],n=!0)})),n?i:null},e.prepareVisualTypes=function(e){if(J(e))e=e.slice();else{if(!KE(e))return[];var t=[];XE(e,(function(e,n){t.push(n)})),e=t}return e.sort((function(e,t){return"color"===t&&"color"!==e&&0===e.indexOf("color")?1:-1})),e},e.dependsOn=function(e,t){return"color"===t?!(!e||0!==e.indexOf(t)):e===t},e.findPieceIndex=function(e,t,n){for(var i,r=1/0,o=0,a=t.length;o=0;o--)null==i[o]&&(delete n[t[o]],t.pop())}function nN(e,t){var n=e.visual,i=[];ie(n)?XE(n,(function(e){i.push(e)})):null!=n&&i.push(n);var r={color:1,symbol:1};t||1!==i.length||r.hasOwnProperty(e.type)||(i[1]=i[0]),cN(e,i)}function iN(e){return{applyVisual:function(t,n,i){var r=this.mapValueToVisual(t);i("color",e(n("color"),r))},_normalizedToVisual:lN([0,1])}}function rN(e){var t=this.option.visual;return t[Math.round(qo(e,[0,1],[0,t.length-1],!0))]||{}}function oN(e){return function(t,n,i){i(e,this.mapValueToVisual(t))}}function aN(e){var t=this.option.visual;return t[this.option.loop&&e!==JE?e%t.length:e]}function sN(){return this.option.visual[0]}function lN(e){return{linear:function(t){return qo(t,e,this.option.visual,!0)},category:aN,piecewise:function(t,n){var i=uN.call(this,n);return null==i&&(i=qo(t,e,this.option.visual,!0)),i},fixed:sN}}function uN(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var i=QE.findPieceIndex(e,n),r=n[i];if(r&&r.visual)return r.visual[this.type]}}function cN(e,t){return e.visual=t,"color"===e.type&&(e.parsedVisual=W(t,(function(e){var t=Jn(e);return t||[0,0,0,1]}))),t}var hN={linear:function(e){return qo(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=QE.findPieceIndex(e,t,!0);if(null!=n)return qo(n,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return null==t?JE:t},fixed:Te};function dN(e,t,n){return e?t<=n:t=n.length||e===n[e.depth]){var o=MN(r,u,e,t,f,i);yN(e,o,n,i)}}))}else s=xN(u),c.fill=s}}function mN(e,t,n){var i=B({},t),r=n.designatedVisualItemStyle;return G(["color","colorAlpha","colorSaturation"],(function(n){r[n]=t[n];var o=e.get(n);r[n]=null,null!=o&&(i[n]=o)})),i}function xN(e){var t=bN(e,"color");if(t){var n=bN(e,"colorAlpha"),i=bN(e,"colorSaturation");return i&&(t=ri(t,null,null,i)),n&&(t=oi(t,n)),t}}function _N(e,t){return null!=t?ri(t,null,null,e):null}function bN(e,t){var n=e[t];if(null!=n&&"none"!==n)return n}function wN(e,t,n,i,r,o){if(o&&o.length){var a=SN(t,"color")||null!=r.color&&"none"!==r.color&&(SN(t,"colorAlpha")||SN(t,"colorSaturation"));if(a){var s=t.get("visualMin"),l=t.get("visualMax"),u=n.dataExtent.slice();null!=s&&su[1]&&(u[1]=l);var c=t.get("colorMappingBy"),h={type:a.name,dataExtent:u,visual:a.range};"color"!==h.type||"index"!==c&&"id"!==c?h.mappingMethod="linear":(h.mappingMethod="category",h.loop=!0);var d=new pN(h);return gN(d).drColorMappingBy=c,d}}}function SN(e,t){var n=e.get(t);return J(n)&&n.length?{name:t,range:n}:null}function MN(e,t,n,i,r,o){var a=B({},t);if(r){var s=r.type,l="color"===s&&gN(r).drColorMappingBy,u="index"===l?i:"id"===l?o.mapIdToIndex(n.getId()):n.getValue(e.get("visualDimension"));a[s]=r.mapValueToVisual(u)}return a}var CN=Math.max,IN=Math.min,TN=he,kN=G,AN=["itemStyle","borderWidth"],DN=["itemStyle","gapWidth"],LN=["upperLabel","show"],PN=["upperLabel","height"];const ON={seriesType:"treemap",reset:function(e,t,n,i){var r=n.getWidth(),o=n.getHeight(),a=e.option,s=$d(e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=a.size||[],u=Go(TN(s.width,l[0]),r),c=Go(TN(s.height,l[1]),o),h=i&&i.type,d=["treemapZoomToNode","treemapRootToNode"],p=oE(i,d,e),f="treemapRender"===h||"treemapMove"===h?i.rootRect:null,g=e.getViewRoot(),v=aE(g);if("treemapMove"!==h){var y="treemapZoomToNode"===h?HN(e,p,g,u,c):f?[f.width,f.height]:[u,c],m=a.sort;m&&"asc"!==m&&"desc"!==m&&(m="desc");var x={squareRatio:a.squareRatio,sort:m,leafDepth:a.leafDepth};g.hostTree.clearLayouts();var _={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};g.setLayout(_),RN(g,x,!1,0),_=g.getLayout(),kN(v,(function(e,t){var n=(v[t+1]||g).getValue();e.setLayout(B({dataExtent:[n,n],borderWidth:0,upperHeight:0},_))}))}var b=e.getData().tree.root;b.setLayout(qN(s,f,p),!0),e.setLayoutInfo(s),GN(b,new oo(-s.x,-s.y,r,o),v,g,0)}};function RN(e,t,n,i){var r,o;if(!e.isRemoved()){var a=e.getLayout();r=a.width,o=a.height;var s=e.getModel(),l=s.get(AN),u=s.get(DN)/2,c=WN(s),h=Math.max(l,c),d=l-u,p=h-u;e.setLayout({borderWidth:l,upperHeight:h,upperLabelHeight:c},!0),r=CN(r-2*d,0),o=CN(o-d-p,0);var f=r*o,g=EN(e,s,f,t,n,i);if(g.length){var v={x:d,y:p,width:r,height:o},y=IN(r,o),m=1/0,x=[];x.area=0;for(var _=0,b=g.length;_=0;l--){var u=r["asc"===i?a-l-1:l].getValue();u/n*ta[1]&&(a[1]=t)}))):a=[NaN,NaN],{sum:i,dataExtent:a}}function zN(e,t,n){for(var i=0,r=1/0,o=0,a=void 0,s=e.length;oi&&(i=a));var l=e.area*e.area,u=t*t*n;return l?CN(u*i/l,l/(u*r)):1/0}function VN(e,t,n,i,r){var o=t===n.width?0:1,a=1-o,s=["x","y"],l=["width","height"],u=n[s[o]],c=t?e.area/t:0;(r||c>n[l[a]])&&(c=n[l[a]]);for(var h=0,d=e.length;hKo&&(u=Ko),a=o}ui&&(i=t);var o=i%2?i+2:i+3;r=[];for(var a=0;a0&&(m[0]=-m[0],m[1]=-m[1]);var _=y[0]<0?-1:1;if("start"!==i.__position&&"end"!==i.__position){var b=-Math.atan2(y[1],y[0]);u[0].8?"left":c[0]<-.8?"right":"center",d=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":i.x=-c[0]*f+l[0],i.y=-c[1]*g+l[1],h=c[0]>.8?"right":c[0]<-.8?"left":"center",d=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=f*_+l[0],i.y=l[1]+w,h=y[0]<0?"right":"left",i.originX=-f*_,i.originY=-w;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=x[0],i.y=x[1]+w,h="center",i.originY=-w;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-f*_+u[0],i.y=u[1]+w,h=y[0]>=0?"right":"left",i.originX=f*_,i.originY=-w;break}i.scaleX=i.scaleY=r,i.setStyle({verticalAlign:i.__verticalAlign||d,align:i.__align||h})}}}function S(e,t){var n=e.__specifiedRotation;if(null==n){var i=a.tangentAt(t);e.attr("rotation",(1===t?-1:1)*Math.PI/2-Math.atan2(i[1],i[0]))}else e.attr("rotation",n)}},t}(Lo);const RB=OB;var EB=function(){function e(e){this.group=new Lo,this._LineCtor=e||RB}return e.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var n=this,i=n.group,r=n._lineData;n._lineData=e,r||i.removeAll();var o=BB(e);e.diff(r).add((function(n){t._doAdd(e,n,o)})).update((function(n,i){t._doUpdate(r,e,i,n,o)})).remove((function(e){i.remove(r.getItemGraphicEl(e))})).execute()},e.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl((function(t,n){t.updateLayout(e,n)}),this)},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=BB(e),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t){function n(e){e.isGroup||NB(e)||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var i=e.start;i0}function BB(e){var t=e.hostModel,n=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:lh(t)}}function FB(e){return isNaN(e[0])||isNaN(e[1])}function zB(e){return e&&!FB(e[0])&&!FB(e[1])}const VB=EB;var HB=[],qB=[],GB=[],WB=Mn,UB=Ue,jB=Math.abs;function ZB(e,t,n){for(var i,r=e[0],o=e[1],a=e[2],s=1/0,l=n*n,u=.1,c=.1;c<=.9;c+=.1){HB[0]=WB(r[0],o[0],a[0],c),HB[1]=WB(r[1],o[1],a[1],c);var h=jB(UB(HB,t)-l);h=0?i+=u:i-=u:f>=0?i-=u:i+=u}return i}function YB(e,t){var n=[],i=kn,r=[[],[],[]],o=[[],[]],a=[];t/=2,e.eachEdge((function(e,s){var l=e.getLayout(),u=e.getVisual("fromSymbol"),c=e.getVisual("toSymbol");l.__original||(l.__original=[Oe(l[0]),Oe(l[1])],l[2]&&l.__original.push(Oe(l[2])));var h=l.__original;if(null!=l[2]){if(Pe(r[0],h[0]),Pe(r[1],h[2]),Pe(r[2],h[1]),u&&"none"!==u){var d=hB(e.node1),p=ZB(r,h[0],d*t);i(r[0][0],r[1][0],r[2][0],p,n),r[0][0]=n[3],r[1][0]=n[4],i(r[0][1],r[1][1],r[2][1],p,n),r[0][1]=n[3],r[1][1]=n[4]}if(c&&"none"!==c){d=hB(e.node2),p=ZB(r,h[1],d*t);i(r[0][0],r[1][0],r[2][0],p,n),r[1][0]=n[1],r[2][0]=n[2],i(r[0][1],r[1][1],r[2][1],p,n),r[1][1]=n[1],r[2][1]=n[2]}Pe(l[0],r[0]),Pe(l[1],r[2]),Pe(l[2],r[1])}else{if(Pe(o[0],h[0]),Pe(o[1],h[1]),Be(a,o[1],o[0]),He(a,a),u&&"none"!==u){d=hB(e.node1);Ne(o[0],o[0],a,d*t)}if(c&&"none"!==c){d=hB(e.node2);Ne(o[1],o[1],a,-d*t)}Pe(l[0],o[0]),Pe(l[1],o[1])}}))}function $B(e){return"view"===e.type}var XB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.init=function(e,t){var n=new kI,i=new VB,r=this.group;this._controller=new gP(t.getZr()),this._controllerHost={target:r},r.add(n.group),r.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},t.prototype.render=function(e,t,n){var i=this,r=e.coordinateSystem;this._model=e;var o=this._symbolDraw,a=this._lineDraw,s=this.group;if($B(r)){var l={x:r.x,y:r.y,scaleX:r.scaleX,scaleY:r.scaleY};this._firstRender?s.attr(l):Xc(s,l,e)}YB(e.getGraph(),cB(e));var u=e.getData();o.updateData(u);var c=e.getEdgeData();a.updateData(c),this._updateNodeAndLinkScale(),this._updateController(e,t,n),clearTimeout(this._layoutTimeout);var h=e.forceLayout,d=e.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,d),u.graph.eachNode((function(e){var t=e.dataIndex,n=e.getGraphicEl(),r=e.getModel();if(n){n.off("drag").off("dragend");var o=r.get("draggable");o&&n.on("drag",(function(){h&&(h.warmUp(),!i._layouting&&i._startForceLayoutIteration(h,d),h.setFixed(t),u.setItemLayout(t,[n.x,n.y]))})).on("dragend",(function(){h&&h.setUnfixed(t)})),n.setDraggable(o&&!!h,!!r.get("cursor"));var a=r.get(["emphasis","focus"]);"adjacency"===a&&(Lu(n).focus=e.getAdjacentDataIndices())}})),u.graph.eachEdge((function(e){var t=e.getGraphicEl(),n=e.getModel().get(["emphasis","focus"]);t&&"adjacency"===n&&(Lu(t).focus={edge:[e.dataIndex],node:[e.node1.dataIndex,e.node2.dataIndex]})}));var p="circular"===e.get("layout")&&e.get(["circular","rotateLabel"]),f=u.getLayout("cx"),g=u.getLayout("cy");u.eachItemGraphicEl((function(e,t){var n=u.getItemModel(t),i=n.get(["label","rotate"])||0,r=e.getSymbolPath();if(p){var o=u.getItemLayout(t),a=Math.atan2(o[1]-g,o[0]-f);a<0&&(a=2*Math.PI+a);var s=o[0]=0&&e.call(t,n[r],r)},e.prototype.eachEdge=function(e,t){for(var n=this.edges,i=n.length,r=0;r=0&&n[r].node1.dataIndex>=0&&n[r].node2.dataIndex>=0&&e.call(t,n[r],r)},e.prototype.breadthFirstTraverse=function(e,t,n,i){if(t instanceof eF||(t=this._nodesMap[JB(t)]),t){for(var r="out"===n?"outEdges":"in"===n?"inEdges":"edges",o=0;o=0&&n.node2.dataIndex>=0}));for(r=0,o=i.length;r=0&&this[e][t].setItemVisual(this.dataIndex,n,i)},getVisual:function(n){return this[e][t].getItemVisual(this.dataIndex,n)},setLayout:function(n,i){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,n,i)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}H(eF,nF("hostGraph","data")),H(tF,nF("hostGraph","edgeData"));const iF=QB;function rF(e,t,n,i,r){for(var o=new iF(i),a=0;a "+d)),u++)}var p,f=n.get("coordinateSystem");if("cartesian2d"===f||"polar"===f)p=vI(e,n);else{var g=ef.get(f),v=g&&g.dimensions||[];z(v,"value")<0&&v.concat(["value"]);var y=QC(e,{coordDimensions:v,encodeDefine:n.getEncode()}).dimensions;p=new JC(y,n),p.initData(e)}var m=new JC(["value"],n);return m.initData(l,s),r&&r(p,m),eE({mainData:p,struct:o,structAttr:"graph",datas:{node:p,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o}var oF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return o(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new Rk(i,i),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(t){e.prototype.mergeDefaultAndTheme.apply(this,arguments),va(t,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,t){var n=e.edges||e.links||[],i=e.data||e.nodes||[],r=this;if(i&&n){rB(this);var o=rF(i,n,this,!0,a);return G(o.edges,(function(e){oB(e.node1,e.node2,this,e.dataIndex)}),this),o.data}function a(e,t){e.wrapMethod("getItemModel",(function(e){var t=r._categoriesModels,n=e.getShallow("category"),i=t[n];return i&&(i.parentModel=e.parentModel,e.parentModel=i),e}));var n=Oh.prototype.getModel;function i(e,t){var i=n.call(this,e,t);return i.resolveParentPath=o,i}function o(e){if(e&&("label"===e[0]||"label"===e[1])){var t=e.slice();return"label"===e[0]?t[0]="edgeLabel":"label"===e[1]&&(t[1]="edgeLabel"),t}return e}t.wrapMethod("getItemModel",(function(e){return e.resolveParentPath=o,e.getModel=i,e}))}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,t,n){if("edge"===n){var i=this.getData(),r=this.getDataParams(e,n),o=i.graph.getEdgeByIndex(e),a=i.getName(o.node1.dataIndex),s=i.getName(o.node2.dataIndex),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),iv("nameValue",{name:l.join(" > "),value:r.value,noValue:null==r.value})}var u=xv({series:this,dataIndex:e,multipleSeries:t});return u},t.prototype._updateCategoriesData=function(){var e=W(this.option.categories||[],(function(e){return null!=e.value?e:B({value:0},e)})),t=new JC(["value"],this);t.initData(e),this._categoriesData=t,this._categoriesModels=t.mapArray((function(e){return t.getItemModel(e)}))},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(Ov);const aF=oF;var sF={type:"graphRoam",event:"graphRoam",update:"none"};function lF(e){e.registerChartView(KB),e.registerSeriesModel(aF),e.registerProcessor(jN),e.registerVisual(ZN),e.registerVisual($N),e.registerLayout(uB),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,vB),e.registerLayout(xB),e.registerCoordinateSystem("graphView",{dimensions:eR.dimensions,create:bB}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Te),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Te),e.registerAction(sF,(function(e,t,n){t.eachComponent({mainType:"series",query:e},(function(t){var i=t.coordinateSystem,r=fR(i,e,void 0,n);t.setCenter&&t.setCenter(r.center),t.setZoom&&t.setZoom(r.zoom)}))}))}var uF=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),cF=function(e){function t(t){var n=e.call(this,t)||this;return n.type="pointer",n}return o(t,e),t.prototype.getDefaultShape=function(){return new uF},t.prototype.buildPath=function(e,t){var n=Math.cos,i=Math.sin,r=t.r,o=t.width,a=t.angle,s=t.x-n(a)*o*(o>=r/3?1:2),l=t.y-i(a)*o*(o>=r/3?1:2);a=t.angle-Math.PI/2,e.moveTo(s,l),e.lineTo(t.x+n(a)*o,t.y+i(a)*o),e.lineTo(t.x+n(t.angle)*r,t.y+i(t.angle)*r),e.lineTo(t.x-n(a)*o,t.y-i(a)*o),e.lineTo(s,l)},t}($l);const hF=cF;function dF(e,t){var n=e.get("center"),i=t.getWidth(),r=t.getHeight(),o=Math.min(i,r),a=Go(n[0],t.getWidth()),s=Go(n[1],t.getHeight()),l=Go(e.get("radius"),o/2);return{cx:a,cy:s,r:l}}function pF(e,t){var n=null==e?"":e+"";return t&&(ee(t)?n=t.replace("{value}",n):Q(t)&&(n=t(e))),n}var fF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.render=function(e,t,n){this.group.removeAll();var i=e.get(["axisLine","lineStyle","color"]),r=dF(e,n);this._renderMain(e,t,n,i,r),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,t,n,i,r){var o=this.group,a=e.get("clockwise"),s=-e.get("startAngle")/180*Math.PI,l=-e.get("endAngle")/180*Math.PI,u=e.getModel("axisLine"),c=u.get("roundCap"),h=c?zT:Ay,d=u.get("show"),p=u.getModel("lineStyle"),f=p.get("width"),g=[s,l];bl(g,!a),s=g[0],l=g[1];for(var v=l-s,y=s,m=0;d&&m=e&&(0===t?0:i[t-1][0]).8?"bottom":"middle",align:u<-.4?"left":u>.4?"right":"center"},{inheritColor:R}),silent:!0}))}if(m.get("show")&&D!==_){L=m.get("distance");L=L?L+l:l;for(var E=0;E<=b;E++){u=Math.cos(M),c=Math.sin(M);var N=new Wy({shape:{x1:u*(f-L)+d,y1:c*(f-L)+p,x2:u*(f-S-L)+d,y2:c*(f-S-L)+p},silent:!0,style:k});"auto"===k.stroke&&N.setStyle({stroke:i((D+E/b)/_)}),h.add(N),M+=I}M-=I}else M+=C}},t.prototype._renderPointer=function(e,t,n,i,r,o,a,s,l){var u=this.group,c=this._data,h=this._progressEls,d=[],p=e.get(["pointer","show"]),f=e.getModel("progress"),g=f.get("show"),v=e.getData(),y=v.mapDimension("value"),m=+e.get("min"),x=+e.get("max"),_=[m,x],b=[o,a];function w(t,n){var i,o=v.getItemModel(t),a=o.getModel("pointer"),s=Go(a.get("width"),r.r),l=Go(a.get("length"),r.r),u=e.get(["pointer","icon"]),c=a.get("offsetCenter"),h=Go(c[0],r.r),d=Go(c[1],r.r),p=a.get("keepAspect");return i=u?v_(u,h-s/2,d-l,s,l,null,p):new hF({shape:{angle:-Math.PI/2,width:s,r:l,x:h,y:d}}),i.rotation=-(n+Math.PI/2),i.x=r.cx,i.y=r.cy,i}function S(e,t){var n=f.get("roundCap"),i=n?zT:Ay,a=f.get("overlap"),u=a?f.get("width"):l/v.count(),c=a?r.r-u:r.r-(e+1)*u,h=a?r.r:r.r-e*u,d=new i({shape:{startAngle:o,endAngle:t,cx:r.cx,cy:r.cy,clockwise:s,r0:c,r:h}});return a&&(d.z2=x-v.get(y,e)%x),d}(g||p)&&(v.diff(c).add((function(t){var n=v.get(y,t);if(p){var i=w(t,o);Kc(i,{rotation:-((isNaN(+n)?b[0]:qo(n,_,b,!0))+Math.PI/2)},e),u.add(i),v.setItemGraphicEl(t,i)}if(g){var r=S(t,o),a=f.get("clip");Kc(r,{shape:{endAngle:qo(n,_,b,a)}},e),u.add(r),Pu(e.seriesIndex,v.dataType,t,r),d[t]=r}})).update((function(t,n){var i=v.get(y,t);if(p){var r=c.getItemGraphicEl(n),a=r?r.rotation:o,s=w(t,a);s.rotation=a,Xc(s,{rotation:-((isNaN(+i)?b[0]:qo(i,_,b,!0))+Math.PI/2)},e),u.add(s),v.setItemGraphicEl(t,s)}if(g){var l=h[n],m=l?l.shape.endAngle:o,x=S(t,m),M=f.get("clip");Xc(x,{shape:{endAngle:qo(i,_,b,M)}},e),u.add(x),Pu(e.seriesIndex,v.dataType,t,x),d[t]=x}})).execute(),v.each((function(e){var t=v.getItemModel(e),n=t.getModel("emphasis"),r=n.get("focus"),o=n.get("blurScope"),a=n.get("disabled");if(p){var s=v.getItemGraphicEl(e),l=v.getItemVisual(e,"style"),u=l.fill;if(s instanceof iu){var c=s.style;s.useStyle(B({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},l))}else s.useStyle(l),"pointer"!==s.type&&s.setColor(u);s.setStyle(t.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===s.style.fill&&s.setStyle("fill",i(qo(v.get(y,e),_,[0,1],!0))),s.z2EmphasisLift=0,zc(s,t),Ec(s,r,o,a)}if(g){var h=d[e];h.useStyle(v.getItemVisual(e,"style")),h.setStyle(t.getModel(["progress","itemStyle"]).getItemStyle()),h.z2EmphasisLift=0,zc(h,t),Ec(h,r,o,a)}})),this._progressEls=d)},t.prototype._renderAnchor=function(e,t){var n=e.getModel("anchor"),i=n.get("show");if(i){var r=n.get("size"),o=n.get("icon"),a=n.get("offsetCenter"),s=n.get("keepAspect"),l=v_(o,t.cx-r/2+Go(a[0],t.r),t.cy-r/2+Go(a[1],t.r),r,r,null,s);l.z2=n.get("showAbove")?1:0,l.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(l)}},t.prototype._renderTitleAndDetail=function(e,t,n,i,r){var o=this,a=e.getData(),s=a.mapDimension("value"),l=+e.get("min"),u=+e.get("max"),c=new Lo,h=[],d=[],p=e.isAnimationEnabled(),f=e.get(["pointer","showAbove"]);a.diff(this._data).add((function(e){h[e]=new Du({silent:!0}),d[e]=new Du({silent:!0})})).update((function(e,t){h[e]=o._titleEls[t],d[e]=o._detailEls[t]})).execute(),a.each((function(t){var n=a.getItemModel(t),o=a.get(s,t),g=new Lo,v=i(qo(o,[l,u],[0,1],!0)),y=n.getModel("title");if(y.get("show")){var m=y.get("offsetCenter"),x=r.cx+Go(m[0],r.r),_=r.cy+Go(m[1],r.r),b=h[t];b.attr({z2:f?0:2,style:uh(y,{x,y:_,text:a.getName(t),align:"center",verticalAlign:"middle"},{inheritColor:v})}),g.add(b)}var w=n.getModel("detail");if(w.get("show")){var S=w.get("offsetCenter"),M=r.cx+Go(S[0],r.r),C=r.cy+Go(S[1],r.r),I=Go(w.get("width"),r.r),T=Go(w.get("height"),r.r),k=e.get(["progress","show"])?a.getItemVisual(t,"style").fill:v,A=(b=d[t],w.get("formatter"));b.attr({z2:f?0:2,style:uh(w,{x:M,y:C,text:pF(o,A),width:isNaN(I)?null:I,height:isNaN(T)?null:T,align:"center",verticalAlign:"middle"},{inheritColor:k})}),xh(b,{normal:w},o,(function(e){return pF(e,A)})),p&&_h(b,t,a,e,{getFormattedLabel:function(e,t,n,i,r,a){return pF(a?a.interpolatedValue:o,A)}}),g.add(b)}c.add(g)})),this.group.add(c),this._titleEls=h,this._detailEls=d},t.type="gauge",t}(nx);const gF=fF;var vF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="itemStyle",n}return o(t,e),t.prototype.getInitialData=function(e,t){return Pk(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(Ov);const yF=vF;function mF(e){e.registerChartView(gF),e.registerSeriesModel(yF)}var xF=["itemStyle","opacity"],_F=function(e){function t(t,n){var i=e.call(this)||this,r=i,o=new Vy,a=new Du;return r.setTextContent(a),i.setTextGuideLine(o),i.updateData(t,n,!0),i}return o(t,e),t.prototype.updateData=function(e,t,n){var i=this,r=e.hostModel,o=e.getItemModel(t),a=e.getItemLayout(t),s=o.getModel("emphasis"),l=o.get(xF);l=null==l?1:l,n||nh(i),i.useStyle(e.getItemVisual(t,"style")),i.style.lineJoin="round",n?(i.setShape({points:a.points}),i.style.opacity=0,Kc(i,{style:{opacity:l}},r,t)):Xc(i,{style:{opacity:l},shape:{points:a.points}},r,t),zc(i,o),this._updateLabel(e,t),Ec(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))},t.prototype._updateLabel=function(e,t){var n=this,i=this.getTextGuideLine(),r=n.getTextContent(),o=e.hostModel,a=e.getItemModel(t),s=e.getItemLayout(t),l=s.label,u=e.getItemVisual(t,"style"),c=u.fill;sh(r,lh(a),{labelFetcher:e.hostModel,labelDataIndex:t,defaultOpacity:u.opacity,defaultText:e.getName(t)},{normal:{align:l.textAlign,verticalAlign:l.verticalAlign}}),n.setTextConfig({local:!0,inside:!!l.inside,insideStroke:c,outsideFill:c});var h=l.linePoints;i.setShape({points:h}),n.textGuideLineConfig={anchor:h?new $r(h[0][0],h[0][1]):null},Xc(r,{style:{x:l.x,y:l.y}},o,t),r.attr({rotation:l.rotation,originX:l.x,originY:l.y,z2:10}),gS(n,vS(a),{stroke:c})},t}(By),bF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreLabelLineUpdate=!0,n}return o(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),r=this._data,o=this.group;i.diff(r).add((function(e){var t=new _F(i,e);i.setItemGraphicEl(e,t),o.add(t)})).update((function(e,t){var n=r.getItemGraphicEl(t);n.updateData(i,e),o.add(n),i.setItemGraphicEl(e,n)})).remove((function(t){var n=r.getItemGraphicEl(t);th(n,e,t)})).execute(),this._data=i},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(nx);const wF=bF;var SF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Rk(X(this.getData,this),X(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.getInitialData=function(e,t){return Pk(this,{coordDimensions:["value"],encodeDefaulter:K(wp,this)})},t.prototype._defaultLabelLine=function(e){va(e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.prototype.getDataParams=function(t){var n=this.getData(),i=e.prototype.getDataParams.call(this,t),r=n.mapDimension("value"),o=n.getSum(r);return i.percent=o?+(n.get(r,t)/o*100).toFixed(2):0,i.$vars.push("percent"),i},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(Ov);const MF=SF;function CF(e,t){return $d(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function IF(e,t){for(var n=e.mapDimension("value"),i=e.mapArray(n,(function(e){return e})),r=[],o="ascending"===t,a=0,s=e.count();a$F)return;var r=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);"none"!==r.behavior&&this._dispatchExpand({axisExpandWindow:r.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!this._mouseDownPoint&&JF(this,"mousemove")){var t=this._model,n=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),i=n.behavior;"jump"===i&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===i?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===i?null:{duration:0}})}}};function JF(e,t){var n=e._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===t}const QF=XF;var ez=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var t=this.option;e&&E(t,e,!0),this._initDimensions()},t.prototype.contains=function(e,t){var n=e.get("parallelIndex");return null!=n&&t.getComponent("parallel",n)===this},t.prototype.setAxisExpand=function(e){G(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(t){e.hasOwnProperty(t)&&(this.option[t]=e[t])}),this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],t=this.parallelAxisIndex=[],n=j(this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(e){return(e.get("parallelIndex")||0)===this.componentIndex}),this);G(n,(function(n){e.push("dim"+n.get("dim")),t.push(n.componentIndex)}))},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(op);const tz=ez;var nz=function(e){function t(t,n,i,r,o){var a=e.call(this,t,n,i)||this;return a.type=r||"value",a.axisIndex=o,a}return o(t,e),t.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},t}(zD);const iz=nz;function rz(e,t,n,i,r,o){e=e||0;var a=n[1]-n[0];if(null!=r&&(r=az(r,[0,a])),null!=o&&(o=Math.max(o,null!=r?r:0)),"all"===i){var s=Math.abs(t[1]-t[0]);s=az(s,[0,a]),r=o=az(s,[r,o]),i=0}t[0]=az(t[0],n),t[1]=az(t[1],n);var l=oz(t,i);t[i]+=e;var u,c=r||0,h=n.slice();return l.sign<0?h[0]+=c:h[1]-=c,t[i]=az(t[i],h),u=oz(t,i),null!=r&&(u.sign!==l.sign||u.spano&&(t[1-i]=t[i]+u.sign*o),t}function oz(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function az(e,t){return Math.min(null!=t[1]?t[1]:1/0,Math.max(null!=t[0]?t[0]:-1/0,e))}var sz=G,lz=Math.min,uz=Math.max,cz=Math.floor,hz=Math.ceil,dz=Wo,pz=Math.PI,fz=function(){function e(e,t,n){this.type="parallel",this._axesMap=we(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var i=e.dimensions,r=e.parallelAxisIndex;sz(i,(function(e,n){var i=r[n],o=t.getComponent("parallelAxis",i),a=this._axesMap.set(e,new iz(e,rD(o),[0,0],o.get("type"),i)),s="category"===a.type;a.onBand=s&&o.get("boundaryGap"),a.inverse=o.get("inverse"),o.axis=a,a.model=o,a.coordinateSystem=o.coordinateSystem=this}),this)},e.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},e.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),n=t.axisBase,i=t.layoutBase,r=t.pixelDimIndex,o=e[1-r],a=e[r];return o>=n&&o<=n+t.axisLength&&a>=i&&a<=i+t.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(e,t){t.eachSeries((function(n){if(e.contains(n,t)){var i=n.getData();sz(this.dimensions,(function(e){var t=this._axesMap.get(e);t.scale.unionExtentFromData(i,i.mapDimension(e)),iD(t.scale,t.model)}),this)}}),this)},e.prototype.resize=function(e,t){this._rect=$d(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var e,t=this._model,n=this._rect,i=["x","y"],r=["width","height"],o=t.get("layout"),a="horizontal"===o?0:1,s=n[r[a]],l=[0,s],u=this.dimensions.length,c=gz(t.get("axisExpandWidth"),l),h=gz(t.get("axisExpandCount")||0,[0,u]),d=t.get("axisExpandable")&&u>3&&u>h&&h>1&&c>0&&s>0,p=t.get("axisExpandWindow");if(p)e=gz(p[1]-p[0],l),p[1]=p[0]+e;else{e=gz(c*(h-1),l);var f=t.get("axisExpandCenter")||cz(u/2);p=[c*f-e/2],p[1]=p[0]+e}var g=(s-e)/(u-h);g<3&&(g=0);var v=[cz(dz(p[0]/c,1))+1,hz(dz(p[1]/c,1))-1],y=g/c*p[0];return{layout:o,pixelDimIndex:a,layoutBase:n[i[a]],layoutLength:s,axisBase:n[i[1-a]],axisLength:n[r[1-a]],axisExpandable:d,axisExpandWidth:c,axisCollapseWidth:g,axisExpandWindow:p,axisCount:u,winInnerIndices:v,axisExpandWindow0Pos:y}},e.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),r=i.layout;t.each((function(e){var t=[0,i.axisLength],n=e.inverse?1:0;e.setExtent(t[n],t[1-n])})),sz(n,(function(t,n){var o=(i.axisExpandable?yz:vz)(n,i),a={horizontal:{x:o.position,y:i.axisLength},vertical:{x:0,y:o.position}},s={horizontal:pz/2,vertical:0},l=[a[r].x+e.x,a[r].y+e.y],u=s[r],c=kr();Or(c,c,u),Pr(c,c,l),this._axesLayout[t]={position:l,rotation:u,transform:c,axisNameAvailableWidth:o.axisNameAvailableWidth,axisLabelShow:o.axisLabelShow,nameTruncateMaxWidth:o.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},e.prototype.getAxis=function(e){return this._axesMap.get(e)},e.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},e.prototype.eachActiveState=function(e,t,n,i){null==n&&(n=0),null==i&&(i=e.count());var r=this._axesMap,o=this.dimensions,a=[],s=[];G(o,(function(t){a.push(e.mapDimension(t)),s.push(r.get(t).model)}));for(var l=this.hasAxisBrushed(),u=n;ur*(1-c[0])?(l="jump",a=s-r*(1-c[2])):(a=s-r*c[1])>=0&&(a=s-r*(1-c[1]))<=0&&(a=0),a*=t.axisExpandWidth/u,a?rz(a,i,o,"all"):l="none";else{var d=i[1]-i[0],p=o[1]*s/d;i=[uz(0,p-d/2)],i[1]=lz(o[1],i[0]+d),i[0]=i[1]-d}return{axisExpandWindow:i,behavior:l}},e}();function gz(e,t){return lz(uz(e,t[0]),t[1])}function vz(e,t){var n=t.layoutLength/(t.axisCount-1);return{position:n*e,axisNameAvailableWidth:n,axisLabelShow:!0}}function yz(e,t){var n,i,r=t.layoutLength,o=t.axisExpandWidth,a=t.axisCount,s=t.axisCollapseWidth,l=t.winInnerIndices,u=s,c=!1;return e=0;n--)Uo(t[n])},t.prototype.getActiveState=function(e){var t=this.activeIntervals;if(!t.length)return"normal";if(null==e||isNaN(+e))return"inactive";if(1===t.length){var n=t[0];if(n[0]<=e&&e<=n[1])return"active"}else for(var i=0,r=t.length;iAz}function Yz(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function $z(e,t,n,i){var r=new Lo;return r.add(new du({name:"main",style:Qz(n),silent:!0,draggable:!0,cursor:"move",drift:K(rV,e,t,r,["n","s","w","e"]),ondragend:K(jz,t,{isEnd:!0})})),G(i,(function(n){r.add(new du({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:K(rV,e,t,r,n),ondragend:K(jz,t,{isEnd:!0})}))})),r}function Xz(e,t,n,i){var r=i.brushStyle.lineWidth||0,o=Iz(r,Dz),a=n[0][0],s=n[1][0],l=a-r/2,u=s-r/2,c=n[0][1],h=n[1][1],d=c-o+r/2,p=h-o+r/2,f=c-a,g=h-s,v=f+r,y=g+r;Jz(e,t,"main",a,s,f,g),i.transformable&&(Jz(e,t,"w",l,u,o,y),Jz(e,t,"e",d,u,o,y),Jz(e,t,"n",l,u,v,o),Jz(e,t,"s",l,p,v,o),Jz(e,t,"nw",l,u,o,o),Jz(e,t,"ne",d,u,o,o),Jz(e,t,"sw",l,p,o,o),Jz(e,t,"se",d,p,o,o))}function Kz(e,t){var n=t.__brushOption,i=n.transformable,r=t.childAt(0);r.useStyle(Qz(n)),r.attr({silent:!i,cursor:i?"move":"default"}),G([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(n){var r=t.childOfName(n.join("")),o=1===n.length?nV(e,n[0]):iV(e,n);r&&r.attr({silent:!i,invisible:!i,cursor:i?Oz[o]+"-resize":null})}))}function Jz(e,t,n,i,r,o,a){var s=t.childOfName(n);s&&s.setShape(lV(sV(e,t,[[i,r],[i+o,r+a]])))}function Qz(e){return F({strokeNoScale:!0},e.brushStyle)}function eV(e,t,n,i){var r=[Cz(e,n),Cz(t,i)],o=[Iz(e,n),Iz(t,i)];return[[r[0],o[0]],[r[1],o[1]]]}function tV(e){return Pm(e.group)}function nV(e,t){var n={w:"left",e:"right",n:"top",s:"bottom"},i={left:"w",right:"e",top:"n",bottom:"s"},r=Rm(n[t],tV(e));return i[r]}function iV(e,t){var n=[nV(e,t[0]),nV(e,t[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}function rV(e,t,n,i,r,o){var a=n.__brushOption,s=e.toRectRange(a.range),l=aV(t,r,o);G(i,(function(e){var t=Pz[e];s[t[0]][t[1]]+=l[t[0]]})),a.range=e.fromRectRange(eV(s[0][0],s[1][0],s[0][1],s[1][1])),Hz(t,n),jz(t,{isEnd:!1})}function oV(e,t,n,i){var r=t.__brushOption.range,o=aV(e,n,i);G(r,(function(e){e[0]+=o[0],e[1]+=o[1]})),Hz(e,t),jz(e,{isEnd:!1})}function aV(e,t,n){var i=e.group,r=i.transformCoordToLocal(t,n),o=i.transformCoordToLocal(0,0);return[r[0]-o[0],r[1]-o[1]]}function sV(e,t,n){var i=Wz(e,t);return i&&i!==Mz?i.clipPath(n,e._transform):R(n)}function lV(e){var t=Cz(e[0][0],e[1][0]),n=Cz(e[0][1],e[1][1]),i=Iz(e[0][0],e[1][0]),r=Iz(e[0][1],e[1][1]);return{x:t,y:n,width:i-t,height:r-n}}function uV(e,t,n){if(e._brushType&&!vV(e,t.offsetX,t.offsetY)){var i=e._zr,r=e._covers,o=Gz(e,t,n);if(!e._dragging)for(var a=0;ai.getWidth()||n<0||n>i.getHeight()}var yV={lineX:mV(0),lineY:mV(1),rect:{createCover:function(e,t){function n(e){return e}return $z({toRectRange:n,fromRectRange:n},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=Yz(e);return eV(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,i){Xz(e,t,n,i)},updateCommon:Kz,contain:hV},polygon:{createCover:function(e,t){var n=new Lo;return n.add(new Vy({name:"main",style:Qz(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new By({name:"main",draggable:!0,drift:K(oV,e,t),ondragend:K(jz,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,i){t.childAt(0).setShape({points:sV(e,t,n)})},updateCommon:Kz,contain:hV}};function mV(e){return{createCover:function(t,n){return $z({toRectRange:function(t){var n=[t,[0,100]];return e&&n.reverse(),n},fromRectRange:function(t){return t[e]}},t,n,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var n=Yz(t),i=Cz(n[0][e],n[1][e]),r=Iz(n[0][e],n[1][e]);return[i,r]},updateCoverShape:function(t,n,i,r){var o,a=Wz(t,n);if(a!==Mz&&a.getLinearBrushOtherExtent)o=a.getLinearBrushOtherExtent(e);else{var s=t._zr;o=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[i,o];e&&l.reverse(),Xz(t,n,l,r)},updateCommon:Kz,contain:hV}}const xV=Nz;function _V(e){return e=SV(e),function(t){return Fm(t,e)}}function bV(e,t){return e=SV(e),function(n){var i=null!=t?t:n,r=i?e.width:e.height,o=i?e.x:e.y;return[o,o+(r||0)]}}function wV(e,t,n){var i=SV(e);return function(e,r){return i.contain(r[0],r[1])&&!_P(e,t,n)}}function SV(e){return oo.create(e)}var MV=["axisLine","axisTickLabel","axisName"],CV=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.init=function(t,n){e.prototype.init.apply(this,arguments),(this._brushController=new xV(n.getZr())).on("brush",X(this._onBrush,this))},t.prototype.render=function(e,t,n,i){if(!IV(e,t,i)){this.axisModel=e,this.api=n,this.group.removeAll();var r=this._axisGroup;if(this._axisGroup=new Lo,this.group.add(this._axisGroup),e.get("show")){var o=kV(e,t),a=o.coordinateSystem,s=e.getAreaSelectStyle(),l=s.width,u=e.axis.dim,c=a.getAxisLayout(u),h=B({strokeContainThreshold:l},c),d=new hL(e,h);G(MV,d.add,d),this._axisGroup.add(d.getGroup()),this._refreshBrushController(h,s,e,o,l,n),Bm(r,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,t,n,i,r,o){var a=n.axis.getExtent(),s=a[1]-a[0],l=Math.min(30,.1*Math.abs(s)),u=oo.create({x:a[0],y:-r/2,width:s,height:r});u.x-=l,u.width+=2*l,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:_V(u),isTargetByCursor:wV(u,o,i),getLinearBrushOtherExtent:bV(u,0)}]).enableBrush({brushType:"lineX",brushStyle:t,removeOnClick:!0}).updateCovers(TV(n))},t.prototype._onBrush=function(e){var t=e.areas,n=this.axisModel,i=n.axis,r=W(t,(function(e){return[i.coordToData(e.range[0],!0),i.coordToData(e.range[1],!0)]}));(!n.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:r})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(Ev);function IV(e,t,n){return n&&"axisAreaSelect"===n.type&&t.findComponents({mainType:"parallelAxis",query:n})[0]===e}function TV(e){var t=e.axis;return W(e.activeIntervals,(function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}}))}function kV(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}const AV=CV;var DV={type:"axisAreaSelect",event:"axisAreaSelected"};function LV(e){e.registerAction(DV,(function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},(function(t){t.axis.model.setActiveIntervals(e.intervals)}))})),e.registerAction("parallelAxisExpand",(function(e,t){t.eachComponent({mainType:"parallel",query:e},(function(t){t.setAxisExpand(e)}))}))}var PV={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function OV(e){e.registerComponentView(QF),e.registerComponentModel(tz),e.registerCoordinateSystem("parallel",bz),e.registerPreprocessor(jF),e.registerComponentModel(Sz),e.registerComponentView(AV),uA(e,"parallel",Sz,PV),LV(e)}function RV(e){jw(OV),e.registerChartView(FF),e.registerSeriesModel(qF),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,UF)}var EV=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return e}(),NV=function(e){function t(t){return e.call(this,t)||this}return o(t,e),t.prototype.getDefaultShape=function(){return new EV},t.prototype.buildPath=function(e,t){var n=t.extent;e.moveTo(t.x1,t.y1),e.bezierCurveTo(t.cpx1,t.cpy1,t.cpx2,t.cpy2,t.x2,t.y2),"vertical"===t.orient?(e.lineTo(t.x2+n,t.y2),e.bezierCurveTo(t.cpx2+n,t.cpy2,t.cpx1+n,t.cpy1,t.x1+n,t.y1)):(e.lineTo(t.x2,t.y2+n),e.bezierCurveTo(t.cpx2,t.cpy2+n,t.cpx1,t.cpy1+n,t.x1,t.y1+n)),e.closePath()},t.prototype.highlight=function(){vc(this)},t.prototype.downplay=function(){yc(this)},t}($l),BV=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._focusAdjacencyDisabled=!1,n}return o(t,e),t.prototype.render=function(e,t,n){var i=this,r=e.getGraph(),o=this.group,a=e.layoutInfo,s=a.width,l=a.height,u=e.getData(),c=e.getData("edge"),h=e.get("orient");this._model=e,o.removeAll(),o.x=a.x,o.y=a.y,r.eachEdge((function(t){var n=new NV,i=Lu(n);i.dataIndex=t.dataIndex,i.seriesIndex=e.seriesIndex,i.dataType="edge";var r,a,u,d,p,f,g,v,y=t.getModel(),m=y.getModel("lineStyle"),x=m.get("curveness"),_=t.node1.getLayout(),b=t.node1.getModel(),w=b.get("localX"),S=b.get("localY"),M=t.node2.getLayout(),C=t.node2.getModel(),I=C.get("localX"),T=C.get("localY"),k=t.getLayout();switch(n.shape.extent=Math.max(1,k.dy),n.shape.orient=h,"vertical"===h?(r=(null!=w?w*s:_.x)+k.sy,a=(null!=S?S*l:_.y)+_.dy,u=(null!=I?I*s:M.x)+k.ty,d=null!=T?T*l:M.y,p=r,f=a*(1-x)+d*x,g=u,v=a*x+d*(1-x)):(r=(null!=w?w*s:_.x)+_.dx,a=(null!=S?S*l:_.y)+k.sy,u=null!=I?I*s:M.x,d=(null!=T?T*l:M.y)+k.ty,p=r*(1-x)+u*x,f=a,g=r*x+u*(1-x),v=d),n.setShape({x1:r,y1:a,x2:u,y2:d,cpx1:p,cpy1:f,cpx2:g,cpy2:v}),n.useStyle(m.getItemStyle()),n.style.fill){case"source":n.style.fill=t.node1.getVisual("color"),n.style.decal=t.node1.getVisual("style").decal;break;case"target":n.style.fill=t.node2.getVisual("color"),n.style.decal=t.node2.getVisual("style").decal;break;case"gradient":var A=t.node1.getVisual("color"),D=t.node2.getVisual("color");ee(A)&&ee(D)&&(n.style.fill=new rm(0,0,+("horizontal"===h),+("vertical"===h),[{color:A,offset:0},{color:D,offset:1}]))}var L=y.getModel("emphasis");zc(n,y,"lineStyle",(function(e){return e.getItemStyle()})),o.add(n),c.setItemGraphicEl(t.dataIndex,n);var P=L.get("focus");Ec(n,"adjacency"===P?t.getAdjacentDataIndices():P,L.get("blurScope"),L.get("disabled")),Lu(n).dataType="edge"})),r.eachNode((function(t){var n=t.getLayout(),i=t.getModel(),r=i.get("localX"),a=i.get("localY"),c=i.getModel("emphasis"),h=new du({shape:{x:null!=r?r*s:n.x,y:null!=a?a*l:n.y,width:n.dx,height:n.dy},style:i.getModel("itemStyle").getItemStyle(),z2:10});sh(h,lh(i),{labelFetcher:e,labelDataIndex:t.dataIndex,defaultText:t.id}),h.disableLabelAnimation=!0,h.setStyle("fill",t.getVisual("color")),h.setStyle("decal",t.getVisual("style").decal),zc(h,i),o.add(h),u.setItemGraphicEl(t.dataIndex,h),Lu(h).dataType="node";var d=c.get("focus");Ec(h,"adjacency"===d?t.getAdjacentDataIndices():d,c.get("blurScope"),c.get("disabled"))})),u.eachItemGraphicEl((function(t,r){var o=u.getItemModel(r);o.get("draggable")&&(t.drift=function(t,o){i._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=o,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:u.getRawIndex(r),localX:this.shape.x/s,localY:this.shape.y/l})},t.ondragend=function(){i._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor="move")})),!this._data&&e.isAnimationEnabled()&&o.setClipPath(FV(o.getBoundingRect(),e,(function(){o.removeClipPath()}))),this._data=e.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(nx);function FV(e,t,n){var i=new du({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return Kc(i,{shape:{width:e.width+20}},t,n),i}const zV=BV;var VV=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.getInitialData=function(e,t){var n=e.edges||e.links,i=e.data||e.nodes,r=e.levels;this.levelModels=[];for(var o=this.levelModels,a=0;a=0&&(o[r[a].depth]=new Oh(r[a],this,t));if(i&&n){var s=rF(i,n,this,!0,l);return s.data}function l(e,t){e.wrapMethod("getItemModel",(function(e,t){var n=e.parentModel,i=n.getData().getItemLayout(t);if(i){var r=i.depth,o=n.levelModels[r];o&&(e.parentModel=o)}return e})),t.wrapMethod("getItemModel",(function(e,t){var n=e.parentModel,i=n.getGraph().getEdgeByIndex(t),r=i.node1.getLayout();if(r){var o=r.depth,a=n.levelModels[o];a&&(e.parentModel=a)}return e}))}},t.prototype.setNodePosition=function(e,t){var n=this.option.data||this.option.nodes,i=n[e];i.localX=t[0],i.localY=t[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,t,n){function i(e){return isNaN(e)||null==e}if("edge"===n){var r=this.getDataParams(e,n),o=r.data,a=r.value,s=o.source+" -- "+o.target;return iv("nameValue",{name:s,value:a,noValue:i(a)})}var l=this.getGraph().getNodeByIndex(e),u=l.getLayout().value,c=this.getDataParams(e,n).data.name;return iv("nameValue",{name:null!=c?c+"":null,value:u,noValue:i(u)})},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(t,n){var i=e.prototype.getDataParams.call(this,t,n);if(null==i.value&&"node"===n){var r=this.getGraph().getNodeByIndex(t),o=r.getLayout().value;i.value=o}return i},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}(Ov);const HV=VV;function qV(e,t){e.eachSeriesByType("sankey",(function(e){var n=e.get("nodeWidth"),i=e.get("nodeGap"),r=GV(e,t);e.layoutInfo=r;var o=r.width,a=r.height,s=e.getGraph(),l=s.nodes,u=s.edges;UV(l);var c=j(l,(function(e){return 0===e.getLayout().value})),h=0!==c.length?0:e.get("layoutIterations"),d=e.get("orient"),p=e.get("nodeAlign");WV(l,u,n,i,o,a,h,d,p)}))}function GV(e,t){return $d(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function WV(e,t,n,i,r,o,a,s,l){jV(e,t,n,r,o,s,l),KV(e,t,o,r,i,a,s),cH(e,s)}function UV(e){G(e,(function(e){var t=lH(e.outEdges,sH),n=lH(e.inEdges,sH),i=e.getValue()||0,r=Math.max(t,n,i);e.setLayout({value:r},!0)}))}function jV(e,t,n,i,r,o,a){for(var s=[],l=[],u=[],c=[],h=0,d=0;d=0;y&&v.depth>p&&(p=v.depth),g.setLayout({depth:y?v.depth:h},!0),"vertical"===o?g.setLayout({dy:n},!0):g.setLayout({dx:n},!0);for(var m=0;mh-1?p:h-1;a&&"left"!==a&&YV(e,a,o,S);var M="vertical"===o?(r-n)/S:(i-n)/S;XV(e,M,o)}function ZV(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return null!=t.depth&&t.depth>=0}function YV(e,t,n,i){if("right"===t){var r=[],o=e,a=0;while(o.length){for(var s=0;s0;o--)l*=.99,tH(s,l,a),eH(s,r,n,i,a),uH(s,l,a),eH(s,r,n,i,a)}function JV(e,t){var n=[],i="vertical"===t?"y":"x",r=Za(e,(function(e){return e.getLayout()[i]}));return r.keys.sort((function(e,t){return e-t})),G(r.keys,(function(e){n.push(r.buckets.get(e))})),n}function QV(e,t,n,i,r,o){var a=1/0;G(e,(function(e){var t=e.length,s=0;G(e,(function(e){s+=e.getLayout().value}));var l="vertical"===o?(i-(t-1)*r)/s:(n-(t-1)*r)/s;l0&&(a=s.getLayout()[o]+l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]+s.getLayout()[h]+t;var p="vertical"===r?i:n;if(l=u-t-p,l>0){a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0),u=a;for(d=c-2;d>=0;--d)s=e[d],l=s.getLayout()[o]+s.getLayout()[h]+t-u,l>0&&(a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]}}))}function tH(e,t,n){G(e.slice().reverse(),(function(e){G(e,(function(e){if(e.outEdges.length){var i=lH(e.outEdges,nH,n)/lH(e.outEdges,sH);if(isNaN(i)){var r=e.outEdges.length;i=r?lH(e.outEdges,iH,n)/r:0}if("vertical"===n){var o=e.getLayout().x+(i-aH(e,n))*t;e.setLayout({x:o},!0)}else{var a=e.getLayout().y+(i-aH(e,n))*t;e.setLayout({y:a},!0)}}}))}))}function nH(e,t){return aH(e.node2,t)*e.getValue()}function iH(e,t){return aH(e.node2,t)}function rH(e,t){return aH(e.node1,t)*e.getValue()}function oH(e,t){return aH(e.node1,t)}function aH(e,t){return"vertical"===t?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function sH(e){return e.getValue()}function lH(e,t,n){var i=0,r=e.length,o=-1;while(++or&&(r=t)})),G(n,(function(t){var n=new pN({type:"color",mappingMethod:"linear",dataExtent:[i,r],visual:e.get("color")}),o=n.mapValueToVisual(t.getLayout().value),a=t.getModel().get(["itemStyle","color"]);null!=a?(t.setVisual("color",a),t.setVisual("style",{fill:a})):(t.setVisual("color",o),t.setVisual("style",{fill:o}))}))}}))}function dH(e){e.registerChartView(zV),e.registerSeriesModel(HV),e.registerLayout(qV),e.registerVisual(hH),e.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},(function(t){t.setNodePosition(e.dataIndex,[e.localX,e.localY])}))}))}var pH=function(){function e(){}return e.prototype.getInitialData=function(e,t){var n,i,r=t.getComponent("xAxis",this.get("xAxisIndex")),o=t.getComponent("yAxis",this.get("yAxisIndex")),a=r.get("type"),s=o.get("type");"category"===a?(e.layout="horizontal",n=r.getOrdinalMeta(),i=!0):"category"===s?(e.layout="vertical",n=o.getOrdinalMeta(),i=!0):e.layout=e.layout||"horizontal";var l=["x","y"],u="horizontal"===e.layout?0:1,c=this._baseAxisDim=l[u],h=l[1-u],d=[r,o],p=d[u].get("type"),f=d[1-u].get("type"),g=e.data;if(g&&i){var v=[];G(g,(function(e,t){var n;J(e)?(n=e.slice(),e.unshift(t)):J(e.value)?(n=B({},e),n.value=n.value.slice(),e.value.unshift(t)):n=e,v.push(n)})),e.data=v}var y=this.defaultValueDimensions,m=[{name:c,type:IC(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:IC(f),dimsDef:y.slice()}];return Pk(this,{coordDimensions:m,dimensionsCount:y.length+1,encodeDefaulter:K(bp,m,this)})},e.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},e}(),fH=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return o(t,e),t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t}(Ov);H(fH,pH,!0);const gH=fH;var vH=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),r=this.group,o=this._data;this._data||r.removeAll();var a="horizontal"===e.get("layout")?1:0;i.diff(o).add((function(e){if(i.hasValue(e)){var t=i.getItemLayout(e),n=xH(t,i,e,a,!0);i.setItemGraphicEl(e,n),r.add(n)}})).update((function(e,t){var n=o.getItemGraphicEl(t);if(i.hasValue(e)){var s=i.getItemLayout(e);n?(nh(n),_H(s,n,i,e)):n=xH(s,i,e,a),r.add(n),i.setItemGraphicEl(e,n)}else r.remove(n)})).remove((function(e){var t=o.getItemGraphicEl(e);t&&r.remove(t)})).execute(),this._data=i},t.prototype.remove=function(e){var t=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(e){e&&t.remove(e)}))},t.type="boxplot",t}(nx),yH=function(){function e(){}return e}(),mH=function(e){function t(t){var n=e.call(this,t)||this;return n.type="boxplotBoxPath",n}return o(t,e),t.prototype.getDefaultShape=function(){return new yH},t.prototype.buildPath=function(e,t){var n=t.points,i=0;for(e.moveTo(n[i][0],n[i][1]),i++;i<4;i++)e.lineTo(n[i][0],n[i][1]);for(e.closePath();ig){var _=[y,x];i.push(_)}}}return{boxData:n,outliers:i}}var DH={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==hp){var n="";0,vg(n)}var i=AH(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function LH(e){e.registerSeriesModel(gH),e.registerChartView(wH),e.registerVisual(SH),e.registerLayout(CH),e.registerTransform(DH)}var PH=["color","borderColor"],OH=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.render=function(e,t,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,t,n){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,t,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,t):this._incrementalRenderNormal(e,t)},t.prototype.eachRendered=function(e){Zm(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e){var t=e.getData(),n=this._data,i=this.group,r=t.getLayout("isSimpleBox"),o=e.get("clip",!0),a=e.coordinateSystem,s=a.getArea&&a.getArea();this._data||i.removeAll(),t.diff(n).add((function(n){if(t.hasValue(n)){var a=t.getItemLayout(n);if(o&&BH(s,a))return;var l=NH(a,n,!0);Kc(l,{shape:{points:a.ends}},e,n),FH(l,t,n,r),i.add(l),t.setItemGraphicEl(n,l)}})).update((function(a,l){var u=n.getItemGraphicEl(l);if(t.hasValue(a)){var c=t.getItemLayout(a);o&&BH(s,c)?i.remove(u):(u?(Xc(u,{shape:{points:c.ends}},e,a),nh(u)):u=NH(c,a),FH(u,t,a,r),i.add(u),t.setItemGraphicEl(a,u))}else i.remove(u)})).remove((function(e){var t=n.getItemGraphicEl(e);t&&i.remove(t)})).execute(),this._data=t},t.prototype._renderLarge=function(e){this._clear(),qH(e,this.group);var t=e.get("clip",!0)?ZI(e.coordinateSystem,!1,e):null;t?this.group.setClipPath(t):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,t){var n,i=t.getData(),r=i.getLayout("isSimpleBox");while(null!=(n=e.next())){var o=i.getItemLayout(n),a=NH(o,n);FH(a,i,n,r),a.incremental=!0,this.group.add(a),this._progressiveEls.push(a)}},t.prototype._incrementalRenderLarge=function(e,t){qH(t,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(nx),RH=function(){function e(){}return e}(),EH=function(e){function t(t){var n=e.call(this,t)||this;return n.type="normalCandlestickBox",n}return o(t,e),t.prototype.getDefaultShape=function(){return new RH},t.prototype.buildPath=function(e,t){var n=t.points;this.__simpleBox?(e.moveTo(n[4][0],n[4][1]),e.lineTo(n[6][0],n[6][1])):(e.moveTo(n[0][0],n[0][1]),e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]),e.lineTo(n[3][0],n[3][1]),e.closePath(),e.moveTo(n[4][0],n[4][1]),e.lineTo(n[5][0],n[5][1]),e.moveTo(n[6][0],n[6][1]),e.lineTo(n[7][0],n[7][1]))},t}($l);function NH(e,t,n){var i=e.ends;return new EH({shape:{points:n?zH(i,e):i},z2:100})}function BH(e,t){for(var n=!0,i=0;i0?"borderColor":"borderColor0"])||n.get(["itemStyle",e>0?"color":"color0"]),o=n.getModel("itemStyle").getItemStyle(PH);t.useStyle(o),t.style.fill=null,t.style.stroke=r}const WH=OH;var UH=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return o(t,e),t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,t,n){var i=t.getItemLayout(e);return i&&n.rect(i.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(Ov);H(UH,pH,!0);const jH=UH;function ZH(e){e&&J(e.series)&&G(e.series,(function(e){ie(e)&&"k"===e.type&&(e.type="candlestick")}))}var YH=["itemStyle","borderColor"],$H=["itemStyle","borderColor0"],XH=["itemStyle","color"],KH=["itemStyle","color0"],JH={seriesType:"candlestick",plan:Nv(),performRawSeries:!0,reset:function(e,t){function n(e,t){return t.get(e>0?XH:KH)}function i(e,t){return t.get(e>0?YH:$H)}if(!t.isSeriesFiltered(e)){var r=e.pipelineContext.large;return!r&&{progress:function(e,t){var r;while(null!=(r=e.next())){var o=t.getItemModel(r),a=t.getItemLayout(r).sign,s=o.getItemStyle();s.fill=n(a,o),s.stroke=i(a,o)||s.fill;var l=t.ensureUniqueItemVisual(r,"style");B(l,s)}}}}}};const QH=JH;var eq={seriesType:"candlestick",plan:Nv(),reset:function(e){var t=e.coordinateSystem,n=e.getData(),i=nq(e,n),r=0,o=1,a=["x","y"],s=n.getDimensionIndex(n.mapDimension(a[r])),l=W(n.mapDimensionsAll(a[o]),n.getDimensionIndex,n),u=l[0],c=l[1],h=l[2],d=l[3];if(n.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),!(s<0||l.length<4))return{progress:e.pipelineContext.large?f:p};function p(e,n){var a,l=n.getStore();while(null!=(a=e.next())){var p=l.get(s,a),f=l.get(u,a),g=l.get(c,a),v=l.get(h,a),y=l.get(d,a),m=Math.min(f,g),x=Math.max(f,g),_=C(m,p),b=C(x,p),w=C(v,p),S=C(y,p),M=[];I(M,b,0),I(M,_,1),M.push(k(S),k(b),k(w),k(_)),n.setItemLayout(a,{sign:tq(l,a,f,g,c),initBaseline:f>g?b[o]:_[o],ends:M,brushRect:T(v,y,p)})}function C(e,n){var i=[];return i[r]=n,i[o]=e,isNaN(n)||isNaN(e)?[NaN,NaN]:t.dataToPoint(i)}function I(e,t,n){var o=t.slice(),a=t.slice();o[r]=Lm(o[r]+i/2,1,!1),a[r]=Lm(a[r]-i/2,1,!0),n?e.push(o,a):e.push(a,o)}function T(e,t,n){var a=C(e,n),s=C(t,n);return a[r]-=i/2,s[r]-=i/2,{x:a[0],y:a[1],width:o?i:s[0]-a[0],height:o?s[1]-a[1]:i}}function k(e){return e[r]=Lm(e[r],1),e}}function f(e,n){var i,a,l=RI(4*e.count),p=0,f=[],g=[],v=n.getStore();while(null!=(a=e.next())){var y=v.get(s,a),m=v.get(u,a),x=v.get(c,a),_=v.get(h,a),b=v.get(d,a);isNaN(y)||isNaN(_)||isNaN(b)?(l[p++]=NaN,p+=3):(l[p++]=tq(v,a,m,x,c),f[r]=y,f[o]=_,i=t.dataToPoint(f,null,g),l[p++]=i?i[0]:NaN,l[p++]=i?i[1]:NaN,f[o]=b,i=t.dataToPoint(f,null,g),l[p++]=i?i[1]:NaN)}n.setLayout("largePoints",l)}}};function tq(e,t,n,i,r){var o;return o=n>i?-1:n0?e.get(r,t-1)<=i?1:-1:1,o}function nq(e,t){var n,i=e.getBaseAxis(),r="category"===i.type?i.getBandWidth():(n=i.getExtent(),Math.abs(n[1]-n[0])/t.count()),o=Go(de(e.get("barMaxWidth"),r),r),a=Go(de(e.get("barMinWidth"),1),r),s=e.get("barWidth");return null!=s?Go(s,r):Math.max(Math.min(r/2,o),a)}const iq=eq;function rq(e){e.registerChartView(WH),e.registerSeriesModel(jH),e.registerPreprocessor(ZH),e.registerVisual(QH),e.registerLayout(iq)}function oq(e,t){var n=t.rippleEffectColor||t.color;e.eachChild((function(e){e.attr({z:t.z,zlevel:t.zlevel,style:{stroke:"stroke"===t.brushType?n:null,fill:"fill"===t.brushType?n:null}})}))}var aq=function(e){function t(t,n){var i=e.call(this)||this,r=new SI(t,n),o=new Lo;return i.add(r),i.add(o),i.updateData(t,n),i}return o(t,e),t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var t=e.symbolType,n=e.color,i=e.rippleNumber,r=this.childAt(1),o=0;o0&&(o=this._getLineLength(i)/s*1e3),o!==this._period||a!==this._loop){i.stopAnimation();var u=void 0;u=Q(l)?l(n):l,i.__t>0&&(u=-o*i.__t),this._animateSymbol(i,o,u,a)}this._period=o,this._loop=a}},t.prototype._animateSymbol=function(e,t,n,i){if(t>0){e.__t=0;var r=this,o=e.animate("",i).when(t,{__t:1}).delay(n).during((function(){r._updateSymbolPosition(e)}));i||o.done((function(){r.remove(e)})),o.start()}},t.prototype._getLineLength=function(e){return Ge(e.__p1,e.__cp1)+Ge(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,t){e.__p1=t[0],e.__p2=t[1],e.__cp1=t[2]||[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]},t.prototype.updateData=function(e,t,n){this.childAt(0).updateData(e,t,n),this._updateEffectSymbol(e,t)},t.prototype._updateSymbolPosition=function(e){var t=e.__p1,n=e.__p2,i=e.__cp1,r=e.__t,o=[e.x,e.y],a=o.slice(),s=Mn,l=Cn;o[0]=s(t[0],i[0],n[0],r),o[1]=s(t[1],i[1],n[1],r);var u=l(t[0],i[0],n[0],r),c=l(t[1],i[1],n[1],r);e.rotation=-Math.atan2(c,u)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==e.__lastT&&e.__lastT=0;o--)if(i[o]<=t)break;o=Math.min(o,r-2)}else{for(o=a;ot)break;o=Math.min(o-1,r-2)}var l=(t-i[o])/(i[o+1]-i[o]),u=n[o],c=n[o+1];e.x=u[0]*(1-l)+l*c[0],e.y=u[1]*(1-l)+l*c[1];var h=c[0]-u[0],d=c[1]-u[1];e.rotation=-Math.atan2(d,h)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=t,e.ignore=!1}},t}(fq);const mq=yq;var xq=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),_q=function(e){function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return o(t,e),t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new xq},t.prototype.buildPath=function(e,t){var n,i=t.segs,r=t.curveness;if(t.polyline)for(n=this._off;n0){e.moveTo(i[n++],i[n++]);for(var a=1;a0){var h=(s+u)/2-(l-c)*r,d=(l+c)/2-(u-s)*r;e.quadraticCurveTo(h,d,u,c)}else e.lineTo(u,c)}this.incremental&&(this._off=n,this.notClear=!0)},t.prototype.findDataIndex=function(e,t){var n=this.shape,i=n.segs,r=n.curveness,o=this.style.lineWidth;if(n.polyline)for(var a=0,s=0;s0)for(var u=i[s++],c=i[s++],h=1;h0){var f=(u+d)/2-(c-p)*r,g=(c+p)/2-(d-u)*r;if(Il(u,c,f,g,d,p,o,e,t))return a}else if(Ml(u,c,d,p,o,e,t))return a;a++}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),i=this.getBoundingRect();if(e=n[0],t=n[1],i.contain(e,t)){var r=this.hoverDataIdx=this.findDataIndex(e,t);return r>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape,n=t.segs,i=1/0,r=1/0,o=-1/0,a=-1/0,s=0;s0&&(o.dataIndex=n+e.__startIndex)}))},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}();const wq=bq;var Sq={seriesType:"lines",plan:Nv(),reset:function(e){var t=e.coordinateSystem;if(t){var n=e.get("polyline"),i=e.pipelineContext.large;return{progress:function(r,o){var a=[];if(i){var s=void 0,l=r.end-r.start;if(n){for(var u=0,c=r.start;c0&&(l||s.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)})),r.updateData(i);var u=e.get("clip",!0)&&ZI(e.coordinateSystem,!1,e);u?this.group.setClipPath(u):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var i=e.getData(),r=this._updateLineDraw(i,e);r.incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._lineDraw.incrementalUpdate(e,t.getData()),this._finished=e.end===t.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,t,n){var i=e.getData(),r=e.pipelineContext;if(!this._finished||r.large||r.progressiveRender)return{update:!0};var o=Mq.reset(e,t,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},t.prototype._updateLineDraw=function(e,t){var n=this._lineDraw,i=this._showEffect(t),r=!!t.get("polyline"),o=t.pipelineContext,a=o.large;return n&&i===this._hasEffet&&r===this._isPolyline&&a===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=a?new wq:new VB(r?i?mq:vq:i?fq:RB),this._hasEffet=i,this._isPolyline=r,this._isLargeDraw=a),this.group.add(n.group),n},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var t=e.getZr(),n="svg"===t.painter.getType();n||null==this._lastZlevel||t.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,t){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(t)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.type="lines",t}(nx);const Iq=Cq;var Tq="undefined"===typeof Uint32Array?Array:Uint32Array,kq="undefined"===typeof Float64Array?Array:Float64Array;function Aq(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=W(t,(function(e){var t=[e[0].coord,e[1].coord],n={coords:t};return e[0].name&&(n.fromName=e[0].name),e[1].name&&(n.toName=e[1].name),N([n,e[0],e[1]])})))}var Dq=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return o(t,e),t.prototype.init=function(t){t.data=t.data||[],Aq(t);var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(t){if(Aq(t),t.data){var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var t=this._processFlatCoordsArray(e.data);t.flatCoords&&(this._flatCoords?(this._flatCoords=Se(this._flatCoords,t.flatCoords),this._flatCoordsOffset=Se(this._flatCoordsOffset,t.flatCoordsOffset)):(this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset),e.data=new Float32Array(t.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var t=this.getData().getItemModel(e),n=t.option instanceof Array?t.option:t.getShallow("coords");return n},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[2*e+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,t){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*e],i=this._flatCoordsOffset[2*e+1],r=0;r ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?1e4:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?2e4:this.get("progressiveThreshold"):e},t.prototype.getZLevelKey=function(){var e=this.getModel("effect"),t=e.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get("show")&&t>0?t+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(Ov);const Lq=Dq;function Pq(e){return e instanceof Array||(e=[e,e]),e}var Oq={seriesType:"lines",reset:function(e){var t=Pq(e.get("symbol")),n=Pq(e.get("symbolSize")),i=e.getData();function r(e,t){var n=e.getItemModel(t),i=Pq(n.getShallow("symbol",!0)),r=Pq(n.getShallow("symbolSize",!0));i[0]&&e.setItemVisual(t,"fromSymbol",i[0]),i[1]&&e.setItemVisual(t,"toSymbol",i[1]),r[0]&&e.setItemVisual(t,"fromSymbolSize",r[0]),r[1]&&e.setItemVisual(t,"toSymbolSize",r[1])}return i.setVisual("fromSymbol",t&&t[0]),i.setVisual("toSymbol",t&&t[1]),i.setVisual("fromSymbolSize",n&&n[0]),i.setVisual("toSymbolSize",n&&n[1]),{dataEach:i.hasItemOption?r:null}}};const Rq=Oq;function Eq(e){e.registerChartView(Iq),e.registerSeriesModel(Lq),e.registerLayout(Mq),e.registerVisual(Rq)}var Nq=256,Bq=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=x.createCanvas();this.canvas=e}return e.prototype.update=function(e,t,n,i,r,o){var a=this._getBrush(),s=this._getGradient(r,"inRange"),l=this._getGradient(r,"outOfRange"),u=this.pointSize+this.blurSize,c=this.canvas,h=c.getContext("2d"),d=e.length;c.width=t,c.height=n;for(var p=0;p0){var T=o(m)?s:l;m>0&&(m=m*C+S),_[b++]=T[I],_[b++]=T[I+1],_[b++]=T[I+2],_[b++]=T[I+3]*m*256}else b+=4}return h.putImageData(x,0,0),c},e.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=x.createCanvas()),t=this.pointSize+this.blurSize,n=2*t;e.width=n,e.height=n;var i=e.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-t,t,this.pointSize,0,2*Math.PI,!0),i.closePath(),i.fill(),e},e.prototype._getGradient=function(e,t){for(var n=this._gradientPixels,i=n[t]||(n[t]=new Uint8ClampedArray(1024)),r=[0,0,0,0],o=0,a=0;a<256;a++)e[t](a/255,!0,r),i[o++]=r[0],i[o++]=r[1],i[o++]=r[2],i[o++]=r[3];return i},e}();const Fq=Bq;function zq(e,t,n){var i=e[1]-e[0];t=W(t,(function(t){return{interval:[(t.interval[0]-e[0])/i,(t.interval[1]-e[0])/i]}}));var r=t.length,o=0;return function(e){var i;for(i=o;i=0;i--){a=t[i].interval;if(a[0]<=e&&e<=a[1]){o=i;break}}return i>=0&&i=t[0]&&e<=t[1]}}function Hq(e){var t=e.dimensions;return"lng"===t[0]&&"lat"===t[1]}var qq=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.render=function(e,t,n){var i;t.eachComponent("visualMap",(function(t){t.eachTargetSeries((function(n){n===e&&(i=t)}))})),this._progressiveEls=null,this.group.removeAll();var r=e.coordinateSystem;"cartesian2d"===r.type||"calendar"===r.type?this._renderOnCartesianAndCalendar(e,n,0,e.getData().count()):Hq(r)&&this._renderOnGeo(r,e,i,n)},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll()},t.prototype.incrementalRender=function(e,t,n,i){var r=t.coordinateSystem;r&&(Hq(r)?this.render(t,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(t,i,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){Zm(this._progressiveEls||this.group,e)},t.prototype._renderOnCartesianAndCalendar=function(e,t,n,i,r){var o,a,s,l,u=e.coordinateSystem,c=YI(u,"cartesian2d");if(c){var h=u.getAxis("x"),d=u.getAxis("y");0,o=h.getBandWidth()+.5,a=d.getBandWidth()+.5,s=h.scale.getExtent(),l=d.scale.getExtent()}for(var p=this.group,f=e.getData(),g=e.getModel(["emphasis","itemStyle"]).getItemStyle(),v=e.getModel(["blur","itemStyle"]).getItemStyle(),y=e.getModel(["select","itemStyle"]).getItemStyle(),m=e.get(["itemStyle","borderRadius"]),x=lh(e),_=e.getModel("emphasis"),b=_.get("focus"),w=_.get("blurScope"),S=_.get("disabled"),M=c?[f.mapDimension("x"),f.mapDimension("y"),f.mapDimension("value")]:[f.mapDimension("time"),f.mapDimension("value")],C=n;Cs[1]||Al[1])continue;var D=u.dataToPoint([k,A]);I=new du({shape:{x:D[0]-o/2,y:D[1]-a/2,width:o,height:a},style:T})}else{if(isNaN(f.get(M[1],C)))continue;I=new du({z2:1,shape:u.dataToRect([f.get(M[0],C)]).contentShape,style:T})}if(f.hasItemOption){var L=f.getItemModel(C),P=L.getModel("emphasis");g=P.getModel("itemStyle").getItemStyle(),v=L.getModel(["blur","itemStyle"]).getItemStyle(),y=L.getModel(["select","itemStyle"]).getItemStyle(),m=L.get(["itemStyle","borderRadius"]),b=P.get("focus"),w=P.get("blurScope"),S=P.get("disabled"),x=lh(L)}I.shape.r=m;var O=e.getRawValue(C),R="-";O&&null!=O[2]&&(R=O[2]+""),sh(I,x,{labelFetcher:e,labelDataIndex:C,defaultOpacity:T.opacity,defaultText:R}),I.ensureState("emphasis").style=g,I.ensureState("blur").style=v,I.ensureState("select").style=y,Ec(I,b,w,S),I.incremental=r,r&&(I.states.emphasis.hoverLayer=!0),p.add(I),f.setItemGraphicEl(C,I),this._progressiveEls&&this._progressiveEls.push(I)}},t.prototype._renderOnGeo=function(e,t,n,i){var r=n.targetVisuals.inRange,o=n.targetVisuals.outOfRange,a=t.getData(),s=this._hmLayer||this._hmLayer||new Fq;s.blurSize=t.get("blurSize"),s.pointSize=t.get("pointSize"),s.minOpacity=t.get("minOpacity"),s.maxOpacity=t.get("maxOpacity");var l=e.getViewRect().clone(),u=e.getRoamTransform();l.applyTransform(u);var c=Math.max(l.x,0),h=Math.max(l.y,0),d=Math.min(l.width+l.x,i.getWidth()),p=Math.min(l.height+l.y,i.getHeight()),f=d-c,g=p-h,v=[a.mapDimension("lng"),a.mapDimension("lat"),a.mapDimension("value")],y=a.mapArray(v,(function(t,n,i){var r=e.dataToPoint([t,n]);return r[0]-=c,r[1]-=h,r.push(i),r})),m=n.getExtent(),x="visualMap.continuous"===n.type?Vq(m,n.option.range):zq(m,n.getPieceList(),n.option.selected);s.update(y,f,g,r.color.getNormalizer(),{inRange:r.color.getColorMapper(),outOfRange:o.color.getColorMapper()},x);var _=new iu({style:{width:f,height:g,x:c,y:h,image:s.canvas},silent:!0});this.group.add(_)},t.type="heatmap",t}(nx);const Gq=qq;var Wq=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.getInitialData=function(e,t){return vI(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=ef.get(this.get("coordinateSystem"));if(e&&e.dimensions)return"lng"===e.dimensions[0]&&"lat"===e.dimensions[1]},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(Ov);const Uq=Wq;function jq(e){e.registerChartView(Gq),e.registerSeriesModel(Uq)}var Zq=["itemStyle","borderWidth"],Yq=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],$q=new ly,Xq=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.render=function(e,t,n){var i=this.group,r=e.getData(),o=this._data,a=e.coordinateSystem,s=a.getBaseAxis(),l=s.isHorizontal(),u=a.master.getRect(),c={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:e,coordSys:a,coordSysExtent:[[u.x,u.x+u.width],[u.y,u.y+u.height]],isHorizontal:l,valueDim:Yq[+l],categoryDim:Yq[1-+l]};return r.diff(o).add((function(e){if(r.hasValue(e)){var t=lG(r,e),n=Kq(r,e,t,c),o=hG(r,c,n);r.setItemGraphicEl(e,o),i.add(o),yG(o,c,n)}})).update((function(e,t){var n=o.getItemGraphicEl(t);if(r.hasValue(e)){var a=lG(r,e),s=Kq(r,e,a,c),l=fG(r,s);n&&l!==n.__pictorialShapeStr&&(i.remove(n),r.setItemGraphicEl(e,null),n=null),n?dG(n,c,s):n=hG(r,c,s,!0),r.setItemGraphicEl(e,n),n.__pictorialSymbolMeta=s,i.add(n),yG(n,c,s)}else i.remove(n)})).remove((function(e){var t=o.getItemGraphicEl(e);t&&pG(o,e,t.__pictorialSymbolMeta.animationModel,t)})).execute(),this._data=r,this.group},t.prototype.remove=function(e,t){var n=this.group,i=this._data;e.get("animation")?i&&i.eachItemGraphicEl((function(t){pG(i,Lu(t).dataIndex,e,t)})):n.removeAll()},t.type="pictorialBar",t}(nx);function Kq(e,t,n,i){var r=e.getItemLayout(t),o=n.get("symbolRepeat"),a=n.get("symbolClip"),s=n.get("symbolPosition")||"start",l=n.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=n.get("symbolPatternSize")||2,h=n.isAnimationEnabled(),d={dataIndex:t,layout:r,itemModel:n,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:a,symbolRepeat:o,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:h?n:null,hoverScale:h&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};Jq(n,o,r,i,d),eG(e,t,r,o,a,d.boundingLength,d.pxSign,c,i,d),tG(n,d.symbolScale,u,i,d);var p=d.symbolSize,f=m_(n.get("symbolOffset"),p);return nG(n,p,r,o,a,f,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,i,d),d}function Jq(e,t,n,i,r){var o,a=i.valueDim,s=e.get("symbolBoundingData"),l=i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()),u=l.toGlobalCoord(l.dataToCoord(0)),c=1-+(n[a.wh]<=0);if(J(s)){var h=[Qq(l,s[0])-u,Qq(l,s[1])-u];h[1]0?1:-1}function Qq(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function eG(e,t,n,i,r,o,a,s,l,u){var c,h=l.valueDim,d=l.categoryDim,p=Math.abs(n[d.wh]),f=e.getItemVisual(t,"symbolSize");c=J(f)?f.slice():null==f?["100%","100%"]:[f,f],c[d.index]=Go(c[d.index],p),c[h.index]=Go(c[h.index],i?p:Math.abs(o)),u.symbolSize=c;var g=u.symbolScale=[c[0]/s,c[1]/s];g[h.index]*=(l.isHorizontal?-1:1)*a}function tG(e,t,n,i,r){var o=e.get(Zq)||0;o&&($q.attr({scaleX:t[0],scaleY:t[1],rotation:n}),$q.updateTransform(),o/=$q.getLineScale(),o*=t[i.valueDim.index]),r.valueLineWidth=o||0}function nG(e,t,n,i,r,o,a,s,l,u,c,h){var d=c.categoryDim,p=c.valueDim,f=h.pxSign,g=Math.max(t[p.index]+s,0),v=g;if(i){var y=Math.abs(l),m=he(e.get("symbolMargin"),"15%")+"",x=!1;m.lastIndexOf("!")===m.length-1&&(x=!0,m=m.slice(0,m.length-1));var _=Go(m,t[p.index]),b=Math.max(g+2*_,0),w=x?0:2*_,S=la(i),M=S?i:mG((y+w)/b),C=y-M*g;_=C/2/(x?M:Math.max(M-1,1)),b=g+2*_,w=x?0:2*_,S||"fixed"===i||(M=u?mG((Math.abs(u)+w)/b):0),v=M*b-w,h.repeatTimes=M,h.symbolMargin=_}var I=f*(v/2),T=h.pathPosition=[];T[d.index]=n[d.wh]/2,T[p.index]="start"===a?I:"end"===a?l-I:l/2,o&&(T[0]+=o[0],T[1]+=o[1]);var k=h.bundlePosition=[];k[d.index]=n[d.xy],k[p.index]=n[p.xy];var A=h.barRectShape=B({},n);A[p.wh]=f*Math.max(Math.abs(n[p.wh]),Math.abs(T[p.index]+I)),A[d.wh]=n[d.wh];var D=h.clipShape={};D[d.xy]=-n[d.xy],D[d.wh]=c.ecSize[d.wh],D[p.xy]=0,D[p.wh]=n[p.wh]}function iG(e){var t=e.symbolPatternSize,n=v_(e.symbolType,-t/2,-t/2,t,t);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function rG(e,t,n,i){var r=e.__pictorialBundle,o=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,l=t.valueDim,u=n.repeatTimes||0,c=0,h=o[t.valueDim.index]+a+2*n.symbolMargin;for(gG(e,(function(e){e.__pictorialAnimationIndex=c,e.__pictorialRepeatTimes=u,c0:i<0)&&(r=u-1-e),t[l.index]=h*(r-u/2+.5)+s[l.index],{x:t[0],y:t[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function oG(e,t,n,i){var r=e.__pictorialBundle,o=e.__pictorialMainPath;o?vG(o,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,i):(o=e.__pictorialMainPath=iG(n),r.add(o),vG(o,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,i))}function aG(e,t,n){var i=B({},t.barRectShape),r=e.__pictorialBarRect;r?vG(r,null,{shape:i},t,n):(r=e.__pictorialBarRect=new du({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),r.disableMorphing=!0,e.add(r))}function sG(e,t,n,r){if(n.symbolClip){var o=e.__pictorialClipPath,a=B({},n.clipShape),s=t.valueDim,l=n.animationModel,u=n.dataIndex;if(o)Xc(o,{shape:a},l,u);else{a[s.wh]=0,o=new du({shape:a}),e.__pictorialBundle.setClipPath(o),e.__pictorialClipPath=o;var c={};c[s.wh]=n.clipShape[s.wh],i[r?"updateProps":"initProps"](o,{shape:c},l,u)}}}function lG(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=uG,n.isAnimationEnabled=cG,n}function uG(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function cG(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function hG(e,t,n,i){var r=new Lo,o=new Lo;return r.add(o),r.__pictorialBundle=o,o.x=n.bundlePosition[0],o.y=n.bundlePosition[1],n.symbolRepeat?rG(r,t,n):oG(r,t,n),aG(r,n,i),sG(r,t,n,i),r.__pictorialShapeStr=fG(e,n),r.__pictorialSymbolMeta=n,r}function dG(e,t,n){var i=n.animationModel,r=n.dataIndex,o=e.__pictorialBundle;Xc(o,{x:n.bundlePosition[0],y:n.bundlePosition[1]},i,r),n.symbolRepeat?rG(e,t,n,!0):oG(e,t,n,!0),aG(e,n,!0),sG(e,t,n,!0)}function pG(e,t,n,i){var r=i.__pictorialBarRect;r&&r.removeTextContent();var o=[];gG(i,(function(e){o.push(e)})),i.__pictorialMainPath&&o.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),G(o,(function(e){Qc(e,{scaleX:0,scaleY:0},n,t,(function(){i.parent&&i.parent.remove(i)}))})),e.setItemGraphicEl(t,null)}function fG(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function gG(e,t,n){G(e.__pictorialBundle.children(),(function(i){i!==e.__pictorialBarRect&&t.call(n,i)}))}function vG(e,t,n,r,o,a){t&&e.attr(t),r.symbolClip&&!o?n&&e.attr(n):n&&i[o?"updateProps":"initProps"](e,n,r.animationModel,r.dataIndex,a)}function yG(e,t,n){var i=n.dataIndex,r=n.itemModel,o=r.getModel("emphasis"),a=o.getModel("itemStyle").getItemStyle(),s=r.getModel(["blur","itemStyle"]).getItemStyle(),l=r.getModel(["select","itemStyle"]).getItemStyle(),u=r.getShallow("cursor"),c=o.get("focus"),h=o.get("blurScope"),d=o.get("scale");gG(e,(function(e){if(e instanceof iu){var t=e.style;e.useStyle(B({image:t.image,x:t.x,y:t.y,width:t.width,height:t.height},n.style))}else e.useStyle(n.style);var i=e.ensureState("emphasis");i.style=a,d&&(i.scaleX=1.1*e.scaleX,i.scaleY=1.1*e.scaleY),e.ensureState("blur").style=s,e.ensureState("select").style=l,u&&(e.cursor=u),e.z2=n.z2}));var p=t.valueDim.posDesc[+(n.boundingLength>0)],f=e.__pictorialBarRect;sh(f,lh(r),{labelFetcher:t.seriesModel,labelDataIndex:i,defaultText:xI(t.seriesModel.getData(),i),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:p}),Ec(e,c,h,o.get("disabled"))}function mG(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}const xG=Xq;var _G=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return o(t,e),t.prototype.getInitialData=function(t){return t.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=Fh(RT.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(RT);const bG=_G;function wG(e){e.registerChartView(xG),e.registerSeriesModel(bG),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,K(kT,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,AT("pictorialBar"))}var SG=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._layers=[],n}return o(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),r=this,o=this.group,a=e.getLayerSeries(),s=i.getLayout("layoutInfo"),l=s.rect,u=s.boundaryGap;function c(e){return e.name}o.x=0,o.y=l.y+u[0];var h=new wC(this._layersSeries||[],a,c,c),d=[];function p(t,n,s){var l=r._layers;if("remove"!==t){for(var u,c,h=[],p=[],f=a[n].indices,g=0;go&&(o=s),i.push(s)}for(var u=0;uo&&(o=h)}return{y0:r,max:o}}function PG(e){e.registerChartView(CG),e.registerSeriesModel(kG),e.registerLayout(AG),e.registerProcessor(bk("themeRiver"))}var OG=2,RG=4,EG=function(e){function t(t,n,i,r){var o=e.call(this)||this;o.z2=OG,o.textConfig={inside:!0},Lu(o).seriesIndex=n.seriesIndex;var a=new Du({z2:RG,silent:t.getModel().get(["label","silent"])});return o.setTextContent(a),o.updateData(!0,t,n,i,r),o}return o(t,e),t.prototype.updateData=function(e,t,n,i,r){this.node=t,t.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var o=this;Lu(o).dataIndex=t.dataIndex;var a=t.getModel(),s=a.getModel("emphasis"),l=t.getLayout(),u=B({},l);u.label=null;var c=t.getVisual("style");c.lineJoin="bevel";var h=t.getVisual("decal");h&&(c.decal=ob(h,r));var d=kk(a.getModel("itemStyle"),u,!0);B(u,d),G(Vu,(function(e){var t=o.ensureState(e),n=a.getModel([e,"itemStyle"]);t.style=n.getItemStyle();var i=kk(n,u);i&&(t.shape=i)})),e?(o.setShape(u),o.shape.r=l.r0,Xc(o,{shape:{r:l.r}},n,t.dataIndex)):(Xc(o,{shape:u},n),nh(o)),o.useStyle(c),this._updateLabel(n);var p=a.getShallow("cursor");p&&o.attr("cursor",p),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;var f=s.get("focus"),g="ancestor"===f?t.getAncestorsIndices():"descendant"===f?t.getDescendantIndices():f;Ec(this,g,s.get("blurScope"),s.get("disabled"))},t.prototype._updateLabel=function(e){var t=this,n=this.node.getModel(),i=n.getModel("label"),r=this.node.getLayout(),o=r.endAngle-r.startAngle,a=(r.startAngle+r.endAngle)/2,s=Math.cos(a),l=Math.sin(a),u=this,c=u.getTextContent(),h=this.node.dataIndex,d=i.get("minAngle")/180*Math.PI,p=i.get("show")&&!(null!=d&&Math.abs(o)Math.PI/2?"right":"left"):S&&"center"!==S?"left"===S?(m=r.r0+w,a>Math.PI/2&&(S="right")):"right"===S&&(m=r.r-w,a>Math.PI/2&&(S="left")):(m=o===2*Math.PI&&0===r.r0?0:(r.r+r.r0)/2,S="center"),g.style.align=S,g.style.verticalAlign=f(d,"verticalAlign")||"middle",g.x=m*s+r.cx,g.y=m*l+r.cy;var M=f(d,"rotate"),C=0;"radial"===M?(C=-a,C<-Math.PI/2&&(C+=Math.PI)):"tangential"===M?(C=Math.PI/2-a,C>Math.PI/2?C-=Math.PI:C<-Math.PI/2&&(C+=Math.PI)):ne(M)&&(C=M*Math.PI/180),g.rotation=C})),c.dirtyStyle()},t}(Ay);const NG=EG;var BG="sunburstRootToNode",FG="sunburstHighlight",zG="sunburstUnhighlight";function VG(e){e.registerAction({type:BG,update:"updateView"},(function(e,t){function n(t,n){var i=oE(e,[BG],t);if(i){var r=t.getViewRoot();r&&(e.direction=sE(r,i.node)?"rollUp":"drillDown"),t.resetViewRoot(i.node)}}t.eachComponent({mainType:"series",subType:"sunburst",query:e},n)})),e.registerAction({type:FG,update:"none"},(function(e,t,n){function i(t){var n=oE(e,[FG],t);n&&(e.dataIndex=n.node.dataIndex)}e=B({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},i),n.dispatchAction(B(e,{type:"highlight"}))})),e.registerAction({type:zG,update:"updateView"},(function(e,t,n){e=B({},e),n.dispatchAction(B(e,{type:"downplay"}))}))}var HG=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.render=function(e,t,n,i){var r=this;this.seriesModel=e,this.api=n,this.ecModel=t;var o=e.getData(),a=o.tree.root,s=e.getViewRoot(),l=this.group,u=e.get("renderLabelForZeroData"),c=[];s.eachNode((function(e){c.push(e)}));var h=this._oldChildren||[];function d(e,t){function n(e){return e.getId()}function i(n,i){var r=null==n?null:e[n],o=null==i?null:t[i];p(r,o)}0===e.length&&0===t.length||new wC(t,e,n,n).add(i).update(i).remove(K(i,null)).execute()}function p(i,r){if(u||!i||i.getValue()||(i=null),i!==a&&r!==a)if(r&&r.piece)i?(r.piece.updateData(!1,i,e,t,n),o.setItemGraphicEl(i.dataIndex,r.piece)):f(r);else if(i){var s=new NG(i,e,t,n);l.add(s),o.setItemGraphicEl(i.dataIndex,s)}}function f(e){e&&e.piece&&(l.remove(e.piece),e.piece=null)}function g(i,o){o.depth>0?(r.virtualPiece?r.virtualPiece.updateData(!1,i,e,t,n):(r.virtualPiece=new NG(i,e,t,n),l.add(r.virtualPiece)),o.piece.off("click"),r.virtualPiece.on("click",(function(e){r._rootToNode(o.parentNode)}))):r.virtualPiece&&(l.remove(r.virtualPiece),r.virtualPiece=null)}d(c,h),g(a,s),this._initEvents(),this._oldChildren=c},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",(function(t){var n=!1,i=e.seriesModel.getViewRoot();i.eachNode((function(i){if(!n&&i.piece&&i.piece===t.target){var r=i.getModel().get("nodeClick");if("rootToNode"===r)e._rootToNode(i);else if("link"===r){var o=i.getModel(),a=o.get("link");if(a){var s=o.get("target",!0)||"_blank";qd(a,s)}}n=!0}}))}))},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:BG,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,t){var n=t.getData(),i=n.getItemLayout(0);if(i){var r=e[0]-i.cx,o=e[1]-i.cy,a=Math.sqrt(r*r+o*o);return a<=i.r&&a>=i.r0}},t.type="sunburst",t}(nx);const qG=HG;var GG=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreStyleOnData=!0,n}return o(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};WG(n);var i=this._levelModels=W(e.levels||[],(function(e){return new Oh(e,this,t)}),this),r=rE.createTree(n,this,o);function o(e){e.wrapMethod("getItemModel",(function(e,t){var n=r.getNodeByDataIndex(t),o=i[n.depth];return o&&(e.parentModel=o),e}))}return r.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treePathInfo=lE(i,this),n},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){_E(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}(Ov);function WG(e){var t=0;G(e.children,(function(e){WG(e);var n=e.value;J(n)&&(n=n[0]),t+=n}));var n=e.value;J(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),n<0&&(n=0),J(e.value)?e.value[0]=n:e.value=n}const UG=GG;var jG=Math.PI/180;function ZG(e,t,n){t.eachSeriesByType(e,(function(e){var t=e.get("center"),i=e.get("radius");J(i)||(i=[0,i]),J(t)||(t=[t,t]);var r=n.getWidth(),o=n.getHeight(),a=Math.min(r,o),s=Go(t[0],r),l=Go(t[1],o),u=Go(i[0],a/2),c=Go(i[1],a/2),h=-e.get("startAngle")*jG,d=e.get("minAngle")*jG,p=e.getData().tree.root,f=e.getViewRoot(),g=f.depth,v=e.get("sort");null!=v&&YG(f,v);var y=0;G(f.children,(function(e){!isNaN(e.getValue())&&y++}));var m=f.getValue(),x=Math.PI/(m||y)*2,_=f.depth>0,b=f.height-(_?-1:1),w=(c-u)/(b||1),S=e.get("clockwise"),M=e.get("stillShowZeroSum"),C=S?1:-1,I=function(t,n){if(t){var i=n;if(t!==p){var r=t.getValue(),o=0===m&&M?x:r*x;o1)r=r.parentNode;var o=n.getColorFromPalette(r.name||r.dataIndex+"",t);return e.depth>1&&ee(o)&&(o=ti(o,(e.depth-1)/(i-1)*.5)),o}e.eachSeriesByType("sunburst",(function(e){var t=e.getData(),i=t.tree;i.eachNode((function(r){var o=r.getModel(),a=o.getModel("itemStyle").getItemStyle();a.fill||(a.fill=n(r,e,i.root.height));var s=t.ensureUniqueItemVisual(r.dataIndex,"style");B(s,a)}))}))}function KG(e){e.registerChartView(qG),e.registerSeriesModel(UG),e.registerLayout(K(ZG,"sunburst")),e.registerProcessor(K(bk,"sunburst")),e.registerVisual(XG),VG(e)}var JG={color:"fill",borderColor:"stroke"},QG={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},eW=Ba(),tW=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,t){return vI(null,this)},t.prototype.getDataParams=function(t,n,i){var r=e.prototype.getDataParams.call(this,t,n);return i&&(r.info=eW(i).info),r},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(Ov);const nW=tW;function iW(e,t){return t=t||[0,0],W(["x","y"],(function(n,i){var r=this.getAxis(n),o=t[i],a=e[i]/2;return"category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a))}),this)}function rW(e){var t=e.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:X(iW,e)}}}function oW(e,t){return t=t||[0,0],W([0,1],(function(n){var i=t[n],r=e[n]/2,o=[],a=[];return o[n]=i-r,a[n]=i+r,o[1-n]=a[1-n]=t[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])}),this)}function aW(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(t){return e.dataToPoint(t)},size:X(oW,e)}}}function sW(e,t){var n=this.getAxis(),i=t instanceof Array?t[0]:t,r=(e instanceof Array?e[0]:e)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-r)-n.dataToCoord(i+r))}function lW(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:X(sW,e)}}}function uW(e,t){return t=t||[0,0],W(["Radius","Angle"],(function(n,i){var r="get"+n+"Axis",o=this[r](),a=t[i],s=e[i]/2,l="category"===o.type?o.getBandWidth():Math.abs(o.dataToCoord(a-s)-o.dataToCoord(a+s));return"Angle"===n&&(l=l*Math.PI/180),l}),this)}function cW(e){var t=e.getRadiusAxis(),n=e.getAngleAxis(),i=t.getExtent();return i[0]>i[1]&&i.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:i[1],r0:i[0]},api:{coord:function(i){var r=t.dataToRadius(i[0]),o=n.dataToAngle(i[1]),a=e.coordToPoint([r,o]);return a.push(r,o*Math.PI/180),a},size:X(uW,e)}}}function hW(e){var t=e.getRect(),n=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(t,n){return e.dataToPoint(t,n)}}}}function dW(e,t,n,i){return e&&(e.legacy||!1!==e.legacy&&!n&&!i&&"tspan"!==t&&("text"===t||Ie(e,"text")))}function pW(e,t,n){var i,r,o,a=e;if("text"===t)o=a;else{o={},Ie(a,"text")&&(o.text=a.text),Ie(a,"rich")&&(o.rich=a.rich),Ie(a,"textFill")&&(o.fill=a.textFill),Ie(a,"textStroke")&&(o.stroke=a.textStroke),Ie(a,"fontFamily")&&(o.fontFamily=a.fontFamily),Ie(a,"fontSize")&&(o.fontSize=a.fontSize),Ie(a,"fontStyle")&&(o.fontStyle=a.fontStyle),Ie(a,"fontWeight")&&(o.fontWeight=a.fontWeight),r={type:"text",style:o,silent:!0},i={};var s=Ie(a,"textPosition");n?i.position=s?a.textPosition:"inside":s&&(i.position=a.textPosition),Ie(a,"textPosition")&&(i.position=a.textPosition),Ie(a,"textOffset")&&(i.offset=a.textOffset),Ie(a,"textRotation")&&(i.rotation=a.textRotation),Ie(a,"textDistance")&&(i.distance=a.textDistance)}return fW(o,e),G(o.rich,(function(e){fW(e,e)})),{textConfig:i,textContent:r}}function fW(e,t){t&&(t.font=t.textFont||t.font,Ie(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),Ie(t,"textAlign")&&(e.align=t.textAlign),Ie(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),Ie(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),Ie(t,"textWidth")&&(e.width=t.textWidth),Ie(t,"textHeight")&&(e.height=t.textHeight),Ie(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),Ie(t,"textPadding")&&(e.padding=t.textPadding),Ie(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),Ie(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),Ie(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),Ie(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),Ie(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),Ie(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),Ie(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function gW(e,t,n){var i=e;i.textPosition=i.textPosition||n.position||"inside",null!=n.offset&&(i.textOffset=n.offset),null!=n.rotation&&(i.textRotation=n.rotation),null!=n.distance&&(i.textDistance=n.distance);var r=i.textPosition.indexOf("inside")>=0,o=e.fill||"#000";vW(i,t);var a=null==i.textFill;return r?a&&(i.textFill=n.insideFill||"#fff",!i.textStroke&&n.insideStroke&&(i.textStroke=n.insideStroke),!i.textStroke&&(i.textStroke=o),null==i.textStrokeWidth&&(i.textStrokeWidth=2)):(a&&(i.textFill=e.fill||n.outsideFill||"#000"),!i.textStroke&&n.outsideStroke&&(i.textStroke=n.outsideStroke)),i.text=t.text,i.rich=t.rich,G(t.rich,(function(e){vW(e,e)})),i}function vW(e,t){t&&(Ie(t,"fill")&&(e.textFill=t.fill),Ie(t,"stroke")&&(e.textStroke=t.fill),Ie(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),Ie(t,"font")&&(e.font=t.font),Ie(t,"fontStyle")&&(e.fontStyle=t.fontStyle),Ie(t,"fontWeight")&&(e.fontWeight=t.fontWeight),Ie(t,"fontSize")&&(e.fontSize=t.fontSize),Ie(t,"fontFamily")&&(e.fontFamily=t.fontFamily),Ie(t,"align")&&(e.textAlign=t.align),Ie(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),Ie(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),Ie(t,"width")&&(e.textWidth=t.width),Ie(t,"height")&&(e.textHeight=t.height),Ie(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),Ie(t,"padding")&&(e.textPadding=t.padding),Ie(t,"borderColor")&&(e.textBorderColor=t.borderColor),Ie(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),Ie(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),Ie(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),Ie(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),Ie(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),Ie(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),Ie(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),Ie(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),Ie(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),Ie(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var yW={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},mW=Y(yW),xW=(U(Ur,(function(e,t){return e[t]=1,e}),{}),Ur.join(", "),["","style","shape","extra"]),_W=Ba();function bW(e,t,n,i,r){var o=e+"Animation",a=Yc(e,i,r)||{},s=_W(t).userDuring;return a.duration>0&&(a.during=s?X(LW,{el:t,userDuring:s}):null,a.setToFinal=!0,a.scope=e),B(a,n[o]),a}function wW(e,t,n,i){i=i||{};var r=i.dataIndex,o=i.isInit,a=i.clearStyle,s=n.isAnimationEnabled(),l=_W(e),u=t.style;l.userDuring=t.during;var c={},h={};if(EW(e,t,h),OW("shape",t,h),OW("extra",t,h),!o&&s&&(RW(e,t,c),PW("shape",e,t,c),PW("extra",e,t,c),NW(e,t,u,c)),h.style=u,IW(e,h,a),kW(e,t),s)if(o){var d={};G(xW,(function(e){var n=e?t[e]:t;n&&n.enterFrom&&(e&&(d[e]=d[e]||{}),B(e?d[e]:d,n.enterFrom))}));var p=bW("enter",e,t,n,r);p.duration>0&&e.animateFrom(d,p)}else TW(e,t,r||0,n,c);SW(e,t),u?e.dirty():e.markRedraw()}function SW(e,t){for(var n=_W(e).leaveToProps,i=0;i0&&e.animateFrom(r,o)}}function kW(e,t){Ie(t,"silent")&&(e.silent=t.silent),Ie(t,"ignore")&&(e.ignore=t.ignore),e instanceof qs&&Ie(t,"invisible")&&(e.invisible=t.invisible),e instanceof $l&&Ie(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var AW={},DW={setTransform:function(e,t){return AW.el[e]=t,this},getTransform:function(e){return AW.el[e]},setShape:function(e,t){var n=AW.el,i=n.shape||(n.shape={});return i[e]=t,n.dirtyShape&&n.dirtyShape(),this},getShape:function(e){var t=AW.el.shape;if(t)return t[e]},setStyle:function(e,t){var n=AW.el,i=n.style;return i&&(i[e]=t,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(e){var t=AW.el.style;if(t)return t[e]},setExtra:function(e,t){var n=AW.el.extra||(AW.el.extra={});return n[e]=t,this},getExtra:function(e){var t=AW.el.extra;if(t)return t[e]}};function LW(){var e=this,t=e.el;if(t){var n=_W(t).userDuring,i=e.userDuring;n===i?(AW.el=t,i(DW)):e.el=e.userDuring=null}}function PW(e,t,n,i){var r=n[e];if(r){var o,a=t[e];if(a){var s=n.transition,l=r.transition;if(l)if(!o&&(o=i[e]={}),CW(l))B(o,a);else for(var u=ga(l),c=0;c=0){!o&&(o=i[e]={});var p=Y(a);for(c=0;c=0)){var d=e.getAnimationStyleProps(),p=d?d.style:null;if(p){!r&&(r=i.style={});var f=Y(n);for(u=0;u=0?t.getStore().get(r,n):void 0}var o=t.get(i.name,n),a=i&&i.ordinalMeta;return a?a.categories[o]:o}function w(n,i){null==i&&(i=s);var r=t.getItemVisual(i,"style"),o=r&&r.fill,a=r&&r.opacity,l=m(i,GW).getItemStyle();null!=o&&(l.fill=o),null!=a&&(l.opacity=a);var u={inheritColor:ee(o)?o:"#000"},c=x(i,GW),h=uh(c,null,u,!1,!0);h.text=c.getShallow("show")?de(e.getFormattedLabel(i,GW),xI(t,i)):null;var d=ch(c,u,!1);return C(n,l),l=gW(l,h,d),n&&M(l,n),l.legacy=!0,l}function S(n,i){null==i&&(i=s);var r=m(i,qW).getItemStyle(),o=x(i,qW),a=uh(o,null,null,!0,!0);a.text=o.getShallow("show")?pe(e.getFormattedLabel(i,qW),e.getFormattedLabel(i,GW),xI(t,i)):null;var l=ch(o,null,!0);return C(n,r),r=gW(r,a,l),n&&M(r,n),r.legacy=!0,r}function M(e,t){for(var n in t)Ie(t,n)&&(e[n]=t[n])}function C(e,t){e&&(e.textFill&&(t.textFill=e.textFill),e.textPosition&&(t.textPosition=e.textPosition))}function I(e,n){if(null==n&&(n=s),Ie(JG,e)){var i=t.getItemVisual(n,"style");return i?i[JG[e]]:null}if(Ie(QG,e))return t.getItemVisual(n,e)}function T(e){if("cartesian2d"===o.type){var t=o.getBaseAxis();return wT(F({axis:t},e))}}function k(){return n.getCurrentSeriesIndices()}function A(e){return yh(e,n)}}function cU(e){var t={};return G(e.dimensions,(function(n){var i=e.getDimensionInfo(n);if(!i.isExtraCoord){var r=i.coordDim,o=t[r]=t[r]||[];o[i.coordDimIndex]=e.getDimensionIndex(n)}})),t}function hU(e,t,n,i,r,o,a){if(i){var s=dU(e,t,n,i,r,o);return s&&a.setItemGraphicEl(n,s),s&&Ec(s,i.focus,i.blurScope,i.emphasisDisabled),s}o.remove(t)}function dU(e,t,n,i,r,o){var a=-1,s=t;t&&pU(t,i,r)&&(a=z(o.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=rU(i),s&&tU(s,u)),!1===i.morph?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),KW.normal.cfg=KW.normal.conOpt=KW.emphasis.cfg=KW.emphasis.conOpt=KW.blur.cfg=KW.blur.conOpt=KW.select.cfg=KW.select.conOpt=null,KW.isLegacy=!1,gU(u,n,i,r,l,KW),fU(u,n,i,r,l),oU(e,u,n,i,KW,r,l),Ie(i,"info")&&(eW(u).info=i.info);for(var c=0;c=0?o.replaceAt(u,a):o.add(u),u}function pU(e,t,n){var i=eW(e),r=t.type,o=t.shape,a=t.style;return n.isUniversalTransitionEnabled()||null!=r&&r!==i.customGraphicType||"path"===r&&CU(o)&&MU(o)!==i.customPathData||"image"===r&&Ie(a,"image")&&a.image!==i.customImagePath}function fU(e,t,n,i,r){var o=n.clipPath;if(!1===o)e&&e.getClipPath()&&e.removeClipPath();else if(o){var a=e.getClipPath();a&&pU(a,o,i)&&(a=null),a||(a=rU(o),e.setClipPath(a)),oU(null,a,t,o,null,i,r)}}function gU(e,t,n,i,r,o){if(!e.isGroup){vU(n,null,o),vU(n,qW,o);var a=o.normal.conOpt,s=o.emphasis.conOpt,l=o.blur.conOpt,u=o.select.conOpt;if(null!=a||null!=s||null!=u||null!=l){var c=e.getTextContent();if(!1===a)c&&e.removeTextContent();else{a=o.normal.conOpt=a||{type:"text"},c?c.clearStates():(c=rU(a),e.setTextContent(c)),oU(null,c,t,a,null,i,r);for(var h=a&&a.style,d=0;d=c;h--){var d=t.childAt(h);MW(d,eW(t).option,r)}}}function _U(e){new wC(e.oldChildren,e.newChildren,bU,bU,e).add(wU).update(wU).remove(SU).execute()}function bU(e,t){var n=e&&e.name;return null!=n?n:XW+t}function wU(e,t){var n=this.context,i=null!=e?n.newChildren[e]:null,r=null!=t?n.oldChildren[t]:null;dU(n.api,r,n.dataIndex,i,n.seriesModel,n.group)}function SU(e){var t=this.context,n=t.oldChildren[e];MW(n,eW(n).option,t.seriesModel)}function MU(e){return e&&(e.pathData||e.d)}function CU(e){return e&&(Ie(e,"pathData")||Ie(e,"d"))}function IU(e){e.registerChartView(iU),e.registerSeriesModel(nW)}var TU=Ba(),kU=R,AU=X,DU=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,i){var r=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=n,i||this._lastValue!==r||this._lastStatus!==o){this._lastValue=r,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||"hide"===o)return a&&a.hide(),void(s&&s.hide());a&&a.show(),s&&s.show();var l={};this.makeElOption(l,r,e,t,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var c=this._moveAnimation=this.determineAnimation(e,t);if(a){var h=K(LU,t,c);this.updatePointerEl(a,l,h),this.updateLabelEl(a,l,h,t)}else a=this._group=new Lo,this.createPointerEl(a,l,e,t),this.createLabelEl(a,l,e,t),n.getZr().add(a);EU(a,t,!0),this._renderHandle(r)}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var n=t.get("animation"),i=e.axis,r="category"===i.type,o=t.get("snap");if(!o&&!r)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(r&&i.getBandWidth()>a)return!0;if(o){var s=xL(e).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},e.prototype.makeElOption=function(e,t,n,i,r){},e.prototype.createPointerEl=function(e,t,n,r){var o=t.pointer;if(o){var a=TU(e).pointerEl=new i[o.type](kU(t.pointer));e.add(a)}},e.prototype.createLabelEl=function(e,t,n,i){if(t.label){var r=TU(e).labelEl=new Du(kU(t.label));e.add(r),OU(r,i)}},e.prototype.updatePointerEl=function(e,t,n){var i=TU(e).pointerEl;i&&t.pointer&&(i.setStyle(t.pointer.style),n(i,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,i){var r=TU(e).labelEl;r&&(r.setStyle(t.label.style),n(r,{x:t.label.x,y:t.label.y}),OU(r,i))},e.prototype._renderHandle=function(e){if(!this._dragging&&this.updateHandleTransform){var t,n=this._axisPointerModel,i=this._api.getZr(),r=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return r&&i.remove(r),void(this._handle=null);this._handle||(t=!0,r=this._handle=Vm(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(e){bt(e.event)},onmousedown:AU(this._onHandleDragMove,this,0,0),drift:AU(this._onHandleDragMove,this),ondragend:AU(this._onHandleDragEnd,this)}),i.add(r)),EU(r,n,!1),r.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");J(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,sx(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,t)}},e.prototype._moveHandleToValue=function(e,t){LU(this._axisPointerModel,!t&&this._moveAnimation,this._handle,RU(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(RU(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(RU(i)),TU(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,i=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),i&&t.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),lx(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},e}();function LU(e,t,n,i){PU(TU(n).lastProp,i)||(TU(n).lastProp=i,t?Xc(n,i,e):(n.stopAnimation(),n.attr(i)))}function PU(e,t){if(ie(e)&&ie(t)){var n=!0;return G(t,(function(t,i){n=n&&PU(e[i],t)})),!!n}return e===t}function OU(e,t){e[t.get(["label","show"])?"show":"hide"]()}function RU(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function EU(e,t,n){var i=t.get("z"),r=t.get("zlevel");e&&e.traverse((function(e){"group"!==e.type&&(null!=i&&(e.z=i),null!=r&&(e.zlevel=r),e.silent=n)}))}const NU=DU;function BU(e){var t,n=e.get("type"),i=e.getModel(n+"Style");return"line"===n?(t=i.getLineStyle(),t.fill=null):"shadow"===n&&(t=i.getAreaStyle(),t.stroke=null),t}function FU(e,t,n,i,r){var o=n.get("value"),a=VU(o,t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=Ld(s.get("padding")||0),u=s.getFont(),c=uo(a,u),h=r.position,d=c.width+l[1]+l[3],p=c.height+l[0]+l[2],f=r.align;"right"===f&&(h[0]-=d),"center"===f&&(h[0]-=d/2);var g=r.verticalAlign;"bottom"===g&&(h[1]-=p),"middle"===g&&(h[1]-=p/2),zU(h,d,p,i);var v=s.get("backgroundColor");v&&"auto"!==v||(v=t.get(["axisLine","lineStyle","color"])),e.label={x:h[0],y:h[1],style:uh(s,{text:a,font:u,fill:s.getTextColor(),padding:l,backgroundColor:v}),z2:10}}function zU(e,t,n,i){var r=i.getWidth(),o=i.getHeight();e[0]=Math.min(e[0]+t,r)-t,e[1]=Math.min(e[1]+n,o)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function VU(e,t,n,i,r){e=t.scale.parse(e);var o=t.scale.getLabel({value:e},{precision:r.precision}),a=r.formatter;if(a){var s={value:sD(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};G(i,(function(e){var t=n.getSeriesByIndex(e.seriesIndex),i=e.dataIndexInside,r=t&&t.getDataParams(i);r&&s.seriesData.push(r)})),ee(a)?o=a.replace("{value}",o):Q(a)&&(o=a(s))}return o}function HU(e,t,n){var i=kr();return Or(i,i,n.rotation),Pr(i,i,n.position),Om([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function qU(e,t,n,i,r,o){var a=hL.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get(["label","margin"]),FU(t,i,r,o,{position:HU(i.axis,e,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function GU(e,t,n){return n=n||0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function WU(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function UU(e,t,n,i,r,o){return{cx:e,cy:t,r0:n,r:i,startAngle:r,endAngle:o,clockwise:!0}}var jU=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.makeElOption=function(e,t,n,i,r){var o=n.axis,a=o.grid,s=i.get("type"),l=ZU(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(t,!0));if(s&&"none"!==s){var c=BU(i),h=YU[s](o,u,l);h.style=c,e.graphicKey=h.type,e.pointer=h}var d=qD(a.model,n);qU(t,e,d,n,i,r)},t.prototype.getHandleTransform=function(e,t,n){var i=qD(t.axis.grid.model,t,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=HU(t.axis,e,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,i){var r=n.axis,o=r.grid,a=r.getGlobalExtent(!0),s=ZU(o,r).getOtherAxis(r).getGlobalExtent(),l="x"===r.dim?0:1,u=[e.x,e.y];u[l]+=t[l],u[l]=Math.min(a[1],u[l]),u[l]=Math.max(a[0],u[l]);var c=(s[1]+s[0])/2,h=[c,c];h[l]=u[l];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:u[0],y:u[1],rotation:e.rotation,cursorPoint:h,tooltipOption:d[l]}},t}(NU);function ZU(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var YU={line:function(e,t,n){var i=GU([t,n[0]],[t,n[1]],$U(e));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(e,t,n){var i=Math.max(1,e.getBandWidth()),r=n[1]-n[0];return{type:"Rect",shape:WU([t-i/2,n[0]],[i,r],$U(e))}}};function $U(e){return"x"===e.dim?0:1}const XU=jU;var KU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(op);const JU=KU;var QU=Ba(),ej=G;function tj(e,t,n){if(!c.node){var i=t.getZr();QU(i).records||(QU(i).records={}),nj(i,t);var r=QU(i).records[e]||(QU(i).records[e]={});r.handler=n}}function nj(e,t){function n(n,i){e.on(n,(function(n){var r=aj(t);ej(QU(e).records,(function(e){e&&i(e,n,r.dispatchAction)})),ij(r.pendings,t)}))}QU(e).initialized||(QU(e).initialized=!0,n("click",K(oj,"click")),n("mousemove",K(oj,"mousemove")),n("globalout",rj))}function ij(e,t){var n,i=e.showTip.length,r=e.hideTip.length;i?n=e.showTip[i-1]:r&&(n=e.hideTip[r-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}function rj(e,t,n){e.handler("leave",null,n)}function oj(e,t,n,i){t.handler(e,n,i)}function aj(e){var t={showTip:[],hideTip:[]},n=function(i){var r=t[i.type];r?r.push(i):(i.dispatchAction=n,e.dispatchAction(i))};return{dispatchAction:n,pendings:t}}function sj(e,t){if(!c.node){var n=t.getZr(),i=(QU(n).records||{})[e];i&&(QU(n).records[e]=null)}}var lj=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.render=function(e,t,n){var i=t.getComponent("tooltip"),r=e.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";tj("axisPointer",n,(function(e,t,n){"none"!==r&&("leave"===e||r.indexOf(e)>=0)&&n({type:"updateAxisPointer",currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})}))},t.prototype.remove=function(e,t){sj("axisPointer",t)},t.prototype.dispose=function(e,t){sj("axisPointer",t)},t.type="axisPointer",t}(Ev);const uj=lj;function cj(e,t){var n,i=[],r=e.seriesIndex;if(null==r||!(n=t.getSeriesByIndex(r)))return{point:[]};var o=n.getData(),a=Na(o,e);if(null==a||a<0||J(a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)i=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),h=c.dim,d=u.dim,p="x"===h||"radius"===h?1:0,f=o.mapDimension(d),g=[];g[p]=o.get(f,a),g[1-p]=o.get(o.getCalculationInfo("stackResultDimension"),a),i=l.dataToPoint(g)||[]}else i=l.dataToPoint(o.getValues(W(l.dimensions,(function(e){return o.mapDimension(e)})),a))||[];else if(s){var v=s.getBoundingRect().clone();v.applyTransform(s.transform),i=[v.x+v.width/2,v.y+v.height/2]}return{point:i,el:s}}var hj=Ba();function dj(e,t,n){var i=e.currTrigger,r=[e.x,e.y],o=e,a=e.dispatchAction||X(n.dispatchAction,n),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){wj(r)&&(r=cj({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},t).point);var l=wj(r),u=o.axesInfo,c=s.axesInfo,h="leave"===i||wj(r),d={},p={},f={list:[],map:{}},g={showPointer:K(gj,p),showTooltip:K(vj,f)};G(s.coordSysMap,(function(e,t){var n=l||e.containPoint(r);G(s.coordSysAxesInfo[t],(function(e,t){var i=e.axis,o=_j(u,e);if(!h&&n&&(!u||o)){var a=o&&o.value;null!=a||l||(a=i.pointToData(r)),null!=a&&pj(e,a,g,!1,d)}}))}));var v={};return G(c,(function(e,t){var n=e.linkGroup;n&&!p[t]&&G(n.axesInfo,(function(t,i){var r=p[i];if(t!==e&&r){var o=r.value;n.mapper&&(o=e.axis.scale.parse(n.mapper(o,bj(t),bj(e)))),v[e.key]=o}}))})),G(v,(function(e,t){pj(c[t],e,g,!0,d)})),yj(p,c,d),mj(f,r,e,a),xj(c,a,n),d}}function pj(e,t,n,i,r){var o=e.axis;if(!o.scale.isBlank()&&o.containData(t))if(e.involveSeries){var a=fj(t,e),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==r.seriesIndex&&B(r,s[0]),!i&&e.snap&&o.containData(l)&&null!=l&&(t=l),n.showPointer(e,t,s),n.showTooltip(e,a,l)}else n.showPointer(e,t)}function fj(e,t){var n=t.axis,i=n.dim,r=e,o=[],a=Number.MAX_VALUE,s=-1;return G(t.seriesModels,(function(t,l){var u,c,h=t.getData().mapDimensionsAll(i);if(t.getAxisTooltipData){var d=t.getAxisTooltipData(h,e,n);c=d.dataIndices,u=d.nestestValue}else{if(c=t.getData().indicesOfNearest(h[0],e,"category"===n.type?.5:null),!c.length)return;u=t.getData().get(h[0],c[0])}if(null!=u&&isFinite(u)){var p=e-u,f=Math.abs(p);f<=a&&((f=0&&s<0)&&(a=f,s=p,r=u,o.length=0),G(c,(function(e){o.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})})))}})),{payloadBatch:o,snapToValue:r}}function gj(e,t,n,i){e[t.key]={value:n,payloadBatch:i}}function vj(e,t,n,i){var r=n.payloadBatch,o=t.axis,a=o.model,s=t.axisPointerModel;if(t.triggerTooltip&&r.length){var l=t.coordSys.model,u=wL(l),c=e.map[u];c||(c=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function yj(e,t,n){var i=n.axesInfo=[];G(t,(function(t,n){var r=t.axisPointerModel.option,o=e[n];o?(!t.useHandle&&(r.status="show"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!t.useHandle&&(r.status="hide"),"show"===r.status&&i.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:r.value})}))}function mj(e,t,n,i){if(!wj(t)&&e.list.length){var r=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:e.list})}else i({type:"hideTip"})}function xj(e,t,n){var i=n.getZr(),r="axisPointerLastHighlights",o=hj(i)[r]||{},a=hj(i)[r]={};G(e,(function(e,t){var n=e.axisPointerModel.option;"show"===n.status&&G(n.seriesDataIndices,(function(e){var t=e.seriesIndex+" | "+e.dataIndex;a[t]=e}))}));var s=[],l=[];G(o,(function(e,t){!a[t]&&l.push(e)})),G(a,(function(e,t){!o[t]&&s.push(e)})),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function _j(e,t){for(var n=0;n<(e||[]).length;n++){var i=e[n];if(t.axis.dim===i.axisDim&&t.axis.model.componentIndex===i.axisIndex)return i}}function bj(e){var t=e.axis.model,n={},i=n.axisDim=e.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=t.componentIndex,n.axisName=n[i+"AxisName"]=t.name,n.axisId=n[i+"AxisId"]=t.id,n}function wj(e){return!e||null==e[0]||isNaN(e[0])||null==e[1]||isNaN(e[1])}function Sj(e){CL.registerAxisPointerClass("CartesianAxisPointer",XU),e.registerComponentModel(JU),e.registerComponentView(uj),e.registerPreprocessor((function(e){if(e){(!e.axisPointer||0===e.axisPointer.length)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!J(t)&&(e.axisPointer.link=[t])}})),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,(function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=dL(e,t)})),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},dj)}function Mj(e){jw(BL),jw(Sj)}var Cj=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.makeElOption=function(e,t,n,i,r){var o=n.axis;"angle"===o.dim&&(this.animationThreshold=Math.PI/18);var a=o.polar,s=a.getOtherAxis(o),l=s.getExtent(),u=o.dataToCoord(t),c=i.get("type");if(c&&"none"!==c){var h=BU(i),d=Tj[c](o,a,u,l);d.style=h,e.graphicKey=d.type,e.pointer=d}var p=i.get(["label","margin"]),f=Ij(t,n,i,a,p);FU(e,n,i,r,f)},t}(NU);function Ij(e,t,n,i,r){var o=t.axis,a=o.dataToCoord(e),s=i.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,u,c,h=i.getRadiusAxis().getExtent();if("radius"===o.dim){var d=kr();Or(d,d,s),Pr(d,d,[i.cx,i.cy]),l=Om([a,-r],d);var p=t.getModel("axisLabel").get("rotate")||0,f=hL.innerTextLayout(s,p*Math.PI/180,-1);u=f.textAlign,c=f.textVerticalAlign}else{var g=h[1];l=i.coordToPoint([g+r,a]);var v=i.cx,y=i.cy;u=Math.abs(l[0]-v)/g<.3?"center":l[0]>v?"left":"right",c=Math.abs(l[1]-y)/g<.3?"middle":l[1]>y?"top":"bottom"}return{position:l,align:u,verticalAlign:c}}var Tj={line:function(e,t,n,i){return"angle"===e.dim?{type:"Line",shape:GU(t.coordToPoint([i[0],n]),t.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:n}}},shadow:function(e,t,n,i){var r=Math.max(1,e.getBandWidth()),o=Math.PI/180;return"angle"===e.dim?{type:"Sector",shape:UU(t.cx,t.cy,i[0],i[1],(-n-r/2)*o,(r/2-n)*o)}:{type:"Sector",shape:UU(t.cx,t.cy,n-r/2,n+r/2,0,2*Math.PI)}}};const kj=Cj;var Aj=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.findAxisModel=function(e){var t,n=this.ecModel;return n.eachComponent(e,(function(e){e.getCoordSysModel()===this&&(t=e)}),this),t},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(op);const Dj=Aj;var Lj=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Ha).models[0]},t.type="polarAxis",t}(op);H(Lj,Xk);var Pj=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.type="angleAxis",t}(Lj),Oj=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.type="radiusAxis",t}(Lj),Rj=function(e){function t(t,n){return e.call(this,"radius",t,n)||this}return o(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t}(zD);Rj.prototype.dataToRadius=zD.prototype.dataToCoord,Rj.prototype.radiusToData=zD.prototype.coordToData;const Ej=Rj;var Nj=Ba(),Bj=function(e){function t(t,n){return e.call(this,"angle",t,n||[0,360])||this}return o(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,t=e.getLabelModel(),n=e.scale,i=n.getExtent(),r=n.count();if(i[1]-i[0]<1)return 0;var o=i[0],a=e.dataToCoord(o+1)-e.dataToCoord(o),s=Math.abs(a),l=uo(null==o?"":o+"",t.getFont(),"center","top"),u=Math.max(l.height,7),c=u/s;isNaN(c)&&(c=1/0);var h=Math.max(0,Math.floor(c)),d=Nj(e.model),p=d.lastAutoInterval,f=d.lastTickCount;return null!=p&&null!=f&&Math.abs(p-h)<=1&&Math.abs(f-r)<=1&&p>h?h=p:(d.lastTickCount=r,d.lastAutoInterval=h),h},t}(zD);Bj.prototype.dataToAngle=zD.prototype.dataToCoord,Bj.prototype.angleToData=zD.prototype.coordToData;const Fj=Bj;var zj=["radius","angle"],Vj=function(){function e(e){this.dimensions=zj,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new Ej,this._angleAxis=new Fj,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},e.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},e.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(e){var t=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===e&&t.push(n),i.scale.type===e&&t.push(i),t},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(e){var t=null!=e&&"auto"!==e?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},e.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},e.prototype.pointToData=function(e,t){var n=this.pointToCoord(e);return[this._radiusAxis.radiusToData(n[0],t),this._angleAxis.angleToData(n[1],t)]},e.prototype.pointToCoord=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,i=this.getAngleAxis(),r=i.getExtent(),o=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);i.inverse?o=a-360:a=o+360;var s=Math.sqrt(t*t+n*n);t/=s,n/=s;var l=Math.atan2(-n,t)/Math.PI*180,u=la)l+=360*u;return[s,l]},e.prototype.coordToPoint=function(e){var t=e[0],n=e[1]/180*Math.PI,i=Math.cos(n)*t+this.cx,r=-Math.sin(n)*t+this.cy;return[i,r]},e.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),n=t.getExtent().slice();n[0]>n[1]&&n.reverse();var i=e.getExtent(),r=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-i[0]*r,endAngle:-i[1]*r,clockwise:e.inverse,contain:function(e,t){var n=e-this.cx,i=t-this.cy,r=n*n+i*i-1e-4,o=this.r,a=this.r0;return r<=o*o&&r>=a*a}}},e.prototype.convertToPixel=function(e,t,n){var i=Hj(t);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var i=Hj(t);return i===this?this.pointToData(n):null},e}();function Hj(e){var t=e.seriesModel,n=e.polarModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}const qj=Vj;function Gj(e,t,n){var i=t.get("center"),r=n.getWidth(),o=n.getHeight();e.cx=Go(i[0],r),e.cy=Go(i[1],o);var a=e.getRadiusAxis(),s=Math.min(r,o)/2,l=t.get("radius");null==l?l=[0,"100%"]:J(l)||(l=[0,l]);var u=[Go(l[0],s),Go(l[1],s)];a.inverse?a.setExtent(u[1],u[0]):a.setExtent(u[0],u[1])}function Wj(e,t){var n=this,i=n.getAngleAxis(),r=n.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),r.scale.setExtent(1/0,-1/0),e.eachSeries((function(e){if(e.coordinateSystem===n){var t=e.getData();G(dD(t,"radius"),(function(e){r.scale.unionExtentFromData(t,e)})),G(dD(t,"angle"),(function(e){i.scale.unionExtentFromData(t,e)}))}})),iD(i.scale,i.model),iD(r.scale,r.model),"category"===i.type&&!i.onBand){var o=i.getExtent(),a=360/i.scale.count();i.inverse?o[1]+=a:o[1]-=a,i.setExtent(o[0],o[1])}}function Uj(e){return"angleAxis"===e.mainType}function jj(e,t){if(e.type=t.get("type"),e.scale=rD(t),e.onBand=t.get("boundaryGap")&&"category"===e.type,e.inverse=t.get("inverse"),Uj(t)){e.inverse=e.inverse!==t.get("clockwise");var n=t.get("startAngle");e.setExtent(n,n+(e.inverse?-360:360))}t.axis=e,e.model=t}var Zj={dimensions:zj,create:function(e,t){var n=[];return e.eachComponent("polar",(function(e,i){var r=new qj(i+"");r.update=Wj;var o=r.getRadiusAxis(),a=r.getAngleAxis(),s=e.findAxisModel("radiusAxis"),l=e.findAxisModel("angleAxis");jj(o,s),jj(a,l),Gj(r,e,t),n.push(r),e.coordinateSystem=r,r.model=e})),e.eachSeries((function(e){if("polar"===e.get("coordinateSystem")){var t=e.getReferringComponents("polar",Ha).models[0];0,e.coordinateSystem=t.coordinateSystem}})),n}};const Yj=Zj;var $j=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Xj(e,t,n){t[1]>t[0]&&(t=t.slice().reverse());var i=e.coordToPoint([t[0],n]),r=e.coordToPoint([t[1],n]);return{x1:i[0],y1:i[1],x2:r[0],y2:r[1]}}function Kj(e){var t=e.getRadiusAxis();return t.inverse?0:1}function Jj(e){var t=e[0],n=e[e.length-1];t&&n&&Math.abs(Math.abs(t.coord-n.coord)-360)<1e-4&&e.pop()}var Qj=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return o(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var n=e.axis,i=n.polar,r=i.getRadiusAxis().getExtent(),o=n.getTicksCoords(),a=n.getMinorTicksCoords(),s=W(n.getViewLabels(),(function(e){e=R(e);var t=n.scale,i="ordinal"===t.type?t.getRawOrdinalNumber(e.tickValue):e.tickValue;return e.coord=n.dataToCoord(i),e}));Jj(s),Jj(o),G($j,(function(t){!e.get([t,"show"])||n.scale.isBlank()&&"axisLine"!==t||eZ[t](this.group,e,i,o,a,r,s)}),this)}},t.type="angleAxis",t}(CL),eZ={axisLine:function(e,t,n,i,r,o){var a,s=t.getModel(["axisLine","lineStyle"]),l=Kj(n),u=l?0:1;a=0===o[u]?new ly({shape:{cx:n.cx,cy:n.cy,r:o[l]},style:s.getLineStyle(),z2:1,silent:!0}):new Py({shape:{cx:n.cx,cy:n.cy,r:o[l],r0:o[u]},style:s.getLineStyle(),z2:1,silent:!0}),a.style.fill=null,e.add(a)},axisTick:function(e,t,n,i,r,o){var a=t.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=o[Kj(n)],u=W(i,(function(e){return new Wy({shape:Xj(n,[l,l+s],e.coord)})}));e.add(Tm(u,{style:F(a.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,n,i,r,o){if(r.length){for(var a=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(a.get("inside")?-1:1)*s.get("length"),u=o[Kj(n)],c=[],h=0;hf?"left":"right",y=Math.abs(p[1]-g)/d<.3?"middle":p[1]>g?"top":"bottom";if(s&&s[h]){var m=s[h];ie(m)&&m.textStyle&&(a=new Oh(m.textStyle,l,l.ecModel))}var x=new Du({silent:hL.isLabelSilent(t),style:uh(a,{x:p[0],y:p[1],fill:a.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:i.formattedLabel,align:v,verticalAlign:y})});if(e.add(x),c){var _=hL.makeAxisEventDataBase(t);_.targetType="axisLabel",_.value=i.rawLabel,Lu(x).eventData=_}}),this)},splitLine:function(e,t,n,i,r,o){var a=t.getModel("splitLine"),s=a.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],h=0;h=0?"p":"n",I=_;m&&(i[s][M]||(i[s][M]={p:_,n:_}),I=i[s][M][C]);var T=void 0,k=void 0,A=void 0,D=void 0;if("radius"===h.dim){var L=h.dataToCoord(S)-_,P=o.dataToCoord(M);Math.abs(L)=D})}}}))}function hZ(e){var t={};G(e,(function(e,n){var i=e.getData(),r=e.coordinateSystem,o=r.getBaseAxis(),a=uZ(r,o),s=o.getExtent(),l="category"===o.type?o.getBandWidth():Math.abs(s[1]-s[0])/i.count(),u=t[a]||{bandWidth:l,remainedWidth:l,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},c=u.stacks;t[a]=u;var h=lZ(e);c[h]||u.autoWidthCount++,c[h]=c[h]||{width:0,maxWidth:0};var d=Go(e.get("barWidth"),l),p=Go(e.get("barMaxWidth"),l),f=e.get("barGap"),g=e.get("barCategoryGap");d&&!c[h].width&&(d=Math.min(u.remainedWidth,d),c[h].width=d,u.remainedWidth-=d),p&&(c[h].maxWidth=p),null!=f&&(u.gap=f),null!=g&&(u.categoryGap=g)}));var n={};return G(t,(function(e,t){n[t]={};var i=e.stacks,r=e.bandWidth,o=Go(e.categoryGap,r),a=Go(e.gap,1),s=e.remainedWidth,l=e.autoWidthCount,u=(s-o)/(l+(l-1)*a);u=Math.max(u,0),G(i,(function(e,t){var n=e.maxWidth;n&&n=t.y&&e[1]<=t.y+t.height:n.contain(n.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},e.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e["horizontal"===t.orient?0:1]))]},e.prototype.dataToPoint=function(e){var t=this.getAxis(),n=this.getRect(),i=[],r="horizontal"===t.orient?0:1;return e instanceof Array&&(e=e[0]),i[r]=t.toGlobalCoord(t.dataToCoord(+e)),i[1-r]=0===r?n.y+n.height/2:n.x+n.width/2,i},e.prototype.convertToPixel=function(e,t,n){var i=AZ(t);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var i=AZ(t);return i===this?this.pointToData(n):null},e}();function AZ(e){var t=e.seriesModel,n=e.singleAxisModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}const DZ=kZ;function LZ(e,t){var n=[];return e.eachComponent("singleAxis",(function(i,r){var o=new DZ(i,e,t);o.name="single_"+r,o.resize(i,t),i.coordinateSystem=o,n.push(o)})),e.eachSeries((function(e){if("singleAxis"===e.get("coordinateSystem")){var t=e.getReferringComponents("singleAxis",Ha).models[0];e.coordinateSystem=t&&t.coordinateSystem}})),n}var PZ={create:LZ,dimensions:TZ};const OZ=PZ;var RZ=["x","y"],EZ=["width","height"],NZ=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.makeElOption=function(e,t,n,i,r){var o=n.axis,a=o.coordinateSystem,s=zZ(a,1-FZ(o)),l=a.dataToPoint(t)[0],u=i.get("type");if(u&&"none"!==u){var c=BU(i),h=BZ[u](o,l,s);h.style=c,e.graphicKey=h.type,e.pointer=h}var d=yZ(n);qU(t,e,d,n,i,r)},t.prototype.getHandleTransform=function(e,t,n){var i=yZ(t,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=HU(t.axis,e,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,i){var r=n.axis,o=r.coordinateSystem,a=FZ(r),s=zZ(o,a),l=[e.x,e.y];l[a]+=t[a],l[a]=Math.min(s[1],l[a]),l[a]=Math.max(s[0],l[a]);var u=zZ(o,1-a),c=(u[1]+u[0])/2,h=[c,c];return h[a]=l[a],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},t}(NU),BZ={line:function(e,t,n){var i=GU([t,n[0]],[t,n[1]],FZ(e));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(e,t,n){var i=e.getBandWidth(),r=n[1]-n[0];return{type:"Rect",shape:WU([t-i/2,n[0]],[i,r],FZ(e))}}};function FZ(e){return e.isHorizontal()?0:1}function zZ(e,t){var n=e.getRect();return[n[RZ[t]],n[RZ[t]]+n[EZ[t]]]}const VZ=NZ;var HZ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.type="single",t}(Ev);function qZ(e){jw(Sj),CL.registerAxisPointerClass("SingleAxisPointer",VZ),e.registerComponentView(HZ),e.registerComponentView(wZ),e.registerComponentModel(MZ),uA(e,"single",MZ,MZ.defaultOption),e.registerCoordinateSystem("single",OZ)}var GZ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.init=function(t,n,i){var r=ep(t);e.prototype.init.apply(this,arguments),WZ(t,r)},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),WZ(this.option,t)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(op);function WZ(e,t){var n,i=e.cellSize;n=J(i)?i:e.cellSize=[i,i],1===n.length&&(n[1]=n[0]);var r=W([0,1],(function(e){return Kd(t,e)&&(n[e]="auto"),null!=n[e]&&"auto"!==n[e]}));Qd(e,t,{type:"box",ignoreSize:r})}const UZ=GZ;var jZ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.render=function(e,t,n){var i=this.group;i.removeAll();var r=e.coordinateSystem,o=r.getRangeInfo(),a=r.getOrient(),s=t.getLocaleModel();this._renderDayRect(e,o,i),this._renderLines(e,o,a,i),this._renderYearText(e,o,a,i),this._renderMonthText(e,s,a,i),this._renderWeekText(e,s,o,a,i)},t.prototype._renderDayRect=function(e,t,n){for(var i=e.coordinateSystem,r=e.getModel("itemStyle").getItemStyle(),o=i.getCellWidth(),a=i.getCellHeight(),s=t.start.time;s<=t.end.time;s=i.getNextNDay(s,1).time){var l=i.dataToRect([s],!1).tl,u=new du({shape:{x:l[0],y:l[1],width:o,height:a},cursor:"default",style:r});n.add(u)}},t.prototype._renderLines=function(e,t,n,i){var r=this,o=e.coordinateSystem,a=e.getModel(["splitLine","lineStyle"]).getLineStyle(),s=e.get(["splitLine","show"]),l=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=t.start,c=0;u.time<=t.end.time;c++){d(u.formatedDate),0===c&&(u=o.getDateInfo(t.start.y+"-"+t.start.m));var h=u.date;h.setMonth(h.getMonth()+1),u=o.getDateInfo(h)}function d(t){r._firstDayOfMonth.push(o.getDateInfo(t)),r._firstDayPoints.push(o.dataToRect([t],!1).tl);var l=r._getLinePointsOfOneWeek(e,t,n);r._tlpoints.push(l[0]),r._blpoints.push(l[l.length-1]),s&&r._drawSplitline(l,a,i)}d(o.getNextNDay(t.end.time,1).formatedDate),s&&this._drawSplitline(r._getEdgesPoints(r._tlpoints,l,n),a,i),s&&this._drawSplitline(r._getEdgesPoints(r._blpoints,l,n),a,i)},t.prototype._getEdgesPoints=function(e,t,n){var i=[e[0].slice(),e[e.length-1].slice()],r="horizontal"===n?0:1;return i[0][r]=i[0][r]-t/2,i[1][r]=i[1][r]+t/2,i},t.prototype._drawSplitline=function(e,t,n){var i=new Vy({z2:20,shape:{points:e},style:t});n.add(i)},t.prototype._getLinePointsOfOneWeek=function(e,t,n){for(var i=e.coordinateSystem,r=i.getDateInfo(t),o=[],a=0;a<7;a++){var s=i.getNextNDay(r.time,a),l=i.dataToRect([s.time],!1);o[2*s.day]=l.tl,o[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return o},t.prototype._formatterLabel=function(e,t){return ee(e)&&e?zd(e,t):Q(e)?e(t):t.nameMap},t.prototype._yearTextPositionControl=function(e,t,n,i,r){var o=t[0],a=t[1],s=["center","bottom"];"bottom"===i?(a+=r,s=["center","top"]):"left"===i?o-=r:"right"===i?(o+=r,s=["center","top"]):a-=r;var l=0;return"left"!==i&&"right"!==i||(l=Math.PI/2),{rotation:l,x:o,y:a,style:{align:s[0],verticalAlign:s[1]}}},t.prototype._renderYearText=function(e,t,n,i){var r=e.getModel("yearLabel");if(r.get("show")){var o=r.get("margin"),a=r.get("position");a||(a="horizontal"!==n?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,u=(s[0][1]+s[1][1])/2,c="horizontal"===n?0:1,h={top:[l,s[c][1]],bottom:[l,s[1-c][1]],left:[s[1-c][0],u],right:[s[c][0],u]},d=t.start.y;+t.end.y>+t.start.y&&(d=d+"-"+t.end.y);var p=r.get("formatter"),f={start:t.start.y,end:t.end.y,nameMap:d},g=this._formatterLabel(p,f),v=new Du({z2:30,style:uh(r,{text:g})});v.attr(this._yearTextPositionControl(v,h[a],n,a,o)),i.add(v)}},t.prototype._monthTextPositionControl=function(e,t,n,i,r){var o="left",a="top",s=e[0],l=e[1];return"horizontal"===n?(l+=r,t&&(o="center"),"start"===i&&(a="bottom")):(s+=r,t&&(a="middle"),"start"===i&&(o="right")),{x:s,y:l,align:o,verticalAlign:a}},t.prototype._renderMonthText=function(e,t,n,i){var r=e.getModel("monthLabel");if(r.get("show")){var o=r.get("nameMap"),a=r.get("margin"),s=r.get("position"),l=r.get("align"),u=[this._tlpoints,this._blpoints];o&&!ee(o)||(o&&(t=$h(o)||t),o=t.get(["time","monthAbbr"])||[]);var c="start"===s?0:1,h="horizontal"===n?0:1;a="start"===s?-a:a;for(var d="center"===l,p=0;p=i.start.time&&n.timea.end.time&&e.reverse(),e},e.prototype._getRangeInfo=function(e){var t,n=[this.getDateInfo(e[0]),this.getDateInfo(e[1])];n[0].time>n[1].time&&(t=!0,n.reverse());var i=Math.floor(n[1].time/YZ)-Math.floor(n[0].time/YZ)+1,r=new Date(n[0].time),o=r.getDate(),a=n[1].date.getDate();r.setDate(o+i-1);var s=r.getDate();if(s!==a){var l=r.getTime()-n[1].time>0?1:-1;while((s=r.getDate())!==a&&(r.getTime()-n[1].time)*l>0)i-=l,r.setDate(s-l)}var u=Math.floor((i+n[0].day+6)/7),c=t?1-u:u-1;return t&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:i,weeks:u,nthWeek:c,fweek:n[0].day,lweek:n[1].day}},e.prototype._getDateByWeeksAndDay=function(e,t,n){var i=this._getRangeInfo(n);if(e>i.weeks||0===e&&ti.lweek)return null;var r=7*(e-1)-i.fweek+t,o=new Date(i.start.time);return o.setDate(+i.start.d+r),this.getDateInfo(o)},e.create=function(t,n){var i=[];return t.eachComponent("calendar",(function(r){var o=new e(r,t,n);i.push(o),r.coordinateSystem=o})),t.eachSeries((function(e){"calendar"===e.get("coordinateSystem")&&(e.coordinateSystem=i[e.get("calendarIndex")||0])})),i},e.dimensions=["time","value"],e}();function XZ(e){var t=e.calendarModel,n=e.seriesModel,i=t?t.coordinateSystem:n?n.coordinateSystem:null;return i}const KZ=$Z;function JZ(e){e.registerComponentModel(UZ),e.registerComponentView(ZZ),e.registerCoordinateSystem("calendar",KZ)}function QZ(e,t){var n=e.existing;if(t.id=e.keyInfo.id,!t.type&&n&&(t.type=n.type),null==t.parentId){var i=t.parentOption;i?t.parentId=i.id:n&&(t.parentId=n.parentId)}t.parentOption=null}function eY(e,t){var n;return G(t,(function(t){null!=e[t]&&"auto"!==e[t]&&(n=!0)})),n}function tY(e,t,n){var i=B({},n),r=e[t],o=n.$action||"merge";"merge"===o?r?(E(r,i,!0),Qd(r,i,{ignoreSize:!0}),tp(n,r),rY(n,r),rY(n,r,"shape"),rY(n,r,"style"),rY(n,r,"extra"),n.clipPath=r.clipPath):e[t]=i:"replace"===o?e[t]=i:"remove"===o&&r&&(e[t]=null)}var nY=["transition","enterFrom","leaveTo"],iY=nY.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function rY(e,t,n){if(n&&(!e[n]&&t[n]&&(e[n]={}),e=e[n],t=t[n]),e&&t)for(var i=n?nY:iY,r=0;r=0;l--){u=n[l],c=Aa(u.id,null),h=null!=c?r.get(c):null;if(h){d=h.parent,g=lY(d);var v=d===i?{width:o,height:a}:{width:g.width,height:g.height},y={},m=Xd(h,u,v,null,{hv:u.hv,boundingMode:u.bounding},y);if(!lY(h).isNew&&m){for(var x=u.transition,_={},b=0;b=0)?_[w]=S:h[w]=S}Xc(h,_,e,0)}else h.attr(y)}}},t.prototype._clear=function(){var e=this,t=this._elMap;t.each((function(n){dY(n,lY(n).option,t,e._lastGraphicModel)})),this._elMap=we()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(Ev);function cY(e){var t=Ie(sY,e)?sY[e]:Sm(e);var n=new t({});return lY(n).type=e,n}function hY(e,t,n,i){var r=cY(n);return t.add(r),i.set(e,r),lY(r).id=e,lY(r).isNew=!0,r}function dY(e,t,n,i){var r=e&&e.parent;r&&("group"===e.type&&e.traverse((function(e){dY(e,t,n,i)})),MW(e,t,i),n.removeKey(lY(e).id))}function pY(e,t,n,i){e.isGroup||G([["cursor",qs.prototype.cursor],["zlevel",i||0],["z",n||0],["z2",0]],(function(n){var i=n[0];Ie(t,i)?e[i]=de(t[i],n[1]):null==e[i]&&(e[i]=n[1])})),G(Y(t),(function(n){if(0===n.indexOf("on")){var i=t[n];e[n]=Q(i)?i:null}})),Ie(t,"draggable")&&(e.draggable=t.draggable),null!=t.name&&(e.name=t.name),null!=t.id&&(e.id=t.id)}function fY(e){return e=B({},e),G(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Wd),(function(t){delete e[t]})),e}function gY(e,t,n){var i=Lu(e).eventData;e.silent||e.ignore||i||(i=Lu(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),i&&(i.info=n.info)}function vY(e){e.registerComponentModel(aY),e.registerComponentView(uY),e.registerPreprocessor((function(e){var t=e.graphic;J(t)?t[0]&&t[0].elements?e.graphic=[e.graphic[0]]:e.graphic=[{elements:t}]:t&&!t.elements&&(e.graphic=[{elements:[t]}])}))}var yY=["x","y","radius","angle","single"],mY=["cartesian2d","polar","singleAxis"];function xY(e){var t=e.get("coordinateSystem");return z(mY,t)>=0}function _Y(e){return e+"Axis"}function bY(e,t){var n,i=we(),r=[],o=we();e.eachComponent({mainType:"dataZoom",query:t},(function(e){o.get(e.uid)||s(e)}));do{n=!1,e.eachComponent("dataZoom",a)}while(n);function a(e){!o.get(e.uid)&&l(e)&&(s(e),n=!0)}function s(e){o.set(e.uid,!0),r.push(e),u(e)}function l(e){var t=!1;return e.eachTargetAxis((function(e,n){var r=i.get(e);r&&r[n]&&(t=!0)})),t}function u(e){e.eachTargetAxis((function(e,t){(i.get(e)||i.set(e,[]))[t]=!0}))}return r}function wY(e){var t=e.ecModel,n={infoList:[],infoMap:we()};return e.eachTargetAxis((function(e,i){var r=t.getComponent(_Y(e),i);if(r){var o=r.getCoordSysModel();if(o){var a=o.uid,s=n.infoMap.get(a);s||(s={model:o,axisModels:[]},n.infoList.push(s),n.infoMap.set(a,s)),s.axisModels.push(r)}}})),n}var SY=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},e}(),MY=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return o(t,e),t.prototype.init=function(e,t,n){var i=CY(e);this.settledOption=i,this.mergeDefaultAndTheme(e,n),this._doInit(i)},t.prototype.mergeOption=function(e){var t=CY(e);E(this.option,e,!0),E(this.settledOption,t,!0),this._doInit(t)},t.prototype._doInit=function(e){var t=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;G([["start","startValue"],["end","endValue"]],(function(e,i){"value"===this._rangePropMode[i]&&(t[e[0]]=n[e[0]]=null)}),this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),t=this._targetAxisInfoMap=we(),n=this._fillSpecifiedTargetAxis(t);n?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(t,this._orient)),this._noTarget=!0,t.each((function(e){e.indexList.length&&(this._noTarget=!1)}),this)},t.prototype._fillSpecifiedTargetAxis=function(e){var t=!1;return G(yY,(function(n){var i=this.getReferringComponents(_Y(n),qa);if(i.specified){t=!0;var r=new SY;G(i.models,(function(e){r.add(e.componentIndex)})),e.set(n,r)}}),this),t},t.prototype._fillAutoTargetAxisByOrient=function(e,t){var n=this.ecModel,i=!0;if(i){var r="vertical"===t?"y":"x",o=n.findComponents({mainType:r+"Axis"});a(o,r)}if(i){o=n.findComponents({mainType:"singleAxis",filter:function(e){return e.get("orient",!0)===t}});a(o,"single")}function a(t,n){var r=t[0];if(r){var o=new SY;if(o.add(r.componentIndex),e.set(n,o),i=!1,"x"===n||"y"===n){var a=r.getReferringComponents("grid",Ha).models[0];a&&G(t,(function(e){r.componentIndex!==e.componentIndex&&a===e.getReferringComponents("grid",Ha).models[0]&&o.add(e.componentIndex)}))}}}i&&G(yY,(function(t){if(i){var r=n.findComponents({mainType:_Y(t),filter:function(e){return"category"===e.get("type",!0)}});if(r[0]){var o=new SY;o.add(r[0].componentIndex),e.set(t,o),i=!1}}}),this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis((function(t){!e&&(e=t)}),this),"y"===e?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var t=this.ecModel.option;this.option.throttle=t.animation&&t.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var t=this._rangePropMode,n=this.get("rangeMode");G([["start","startValue"],["end","endValue"]],(function(i,r){var o=null!=e[i[0]],a=null!=e[i[1]];o&&!a?t[r]="percent":!o&&a?t[r]="value":n?t[r]=n[r]:o&&(t[r]="percent")}))},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis((function(t,n){null==e&&(e=this.ecModel.getComponent(_Y(t),n))}),this),e},t.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each((function(n,i){G(n.indexList,(function(n){e.call(t,i,n)}))}))},t.prototype.getAxisProxy=function(e,t){var n=this.getAxisModel(e,t);if(n)return n.__dzAxisProxy},t.prototype.getAxisModel=function(e,t){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[t])return this.ecModel.getComponent(_Y(e),t)},t.prototype.setRawRange=function(e){var t=this.option,n=this.settledOption;G([["start","startValue"],["end","endValue"]],(function(i){null==e[i[0]]&&null==e[i[1]]||(t[i[0]]=n[i[0]]=e[i[0]],t[i[1]]=n[i[1]]=e[i[1]])}),this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var t=this.option;G(["start","startValue","end","endValue"],(function(n){t[n]=e[n]}))},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,t){if(null!=e||null!=t)return this.getAxisProxy(e,t).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var t,n=this._targetAxisInfoMap.keys(),i=0;io[1];if(c&&!h&&!d)return!0;c&&(r=!0),h&&(t=!0),d&&(n=!0)}return r&&t&&n}))}else OY(i,(function(n){if("empty"===r)e.setData(t=t.map(n,(function(e){return a(e)?e:NaN})));else{var i={};i[n]=o,t.selectRange(i)}}));OY(i,(function(e){t.setApproximateExtent(o,e)}))}}))}function a(e){return e>=o[0]&&e<=o[1]}},e.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._dataExtent;OY(["min","max"],(function(i){var r=t.get(i+"Span"),o=t.get(i+"ValueSpan");null!=o&&(o=this.getAxisModel().axis.scale.parse(o)),null!=o?r=qo(n[0]+o,n,[0,100],!0):null!=r&&(o=qo(r,[0,100],n,!0)-n[0]),e[i+"Span"]=r,e[i+"ValueSpan"]=o}),this)},e.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,n=this._valueWindow;if(t){var i=Yo(n,[0,500]);i=Math.min(i,20);var r=e.axis.scale.rawExtentInfo;0!==t[0]&&r.setDeterminedMinMax("min",+n[0].toFixed(i)),100!==t[1]&&r.setDeterminedMinMax("max",+n[1].toFixed(i)),r.freeze()}},e}();function NY(e,t,n){var i=[1/0,-1/0];OY(n,(function(e){pD(i,e.getData(),t)}));var r=e.getAxisModel(),o=QA(r.axis.scale,r,i).calculate();return[o.min,o.max]}const BY=EY;var FY={getTargetSeries:function(e){function t(t){e.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(i,r){var o=e.getComponent(_Y(i),r);t(i,r,o,n)}))}))}t((function(e,t,n,i){n.__dzAxisProxy=null}));var n=[];t((function(t,i,r,o){r.__dzAxisProxy||(r.__dzAxisProxy=new BY(t,i,o,e),n.push(r.__dzAxisProxy))}));var i=we();return G(n,(function(e){G(e.getTargetSeriesModels(),(function(e){i.set(e.uid,e)}))})),i},overallReset:function(e,t){e.eachComponent("dataZoom",(function(e){e.eachTargetAxis((function(t,n){e.getAxisProxy(t,n).reset(e)})),e.eachTargetAxis((function(n,i){e.getAxisProxy(n,i).filterData(e,t)}))})),e.eachComponent("dataZoom",(function(e){var t=e.findRepresentativeAxisProxy();if(t){var n=t.getDataPercentWindow(),i=t.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}}))}};const zY=FY;function VY(e){e.registerAction("dataZoom",(function(e,t){var n=bY(t,e);G(n,(function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})}))}))}var HY=!1;function qY(e){HY||(HY=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,zY),VY(e),e.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function GY(e){e.registerComponentModel(kY),e.registerComponentView(PY),qY(e)}var WY=function(){function e(){}return e}(),UY={};function jY(e,t){UY[e]=t}function ZY(e){return UY[e]}var YY=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;G(this.option.feature,(function(e,n){var i=ZY(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(t)),E(e,i.defaultOption))}))},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(op);const $Y=YY;function XY(e,t,n){var i=t.getBoxLayoutParams(),r=t.get("padding"),o={width:n.getWidth(),height:n.getHeight()},a=$d(i,o,r);Zd(t.get("orient"),e,t.get("itemGap"),a.width,a.height),Xd(e,i,o,r)}function KY(e,t){var n=Ld(t.get("padding")),i=t.getItemStyle(["color","opacity"]);return i.fill=t.get("backgroundColor"),e=new du({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get("borderRadius")},style:i,silent:!0,z2:-1}),e}var JY=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(e,t,n,i){var r=this.group;if(r.removeAll(),e.get("show")){var o=+e.get("itemSize"),a="vertical"===e.get("orient"),s=e.get("feature")||{},l=this._features||(this._features={}),u=[];G(s,(function(e,t){u.push(t)})),new wC(this._featureNames||[],u).add(c).update(c).remove(K(c,null)).execute(),this._featureNames=u,XY(r,e,n),r.add(KY(r.getBoundingRect(),e)),a||r.eachChild((function(e){var t=e.__title,i=e.ensureState("emphasis"),a=i.textConfig||(i.textConfig={}),s=e.getTextContent(),l=s&&s.ensureState("emphasis");if(l&&!Q(l)&&t){var u=l.style||(l.style={}),c=uo(t,Du.makeFont(u)),h=e.x+r.x,d=e.y+r.y+o,p=!1;d+c.height>n.getHeight()&&(a.position="top",p=!0);var f=p?-5-c.height:o+10;h+c.width/2>n.getWidth()?(a.position=["100%",f],u.align="right"):h-c.width/2<0&&(a.position=[0,f],u.align="left")}}))}function c(r,o){var a,c=u[r],d=u[o],p=s[c],f=new Oh(p,e,e.ecModel);if(i&&null!=i.newTitle&&i.featureName===c&&(p.title=i.newTitle),c&&!d){if(QY(c))a={onclick:f.option.onclick,featureName:c};else{var g=ZY(c);if(!g)return;a=new g}l[c]=a}else if(a=l[d],!a)return;a.uid=Eh("toolbox-feature"),a.model=f,a.ecModel=t,a.api=n;var v=a instanceof WY;c||!d?!f.get("show")||v&&a.unusable?v&&a.remove&&a.remove(t,n):(h(f,a,c),f.setIconStatus=function(e,t){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,i[e]&&("emphasis"===t?vc:yc)(i[e])},a instanceof WY&&a.render&&a.render(f,t,n,i)):v&&a.dispose&&a.dispose(t,n)}function h(i,s,l){var u,c,h=i.getModel("iconStyle"),d=i.getModel(["emphasis","iconStyle"]),p=s instanceof WY&&s.getIcons?s.getIcons():i.get("icon"),f=i.get("title")||{};ee(p)?(u={},u[l]=p):u=p,ee(f)?(c={},c[l]=f):c=f;var g=i.iconPaths={};G(u,(function(l,u){var p=Vm(l,{},{x:-o/2,y:-o/2,width:o,height:o});p.setStyle(h.getItemStyle());var f=p.ensureState("emphasis");f.style=d.getItemStyle();var v=new Du({style:{text:c[u],align:d.get("textAlign"),borderRadius:d.get("textBorderRadius"),padding:d.get("textPadding"),fill:null},ignore:!0});p.setTextContent(v),Um({el:p,componentModel:e,itemName:u,formatterParamsExtra:{title:c[u]}}),p.__title=c[u],p.on("mouseover",(function(){var t=d.getItemStyle(),i=a?null==e.get("right")&&"right"!==e.get("left")?"right":"left":null==e.get("bottom")&&"bottom"!==e.get("top")?"bottom":"top";v.setStyle({fill:d.get("textFill")||t.fill||t.stroke||"#000",backgroundColor:d.get("textBackgroundColor")}),p.setTextConfig({position:d.get("textPosition")||i}),v.ignore=!e.get("showTitle"),n.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==i.get(["iconStatus",u])&&n.leaveEmphasis(this),v.hide()})),("emphasis"===i.get(["iconStatus",u])?vc:yc)(p),r.add(p),p.on("click",X(s.onclick,s,t,n,u)),g[u]=p}))}},t.prototype.updateView=function(e,t,n,i){G(this._features,(function(e){e instanceof WY&&e.updateView&&e.updateView(e.model,t,n,i)}))},t.prototype.remove=function(e,t){G(this._features,(function(n){n instanceof WY&&n.remove&&n.remove(e,t)})),this.group.removeAll()},t.prototype.dispose=function(e,t){G(this._features,(function(n){n instanceof WY&&n.dispose&&n.dispose(e,t)}))},t.type="toolbox",t}(Ev);function QY(e){return 0===e.indexOf("my")}const e$=JY;var t$=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.onclick=function(e,t){var n=this.model,i=n.get("name")||e.get("title.0.text")||"echarts",r="svg"===t.getZr().painter.getType(),o=r?"svg":n.get("type",!0)||"png",a=t.getConnectedDataURL({type:o,backgroundColor:n.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),s=c.browser;if(Q(MouseEvent)&&(s.newEdge||!s.ie&&!s.edge)){var l=document.createElement("a");l.download=i+"."+o,l.target="_blank",l.href=a;var u=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});l.dispatchEvent(u)}else if(window.navigator.msSaveOrOpenBlob||r){var h=a.split(","),d=h[0].indexOf("base64")>-1,p=r?decodeURIComponent(h[1]):h[1];d&&(p=window.atob(p));var f=i+"."+o;if(window.navigator.msSaveOrOpenBlob){var g=p.length,v=new Uint8Array(g);while(g--)v[g]=p.charCodeAt(g);var y=new Blob([v]);window.navigator.msSaveOrOpenBlob(y,f)}else{var m=document.createElement("iframe");document.body.appendChild(m);var x=m.contentWindow,_=x.document;_.open("image/svg+xml","replace"),_.write(p),_.close(),x.focus(),_.execCommand("SaveAs",!0,f),document.body.removeChild(m)}}else{var b=n.get("lang"),w='',S=window.open();S.document.write(w),S.document.title=i}},t.getDefaultOption=function(e){var t={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return t},t}(WY);const n$=t$;var i$="__ec_magicType_stack__",r$=[["line","bar"],["stack"]],o$=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.getIcons=function(){var e=this.model,t=e.get("icon"),n={};return G(e.get("type"),(function(e){t[e]&&(n[e]=t[e])})),n},t.getDefaultOption=function(e){var t={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return t},t.prototype.onclick=function(e,t,n){var i=this.model,r=i.get(["seriesIndex",n]);if(a$[n]){var o,a={series:[]},s=function(e){var t=e.subType,r=e.id,o=a$[n](t,r,e,i);o&&(F(o,e.option),a.series.push(o));var s=e.coordinateSystem;if(s&&"cartesian2d"===s.type&&("line"===n||"bar"===n)){var l=s.getAxesByScale("ordinal")[0];if(l){var u=l.dim,c=u+"Axis",h=e.getReferringComponents(c,Ha).models[0],d=h.componentIndex;a[c]=a[c]||[];for(var p=0;p<=d;p++)a[c][d]=a[c][d]||{};a[c][d].boundaryGap="bar"===n}}};G(r$,(function(e){z(e,n)>=0&&G(e,(function(e){i.setIconStatus(e,"normal")}))})),i.setIconStatus(n,"emphasis"),e.eachComponent({mainType:"series",query:null==r?null:{seriesIndex:r}},s);var l=n;"stack"===n&&(o=E({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),"emphasis"!==i.get(["iconStatus",n])&&(l="tiled")),t.dispatchAction({type:"changeMagicType",currentType:l,newOption:a,newTitle:o,featureName:"magicType"})}},t}(WY),a$={line:function(e,t,n,i){if("bar"===e)return E({id:t,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","line"])||{},!0)},bar:function(e,t,n,i){if("line"===e)return E({id:t,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","bar"])||{},!0)},stack:function(e,t,n,i){var r=n.get("stack")===i$;if("line"===e||"bar"===e)return i.setIconStatus("stack",r?"normal":"emphasis"),E({id:t,stack:r?"":i$},i.get(["option","stack"])||{},!0)}};Ew({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(e,t){t.mergeOption(e.newOption)}));const s$=o$;var l$=new Array(60).join("-"),u$="\t";function c$(e){var t={},n=[],i=[];return e.eachRawSeries((function(e){var r=e.coordinateSystem;if(!r||"cartesian2d"!==r.type&&"polar"!==r.type)n.push(e);else{var o=r.getBaseAxis();if("category"===o.type){var a=o.dim+"_"+o.index;t[a]||(t[a]={categoryAxis:o,valueAxis:r.getOtherAxis(o),series:[]},i.push({axisDim:o.dim,axisIndex:o.index})),t[a].series.push(e)}else n.push(e)}})),{seriesGroupByCategoryAxis:t,other:n,meta:i}}function h$(e){var t=[];return G(e,(function(e,n){var i=e.categoryAxis,r=e.valueAxis,o=r.dim,a=[" "].concat(W(e.series,(function(e){return e.name}))),s=[i.model.getCategories()];G(e.series,(function(e){var t=e.getRawData();s.push(e.getRawData().mapArray(t.mapDimension(o),(function(e){return e})))}));for(var l=[a.join(u$)],u=0;u=0)return!0}var v$=new RegExp("["+u$+"]+","g");function y$(e){for(var t=e.split(/\n+/g),n=f$(t.shift()).split(v$),i=[],r=W(n,(function(e){return{name:e,data:[]}})),o=0;o=0;r--){var o=n[r];if(o[i])break}if(r<0){var a=e.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(a){var s=a.getPercentRange();n[0][i]={dataZoomId:i,start:s[0],end:s[1]}}}})),n.push(t)}function I$(e){var t=A$(e),n=t[t.length-1];t.length>1&&t.pop();var i={};return S$(n,(function(e,n){for(var r=t.length-1;r>=0;r--)if(e=t[r][n],e){i[n]=e;break}})),i}function T$(e){M$(e).snapshots=null}function k$(e){return A$(e).length}function A$(e){var t=M$(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var D$=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.onclick=function(e,t){T$(e),t.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var t={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocaleModel().get(["toolbox","restore","title"])};return t},t}(WY);Ew({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(e,t){t.resetOption("recreate")}));const L$=D$;var P$=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],O$=function(){function e(e,t,n){var i=this;this._targetInfoList=[];var r=E$(t,e);G(N$,(function(e,t){(!n||!n.include||z(n.include,t)>=0)&&e(r,i._targetInfoList)}))}return e.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,(function(e,t,n){if((e.coordRanges||(e.coordRanges=[])).push(t),!e.coordRange){e.coordRange=t;var i=z$[e.brushType](0,n,t);e.__rangeOffset={offset:H$[e.brushType](i.values,e.range,[1,1]),xyMinMax:i.xyMinMax}}})),e},e.prototype.matchOutputRanges=function(e,t,n){G(e,(function(e){var i=this.findTargetInfo(e,t);i&&!0!==i&&G(i.coordSyses,(function(i){var r=z$[e.brushType](1,i,e.range,!0);n(e,r.values,i,t)}))}),this)},e.prototype.setInputRanges=function(e,t){G(e,(function(e){var n=this.findTargetInfo(e,t);if(e.range=e.range||[],n&&!0!==n){e.panelId=n.panelId;var i=z$[e.brushType](0,n.coordSys,e.coordRange),r=e.__rangeOffset;e.range=r?H$[e.brushType](i.values,r.offset,G$(i.xyMinMax,r.xyMinMax)):i.values}}),this)},e.prototype.makePanelOpts=function(e,t){return W(this._targetInfoList,(function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:_V(i),isTargetByCursor:wV(i,e,n.coordSysModel),getLinearBrushOtherExtent:bV(i)}}))},e.prototype.controlSeries=function(e,t,n){var i=this.findTargetInfo(e,n);return!0===i||i&&z(i.coordSyses,t.coordinateSystem)>=0},e.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,i=E$(t,e),r=0;re[1]&&e.reverse(),e}function E$(e,t){return za(e,t,{includeMainTypes:P$})}var N$={grid:function(e,t){var n=e.xAxisModels,i=e.yAxisModels,r=e.gridModels,o=we(),a={},s={};(n||i||r)&&(G(n,(function(e){var t=e.axis.grid.model;o.set(t.id,t),a[t.id]=!0})),G(i,(function(e){var t=e.axis.grid.model;o.set(t.id,t),s[t.id]=!0})),G(r,(function(e){o.set(e.id,e),a[e.id]=!0,s[e.id]=!0})),o.each((function(e){var r=e.coordinateSystem,o=[];G(r.getCartesians(),(function(e,t){(z(n,e.getAxis("x").model)>=0||z(i,e.getAxis("y").model)>=0)&&o.push(e)})),t.push({panelId:"grid--"+e.id,gridModel:e,coordSysModel:e,coordSys:o[0],coordSyses:o,getPanelRect:F$.grid,xAxisDeclared:a[e.id],yAxisDeclared:s[e.id]})})))},geo:function(e,t){G(e.geoModels,(function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:F$.geo})}))}},B$=[function(e,t){var n=e.xAxisModel,i=e.yAxisModel,r=e.gridModel;return!r&&n&&(r=n.axis.grid.model),!r&&i&&(r=i.axis.grid.model),r&&r===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],F$={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(Pm(e)),t}},z$={lineX:K(V$,0),lineY:K(V$,1),rect:function(e,t,n,i){var r=e?t.pointToData([n[0][0],n[1][0]],i):t.dataToPoint([n[0][0],n[1][0]],i),o=e?t.pointToData([n[0][1],n[1][1]],i):t.dataToPoint([n[0][1],n[1][1]],i),a=[R$([r[0],o[0]]),R$([r[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(e,t,n,i){var r=[[1/0,-1/0],[1/0,-1/0]],o=W(n,(function(n){var o=e?t.pointToData(n,i):t.dataToPoint(n,i);return r[0][0]=Math.min(r[0][0],o[0]),r[1][0]=Math.min(r[1][0],o[1]),r[0][1]=Math.max(r[0][1],o[0]),r[1][1]=Math.max(r[1][1],o[1]),o}));return{values:o,xyMinMax:r}}};function V$(e,t,n,i){var r=n.getAxis(["x","y"][e]),o=R$(W([0,1],(function(e){return t?r.coordToData(r.toLocalCoord(i[e]),!0):r.toGlobalCoord(r.dataToCoord(i[e]))}))),a=[];return a[e]=o,a[1-e]=[NaN,NaN],{values:o,xyMinMax:a}}var H$={lineX:K(q$,0),lineY:K(q$,1),rect:function(e,t,n){return[[e[0][0]-n[0]*t[0][0],e[0][1]-n[0]*t[0][1]],[e[1][0]-n[1]*t[1][0],e[1][1]-n[1]*t[1][1]]]},polygon:function(e,t,n){return W(e,(function(e,i){return[e[0]-n[0]*t[i][0],e[1]-n[1]*t[i][1]]}))}};function q$(e,t,n,i){return[t[0]-i[e]*n[0],t[1]-i[e]*n[1]]}function G$(e,t){var n=W$(e),i=W$(t),r=[n[0]/i[0],n[1]/i[1]];return isNaN(r[0])&&(r[0]=1),isNaN(r[1])&&(r[1]=1),r}function W$(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}const U$=O$;var j$=G,Z$=Pa("toolbox-dataZoom_"),Y$=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(e,t,n,i){this._brushController||(this._brushController=new xV(n.getZr()),this._brushController.on("brush",X(this._onBrush,this)).mount()),J$(e,t,this,i,n),K$(e,t)},t.prototype.onclick=function(e,t,n){$$[n].call(this)},t.prototype.remove=function(e,t){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,t){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var t=e.areas;if(e.isEnd&&t.length){var n={},i=this.ecModel;this._brushController.updateCovers([]);var r=new U$(X$(this.model),i,{include:["grid"]});r.matchOutputRanges(t,i,(function(e,t,n){if("cartesian2d"===n.type){var i=e.brushType;"rect"===i?(o("x",n,t[0]),o("y",n,t[1])):o({lineX:"x",lineY:"y"}[i],n,t)}})),C$(i,n),this._dispatchZoomAction(n)}function o(e,t,r){var o=t.getAxis(e),s=o.model,l=a(e,s,i),u=l.findRepresentativeAxisProxy(s).getMinMaxSpan();null==u.minValueSpan&&null==u.maxValueSpan||(r=rz(0,r.slice(),o.scale.getExtent(),0,u.minValueSpan,u.maxValueSpan)),l&&(n[l.id]={dataZoomId:l.id,startValue:r[0],endValue:r[1]})}function a(e,t,n){var i;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){var r=n.getAxisModel(e,t.componentIndex);r&&(i=n)})),i}},t.prototype._dispatchZoomAction=function(e){var t=[];j$(e,(function(e,n){t.push(R(e))})),t.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:t})},t.getDefaultOption=function(e){var t={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return t},t}(WY),$$={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(I$(this.ecModel))}};function X$(e){var t={xAxisIndex:e.get("xAxisIndex",!0),yAxisIndex:e.get("yAxisIndex",!0),xAxisId:e.get("xAxisId",!0),yAxisId:e.get("yAxisId",!0)};return null==t.xAxisIndex&&null==t.xAxisId&&(t.xAxisIndex="all"),null==t.yAxisIndex&&null==t.yAxisId&&(t.yAxisIndex="all"),t}function K$(e,t){e.setIconStatus("back",k$(t)>1?"emphasis":"normal")}function J$(e,t,n,i,r){var o=n._isZoomActive;i&&"takeGlobalCursor"===i.type&&(o="dataZoomSelect"===i.key&&i.dataZoomSelectActive),n._isZoomActive=o,e.setIconStatus("zoom",o?"emphasis":"normal");var a=new U$(X$(e),t,{include:["grid"]}),s=a.makePanelOpts(r,(function(e){return e.xAxisDeclared&&!e.yAxisDeclared?"lineX":!e.xAxisDeclared&&e.yAxisDeclared?"lineY":"rect"}));n._brushController.setPanels(s).enableBrush(!(!o||!s.length)&&{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()})}kp("dataZoom",(function(e){var t=e.getComponent("toolbox",0),n=["feature","dataZoom"];if(t&&null!=t.get(n)){var i=t.getModel(n),r=[],o=X$(i),a=za(e,o);return j$(a.xAxisModels,(function(e){return s(e,"xAxis","xAxisIndex")})),j$(a.yAxisModels,(function(e){return s(e,"yAxis","yAxisIndex")})),r}function s(e,t,n){var o=e.componentIndex,a={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:Z$+t+o};a[n]=o,r.push(a)}}));const Q$=Y$;function eX(e){e.registerComponentModel($Y),e.registerComponentView(e$),jY("saveAsImage",n$),jY("magicType",s$),jY("dataView",w$),jY("dataZoom",Q$),jY("restore",L$),jw(GY)}var tX=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(op);const nX=tX;function iX(e){var t=e.get("confine");return null!=t?!!t:"richText"===e.get("renderMode")}function rX(e){if(c.domSupported)for(var t=document.documentElement.style,n=0,i=e.length;n-1?(l+="top:50%",u+="translateY(-50%) rotate("+(o="left"===a?-225:-45)+"deg)"):(l+="left:50%",u+="translateX(-50%) rotate("+(o="top"===a?225:45)+"deg)");var c=o*Math.PI/180,h=s+r,d=h*Math.abs(Math.cos(c))+h*Math.abs(Math.sin(c)),p=Math.round(100*((d-Math.SQRT2*r)/2+Math.SQRT2*r-(d-h)/2))/100;l+=";"+a+":-"+p+"px";var f=t+" solid "+r+"px;",g=["position:absolute;width:"+s+"px;height:"+s+"px;",l+";"+u+";","border-bottom:"+f,"border-right:"+f,"background-color:"+i+";"];return'
'}function fX(e,t){var n="cubic-bezier(0.23,1,0.32,1)",i=" "+e/2+"s "+n,r="opacity"+i+",visibility"+i;return t||(i=" "+e+"s "+n,r+=c.transformSupported?","+cX+i:",left"+i+",top"+i),uX+":"+r}function gX(e,t,n){var i=e.toFixed(0)+"px",r=t.toFixed(0)+"px";if(!c.transformSupported)return n?"top:"+r+";left:"+i+";":[["top",r],["left",i]];var o=c.transform3dSupported,a="translate"+(o?"3d":"")+"("+i+","+r+(o?",0":"")+")";return n?"top:0;left:0;"+cX+":"+a+";":[["top",0],["left",0],[oX,a]]}function vX(e){var t=[],n=e.get("fontSize"),i=e.getTextColor();i&&t.push("color:"+i),t.push("font:"+e.getFont()),n&&t.push("line-height:"+Math.round(3*n/2)+"px");var r=e.get("textShadowColor"),o=e.get("textShadowBlur")||0,a=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return r&&o&&t.push("text-shadow:"+a+"px "+s+"px "+o+"px "+r),G(["decoration","align"],(function(n){var i=e.get(n);i&&t.push("text-"+n+":"+i)})),t.join(";")}function yX(e,t,n){var i=[],r=e.get("transitionDuration"),o=e.get("backgroundColor"),a=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),c=e.getModel("textStyle"),h=yv(e,"html"),d=l+"px "+u+"px "+a+"px "+s;return i.push("box-shadow:"+d),t&&r&&i.push(fX(r,n)),o&&i.push("background-color:"+o),G(["width","color","radius"],(function(t){var n="border-"+t,r=Dd(n),o=e.get(r);null!=o&&i.push(n+":"+o+("color"===t?"":"px"))})),i.push(vX(c)),null!=h&&i.push("padding:"+Ld(h).join("px ")+"px"),i.join(";")+";"}function mX(e,t,n,i,r){var o=t&&t.painter;if(n){var a=o&&o.getViewportRoot();a&&at(e,a,document.body,i,r)}else{e[0]=i,e[1]=r;var s=o&&o.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var xX=function(){function e(e,t,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,c.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var r=this._zr=t.getZr(),o=this._appendToBody=n&&n.appendToBody;mX(this._styleCoord,r,o,t.getWidth()/2,t.getHeight()/2),o?document.body.appendChild(i):e.appendChild(i),this._container=e;var a=this;i.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},i.onmousemove=function(e){if(e=e||window.event,!a._enterable){var t=r.handler,n=r.painter.getViewportRoot();yt(n,e,!0),t.dispatch("mousemove",e)}},i.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return e.prototype.update=function(e){var t=this._container,n=lX(t,"position"),i=t.style;"absolute"!==i.position&&"absolute"!==n&&(i.position="relative");var r=e.get("alwaysShowContent");r&&this._moveIfResized(),this.el.className=e.get("className")||""},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,r=this._styleCoord;n.innerHTML?i.cssText=hX+yX(e,!this._firstShow,this._longHide)+gX(r[0],r[1],!0)+"border-color:"+Hd(t)+";"+(e.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,i,r){var o=this.el;if(null!=e){var a="";if(ee(r)&&"item"===n.get("trigger")&&!iX(n)&&(a=pX(n,i,r)),ee(e))o.innerHTML=e+a;else if(e){o.innerHTML="",J(e)||(e=[e]);for(var s=0;s=0?this._tryShow(n,i):"leave"===e&&this._hide(i))}),this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api,i=e.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==i&&"click"!==i){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&r.manuallyShowTip(e,t,n,{x:r._lastX,y:r._lastY,dataByCoordSys:r._lastDataByCoordSys})}))}},t.prototype.manuallyShowTip=function(e,t,n,i){if(i.from!==this.uid&&!c.node&&n.getDom()){var r=AX(i,n);this._ticket="";var o=i.dataByCoordSys,a=RX(i,t,n);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:i.position,positionDefault:"bottom"},r)}else if(i.tooltip&&null!=i.x&&null!=i.y){var l=IX;l.x=i.x,l.y=i.y,l.update(),Lu(l).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:l},r)}else if(o)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:o,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(e,t,n,i))return;var u=cj(i,t),h=u.point[0],d=u.point[1];null!=h&&null!=d&&this._tryShow({offsetX:h,offsetY:d,target:u.el,position:i.position,positionDefault:"bottom"},r)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},r))}},t.prototype.manuallyHideTip=function(e,t,n,i){var r=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(AX(i,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,i){var r=i.seriesIndex,o=i.dataIndex,a=t.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=t.getSeriesByIndex(r);if(s){var l=s.getData(),u=kX([l.getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel);if("axis"===u.get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:i.position}),!0}}},t.prototype._tryShow=function(e,t){var n=e.target,i=this._tooltipModel;if(i){this._lastX=e.offsetX,this._lastY=e.offsetY;var r=e.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,e);else if(n){var o,a;this._lastDataByCoordSys=null,n_(n,(function(e){return null!=Lu(e).dataIndex?(o=e,!0):null!=Lu(e).tooltipConfig?(a=e,!0):void 0}),!0),o?this._showSeriesItemTooltip(e,o,t):a?this._showComponentItemTooltip(e,a,t):this._hide(t)}else this._lastDataByCoordSys=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get("showDelay");t=X(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,i=this._tooltipModel,r=[t.offsetX,t.offsetY],o=kX([t.tooltipOption],i),a=this._renderMode,s=[],l=iv("section",{blocks:[],noHeader:!0}),u=[],c=new mv;G(e,(function(e){G(e.dataByAxis,(function(e){var t=n.getComponent(e.axisDim+"Axis",e.axisIndex),r=e.value;if(t&&null!=r){var o=VU(r,t.axis,n,e.seriesDataIndices,e.valueLabelOpt),h=iv("section",{header:o,noHeader:!ye(o),sortBlocks:!0,blocks:[]});l.blocks.push(h),G(e.seriesDataIndices,(function(l){var d=n.getSeriesByIndex(l.seriesIndex),p=l.dataIndexInside,f=d.getDataParams(p);if(!(f.dataIndex<0)){f.axisDim=e.axisDim,f.axisIndex=e.axisIndex,f.axisType=e.axisType,f.axisId=e.axisId,f.axisValue=sD(t.axis,{value:r}),f.axisValueLabel=o,f.marker=c.makeTooltipMarker("item",Hd(f.color),a);var g=hg(d.formatTooltip(p,!0,null)),v=g.frag;if(v){var y=kX([d],i).get("valueFormatter");h.blocks.push(y?B({valueFormatter:y},v):v)}g.text&&u.push(g.text),s.push(f)}}))}}))})),l.blocks.reverse(),u.reverse();var h=t.position,d=o.get("order"),p=uv(l,c,a,d,n.get("useUTC"),o.get("textStyle"));p&&u.unshift(p);var f="richText"===a?"\n\n":"
",g=u.join(f);this._showOrMove(o,(function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(o,h,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(o,g,s,Math.random()+"",r[0],r[1],h,null,c)}))},t.prototype._showSeriesItemTooltip=function(e,t,n){var i=this._ecModel,r=Lu(t),o=r.seriesIndex,a=i.getSeriesByIndex(o),s=r.dataModel||a,l=r.dataIndex,u=r.dataType,c=s.getData(u),h=this._renderMode,d=e.positionDefault,p=kX([c.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),f=p.get("trigger");if(null==f||"item"===f){var g=s.getDataParams(l,u),v=new mv;g.marker=v.makeTooltipMarker("item",Hd(g.color),h);var y=hg(s.formatTooltip(l,!1,u)),m=p.get("order"),x=p.get("valueFormatter"),_=y.frag,b=_?uv(x?B({valueFormatter:x},_):_,v,h,m,i.get("useUTC"),p.get("textStyle")):y.text,w="item_"+s.name+"_"+l;this._showOrMove(p,(function(){this._showTooltipContent(p,b,g,w,e.offsetX,e.offsetY,e.position,e.target,v)})),n({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:o,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var i=Lu(t),r=i.tooltipConfig,o=r.option||{};if(ee(o)){var a=o;o={content:a,formatter:a}}var s=[o],l=this._ecModel.getComponent(i.componentMainType,i.componentIndex);l&&s.push(l),s.push({formatter:o.content});var u=e.positionDefault,c=kX(s,this._tooltipModel,u?{position:u}:null),h=c.get("content"),d=Math.random()+"",p=new mv;this._showOrMove(c,(function(){var n=R(c.get("formatterParams")||{});this._showTooltipContent(c,h,n,d,e.offsetX,e.offsetY,e.position,t,p)})),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,i,r,o,a,s,l){if(this._ticket="",e.get("showContent")&&e.get("show")){var u=this._tooltipContent;u.setEnterable(e.get("enterable"));var c=e.get("formatter");a=a||e.get("position");var h=t,d=this._getNearestPoint([r,o],n,e.get("trigger"),e.get("borderColor")),p=d.color;if(c)if(ee(c)){var f=e.ecModel.get("useUTC"),g=J(n)?n[0]:n,v=g&&g.axisType&&g.axisType.indexOf("time")>=0;h=c,v&&(h=hd(g.axisValue,h,f)),h=Fd(h,n,!0)}else if(Q(c)){var y=X((function(t,i){t===this._ticket&&(u.setContent(i,l,e,p,a),this._updatePosition(e,a,r,o,u,n,s))}),this);this._ticket=i,h=c(n,i,y)}else h=c;u.setContent(h,l,e,p,a),u.show(e,p),this._updatePosition(e,a,r,o,u,n,s)}},t.prototype._getNearestPoint=function(e,t,n,i){return"axis"===n||J(t)?{color:i||("html"===this._renderMode?"#fff":"none")}:J(t)?void 0:{color:i||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,i,r,o,a){var s=this._api.getWidth(),l=this._api.getHeight();t=t||e.get("position");var u=r.getSize(),c=e.get("align"),h=e.get("verticalAlign"),d=a&&a.getBoundingRect().clone();if(a&&d.applyTransform(a.transform),Q(t)&&(t=t([n,i],o,r.el,d,{viewSize:[s,l],contentSize:u.slice()})),J(t))n=Go(t[0],s),i=Go(t[1],l);else if(ie(t)){var p=t;p.width=u[0],p.height=u[1];var f=$d(p,{width:s,height:l});n=f.x,i=f.y,c=null,h=null}else if(ee(t)&&a){var g=PX(t,d,u,e.get("borderWidth"));n=g[0],i=g[1]}else{g=DX(n,i,r,s,l,c?null:20,h?null:20);n=g[0],i=g[1]}if(c&&(n-=OX(c)?u[0]/2:"right"===c?u[0]:0),h&&(i-=OX(h)?u[1]/2:"bottom"===h?u[1]:0),iX(e)){g=LX(n,i,r,s,l);n=g[0],i=g[1]}r.moveTo(n,i)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,i=this._cbParamsList,r=!!n&&n.length===e.length;return r&&G(n,(function(n,o){var a=n.dataByAxis||[],s=e[o]||{},l=s.dataByAxis||[];r=r&&a.length===l.length,r&&G(a,(function(e,n){var o=l[n]||{},a=e.seriesDataIndices||[],s=o.seriesDataIndices||[];r=r&&e.value===o.value&&e.axisType===o.axisType&&e.axisId===o.axisId&&a.length===s.length,r&&G(a,(function(e,t){var n=s[t];r=r&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex})),i&&G(e.seriesDataIndices,(function(e){var n=e.seriesIndex,o=t[n],a=i[n];o&&a&&a.data!==o.data&&(r=!1)}))}))})),this._lastDataByCoordSys=e,this._cbParamsList=t,!!r},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,t){!c.node&&t.getDom()&&(lx(this,"_updatePosition"),this._tooltipContent.dispose(),sj("itemTooltip",t))},t.type="tooltip",t}(Ev);function kX(e,t,n){var i,r=t.ecModel;n?(i=new Oh(n,r,r),i=new Oh(t.option,i,r)):i=t;for(var o=e.length-1;o>=0;o--){var a=e[o];a&&(a instanceof Oh&&(a=a.get("tooltip",!0)),ee(a)&&(a={formatter:a}),a&&(i=new Oh(a,i,r)))}return i}function AX(e,t){return e.dispatchAction||X(t.dispatchAction,t)}function DX(e,t,n,i,r,o,a){var s=n.getSize(),l=s[0],u=s[1];return null!=o&&(e+l+o+2>i?e-=l+o:e+=o),null!=a&&(t+u+a>r?t-=u+a:t+=a),[e,t]}function LX(e,t,n,i,r){var o=n.getSize(),a=o[0],s=o[1];return e=Math.min(e+a,i)-a,t=Math.min(t+s,r)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function PX(e,t,n,i){var r=n[0],o=n[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=t.width,c=t.height;switch(e){case"inside":s=t.x+u/2-r/2,l=t.y+c/2-o/2;break;case"top":s=t.x+u/2-r/2,l=t.y-o-a;break;case"bottom":s=t.x+u/2-r/2,l=t.y+c+a;break;case"left":s=t.x-r-a,l=t.y+c/2-o/2;break;case"right":s=t.x+u+a,l=t.y+c/2-o/2}return[s,l]}function OX(e){return"center"===e||"middle"===e}function RX(e,t,n){var i=Va(e).queryOptionMap,r=i.keys()[0];if(r&&"series"!==r){var o=Ga(t,r,i.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(a){var s,l=n.getViewOfComponentModel(a);return l.group.traverse((function(t){var n=Lu(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0})),s?{componentMainType:r,componentIndex:a.componentIndex,el:s}:void 0}}}const EX=TX;function NX(e){jw(Sj),e.registerComponentModel(nX),e.registerComponentView(EX),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Te),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Te)}var BX=["rect","polygon","keep","clear"];function FX(e,t){var n=ga(e?e.brush:[]);if(n.length){var i=[];G(n,(function(e){var t=e.hasOwnProperty("toolbox")?e.toolbox:[];t instanceof Array&&(i=i.concat(t))}));var r=e&&e.toolbox;J(r)&&(r=r[0]),r||(r={feature:{}},e.toolbox=[r]);var o=r.feature||(r.feature={}),a=o.brush||(o.brush={}),s=a.type||(a.type=[]);s.push.apply(s,i),zX(s),t&&!s.length&&s.push.apply(s,BX)}}function zX(e){var t={};G(e,(function(e){t[e]=1})),e.length=0,G(t,(function(t,n){e.push(n)}))}var VX=G;function HX(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!0}function qX(e,t,n){var i={};return VX(t,(function(t){var o=i[t]=r();VX(e[t],(function(e,i){if(pN.isValidType(i)){var r={type:i,visual:e};n&&n(r,t),o[i]=new pN(r),"opacity"===i&&(r=R(r),r.type="colorAlpha",o.__hidden.__alphaForOpacity=new pN(r))}}))})),i;function r(){var e=function(){};e.prototype.__hidden=e.prototype;var t=new e;return t}}function GX(e,t,n){var i;G(n,(function(e){t.hasOwnProperty(e)&&HX(t[e])&&(i=!0)})),i&&G(n,(function(n){t.hasOwnProperty(n)&&HX(t[n])?e[n]=R(t[n]):delete e[n]}))}function WX(e,t,n,i,r,o){var a,s={};function l(e){return Xx(n,a,e)}function u(e,t){Jx(n,a,e,t)}function c(e,c){a=null==o?e:c;var h=n.getRawDataItem(a);if(!h||!1!==h.visualMap)for(var d=i.call(r,e),p=t[d],f=s[d],g=0,v=f.length;gt[0][1]&&(t[0][1]=o[0]),o[1]t[1][1]&&(t[1][1]=o[1])}return t&&aK(t)}};function aK(e){return new oo(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var sK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t,this.model,(this._brushController=new xV(t.getZr())).on("brush",X(this._onBrush,this)).mount()},t.prototype.render=function(e,t,n,i){this.model=e,this._updateController(e,t,n,i)},t.prototype.updateTransform=function(e,t,n,i){QX(t),this._updateController(e,t,n,i)},t.prototype.updateVisual=function(e,t,n,i){this.updateTransform(e,t,n,i)},t.prototype.updateView=function(e,t,n,i){this._updateController(e,t,n,i)},t.prototype._updateController=function(e,t,n,i){(!i||i.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(n)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var t=this.model.id,n=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:t,areas:R(n),$from:t}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:t,areas:R(n),$from:t})},t.type="brush",t}(Ev);const lK=sK;var uK="#ddd",cK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.areas=[],n.brushOption={},n}return o(t,e),t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&GX(n,e,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:uK},i.hasOwnProperty("liftZ")||(i.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=W(e,(function(e){return hK(this.option,e)}),this))},t.prototype.setBrushOption=function(e){this.brushOption=hK(this.option,e),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(op);function hK(e,t){return E({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new Oh(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}const dK=cK;var pK=["rect","polygon","lineX","lineY","keep","clear"],fK=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(e,t,n){var i,r,o;t.eachComponent({mainType:"brush"},(function(e){i=e.brushType,r=e.brushOption.brushMode||"single",o=o||!!e.areas.length})),this._brushType=i,this._brushMode=r,G(e.get("type",!0),(function(t){e.setIconStatus(t,("keep"===t?"multiple"===r:"clear"===t?o:t===i)?"emphasis":"normal")}))},t.prototype.updateView=function(e,t,n){this.render(e,t,n)},t.prototype.getIcons=function(){var e=this.model,t=e.get("icon",!0),n={};return G(e.get("type",!0),(function(e){t[e]&&(n[e]=t[e])})),n},t.prototype.onclick=function(e,t,n){var i=this._brushType,r=this._brushMode;"clear"===n?(t.dispatchAction({type:"axisAreaSelect",intervals:[]}),t.dispatchAction({type:"brush",command:"clear",areas:[]})):t.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===r?"single":"multiple":r}})},t.getDefaultOption=function(e){var t={show:!0,type:pK.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:e.getLocaleModel().get(["toolbox","brush","title"])};return t},t}(WY);const gK=fK;function vK(e){e.registerComponentView(lK),e.registerComponentModel(dK),e.registerPreprocessor(FX),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,eK),e.registerAction({type:"brush",event:"brush",update:"updateVisual"},(function(e,t){t.eachComponent({mainType:"brush",query:e},(function(t){t.setAreas(e.areas)}))})),e.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Te),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Te),jY("brush",gK)}var yK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return o(t,e),t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(op),mK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.render=function(e,t,n){if(this.group.removeAll(),e.get("show")){var i=this.group,r=e.getModel("textStyle"),o=e.getModel("subtextStyle"),a=e.get("textAlign"),s=de(e.get("textBaseline"),e.get("textVerticalAlign")),l=new Du({style:uh(r,{text:e.get("text"),fill:r.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),c=e.get("subtext"),h=new Du({style:uh(o,{text:c,fill:o.getTextColor(),y:u.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=e.get("link"),p=e.get("sublink"),f=e.get("triggerEvent",!0);l.silent=!d&&!f,h.silent=!p&&!f,d&&l.on("click",(function(){qd(d,"_"+e.get("target"))})),p&&h.on("click",(function(){qd(p,"_"+e.get("subtarget"))})),Lu(l).eventData=Lu(h).eventData=f?{componentType:"title",componentIndex:e.componentIndex}:null,i.add(l),c&&i.add(h);var g=i.getBoundingRect(),v=e.getBoxLayoutParams();v.width=g.width,v.height=g.height;var y=$d(v,{width:n.getWidth(),height:n.getHeight()},e.get("padding"));a||(a=e.get("left")||e.get("right"),"middle"===a&&(a="center"),"right"===a?y.x+=y.width:"center"===a&&(y.x+=y.width/2)),s||(s=e.get("top")||e.get("bottom"),"center"===s&&(s="middle"),"bottom"===s?y.y+=y.height:"middle"===s&&(y.y+=y.height/2),s=s||"top"),i.x=y.x,i.y=y.y,i.markRedraw();var m={align:a,verticalAlign:s};l.setStyle(m),h.setStyle(m),g=i.getBoundingRect();var x=y.margin,_=e.getItemStyle(["color","opacity"]);_.fill=e.get("backgroundColor");var b=new du({shape:{x:g.x-x[3],y:g.y-x[0],width:g.width+x[1]+x[3],height:g.height+x[0]+x[2],r:e.get("borderRadius")},style:_,subPixelOptimize:!0,silent:!0});i.add(b)}},t.type="title",t}(Ev);function xK(e){e.registerComponentModel(yK),e.registerComponentView(mK)}var _K=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode="box",n}return o(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._initData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){null==e&&(e=this.option.currentIndex);var t=this._data.count();this.option.loop?e=(e%t+t)%t:(e>=t&&(e=t-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e,t=this.option,n=t.data||[],i=t.axisType,r=this._names=[];"category"===i?(e=[],G(n,(function(t,n){var i,o=Aa(ma(t),"");ie(t)?(i=R(t),i.value=n):i=n,e.push(i),r.push(o)}))):e=n;var o={category:"ordinal",time:"time",value:"number"}[i]||"number",a=this._data=new JC([{name:"value",type:o}],this);a.initData(e,r)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(op);const bK=_K;var wK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.type="timeline.slider",t.defaultOption=Fh(bK.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(bK);H(wK,cg.prototype);const SK=wK;var MK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.type="timeline",t}(Ev);const CK=MK;var IK=function(e){function t(t,n,i,r){var o=e.call(this,t,n,i)||this;return o.type=r||"value",o}return o(t,e),t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},t}(zD);const TK=IK;var kK=Math.PI,AK=Ba(),DK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.init=function(e,t){this.api=t},t.prototype.render=function(e,t,n){if(this.model=e,this.api=n,this.ecModel=t,this.group.removeAll(),e.get("show",!0)){var i=this._layout(e,n),r=this._createGroup("_mainGroup"),o=this._createGroup("_labelGroup"),a=this._axis=this._createAxis(i,e);e.formatTooltip=function(e){var t=a.scale.getLabel({value:e});return iv("nameValue",{noName:!0,value:t})},G(["AxisLine","AxisTick","Control","CurrentPointer"],(function(t){this["_render"+t](i,r,a,e)}),this),this._renderAxisLabel(i,o,a,e),this._position(i,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,t){var n,i=e.get(["label","position"]),r=e.get("orient"),o=PK(e,t);n=null==i||"auto"===i?"horizontal"===r?o.y+o.height/2=0||"+"===n?"left":"right"},c={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},h={horizontal:0,vertical:kK/2},d="vertical"===r?o.height:o.width,p=e.getModel("controlStyle"),f=p.get("show",!0),g=f?p.get("itemSize"):0,v=f?p.get("itemGap"):0,y=g+v,m=e.get(["label","rotate"])||0;m=m*kK/180;var x=p.get("position",!0),_=f&&p.get("showPlayBtn",!0),b=f&&p.get("showPrevBtn",!0),w=f&&p.get("showNextBtn",!0),S=0,M=d;"left"===x||"bottom"===x?(_&&(a=[0,0],S+=y),b&&(s=[S,0],S+=y),w&&(l=[M-g,0],M-=y)):(_&&(a=[M-g,0],M-=y),b&&(s=[0,0],S+=y),w&&(l=[M-g,0],M-=y));var C=[S,M];return e.get("inverse")&&C.reverse(),{viewRect:o,mainLength:d,orient:r,rotation:h[r],labelRotation:m,labelPosOpt:n,labelAlign:e.get(["label","align"])||u[r],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||c[r],playPosition:a,prevBtnPosition:s,nextBtnPosition:l,axisExtent:C,controlSize:g,controlGap:v}},t.prototype._position=function(e,t){var n=this._mainGroup,i=this._labelGroup,r=e.viewRect;if("vertical"===e.orient){var o=kr(),a=r.x,s=r.y+r.height;Pr(o,o,[-a,-s]),Or(o,o,-kK/2),Pr(o,o,[a,s]),r=r.clone(),r.applyTransform(o)}var l=v(r),u=v(n.getBoundingRect()),c=v(i.getBoundingRect()),h=[n.x,n.y],d=[i.x,i.y];d[0]=h[0]=l[0][0];var p=e.labelPosOpt;if(null==p||ee(p)){var f="+"===p?0:1;y(h,u,l,1,f),y(d,c,l,1,1-f)}else{f=p>=0?0:1;y(h,u,l,1,f),d[1]=h[1]+p}function g(e){e.originX=l[0][0]-e.x,e.originY=l[1][0]-e.y}function v(e){return[[e.x,e.x+e.width],[e.y,e.y+e.height]]}function y(e,t,n,i,r){e[i]+=n[i][r]-t[i][r]}n.setPosition(h),i.setPosition(d),n.rotation=i.rotation=e.rotation,g(n),g(i)},t.prototype._createAxis=function(e,t){var n=t.getData(),i=t.get("axisType"),r=LK(t,i);r.getTicks=function(){return n.mapArray(["value"],(function(e){return{value:e}}))};var o=n.getDataExtent("value");r.setExtent(o[0],o[1]),r.calcNiceTicks();var a=new TK("value",r,e.axisExtent,i);return a.model=t,a},t.prototype._createGroup=function(e){var t=this[e]=new Lo;return this.group.add(t),t},t.prototype._renderAxisLine=function(e,t,n,i){var r=n.getExtent();if(i.get(["lineStyle","show"])){var o=new Wy({shape:{x1:r[0],y1:0,x2:r[1],y2:0},style:B({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});t.add(o);var a=this._progressLine=new Wy({shape:{x1:r[0],x2:this._currentPointer?this._currentPointer.x:r[0],y1:0,y2:0},style:F({lineCap:"round",lineWidth:o.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});t.add(a)}},t.prototype._renderAxisTick=function(e,t,n,i){var r=this,o=i.getData(),a=n.scale.getTicks();this._tickSymbols=[],G(a,(function(e){var a=n.dataToCoord(e.value),s=o.getItemModel(e.value),l=s.getModel("itemStyle"),u=s.getModel(["emphasis","itemStyle"]),c=s.getModel(["progress","itemStyle"]),h={x:a,y:0,onclick:X(r._changeTimeline,r,e.value)},d=RK(s,l,t,h);d.ensureState("emphasis").style=u.getItemStyle(),d.ensureState("progress").style=c.getItemStyle(),Oc(d);var p=Lu(d);s.get("tooltip")?(p.dataIndex=e.value,p.dataModel=i):p.dataIndex=p.dataModel=null,r._tickSymbols.push(d)}))},t.prototype._renderAxisLabel=function(e,t,n,i){var r=this,o=n.getLabelModel();if(o.get("show")){var a=i.getData(),s=n.getViewLabels();this._tickLabels=[],G(s,(function(i){var o=i.tickValue,s=a.getItemModel(o),l=s.getModel("label"),u=s.getModel(["emphasis","label"]),c=s.getModel(["progress","label"]),h=n.dataToCoord(i.tickValue),d=new Du({x:h,y:0,rotation:e.labelRotation-e.rotation,onclick:X(r._changeTimeline,r,o),silent:!1,style:uh(l,{text:i.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});d.ensureState("emphasis").style=uh(u),d.ensureState("progress").style=uh(c),t.add(d),Oc(d),AK(d).dataIndex=o,r._tickLabels.push(d)}))}},t.prototype._renderControl=function(e,t,n,i){var r=e.controlSize,o=e.rotation,a=i.getModel("controlStyle").getItemStyle(),s=i.getModel(["emphasis","controlStyle"]).getItemStyle(),l=i.getPlayState(),u=i.get("inverse",!0);function c(e,n,l,u){if(e){var c=fo(de(i.get(["controlStyle",n+"BtnSize"]),r),r),h=[0,-c/2,c,c],d=OK(i,n+"Icon",h,{x:e[0],y:e[1],originX:r/2,originY:0,rotation:u?-o:0,rectHover:!0,style:a,onclick:l});d.ensureState("emphasis").style=s,t.add(d),Oc(d)}}c(e.nextBtnPosition,"next",X(this._changeTimeline,this,u?"-":"+")),c(e.prevBtnPosition,"prev",X(this._changeTimeline,this,u?"+":"-")),c(e.playPosition,l?"stop":"play",X(this._handlePlayClick,this,!l),!0)},t.prototype._renderCurrentPointer=function(e,t,n,i){var r=i.getData(),o=i.getCurrentIndex(),a=r.getItemModel(o).getModel("checkpointStyle"),s=this,l={onCreate:function(e){e.draggable=!0,e.drift=X(s._handlePointerDrag,s),e.ondragend=X(s._handlePointerDragend,s),EK(e,s._progressLine,o,n,i,!0)},onUpdate:function(e){EK(e,s._progressLine,o,n,i)}};this._currentPointer=RK(a,a,this._mainGroup,{},this._currentPointer,l)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,t,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,t){var n=this._toAxisCoord(e)[0],i=this._axis,r=Uo(i.getExtent().slice());n>r[1]&&(n=r[1]),n=0&&(a[o]=+a[o].toFixed(d)),[a,h]}var QK={min:K(JK,"min"),max:K(JK,"max"),average:K(JK,"average"),median:K(JK,"median")};function eJ(e,t){var n=e.getData(),i=e.coordinateSystem;if(t&&!KK(t)&&!J(t.coord)&&i){var r=i.dimensions,o=tJ(t,n,i,e);if(t=R(t),t.type&&QK[t.type]&&o.baseAxis&&o.valueAxis){var a=z(r,o.baseAxis.dim),s=z(r,o.valueAxis.dim),l=QK[t.type](n,o.baseDataDim,o.valueDataDim,a,s);t.coord=l[0],t.value=l[1]}else{for(var u=[null!=t.xAxis?t.xAxis:t.radiusAxis,null!=t.yAxis?t.yAxis:t.angleAxis],c=0;c<2;c++)QK[u[c]]&&(u[c]=aJ(n,n.mapDimension(r[c]),u[c]));t.coord=u}}return t}function tJ(e,t,n,i){var r={};return null!=e.valueIndex||null!=e.valueDim?(r.valueDataDim=null!=e.valueIndex?t.getDimension(e.valueIndex):e.valueDim,r.valueAxis=n.getAxis(nJ(i,r.valueDataDim)),r.baseAxis=n.getOtherAxis(r.valueAxis),r.baseDataDim=t.mapDimension(r.baseAxis.dim)):(r.baseAxis=i.getBaseAxis(),r.valueAxis=n.getOtherAxis(r.baseAxis),r.baseDataDim=t.mapDimension(r.baseAxis.dim),r.valueDataDim=t.mapDimension(r.valueAxis.dim)),r}function nJ(e,t){var n=e.getData().getDimensionInfo(t);return n&&n.coordDim}function iJ(e,t){return!(e&&e.containData&&t.coord&&!XK(t))||e.containData(t.coord)}function rJ(e,t,n){return!(e&&e.containZone&&t.coord&&n.coord&&!XK(t)&&!XK(n))||e.containZone(t.coord,n.coord)}function oJ(e,t){return e?function(e,n,i,r){var o=r<2?e.coord&&e.coord[r]:e.value;return yg(o,t[r])}:function(e,n,i,r){return yg(e.value,t[r])}}function aJ(e,t,n){if("average"===n){var i=0,r=0;return e.each(t,(function(e,t){isNaN(e)||(i+=e,r++)})),i/r}return"median"===n?e.getMedian(t):e.getDataExtent(t)["max"===n?1:0]}var sJ=Ba(),lJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.init=function(){this.markerGroupMap=we()},t.prototype.render=function(e,t,n){var i=this,r=this.markerGroupMap;r.each((function(e){sJ(e).keep=!1})),t.eachSeries((function(e){var r=ZK.getMarkerModelFromSeries(e,i.type);r&&i.renderSeries(e,r,t,n)})),r.each((function(e){!sJ(e).keep&&i.group.remove(e.group)}))},t.prototype.markKeep=function(e){sJ(e).keep=!0},t.prototype.toggleBlurSeries=function(e,t){var n=this;G(e,(function(e){var i=ZK.getMarkerModelFromSeries(e,n.type);if(i){var r=i.getData();r.eachItemGraphicEl((function(e){e&&(t?mc(e):xc(e))}))}}))},t.type="marker",t}(Ev);const uJ=lJ;function cJ(e,t,n){var i=t.coordinateSystem;e.each((function(r){var o,a=e.getItemModel(r),s=Go(a.get("x"),n.getWidth()),l=Go(a.get("y"),n.getHeight());if(isNaN(s)||isNaN(l)){if(t.getMarkerPosition)o=t.getMarkerPosition(e.getValues(e.dimensions,r));else if(i){var u=e.get(i.dimensions[0],r),c=e.get(i.dimensions[1],r);o=i.dataToPoint([u,c])}}else o=[s,l];isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),e.setItemLayout(r,o)}))}var hJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=ZK.getMarkerModelFromSeries(e,"markPoint");t&&(cJ(t.getData(),e,n),this.markerGroupMap.get(e.id).updateLayout())}),this)},t.prototype.renderSeries=function(e,t,n,i){var r=e.coordinateSystem,o=e.id,a=e.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new kI),u=dJ(r,e,t);t.setData(u),cJ(t.getData(),e,i),u.each((function(e){var n=u.getItemModel(e),i=n.getShallow("symbol"),r=n.getShallow("symbolSize"),o=n.getShallow("symbolRotate"),s=n.getShallow("symbolOffset"),l=n.getShallow("symbolKeepAspect");if(Q(i)||Q(r)||Q(o)||Q(s)){var c=t.getRawValue(e),h=t.getDataParams(e);Q(i)&&(i=i(c,h)),Q(r)&&(r=r(c,h)),Q(o)&&(o=o(c,h)),Q(s)&&(s=s(c,h))}var d=n.getModel("itemStyle").getItemStyle(),p=Kx(a,"color");d.fill||(d.fill=p),u.setItemVisual(e,{symbol:i,symbolSize:r,symbolRotate:o,symbolOffset:s,symbolKeepAspect:l,style:d})})),l.updateData(u),this.group.add(l.group),u.eachItemGraphicEl((function(e){e.traverse((function(e){Lu(e).dataModel=t}))})),this.markKeep(l),l.group.silent=t.get("silent")||e.get("silent")},t.type="markPoint",t}(uJ);function dJ(e,t,n){var i;i=e?W(e&&e.dimensions,(function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return B(B({},n),{name:e,ordinalMeta:null})})):[{name:"value",type:"float"}];var r=new JC(i,n),o=W(n.get("data"),K(eJ,t));e&&(o=j(o,K(iJ,e)));var a=oJ(!!e,i);return r.initData(o,null,a),r}const pJ=hJ;function fJ(e){e.registerComponentModel($K),e.registerComponentView(pJ),e.registerPreprocessor((function(e){GK(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})}))}var gJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,n,i)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(ZK);const vJ=gJ;var yJ=Ba(),mJ=function(e,t,n,i){var r,o=e.getData();if(J(i))r=i;else{var a=i.type;if("min"===a||"max"===a||"average"===a||"median"===a||null!=i.xAxis||null!=i.yAxis){var s=void 0,l=void 0;if(null!=i.yAxis||null!=i.xAxis)s=t.getAxis(null!=i.yAxis?"y":"x"),l=he(i.yAxis,i.xAxis);else{var u=tJ(i,o,t,e);s=u.valueAxis;var c=cI(o,u.valueDataDim);l=aJ(o,c,a)}var h="x"===s.dim?0:1,d=1-h,p=R(i),f={coord:[]};p.type=null,p.coord=[],p.coord[d]=-1/0,f.coord[d]=1/0;var g=n.get("precision");g>=0&&ne(l)&&(l=+l.toFixed(Math.min(g,20))),p.coord[h]=f.coord[h]=l,r=[p,f,{type:a,valueIndex:i.valueIndex,value:l}]}else r=[]}var v=[eJ(e,r[0]),eJ(e,r[1]),B({},r[2])];return v[2].type=v[2].type||null,E(v[2],v[0]),E(v[2],v[1]),v};function xJ(e){return!isNaN(e)&&!isFinite(e)}function _J(e,t,n,i){var r=1-e,o=i.dimensions[e];return xJ(t[r])&&xJ(n[r])&&t[e]===n[e]&&i.getAxis(o).containData(t[e])}function bJ(e,t){if("cartesian2d"===e.type){var n=t[0].coord,i=t[1].coord;if(n&&i&&(_J(1,n,i,e)||_J(0,n,i,e)))return!0}return iJ(e,t[0])&&iJ(e,t[1])}function wJ(e,t,n,i,r){var o,a=i.coordinateSystem,s=e.getItemModel(t),l=Go(s.get("x"),r.getWidth()),u=Go(s.get("y"),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition)o=i.getMarkerPosition(e.getValues(e.dimensions,t));else{var c=a.dimensions,h=e.get(c[0],t),d=e.get(c[1],t);o=a.dataToPoint([h,d])}if(YI(a,"cartesian2d")){var p=a.getAxis("x"),f=a.getAxis("y");c=a.dimensions;xJ(e.get(c[0],t))?o[0]=p.toGlobalCoord(p.getExtent()[n?0:1]):xJ(e.get(c[1],t))&&(o[1]=f.toGlobalCoord(f.getExtent()[n?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];e.setItemLayout(t,o)}var SJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=ZK.getMarkerModelFromSeries(e,"markLine");if(t){var i=t.getData(),r=yJ(t).from,o=yJ(t).to;r.each((function(t){wJ(r,t,!0,e,n),wJ(o,t,!1,e,n)})),i.each((function(e){i.setItemLayout(e,[r.getItemLayout(e),o.getItemLayout(e)])})),this.markerGroupMap.get(e.id).updateLayout()}}),this)},t.prototype.renderSeries=function(e,t,n,i){var r=e.coordinateSystem,o=e.id,a=e.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new VB);this.group.add(l.group);var u=MJ(r,e,t),c=u.from,h=u.to,d=u.line;yJ(t).from=c,yJ(t).to=h,t.setData(d);var p=t.get("symbol"),f=t.get("symbolSize"),g=t.get("symbolRotate"),v=t.get("symbolOffset");function y(t,n,r){var o=t.getItemModel(n);wJ(t,n,r,e,i);var s=o.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=Kx(a,"color")),t.setItemVisual(n,{symbolKeepAspect:o.get("symbolKeepAspect"),symbolOffset:de(o.get("symbolOffset",!0),v[r?0:1]),symbolRotate:de(o.get("symbolRotate",!0),g[r?0:1]),symbolSize:de(o.get("symbolSize"),f[r?0:1]),symbol:de(o.get("symbol",!0),p[r?0:1]),style:s})}J(p)||(p=[p,p]),J(f)||(f=[f,f]),J(g)||(g=[g,g]),J(v)||(v=[v,v]),u.from.each((function(e){y(c,e,!0),y(h,e,!1)})),d.each((function(e){var t=d.getItemModel(e).getModel("lineStyle").getLineStyle();d.setItemLayout(e,[c.getItemLayout(e),h.getItemLayout(e)]),null==t.stroke&&(t.stroke=c.getItemVisual(e,"style").fill),d.setItemVisual(e,{fromSymbolKeepAspect:c.getItemVisual(e,"symbolKeepAspect"),fromSymbolOffset:c.getItemVisual(e,"symbolOffset"),fromSymbolRotate:c.getItemVisual(e,"symbolRotate"),fromSymbolSize:c.getItemVisual(e,"symbolSize"),fromSymbol:c.getItemVisual(e,"symbol"),toSymbolKeepAspect:h.getItemVisual(e,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(e,"symbolOffset"),toSymbolRotate:h.getItemVisual(e,"symbolRotate"),toSymbolSize:h.getItemVisual(e,"symbolSize"),toSymbol:h.getItemVisual(e,"symbol"),style:t})})),l.updateData(d),u.line.eachItemGraphicEl((function(e){Lu(e).dataModel=t,e.traverse((function(e){Lu(e).dataModel=t}))})),this.markKeep(l),l.group.silent=t.get("silent")||e.get("silent")},t.type="markLine",t}(uJ);function MJ(e,t,n){var i;i=e?W(e&&e.dimensions,(function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return B(B({},n),{name:e,ordinalMeta:null})})):[{name:"value",type:"float"}];var r=new JC(i,n),o=new JC(i,n),a=new JC([],n),s=W(n.get("data"),K(mJ,t,e,n));e&&(s=j(s,K(bJ,e)));var l=oJ(!!e,i);return r.initData(W(s,(function(e){return e[0]})),null,l),o.initData(W(s,(function(e){return e[1]})),null,l),a.initData(W(s,(function(e){return e[2]}))),a.hasItemOption=!0,{from:r,to:o,line:a}}const CJ=SJ;function IJ(e){e.registerComponentModel(vJ),e.registerComponentView(CJ),e.registerPreprocessor((function(e){GK(e.series,"markLine")&&(e.markLine=e.markLine||{})}))}var TJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,n,i)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(ZK);const kJ=TJ;var AJ=Ba(),DJ=function(e,t,n,i){var r=eJ(e,i[0]),o=eJ(e,i[1]),a=r.coord,s=o.coord;a[0]=he(a[0],-1/0),a[1]=he(a[1],-1/0),s[0]=he(s[0],1/0),s[1]=he(s[1],1/0);var l=N([{},r,o]);return l.coord=[r.coord,o.coord],l.x0=r.x,l.y0=r.y,l.x1=o.x,l.y1=o.y,l};function LJ(e){return!isNaN(e)&&!isFinite(e)}function PJ(e,t,n,i){var r=1-e;return LJ(t[r])&&LJ(n[r])}function OJ(e,t){var n=t.coord[0],i=t.coord[1],r={coord:n,x:t.x0,y:t.y0},o={coord:i,x:t.x1,y:t.y1};return YI(e,"cartesian2d")?!(!n||!i||!PJ(1,n,i,e)&&!PJ(0,n,i,e))||rJ(e,r,o):iJ(e,r)||iJ(e,o)}function RJ(e,t,n,i,r){var o,a=i.coordinateSystem,s=e.getItemModel(t),l=Go(s.get(n[0]),r.getWidth()),u=Go(s.get(n[1]),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition)o=i.getMarkerPosition(e.getValues(n,t));else{var c=e.get(n[0],t),h=e.get(n[1],t),d=[c,h];a.clampData&&a.clampData(d,d),o=a.dataToPoint(d,!0)}if(YI(a,"cartesian2d")){var p=a.getAxis("x"),f=a.getAxis("y");c=e.get(n[0],t),h=e.get(n[1],t);LJ(c)?o[0]=p.toGlobalCoord(p.getExtent()["x0"===n[0]?0:1]):LJ(h)&&(o[1]=f.toGlobalCoord(f.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];return o}var EJ=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],NJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=ZK.getMarkerModelFromSeries(e,"markArea");if(t){var i=t.getData();i.each((function(t){var r=W(EJ,(function(r){return RJ(i,t,r,e,n)}));i.setItemLayout(t,r);var o=i.getItemGraphicEl(t);o.setShape("points",r)}))}}),this)},t.prototype.renderSeries=function(e,t,n,i){var r=e.coordinateSystem,o=e.id,a=e.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,{group:new Lo});this.group.add(l.group),this.markKeep(l);var u=BJ(r,e,t);t.setData(u),u.each((function(t){var n=W(EJ,(function(n){return RJ(u,t,n,e,i)})),o=r.getAxis("x").scale,s=r.getAxis("y").scale,l=o.getExtent(),c=s.getExtent(),h=[o.parse(u.get("x0",t)),o.parse(u.get("x1",t))],d=[s.parse(u.get("y0",t)),s.parse(u.get("y1",t))];Uo(h),Uo(d);var p=!(l[0]>h[1]||l[1]d[1]||c[1]=0},t.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(op);const qJ=HJ;var GJ=K,WJ=G,UJ=Lo,jJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return o(t,e),t.prototype.init=function(){this.group.add(this._contentGroup=new UJ),this.group.add(this._selectorGroup=new UJ),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get("show",!0)){var r=e.get("align"),o=e.get("orient");r&&"auto"!==r||(r="right"===e.get("left")&&"vertical"===o?"right":"left");var a=e.get("selector",!0),s=e.get("selectorPosition",!0);!a||s&&"auto"!==s||(s="horizontal"===o?"end":"start"),this.renderInner(r,e,t,n,a,o,s);var l=e.getBoxLayoutParams(),u={width:n.getWidth(),height:n.getHeight()},c=e.get("padding"),h=$d(l,u,c),d=this.layoutInner(e,r,h,i,a,s),p=$d(F({width:d.width,height:d.height},l),u,c);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=KY(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,i,r,o,a){var s=this.getContentGroup(),l=we(),u=t.get("selectedMode"),c=[];n.eachRawSeries((function(e){!e.get("legendHoverLink")&&c.push(e.id)})),WJ(t.getData(),(function(r,o){var a=r.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var h=new UJ;return h.newline=!0,void s.add(h)}var d=n.getSeriesByName(a)[0];if(!l.get(a)){if(d){var p=d.getData(),f=p.getVisual("legendLineStyle")||{},g=p.getVisual("legendIcon"),v=p.getVisual("style"),y=this._createItem(d,a,o,r,t,e,f,v,g,u,i);y.on("click",GJ($J,a,null,i,c)).on("mouseover",GJ(KJ,d.name,null,i,c)).on("mouseout",GJ(JJ,d.name,null,i,c)),l.set(a,!0)}else n.eachRawSeries((function(n){if(!l.get(a)&&n.legendVisualProvider){var s=n.legendVisualProvider;if(!s.containName(a))return;var h=s.indexOfName(a),d=s.getItemVisual(h,"style"),p=s.getItemVisual(h,"legendIcon"),f=Jn(d.fill);f&&0===f[3]&&(f[3]=.2,d=B(B({},d),{fill:ai(f,"rgba")}));var g=this._createItem(n,a,o,r,t,e,{},d,p,u,i);g.on("click",GJ($J,null,a,i,c)).on("mouseover",GJ(KJ,null,a,i,c)).on("mouseout",GJ(JJ,null,a,i,c)),l.set(a,!0)}}),this);0}}),this),r&&this._createSelector(r,t,i,o,a)},t.prototype._createSelector=function(e,t,n,i,r){var o=this.getSelectorGroup();WJ(e,(function(e){var i=e.type,r=new Du({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect"})}});o.add(r);var a=t.getModel("selectorLabel"),s=t.getModel(["emphasis","selectorLabel"]);sh(r,{normal:a,emphasis:s},{defaultText:e.title}),Oc(r)}))},t.prototype._createItem=function(e,t,n,i,r,o,a,s,l,u,c){var h=e.visualDrawType,d=r.get("itemWidth"),p=r.get("itemHeight"),f=r.isSelected(t),g=i.get("symbolRotate"),v=i.get("symbolKeepAspect"),y=i.get("icon");l=y||l||"roundRect";var m=ZJ(l,i,a,s,h,f,c),x=new UJ,_=i.getModel("textStyle");if(!Q(e.getLegendIcon)||y&&"inherit"!==y){var b="inherit"===y&&e.getData().getVisual("symbol")?"inherit"===g?e.getData().getVisual("symbolRotate"):g:0;x.add(YJ({itemWidth:d,itemHeight:p,icon:l,iconRotate:b,itemStyle:m.itemStyle,lineStyle:m.lineStyle,symbolKeepAspect:v}))}else x.add(e.getLegendIcon({itemWidth:d,itemHeight:p,icon:l,iconRotate:g,itemStyle:m.itemStyle,lineStyle:m.lineStyle,symbolKeepAspect:v}));var w="left"===o?d+5:-5,S=o,M=r.get("formatter"),C=t;ee(M)&&M?C=M.replace("{name}",null!=t?t:""):Q(M)&&(C=M(t));var I=i.get("inactiveColor");x.add(new Du({style:uh(_,{text:C,x:w,y:p/2,fill:f?_.getTextColor():I,align:S,verticalAlign:"middle"})}));var T=new du({shape:x.getBoundingRect(),invisible:!0}),k=i.getModel("tooltip");return k.get("show")&&Um({el:T,componentModel:r,itemName:t,itemTooltipOption:k.option}),x.add(T),x.eachChild((function(e){e.silent=!0})),T.silent=!u,this.getContentGroup().add(x),Oc(x),x.__legendDataIndex=n,x},t.prototype.layoutInner=function(e,t,n,i,r,o){var a=this.getContentGroup(),s=this.getSelectorGroup();Zd(e.get("orient"),a,e.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),r){Zd("horizontal",s,e.get("selectorItemGap",!0));var c=s.getBoundingRect(),h=[-c.x,-c.y],d=e.get("selectorButtonGap",!0),p=e.getOrient().index,f=0===p?"width":"height",g=0===p?"height":"width",v=0===p?"y":"x";"end"===o?h[p]+=l[f]+d:u[p]+=c[f]+d,h[1-p]+=l[g]/2-c[g]/2,s.x=h[0],s.y=h[1],a.x=u[0],a.y=u[1];var y={x:0,y:0};return y[f]=l[f]+d+c[f],y[g]=Math.max(l[g],c[g]),y[v]=Math.min(0,c[v]+h[1-p]),y}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Ev);function ZJ(e,t,n,i,r,o,a){function s(e,t){"auto"===e.lineWidth&&(e.lineWidth=t.lineWidth>0?2:0),WJ(e,(function(n,i){"inherit"===e[i]&&(e[i]=t[i])}))}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=0===e.lastIndexOf("empty",0)?"fill":"stroke",h=l.getShallow("decal");u.decal=h&&"inherit"!==h?ob(h,a):i.decal,"inherit"===u.fill&&(u.fill=i[r]),"inherit"===u.stroke&&(u.stroke=i[c]),"inherit"===u.opacity&&(u.opacity=("fill"===r?i:n).opacity),s(u,i);var d=t.getModel("lineStyle"),p=d.getLineStyle();if(s(p,n),"auto"===u.fill&&(u.fill=i.fill),"auto"===u.stroke&&(u.stroke=i.fill),"auto"===p.stroke&&(p.stroke=i.fill),!o){var f=t.get("inactiveBorderWidth"),g=u[c];u.lineWidth="auto"===f?i.lineWidth>0&&g?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),p.stroke=d.get("inactiveColor"),p.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:p}}function YJ(e){var t=e.icon||"roundRect",n=v_(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function $J(e,t,n,i){JJ(e,t,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=e?e:t}),KJ(e,t,n,i)}function XJ(e){var t,n=e.getZr().storage.getDisplayList(),i=0,r=n.length;while(in[r],f=[-h.x,-h.y];t||(f[i]=l[s]);var g=[0,0],v=[-d.x,-d.y],y=de(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(p){var m=e.get("pageButtonPosition",!0);"end"===m?v[i]+=n[r]-d[r]:g[i]+=d[r]+y}v[1-i]+=h[o]/2-d[o]/2,l.setPosition(f),u.setPosition(g),c.setPosition(v);var x={x:0,y:0};if(x[r]=p?n[r]:h[r],x[o]=Math.max(h[o],d[o]),x[a]=Math.min(0,d[a]+v[1-i]),u.__rectSize=n[r],p){var _={x:0,y:0};_[r]=Math.max(n[r]-d[r]-y,0),_[o]=x[o],u.setClipPath(new du({shape:_})),u.__rectSize=_[r]}else c.eachChild((function(e){e.attr({invisible:!0,silent:!0})}));var b=this._getPageInfo(e);return null!=b.pageIndex&&Xc(l,{x:b.contentPosition[0],y:b.contentPosition[1]},p?e:null),this._updatePageInfoView(e,b),x},t.prototype._pageGo=function(e,t,n){var i=this._getPageInfo(t)[e];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;G(["pagePrev","pageNext"],(function(i){var r=i+"DataIndex",o=null!=t[r],a=n.childOfName(i);a&&(a.setStyle("fill",o?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),a.cursor=o?"pointer":"default")}));var i=n.childOfName("pageText"),r=e.get("pageFormatter"),o=t.pageIndex,a=null!=o?o+1:0,s=t.pageCount;i&&r&&i.setStyle("text",ee(r)?r.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):r({current:a,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,r=e.getOrient().index,o=lQ[r],a=uQ[r],s=this._findTargetItemIndex(t),l=n.children(),u=l[s],c=l.length,h=c?1:0,d={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return d;var p=m(u);d.contentPosition[r]=-p.s;for(var f=s+1,g=p,v=p,y=null;f<=c;++f)y=m(l[f]),(!y&&v.e>g.s+i||y&&!x(y,g.s))&&(g=v.i>g.i?v:y,g&&(null==d.pageNextDataIndex&&(d.pageNextDataIndex=g.i),++d.pageCount)),v=y;for(f=s-1,g=p,v=p,y=null;f>=-1;--f)y=m(l[f]),y&&x(v,y.s)||!(g.i=t&&e.s<=t+i}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var t,n,i=this.getContentGroup();return i.eachChild((function(i,r){var o=i.__legendDataIndex;null==n&&null!=o&&(n=r),o===e&&(t=r)})),null!=t?t:n},t.type="legend.scroll",t}(QJ);const hQ=cQ;function dQ(e){e.registerAction("legendScroll","legendscroll",(function(e,t){var n=e.scrollDataIndex;null!=n&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},(function(e){e.setScrollDataIndex(n)}))}))}function pQ(e){jw(iQ),e.registerComponentModel(aQ),e.registerComponentView(hQ),dQ(e)}function fQ(e){jw(iQ),jw(pQ)}var gQ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.type="dataZoom.inside",t.defaultOption=Fh(IY.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(IY);const vQ=gQ;var yQ=Ba();function mQ(e,t,n){yQ(e).coordSysRecordMap.each((function(e){var i=e.dataZoomInfoMap.get(t.uid);i&&(i.getRange=n)}))}function xQ(e,t){for(var n=yQ(e).coordSysRecordMap,i=n.keys(),r=0;ri[n+t]&&(t=a),r=r&&o.get("preventDefaultMouseMove",!0)})),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!r}}}function CQ(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,(function(e,t){var n=yQ(t),i=n.coordSysRecordMap||(n.coordSysRecordMap=we());i.each((function(e){e.dataZoomInfoMap=null})),e.eachComponent({mainType:"dataZoom",subType:"inside"},(function(e){var n=wY(e);G(n.infoList,(function(n){var r=n.model.uid,o=i.get(r)||i.set(r,bQ(t,n.model)),a=o.dataZoomInfoMap||(o.dataZoomInfoMap=we());a.set(e.uid,{dzReferCoordSysInfo:n,model:e,getRange:null})}))})),i.each((function(e){var t,n=e.controller,r=e.dataZoomInfoMap;if(r){var o=r.keys()[0];null!=o&&(t=r.get(o))}if(t){var a=MQ(r);n.enable(a.controlType,a.opt),n.setPointerChecker(e.containsPoint),sx(e,"dispatchAction",t.model.get("throttle",!0),"fixRate")}else _Q(i,e)}))}))}var IQ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return o(t,e),t.prototype.render=function(t,n,i){e.prototype.render.apply(this,arguments),t.noTarget()?this._clear():(this.range=t.getPercentRange(),mQ(i,t,{pan:X(TQ.pan,this),zoom:X(TQ.zoom,this),scrollMove:X(TQ.scrollMove,this)}))},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){xQ(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(DY),TQ={zoom:function(e,t,n,i){var r=this.range,o=r.slice(),a=e.axisModels[0];if(a){var s=AQ[t](null,[i.originX,i.originY],a,n,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],u=Math.max(1/i.scale,0);o[0]=(o[0]-l)*u+l,o[1]=(o[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return rz(0,o,[0,100],0,c.minSpan,c.maxSpan),this.range=o,r[0]!==o[0]||r[1]!==o[1]?o:void 0}},pan:kQ((function(e,t,n,i,r,o){var a=AQ[i]([o.oldX,o.oldY],[o.newX,o.newY],t,r,n);return a.signal*(e[1]-e[0])*a.pixel/a.pixelLength})),scrollMove:kQ((function(e,t,n,i,r,o){var a=AQ[i]([0,0],[o.scrollDelta,o.scrollDelta],t,r,n);return a.signal*(e[1]-e[0])*o.scrollDelta}))};function kQ(e){return function(t,n,i,r){var o=this.range,a=o.slice(),s=t.axisModels[0];if(s){var l=e(a,s,t,n,i,r);return rz(l,a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}}}var AQ={grid:function(e,t,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem.getRect();return e=e||[0,0],"x"===o.dim?(a.pixel=t[0]-e[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=t[1]-e[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(e,t,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),"radiusAxis"===n.mainType?(a.pixel=t[0]-e[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=t[1]-e[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=o.inverse?-1:1),a},singleAxis:function(e,t,n,i,r){var o=n.axis,a=r.model.coordinateSystem.getRect(),s={};return e=e||[0,0],"horizontal"===o.orient?(s.pixel=t[0]-e[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}};const DQ=IQ;function LQ(e){qY(e),e.registerComponentModel(vQ),e.registerComponentView(DQ),CQ(e)}var PQ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=Fh(IY.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(IY);const OQ=PQ;var RQ=du,EQ=7,NQ=1,BQ=30,FQ=7,zQ="horizontal",VQ="vertical",HQ=5,qQ=["line","bar","candlestick","scatter"],GQ={easing:"cubicOut",duration:100,delay:0},WQ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return o(t,e),t.prototype.init=function(e,t){this.api=t,this._onBrush=X(this._onBrush,this),this._onBrushEnd=X(this._onBrushEnd,this)},t.prototype.render=function(t,n,i,r){if(e.prototype.render.apply(this,arguments),sx(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),!1!==t.get("show")){if(t.noTarget())return this._clear(),void this.group.removeAll();r&&"dataZoom"===r.type&&r.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){lx(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var t=this._displayables.sliderGroup=new Lo;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,t=this.api,n=e.get("brushSelect"),i=n?FQ:0,r=this._findCoordRect(),o={width:t.getWidth(),height:t.getHeight()},a=this._orient===zQ?{right:o.width-r.x-r.width,top:o.height-BQ-EQ-i,width:r.width,height:BQ}:{right:EQ,top:r.y,width:BQ,height:r.height},s=ep(e.option);G(["right","top","width","height"],(function(e){"ph"===s[e]&&(s[e]=a[e])}));var l=$d(s,o);this._location={x:l.x,y:l.y},this._size=[l.width,l.height],this._orient===VQ&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,t=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),r=i&&i.get("inverse"),o=this._displayables.sliderGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==zQ||r?n===zQ&&r?{scaleY:a?1:-1,scaleX:-1}:n!==VQ||r?{scaleY:a?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:a?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:a?1:-1,scaleX:1});var s=e.getBoundingRect([o]);e.x=t.x-s.x,e.y=t.y-s.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,t=this._size,n=this._displayables.sliderGroup,i=e.get("brushSelect");n.add(new RQ({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var r=new RQ({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:"transparent"},z2:0,onclick:X(this._onClickPanel,this)}),o=this.api.getZr();i?(r.on("mousedown",this._onBrushStart,this),r.cursor="crosshair",o.on("mousemove",this._onBrush),o.on("mouseup",this._onBrushEnd)):(o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)),n.add(r)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],e){var t=this._size,n=this._shadowSize||[],i=e.series,r=i.getRawData(),o=i.getShadowDim?i.getShadowDim():e.otherDim;if(null!=o){var a=this._shadowPolygonPts,s=this._shadowPolylinePts;if(r!==this._shadowData||o!==this._shadowDim||t[0]!==n[0]||t[1]!==n[1]){var l=r.getDataExtent(o),u=.3*(l[1]-l[0]);l=[l[0]-u,l[1]+u];var c,h=[0,t[1]],d=[0,t[0]],p=[[t[0],0],[0,0]],f=[],g=d[1]/(r.count()-1),v=0,y=Math.round(r.count()/t[0]);r.each([o],(function(e,t){if(y>0&&t%y)v+=g;else{var n=null==e||isNaN(e)||""===e,i=n?0:qo(e,l,h,!0);n&&!c&&t?(p.push([p[p.length-1][0],0]),f.push([f[f.length-1][0],0])):!n&&c&&(p.push([v,0]),f.push([v,0])),p.push([v,i]),f.push([v,i]),v+=g,c=n}})),a=this._shadowPolygonPts=p,s=this._shadowPolylinePts=f}this._shadowData=r,this._shadowDim=o,this._shadowSize=[t[0],t[1]];for(var m=this.dataZoomModel,x=0;x<3;x++){var _=b(1===x);this._displayables.sliderGroup.add(_),this._displayables.dataShadowSegs.push(_)}}}function b(e){var t=m.getModel(e?"selectedDataBackground":"dataBackground"),n=new Lo,i=new By({shape:{points:a},segmentIgnoreThreshold:1,style:t.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),r=new Vy({shape:{points:s},segmentIgnoreThreshold:1,style:t.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(i),n.add(r),n}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,t=e.get("showDataShadow");if(!1!==t){var n,i=this.ecModel;return e.eachTargetAxis((function(r,o){var a=e.getAxisProxy(r,o).getTargetSeriesModels();G(a,(function(e){if(!n&&!(!0!==t&&z(qQ,e.get("type"))<0)){var a,s=i.getComponent(_Y(r),o).axis,l=UQ(r),u=e.coordinateSystem;null!=l&&u.getOtherAxis&&(a=u.getOtherAxis(s).inverse),l=e.getData().mapDimension(l),n={thisAxis:s,series:e,thisDim:r,otherDim:l,otherAxisInverse:a}}}),this)}),this),n}},t.prototype._renderHandle=function(){var e=this.group,t=this._displayables,n=t.handles=[null,null],i=t.handleLabels=[null,null],r=this._displayables.sliderGroup,o=this._size,a=this.dataZoomModel,s=this.api,l=a.get("borderRadius")||0,u=a.get("brushSelect"),c=t.filler=new RQ({silent:u,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});r.add(c),r.add(new RQ({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1],r:l},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:NQ,fill:"rgba(0,0,0,0)"}})),G([0,1],(function(t){var o=a.get("handleIcon");!p_[o]&&o.indexOf("path://")<0&&o.indexOf("image://")<0&&(o="path://"+o);var s=v_(o,-1,0,2,2,null,!0);s.attr({cursor:jQ(this._orient),draggable:!0,drift:X(this._onDragMove,this,t),ondragend:X(this._onDragEnd,this),onmouseover:X(this._showDataInfo,this,!0),onmouseout:X(this._showDataInfo,this,!1),z2:5});var l=s.getBoundingRect(),u=a.get("handleSize");this._handleHeight=Go(u,this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,s.setStyle(a.getModel("handleStyle").getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState("emphasis").style=a.getModel(["emphasis","handleStyle"]).getItemStyle(),Oc(s);var c=a.get("handleColor");null!=c&&(s.style.fill=c),r.add(n[t]=s);var h=a.getModel("textStyle");e.add(i[t]=new Du({silent:!0,invisible:!0,style:uh(h,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:h.getTextColor(),font:h.getFont()}),z2:10}))}),this);var h=c;if(u){var d=Go(a.get("moveHandleSize"),o[1]),p=t.moveHandle=new du({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:d}}),f=.8*d,g=t.moveHandleIcon=v_(a.get("moveHandleIcon"),-f/2,-f/2,f,f,"#fff",!0);g.silent=!0,g.y=o[1]+d/2-.5,p.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var v=Math.min(o[1]/2,Math.max(d,10));h=t.moveZone=new du({invisible:!0,shape:{y:o[1]-v,height:d+v}}),h.on("mouseover",(function(){s.enterEmphasis(p)})).on("mouseout",(function(){s.leaveEmphasis(p)})),r.add(p),r.add(g),r.add(h)}h.attr({draggable:!0,cursor:jQ(this._orient),drift:X(this._onDragMove,this,"all"),ondragstart:X(this._showDataInfo,this,!0),ondragend:X(this._onDragEnd,this),onmouseover:X(this._showDataInfo,this,!0),onmouseout:X(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[qo(e[0],[0,100],t,!0),qo(e[1],[0,100],t,!0)]},t.prototype._updateInterval=function(e,t){var n=this.dataZoomModel,i=this._handleEnds,r=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];rz(t,i,r,n.get("zoomLock")?"all":e,null!=o.minSpan?qo(o.minSpan,a,r,!0):null,null!=o.maxSpan?qo(o.maxSpan,a,r,!0):null);var s=this._range,l=this._range=Uo([qo(i[0],r,a,!0),qo(i[1],r,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},t.prototype._updateView=function(e){var t=this._displayables,n=this._handleEnds,i=Uo(n.slice()),r=this._size;G([0,1],(function(e){var i=t.handles[e],o=this._handleHeight;i.attr({scaleX:o/2,scaleY:o/2,x:n[e]+(e?-1:1),y:r[1]/2-o/2})}),this),t.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:r[1]});var o={x:i[0],width:i[1]-i[0]};t.moveHandle&&(t.moveHandle.setShape(o),t.moveZone.setShape(o),t.moveZone.getBoundingRect(),t.moveHandleIcon&&t.moveHandleIcon.attr("x",o.x+o.width/2));for(var a=t.dataShadowSegs,s=[0,i[0],i[1],r[0]],l=0;lt[0]||n[1]<0||n[1]>t[1])){var i=this._handleEnds,r=(i[0]+i[1])/2,o=this._updateInterval("all",n[0]-r);this._updateView(),o&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var t=e.offsetX,n=e.offsetY;this._brushStart=new $r(t,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var t=this._displayables.brushRect;if(this._brushing=!1,t){t.attr("ignore",!0);var n=t.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(n.width)<5)){var r=this._getViewExtent(),o=[0,100];this._range=Uo([qo(n.x,r,o,!0),qo(n.x+n.width,r,o,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(bt(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,t){var n=this._displayables,i=this.dataZoomModel,r=n.brushRect;r||(r=n.brushRect=new RQ({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(r)),r.attr("ignore",!1);var o=this._brushStart,a=this._displayables.sliderGroup,s=a.transformCoordToLocal(e,t),l=a.transformCoordToLocal(o.x,o.y),u=this._size;s[0]=Math.max(Math.min(u[0],s[0]),0),r.setShape({x:l[0],y:0,width:s[0]-l[0],height:u[1]})},t.prototype._dispatchZoomAction=function(e){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?GQ:null,start:t[0],end:t[1]})},t.prototype._findCoordRect=function(){var e,t=wY(this.dataZoomModel).infoList;if(!e&&t.length){var n=t[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var i=this.api.getWidth(),r=this.api.getHeight();e={x:.2*i,y:.2*r,width:.6*i,height:.6*r}}return e},t.type="dataZoom.slider",t}(DY);function UQ(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function jQ(e){return"vertical"===e?"ns-resize":"ew-resize"}const ZQ=WQ;function YQ(e){e.registerComponentModel(OQ),e.registerComponentView(ZQ),qY(e)}function $Q(e){jw(LQ),jw(YQ)}var XQ={get:function(e,t,n){var i=R((KQ[e]||{})[t]);return n&&J(i)?i[i.length-1]:i}},KQ={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const JQ=XQ;var QQ=pN.mapVisual,e0=pN.eachVisual,t0=J,n0=G,i0=Uo,r0=qo,o0=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return o(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&GX(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=X(e,this),this.controllerVisuals=qX(this.option.controller,t,e),this.targetVisuals=qX(this.option.target,t,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesIndex,t=[];return null==e||"all"===e?this.ecModel.eachSeries((function(e,n){t.push(n)})):t=ga(e),t},t.prototype.eachTargetSeries=function(e,t){G(this.getTargetSeriesIndices(),(function(n){var i=this.ecModel.getSeriesByIndex(n);i&&e.call(t,i)}),this)},t.prototype.isTargetSeries=function(e){var t=!1;return this.eachTargetSeries((function(n){n===e&&(t=!0)})),t},t.prototype.formatValueText=function(e,t,n){var i,r=this.option,o=r.precision,a=this.dataBound,s=r.formatter;n=n||["<",">"],J(e)&&(e=e.slice(),i=!0);var l=t?e:i?[u(e[0]),u(e[1])]:u(e);return ee(s)?s.replace("{value}",i?l[0]:l).replace("{value2}",i?l[1]:l):Q(s)?i?s(e[0],e[1]):s(e):i?e[0]===a[0]?n[0]+" "+l[1]:e[1]===a[1]?n[1]+" "+l[0]:l[0]+" - "+l[1]:l;function u(e){return e===a[0]?"min":e===a[1]?"max":(+e).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var e=this.option,t=i0([e.min,e.max]);this._dataExtent=t},t.prototype.getDataDimensionIndex=function(e){var t=this.option.dimension;if(null!=t)return e.getDimensionIndex(t);for(var n=e.dimensions,i=n.length-1;i>=0;i--){var r=n[i],o=e.getDimensionInfo(r);if(!o.isCalculationCoord)return o.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,t=this.option,n={inRange:t.inRange,outOfRange:t.outOfRange},i=t.target||(t.target={}),r=t.controller||(t.controller={});E(i,n),E(r,n);var o=this.isCategory();function a(n){t0(t.color)&&!n.inRange&&(n.inRange={color:t.color.slice().reverse()}),n.inRange=n.inRange||{color:e.get("gradientColor")}}function s(e,t,n){var i=e[t],r=e[n];i&&!r&&(r=e[n]={},n0(i,(function(e,t){if(pN.isValidType(t)){var n=JQ.get(t,"inactive",o);null!=n&&(r[t]=n,"color"!==t||r.hasOwnProperty("opacity")||r.hasOwnProperty("colorAlpha")||(r.opacity=[0,0]))}})))}function l(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,i=this.get("inactiveColor"),r=this.getItemSymbol(),a=r||"roundRect";n0(this.stateList,(function(r){var s=this.itemSize,l=e[r];l||(l=e[r]={color:o?i:[i]}),null==l.symbol&&(l.symbol=t&&R(t)||(o?a:[a])),null==l.symbolSize&&(l.symbolSize=n&&R(n)||(o?s[0]:[s[0],s[0]])),l.symbol=QQ(l.symbol,(function(e){return"none"===e?a:e}));var u=l.symbolSize;if(null!=u){var c=-1/0;e0(u,(function(e){e>c&&(c=e)})),l.symbolSize=QQ(u,(function(e){return r0(e,[0,c],[0,s[0]],!0)}))}}),this)}a.call(this,i),a.call(this,r),s.call(this,i,"inRange","outOfRange"),l.call(this,r)},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(op);const a0=o0;var s0=[20,140],l0=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual((function(e){e.mappingMethod="linear",e.dataExtent=this.getExtent()})),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(null==t[0]||isNaN(t[0]))&&(t[0]=s0[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=s0[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):J(t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),G(this.stateList,(function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)}),this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),t=Uo((this.get("range")||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]=n[1]||e<=t[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries((function(n){var i=[],r=n.getData();r.each(this.getDataDimensionIndex(r),(function(t,n){e[0]<=t&&t<=e[1]&&i.push(n)}),this),t.push({seriesId:n.id,dataIndex:i})}),this),t},t.prototype.getVisualMeta=function(e){var t=u0(this,"outOfRange",this.getExtent()),n=u0(this,"inRange",this.option.range.slice()),i=[];function r(t,n){i.push({value:t,color:e(t,n)})}for(var o=0,a=0,s=n.length,l=t.length;ae[1])break;i.push({color:this.getControllerVisual(a,"color",t),offset:o/n})}return i.push({color:this.getControllerVisual(e[1],"color",t),offset:1}),i},t.prototype._createBarPoints=function(e,t){var n=this.visualMapModel.itemSize;return[[n[0]-t[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-t[1],e[1]]]},t.prototype._createBarGroup=function(e){var t=this._orient,n=this.visualMapModel.get("inverse");return new Lo("horizontal"!==t||n?"horizontal"===t&&n?{scaleX:"bottom"===e?-1:1,rotation:-Math.PI/2}:"vertical"!==t||n?{scaleX:"left"===e?1:-1}:{scaleX:"left"===e?1:-1,scaleY:-1}:{scaleX:"bottom"===e?1:-1,rotation:Math.PI/2})},t.prototype._updateHandle=function(e,t){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,r=n.handleThumbs,o=n.handleLabels,a=i.itemSize,s=i.getExtent();y0([0,1],(function(l){var u=r[l];u.setStyle("fill",t.handlesColor[l]),u.y=e[l];var c=v0(e[l],[0,a[1]],s,!0),h=this.getControllerVisual(c,"symbolSize");u.scaleX=u.scaleY=h/a[0],u.x=a[0]-h/2;var d=Om(n.handleLabelPoints[l],Pm(u,this.group));o[l].setStyle({x:d[0],y:d[1],text:i.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this)}},t.prototype._showIndicator=function(e,t,n,i){var r=this.visualMapModel,o=r.getExtent(),a=r.itemSize,s=[0,a[1]],l=this._shapes,u=l.indicator;if(u){u.attr("invisible",!1);var c={convertOpacityToAlpha:!0},h=this.getControllerVisual(e,"color",c),d=this.getControllerVisual(e,"symbolSize"),p=v0(e,o,s,!0),f=a[0]-d/2,g={x:u.x,y:u.y};u.y=p,u.x=f;var v=Om(l.indicatorLabelPoint,Pm(u,this.group)),y=l.indicatorLabel;y.attr("invisible",!1);var m=this._applyTransform("left",l.mainGroup),x=this._orient,_="horizontal"===x;y.setStyle({text:(n||"")+r.formatValueText(t),verticalAlign:_?m:"middle",align:_?"center":m});var b={x:f,y:p,style:{fill:h}},w={style:{x:v[0],y:v[1]}};if(r.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var S={duration:100,easing:"cubicInOut",additive:!0};u.x=g.x,u.y=g.y,u.animateTo(b,S),y.animateTo(w,S)}else u.attr(b),y.attr(w);this._firstShowIndicator=!1;var M=this._shapes.handleLabels;if(M)for(var C=0;Cr[1]&&(u[1]=1/0),t&&(u[0]===-1/0?this._showIndicator(l,u[1],"< ",a):u[1]===1/0?this._showIndicator(l,u[0],"> ",a):this._showIndicator(l,l,"≈ ",a));var c=this._hoverLinkDataIndices,h=[];(t||C0(n))&&(h=this._hoverLinkDataIndices=n.findTargetDataIndices(u));var d=Ea(c,h);this._dispatchHighDown("downplay",g0(d[0],n)),this._dispatchHighDown("highlight",g0(d[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t=e.target,n=this.visualMapModel;if(t&&null!=Lu(t).dataIndex){var i=Lu(t),r=this.ecModel.getSeriesByIndex(i.seriesIndex);if(n.isTargetSeries(r)){var o=r.getData(i.dataType),a=o.getStore().get(n.getDataDimensionIndex(o),i.dataIndex);isNaN(a)||this._showIndicator(a,a)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var t=this._shapes.handleLabels;if(t)for(var n=0;n=0&&(r.dimension=o,i.push(r))}})),e.getData().setVisual("visualMeta",i)}}];function L0(e,t,n,i){for(var r=t.targetVisuals[i],o=pN.prepareVisualTypes(r),a={color:Kx(e.getData(),"color")},s=0,l=o.length;s0:e.splitNumber>0)&&!e.calculable?"piecewise":"continuous"})),e.registerAction(k0,A0),G(D0,(function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)})),e.registerPreprocessor(O0))}function B0(e){e.registerComponentModel(c0),e.registerComponentView(T0),N0(e)}var F0=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return o(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],z0[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var r=this.option.categories;this.resetVisual((function(e,t){"categories"===i?(e.mappingMethod="category",e.categories=R(r)):(e.dataExtent=this.getExtent(),e.mappingMethod="piecewise",e.pieceList=W(this._pieceList,(function(e){return e=R(e),"inRange"!==t&&(e.visual=null),e})))}))},t.prototype.completeVisualOption=function(){var t=this.option,n={},i=pN.listVisualTypes(),r=this.isCategory();function o(e,t,n){return e&&e[t]&&e[t].hasOwnProperty(n)}G(t.pieces,(function(e){G(i,(function(t){e.hasOwnProperty(t)&&(n[t]=1)}))})),G(n,(function(e,n){var i=!1;G(this.stateList,(function(e){i=i||o(t,e,n)||o(t.target,e,n)}),this),!i&&G(this.stateList,(function(e){(t[e]||(t[e]={}))[n]=JQ.get(n,"inRange"===e?"active":"inactive",r)}))}),this),e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var n=this.option,i=this._pieceList,r=(t?n:e).selected||{};if(n.selected=r,G(i,(function(e,t){var n=this.getSelectedMapKey(e);r.hasOwnProperty(n)||(r[n]=!0)}),this),"single"===n.selectedMode){var o=!1;G(i,(function(e,t){var n=this.getSelectedMapKey(e);r[n]&&(o?r[n]=!1:o=!0)}),this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return"categories"===this._mode?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=R(e)},t.prototype.getValueState=function(e){var t=pN.findPieceIndex(e,this._pieceList);return null!=t&&this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[],n=this._pieceList;return this.eachTargetSeries((function(i){var r=[],o=i.getData();o.each(this.getDataDimensionIndex(o),(function(t,i){var o=pN.findPieceIndex(t,n);o===e&&r.push(i)}),this),t.push({seriesId:i.id,dataIndex:r})}),this),t},t.prototype.getRepresentValue=function(e){var t;if(this.isCategory())t=e.value;else if(null!=e.value)t=e.value;else{var n=e.interval||[];t=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return t},t.prototype.getVisualMeta=function(e){if(!this.isCategory()){var t=[],n=["",""],i=this,r=this._pieceList.slice();if(r.length){var o=r[0].interval[0];o!==-1/0&&r.unshift({interval:[-1/0,o]}),o=r[r.length-1].interval[1],o!==1/0&&r.push({interval:[o,1/0]})}else r.push({interval:[-1/0,1/0]});var a=-1/0;return G(r,(function(e){var t=e.interval;t&&(t[0]>a&&s([a,t[0]],"outOfRange"),s(t.slice()),a=t[1])}),this),{stops:t,outerColors:n}}function s(r,o){var a=i.getRepresentValue({interval:r});o||(o=i.getValueState(a));var s=e(a,o);r[0]===-1/0?n[0]=s:r[1]===1/0?n[1]=s:t.push({value:r[0],color:s},{value:r[1],color:s})}},t.type="visualMap.piecewise",t.defaultOption=Fh(a0.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(a0),z0={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),i=this.getExtent(),r=t.splitNumber;r=Math.max(parseInt(r,10),1),t.splitNumber=r;var o=(i[1]-i[0])/r;while(+o.toFixed(n)!==o&&n<5)n++;t.precision=n,o=+o.toFixed(n),t.minOpen&&e.push({interval:[-1/0,i[0]],close:[0,0]});for(var a=0,s=i[0];a","≥"][t[0]]];e.text=e.text||this.formatValueText(null!=e.value?e.value:e.interval,!1,n)}),this)}};function V0(e,t){var n=e.inverse;("vertical"===e.orient?!n:n)&&t.reverse()}const H0=F0;var q0=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get("textGap"),i=t.textStyleModel,r=i.getFont(),o=i.getTextColor(),a=this._getItemAlign(),s=t.itemSize,l=this._getViewData(),u=l.endsText,c=he(t.get("showLabel",!0),!u);u&&this._renderEndsText(e,u[0],s,c,a),G(l.viewPieceList,(function(i){var l=i.piece,u=new Lo;u.onclick=X(this._onItemClick,this,l),this._enableHoverLink(u,i.indexInModelPieceList);var h=t.getRepresentValue(l);if(this._createItemSymbol(u,h,[0,0,s[0],s[1]]),c){var d=this.visualMapModel.getValueState(h);u.add(new Du({style:{x:"right"===a?-n:s[0]+n,y:s[1]/2,text:l.text,verticalAlign:"middle",align:a,font:r,fill:o,opacity:"outOfRange"===d?.5:1}}))}e.add(u)}),this),u&&this._renderEndsText(e,u[1],s,c,a),Zd(t.get("orient"),e,t.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,t){var n=this;e.on("mouseover",(function(){return i("highlight")})).on("mouseout",(function(){return i("downplay")}));var i=function(e){var i=n.visualMapModel;i.option.hoverLink&&n.api.dispatchAction({type:e,batch:g0(i.findTargetDataIndices(t),i)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if("vertical"===t.orient)return f0(e,this.api,e.itemSize);var n=t.align;return n&&"auto"!==n||(n="left"),n},t.prototype._renderEndsText=function(e,t,n,i,r){if(t){var o=new Lo,a=this.visualMapModel.textStyleModel;o.add(new Du({style:uh(a,{x:i?"right"===r?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?r:"center",text:t})})),e.add(o)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=W(e.getPieceList(),(function(e,t){return{piece:e,indexInModelPieceList:t}})),n=e.get("text"),i=e.get("orient"),r=e.get("inverse");return("horizontal"===i?r:!r)?t.reverse():n&&(n=n.slice().reverse()),{viewPieceList:t,endsText:n}},t.prototype._createItemSymbol=function(e,t,n){e.add(v_(this.getControllerVisual(t,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(t,"color")))},t.prototype._onItemClick=function(e){var t=this.visualMapModel,n=t.option,i=n.selectedMode;if(i){var r=R(n.selected),o=t.getSelectedMapKey(e);"single"===i||!0===i?(r[o]=!0,G(r,(function(e,t){r[t]=t===o}))):r[o]=!r[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:r})}},t.type="visualMap.piecewise",t}(d0);const G0=q0;function W0(e){e.registerComponentModel(H0),e.registerComponentView(G0),N0(e)}function U0(e){jw(B0),jw(W0)}var j0={label:{enabled:!0},decal:{show:!1}},Z0=Ba(),Y0={};function $0(e,t){var n=e.getModel("aria");if(n.get("enabled")){var i=R(j0);E(i.label,e.getLocaleModel().get("aria"),!1),E(n.option,i,!1),r(),o()}function r(){var t=n.getModel("decal"),i=t.get("show");if(i){var r=we();e.eachSeries((function(e){if(!e.isColorBySeries()){var t=r.get(e.type);t||(t={},r.set(e.type,t)),Z0(e).scope=t}})),e.eachRawSeries((function(t){if(!e.isSeriesFiltered(t))if(Q(t.enableAriaDecal))t.enableAriaDecal();else{var n=t.getData();if(t.isColorBySeries()){var i=Np(t.ecModel,t.name,Y0,e.getSeriesCount()),r=n.getVisual("decal");n.setVisual("decal",u(r,i))}else{var o=t.getRawData(),a={},s=Z0(t).scope;n.each((function(e){var t=n.getRawIndex(e);a[t]=e}));var l=o.count();o.each((function(e){var i=a[e],r=o.getName(e)||e+"",c=Np(t.ecModel,r,s,l),h=n.getItemVisual(i,"decal");n.setItemVisual(i,"decal",u(h,c))}))}}function u(e,t){var n=e?B(B({},t),e):t;return n.dirty=!0,n}}))}}function o(){var i=e.getLocaleModel().get("aria"),r=n.getModel("label");if(r.option=F(r.option,i),r.get("enabled")){var o=t.getZr().dom;if(r.get("description"))o.setAttribute("aria-label",r.get("description"));else{var u,c=e.getSeriesCount(),h=r.get(["data","maxCount"])||10,d=r.get(["series","maxCount"])||10,p=Math.min(c,d);if(!(c<1)){var f=s();if(f){var g=r.get(["general","withTitle"]);u=a(g,{title:f})}else u=r.get(["general","withoutTitle"]);var v=[],y=c>1?r.get(["series","multiple","prefix"]):r.get(["series","single","prefix"]);u+=a(y,{seriesCount:c}),e.eachSeries((function(e,t){if(t1?r.get(["series","multiple",o]):r.get(["series","single",o]),n=a(n,{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:l(e.subType)});var s=e.getData();if(s.count()>h){var u=r.get(["data","partialData"]);n+=a(u,{displayCnt:h})}else n+=r.get(["data","allData"]);for(var d=r.get(["data","separator","middle"]),f=r.get(["data","separator","end"]),g=[],y=0;y":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},Q0=function(){function e(e){var t=this._condVal=ee(e)?new RegExp(e):ue(e)?e:null;if(null==t){var n="";0,vg(n)}}return e.prototype.evaluate=function(e){var t=typeof e;return ee(t)?this._condVal.test(e):!!ne(t)&&this._condVal.test(e+"")},e}(),e1=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),t1=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t2&&l.push(t),t=[e,n]}function f(e,n,i,r){x1(e,i)&&x1(n,r)||t.push(e,n,i,r,i,r)}function g(e,n,i,r,o,a){var s=Math.abs(n-e),l=4*Math.tan(s/4)/3,u=nM:T2&&l.push(t),l}function b1(e,t,n,i,r,o,a,s,l,u){if(x1(e,n)&&x1(t,i)&&x1(r,a)&&x1(o,s))l.push(a,s);else{var c=2/u,h=c*c,d=a-e,p=s-t,f=Math.sqrt(d*d+p*p);d/=f,p/=f;var g=n-e,v=i-t,y=r-a,m=o-s,x=g*g+v*v,_=y*y+m*m;if(x=0&&M=0)l.push(a,s);else{var C=[],I=[];bn(e,n,r,a,.5,C),bn(t,i,o,s,.5,I),b1(C[0],I[0],C[1],I[1],C[2],I[2],C[3],I[3],l,u),b1(C[4],I[4],C[5],I[5],C[6],I[6],C[7],I[7],l,u)}}}}function w1(e,t){var n=_1(e),i=[];t=t||1;for(var r=0;r0)for(u=0;uMath.abs(u),h=S1([l,u],c?0:1,t),d=(c?s:u)/h.length,p=0;pr,a=S1([i,r],o?0:1,t),s=o?"width":"height",l=o?"height":"width",u=o?"x":"y",c=o?"y":"x",h=e[s]/a.length,d=0;d1?null:new $r(g*l+e,g*u+t)}function k1(e,t,n){var i=new $r;$r.sub(i,n,t),i.normalize();var r=new $r;$r.sub(r,e,t);var o=r.dot(i);return o}function A1(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function D1(e,t,n){for(var i=e.length,r=[],o=0;oa?(u.x=c.x=s+o/2,u.y=l,c.y=l+a):(u.y=c.y=l+a/2,u.x=s,c.x=s+o),D1(t,u,c)}function P1(e,t,n,i){if(1===n)i.push(t);else{var r=Math.floor(n/2),o=e(t);P1(e,o[0],r,i),P1(e,o[1],n-r,i)}return i}function O1(e,t){for(var n=[],i=0;i0)for(var b=i/n,w=-i/2;w<=i/2;w+=b){var S=Math.sin(w),M=Math.cos(w),C=0;for(x=0;x0;u/=2){var c=0,h=0;(e&u)>0&&(c=1),(t&u)>0&&(h=1),l+=u*u*(3*c^h),0===h&&(1===c&&(e=u-1-e,t=u-1-t),s=e,e=t,t=s)}return l}function J1(e){var t=1/0,n=1/0,i=-1/0,r=-1/0,o=W(e,(function(e){var o=e.getBoundingRect(),a=e.getComputedTransform(),s=o.x+o.width/2+(a?a[4]:0),l=o.y+o.height/2+(a?a[5]:0);return t=Math.min(s,t),n=Math.min(l,n),i=Math.max(s,i),r=Math.max(l,r),[s,l]})),a=W(o,(function(o,a){return{cp:o,z:K1(o[0],o[1],t,n,i,r),path:e[a]}}));return a.sort((function(e,t){return e.z-t.z})).map((function(e){return e.path}))}function Q1(e){return N1(e.path,e.count)}function e2(){return{fromIndividuals:[],toIndividuals:[],count:0}}function t2(e,t,n){var i=[];function r(e){for(var t=0;t=0;r--)if(!n[r].many.length){var l=n[s].many;if(l.length<=1){if(!s)return n;s=0}o=l.length;var u=Math.ceil(o/2);n[r].many=l.slice(u,o),n[s].many=l.slice(0,u),s++}return n}var o2={clone:function(e){for(var t=[],n=1-Math.pow(1-e.path.style.opacity,1/e.count),i=0;i0){var s,l,u=i.getModel("universalTransition").get("delay"),c=Object.assign({setToFinal:!0},a);i2(e)&&(s=e,l=t),i2(t)&&(s=t,l=e);for(var h=s?s===e:e.length>t.length,d=s?r2(l,s):r2(h?t:e,[h?e:t]),p=0,f=0;fl2))for(var i=n.getIndices(),r=c2(n),o=0;o0&&r.group.traverse((function(e){e instanceof $l&&!e.animators.length&&e.animateFrom({style:{opacity:0}},o)}))}))}function m2(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function x2(e){return J(e)?e.sort().join(","):e}function _2(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function b2(e,t){var n=we(),i=we(),r=we();return G(e.oldSeries,(function(t,n){var o=e.oldData[n],a=m2(t),s=x2(a);i.set(s,o),J(a)&&G(a,(function(e){r.set(e,{data:o,key:s})}))})),G(t.updatedSeries,(function(e){if(e.isUniversalTransitionEnabled()&&e.isAnimationEnabled()){var t=e.getData(),o=m2(e),a=x2(o),s=i.get(a);if(s)n.set(a,{oldSeries:[{divide:_2(s),data:s}],newSeries:[{divide:_2(t),data:t}]});else if(J(o)){0;var l=[];G(o,(function(e){var t=i.get(e);t&&l.push({divide:_2(t),data:t})})),l.length&&n.set(a,{oldSeries:l,newSeries:[{data:t,divide:_2(t)}]})}else{var u=r.get(o);if(u){var c=n.get(u.key);c||(c={oldSeries:[{data:u.data,divide:_2(u.data)}],newSeries:[]},n.set(u.key,c)),c.newSeries.push({data:t,divide:_2(t)})}}}})),n}function w2(e,t){for(var n=0;n=0&&r.push({data:t.oldData[n],divide:_2(t.oldData[n]),dim:e.dimension})})),G(ga(e.to),(function(e){var t=w2(n.updatedSeries,e);if(t>=0){var i=n.updatedSeries[t].getData();o.push({data:i,divide:_2(i),dim:e.dimension})}})),r.length>0&&o.length>0&&y2(r,o,i)}function M2(e){e.registerUpdateLifecycle("series:beforeupdate",(function(e,t,n){G(ga(n.seriesTransition),(function(e){G(ga(e.to),(function(e){for(var t=n.updatedSeries,i=0;i{"use strict";t.Z=(e,t)=>{const n=e.__vccOpts||e;for(const[i,r]of t)n[i]=r;return n}},3340:(e,t,n)=>{"use strict";function i(e){return e}n.d(t,{BC:()=>i})},8339:(e,t,n)=>{"use strict";n.d(t,{p7:()=>nt,r5:()=>V});var i=n(3673),r=n(1959); -/*! - * vue-router v4.1.3 - * (c) 2022 Eduardo San Martin Morote - * @license MIT - */ -const o="undefined"!==typeof window;function a(e){return e.__esModule||"Module"===e[Symbol.toStringTag]}const s=Object.assign;function l(e,t){const n={};for(const i in t){const r=t[i];n[i]=c(r)?r.map(e):e(r)}return n}const u=()=>{},c=Array.isArray;const h=/\/$/,d=e=>e.replace(h,"");function p(e,t,n="/"){let i,r={},o="",a="";const s=t.indexOf("#");let l=t.indexOf("?");return s=0&&(l=-1),l>-1&&(i=t.slice(0,l),o=t.slice(l+1,s>-1?s:t.length),r=e(o)),s>-1&&(i=i||t.slice(0,s),a=t.slice(s,t.length)),i=b(null!=i?i:t,n),{fullPath:i+(o&&"?")+o+a,path:i,query:r,hash:a}}function f(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function g(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function v(e,t,n){const i=t.matched.length-1,r=n.matched.length-1;return i>-1&&i===r&&y(t.matched[i],n.matched[r])&&m(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function y(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function m(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!x(e[n],t[n]))return!1;return!0}function x(e,t){return c(e)?_(e,t):c(t)?_(t,e):e===t}function _(e,t){return c(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}function b(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),i=e.split("/");let r,o,a=n.length-1;for(r=0;r1&&a--}return n.slice(0,a).join("/")+"/"+i.slice(r-(r===i.length?1:0)).join("/")}var w,S;(function(e){e["pop"]="pop",e["push"]="push"})(w||(w={})),function(e){e["back"]="back",e["forward"]="forward",e["unknown"]=""}(S||(S={}));function M(e){if(!e)if(o){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),d(e)}const C=/^[^#]+#/;function I(e,t){return e.replace(C,"#")+t}function T(e,t){const n=document.documentElement.getBoundingClientRect(),i=e.getBoundingClientRect();return{behavior:t.behavior,left:i.left-n.left-(t.left||0),top:i.top-n.top-(t.top||0)}}const k=()=>({left:window.pageXOffset,top:window.pageYOffset});function A(e){let t;if("el"in e){const n=e.el,i="string"===typeof n&&n.startsWith("#");0;const r="string"===typeof n?i?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=T(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.pageXOffset,null!=t.top?t.top:window.pageYOffset)}function D(e,t){const n=history.state?history.state.position-t:-1;return n+e}const L=new Map;function P(e,t){L.set(e,t)}function O(e){const t=L.get(e);return L.delete(e),t}let R=()=>location.protocol+"//"+location.host;function E(e,t){const{pathname:n,search:i,hash:r}=t,o=e.indexOf("#");if(o>-1){let t=r.includes(e.slice(o))?e.slice(o).length:1,n=r.slice(t);return"/"!==n[0]&&(n="/"+n),g(n,"")}const a=g(n,e);return a+i+r}function N(e,t,n,i){let r=[],o=[],a=null;const l=({state:o})=>{const s=E(e,location),l=n.value,u=t.value;let c=0;if(o){if(n.value=s,t.value=o,a&&a===l)return void(a=null);c=u?o.position-u.position:0}else i(s);r.forEach((e=>{e(n.value,l,{delta:c,type:w.pop,direction:c?c>0?S.forward:S.back:S.unknown})}))};function u(){a=n.value}function c(e){r.push(e);const t=()=>{const t=r.indexOf(e);t>-1&&r.splice(t,1)};return o.push(t),t}function h(){const{history:e}=window;e.state&&e.replaceState(s({},e.state,{scroll:k()}),"")}function d(){for(const e of o)e();o=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",h)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",h),{pauseListeners:u,listen:c,destroy:d}}function B(e,t,n,i=!1,r=!1){return{back:e,current:t,forward:n,replaced:i,position:window.history.length,scroll:r?k():null}}function F(e){const{history:t,location:n}=window,i={value:E(e,n)},r={value:t.state};function o(i,o,a){const s=e.indexOf("#"),l=s>-1?(n.host&&document.querySelector("base")?e:e.slice(s))+i:R()+e+i;try{t[a?"replaceState":"pushState"](o,"",l),r.value=o}catch(u){console.error(u),n[a?"replace":"assign"](l)}}function a(e,n){const a=s({},t.state,B(r.value.back,e,r.value.forward,!0),n,{position:r.value.position});o(e,a,!0),i.value=e}function l(e,n){const a=s({},r.value,t.state,{forward:e,scroll:k()});o(a.current,a,!0);const l=s({},B(i.value,e,null),{position:a.position+1},n);o(e,l,!1),i.value=e}return r.value||o(i.value,{back:null,current:i.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:i,state:r,push:l,replace:a}}function z(e){e=M(e);const t=F(e),n=N(e,t.state,t.location,t.replace);function i(e,t=!0){t||n.pauseListeners(),history.go(e)}const r=s({location:"",base:e,go:i,createHref:I.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function V(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),z(e)}function H(e){return"string"===typeof e||e&&"object"===typeof e}function q(e){return"string"===typeof e||"symbol"===typeof e}const G={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},W=Symbol("");var U;(function(e){e[e["aborted"]=4]="aborted",e[e["cancelled"]=8]="cancelled",e[e["duplicated"]=16]="duplicated"})(U||(U={}));function j(e,t){return s(new Error,{type:e,[W]:!0},t)}function Z(e,t){return e instanceof Error&&W in e&&(null==t||!!(e.type&t))}const Y="[^/]+?",$={sensitive:!1,strict:!1,start:!0,end:!0},X=/[.+*?^${}()[\]/\\]/g;function K(e,t){const n=s({},$,t),i=[];let r=n.start?"^":"";const o=[];for(const s of e){const e=s.length?[]:[90];n.strict&&!s.length&&(r+="/");for(let t=0;tt.length?1===t.length&&80===t[0]?1:-1:0}function Q(e,t){let n=0;const i=e.score,r=t.score;while(n0&&t[t.length-1]<0}const te={type:0,value:""},ne=/[a-zA-Z0-9_]/;function ie(e){if(!e)return[[]];if("/"===e)return[[te]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(e){throw new Error(`ERR (${n})/"${u}": ${e}`)}let n=0,i=n;const r=[];let o;function a(){o&&r.push(o),o=[]}let s,l=0,u="",c="";function h(){u&&(0===n?o.push({type:0,value:u}):1===n||2===n||3===n?(o.length>1&&("*"===s||"+"===s)&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:u,regexp:c,repeatable:"*"===s||"+"===s,optional:"*"===s||"?"===s})):t("Invalid state to consume buffer"),u="")}function d(){u+=s}while(l{a(f)}:u}function a(e){if(q(e)){const t=i.get(e);t&&(i.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(a),t.alias.forEach(a))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&i.delete(e.record.name),e.children.forEach(a),e.alias.forEach(a))}}function l(){return n}function c(e){let t=0;while(t=0&&(e.record.path!==n[t].record.path||!de(e,n[t])))t++;n.splice(t,0,e),e.record.name&&!ue(e)&&i.set(e.record.name,e)}function h(e,t){let r,o,a,l={};if("name"in e&&e.name){if(r=i.get(e.name),!r)throw j(1,{location:e});a=r.record.name,l=s(ae(t.params,r.keys.filter((e=>!e.optional)).map((e=>e.name))),e.params),o=r.stringify(l)}else if("path"in e)o=e.path,r=n.find((e=>e.re.test(o))),r&&(l=r.parse(o),a=r.record.name);else{if(r=t.name?i.get(t.name):n.find((e=>e.re.test(t.path))),!r)throw j(1,{location:e,currentLocation:t});a=r.record.name,l=s({},t.params,e.params),o=r.stringify(l)}const u=[];let c=r;while(c)u.unshift(c.record),c=c.parent;return{name:a,path:o,params:l,matched:u,meta:ce(u)}}return t=he({strict:!1,end:!0,sensitive:!1},t),e.forEach((e=>o(e))),{addRoute:o,resolve:h,removeRoute:a,getRoutes:l,getRecordMatcher:r}}function ae(e,t){const n={};for(const i of t)i in e&&(n[i]=e[i]);return n}function se(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:le(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function le(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const i in e.components)t[i]="boolean"===typeof n?n:n[i];return t}function ue(e){while(e){if(e.record.aliasOf)return!0;e=e.parent}return!1}function ce(e){return e.reduce(((e,t)=>s(e,t.meta)),{})}function he(e,t){const n={};for(const i in e)n[i]=i in t?t[i]:e[i];return n}function de(e,t){return t.children.some((t=>t===e||de(e,t)))}const pe=/#/g,fe=/&/g,ge=/\//g,ve=/=/g,ye=/\?/g,me=/\+/g,xe=/%5B/g,_e=/%5D/g,be=/%5E/g,we=/%60/g,Se=/%7B/g,Me=/%7C/g,Ce=/%7D/g,Ie=/%20/g;function Te(e){return encodeURI(""+e).replace(Me,"|").replace(xe,"[").replace(_e,"]")}function ke(e){return Te(e).replace(Se,"{").replace(Ce,"}").replace(be,"^")}function Ae(e){return Te(e).replace(me,"%2B").replace(Ie,"+").replace(pe,"%23").replace(fe,"%26").replace(we,"`").replace(Se,"{").replace(Ce,"}").replace(be,"^")}function De(e){return Ae(e).replace(ve,"%3D")}function Le(e){return Te(e).replace(pe,"%23").replace(ye,"%3F")}function Pe(e){return null==e?"":Le(e).replace(ge,"%2F")}function Oe(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}function Re(e){const t={};if(""===e||"?"===e)return t;const n="?"===e[0],i=(n?e.slice(1):e).split("&");for(let r=0;re&&Ae(e))):[i&&Ae(i)];r.forEach((e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))}))}return t}function Ne(e){const t={};for(const n in e){const i=e[n];void 0!==i&&(t[n]=c(i)?i.map((e=>null==e?null:""+e)):null==i?i:""+i)}return t}const Be=Symbol(""),Fe=Symbol(""),ze=Symbol(""),Ve=Symbol(""),He=Symbol("");function qe(){let e=[];function t(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function Ge(e,t,n,i,r){const o=i&&(i.enterCallbacks[r]=i.enterCallbacks[r]||[]);return()=>new Promise(((a,s)=>{const l=e=>{!1===e?s(j(4,{from:n,to:t})):e instanceof Error?s(e):H(e)?s(j(2,{from:t,to:e})):(o&&i.enterCallbacks[r]===o&&"function"===typeof e&&o.push(e),a())},u=e.call(i&&i.instances[r],t,n,l);let c=Promise.resolve(u);e.length<3&&(c=c.then(l)),c.catch((e=>s(e)))}))}function We(e,t,n,i){const r=[];for(const o of e){0;for(const e in o.components){let s=o.components[e];if("beforeRouteEnter"===t||o.instances[e])if(Ue(s)){const a=s.__vccOpts||s,l=a[t];l&&r.push(Ge(l,n,i,o,e))}else{let l=s();0,r.push((()=>l.then((r=>{if(!r)return Promise.reject(new Error(`Couldn't resolve component "${e}" at "${o.path}"`));const s=a(r)?r.default:r;o.components[e]=s;const l=s.__vccOpts||s,u=l[t];return u&&Ge(u,n,i,o,e)()}))))}}}return r}function Ue(e){return"object"===typeof e||"displayName"in e||"props"in e||"__vccOpts"in e}function je(e){const t=(0,i.f3)(ze),n=(0,i.f3)(Ve),o=(0,i.Fl)((()=>t.resolve((0,r.SU)(e.to)))),a=(0,i.Fl)((()=>{const{matched:e}=o.value,{length:t}=e,i=e[t-1],r=n.matched;if(!i||!r.length)return-1;const a=r.findIndex(y.bind(null,i));if(a>-1)return a;const s=Ke(e[t-2]);return t>1&&Ke(i)===s&&r[r.length-1].path!==s?r.findIndex(y.bind(null,e[t-2])):a})),s=(0,i.Fl)((()=>a.value>-1&&Xe(n.params,o.value.params))),l=(0,i.Fl)((()=>a.value>-1&&a.value===n.matched.length-1&&m(n.params,o.value.params)));function c(n={}){return $e(n)?t[(0,r.SU)(e.replace)?"replace":"push"]((0,r.SU)(e.to)).catch(u):Promise.resolve()}return{route:o,href:(0,i.Fl)((()=>o.value.href)),isActive:s,isExactActive:l,navigate:c}}const Ze=(0,i.aZ)({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:je,setup(e,{slots:t}){const n=(0,r.qj)(je(e)),{options:o}=(0,i.f3)(ze),a=(0,i.Fl)((()=>({[Je(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[Je(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive})));return()=>{const r=t.default&&t.default(n);return e.custom?r:(0,i.h)("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:a.value},r)}}}),Ye=Ze;function $e(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&(void 0===e.button||0===e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Xe(e,t){for(const n in t){const i=t[n],r=e[n];if("string"===typeof i){if(i!==r)return!1}else if(!c(r)||r.length!==i.length||i.some(((e,t)=>e!==r[t])))return!1}return!0}function Ke(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Je=(e,t,n)=>null!=e?e:null!=t?t:n,Qe=(0,i.aZ)({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const o=(0,i.f3)(He),a=(0,i.Fl)((()=>e.route||o.value)),l=(0,i.f3)(Fe,0),u=(0,i.Fl)((()=>{let e=(0,r.SU)(l);const{matched:t}=a.value;let n;while((n=t[e])&&!n.components)e++;return e})),c=(0,i.Fl)((()=>a.value.matched[u.value]));(0,i.JJ)(Fe,(0,i.Fl)((()=>u.value+1))),(0,i.JJ)(Be,c),(0,i.JJ)(He,a);const h=(0,r.iH)();return(0,i.YP)((()=>[h.value,c.value,e.name]),(([e,t,n],[i,r,o])=>{t&&(t.instances[n]=e,r&&r!==t&&e&&e===i&&(t.leaveGuards.size||(t.leaveGuards=r.leaveGuards),t.updateGuards.size||(t.updateGuards=r.updateGuards))),!e||!t||r&&y(t,r)&&i||(t.enterCallbacks[n]||[]).forEach((t=>t(e)))}),{flush:"post"}),()=>{const r=a.value,o=e.name,l=c.value,u=l&&l.components[o];if(!u)return et(n.default,{Component:u,route:r});const d=l.props[o],p=d?!0===d?r.params:"function"===typeof d?d(r):d:null,f=e=>{e.component.isUnmounted&&(l.instances[o]=null)},g=(0,i.h)(u,s({},p,t,{onVnodeUnmounted:f,ref:h}));return et(n.default,{Component:g,route:r})||g}}});function et(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const tt=Qe;function nt(e){const t=oe(e.routes,e),n=e.parseQuery||Re,a=e.stringifyQuery||Ee,h=e.history;const d=qe(),g=qe(),y=qe(),m=(0,r.XI)(G);let x=G;o&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const _=l.bind(null,(e=>""+e)),b=l.bind(null,Pe),S=l.bind(null,Oe);function M(e,n){let i,r;return q(e)?(i=t.getRecordMatcher(e),r=n):r=e,t.addRoute(r,i)}function C(e){const n=t.getRecordMatcher(e);n&&t.removeRoute(n)}function I(){return t.getRoutes().map((e=>e.record))}function T(e){return!!t.getRecordMatcher(e)}function L(e,i){if(i=s({},i||m.value),"string"===typeof e){const r=p(n,e,i.path),o=t.resolve({path:r.path},i),a=h.createHref(r.fullPath);return s(r,o,{params:S(o.params),hash:Oe(r.hash),redirectedFrom:void 0,href:a})}let r;if("path"in e)r=s({},e,{path:p(n,e.path,i.path).path});else{const t=s({},e.params);for(const e in t)null==t[e]&&delete t[e];r=s({},e,{params:b(e.params)}),i.params=b(i.params)}const o=t.resolve(r,i),l=e.hash||"";o.params=_(S(o.params));const u=f(a,s({},e,{hash:ke(l),path:o.path})),c=h.createHref(u);return s({fullPath:u,hash:l,query:a===Ee?Ne(e.query):e.query||{}},o,{redirectedFrom:void 0,href:c})}function R(e){return"string"===typeof e?p(n,e,m.value.path):s({},e)}function E(e,t){if(x!==e)return j(8,{from:t,to:e})}function N(e){return z(e)}function B(e){return N(s(R(e),{replace:!0}))}function F(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:n}=t;let i="function"===typeof n?n(e):n;return"string"===typeof i&&(i=i.includes("?")||i.includes("#")?i=R(i):{path:i},i.params={}),s({query:e.query,hash:e.hash,params:"path"in i?{}:e.params},i)}}function z(e,t){const n=x=L(e),i=m.value,r=e.state,o=e.force,l=!0===e.replace,u=F(n);if(u)return z(s(R(u),{state:r,force:o,replace:l}),t||n);const c=n;let h;return c.redirectedFrom=t,!o&&v(a,i,n)&&(h=j(16,{to:c,from:i}),ne(i,i,!0,!1)),(h?Promise.resolve(h):H(c,i)).catch((e=>Z(e)?Z(e,2)?e:te(e):Q(e,c,i))).then((e=>{if(e){if(Z(e,2))return z(s({replace:l},R(e.to),{state:r,force:o}),t||c)}else e=U(c,i,!0,l,r);return W(c,i,e),e}))}function V(e,t){const n=E(e,t);return n?Promise.reject(n):Promise.resolve()}function H(e,t){let n;const[i,r,o]=rt(e,t);n=We(i.reverse(),"beforeRouteLeave",e,t);for(const s of i)s.leaveGuards.forEach((i=>{n.push(Ge(i,e,t))}));const a=V.bind(null,e,t);return n.push(a),it(n).then((()=>{n=[];for(const i of d.list())n.push(Ge(i,e,t));return n.push(a),it(n)})).then((()=>{n=We(r,"beforeRouteUpdate",e,t);for(const i of r)i.updateGuards.forEach((i=>{n.push(Ge(i,e,t))}));return n.push(a),it(n)})).then((()=>{n=[];for(const i of e.matched)if(i.beforeEnter&&!t.matched.includes(i))if(c(i.beforeEnter))for(const r of i.beforeEnter)n.push(Ge(r,e,t));else n.push(Ge(i.beforeEnter,e,t));return n.push(a),it(n)})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),n=We(o,"beforeRouteEnter",e,t),n.push(a),it(n)))).then((()=>{n=[];for(const i of g.list())n.push(Ge(i,e,t));return n.push(a),it(n)})).catch((e=>Z(e,8)?e:Promise.reject(e)))}function W(e,t,n){for(const i of y.list())i(e,t,n)}function U(e,t,n,i,r){const a=E(e,t);if(a)return a;const l=t===G,u=o?history.state:{};n&&(i||l?h.replace(e.fullPath,s({scroll:l&&u&&u.scroll},r)):h.push(e.fullPath,r)),m.value=e,ne(e,t,n,l),te()}let Y;function $(){Y||(Y=h.listen(((e,t,n)=>{if(!se.listening)return;const i=L(e),r=F(i);if(r)return void z(s(r,{replace:!0}),i).catch(u);x=i;const a=m.value;o&&P(D(a.fullPath,n.delta),k()),H(i,a).catch((e=>Z(e,12)?e:Z(e,2)?(z(e.to,i).then((e=>{Z(e,20)&&!n.delta&&n.type===w.pop&&h.go(-1,!1)})).catch(u),Promise.reject()):(n.delta&&h.go(-n.delta,!1),Q(e,i,a)))).then((e=>{e=e||U(i,a,!1),e&&(n.delta&&!Z(e,8)?h.go(-n.delta,!1):n.type===w.pop&&Z(e,20)&&h.go(-1,!1)),W(i,a,e)})).catch(u)})))}let X,K=qe(),J=qe();function Q(e,t,n){te(e);const i=J.list();return i.length?i.forEach((i=>i(e,t,n))):console.error(e),Promise.reject(e)}function ee(){return X&&m.value!==G?Promise.resolve():new Promise(((e,t)=>{K.add([e,t])}))}function te(e){return X||(X=!e,$(),K.list().forEach((([t,n])=>e?n(e):t())),K.reset()),e}function ne(t,n,r,a){const{scrollBehavior:s}=e;if(!o||!s)return Promise.resolve();const l=!r&&O(D(t.fullPath,0))||(a||!r)&&history.state&&history.state.scroll||null;return(0,i.Y3)().then((()=>s(t,n,l))).then((e=>e&&A(e))).catch((e=>Q(e,t,n)))}const ie=e=>h.go(e);let re;const ae=new Set,se={currentRoute:m,listening:!0,addRoute:M,removeRoute:C,hasRoute:T,getRoutes:I,resolve:L,options:e,push:N,replace:B,go:ie,back:()=>ie(-1),forward:()=>ie(1),beforeEach:d.add,beforeResolve:g.add,afterEach:y.add,onError:J.add,isReady:ee,install(e){const t=this;e.component("RouterLink",Ye),e.component("RouterView",tt),e.config.globalProperties.$router=t,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>(0,r.SU)(m)}),o&&!re&&m.value===G&&(re=!0,N(h.location).catch((e=>{0})));const n={};for(const r in G)n[r]=(0,i.Fl)((()=>m.value[r]));e.provide(ze,t),e.provide(Ve,(0,r.qj)(n)),e.provide(He,m);const a=e.unmount;ae.add(e),e.unmount=function(){ae.delete(e),ae.size<1&&(x=G,Y&&Y(),Y=null,m.value=G,re=!1,X=!1),a()}}};return se}function it(e){return e.reduce(((e,t)=>e.then((()=>t()))),Promise.resolve())}function rt(e,t){const n=[],i=[],r=[],o=Math.max(t.matched.length,e.matched.length);for(let a=0;ay(e,o)))?i.push(o):n.push(o));const s=e.matched[a];s&&(t.matched.find((e=>y(e,s)))||r.push(s))}return[n,i,r]}}}]); \ No newline at end of file diff --git a/Server/templates/js/vendor.68a7f1bc.js.gz b/Server/templates/js/vendor.68a7f1bc.js.gz deleted file mode 100644 index 28d86e6..0000000 Binary files a/Server/templates/js/vendor.68a7f1bc.js.gz and /dev/null differ diff --git a/Server/templates/js/vendor.ee689f15.js b/Server/templates/js/vendor.ee689f15.js new file mode 100644 index 0000000..6d30d01 --- /dev/null +++ b/Server/templates/js/vendor.ee689f15.js @@ -0,0 +1,32 @@ +(globalThis["webpackChunksyseye"]=globalThis["webpackChunksyseye"]||[]).push([[736],{7518:e=>{e.exports=function(e,t,n){const i=void 0!==e.__vccOpts?e.__vccOpts:e,r=i[t];if(void 0===r)i[t]=n;else for(const o in n)void 0===r[o]&&(r[o]=n[o])}},1959:(e,t,n)=>{"use strict";n.d(t,{Bj:()=>o,Fl:()=>We,IU:()=>ke,Jd:()=>S,PG:()=>Me,SU:()=>Ve,Um:()=>be,WL:()=>qe,X$:()=>T,X3:()=>Te,XI:()=>Ne,Xl:()=>Ae,dq:()=>Re,iH:()=>Ee,j:()=>C,lk:()=>M,qj:()=>_e,qq:()=>x,yT:()=>Ie});var i=n(2323);let r;class o{constructor(e=!1){this.active=!0,this.effects=[],this.cleanups=[],!e&&r&&(this.parent=r,this.index=(r.scopes||(r.scopes=[])).push(this)-1)}run(e){if(this.active){const t=r;try{return r=this,e()}finally{r=t}}else 0}on(){r=this}off(){r=this.parent}stop(e){if(this.active){let t,n;for(t=0,n=this.effects.length;t{const t=new Set(e);return t.w=0,t.n=0,t},l=e=>(e.w&f)>0,u=e=>(e.n&f)>0,c=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let i=0;i{("length"===t||t>=r)&&u.push(e)}));else switch(void 0!==n&&u.push(l.get(n)),t){case"add":(0,i.kJ)(e)?(0,i.S0)(n)&&u.push(l.get("length")):(u.push(l.get(m)),(0,i._N)(e)&&u.push(l.get(y)));break;case"delete":(0,i.kJ)(e)||(u.push(l.get(m)),(0,i._N)(e)&&u.push(l.get(y)));break;case"set":(0,i._N)(e)&&u.push(l.get(m));break}if(1===u.length)u[0]&&k(u[0]);else{const e=[];for(const t of u)t&&e.push(...t);k(s(e))}}function k(e,t){const n=(0,i.kJ)(e)?e:[...e];for(const i of n)i.computed&&A(i,t);for(const i of n)i.computed||A(i,t)}function A(e,t){(e!==v||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const D=(0,i.fY)("__proto__,__v_isRef,__isVue"),L=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(i.yk)),P=F(),O=F(!1,!0),R=F(!0),E=N();function N(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=ke(this);for(let t=0,r=this.length;t{e[t]=function(...e){S();const n=ke(this)[t].apply(this,e);return M(),n}})),e}function F(e=!1,t=!1){return function(n,r,o){if("__v_isReactive"===r)return!e;if("__v_isReadonly"===r)return e;if("__v_isShallow"===r)return t;if("__v_raw"===r&&o===(e?t?me:ve:t?ge:fe).get(n))return n;const a=(0,i.kJ)(n);if(!e&&a&&(0,i.RI)(E,r))return Reflect.get(E,r,o);const s=Reflect.get(n,r,o);return((0,i.yk)(r)?L.has(r):D(r))?s:(e||C(n,"get",r),t?s:Re(s)?a&&(0,i.S0)(r)?s:s.value:(0,i.Kn)(s)?e?we(s):_e(s):s)}}const B=z(),V=z(!0);function z(e=!1){return function(t,n,r,o){let a=t[n];if(Ce(a)&&Re(a)&&!Re(r))return!1;if(!e&&!Ce(r)&&(Ie(r)||(r=ke(r),a=ke(a)),!(0,i.kJ)(t)&&Re(a)&&!Re(r)))return a.value=r,!0;const s=(0,i.kJ)(t)&&(0,i.S0)(n)?Number(n)e,$=e=>Reflect.getPrototypeOf(e);function Y(e,t,n=!1,i=!1){e=e["__v_raw"];const r=ke(e),o=ke(t);n||(t!==o&&C(r,"get",t),C(r,"get",o));const{has:a}=$(r),s=i?Z:n?Le:De;return a.call(r,t)?s(e.get(t)):a.call(r,o)?s(e.get(o)):void(e!==r&&e.get(t))}function X(e,t=!1){const n=this["__v_raw"],i=ke(n),r=ke(e);return t||(e!==r&&C(i,"has",e),C(i,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function K(e,t=!1){return e=e["__v_raw"],!t&&C(ke(e),"iterate",m),Reflect.get(e,"size",e)}function J(e){e=ke(e);const t=ke(this),n=$(t),i=n.has.call(t,e);return i||(t.add(e),T(t,"add",e,e)),this}function Q(e,t){t=ke(t);const n=ke(this),{has:r,get:o}=$(n);let a=r.call(n,e);a||(e=ke(e),a=r.call(n,e));const s=o.call(n,e);return n.set(e,t),a?(0,i.aU)(t,s)&&T(n,"set",e,t,s):T(n,"add",e,t),this}function ee(e){const t=ke(this),{has:n,get:i}=$(t);let r=n.call(t,e);r||(e=ke(e),r=n.call(t,e));const o=i?i.call(t,e):void 0,a=t.delete(e);return r&&T(t,"delete",e,void 0,o),a}function te(){const e=ke(this),t=0!==e.size,n=void 0,i=e.clear();return t&&T(e,"clear",void 0,void 0,n),i}function ne(e,t){return function(n,i){const r=this,o=r["__v_raw"],a=ke(o),s=t?Z:e?Le:De;return!e&&C(a,"iterate",m),o.forEach(((e,t)=>n.call(i,s(e),s(t),r)))}}function ie(e,t,n){return function(...r){const o=this["__v_raw"],a=ke(o),s=(0,i._N)(a),l="entries"===e||e===Symbol.iterator&&s,u="keys"===e&&s,c=o[e](...r),d=n?Z:t?Le:De;return!t&&C(a,"iterate",u?y:m),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:l?[d(e[0]),d(e[1])]:d(e),done:t}},[Symbol.iterator](){return this}}}}function re(e){return function(...t){return"delete"!==e&&this}}function oe(){const e={get(e){return Y(this,e)},get size(){return K(this)},has:X,add:J,set:Q,delete:ee,clear:te,forEach:ne(!1,!1)},t={get(e){return Y(this,e,!1,!0)},get size(){return K(this)},has:X,add:J,set:Q,delete:ee,clear:te,forEach:ne(!1,!0)},n={get(e){return Y(this,e,!0)},get size(){return K(this,!0)},has(e){return X.call(this,e,!0)},add:re("add"),set:re("set"),delete:re("delete"),clear:re("clear"),forEach:ne(!0,!1)},i={get(e){return Y(this,e,!0,!0)},get size(){return K(this,!0)},has(e){return X.call(this,e,!0)},add:re("add"),set:re("set"),delete:re("delete"),clear:re("clear"),forEach:ne(!0,!0)},r=["keys","values","entries",Symbol.iterator];return r.forEach((r=>{e[r]=ie(r,!1,!1),n[r]=ie(r,!0,!1),t[r]=ie(r,!1,!0),i[r]=ie(r,!0,!0)})),[e,n,t,i]}const[ae,se,le,ue]=oe();function ce(e,t){const n=t?e?ue:le:e?se:ae;return(t,r,o)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get((0,i.RI)(n,r)&&r in t?n:t,r,o)}const de={get:ce(!1,!1)},he={get:ce(!1,!0)},pe={get:ce(!0,!1)};const fe=new WeakMap,ge=new WeakMap,ve=new WeakMap,me=new WeakMap;function ye(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function xe(e){return e["__v_skip"]||!Object.isExtensible(e)?0:ye((0,i.W7)(e))}function _e(e){return Ce(e)?e:Se(e,!1,G,de,fe)}function be(e){return Se(e,!1,j,he,ge)}function we(e){return Se(e,!0,U,pe,ve)}function Se(e,t,n,r,o){if(!(0,i.Kn)(e))return e;if(e["__v_raw"]&&(!t||!e["__v_isReactive"]))return e;const a=o.get(e);if(a)return a;const s=xe(e);if(0===s)return e;const l=new Proxy(e,2===s?r:n);return o.set(e,l),l}function Me(e){return Ce(e)?Me(e["__v_raw"]):!(!e||!e["__v_isReactive"])}function Ce(e){return!(!e||!e["__v_isReadonly"])}function Ie(e){return!(!e||!e["__v_isShallow"])}function Te(e){return Me(e)||Ce(e)}function ke(e){const t=e&&e["__v_raw"];return t?ke(t):e}function Ae(e){return(0,i.Nj)(e,"__v_skip",!0),e}const De=e=>(0,i.Kn)(e)?_e(e):e,Le=e=>(0,i.Kn)(e)?we(e):e;function Pe(e){b&&v&&(e=ke(e),I(e.dep||(e.dep=s())))}function Oe(e,t){e=ke(e),e.dep&&k(e.dep)}function Re(e){return!(!e||!0!==e.__v_isRef)}function Ee(e){return Fe(e,!1)}function Ne(e){return Fe(e,!0)}function Fe(e,t){return Re(e)?e:new Be(e,t)}class Be{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:ke(e),this._value=t?e:De(e)}get value(){return Pe(this),this._value}set value(e){e=this.__v_isShallow?e:ke(e),(0,i.aU)(e,this._rawValue)&&(this._rawValue=e,this._value=this.__v_isShallow?e:De(e),Oe(this,e))}}function Ve(e){return Re(e)?e.value:e}const ze={get:(e,t,n)=>Ve(Reflect.get(e,t,n)),set:(e,t,n,i)=>{const r=e[t];return Re(r)&&!Re(n)?(r.value=n,!0):Reflect.set(e,t,n,i)}};function qe(e){return Me(e)?e:new Proxy(e,ze)}class He{constructor(e,t,n,i){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new x(e,(()=>{this._dirty||(this._dirty=!0,Oe(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!i,this["__v_isReadonly"]=n}get value(){const e=ke(this);return Pe(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function We(e,t,n=!1){let r,o;const a=(0,i.mf)(e);a?(r=e,o=i.dG):(r=e.get,o=e.set);const s=new He(r,o,a||!o,n);return s}},3673:(e,t,n)=>{"use strict";n.d(t,{$d:()=>a,Ah:()=>Pe,FN:()=>In,Fl:()=>Hn,HY:()=>Ut,JJ:()=>Y,Jd:()=>Le,Ko:()=>je,Ob:()=>me,P$:()=>ae,Q2:()=>We,Q6:()=>he,U2:()=>le,Uk:()=>gn,Us:()=>Pt,Wm:()=>dn,Xn:()=>Ae,Y3:()=>w,Y8:()=>ie,YP:()=>J,_:()=>cn,aZ:()=>pe,bv:()=>ke,dl:()=>xe,f3:()=>X,h:()=>Wn,iD:()=>nn,ic:()=>De,j4:()=>rn,kq:()=>vn,lR:()=>Gt,nK:()=>de,se:()=>_e,up:()=>qe,w5:()=>z,wF:()=>Te,wg:()=>Kt,wy:()=>Fe});var i=n(1959),r=n(2323);function o(e,t,n,i){let r;try{r=i?e(...i):e()}catch(o){s(o,t,n)}return r}function a(e,t,n,i){if((0,r.mf)(e)){const a=o(e,t,n,i);return a&&(0,r.tI)(a)&&a.catch((e=>{s(e,t,n)})),a}const l=[];for(let r=0;r>>1,r=P(d[i]);rh&&d.splice(t,1)}function T(e,t,n,i){(0,r.kJ)(e)?n.push(...e):t&&t.includes(e,e.allowRecurse?i+1:i)||n.push(e),C()}function k(e){T(e,f,p,g)}function A(e){T(e,m,v,y)}function D(e,t=null){if(p.length){for(b=t,f=[...new Set(p)],p.length=0,g=0;gP(e)-P(t))),y=0;ynull==e.id?1/0:e.id;function O(e){c=!1,u=!0,D(e),d.sort(((e,t)=>P(e)-P(t)));r.dG;try{for(h=0;he.trim()))),t&&(o=n.map(r.He))}let u;let c=i[u=(0,r.hR)(t)]||i[u=(0,r.hR)((0,r._A)(t))];!c&&s&&(c=i[u=(0,r.hR)((0,r.rs)(t))]),c&&a(c,e,6,o);const d=i[u+"Once"];if(d){if(e.emitted){if(e.emitted[u])return}else e.emitted={};e.emitted[u]=!0,a(d,e,6,o)}}function E(e,t,n=!1){const i=t.emitsCache,o=i.get(e);if(void 0!==o)return o;const a=e.emits;let s={},l=!1;if(!(0,r.mf)(e)){const i=e=>{const n=E(e,t,!0);n&&(l=!0,(0,r.l7)(s,n))};!n&&t.mixins.length&&t.mixins.forEach(i),e.extends&&i(e.extends),e.mixins&&e.mixins.forEach(i)}return a||l?((0,r.kJ)(a)?a.forEach((e=>s[e]=null)):(0,r.l7)(s,a),i.set(e,s),s):(i.set(e,null),null)}function N(e,t){return!(!e||!(0,r.F7)(t))&&(t=t.slice(2).replace(/Once$/,""),(0,r.RI)(e,t[0].toLowerCase()+t.slice(1))||(0,r.RI)(e,(0,r.rs)(t))||(0,r.RI)(e,t))}let F=null,B=null;function V(e){const t=F;return F=e,B=e&&e.type.__scopeId||null,t}function z(e,t=F,n){if(!t)return e;if(e._n)return e;const i=(...n)=>{i._d&&en(-1);const r=V(t),o=e(...n);return V(r),i._d&&en(1),o};return i._n=!0,i._c=!0,i._d=!0,i}function q(e){const{type:t,vnode:n,proxy:i,withProxy:o,props:a,propsOptions:[l],slots:u,attrs:c,emit:d,render:h,renderCache:p,data:f,setupState:g,ctx:v,inheritAttrs:m}=e;let y,x;const _=V(e);try{if(4&n.shapeFlag){const e=o||i;y=mn(h.call(e,e,p,a,g,f,v)),x=c}else{const e=t;0,y=mn(e.length>1?e(a,{attrs:c,slots:u,emit:d}):e(a,null)),x=t.props?c:H(c)}}catch(w){Yt.length=0,s(w,e,1),y=dn(Zt)}let b=y;if(x&&!1!==m){const e=Object.keys(x),{shapeFlag:t}=b;e.length&&7&t&&(l&&e.some(r.tR)&&(x=W(x,l)),b=fn(b,x))}return n.dirs&&(b=fn(b),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&(b.transition=n.transition),y=b,V(_),y}const H=e=>{let t;for(const n in e)("class"===n||"style"===n||(0,r.F7)(n))&&((t||(t={}))[n]=e[n]);return t},W=(e,t)=>{const n={};for(const i in e)(0,r.tR)(i)&&i.slice(9)in t||(n[i]=e[i]);return n};function G(e,t,n){const{props:i,children:r,component:o}=e,{props:a,children:s,patchFlag:l}=t,u=o.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&l>=0))return!(!r&&!s||s&&s.$stable)||i!==a&&(i?!a||U(i,a,u):!!a);if(1024&l)return!0;if(16&l)return i?U(i,a,u):!!a;if(8&l){const e=t.dynamicProps;for(let t=0;te.__isSuspense;function $(e,t){t&&t.pendingBranch?(0,r.kJ)(e)?t.effects.push(...e):t.effects.push(e):A(e)}function Y(e,t){if(Cn){let n=Cn.provides;const i=Cn.parent&&Cn.parent.provides;i===n&&(n=Cn.provides=Object.create(i)),n[e]=t}else 0}function X(e,t,n=!1){const i=Cn||F;if(i){const o=null==i.parent?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&(0,r.mf)(t)?t.call(i.proxy):t}else 0}const K={};function J(e,t,n){return Q(e,t,n)}function Q(e,t,{immediate:n,deep:s,flush:l,onTrack:u,onTrigger:c}=r.kT){const d=Cn;let h,p,f=!1,g=!1;if((0,i.dq)(e)?(h=()=>e.value,f=(0,i.yT)(e)):(0,i.PG)(e)?(h=()=>e,s=!0):(0,r.kJ)(e)?(g=!0,f=e.some((e=>(0,i.PG)(e)||(0,i.yT)(e))),h=()=>e.map((e=>(0,i.dq)(e)?e.value:(0,i.PG)(e)?ne(e):(0,r.mf)(e)?o(e,d,2):void 0))):h=(0,r.mf)(e)?t?()=>o(e,d,2):()=>{if(!d||!d.isUnmounted)return p&&p(),a(e,d,3,[v])}:r.dG,t&&s){const e=h;h=()=>ne(e())}let v=e=>{p=_.onStop=()=>{o(e,d,4)}};if(Pn)return v=r.dG,t?n&&a(t,d,3,[h(),g?[]:void 0,v]):h(),r.dG;let m=g?[]:K;const y=()=>{if(_.active)if(t){const e=_.run();(s||f||(g?e.some(((e,t)=>(0,r.aU)(e,m[t]))):(0,r.aU)(e,m)))&&(p&&p(),a(t,d,3,[e,m===K?void 0:m,v]),m=e)}else _.run()};let x;y.allowRecurse=!!t,x="sync"===l?y:"post"===l?()=>Lt(y,d&&d.suspense):()=>k(y);const _=new i.qq(h,x);return t?n?y():m=_.run():"post"===l?Lt(_.run.bind(_),d&&d.suspense):_.run(),()=>{_.stop(),d&&d.scope&&(0,r.Od)(d.scope.effects,_)}}function ee(e,t,n){const i=this.proxy,o=(0,r.HD)(e)?e.includes(".")?te(i,e):()=>i[e]:e.bind(i,i);let a;(0,r.mf)(t)?a=t:(a=t.handler,n=t);const s=Cn;Tn(this);const l=Q(o,a.bind(i),n);return s?Tn(s):kn(),l}function te(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e{ne(e,t)}));else if((0,r.PO)(e))for(const n in e)ne(e[n],t);return e}function ie(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return ke((()=>{e.isMounted=!0})),Le((()=>{e.isUnmounting=!0})),e}const re=[Function,Array],oe={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:re,onEnter:re,onAfterEnter:re,onEnterCancelled:re,onBeforeLeave:re,onLeave:re,onAfterLeave:re,onLeaveCancelled:re,onBeforeAppear:re,onAppear:re,onAfterAppear:re,onAppearCancelled:re},setup(e,{slots:t}){const n=In(),r=ie();let o;return()=>{const a=t.default&&he(t.default(),!0);if(!a||!a.length)return;let s=a[0];if(a.length>1){let e=!1;for(const t of a)if(t.type!==Zt){0,s=t,e=!0;break}}const l=(0,i.IU)(e),{mode:u}=l;if(r.isLeaving)return ue(s);const c=ce(s);if(!c)return ue(s);const d=le(c,l,r,n);de(c,d);const h=n.subTree,p=h&&ce(h);let f=!1;const{getTransitionKey:g}=c.type;if(g){const e=g();void 0===o?o=e:e!==o&&(o=e,f=!0)}if(p&&p.type!==Zt&&(!an(c,p)||f)){const e=le(p,l,r,n);if(de(p,e),"out-in"===u)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,n.update()},ue(s);"in-out"===u&&c.type!==Zt&&(e.delayLeave=(e,t,n)=>{const i=se(r,p);i[String(p.key)]=p,e._leaveCb=()=>{t(),e._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=n})}return s}}},ae=oe;function se(e,t){const{leavingVNodes:n}=e;let i=n.get(t.type);return i||(i=Object.create(null),n.set(t.type,i)),i}function le(e,t,n,i){const{appear:o,mode:s,persisted:l=!1,onBeforeEnter:u,onEnter:c,onAfterEnter:d,onEnterCancelled:h,onBeforeLeave:p,onLeave:f,onAfterLeave:g,onLeaveCancelled:v,onBeforeAppear:m,onAppear:y,onAfterAppear:x,onAppearCancelled:_}=t,b=String(e.key),w=se(n,e),S=(e,t)=>{e&&a(e,i,9,t)},M=(e,t)=>{const n=t[1];S(e,t),(0,r.kJ)(e)?e.every((e=>e.length<=1))&&n():e.length<=1&&n()},C={mode:s,persisted:l,beforeEnter(t){let i=u;if(!n.isMounted){if(!o)return;i=m||u}t._leaveCb&&t._leaveCb(!0);const r=w[b];r&&an(e,r)&&r.el._leaveCb&&r.el._leaveCb(),S(i,[t])},enter(e){let t=c,i=d,r=h;if(!n.isMounted){if(!o)return;t=y||c,i=x||d,r=_||h}let a=!1;const s=e._enterCb=t=>{a||(a=!0,S(t?r:i,[e]),C.delayedLeave&&C.delayedLeave(),e._enterCb=void 0)};t?M(t,[e,s]):s()},leave(t,i){const r=String(e.key);if(t._enterCb&&t._enterCb(!0),n.isUnmounting)return i();S(p,[t]);let o=!1;const a=t._leaveCb=n=>{o||(o=!0,i(),S(n?v:g,[t]),t._leaveCb=void 0,w[r]===e&&delete w[r])};w[r]=e,f?M(f,[t,a]):a()},clone(e){return le(e,t,n,i)}};return C}function ue(e){if(ge(e))return e=fn(e),e.children=null,e}function ce(e){return ge(e)?e.children?e.children[0]:void 0:e}function de(e,t){6&e.shapeFlag&&e.component?de(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function he(e,t=!1,n){let i=[],r=0;for(let o=0;o1)for(let o=0;o!!e.type.__asyncLoader;const ge=e=>e.type.__isKeepAlive,ve={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=In(),i=n.ctx;if(!i.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const o=new Map,a=new Set;let s=null;const l=n.suspense,{renderer:{p:u,m:c,um:d,o:{createElement:h}}}=i,p=h("div");function f(e){Se(e),d(e,n,l,!0)}function g(e){o.forEach(((t,n)=>{const i=zn(t.type);!i||e&&e(i)||v(n)}))}function v(e){const t=o.get(e);s&&t.type===s.type?s&&Se(s):f(t),o.delete(e),a.delete(e)}i.activate=(e,t,n,i,o)=>{const a=e.component;c(e,t,n,0,l),u(a.vnode,e,t,n,a,l,i,e.slotScopeIds,o),Lt((()=>{a.isDeactivated=!1,a.a&&(0,r.ir)(a.a);const t=e.props&&e.props.onVnodeMounted;t&&bn(t,a.parent,e)}),l)},i.deactivate=e=>{const t=e.component;c(e,p,null,1,l),Lt((()=>{t.da&&(0,r.ir)(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&bn(n,t.parent,e),t.isDeactivated=!0}),l)},J((()=>[e.include,e.exclude]),(([e,t])=>{e&&g((t=>ye(e,t))),t&&g((e=>!ye(t,e)))}),{flush:"post",deep:!0});let m=null;const y=()=>{null!=m&&o.set(m,Me(n.subTree))};return ke(y),De(y),Le((()=>{o.forEach((e=>{const{subTree:t,suspense:i}=n,r=Me(t);if(e.type!==r.type)f(e);else{Se(r);const e=r.component.da;e&&Lt(e,i)}}))})),()=>{if(m=null,!t.default)return null;const n=t.default(),i=n[0];if(n.length>1)return s=null,n;if(!on(i)||!(4&i.shapeFlag)&&!(128&i.shapeFlag))return s=null,i;let r=Me(i);const l=r.type,u=zn(fe(r)?r.type.__asyncResolved||{}:l),{include:c,exclude:d,max:h}=e;if(c&&(!u||!ye(c,u))||d&&u&&ye(d,u))return s=r,i;const p=null==r.key?l:r.key,f=o.get(p);return r.el&&(r=fn(r),128&i.shapeFlag&&(i.ssContent=r)),m=p,f?(r.el=f.el,r.component=f.component,r.transition&&de(r,r.transition),r.shapeFlag|=512,a.delete(p),a.add(p)):(a.add(p),h&&a.size>parseInt(h,10)&&v(a.values().next().value)),r.shapeFlag|=256,s=r,Z(i.type)?i:r}}},me=ve;function ye(e,t){return(0,r.kJ)(e)?e.some((e=>ye(e,t))):(0,r.HD)(e)?e.split(",").includes(t):!!e.test&&e.test(t)}function xe(e,t){be(e,"a",t)}function _e(e,t){be(e,"da",t)}function be(e,t,n=Cn){const i=e.__wdc||(e.__wdc=()=>{let t=n;while(t){if(t.isDeactivated)return;t=t.parent}return e()});if(Ce(t,i,n),n){let e=n.parent;while(e&&e.parent)ge(e.parent.vnode)&&we(i,t,n,e),e=e.parent}}function we(e,t,n,i){const o=Ce(t,e,i,!0);Pe((()=>{(0,r.Od)(i[t],o)}),n)}function Se(e){let t=e.shapeFlag;256&t&&(t-=256),512&t&&(t-=512),e.shapeFlag=t}function Me(e){return 128&e.shapeFlag?e.ssContent:e}function Ce(e,t,n=Cn,r=!1){if(n){const o=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...r)=>{if(n.isUnmounted)return;(0,i.Jd)(),Tn(n);const o=a(t,n,e,r);return kn(),(0,i.lk)(),o});return r?o.unshift(s):o.push(s),s}}const Ie=e=>(t,n=Cn)=>(!Pn||"sp"===e)&&Ce(e,t,n),Te=Ie("bm"),ke=Ie("m"),Ae=Ie("bu"),De=Ie("u"),Le=Ie("bum"),Pe=Ie("um"),Oe=Ie("sp"),Re=Ie("rtg"),Ee=Ie("rtc");function Ne(e,t=Cn){Ce("ec",e,t)}function Fe(e,t){const n=F;if(null===n)return e;const i=Vn(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let a=0;at(e,n,void 0,a&&a[n])));else{const n=Object.keys(e);o=new Array(n.length);for(let i=0,r=n.length;ie?An(e)?Vn(e)||e.proxy:Ze(e.parent):null,$e=(0,r.l7)(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Ze(e.parent),$root:e=>Ze(e.root),$emit:e=>e.emit,$options:e=>tt(e),$forceUpdate:e=>e.f||(e.f=()=>M(e.update)),$nextTick:e=>e.n||(e.n=w.bind(e.proxy)),$watch:e=>ee.bind(e)}),Ye={get({_:e},t){const{ctx:n,setupState:o,data:a,props:s,accessCache:l,type:u,appContext:c}=e;let d;if("$"!==t[0]){const i=l[t];if(void 0!==i)switch(i){case 1:return o[t];case 2:return a[t];case 4:return n[t];case 3:return s[t]}else{if(o!==r.kT&&(0,r.RI)(o,t))return l[t]=1,o[t];if(a!==r.kT&&(0,r.RI)(a,t))return l[t]=2,a[t];if((d=e.propsOptions[0])&&(0,r.RI)(d,t))return l[t]=3,s[t];if(n!==r.kT&&(0,r.RI)(n,t))return l[t]=4,n[t];Xe&&(l[t]=0)}}const h=$e[t];let p,f;return h?("$attrs"===t&&(0,i.j)(e,"get",t),h(e)):(p=u.__cssModules)&&(p=p[t])?p:n!==r.kT&&(0,r.RI)(n,t)?(l[t]=4,n[t]):(f=c.config.globalProperties,(0,r.RI)(f,t)?f[t]:void 0)},set({_:e},t,n){const{data:i,setupState:o,ctx:a}=e;return o!==r.kT&&(0,r.RI)(o,t)?(o[t]=n,!0):i!==r.kT&&(0,r.RI)(i,t)?(i[t]=n,!0):!(0,r.RI)(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(a[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:o,propsOptions:a}},s){let l;return!!n[s]||e!==r.kT&&(0,r.RI)(e,s)||t!==r.kT&&(0,r.RI)(t,s)||(l=a[0])&&(0,r.RI)(l,s)||(0,r.RI)(i,s)||(0,r.RI)($e,s)||(0,r.RI)(o.config.globalProperties,s)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:(0,r.RI)(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let Xe=!0;function Ke(e){const t=tt(e),n=e.proxy,o=e.ctx;Xe=!1,t.beforeCreate&&Qe(t.beforeCreate,e,"bc");const{data:a,computed:s,methods:l,watch:u,provide:c,inject:d,created:h,beforeMount:p,mounted:f,beforeUpdate:g,updated:v,activated:m,deactivated:y,beforeDestroy:x,beforeUnmount:_,destroyed:b,unmounted:w,render:S,renderTracked:M,renderTriggered:C,errorCaptured:I,serverPrefetch:T,expose:k,inheritAttrs:A,components:D,directives:L,filters:P}=t,O=null;if(d&&Je(d,o,O,e.appContext.config.unwrapInjectedRef),l)for(const i in l){const e=l[i];(0,r.mf)(e)&&(o[i]=e.bind(n))}if(a){0;const t=a.call(n,n);0,(0,r.Kn)(t)&&(e.data=(0,i.qj)(t))}if(Xe=!0,s)for(const i in s){const e=s[i],t=(0,r.mf)(e)?e.bind(n,n):(0,r.mf)(e.get)?e.get.bind(n,n):r.dG;0;const a=!(0,r.mf)(e)&&(0,r.mf)(e.set)?e.set.bind(n):r.dG,l=Hn({get:t,set:a});Object.defineProperty(o,i,{enumerable:!0,configurable:!0,get:()=>l.value,set:e=>l.value=e})}if(u)for(const i in u)et(u[i],o,n,i);if(c){const e=(0,r.mf)(c)?c.call(n):c;Reflect.ownKeys(e).forEach((t=>{Y(t,e[t])}))}function R(e,t){(0,r.kJ)(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(h&&Qe(h,e,"c"),R(Te,p),R(ke,f),R(Ae,g),R(De,v),R(xe,m),R(_e,y),R(Ne,I),R(Ee,M),R(Re,C),R(Le,_),R(Pe,w),R(Oe,T),(0,r.kJ)(k))if(k.length){const t=e.exposed||(e.exposed={});k.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});S&&e.render===r.dG&&(e.render=S),null!=A&&(e.inheritAttrs=A),D&&(e.components=D),L&&(e.directives=L)}function Je(e,t,n=r.dG,o=!1){(0,r.kJ)(e)&&(e=at(e));for(const a in e){const n=e[a];let s;s=(0,r.Kn)(n)?"default"in n?X(n.from||a,n.default,!0):X(n.from||a):X(n),(0,i.dq)(s)&&o?Object.defineProperty(t,a,{enumerable:!0,configurable:!0,get:()=>s.value,set:e=>s.value=e}):t[a]=s}}function Qe(e,t,n){a((0,r.kJ)(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function et(e,t,n,i){const o=i.includes(".")?te(n,i):()=>n[i];if((0,r.HD)(e)){const n=t[e];(0,r.mf)(n)&&J(o,n)}else if((0,r.mf)(e))J(o,e.bind(n));else if((0,r.Kn)(e))if((0,r.kJ)(e))e.forEach((e=>et(e,t,n,i)));else{const i=(0,r.mf)(e.handler)?e.handler.bind(n):t[e.handler];(0,r.mf)(i)&&J(o,i,e)}else 0}function tt(e){const t=e.type,{mixins:n,extends:i}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:a}}=e.appContext,s=o.get(t);let l;return s?l=s:r.length||n||i?(l={},r.length&&r.forEach((e=>nt(l,e,a,!0))),nt(l,t,a)):l=t,o.set(t,l),l}function nt(e,t,n,i=!1){const{mixins:r,extends:o}=t;o&&nt(e,o,n,!0),r&&r.forEach((t=>nt(e,t,n,!0)));for(const a in t)if(i&&"expose"===a);else{const i=it[a]||n&&n[a];e[a]=i?i(e[a],t[a]):t[a]}return e}const it={data:rt,props:lt,emits:lt,methods:lt,computed:lt,beforeCreate:st,created:st,beforeMount:st,mounted:st,beforeUpdate:st,updated:st,beforeDestroy:st,beforeUnmount:st,destroyed:st,unmounted:st,activated:st,deactivated:st,errorCaptured:st,serverPrefetch:st,components:lt,directives:lt,watch:ut,provide:rt,inject:ot};function rt(e,t){return t?e?function(){return(0,r.l7)((0,r.mf)(e)?e.call(this,this):e,(0,r.mf)(t)?t.call(this,this):t)}:t:e}function ot(e,t){return lt(at(e),at(t))}function at(e){if((0,r.kJ)(e)){const t={};for(let n=0;n0)||16&l){let i;ht(e,t,a,s)&&(d=!0);for(const o in u)t&&((0,r.RI)(t,o)||(i=(0,r.rs)(o))!==o&&(0,r.RI)(t,i))||(c?!n||void 0===n[o]&&void 0===n[i]||(a[o]=pt(c,u,o,void 0,e,!0)):delete a[o]);if(s!==u)for(const e in s)t&&(0,r.RI)(t,e)||(delete s[e],d=!0)}else if(8&l){const n=e.vnode.dynamicProps;for(let i=0;i{u=!0;const[n,i]=ft(e,t,!0);(0,r.l7)(s,n),i&&l.push(...i)};!n&&t.mixins.length&&t.mixins.forEach(i),e.extends&&i(e.extends),e.mixins&&e.mixins.forEach(i)}if(!a&&!u)return i.set(e,r.Z6),r.Z6;if((0,r.kJ)(a))for(let d=0;d-1,i[1]=n<0||e-1||(0,r.RI)(i,"default"))&&l.push(t)}}}}const c=[s,l];return i.set(e,c),c}function gt(e){return"$"!==e[0]}function vt(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:null===e?"null":""}function mt(e,t){return vt(e)===vt(t)}function yt(e,t){return(0,r.kJ)(t)?t.findIndex((t=>mt(t,e))):(0,r.mf)(t)&&mt(t,e)?0:-1}const xt=e=>"_"===e[0]||"$stable"===e,_t=e=>(0,r.kJ)(e)?e.map(mn):[mn(e)],bt=(e,t,n)=>{if(t._n)return t;const i=z(((...e)=>_t(t(...e))),n);return i._c=!1,i},wt=(e,t,n)=>{const i=e._ctx;for(const o in e){if(xt(o))continue;const n=e[o];if((0,r.mf)(n))t[o]=bt(o,n,i);else if(null!=n){0;const e=_t(n);t[o]=()=>e}}},St=(e,t)=>{const n=_t(t);e.slots.default=()=>n},Mt=(e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=(0,i.IU)(t),(0,r.Nj)(t,"_",n)):wt(t,e.slots={})}else e.slots={},t&&St(e,t);(0,r.Nj)(e.slots,sn,1)},Ct=(e,t,n)=>{const{vnode:i,slots:o}=e;let a=!0,s=r.kT;if(32&i.shapeFlag){const e=t._;e?n&&1===e?a=!1:((0,r.l7)(o,t),n||1!==e||delete o._):(a=!t.$stable,wt(t,o)),s=t}else t&&(St(e,t),s={default:1});if(a)for(const r in o)xt(r)||r in s||delete o[r]};function It(){return{app:null,config:{isNativeTag:r.NO,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Tt=0;function kt(e,t){return function(n,i=null){(0,r.mf)(n)||(n=Object.assign({},n)),null==i||(0,r.Kn)(i)||(i=null);const o=It(),a=new Set;let s=!1;const l=o.app={_uid:Tt++,_component:n,_props:i,_container:null,_context:o,_instance:null,version:Gn,get config(){return o.config},set config(e){0},use(e,...t){return a.has(e)||(e&&(0,r.mf)(e.install)?(a.add(e),e.install(l,...t)):(0,r.mf)(e)&&(a.add(e),e(l,...t))),l},mixin(e){return o.mixins.includes(e)||o.mixins.push(e),l},component(e,t){return t?(o.components[e]=t,l):o.components[e]},directive(e,t){return t?(o.directives[e]=t,l):o.directives[e]},mount(r,a,u){if(!s){0;const c=dn(n,i);return c.appContext=o,a&&t?t(c,r):e(c,r,u),s=!0,l._container=r,r.__vue_app__=l,Vn(c.component)||c.component.proxy}},unmount(){s&&(e(null,l._container),delete l._container.__vue_app__)},provide(e,t){return o.provides[e]=t,l}};return l}}function At(e,t,n,a,s=!1){if((0,r.kJ)(e))return void e.forEach(((e,i)=>At(e,t&&((0,r.kJ)(t)?t[i]:t),n,a,s)));if(fe(a)&&!s)return;const l=4&a.shapeFlag?Vn(a.component)||a.component.proxy:a.el,u=s?null:l,{i:c,r:d}=e;const h=t&&t.r,p=c.refs===r.kT?c.refs={}:c.refs,f=c.setupState;if(null!=h&&h!==d&&((0,r.HD)(h)?(p[h]=null,(0,r.RI)(f,h)&&(f[h]=null)):(0,i.dq)(h)&&(h.value=null)),(0,r.mf)(d))o(d,c,12,[u,p]);else{const t=(0,r.HD)(d),o=(0,i.dq)(d);if(t||o){const i=()=>{if(e.f){const n=t?p[d]:d.value;s?(0,r.kJ)(n)&&(0,r.Od)(n,l):(0,r.kJ)(n)?n.includes(l)||n.push(l):t?(p[d]=[l],(0,r.RI)(f,d)&&(f[d]=p[d])):(d.value=[l],e.k&&(p[e.k]=d.value))}else t?(p[d]=u,(0,r.RI)(f,d)&&(f[d]=u)):o&&(d.value=u,e.k&&(p[e.k]=u))};u?(i.id=-1,Lt(i,n)):i()}else 0}}function Dt(){}const Lt=$;function Pt(e){return Ot(e)}function Ot(e,t){Dt();const n=(0,r.E9)();n.__VUE__=!0;const{insert:o,remove:a,patchProp:s,createElement:l,createText:u,createComment:c,setText:d,setElementText:h,parentNode:p,nextSibling:f,setScopeId:g=r.dG,cloneNode:v,insertStaticContent:m}=e,y=(e,t,n,i=null,r=null,o=null,a=!1,s=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!an(e,t)&&(i=Q(e),$(e,r,o,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);const{type:u,ref:c,shapeFlag:d}=t;switch(u){case jt:x(e,t,n,i);break;case Zt:_(e,t,n,i);break;case $t:null==e&&b(t,n,i,a);break;case Ut:E(e,t,n,i,r,o,a,s,l);break;default:1&d?C(e,t,n,i,r,o,a,s,l):6&d?N(e,t,n,i,r,o,a,s,l):(64&d||128&d)&&u.process(e,t,n,i,r,o,a,s,l,te)}null!=c&&r&&At(c,e&&e.ref,o,t||e,!t)},x=(e,t,n,i)=>{if(null==e)o(t.el=u(t.children),n,i);else{const n=t.el=e.el;t.children!==e.children&&d(n,t.children)}},_=(e,t,n,i)=>{null==e?o(t.el=c(t.children||""),n,i):t.el=e.el},b=(e,t,n,i)=>{[e.el,e.anchor]=m(e.children,t,n,i,e.el,e.anchor)},w=({el:e,anchor:t},n,i)=>{let r;while(e&&e!==t)r=f(e),o(e,n,i),e=r;o(t,n,i)},S=({el:e,anchor:t})=>{let n;while(e&&e!==t)n=f(e),a(e),e=n;a(t)},C=(e,t,n,i,r,o,a,s,l)=>{a=a||"svg"===t.type,null==e?T(t,n,i,r,o,a,s,l):P(e,t,r,o,a,s,l)},T=(e,t,n,i,a,u,c,d)=>{let p,f;const{type:g,props:m,shapeFlag:y,transition:x,patchFlag:_,dirs:b}=e;if(e.el&&void 0!==v&&-1===_)p=e.el=v(e.el);else{if(p=e.el=l(e.type,u,m&&m.is,m),8&y?h(p,e.children):16&y&&A(e.children,p,null,i,a,u&&"foreignObject"!==g,c,d),b&&Be(e,null,i,"created"),m){for(const t in m)"value"===t||(0,r.Gg)(t)||s(p,t,null,m[t],u,e.children,i,a,J);"value"in m&&s(p,"value",null,m.value),(f=m.onVnodeBeforeMount)&&bn(f,i,e)}k(p,e,e.scopeId,c,i)}b&&Be(e,null,i,"beforeMount");const w=(!a||a&&!a.pendingBranch)&&x&&!x.persisted;w&&x.beforeEnter(p),o(p,t,n),((f=m&&m.onVnodeMounted)||w||b)&&Lt((()=>{f&&bn(f,i,e),w&&x.enter(p),b&&Be(e,null,i,"mounted")}),a)},k=(e,t,n,i,r)=>{if(n&&g(e,n),i)for(let o=0;o{for(let u=l;u{const u=t.el=e.el;let{patchFlag:c,dynamicChildren:d,dirs:p}=t;c|=16&e.patchFlag;const f=e.props||r.kT,g=t.props||r.kT;let v;n&&Rt(n,!1),(v=g.onVnodeBeforeUpdate)&&bn(v,n,t,e),p&&Be(t,e,n,"beforeUpdate"),n&&Rt(n,!0);const m=o&&"foreignObject"!==t.type;if(d?O(e.dynamicChildren,d,u,n,i,m,a):l||H(e,t,u,null,n,i,m,a,!1),c>0){if(16&c)R(u,t,f,g,n,i,o);else if(2&c&&f.class!==g.class&&s(u,"class",null,g.class,o),4&c&&s(u,"style",f.style,g.style,o),8&c){const r=t.dynamicProps;for(let t=0;t{v&&bn(v,n,t,e),p&&Be(t,e,n,"updated")}),i)},O=(e,t,n,i,r,o,a)=>{for(let s=0;s{if(n!==i){for(const u in i){if((0,r.Gg)(u))continue;const c=i[u],d=n[u];c!==d&&"value"!==u&&s(e,u,d,c,l,t.children,o,a,J)}if(n!==r.kT)for(const u in n)(0,r.Gg)(u)||u in i||s(e,u,n[u],null,l,t.children,o,a,J);"value"in i&&s(e,"value",n.value,i.value)}},E=(e,t,n,i,r,a,s,l,c)=>{const d=t.el=e?e.el:u(""),h=t.anchor=e?e.anchor:u("");let{patchFlag:p,dynamicChildren:f,slotScopeIds:g}=t;g&&(l=l?l.concat(g):g),null==e?(o(d,n,i),o(h,n,i),A(t.children,n,h,r,a,s,l,c)):p>0&&64&p&&f&&e.dynamicChildren?(O(e.dynamicChildren,f,n,r,a,s,l),(null!=t.key||r&&t===r.subTree)&&Et(e,t,!0)):H(e,t,n,h,r,a,s,l,c)},N=(e,t,n,i,r,o,a,s,l)=>{t.slotScopeIds=s,null==e?512&t.shapeFlag?r.ctx.activate(t,n,i,a,l):F(t,n,i,r,o,a,l):B(e,t,l)},F=(e,t,n,i,r,o,a)=>{const s=e.component=Mn(e,i,r);if(ge(e)&&(s.ctx.renderer=te),On(s),s.asyncDep){if(r&&r.registerDep(s,V),!e.el){const e=s.subTree=dn(Zt);_(null,e,t,n)}}else V(s,e,t,n,r,o,a)},B=(e,t,n)=>{const i=t.component=e.component;if(G(e,t,n)){if(i.asyncDep&&!i.asyncResolved)return void z(i,t,n);i.next=t,I(i.update),i.update()}else t.el=e.el,i.vnode=t},V=(e,t,n,o,a,s,l)=>{const u=()=>{if(e.isMounted){let t,{next:n,bu:i,u:o,parent:u,vnode:c}=e,d=n;0,Rt(e,!1),n?(n.el=c.el,z(e,n,l)):n=c,i&&(0,r.ir)(i),(t=n.props&&n.props.onVnodeBeforeUpdate)&&bn(t,u,n,c),Rt(e,!0);const h=q(e);0;const f=e.subTree;e.subTree=h,y(f,h,p(f.el),Q(f),e,a,s),n.el=h.el,null===d&&j(e,h.el),o&&Lt(o,a),(t=n.props&&n.props.onVnodeUpdated)&&Lt((()=>bn(t,u,n,c)),a)}else{let i;const{el:l,props:u}=t,{bm:c,m:d,parent:h}=e,p=fe(t);if(Rt(e,!1),c&&(0,r.ir)(c),!p&&(i=u&&u.onVnodeBeforeMount)&&bn(i,h,t),Rt(e,!0),l&&ie){const n=()=>{e.subTree=q(e),ie(l,e.subTree,e,a,null)};p?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{0;const i=e.subTree=q(e);0,y(null,i,n,o,e,a,s),t.el=i.el}if(d&&Lt(d,a),!p&&(i=u&&u.onVnodeMounted)){const e=t;Lt((()=>bn(i,h,e)),a)}(256&t.shapeFlag||h&&fe(h.vnode)&&256&h.vnode.shapeFlag)&&e.a&&Lt(e.a,a),e.isMounted=!0,t=n=o=null}},c=e.effect=new i.qq(u,(()=>M(d)),e.scope),d=e.update=()=>c.run();d.id=e.uid,Rt(e,!0),d()},z=(e,t,n)=>{t.component=e;const r=e.vnode.props;e.vnode=t,e.next=null,dt(e,t.props,r,n),Ct(e,t.children,n),(0,i.Jd)(),D(void 0,e.update),(0,i.lk)()},H=(e,t,n,i,r,o,a,s,l=!1)=>{const u=e&&e.children,c=e?e.shapeFlag:0,d=t.children,{patchFlag:p,shapeFlag:f}=t;if(p>0){if(128&p)return void U(u,d,n,i,r,o,a,s,l);if(256&p)return void W(u,d,n,i,r,o,a,s,l)}8&f?(16&c&&J(u,r,o),d!==u&&h(n,d)):16&c?16&f?U(u,d,n,i,r,o,a,s,l):J(u,r,o,!0):(8&c&&h(n,""),16&f&&A(d,n,i,r,o,a,s,l))},W=(e,t,n,i,o,a,s,l,u)=>{e=e||r.Z6,t=t||r.Z6;const c=e.length,d=t.length,h=Math.min(c,d);let p;for(p=0;pd?J(e,o,a,!0,!1,h):A(t,n,i,o,a,s,l,u,h)},U=(e,t,n,i,o,a,s,l,u)=>{let c=0;const d=t.length;let h=e.length-1,p=d-1;while(c<=h&&c<=p){const i=e[c],r=t[c]=u?yn(t[c]):mn(t[c]);if(!an(i,r))break;y(i,r,n,null,o,a,s,l,u),c++}while(c<=h&&c<=p){const i=e[h],r=t[p]=u?yn(t[p]):mn(t[p]);if(!an(i,r))break;y(i,r,n,null,o,a,s,l,u),h--,p--}if(c>h){if(c<=p){const e=p+1,r=ep)while(c<=h)$(e[c],o,a,!0),c++;else{const f=c,g=c,v=new Map;for(c=g;c<=p;c++){const e=t[c]=u?yn(t[c]):mn(t[c]);null!=e.key&&v.set(e.key,c)}let m,x=0;const _=p-g+1;let b=!1,w=0;const S=new Array(_);for(c=0;c<_;c++)S[c]=0;for(c=f;c<=h;c++){const i=e[c];if(x>=_){$(i,o,a,!0);continue}let r;if(null!=i.key)r=v.get(i.key);else for(m=g;m<=p;m++)if(0===S[m-g]&&an(i,t[m])){r=m;break}void 0===r?$(i,o,a,!0):(S[r-g]=c+1,r>=w?w=r:b=!0,y(i,t[r],n,null,o,a,s,l,u),x++)}const M=b?Nt(S):r.Z6;for(m=M.length-1,c=_-1;c>=0;c--){const e=g+c,r=t[e],h=e+1{const{el:a,type:s,transition:l,children:u,shapeFlag:c}=e;if(6&c)return void Z(e.component.subTree,t,n,i);if(128&c)return void e.suspense.move(t,n,i);if(64&c)return void s.move(e,t,n,te);if(s===Ut){o(a,t,n);for(let e=0;el.enter(a)),r);else{const{leave:e,delayLeave:i,afterLeave:r}=l,s=()=>o(a,t,n),u=()=>{e(a,(()=>{s(),r&&r()}))};i?i(a,s,u):u()}else o(a,t,n)},$=(e,t,n,i=!1,r=!1)=>{const{type:o,props:a,ref:s,children:l,dynamicChildren:u,shapeFlag:c,patchFlag:d,dirs:h}=e;if(null!=s&&At(s,null,n,e,!0),256&c)return void t.ctx.deactivate(e);const p=1&c&&h,f=!fe(e);let g;if(f&&(g=a&&a.onVnodeBeforeUnmount)&&bn(g,t,e),6&c)K(e.component,n,i);else{if(128&c)return void e.suspense.unmount(n,i);p&&Be(e,null,t,"beforeUnmount"),64&c?e.type.remove(e,t,n,r,te,i):u&&(o!==Ut||d>0&&64&d)?J(u,t,n,!1,!0):(o===Ut&&384&d||!r&&16&c)&&J(l,t,n),i&&Y(e)}(f&&(g=a&&a.onVnodeUnmounted)||p)&&Lt((()=>{g&&bn(g,t,e),p&&Be(e,null,t,"unmounted")}),n)},Y=e=>{const{type:t,el:n,anchor:i,transition:r}=e;if(t===Ut)return void X(n,i);if(t===$t)return void S(e);const o=()=>{a(n),r&&!r.persisted&&r.afterLeave&&r.afterLeave()};if(1&e.shapeFlag&&r&&!r.persisted){const{leave:t,delayLeave:i}=r,a=()=>t(n,o);i?i(e.el,o,a):a()}else o()},X=(e,t)=>{let n;while(e!==t)n=f(e),a(e),e=n;a(t)},K=(e,t,n)=>{const{bum:i,scope:o,update:a,subTree:s,um:l}=e;i&&(0,r.ir)(i),o.stop(),a&&(a.active=!1,$(s,e,t,n)),l&&Lt(l,t),Lt((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},J=(e,t,n,i=!1,r=!1,o=0)=>{for(let a=o;a6&e.shapeFlag?Q(e.component.subTree):128&e.shapeFlag?e.suspense.next():f(e.anchor||e.el),ee=(e,t,n)=>{null==e?t._vnode&&$(t._vnode,null,null,!0):y(t._vnode||null,e,t,null,null,null,n),L(),t._vnode=e},te={p:y,um:$,m:Z,r:Y,mt:F,mc:A,pc:H,pbc:O,n:Q,o:e};let ne,ie;return t&&([ne,ie]=t(te)),{render:ee,hydrate:ne,createApp:kt(ee,ne)}}function Rt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Et(e,t,n=!1){const i=e.children,o=t.children;if((0,r.kJ)(i)&&(0,r.kJ)(o))for(let r=0;r>1,e[n[s]]0&&(t[i]=n[o-1]),n[o]=i)}}o=n.length,a=n[o-1];while(o-- >0)n[o]=a,a=t[a];return n}const Ft=e=>e.__isTeleport,Bt=e=>e&&(e.disabled||""===e.disabled),Vt=e=>"undefined"!==typeof SVGElement&&e instanceof SVGElement,zt=(e,t)=>{const n=e&&e.to;if((0,r.HD)(n)){if(t){const e=t(n);return e}return null}return n},qt={__isTeleport:!0,process(e,t,n,i,r,o,a,s,l,u){const{mc:c,pc:d,pbc:h,o:{insert:p,querySelector:f,createText:g,createComment:v}}=u,m=Bt(t.props);let{shapeFlag:y,children:x,dynamicChildren:_}=t;if(null==e){const e=t.el=g(""),u=t.anchor=g("");p(e,n,i),p(u,n,i);const d=t.target=zt(t.props,f),h=t.targetAnchor=g("");d&&(p(h,d),a=a||Vt(d));const v=(e,t)=>{16&y&&c(x,e,t,r,o,a,s,l)};m?v(n,u):d&&v(d,h)}else{t.el=e.el;const i=t.anchor=e.anchor,c=t.target=e.target,p=t.targetAnchor=e.targetAnchor,g=Bt(e.props),v=g?n:c,y=g?i:p;if(a=a||Vt(c),_?(h(e.dynamicChildren,_,v,r,o,a,s),Et(e,t,!0)):l||d(e,t,v,y,r,o,a,s,!1),m)g||Ht(t,n,i,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=zt(t.props,f);e&&Ht(t,e,null,u,0)}else g&&Ht(t,c,p,u,1)}},remove(e,t,n,i,{um:r,o:{remove:o}},a){const{shapeFlag:s,children:l,anchor:u,targetAnchor:c,target:d,props:h}=e;if(d&&o(c),(a||!Bt(h))&&(o(u),16&s))for(let p=0;p0?Xt||r.Z6:null,Jt(),Qt>0&&Xt&&Xt.push(e),e}function nn(e,t,n,i,r,o){return tn(cn(e,t,n,i,r,o,!0))}function rn(e,t,n,i,r){return tn(dn(e,t,n,i,r,!0))}function on(e){return!!e&&!0===e.__v_isVNode}function an(e,t){return e.type===t.type&&e.key===t.key}const sn="__vInternal",ln=({key:e})=>null!=e?e:null,un=({ref:e,ref_key:t,ref_for:n})=>null!=e?(0,r.HD)(e)||(0,i.dq)(e)||(0,r.mf)(e)?{i:F,r:e,k:t,f:!!n}:e:null;function cn(e,t=null,n=null,i=0,o=null,a=(e===Ut?0:1),s=!1,l=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ln(t),ref:t&&un(t),scopeId:B,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:i,dynamicProps:o,dynamicChildren:null,appContext:null};return l?(xn(u,n),128&a&&e.normalize(u)):n&&(u.shapeFlag|=(0,r.HD)(n)?8:16),Qt>0&&!s&&Xt&&(u.patchFlag>0||6&a)&&32!==u.patchFlag&&Xt.push(u),u}const dn=hn;function hn(e,t=null,n=null,o=0,a=null,s=!1){if(e&&e!==He||(e=Zt),on(e)){const i=fn(e,t,!0);return n&&xn(i,n),Qt>0&&!s&&Xt&&(6&i.shapeFlag?Xt[Xt.indexOf(e)]=i:Xt.push(i)),i.patchFlag|=-2,i}if(qn(e)&&(e=e.__vccOpts),t){t=pn(t);let{class:e,style:n}=t;e&&!(0,r.HD)(e)&&(t.class=(0,r.C_)(e)),(0,r.Kn)(n)&&((0,i.X3)(n)&&!(0,r.kJ)(n)&&(n=(0,r.l7)({},n)),t.style=(0,r.j5)(n))}const l=(0,r.HD)(e)?1:Z(e)?128:Ft(e)?64:(0,r.Kn)(e)?4:(0,r.mf)(e)?2:0;return cn(e,t,n,o,a,l,s,!0)}function pn(e){return e?(0,i.X3)(e)||sn in e?(0,r.l7)({},e):e:null}function fn(e,t,n=!1){const{props:i,ref:o,patchFlag:a,children:s}=e,l=t?_n(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&ln(l),ref:t&&t.ref?n&&o?(0,r.kJ)(o)?o.concat(un(t)):[o,un(t)]:un(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ut?-1===a?16:16|a:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&fn(e.ssContent),ssFallback:e.ssFallback&&fn(e.ssFallback),el:e.el,anchor:e.anchor};return u}function gn(e=" ",t=0){return dn(jt,null,e,t)}function vn(e="",t=!1){return t?(Kt(),rn(Zt,null,e)):dn(Zt,null,e)}function mn(e){return null==e||"boolean"===typeof e?dn(Zt):(0,r.kJ)(e)?dn(Ut,null,e.slice()):"object"===typeof e?yn(e):dn(jt,null,String(e))}function yn(e){return null===e.el||e.memo?e:fn(e)}function xn(e,t){let n=0;const{shapeFlag:i}=e;if(null==t)t=null;else if((0,r.kJ)(t))n=16;else if("object"===typeof t){if(65&i){const n=t.default;return void(n&&(n._c&&(n._d=!1),xn(e,n()),n._c&&(n._d=!0)))}{n=32;const i=t._;i||sn in t?3===i&&F&&(1===F.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=F}}else(0,r.mf)(t)?(t={default:t,_ctx:F},n=32):(t=String(t),64&i?(n=16,t=[gn(t)]):n=8);e.children=t,e.shapeFlag|=n}function _n(...e){const t={};for(let n=0;nCn||F,Tn=e=>{Cn=e,e.scope.on()},kn=()=>{Cn&&Cn.scope.off(),Cn=null};function An(e){return 4&e.vnode.shapeFlag}let Dn,Ln,Pn=!1;function On(e,t=!1){Pn=t;const{props:n,children:i}=e.vnode,r=An(e);ct(e,n,r,t),Mt(e,i);const o=r?Rn(e,t):void 0;return Pn=!1,o}function Rn(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=(0,i.Xl)(new Proxy(e.ctx,Ye));const{setup:a}=n;if(a){const n=e.setupContext=a.length>1?Bn(e):null;Tn(e),(0,i.Jd)();const l=o(a,e,0,[e.props,n]);if((0,i.lk)(),kn(),(0,r.tI)(l)){if(l.then(kn,kn),t)return l.then((n=>{En(e,n,t)})).catch((t=>{s(t,e,0)}));e.asyncDep=l}else En(e,l,t)}else Nn(e,t)}function En(e,t,n){(0,r.mf)(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:(0,r.Kn)(t)&&(e.setupState=(0,i.WL)(t)),Nn(e,n)}function Nn(e,t,n){const o=e.type;if(!e.render){if(!t&&Dn&&!o.render){const t=o.template;if(t){0;const{isCustomElement:n,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:s}=o,l=(0,r.l7)((0,r.l7)({isCustomElement:n,delimiters:a},i),s);o.render=Dn(t,l)}}e.render=o.render||r.dG,Ln&&Ln(e)}Tn(e),(0,i.Jd)(),Ke(e),(0,i.lk)(),kn()}function Fn(e){return new Proxy(e.attrs,{get(t,n){return(0,i.j)(e,"get","$attrs"),t[n]}})}function Bn(e){const t=t=>{e.exposed=t||{}};let n;return{get attrs(){return n||(n=Fn(e))},slots:e.slots,emit:e.emit,expose:t}}function Vn(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy((0,i.WL)((0,i.Xl)(e.exposed)),{get(t,n){return n in t?t[n]:n in $e?$e[n](e):void 0}}))}function zn(e,t=!0){return(0,r.mf)(e)?e.displayName||e.name:e.name||t&&e.__name}function qn(e){return(0,r.mf)(e)&&"__vccOpts"in e}const Hn=(e,t)=>(0,i.Fl)(e,t,Pn);function Wn(e,t,n){const i=arguments.length;return 2===i?(0,r.Kn)(t)&&!(0,r.kJ)(t)?on(t)?dn(e,null,[t]):dn(e,t):dn(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):3===i&&on(n)&&(n=[n]),dn(e,t,n))}Symbol("");const Gn="3.2.37"},8880:(e,t,n)=>{"use strict";n.d(t,{ri:()=>ne,uT:()=>F});var i=n(2323),r=n(3673);n(1959);const o="http://www.w3.org/2000/svg",a="undefined"!==typeof document?document:null,s=a&&a.createElement("template"),l={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,i)=>{const r=t?a.createElementNS(o,e):a.createElement(e,n?{is:n}:void 0);return"select"===e&&i&&null!=i.multiple&&r.setAttribute("multiple",i.multiple),r},createText:e=>a.createTextNode(e),createComment:e=>a.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>a.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,n,i,r,o){const a=n?n.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling)){while(1)if(t.insertBefore(r.cloneNode(!0),n),r===o||!(r=r.nextSibling))break}else{s.innerHTML=i?`${e}`:e;const r=s.content;if(i){const e=r.firstChild;while(e.firstChild)r.appendChild(e.firstChild);r.removeChild(e)}t.insertBefore(r,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function u(e,t,n){const i=e._vtc;i&&(t=(t?[t,...i]:[...i]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function c(e,t,n){const r=e.style,o=(0,i.HD)(n);if(n&&!o){for(const e in n)h(r,e,n[e]);if(t&&!(0,i.HD)(t))for(const e in t)null==n[e]&&h(r,e,"")}else{const i=r.display;o?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=i)}}const d=/\s*!important$/;function h(e,t,n){if((0,i.kJ)(n))n.forEach((n=>h(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=g(e,t);d.test(n)?e.setProperty((0,i.rs)(r),n.replace(d,""),"important"):e[r]=n}}const p=["Webkit","Moz","ms"],f={};function g(e,t){const n=f[t];if(n)return n;let r=(0,i._A)(t);if("filter"!==r&&r in e)return f[t]=r;r=(0,i.kC)(r);for(let i=0;i{let e=Date.now,t=!1;if("undefined"!==typeof window){Date.now()>document.createEvent("Event").timeStamp&&(e=performance.now.bind(performance));const n=navigator.userAgent.match(/firefox\/(\d+)/i);t=!!(n&&Number(n[1])<=53)}return[e,t]})();let b=0;const w=Promise.resolve(),S=()=>{b=0},M=()=>b||(w.then(S),b=x());function C(e,t,n,i){e.addEventListener(t,n,i)}function I(e,t,n,i){e.removeEventListener(t,n,i)}function T(e,t,n,i,r=null){const o=e._vei||(e._vei={}),a=o[t];if(i&&a)a.value=i;else{const[n,s]=A(t);if(i){const a=o[t]=D(i,r);C(e,n,a,s)}else a&&(I(e,n,a,s),o[t]=void 0)}}const k=/(?:Once|Passive|Capture)$/;function A(e){let t;if(k.test(e)){let n;t={};while(n=e.match(k))e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[(0,i.rs)(e.slice(2)),t]}function D(e,t){const n=e=>{const i=e.timeStamp||x();(_||i>=n.attached-1)&&(0,r.$d)(L(e,n.value),t,5,[e])};return n.value=e,n.attached=M(),n}function L(e,t){if((0,i.kJ)(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}const P=/^on[a-z]/,O=(e,t,n,r,o=!1,a,s,l,d)=>{"class"===t?u(e,r,o):"style"===t?c(e,n,r):(0,i.F7)(t)?(0,i.tR)(t)||T(e,t,n,r,s):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):R(e,t,r,o))?y(e,t,r,a,s,l,d):("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),m(e,t,r,o))};function R(e,t,n,r){return r?"innerHTML"===t||"textContent"===t||!!(t in e&&P.test(t)&&(0,i.mf)(n)):"spellcheck"!==t&&"draggable"!==t&&"translate"!==t&&("form"!==t&&(("list"!==t||"INPUT"!==e.tagName)&&(("type"!==t||"TEXTAREA"!==e.tagName)&&((!P.test(t)||!(0,i.HD)(n))&&t in e))))}"undefined"!==typeof HTMLElement&&HTMLElement;const E="transition",N="animation",F=(e,{slots:t})=>(0,r.h)(r.P$,q(e),t);F.displayName="Transition";const B={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},V=(F.props=(0,i.l7)({},r.P$.props,B),(e,t=[])=>{(0,i.kJ)(e)?e.forEach((e=>e(...t))):e&&e(...t)}),z=e=>!!e&&((0,i.kJ)(e)?e.some((e=>e.length>1)):e.length>1);function q(e){const t={};for(const i in e)i in B||(t[i]=e[i]);if(!1===e.css)return t;const{name:n="v",type:r,duration:o,enterFromClass:a=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:u=a,appearActiveClass:c=s,appearToClass:d=l,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:f=`${n}-leave-to`}=e,g=H(o),v=g&&g[0],m=g&&g[1],{onBeforeEnter:y,onEnter:x,onEnterCancelled:_,onLeave:b,onLeaveCancelled:w,onBeforeAppear:S=y,onAppear:M=x,onAppearCancelled:C=_}=t,I=(e,t,n)=>{U(e,t?d:l),U(e,t?c:s),n&&n()},T=(e,t)=>{e._isLeaving=!1,U(e,h),U(e,f),U(e,p),t&&t()},k=e=>(t,n)=>{const i=e?M:x,o=()=>I(t,e,n);V(i,[t,o]),j((()=>{U(t,e?u:a),G(t,e?d:l),z(i)||$(t,r,v,o)}))};return(0,i.l7)(t,{onBeforeEnter(e){V(y,[e]),G(e,a),G(e,s)},onBeforeAppear(e){V(S,[e]),G(e,u),G(e,c)},onEnter:k(!1),onAppear:k(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>T(e,t);G(e,h),J(),G(e,p),j((()=>{e._isLeaving&&(U(e,h),G(e,f),z(b)||$(e,r,m,n))})),V(b,[e,n])},onEnterCancelled(e){I(e,!1),V(_,[e])},onAppearCancelled(e){I(e,!0),V(C,[e])},onLeaveCancelled(e){T(e),V(w,[e])}})}function H(e){if(null==e)return null;if((0,i.Kn)(e))return[W(e.enter),W(e.leave)];{const t=W(e);return[t,t]}}function W(e){const t=(0,i.He)(e);return t}function G(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e._vtc||(e._vtc=new Set)).add(t)}function U(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function j(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let Z=0;function $(e,t,n,i){const r=e._endId=++Z,o=()=>{r===e._endId&&i()};if(n)return setTimeout(o,n);const{type:a,timeout:s,propCount:l}=Y(e,t);if(!a)return i();const u=a+"end";let c=0;const d=()=>{e.removeEventListener(u,h),o()},h=t=>{t.target===e&&++c>=l&&d()};setTimeout((()=>{c(n[e]||"").split(", "),r=i(E+"Delay"),o=i(E+"Duration"),a=X(r,o),s=i(N+"Delay"),l=i(N+"Duration"),u=X(s,l);let c=null,d=0,h=0;t===E?a>0&&(c=E,d=a,h=o.length):t===N?u>0&&(c=N,d=u,h=l.length):(d=Math.max(a,u),c=d>0?a>u?E:N:null,h=c?c===E?o.length:l.length:0);const p=c===E&&/\b(transform|all)(,|$)/.test(n[E+"Property"]);return{type:c,timeout:d,propCount:h,hasTransform:p}}function X(e,t){while(e.lengthK(t)+K(e[n]))))}function K(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function J(){return document.body.offsetHeight}new WeakMap,new WeakMap;const Q=(0,i.l7)({patchProp:O},l);let ee;function te(){return ee||(ee=(0,r.Us)(Q))}const ne=(...e)=>{const t=te().createApp(...e);const{mount:n}=t;return t.mount=e=>{const r=ie(e);if(!r)return;const o=t._component;(0,i.mf)(o)||o.render||o.template||(o.template=r.innerHTML),r.innerHTML="";const a=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),a},t};function ie(e){if((0,i.HD)(e)){const t=document.querySelector(e);return t}return e}},2323:(e,t,n)=>{"use strict";function i(e,t){const n=Object.create(null),i=e.split(",");for(let r=0;r!!n[e.toLowerCase()]:e=>!!n[e]}n.d(t,{C_:()=>p,DM:()=>P,E9:()=>ie,F7:()=>M,Gg:()=>G,HD:()=>E,He:()=>te,Kn:()=>F,NO:()=>w,Nj:()=>ee,Od:()=>T,PO:()=>H,Pq:()=>s,RI:()=>A,S0:()=>W,W7:()=>q,WV:()=>g,Z6:()=>_,_A:()=>Z,_N:()=>L,aU:()=>J,dG:()=>b,e1:()=>o,fY:()=>i,hR:()=>K,hq:()=>v,ir:()=>Q,j5:()=>u,kC:()=>X,kJ:()=>D,kT:()=>x,l7:()=>I,mf:()=>R,rs:()=>Y,tI:()=>B,tR:()=>C,yA:()=>l,yk:()=>N,zw:()=>m});const r="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",o=i(r);const a="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",s=i(a);function l(e){return!!e||""===e}function u(e){if(D(e)){const t={};for(let n=0;n{if(e){const n=e.split(d);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function p(e){let t="";if(E(e))t=e;else if(D(e))for(let n=0;ng(e,t)))}const m=e=>E(e)?e:null==e?"":D(e)||F(e)&&(e.toString===V||!R(e.toString))?JSON.stringify(e,y,2):String(e),y=(e,t)=>t&&t.__v_isRef?y(e,t.value):L(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:P(t)?{[`Set(${t.size})`]:[...t.values()]}:!F(t)||D(t)||H(t)?t:String(t),x={},_=[],b=()=>{},w=()=>!1,S=/^on[^a-z]/,M=e=>S.test(e),C=e=>e.startsWith("onUpdate:"),I=Object.assign,T=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},k=Object.prototype.hasOwnProperty,A=(e,t)=>k.call(e,t),D=Array.isArray,L=e=>"[object Map]"===z(e),P=e=>"[object Set]"===z(e),O=e=>"[object Date]"===z(e),R=e=>"function"===typeof e,E=e=>"string"===typeof e,N=e=>"symbol"===typeof e,F=e=>null!==e&&"object"===typeof e,B=e=>F(e)&&R(e.then)&&R(e.catch),V=Object.prototype.toString,z=e=>V.call(e),q=e=>z(e).slice(8,-1),H=e=>"[object Object]"===z(e),W=e=>E(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,G=i(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),U=e=>{const t=Object.create(null);return n=>{const i=t[n];return i||(t[n]=e(n))}},j=/-(\w)/g,Z=U((e=>e.replace(j,((e,t)=>t?t.toUpperCase():"")))),$=/\B([A-Z])/g,Y=U((e=>e.replace($,"-$1").toLowerCase())),X=U((e=>e.charAt(0).toUpperCase()+e.slice(1))),K=U((e=>e?`on${X(e)}`:"")),J=(e,t)=>!Object.is(e,t),Q=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},te=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let ne;const ie=()=>ne||(ne="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{})},52:(e,t,n)=>{e.exports=n(7974)},8699:(e,t,n)=>{"use strict";var i=n(7210),r=n(4923),o=n(3634),a=n(7696),s=n(9835),l=n(3423),u=n(8365),c=n(8838),d=n(9469),h=n(9157),p=n(7302);e.exports=function(e){return new Promise((function(t,n){var f,g=e.data,v=e.headers,m=e.responseType;function y(){e.cancelToken&&e.cancelToken.unsubscribe(f),e.signal&&e.signal.removeEventListener("abort",f)}i.isFormData(g)&&i.isStandardBrowserEnv()&&delete v["Content-Type"];var x=new XMLHttpRequest;if(e.auth){var _=e.auth.username||"",b=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";v.Authorization="Basic "+btoa(_+":"+b)}var w=s(e.baseURL,e.url);function S(){if(x){var i="getAllResponseHeaders"in x?l(x.getAllResponseHeaders()):null,o=m&&"text"!==m&&"json"!==m?x.response:x.responseText,a={data:o,status:x.status,statusText:x.statusText,headers:i,config:e,request:x};r((function(e){t(e),y()}),(function(e){n(e),y()}),a),x=null}}if(x.open(e.method.toUpperCase(),a(w,e.params,e.paramsSerializer),!0),x.timeout=e.timeout,"onloadend"in x?x.onloadend=S:x.onreadystatechange=function(){x&&4===x.readyState&&(0!==x.status||x.responseURL&&0===x.responseURL.indexOf("file:"))&&setTimeout(S)},x.onabort=function(){x&&(n(new d("Request aborted",d.ECONNABORTED,e,x)),x=null)},x.onerror=function(){n(new d("Network Error",d.ERR_NETWORK,e,x,x)),x=null},x.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",i=e.transitional||c;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new d(t,i.clarifyTimeoutError?d.ETIMEDOUT:d.ECONNABORTED,e,x)),x=null},i.isStandardBrowserEnv()){var M=(e.withCredentials||u(w))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;M&&(v[e.xsrfHeaderName]=M)}"setRequestHeader"in x&&i.forEach(v,(function(e,t){"undefined"===typeof g&&"content-type"===t.toLowerCase()?delete v[t]:x.setRequestHeader(t,e)})),i.isUndefined(e.withCredentials)||(x.withCredentials=!!e.withCredentials),m&&"json"!==m&&(x.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&x.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&x.upload&&x.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(f=function(e){x&&(n(!e||e&&e.type?new h:e),x.abort(),x=null)},e.cancelToken&&e.cancelToken.subscribe(f),e.signal&&(e.signal.aborted?f():e.signal.addEventListener("abort",f))),g||(g=null);var C=p(w);C&&-1===["http","https","file"].indexOf(C)?n(new d("Unsupported protocol "+C+":",d.ERR_BAD_REQUEST,e)):x.send(g)}))}},7974:(e,t,n)=>{"use strict";var i=n(7210),r=n(2938),o=n(8799),a=n(4495),s=n(2447);function l(e){var t=new o(e),n=r(o.prototype.request,t);return i.extend(n,o.prototype,t),i.extend(n,t),n.create=function(t){return l(a(e,t))},n}var u=l(s);u.Axios=o,u.CanceledError=n(9157),u.CancelToken=n(8858),u.isCancel=n(6029),u.VERSION=n(765).version,u.toFormData=n(4415),u.AxiosError=n(9469),u.Cancel=u.CanceledError,u.all=function(e){return Promise.all(e)},u.spread=n(5178),u.isAxiosError=n(5615),e.exports=u,e.exports["default"]=u},8858:(e,t,n)=>{"use strict";var i=n(9157);function r(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,i=n._listeners.length;for(t=0;t{"use strict";var i=n(9469),r=n(7210);function o(e){i.call(this,null==e?"canceled":e,i.ERR_CANCELED),this.name="CanceledError"}r.inherits(o,i,{__CANCEL__:!0}),e.exports=o},6029:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},8799:(e,t,n)=>{"use strict";var i=n(7210),r=n(7696),o=n(2591),a=n(516),s=n(4495),l=n(9835),u=n(3170),c=u.validators;function d(e){this.defaults=e,this.interceptors={request:new o,response:new o}}d.prototype.request=function(e,t){"string"===typeof e?(t=t||{},t.url=e):t=e||{},t=s(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&u.assertOptions(n,{silentJSONParsing:c.transitional(c.boolean),forcedJSONParsing:c.transitional(c.boolean),clarifyTimeoutError:c.transitional(c.boolean)},!1);var i=[],r=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(r=r&&e.synchronous,i.unshift(e.fulfilled,e.rejected))}));var o,l=[];if(this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)})),!r){var d=[a,void 0];Array.prototype.unshift.apply(d,i),d=d.concat(l),o=Promise.resolve(t);while(d.length)o=o.then(d.shift(),d.shift());return o}var h=t;while(i.length){var p=i.shift(),f=i.shift();try{h=p(h)}catch(g){f(g);break}}try{o=a(h)}catch(g){return Promise.reject(g)}while(l.length)o=o.then(l.shift(),l.shift());return o},d.prototype.getUri=function(e){e=s(this.defaults,e);var t=l(e.baseURL,e.url);return r(t,e.params,e.paramsSerializer)},i.forEach(["delete","get","head","options"],(function(e){d.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),i.forEach(["post","put","patch"],(function(e){function t(t){return function(n,i,r){return this.request(s(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}d.prototype[e]=t(),d.prototype[e+"Form"]=t(!0)})),e.exports=d},9469:(e,t,n)=>{"use strict";var i=n(7210);function r(e,t,n,i,r){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),r&&(this.response=r)}i.inherits(r,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var o=r.prototype,a={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){a[e]={value:e}})),Object.defineProperties(r,a),Object.defineProperty(o,"isAxiosError",{value:!0}),r.from=function(e,t,n,a,s,l){var u=Object.create(o);return i.toFlatObject(e,u,(function(e){return e!==Error.prototype})),r.call(u,e.message,t,n,a,s),u.name=e.name,l&&Object.assign(u,l),u},e.exports=r},2591:(e,t,n)=>{"use strict";var i=n(7210);function r(){this.handlers=[]}r.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){i.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=r},9835:(e,t,n)=>{"use strict";var i=n(8380),r=n(6092);e.exports=function(e,t){return e&&!i(t)?r(e,t):t}},516:(e,t,n)=>{"use strict";var i=n(7210),r=n(4330),o=n(6029),a=n(2447),s=n(9157);function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s}e.exports=function(e){l(e),e.headers=e.headers||{},e.data=r.call(e,e.data,e.headers,e.transformRequest),e.headers=i.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),i.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]}));var t=e.adapter||a.adapter;return t(e).then((function(t){return l(e),t.data=r.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(l(e),t&&t.response&&(t.response.data=r.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},4495:(e,t,n)=>{"use strict";var i=n(7210);e.exports=function(e,t){t=t||{};var n={};function r(e,t){return i.isPlainObject(e)&&i.isPlainObject(t)?i.merge(e,t):i.isPlainObject(t)?i.merge({},t):i.isArray(t)?t.slice():t}function o(n){return i.isUndefined(t[n])?i.isUndefined(e[n])?void 0:r(void 0,e[n]):r(e[n],t[n])}function a(e){if(!i.isUndefined(t[e]))return r(void 0,t[e])}function s(n){return i.isUndefined(t[n])?i.isUndefined(e[n])?void 0:r(void 0,e[n]):r(void 0,t[n])}function l(n){return n in t?r(e[n],t[n]):n in e?r(void 0,e[n]):void 0}var u={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l};return i.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=u[e]||o,r=t(e);i.isUndefined(r)&&t!==l||(n[e]=r)})),n}},4923:(e,t,n)=>{"use strict";var i=n(9469);e.exports=function(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new i("Request failed with status code "+n.status,[i.ERR_BAD_REQUEST,i.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}},4330:(e,t,n)=>{"use strict";var i=n(7210),r=n(2447);e.exports=function(e,t,n){var o=this||r;return i.forEach(n,(function(n){e=n.call(o,e,t)})),e}},2447:(e,t,n)=>{"use strict";var i=n(7210),r=n(4733),o=n(9469),a=n(8838),s=n(4415),l={"Content-Type":"application/x-www-form-urlencoded"};function u(e,t){!i.isUndefined(e)&&i.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function c(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(e=n(8699)),e}function d(e,t,n){if(i.isString(e))try{return(t||JSON.parse)(e),i.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}var h={transitional:a,adapter:c(),transformRequest:[function(e,t){if(r(t,"Accept"),r(t,"Content-Type"),i.isFormData(e)||i.isArrayBuffer(e)||i.isBuffer(e)||i.isStream(e)||i.isFile(e)||i.isBlob(e))return e;if(i.isArrayBufferView(e))return e.buffer;if(i.isURLSearchParams(e))return u(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var n,o=i.isObject(e),a=t&&t["Content-Type"];if((n=i.isFileList(e))||o&&"multipart/form-data"===a){var l=this.env&&this.env.FormData;return s(n?{"files[]":e}:e,l&&new l)}return o||"application/json"===a?(u(t,"application/json"),d(e)):e}],transformResponse:[function(e){var t=this.transitional||h.transitional,n=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||r&&i.isString(e)&&e.length)try{return JSON.parse(e)}catch(s){if(a){if("SyntaxError"===s.name)throw o.from(s,o.ERR_BAD_RESPONSE,this,null,this.response);throw s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:n(6632)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};i.forEach(["delete","get","head"],(function(e){h.headers[e]={}})),i.forEach(["post","put","patch"],(function(e){h.headers[e]=i.merge(l)})),e.exports=h},8838:e=>{"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},765:e=>{e.exports={version:"0.27.2"}},2938:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),i=0;i{"use strict";var i=n(7210);function r(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(i.isURLSearchParams(t))o=t.toString();else{var a=[];i.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(i.isArray(e)?t+="[]":e=[e],i.forEach(e,(function(e){i.isDate(e)?e=e.toISOString():i.isObject(e)&&(e=JSON.stringify(e)),a.push(r(t)+"="+r(e))})))})),o=a.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},6092:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},3634:(e,t,n)=>{"use strict";var i=n(7210);e.exports=i.isStandardBrowserEnv()?function(){return{write:function(e,t,n,r,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),i.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),i.isString(r)&&s.push("path="+r),i.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},8380:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},5615:(e,t,n)=>{"use strict";var i=n(7210);e.exports=function(e){return i.isObject(e)&&!0===e.isAxiosError}},8365:(e,t,n)=>{"use strict";var i=n(7210);e.exports=i.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(e){var i=e;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=r(window.location.href),function(t){var n=i.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return function(){return!0}}()},4733:(e,t,n)=>{"use strict";var i=n(7210);e.exports=function(e,t){i.forEach(e,(function(n,i){i!==t&&i.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[i])}))}},6632:e=>{e.exports=null},3423:(e,t,n)=>{"use strict";var i=n(7210),r=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,o,a={};return e?(i.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=i.trim(e.substr(0,o)).toLowerCase(),n=i.trim(e.substr(o+1)),t){if(a[t]&&r.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},7302:e=>{"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},5178:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},4415:(e,t,n)=>{"use strict";var i=n(7210);function r(e,t){t=t||new FormData;var n=[];function r(e){return null===e?"":i.isDate(e)?e.toISOString():i.isArrayBuffer(e)||i.isTypedArray(e)?"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function o(e,a){if(i.isPlainObject(e)||i.isArray(e)){if(-1!==n.indexOf(e))throw Error("Circular reference detected in "+a);n.push(e),i.forEach(e,(function(e,n){if(!i.isUndefined(e)){var s,l=a?a+"."+n:n;if(e&&!a&&"object"===typeof e)if(i.endsWith(n,"{}"))e=JSON.stringify(e);else if(i.endsWith(n,"[]")&&(s=i.toArray(e)))return void s.forEach((function(e){!i.isUndefined(e)&&t.append(l,r(e))}));o(e,l)}})),n.pop()}else t.append(a,r(e))}return o(e),t}e.exports=r},3170:(e,t,n)=>{"use strict";var i=n(765).version,r=n(9469),o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var a={};function s(e,t,n){if("object"!==typeof e)throw new r("options must be an object",r.ERR_BAD_OPTION_VALUE);var i=Object.keys(e),o=i.length;while(o-- >0){var a=i[o],s=t[a];if(s){var l=e[a],u=void 0===l||s(l,a,e);if(!0!==u)throw new r("option "+a+" must be "+u,r.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new r("Unknown option "+a,r.ERR_BAD_OPTION)}}o.transitional=function(e,t,n){function o(e,t){return"[Axios v"+i+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,i,s){if(!1===e)throw new r(o(i," has been removed"+(t?" in "+t:"")),r.ERR_DEPRECATED);return t&&!a[i]&&(a[i]=!0,console.warn(o(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,s)}},e.exports={assertOptions:s,validators:o}},7210:(e,t,n)=>{"use strict";var i=n(2938),r=Object.prototype.toString,o=function(e){return function(t){var n=r.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())}}(Object.create(null));function a(e){return e=e.toLowerCase(),function(t){return o(t)===e}}function s(e){return Array.isArray(e)}function l(e){return"undefined"===typeof e}function u(e){return null!==e&&!l(e)&&null!==e.constructor&&!l(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var c=a("ArrayBuffer");function d(e){var t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&c(e.buffer),t}function h(e){return"string"===typeof e}function p(e){return"number"===typeof e}function f(e){return null!==e&&"object"===typeof e}function g(e){if("object"!==o(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var v=a("Date"),m=a("File"),y=a("Blob"),x=a("FileList");function _(e){return"[object Function]"===r.call(e)}function b(e){return f(e)&&_(e.pipe)}function w(e){var t="[object FormData]";return e&&("function"===typeof FormData&&e instanceof FormData||r.call(e)===t||_(e.toString)&&e.toString()===t)}var S=a("URLSearchParams");function M(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function C(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function I(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),s(e))for(var n=0,i=e.length;n0)o=i[r],a[o]||(t[o]=e[o],a[o]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t}function P(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var i=e.indexOf(t,n);return-1!==i&&i===n}function O(e){if(!e)return null;var t=e.length;if(l(t))return null;var n=new Array(t);while(t-- >0)n[t]=e[t];return n}var R=function(e){return function(t){return e&&t instanceof e}}("undefined"!==typeof Uint8Array&&Object.getPrototypeOf(Uint8Array));e.exports={isArray:s,isArrayBuffer:c,isBuffer:u,isFormData:w,isArrayBufferView:d,isString:h,isNumber:p,isObject:f,isPlainObject:g,isUndefined:l,isDate:v,isFile:m,isBlob:y,isFunction:_,isStream:b,isURLSearchParams:S,isStandardBrowserEnv:C,forEach:I,merge:T,extend:k,trim:M,stripBOM:A,inherits:D,toFlatObject:L,kindOf:o,kindOfTest:a,endsWith:P,toArray:O,isTypedArray:R,isFileList:x}},5607:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(3673),r=n(908),o=n(2236),a=n(7657);const s=(0,r.L)({name:"QBanner",props:{...o.S,inlineActions:Boolean,dense:Boolean,rounded:Boolean},setup(e,{slots:t}){const n=(0,i.FN)(),r=(0,o.Z)(e,n.proxy.$q),s=(0,i.Fl)((()=>"q-banner row items-center"+(!0===e.dense?" q-banner--dense":"")+(!0===r.value?" q-banner--dark q-dark":"")+(!0===e.rounded?" rounded-borders":""))),l=(0,i.Fl)((()=>"q-banner__actions row items-center justify-end col-"+(!0===e.inlineActions?"auto":"all")));return()=>{const n=[(0,i.h)("div",{class:"q-banner__avatar col-auto row items-center self-start"},(0,a.KR)(t.avatar)),(0,i.h)("div",{class:"q-banner__content col text-body2"},(0,a.KR)(t.default))],r=(0,a.KR)(t.action);return void 0!==r&&n.push((0,i.h)("div",{class:l.value},r)),(0,i.h)("div",{class:s.value+(!1===e.inlineActions&&void 0!==r?" q-banner--top-padding":""),role:"alert"},n)}}})},846:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(3673),r=n(2236),o=n(908),a=n(7657);const s=(0,o.L)({name:"QBar",props:{...r.S,dense:Boolean},setup(e,{slots:t}){const n=(0,i.FN)(),o=(0,r.Z)(e,n.proxy.$q),s=(0,i.Fl)((()=>`q-bar row no-wrap items-center q-bar--${!0===e.dense?"dense":"standard"} q-bar--`+(!0===o.value?"dark":"light")));return()=>(0,i.h)("div",{class:s.value,role:"toolbar"},(0,a.KR)(t.default))}})},1481:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});n(3610);var i=n(3673),r=n(9992),o=n(908),a=n(7657),s=n(7445);const l=["",!0],u=(0,o.L)({name:"QBreadcrumbs",props:{...r.jO,separator:{type:String,default:"/"},separatorColor:String,activeColor:{type:String,default:"primary"},gutter:{type:String,validator:e=>["none","xs","sm","md","lg","xl"].includes(e),default:"sm"}},setup(e,{slots:t}){const n=(0,r.ZP)(e),o=(0,i.Fl)((()=>`flex items-center ${n.value}${"none"===e.gutter?"":` q-gutter-${e.gutter}`}`)),u=(0,i.Fl)((()=>e.separatorColor?` text-${e.separatorColor}`:"")),c=(0,i.Fl)((()=>` text-${e.activeColor}`));return()=>{const n=(0,s.Pf)((0,a.KR)(t.default));if(0===n.length)return;let r=1;const d=[],h=n.filter((e=>void 0!==e.type&&"QBreadcrumbsEl"===e.type.name)).length,p=void 0!==t.separator?t.separator:()=>e.separator;return n.forEach((e=>{if(void 0!==e.type&&"QBreadcrumbsEl"===e.type.name){const t=r{"use strict";n.d(t,{Z:()=>l});var i=n(3673),r=n(4554),o=n(908),a=n(7657),s=n(7277);const l=(0,o.L)({name:"QBreadcrumbsEl",props:{...s.$,label:String,icon:String,tag:{type:String,default:"span"}},setup(e,{slots:t}){const{linkTag:n,linkProps:o,linkClass:l,hasRouterLink:u,navigateToRouterLink:c}=(0,s.Z)(),d=(0,i.Fl)((()=>{const t={class:"q-breadcrumbs__el q-link flex inline items-center relative-position "+(!0!==e.disable?"q-link--focusable"+l.value:"q-breadcrumbs__el--disable"),...o.value};return!0===u.value&&(t.onClick=c),t})),h=(0,i.Fl)((()=>"q-breadcrumbs__el-icon"+(void 0!==e.label?" q-breadcrumbs__el-icon--with-label":"")));return()=>{const o=[];return void 0!==e.icon&&o.push((0,i.h)(r.Z,{class:h.value,name:e.icon})),void 0!==e.label&&o.push(e.label),(0,i.h)(n.value,{...d.value},(0,a.vs)(t.default,o))}}})},8240:(e,t,n)=>{"use strict";n.d(t,{Z:()=>I});var i=n(3673),r=n(1959),o=n(8880),a=n(4554),s=n(9754),l=n(860),u=(n(3610),n(9992)),c=n(2417),d=n(7277);const h={none:0,xs:4,sm:8,md:16,lg:24,xl:32},p={xs:8,sm:10,md:14,lg:20,xl:24},f=["button","submit","reset"],g=/[^\s]\/[^\s]/,v={...c.LU,...d.$,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,round:Boolean,square:Boolean,outline:Boolean,flat:Boolean,unelevated:Boolean,rounded:Boolean,push:Boolean,glossy:Boolean,size:String,fab:Boolean,fabMini:Boolean,padding:String,color:String,textColor:String,noCaps:Boolean,noWrap:Boolean,dense:Boolean,tabindex:[Number,String],ripple:{type:[Boolean,Object],default:!0},align:{...u.jO.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean};function m(e){const t=(0,c.ZP)(e,p),n=(0,u.ZP)(e),{hasRouterLink:r,hasLink:o,linkTag:a,linkProps:s,navigateToRouterLink:l}=(0,d.Z)("button"),v=(0,i.Fl)((()=>{const n=!1===e.fab&&!1===e.fabMini?t.value:{};return void 0!==e.padding?Object.assign({},n,{padding:e.padding.split(/\s+/).map((e=>e in h?h[e]+"px":e)).join(" "),minWidth:"0",minHeight:"0"}):n})),m=(0,i.Fl)((()=>!0===e.rounded||!0===e.fab||!0===e.fabMini)),y=(0,i.Fl)((()=>!0!==e.disable&&!0!==e.loading)),x=(0,i.Fl)((()=>!0===y.value?e.tabindex||0:-1)),_=(0,i.Fl)((()=>!0===e.flat?"flat":!0===e.outline?"outline":!0===e.push?"push":!0===e.unelevated?"unelevated":"standard")),b=(0,i.Fl)((()=>{const t={tabindex:x.value};return!0===o.value?Object.assign(t,s.value):!0===f.includes(e.type)&&(t.type=e.type),"a"===a.value?(!0===e.disable?t["aria-disabled"]="true":void 0===t.href&&(t.role="button"),!0!==r.value&&!0===g.test(e.type)&&(t.type=e.type)):!0===e.disable&&(t.disabled="",t["aria-disabled"]="true"),!0===e.loading&&void 0!==e.percentage&&Object.assign(t,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e.percentage}),t})),w=(0,i.Fl)((()=>{let t;void 0!==e.color?t=!0===e.flat||!0===e.outline?`text-${e.textColor||e.color}`:`bg-${e.color} text-${e.textColor||"white"}`:e.textColor&&(t=`text-${e.textColor}`);const n=!0===e.round?"round":"rectangle"+(!0===m.value?" q-btn--rounded":!0===e.square?" q-btn--square":"");return`q-btn--${_.value} q-btn--${n}`+(void 0!==t?" "+t:"")+(!0===y.value?" q-btn--actionable q-focusable q-hoverable":!0===e.disable?" disabled":"")+(!0===e.fab?" q-btn--fab":!0===e.fabMini?" q-btn--fab-mini":"")+(!0===e.noCaps?" q-btn--no-uppercase":"")+(!0===e.dense?" q-btn--dense":"")+(!0===e.stretch?" no-border-radius self-stretch":"")+(!0===e.glossy?" glossy":"")+(e.square?" q-btn--square":"")})),S=(0,i.Fl)((()=>n.value+(!0===e.stack?" column":" row")+(!0===e.noWrap?" no-wrap text-no-wrap":"")+(!0===e.loading?" q-btn__content--hidden":"")));return{classes:w,style:v,innerClasses:S,attributes:b,hasRouterLink:r,hasLink:o,linkTag:a,navigateToRouterLink:l,isActionable:y}}var y=n(908),x=n(7657),_=n(4716),b=n(1436);const{passiveCapture:w}=_.rU;let S=null,M=null,C=null;const I=(0,y.L)({name:"QBtn",props:{...v,percentage:Number,darkPercentage:Boolean},emits:["click","keydown","touchstart","mousedown","keyup"],setup(e,{slots:t,emit:n}){const{proxy:u}=(0,i.FN)(),{classes:c,style:d,innerClasses:h,attributes:p,hasRouterLink:f,hasLink:g,linkTag:v,navigateToRouterLink:y,isActionable:I}=m(e),T=(0,r.iH)(null),k=(0,r.iH)(null);let A,D,L=null;const P=(0,i.Fl)((()=>void 0!==e.label&&null!==e.label&&""!==e.label)),O=(0,i.Fl)((()=>!0!==e.disable&&!1!==e.ripple&&{keyCodes:!0===g.value?[13,32]:[13],...!0===e.ripple?{}:e.ripple})),R=(0,i.Fl)((()=>({center:e.round}))),E=(0,i.Fl)((()=>{const t=Math.max(0,Math.min(100,e.percentage));return t>0?{transition:"transform 0.6s",transform:`translateX(${t-100}%)`}:{}})),N=(0,i.Fl)((()=>!0===e.loading?{onMousedown:G,onTouchstartPassive:G,onClick:G,onKeydown:G,onKeyup:G}:!0===I.value?{onClick:B,onKeydown:V,onMousedown:q,onTouchstart:z}:{onClick:_.NS})),F=(0,i.Fl)((()=>({ref:T,class:"q-btn q-btn-item non-selectable no-outline "+c.value,style:d.value,...p.value,...N.value})));function B(t){if(null!==T.value){if(void 0!==t){if(!0===t.defaultPrevented)return;const n=document.activeElement;if("submit"===e.type&&n!==document.body&&!1===T.value.contains(n)&&!1===n.contains(T.value)){T.value.focus();const e=()=>{document.removeEventListener("keydown",_.NS,!0),document.removeEventListener("keyup",e,w),null!==T.value&&T.value.removeEventListener("blur",e,w)};document.addEventListener("keydown",_.NS,!0),document.addEventListener("keyup",e,w),T.value.addEventListener("blur",e,w)}}if(!0===f.value){const e=()=>{t.__qNavigate=!0,y(t)};n("click",t,e),!0!==t.defaultPrevented&&e()}else n("click",t)}}function V(e){null!==T.value&&(n("keydown",e),!0===(0,b.So)(e,[13,32])&&M!==T.value&&(null!==M&&W(),!0!==e.defaultPrevented&&(T.value.focus(),M=T.value,T.value.classList.add("q-btn--active"),document.addEventListener("keyup",H,!0),T.value.addEventListener("blur",H,w)),(0,_.NS)(e)))}function z(e){null!==T.value&&(n("touchstart",e),!0!==e.defaultPrevented&&(S!==T.value&&(null!==S&&W(),S=T.value,L=e.target,L.addEventListener("touchcancel",H,w),L.addEventListener("touchend",H,w)),A=!0,clearTimeout(D),D=setTimeout((()=>{A=!1}),200)))}function q(e){null!==T.value&&(e.qSkipRipple=!0===A,n("mousedown",e),!0!==e.defaultPrevented&&C!==T.value&&(null!==C&&W(),C=T.value,T.value.classList.add("q-btn--active"),document.addEventListener("mouseup",H,w)))}function H(e){if(null!==T.value&&(void 0===e||"blur"!==e.type||document.activeElement!==T.value)){if(void 0!==e&&"keyup"===e.type){if(M===T.value&&!0===(0,b.So)(e,[13,32])){const t=new MouseEvent("click",e);t.qKeyEvent=!0,!0===e.defaultPrevented&&(0,_.X$)(t),!0===e.cancelBubble&&(0,_.sT)(t),T.value.dispatchEvent(t),(0,_.NS)(e),e.qKeyEvent=!0}n("keyup",e)}W()}}function W(e){const t=k.value;!0===e||S!==T.value&&C!==T.value||null===t||t===document.activeElement||(t.setAttribute("tabindex",-1),t.focus()),S===T.value&&(null!==L&&(L.removeEventListener("touchcancel",H,w),L.removeEventListener("touchend",H,w)),S=L=null),C===T.value&&(document.removeEventListener("mouseup",H,w),C=null),M===T.value&&(document.removeEventListener("keyup",H,!0),null!==T.value&&T.value.removeEventListener("blur",H,w),M=null),null!==T.value&&T.value.classList.remove("q-btn--active")}function G(e){(0,_.NS)(e),e.qSkipRipple=!0}return(0,i.Jd)((()=>{W(!0)})),Object.assign(u,{click:B}),()=>{let n=[];void 0!==e.icon&&n.push((0,i.h)(a.Z,{name:e.icon,left:!1===e.stack&&!0===P.value,role:"img","aria-hidden":"true"})),!0===P.value&&n.push((0,i.h)("span",{class:"block"},[e.label])),n=(0,x.vs)(t.default,n),void 0!==e.iconRight&&!1===e.round&&n.push((0,i.h)(a.Z,{name:e.iconRight,right:!1===e.stack&&!0===P.value,role:"img","aria-hidden":"true"}));const r=[(0,i.h)("span",{class:"q-focus-helper",ref:k})];return!0===e.loading&&void 0!==e.percentage&&r.push((0,i.h)("span",{class:"q-btn__progress absolute-full overflow-hidden"+(!0===e.darkPercentage?" q-btn__progress--dark":"")},[(0,i.h)("span",{class:"q-btn__progress-indicator fit block",style:E.value})])),r.push((0,i.h)("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+h.value},n)),null!==e.loading&&r.push((0,i.h)(o.uT,{name:"q-transition--fade"},(()=>!0===e.loading?[(0,i.h)("span",{key:"loading",class:"absolute-full flex flex-center"},void 0!==t.loading?t.loading():[(0,i.h)(s.Z)])]:null))),(0,i.wy)((0,i.h)(v.value,F.value,r),[[l.Z,O.value,void 0,R.value]])}}})},151:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(3673),r=n(2236),o=n(908),a=n(7657);const s=(0,o.L)({name:"QCard",props:{...r.S,tag:{type:String,default:"div"},square:Boolean,flat:Boolean,bordered:Boolean},setup(e,{slots:t}){const n=(0,i.FN)(),o=(0,r.Z)(e,n.proxy.$q),s=(0,i.Fl)((()=>"q-card"+(!0===o.value?" q-card--dark q-dark":"")+(!0===e.bordered?" q-card--bordered":"")+(!0===e.square?" q-card--square no-border-radius":"")+(!0===e.flat?" q-card--flat no-shadow":"")));return()=>(0,i.h)(e.tag,{class:s.value},(0,a.KR)(t.default))}})},9367:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(3673),r=n(9992),o=n(908),a=n(7657);const s=(0,o.L)({name:"QCardActions",props:{...r.jO,vertical:Boolean},setup(e,{slots:t}){const n=(0,r.ZP)(e),o=(0,i.Fl)((()=>`q-card__actions ${n.value} q-card__actions--`+(!0===e.vertical?"vert column":"horiz row")));return()=>(0,i.h)("div",{class:o.value},(0,a.KR)(t.default))}})},5589:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(3673),r=n(908),o=n(7657);const a=(0,r.L)({name:"QCardSection",props:{tag:{type:String,default:"div"},horizontal:Boolean},setup(e,{slots:t}){const n=(0,i.Fl)((()=>"q-card__section q-card__section--"+(!0===e.horizontal?"horiz row no-wrap":"vert")));return()=>(0,i.h)(e.tag,{class:n.value},(0,o.KR)(t.default))}})},7030:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var i=n(3673),r=n(4554),o=n(860),a=n(2236),s=n(2417),l=n(908),u=n(4716),c=n(7657);const d={xs:8,sm:10,md:14,lg:20,xl:24},h=(0,l.L)({name:"QChip",props:{...a.S,...s.LU,dense:Boolean,icon:String,iconRight:String,iconRemove:String,iconSelected:String,label:[String,Number],color:String,textColor:String,modelValue:{type:Boolean,default:!0},selected:{type:Boolean,default:null},square:Boolean,outline:Boolean,clickable:Boolean,removable:Boolean,tabindex:[String,Number],disable:Boolean,ripple:{type:[Boolean,Object],default:!0}},emits:["update:modelValue","update:selected","remove","click"],setup(e,{slots:t,emit:n}){const{proxy:{$q:l}}=(0,i.FN)(),h=(0,a.Z)(e,l),p=(0,s.ZP)(e,d),f=(0,i.Fl)((()=>!0===e.selected||void 0!==e.icon)),g=(0,i.Fl)((()=>!0===e.selected?e.iconSelected||l.iconSet.chip.selected:e.icon)),v=(0,i.Fl)((()=>e.iconRemove||l.iconSet.chip.remove)),m=(0,i.Fl)((()=>!1===e.disable&&(!0===e.clickable||null!==e.selected))),y=(0,i.Fl)((()=>{const t=!0===e.outline&&e.color||e.textColor;return"q-chip row inline no-wrap items-center"+(!1===e.outline&&void 0!==e.color?` bg-${e.color}`:"")+(t?` text-${t} q-chip--colored`:"")+(!0===e.disable?" disabled":"")+(!0===e.dense?" q-chip--dense":"")+(!0===e.outline?" q-chip--outline":"")+(!0===e.selected?" q-chip--selected":"")+(!0===m.value?" q-chip--clickable cursor-pointer non-selectable q-hoverable":"")+(!0===e.square?" q-chip--square":"")+(!0===h.value?" q-chip--dark q-dark":"")})),x=(0,i.Fl)((()=>!0===e.disable?{tabindex:-1,"aria-disabled":"true"}:{tabindex:e.tabindex||0}));function _(e){13===e.keyCode&&b(e)}function b(t){e.disable||(n("update:selected",!e.selected),n("click",t))}function w(t){void 0!==t.keyCode&&13!==t.keyCode||((0,u.NS)(t),!1===e.disable&&(n("update:modelValue",!1),n("remove")))}function S(){const n=[];!0===m.value&&n.push((0,i.h)("div",{class:"q-focus-helper"})),!0===f.value&&n.push((0,i.h)(r.Z,{class:"q-chip__icon q-chip__icon--left",name:g.value}));const o=void 0!==e.label?[(0,i.h)("div",{class:"ellipsis"},[e.label])]:void 0;return n.push((0,i.h)("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},(0,c.pf)(t.default,o))),e.iconRight&&n.push((0,i.h)(r.Z,{class:"q-chip__icon q-chip__icon--right",name:e.iconRight})),!0===e.removable&&n.push((0,i.h)(r.Z,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:v.value,...x.value,onClick:w,onKeyup:w})),n}return()=>{if(!1===e.modelValue)return;const t={class:y.value,style:p.value};return!0===m.value&&Object.assign(t,x.value,{onClick:b,onKeyup:_}),(0,c.Jl)("div",t,S(),"ripple",!1!==e.ripple&&!0!==e.disable,(()=>[[o.Z,e.ripple]]))}}})},281:(e,t,n)=>{"use strict";n.d(t,{Z:()=>ae});n(3610),n(5363);var i=n(3673),r=n(1959),o=n(5777),a=n(9550),s=n(2236),l=n(2130),u=n(4716),c=n(782),d=n(7657);const h="q-slider__marker-labels",p=e=>({value:e}),f=({marker:e})=>(0,i.h)("div",{key:e.value,style:e.style,class:e.classes},e.label),g=[34,37,40,33,39,38],v={...s.S,...a.Fz,min:{type:Number,default:0},max:{type:Number,default:100},innerMin:Number,innerMax:Number,step:{type:Number,default:1,validator:e=>e>=0},snap:Boolean,vertical:Boolean,reverse:Boolean,hideSelection:Boolean,color:String,markerLabelsClass:String,label:Boolean,labelColor:String,labelTextColor:String,labelAlways:Boolean,switchLabelSide:Boolean,markers:[Boolean,Number],markerLabels:[Boolean,Array,Object,Function],switchMarkerLabelsSide:Boolean,trackImg:String,trackColor:String,innerTrackImg:String,innerTrackColor:String,selectionColor:String,selectionImg:String,thumbSize:{type:String,default:"20px"},trackSize:{type:String,default:"4px"},disable:Boolean,readonly:Boolean,dense:Boolean,tabindex:[String,Number],thumbColor:String,thumbPath:{type:String,default:"M 4, 10 a 6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"}},m=["pan","update:modelValue","change"];function y({updateValue:e,updatePosition:t,getDragging:n,formAttrs:v}){const{props:m,emit:y,slots:x,proxy:{$q:_}}=(0,i.FN)(),b=(0,s.Z)(m,_),w=(0,a.eX)(v),S=(0,r.iH)(!1),M=(0,r.iH)(!1),C=(0,r.iH)(!1),I=(0,r.iH)(!1),T=(0,i.Fl)((()=>!0===m.vertical?"--v":"--h")),k=(0,i.Fl)((()=>"-"+(!0===m.switchLabelSide?"switched":"standard"))),A=(0,i.Fl)((()=>!0===m.vertical?!0===m.reverse:m.reverse!==(!0===_.lang.rtl))),D=(0,i.Fl)((()=>!0===isNaN(m.innerMin)||m.innerMin!0===isNaN(m.innerMax)||m.innerMax>m.max?m.max:m.innerMax)),P=(0,i.Fl)((()=>!0!==m.disable&&!0!==m.readonly&&D.value(String(m.step).trim().split(".")[1]||"").length)),R=(0,i.Fl)((()=>0===m.step?1:m.step)),E=(0,i.Fl)((()=>!0===P.value?m.tabindex||0:-1)),N=(0,i.Fl)((()=>m.max-m.min)),F=(0,i.Fl)((()=>L.value-D.value)),B=(0,i.Fl)((()=>ae(D.value))),V=(0,i.Fl)((()=>ae(L.value))),z=(0,i.Fl)((()=>!0===m.vertical?!0===A.value?"bottom":"top":!0===A.value?"right":"left")),q=(0,i.Fl)((()=>!0===m.vertical?"height":"width")),H=(0,i.Fl)((()=>!0===m.vertical?"width":"height")),W=(0,i.Fl)((()=>!0===m.vertical?"vertical":"horizontal")),G=(0,i.Fl)((()=>{const e={role:"slider","aria-valuemin":D.value,"aria-valuemax":L.value,"aria-orientation":W.value,"data-step":m.step};return!0===m.disable?e["aria-disabled"]="true":!0===m.readonly&&(e["aria-readonly"]="true"),e})),U=(0,i.Fl)((()=>`q-slider q-slider${T.value} q-slider--${!0===S.value?"":"in"}active inline no-wrap `+(!0===m.vertical?"row":"column")+(!0===m.disable?" disabled":" q-slider--enabled"+(!0===P.value?" q-slider--editable":""))+("both"===C.value?" q-slider--focus":"")+(m.label||!0===m.labelAlways?" q-slider--label":"")+(!0===m.labelAlways?" q-slider--label-always":"")+(!0===b.value?" q-slider--dark":"")+(!0===m.dense?" q-slider--dense q-slider--dense"+T.value:"")));function j(e){const t="q-slider__"+e;return`${t} ${t}${T.value} ${t}${T.value}${k.value}`}function Z(e){const t="q-slider__"+e;return`${t} ${t}${T.value}`}const $=(0,i.Fl)((()=>{const e=m.selectionColor||m.color;return"q-slider__selection absolute"+(void 0!==e?` text-${e}`:"")})),Y=(0,i.Fl)((()=>Z("markers")+" absolute overflow-hidden")),X=(0,i.Fl)((()=>Z("track-container"))),K=(0,i.Fl)((()=>j("pin"))),J=(0,i.Fl)((()=>j("label"))),Q=(0,i.Fl)((()=>j("text-container"))),ee=(0,i.Fl)((()=>j("marker-labels-container")+(void 0!==m.markerLabelsClass?` ${m.markerLabelsClass}`:""))),te=(0,i.Fl)((()=>"q-slider__track relative-position no-outline"+(void 0!==m.trackColor?` bg-${m.trackColor}`:""))),ne=(0,i.Fl)((()=>{const e={[H.value]:m.trackSize};return void 0!==m.trackImg&&(e.backgroundImage=`url(${m.trackImg}) !important`),e})),ie=(0,i.Fl)((()=>"q-slider__inner absolute"+(void 0!==m.innerTrackColor?` bg-${m.innerTrackColor}`:""))),re=(0,i.Fl)((()=>{const e={[z.value]:100*B.value+"%",[q.value]:100*(V.value-B.value)+"%"};return void 0!==m.innerTrackImg&&(e.backgroundImage=`url(${m.innerTrackImg}) !important`),e}));function oe(e){const{min:t,max:n,step:i}=m;let r=t+e*(n-t);if(i>0){const e=(r-t)%i;r+=(Math.abs(e)>=i/2?(e<0?-1:1)*i:0)-e}return O.value>0&&(r=parseFloat(r.toFixed(O.value))),(0,l.vX)(r,D.value,L.value)}function ae(e){return 0===N.value?0:(e-m.min)/N.value}function se(e,t){const n=(0,u.FK)(e),i=!0===m.vertical?(0,l.vX)((n.top-t.top)/t.height,0,1):(0,l.vX)((n.left-t.left)/t.width,0,1);return(0,l.vX)(!0===A.value?1-i:i,B.value,V.value)}const le=(0,i.Fl)((()=>!0===(0,c.hj)(m.markers)?m.markers:R.value)),ue=(0,i.Fl)((()=>{const e=[],t=le.value,n=m.max;let i=m.min;do{e.push(i),i+=t}while(i{const e=` ${h}${T.value}-`;return h+`${e}${!0===m.switchMarkerLabelsSide?"switched":"standard"}`+`${e}${!0===A.value?"rtl":"ltr"}`})),de=(0,i.Fl)((()=>!1===m.markerLabels?null:fe(m.markerLabels).map(((e,t)=>({index:t,value:e.value,label:e.label||e.value,classes:ce.value+(void 0!==e.classes?" "+e.classes:""),style:{...ge(e.value),...e.style||{}}}))))),he=(0,i.Fl)((()=>({markerList:de.value,markerMap:ve.value,classes:ce.value,getStyle:ge}))),pe=(0,i.Fl)((()=>{if(0!==F.value){const e=100*le.value/F.value;return{...re.value,backgroundSize:!0===m.vertical?`2px ${e}%`:`${e}% 2px`}}return null}));function fe(e){if(!1===e)return null;if(!0===e)return ue.value.map(p);if("function"===typeof e)return ue.value.map((t=>{const n=e(t);return!0===(0,c.Kn)(n)?{...n,value:t}:{value:t,label:n}}));const t=({value:e})=>e>=m.min&&e<=m.max;return!0===Array.isArray(e)?e.map((e=>!0===(0,c.Kn)(e)?e:{value:e})).filter(t):Object.keys(e).map((t=>{const n=e[t],i=Number(t);return!0===(0,c.Kn)(n)?{...n,value:i}:{value:i,label:n}})).filter(t)}function ge(e){return{[z.value]:100*(e-m.min)/N.value+"%"}}const ve=(0,i.Fl)((()=>{if(!1===m.markerLabels)return null;const e={};return de.value.forEach((t=>{e[t.value]=t})),e}));function me(){if(void 0!==x["marker-label-group"])return x["marker-label-group"](he.value);const e=x["marker-label"]||f;return de.value.map((t=>e({marker:t,...he.value})))}const ye=(0,i.Fl)((()=>[[o.Z,xe,void 0,{[W.value]:!0,prevent:!0,stop:!0,mouse:!0,mouseAllDir:!0}]]));function xe(i){!0===i.isFinal?(void 0!==I.value&&(t(i.evt),!0===i.touch&&e(!0),I.value=void 0,y("pan","end")),S.value=!1,C.value=!1):!0===i.isFirst?(I.value=n(i.evt),t(i.evt),e(),S.value=!0,y("pan","start")):(t(i.evt),e())}function _e(){C.value=!1}function be(i){t(i,n(i)),e(),M.value=!0,S.value=!0,document.addEventListener("mouseup",we,!0)}function we(){M.value=!1,S.value=!1,e(!0),_e(),document.removeEventListener("mouseup",we,!0)}function Se(i){t(i,n(i)),e(!0)}function Me(t){g.includes(t.keyCode)&&e(!0)}function Ce(e){if(!0===m.vertical)return null;const t=_.lang.rtl!==m.reverse?1-e:e;return{transform:`translateX(calc(${2*t-1} * ${m.thumbSize} / 2 + ${50-100*t}%))`}}function Ie(e){const t=(0,i.Fl)((()=>!1!==M.value||C.value!==e.focusValue&&"both"!==C.value?"":" q-slider--focus")),n=(0,i.Fl)((()=>`q-slider__thumb q-slider__thumb${T.value} q-slider__thumb${T.value}-${!0===A.value?"rtl":"ltr"} absolute non-selectable`+t.value+(void 0!==e.thumbColor.value?` text-${e.thumbColor.value}`:""))),r=(0,i.Fl)((()=>({width:m.thumbSize,height:m.thumbSize,[z.value]:100*e.ratio.value+"%",zIndex:C.value===e.focusValue?2:void 0}))),o=(0,i.Fl)((()=>void 0!==e.labelColor.value?` text-${e.labelColor.value}`:"")),a=(0,i.Fl)((()=>Ce(e.ratio.value))),s=(0,i.Fl)((()=>"q-slider__text"+(void 0!==e.labelTextColor.value?` text-${e.labelTextColor.value}`:"")));return()=>{const t=[(0,i.h)("svg",{class:"q-slider__thumb-shape absolute-full",viewBox:"0 0 20 20","aria-hidden":"true"},[(0,i.h)("path",{d:m.thumbPath})]),(0,i.h)("div",{class:"q-slider__focus-ring fit"})];return!0!==m.label&&!0!==m.labelAlways||(t.push((0,i.h)("div",{class:K.value+" absolute fit no-pointer-events"+o.value},[(0,i.h)("div",{class:J.value,style:{minWidth:m.thumbSize}},[(0,i.h)("div",{class:Q.value,style:a.value},[(0,i.h)("span",{class:s.value},e.label.value)])])])),void 0!==m.name&&!0!==m.disable&&w(t,"push")),(0,i.h)("div",{class:n.value,style:r.value,...e.getNodeData()},t)}}function Te(e,t,n,r){const o=[];"transparent"!==m.innerTrackColor&&o.push((0,i.h)("div",{key:"inner",class:ie.value,style:re.value})),"transparent"!==m.selectionColor&&o.push((0,i.h)("div",{key:"selection",class:$.value,style:e.value})),!1!==m.markers&&o.push((0,i.h)("div",{key:"marker",class:Y.value,style:pe.value})),r(o);const a=[(0,d.Jl)("div",{key:"trackC",class:X.value,tabindex:t.value,...n.value},[(0,i.h)("div",{class:te.value,style:ne.value},o)],"slide",P.value,(()=>ye.value))];if(!1!==m.markerLabels){const e=!0===m.switchMarkerLabelsSide?"unshift":"push";a[e]((0,i.h)("div",{key:"markerL",class:ee.value},me()))}return a}return(0,i.Jd)((()=>{document.removeEventListener("mouseup",we,!0)})),{state:{active:S,focus:C,preventFocus:M,dragging:I,editable:P,classes:U,tabindex:E,attributes:G,step:R,decimals:O,trackLen:N,innerMin:D,innerMinRatio:B,innerMax:L,innerMaxRatio:V,positionProp:z,sizeProp:q,isReversed:A},methods:{onActivate:be,onMobileClick:Se,onBlur:_e,onKeyup:Me,getContent:Te,getThumbRenderFn:Ie,convertRatioToModel:oe,convertModelToRatio:ae,getDraggingRatio:se}}}var x=n(908);const _=()=>({}),b=(0,x.L)({name:"QSlider",props:{...v,modelValue:{required:!0,default:null,validator:e=>"number"===typeof e||null===e},labelValue:[String,Number]},emits:m,setup(e,{emit:t}){const{proxy:{$q:n}}=(0,i.FN)(),{state:o,methods:s}=y({updateValue:w,updatePosition:M,getDragging:S,formAttrs:(0,a.Vt)(e)}),c=(0,r.iH)(null),d=(0,r.iH)(0),h=(0,r.iH)(0);function p(){h.value=null===e.modelValue?o.innerMin.value:(0,l.vX)(e.modelValue,o.innerMin.value,o.innerMax.value)}(0,i.YP)((()=>`${e.modelValue}|${o.innerMin.value}|${o.innerMax.value}`),p),p();const f=(0,i.Fl)((()=>s.convertModelToRatio(h.value))),v=(0,i.Fl)((()=>!0===o.active.value?d.value:f.value)),m=(0,i.Fl)((()=>{const t={[o.positionProp.value]:100*o.innerMinRatio.value+"%",[o.sizeProp.value]:100*(v.value-o.innerMinRatio.value)+"%"};return void 0!==e.selectionImg&&(t.backgroundImage=`url(${e.selectionImg}) !important`),t})),x=s.getThumbRenderFn({focusValue:!0,getNodeData:_,ratio:v,label:(0,i.Fl)((()=>void 0!==e.labelValue?e.labelValue:h.value)),thumbColor:(0,i.Fl)((()=>e.thumbColor||e.color)),labelColor:(0,i.Fl)((()=>e.labelColor)),labelTextColor:(0,i.Fl)((()=>e.labelTextColor))}),b=(0,i.Fl)((()=>!0!==o.editable.value?{}:!0===n.platform.is.mobile?{onClick:s.onMobileClick}:{onMousedown:s.onActivate,onFocus:C,onBlur:s.onBlur,onKeydown:I,onKeyup:s.onKeyup}));function w(n){h.value!==e.modelValue&&t("update:modelValue",h.value),!0===n&&t("change",h.value)}function S(){return c.value.getBoundingClientRect()}function M(t,n=o.dragging.value){const i=s.getDraggingRatio(t,n);h.value=s.convertRatioToModel(i),d.value=!0!==e.snap||0===e.step?i:s.convertModelToRatio(h.value)}function C(){o.focus.value=!0}function I(e){if(!g.includes(e.keyCode))return;(0,u.NS)(e);const t=([34,33].includes(e.keyCode)?10:1)*o.step.value,n=([34,37,40].includes(e.keyCode)?-1:1)*(!0===o.isReversed.value?-1:1)*t;h.value=(0,l.vX)(parseFloat((h.value+n).toFixed(o.decimals.value)),o.innerMin.value,o.innerMax.value),w()}return()=>{const t=s.getContent(m,o.tabindex,b,(e=>{e.push(x())}));return(0,i.h)("div",{ref:c,class:o.classes.value+(null===e.modelValue?" q-slider--no-value":""),...o.attributes.value,"aria-valuenow":e.modelValue},t)}}});var w=n(4554),S=(n(71),n(5151)),M=n(416),C=n(4955),I=n(2547),T=n(5811);function k(e,t,n){const i=!0===n?["left","right"]:["top","bottom"];return`absolute-${!0===t?i[0]:i[1]}${e?` text-${e}`:""}`}const A=["left","center","right","justify"],D=()=>{},L=(0,x.L)({name:"QTabs",props:{modelValue:[Number,String],align:{type:String,default:"center",validator:e=>A.includes(e)},breakpoint:{type:[String,Number],default:600},vertical:Boolean,shrink:Boolean,stretch:Boolean,activeClass:String,activeColor:String,activeBgColor:String,indicatorColor:String,leftIcon:String,rightIcon:String,outsideArrows:Boolean,mobileArrows:Boolean,switchIndicator:Boolean,narrowIndicator:Boolean,inlineLabel:Boolean,noCaps:Boolean,dense:Boolean,contentClass:String,"onUpdate:modelValue":[Function,Array]},setup(e,{slots:t,emit:n}){const o=(0,i.FN)(),{proxy:{$q:a}}=o,{registerTick:s}=(0,M.Z)(),{registerTimeout:l,removeTimeout:c}=(0,C.Z)(),{registerTimeout:h}=(0,C.Z)(),p=(0,r.iH)(null),f=(0,r.iH)(null),g=(0,r.iH)(e.modelValue),v=(0,r.iH)(!1),m=(0,r.iH)(!0),y=(0,r.iH)(!1),x=(0,r.iH)(!1),_=(0,i.Fl)((()=>!0===a.platform.is.desktop||!0===e.mobileArrows)),b=[],A=(0,r.iH)(!1);let L,P,O,R=!1,E=!0===_.value?$:u.ZT;const N=(0,i.Fl)((()=>({activeClass:e.activeClass,activeColor:e.activeColor,activeBgColor:e.activeBgColor,indicatorClass:k(e.indicatorColor,e.switchIndicator,e.vertical),narrowIndicator:e.narrowIndicator,inlineLabel:e.inlineLabel,noCaps:e.noCaps}))),F=(0,i.Fl)((()=>{const t=!0===v.value?"left":!0===x.value?"justify":e.align;return`q-tabs__content--align-${t}`})),B=(0,i.Fl)((()=>`q-tabs row no-wrap items-center q-tabs--${!0===v.value?"":"not-"}scrollable q-tabs--`+(!0===e.vertical?"vertical":"horizontal")+" q-tabs__arrows--"+(!0===_.value&&!0===e.outsideArrows?"outside":"inside")+(!0===e.dense?" q-tabs--dense":"")+(!0===e.shrink?" col-shrink":"")+(!0===e.stretch?" self-stretch":""))),V=(0,i.Fl)((()=>"q-tabs__content row no-wrap items-center self-stretch hide-scrollbar relative-position "+F.value+(void 0!==e.contentClass?` ${e.contentClass}`:"")+(!0===a.platform.is.mobile?" scroll":""))),z=(0,i.Fl)((()=>!0===e.vertical?{container:"height",content:"offsetHeight",scroll:"scrollHeight"}:{container:"width",content:"offsetWidth",scroll:"scrollWidth"})),q=(0,i.Fl)((()=>!0!==e.vertical&&!0===a.lang.rtl)),H=(0,i.Fl)((()=>!1===T.e&&!0===q.value));function W({name:t,setCurrent:i,skipEmit:r,fromRoute:o}){g.value!==t&&(!0!==r&&n("update:modelValue",t),!0!==i&&void 0!==e["onUpdate:modelValue"]||(j(g.value,t),g.value=t)),void 0!==o&&(R=o)}function G(){s((()=>{!0!==o.isDeactivated&&!0!==o.isUnmounted&&U({width:p.value.offsetWidth,height:p.value.offsetHeight})}))}function U(t){if(void 0===z.value||null===f.value)return;const n=t[z.value.container],r=Math.min(f.value[z.value.scroll],Array.prototype.reduce.call(f.value.children,((e,t)=>e+(t[z.value.content]||0)),0)),o=n>0&&r>n;v.value!==o&&(v.value=o),!0===o&&(0,i.Y3)(E);const a=ne.name.value===t)):null,o=void 0!==n&&null!==n&&""!==n?b.find((e=>e.name.value===n)):null;if(r&&o){const t=r.tabIndicatorRef.value,n=o.tabIndicatorRef.value;clearTimeout(L),t.style.transition="none",t.style.transform="none",n.style.transition="none",n.style.transform="none";const a=t.getBoundingClientRect(),s=n.getBoundingClientRect();n.style.transform=!0===e.vertical?`translate3d(0,${a.top-s.top}px,0) scale3d(1,${s.height?a.height/s.height:1},1)`:`translate3d(${a.left-s.left}px,0,0) scale3d(${s.width?a.width/s.width:1},1,1)`,(0,i.Y3)((()=>{L=setTimeout((()=>{n.style.transition="transform .25s cubic-bezier(.4, 0, .2, 1)",n.style.transform="none"}),70)}))}o&&!0===v.value&&Z(o.rootRef.value)}function Z(t){const{left:n,width:i,top:r,height:o}=f.value.getBoundingClientRect(),a=t.getBoundingClientRect();let s=!0===e.vertical?a.top-r:a.left-n;if(s<0)return f.value[!0===e.vertical?"scrollTop":"scrollLeft"]+=Math.floor(s),void E();s+=!0===e.vertical?a.height-o:a.width-i,s>0&&(f.value[!0===e.vertical?"scrollTop":"scrollLeft"]+=Math.ceil(s),E())}function $(){const t=f.value;if(null!==t){const n=t.getBoundingClientRect(),i=!0===e.vertical?t.scrollTop:Math.abs(t.scrollLeft);!0===q.value?(m.value=Math.ceil(i+n.width)0):(m.value=i>0,y.value=!0===e.vertical?Math.ceil(i+n.height){!0===te(e)&&J()}),5)}function X(){Y(!0===H.value?Number.MAX_SAFE_INTEGER:0)}function K(){Y(!0===H.value?0:Number.MAX_SAFE_INTEGER)}function J(){clearInterval(P)}function Q(t,n){const i=Array.prototype.filter.call(f.value.children,(e=>e===n||e.matches&&!0===e.matches(".q-tab.q-focusable"))),r=i.length;if(0===r)return;if(36===t)return Z(i[0]),!0;if(35===t)return Z(i[r-1]),!0;const o=t===(!0===e.vertical?38:37),a=t===(!0===e.vertical?40:39),s=!0===o?-1:!0===a?1:void 0;if(void 0!==s){const e=!0===q.value?-1:1,t=i.indexOf(n)+s*e;return t>=0&&te.modelValue),(e=>{W({name:e,setCurrent:!0,skipEmit:!0})})),(0,i.YP)((()=>e.outsideArrows),(()=>{(0,i.Y3)(G())})),(0,i.YP)(_,(e=>{E=!0===e?$:u.ZT,(0,i.Y3)(G())}));const ee=(0,i.Fl)((()=>!0===H.value?{get:e=>Math.abs(e.scrollLeft),set:(e,t)=>{e.scrollLeft=-t}}:!0===e.vertical?{get:e=>e.scrollTop,set:(e,t)=>{e.scrollTop=t}}:{get:e=>e.scrollLeft,set:(e,t)=>{e.scrollLeft=t}}));function te(e){const t=f.value,{get:n,set:i}=ee.value;let r=!1,o=n(t);const a=e=e)&&(r=!0,o=e),i(t,o),E(),r}function ne(){return b.filter((e=>void 0!==e.routerProps&&!0===e.routerProps.hasRouterLink.value))}function ie(){let e=null,t=R;const n={matchedLen:0,hrefLen:0,exact:!1,found:!1},{hash:i}=o.proxy.$route,r=g.value;let a=!0===t?D:e=>{r===e.name.value&&(t=!0,a=D)};const s=ne();for(const o of s){const t=!0===o.routerProps.exact.value;if(!0!==o.routerProps[!0===t?"linkIsExactActive":"linkIsActive"].value||!0===n.exact&&!0!==t){a(o);continue}const r=o.routerProps.linkRoute.value,s=r.hash;if(!0===t){if(i===s){e=o.name.value;break}if(""!==i&&""!==s){a(o);continue}}const l=r.matched.length,u=r.href.length-s.length;(l===n.matchedLen?u>n.hrefLen:l>n.matchedLen)?(e=o.name.value,Object.assign(n,{matchedLen:l,hrefLen:u,exact:t})):a(o)}!0!==t&&null===e||W({name:e,setCurrent:!0,fromRoute:!0})}function re(e){if(c(),!0!==A.value&&null!==p.value&&e.target&&"function"===typeof e.target.closest){const t=e.target.closest(".q-tab");t&&!0===p.value.contains(t)&&(A.value=!0)}}function oe(){l((()=>{A.value=!1}),30)}function ae(){!0!==ue.avoidRouteWatcher&&h(ie)}function se(e){b.push(e);const t=ne();t.length>0&&(void 0===O&&(O=(0,i.YP)((()=>o.proxy.$route),ae)),ae())}function le(e){if(b.splice(b.indexOf(e),1),void 0!==O){const e=ne();0===e.length&&(O(),O=void 0),ae()}}const ue={currentModel:g,tabProps:N,hasFocus:A,registerTab:se,unregisterTab:le,verifyRouteModel:ae,updateModel:W,recalculateScroll:G,onKbdNavigate:Q,avoidRouteWatcher:!1};(0,i.JJ)(I.Nd,ue),(0,i.Jd)((()=>{clearTimeout(L),void 0!==O&&O()}));let ce=!1;return(0,i.se)((()=>{ce=!0})),(0,i.dl)((()=>{!0===ce&&G()})),()=>{const n=[(0,i.h)(S.Z,{onResize:U}),(0,i.h)("div",{ref:f,class:V.value,onScroll:E},(0,d.KR)(t.default))];return!0===_.value&&n.push((0,i.h)(w.Z,{class:"q-tabs__arrow q-tabs__arrow--left absolute q-tab__icon"+(!0===m.value?"":" q-tabs__arrow--faded"),name:e.leftIcon||a.iconSet.tabs[!0===e.vertical?"up":"left"],onMousedown:X,onTouchstartPassive:X,onMouseup:J,onMouseleave:J,onTouchend:J}),(0,i.h)(w.Z,{class:"q-tabs__arrow q-tabs__arrow--right absolute q-tab__icon"+(!0===y.value?"":" q-tabs__arrow--faded"),name:e.rightIcon||a.iconSet.tabs[!0===e.vertical?"down":"right"],onMousedown:K,onTouchstartPassive:K,onMouseup:J,onMouseleave:J,onTouchend:J})),(0,i.h)("div",{ref:p,class:B.value,role:"tablist",onFocusin:re,onFocusout:oe},n)}}});var P=n(860),O=n(1436);let R=0;const E=["click","keydown"],N={icon:String,label:[Number,String],alert:[Boolean,String],alertIcon:String,name:{type:[Number,String],default:()=>"t_"+R++},noCaps:Boolean,tabindex:[String,Number],disable:Boolean,contentClass:String,ripple:{type:[Boolean,Object],default:!0}};function F(e,t,n,o){const a=(0,i.f3)(I.Nd,(()=>{console.error("QTab/QRouteTab component needs to be child of QTabs")})),{proxy:s}=(0,i.FN)(),l=(0,r.iH)(null),c=(0,r.iH)(null),h=(0,r.iH)(null),p=(0,i.Fl)((()=>!0!==e.disable&&!1!==e.ripple&&Object.assign({keyCodes:[13,32],early:!0},!0===e.ripple?{}:e.ripple))),f=(0,i.Fl)((()=>a.currentModel.value===e.name)),g=(0,i.Fl)((()=>"q-tab relative-position self-stretch flex flex-center text-center"+(!0===f.value?" q-tab--active"+(a.tabProps.value.activeClass?" "+a.tabProps.value.activeClass:"")+(a.tabProps.value.activeColor?` text-${a.tabProps.value.activeColor}`:"")+(a.tabProps.value.activeBgColor?` bg-${a.tabProps.value.activeBgColor}`:""):" q-tab--inactive")+(e.icon&&e.label&&!1===a.tabProps.value.inlineLabel?" q-tab--full":"")+(!0===e.noCaps||!0===a.tabProps.value.noCaps?" q-tab--no-caps":"")+(!0===e.disable?" disabled":" q-focusable q-hoverable cursor-pointer")+(void 0!==o&&""!==o.linkClass.value?` ${o.linkClass.value}`:""))),v=(0,i.Fl)((()=>"q-tab__content self-stretch flex-center relative-position q-anchor--skip non-selectable "+(!0===a.tabProps.value.inlineLabel?"row no-wrap q-tab__content--inline":"column")+(void 0!==e.contentClass?` ${e.contentClass}`:""))),m=(0,i.Fl)((()=>!0===e.disable||!0===a.hasFocus.value?-1:e.tabindex||0));function y(t,i){if(!0!==i&&null!==l.value&&l.value.focus(),!0!==e.disable){let i;if(void 0!==o){if(!0!==o.hasRouterLink.value)return void n("click",t);i=()=>{t.__qNavigate=!0,a.avoidRouteWatcher=!0;const n=o.navigateToRouterLink(t);!1===n?a.avoidRouteWatcher=!1:n.then((t=>{a.avoidRouteWatcher=!1,void 0===t&&a.updateModel({name:e.name,fromRoute:!0})}))}}else i=()=>{a.updateModel({name:e.name,fromRoute:!1})};n("click",t,i),!0!==t.defaultPrevented&&i()}}function x(e){(0,O.So)(e,[13,32])?y(e,!0):!0!==(0,O.Wm)(e)&&e.keyCode>=35&&e.keyCode<=40&&!0!==e.altKey&&!0!==e.metaKey&&!0===a.onKbdNavigate(e.keyCode,s.$el)&&(0,u.NS)(e),n("keydown",e)}function _(){const n=a.tabProps.value.narrowIndicator,r=[],o=(0,i.h)("div",{ref:h,class:["q-tab__indicator",a.tabProps.value.indicatorClass]});void 0!==e.icon&&r.push((0,i.h)(w.Z,{class:"q-tab__icon",name:e.icon})),void 0!==e.label&&r.push((0,i.h)("div",{class:"q-tab__label"},e.label)),!1!==e.alert&&r.push(void 0!==e.alertIcon?(0,i.h)(w.Z,{class:"q-tab__alert-icon",color:!0!==e.alert?e.alert:void 0,name:e.alertIcon}):(0,i.h)("div",{class:"q-tab__alert"+(!0!==e.alert?` text-${e.alert}`:"")})),!0===n&&r.push(o);const s=[(0,i.h)("div",{class:"q-focus-helper",tabindex:-1,ref:l}),(0,i.h)("div",{class:v.value},(0,d.vs)(t.default,r))];return!1===n&&s.push(o),s}const b={name:(0,i.Fl)((()=>e.name)),rootRef:c,tabIndicatorRef:h,routerProps:o};function S(t,n){const r={ref:c,class:g.value,tabindex:m.value,role:"tab","aria-selected":!0===f.value?"true":"false","aria-disabled":!0===e.disable?"true":void 0,onClick:y,onKeydown:x,...n};return(0,i.wy)((0,i.h)(t,r,_()),[[P.Z,p.value]])}return(0,i.Jd)((()=>{a.unregisterTab(b),a.recalculateScroll()})),(0,i.bv)((()=>{a.registerTab(b),a.recalculateScroll()})),{renderTab:S,$tabs:a}}const B=(0,x.L)({name:"QTab",props:N,emits:E,setup(e,{slots:t,emit:n}){const{renderTab:i}=F(e,t,n);return()=>i("div")}});var V=n(8880),z=n(4688),q=n(7801),H=n(9725);function W(e){const t=[.06,6,50];return"string"===typeof e&&e.length&&e.split(":").forEach(((e,n)=>{const i=parseFloat(e);i&&(t[n]=i)})),t}const G=(0,x.f)({name:"touch-swipe",beforeMount(e,{value:t,arg:n,modifiers:i}){if(!0!==i.mouse&&!0!==z.Lp.has.touch)return;const r=!0===i.mouseCapture?"Capture":"",o={handler:t,sensitivity:W(n),direction:(0,q.R)(i),noop:u.ZT,mouseStart(e){(0,q.n)(e,o)&&(0,u.du)(e)&&((0,u.M0)(o,"temp",[[document,"mousemove","move",`notPassive${r}`],[document,"mouseup","end","notPassiveCapture"]]),o.start(e,!0))},touchStart(e){if((0,q.n)(e,o)){const t=e.target;(0,u.M0)(o,"temp",[[t,"touchmove","move","notPassiveCapture"],[t,"touchcancel","end","notPassiveCapture"],[t,"touchend","end","notPassiveCapture"]]),o.start(e)}},start(t,n){!0===z.Lp.is.firefox&&(0,u.Jf)(e,!0);const i=(0,u.FK)(t);o.event={x:i.left,y:i.top,time:Date.now(),mouse:!0===n,dir:!1}},move(e){if(void 0===o.event)return;if(!1!==o.event.dir)return void(0,u.NS)(e);const t=Date.now()-o.event.time;if(0===t)return;const n=(0,u.FK)(e),i=n.left-o.event.x,r=Math.abs(i),a=n.top-o.event.y,s=Math.abs(a);if(!0!==o.event.mouse){if(ro.sensitivity[0]&&(o.event.dir=a<0?"up":"down"),!0===o.direction.horizontal&&r>s&&s<100&&l>o.sensitivity[0]&&(o.event.dir=i<0?"left":"right"),!0===o.direction.up&&ro.sensitivity[0]&&(o.event.dir="up"),!0===o.direction.down&&r0&&r<100&&c>o.sensitivity[0]&&(o.event.dir="down"),!0===o.direction.left&&r>s&&i<0&&s<100&&l>o.sensitivity[0]&&(o.event.dir="left"),!0===o.direction.right&&r>s&&i>0&&s<100&&l>o.sensitivity[0]&&(o.event.dir="right"),!1!==o.event.dir?((0,u.NS)(e),!0===o.event.mouse&&(document.body.classList.add("no-pointer-events--children"),document.body.classList.add("non-selectable"),(0,H.M)(),o.styleCleanup=e=>{o.styleCleanup=void 0,document.body.classList.remove("non-selectable");const t=()=>{document.body.classList.remove("no-pointer-events--children")};!0===e?setTimeout(t,50):t()}),o.handler({evt:e,touch:!0!==o.event.mouse,mouse:o.event.mouse,direction:o.event.dir,duration:t,distance:{x:r,y:s}})):o.end(e)},end(t){void 0!==o.event&&((0,u.ul)(o,"temp"),!0===z.Lp.is.firefox&&(0,u.Jf)(e,!1),void 0!==o.styleCleanup&&o.styleCleanup(!0),void 0!==t&&!1!==o.event.dir&&(0,u.NS)(t),o.event=void 0)}};e.__qtouchswipe=o,!0===i.mouse&&(0,u.M0)(o,"main",[[e,"mousedown","mouseStart",`passive${r}`]]),!0===z.Lp.has.touch&&(0,u.M0)(o,"main",[[e,"touchstart","touchStart","passive"+(!0===i.capture?"Capture":"")],[e,"touchmove","noop","notPassiveCapture"]])},updated(e,t){const n=e.__qtouchswipe;void 0!==n&&(t.oldValue!==t.value&&("function"!==typeof t.value&&n.end(),n.handler=t.value),n.direction=(0,q.R)(t.modifiers))},beforeUnmount(e){const t=e.__qtouchswipe;void 0!==t&&((0,u.ul)(t,"main"),(0,u.ul)(t,"temp"),!0===z.Lp.is.firefox&&(0,u.Jf)(e,!1),void 0!==t.styleCleanup&&t.styleCleanup(),delete e.__qtouchswipe)}});function U(){const e=new Map;return{getCache:function(t,n){return void 0===e[t]?e[t]=n:e[t]},getCacheWithFn:function(t,n){return void 0===e[t]?e[t]=n():e[t]}}}var j=n(7445);const Z={name:{required:!0},disable:Boolean},$={setup(e,{slots:t}){return()=>(0,i.h)("div",{class:"q-panel scroll",role:"tabpanel"},(0,d.KR)(t.default))}},Y={modelValue:{required:!0},animated:Boolean,infinite:Boolean,swipeable:Boolean,vertical:Boolean,transitionPrev:String,transitionNext:String,transitionDuration:{type:[String,Number],default:300},keepAlive:Boolean,keepAliveInclude:[String,Array,RegExp],keepAliveExclude:[String,Array,RegExp],keepAliveMax:Number},X=["update:modelValue","before-transition","transition"];function K(){const{props:e,emit:t,proxy:n}=(0,i.FN)(),{getCacheWithFn:o}=U();let a,s;const l=(0,r.iH)(null),u=(0,r.iH)(null);function c(t){const i=!0===e.vertical?"up":"left";I((!0===n.$q.lang.rtl?-1:1)*(t.direction===i?1:-1))}const h=(0,i.Fl)((()=>[[G,c,void 0,{horizontal:!0!==e.vertical,vertical:e.vertical,mouse:!0}]])),p=(0,i.Fl)((()=>e.transitionPrev||"slide-"+(!0===e.vertical?"down":"right"))),f=(0,i.Fl)((()=>e.transitionNext||"slide-"+(!0===e.vertical?"up":"left"))),g=(0,i.Fl)((()=>`--q-transition-duration: ${e.transitionDuration}ms`)),v=(0,i.Fl)((()=>"string"===typeof e.modelValue||"number"===typeof e.modelValue?e.modelValue:String(e.modelValue))),m=(0,i.Fl)((()=>({include:e.keepAliveInclude,exclude:e.keepAliveExclude,max:e.keepAliveMax}))),y=(0,i.Fl)((()=>void 0!==e.keepAliveInclude||void 0!==e.keepAliveExclude));function x(){I(1)}function _(){I(-1)}function b(e){t("update:modelValue",e)}function w(e){return void 0!==e&&null!==e&&""!==e}function S(e){return a.findIndex((t=>t.props.name===e&&""!==t.props.disable&&!0!==t.props.disable))}function M(){return a.filter((e=>""!==e.props.disable&&!0!==e.props.disable))}function C(t){const n=0!==t&&!0===e.animated&&-1!==l.value?"q-transition--"+(-1===t?p.value:f.value):null;u.value!==n&&(u.value=n)}function I(n,i=l.value){let r=i+n;while(r>-1&&r{s=!1}));r+=n}!0===e.infinite&&a.length>0&&-1!==i&&i!==a.length&&I(n,-1===n?a.length:-1)}function T(){const t=S(e.modelValue);return l.value!==t&&(l.value=t),!0}function k(){const t=!0===w(e.modelValue)&&T()&&a[l.value];return!0===e.keepAlive?[(0,i.h)(i.Ob,m.value,[(0,i.h)(!0===y.value?o(v.value,(()=>({...$,name:v.value}))):$,{key:v.value,style:g.value},(()=>t))])]:[(0,i.h)("div",{class:"q-panel scroll",style:g.value,key:v.value,role:"tabpanel"},[t])]}function A(){if(0!==a.length)return!0===e.animated?[(0,i.h)(V.uT,{name:u.value},k)]:k()}function D(e){return a=(0,j.Pf)((0,d.KR)(e.default,[])).filter((e=>null!==e.props&&void 0===e.props.slot&&!0===w(e.props.name))),a.length}function L(){return a}return(0,i.YP)((()=>e.modelValue),((e,n)=>{const r=!0===w(e)?S(e):-1;!0!==s&&C(-1===r?0:r{t("transition",e,n)})))})),Object.assign(n,{next:x,previous:_,goTo:b}),{panelIndex:l,panelDirectives:h,updatePanelsList:D,updatePanelIndex:T,getPanelContent:A,getEnabledPanels:M,getPanels:L,isValidPanelName:w,keepAliveProps:m,needsUniqueKeepAliveWrapper:y,goToPanelByOffset:I,goToPanel:b,nextPanel:x,previousPanel:_}}const J=(0,x.L)({name:"QTabPanels",props:{...Y,...s.S},emits:X,setup(e,{slots:t}){const n=(0,i.FN)(),r=(0,s.Z)(e,n.proxy.$q),{updatePanelsList:o,getPanelContent:a,panelDirectives:l}=K(),u=(0,i.Fl)((()=>"q-tab-panels q-panel-parent"+(!0===r.value?" q-tab-panels--dark q-dark":"")));return()=>(o(t),(0,d.Jl)("div",{class:u.value},a(),"pan",e.swipeable,(()=>l.value)))}}),Q=(0,x.L)({name:"QTabPanel",props:Z,setup(e,{slots:t}){return()=>(0,i.h)("div",{class:"q-tab-panel"},(0,d.KR)(t.default))}});var ee=n(9763),te=n(3317),ne=n(2156);const ie=["rgb(255,204,204)","rgb(255,230,204)","rgb(255,255,204)","rgb(204,255,204)","rgb(204,255,230)","rgb(204,255,255)","rgb(204,230,255)","rgb(204,204,255)","rgb(230,204,255)","rgb(255,204,255)","rgb(255,153,153)","rgb(255,204,153)","rgb(255,255,153)","rgb(153,255,153)","rgb(153,255,204)","rgb(153,255,255)","rgb(153,204,255)","rgb(153,153,255)","rgb(204,153,255)","rgb(255,153,255)","rgb(255,102,102)","rgb(255,179,102)","rgb(255,255,102)","rgb(102,255,102)","rgb(102,255,179)","rgb(102,255,255)","rgb(102,179,255)","rgb(102,102,255)","rgb(179,102,255)","rgb(255,102,255)","rgb(255,51,51)","rgb(255,153,51)","rgb(255,255,51)","rgb(51,255,51)","rgb(51,255,153)","rgb(51,255,255)","rgb(51,153,255)","rgb(51,51,255)","rgb(153,51,255)","rgb(255,51,255)","rgb(255,0,0)","rgb(255,128,0)","rgb(255,255,0)","rgb(0,255,0)","rgb(0,255,128)","rgb(0,255,255)","rgb(0,128,255)","rgb(0,0,255)","rgb(128,0,255)","rgb(255,0,255)","rgb(245,0,0)","rgb(245,123,0)","rgb(245,245,0)","rgb(0,245,0)","rgb(0,245,123)","rgb(0,245,245)","rgb(0,123,245)","rgb(0,0,245)","rgb(123,0,245)","rgb(245,0,245)","rgb(214,0,0)","rgb(214,108,0)","rgb(214,214,0)","rgb(0,214,0)","rgb(0,214,108)","rgb(0,214,214)","rgb(0,108,214)","rgb(0,0,214)","rgb(108,0,214)","rgb(214,0,214)","rgb(163,0,0)","rgb(163,82,0)","rgb(163,163,0)","rgb(0,163,0)","rgb(0,163,82)","rgb(0,163,163)","rgb(0,82,163)","rgb(0,0,163)","rgb(82,0,163)","rgb(163,0,163)","rgb(92,0,0)","rgb(92,46,0)","rgb(92,92,0)","rgb(0,92,0)","rgb(0,92,46)","rgb(0,92,92)","rgb(0,46,92)","rgb(0,0,92)","rgb(46,0,92)","rgb(92,0,92)","rgb(255,255,255)","rgb(205,205,205)","rgb(178,178,178)","rgb(153,153,153)","rgb(127,127,127)","rgb(102,102,102)","rgb(76,76,76)","rgb(51,51,51)","rgb(25,25,25)","rgb(0,0,0)"],re="M5 5 h10 v10 h-10 v-10 z",oe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAH0lEQVQoU2NkYGAwZkAFZ5G5jPRRgOYEVDeB3EBjBQBOZwTVugIGyAAAAABJRU5ErkJggg==",ae=(0,x.L)({name:"QColor",props:{...s.S,...a.Fz,modelValue:String,defaultValue:String,defaultView:{type:String,default:"spectrum",validator:e=>["spectrum","tune","palette"].includes(e)},formatModel:{type:String,default:"auto",validator:e=>["auto","hex","rgb","hexa","rgba"].includes(e)},palette:Array,noHeader:Boolean,noHeaderTabs:Boolean,noFooter:Boolean,square:Boolean,flat:Boolean,bordered:Boolean,disable:Boolean,readonly:Boolean},emits:["update:modelValue","change"],setup(e,{emit:t}){const{proxy:n}=(0,i.FN)(),{$q:l}=n,c=(0,s.Z)(e,l),{getCache:h}=U(),p=(0,r.iH)(null),f=(0,r.iH)(null),g=(0,i.Fl)((()=>"auto"===e.formatModel?null:e.formatModel.indexOf("hex")>-1)),v=(0,i.Fl)((()=>"auto"===e.formatModel?null:e.formatModel.indexOf("a")>-1)),m=(0,r.iH)("auto"===e.formatModel?void 0===e.modelValue||null===e.modelValue||""===e.modelValue||e.modelValue.startsWith("#")?"hex":"rgb":e.formatModel.startsWith("hex")?"hex":"rgb"),y=(0,r.iH)(e.defaultView),x=(0,r.iH)(V(e.modelValue||e.defaultValue)),_=(0,i.Fl)((()=>!0!==e.disable&&!0!==e.readonly)),S=(0,i.Fl)((()=>void 0===e.modelValue||null===e.modelValue||""===e.modelValue||e.modelValue.startsWith("#"))),M=(0,i.Fl)((()=>null!==g.value?g.value:S.value)),C=(0,i.Fl)((()=>({type:"hidden",name:e.name,value:x.value[!0===M.value?"hex":"rgb"]}))),I=(0,a.eX)(C),T=(0,i.Fl)((()=>null!==v.value?v.value:void 0!==x.value.a)),k=(0,i.Fl)((()=>({backgroundColor:x.value.rgb||"#000"}))),A=(0,i.Fl)((()=>{const e=void 0!==x.value.a&&x.value.a<65||(0,ne.T2)(x.value)>.4;return"q-color-picker__header-content q-color-picker__header-content--"+(e?"light":"dark")})),D=(0,i.Fl)((()=>({background:`hsl(${x.value.h},100%,50%)`}))),P=(0,i.Fl)((()=>({top:100-x.value.v+"%",[!0===l.lang.rtl?"right":"left"]:`${x.value.s}%`}))),O=(0,i.Fl)((()=>void 0!==e.palette&&e.palette.length>0?e.palette:ie)),R=(0,i.Fl)((()=>"q-color-picker"+(!0===e.bordered?" q-color-picker--bordered":"")+(!0===e.square?" q-color-picker--square no-border-radius":"")+(!0===e.flat?" q-color-picker--flat no-shadow":"")+(!0===e.disable?" disabled":"")+(!0===c.value?" q-color-picker--dark q-dark":""))),E=(0,i.Fl)((()=>!0===e.disable?{"aria-disabled":"true"}:!0===e.readonly?{"aria-readonly":"true"}:{})),N=(0,i.Fl)((()=>[[o.Z,j,void 0,{prevent:!0,stop:!0,mouse:!0}]]));function F(e,n){x.value.hex=(0,ne.vq)(e),x.value.rgb=(0,ne.Nn)(e),x.value.r=e.r,x.value.g=e.g,x.value.b=e.b,x.value.a=e.a;const i=x.value[!0===M.value?"hex":"rgb"];t("update:modelValue",i),!0===n&&t("change",i)}function V(t){const n=void 0!==v.value?v.value:"auto"===e.formatModel?null:e.formatModel.indexOf("a")>-1;if("string"!==typeof t||0===t.length||!0!==ee.E.anyColor(t.replace(/ /g,"")))return{h:0,s:0,v:0,r:0,g:0,b:0,a:!0===n?100:void 0,hex:void 0,rgb:void 0};const i=(0,ne.id)(t);return!0===n&&void 0===i.a&&(i.a=100),i.hex=(0,ne.vq)(i),i.rgb=(0,ne.Nn)(i),Object.assign(i,(0,ne.py)(i))}function z(e,t,n){const i=p.value;if(null===i)return;const r=i.clientWidth,o=i.clientHeight,a=i.getBoundingClientRect();let s=Math.min(r,Math.max(0,e-a.left));!0===l.lang.rtl&&(s=r-s);const u=Math.min(o,Math.max(0,t-a.top)),c=Math.round(100*s/r),d=Math.round(100*Math.max(0,Math.min(1,-u/o+1))),h=(0,ne.WE)({h:x.value.h,s:c,v:d,a:!0===T.value?x.value.a:void 0});x.value.s=c,x.value.v=d,F(h,n)}function q(e,t){const n=Math.round(e),i=(0,ne.WE)({h:n,s:x.value.s,v:x.value.v,a:!0===T.value?x.value.a:void 0});x.value.h=n,F(i,t)}function H(e,t,r,o,a){if(void 0!==o&&(0,u.sT)(o),!/^[0-9]+$/.test(e))return void(!0===a&&n.$forceUpdate());const s=Math.floor(Number(e));if(s<0||s>r)return void(!0===a&&n.$forceUpdate());const l={r:"r"===t?s:x.value.r,g:"g"===t?s:x.value.g,b:"b"===t?s:x.value.b,a:!0===T.value?"a"===t?s:x.value.a:void 0};if("a"!==t){const e=(0,ne.py)(l);x.value.h=e.h,x.value.s=e.s,x.value.v=e.v}if(F(l,a),void 0!==o&&!0!==a&&void 0!==o.target.selectionEnd){const e=o.target.selectionEnd;(0,i.Y3)((()=>{o.target.setSelectionRange(e,e)}))}}function W(e,t){let n;const r=e.target.value;if((0,u.sT)(e),"hex"===m.value){if(r.length!==(!0===T.value?9:7)||!/^#[0-9A-Fa-f]+$/.test(r))return!0;n=(0,ne.oo)(r)}else{let e;if(!r.endsWith(")"))return!0;if(!0!==T.value&&r.startsWith("rgb(")){if(e=r.substring(4,r.length-1).split(",").map((e=>parseInt(e,10))),3!==e.length||!/^rgb\([0-9]{1,3},[0-9]{1,3},[0-9]{1,3}\)$/.test(r))return!0}else{if(!0!==T.value||!r.startsWith("rgba("))return!0;{if(e=r.substring(5,r.length-1).split(","),4!==e.length||!/^rgba\([0-9]{1,3},[0-9]{1,3},[0-9]{1,3},(0|0\.[0-9]+[1-9]|0\.[1-9]+|1)\)$/.test(r))return!0;for(let n=0;n<3;n++){const t=parseInt(e[n],10);if(t<0||t>255)return!0;e[n]=t}const t=parseFloat(e[3]);if(t<0||t>1)return!0;e[3]=t}}if(e[0]<0||e[0]>255||e[1]<0||e[1]>255||e[2]<0||e[2]>255||!0===T.value&&(e[3]<0||e[3]>1))return!0;n={r:e[0],g:e[1],b:e[2],a:!0===T.value?100*e[3]:void 0}}const o=(0,ne.py)(n);if(x.value.h=o.h,x.value.s=o.s,x.value.v=o.v,F(n,t),!0!==t){const t=e.target.selectionEnd;(0,i.Y3)((()=>{e.target.setSelectionRange(t,t)}))}}function G(e){const t=V(e),n={r:t.r,g:t.g,b:t.b,a:t.a};void 0===n.a&&(n.a=x.value.a),x.value.h=t.h,x.value.s=t.s,x.value.v=t.v,F(n,!0)}function j(e){e.isFinal?z(e.position.left,e.position.top,!0):Z(e)}(0,i.YP)((()=>e.modelValue),(t=>{const n=V(t||e.defaultValue);n.hex!==x.value.hex&&(x.value=n)})),(0,i.YP)((()=>e.defaultValue),(t=>{if(!e.modelValue&&t){const e=V(t);e.hex!==x.value.hex&&(x.value=e)}}));const Z=(0,te.Z)((e=>{z(e.position.left,e.position.top)}),20);function $(e){z(e.pageX-window.pageXOffset,e.pageY-window.pageYOffset,!0)}function Y(e){z(e.pageX-window.pageXOffset,e.pageY-window.pageYOffset)}function X(e){null!==f.value&&(f.value.$el.style.opacity=e?1:0)}function K(){const t=[];return!0!==e.noHeaderTabs&&t.push((0,i.h)(L,{class:"q-color-picker__header-tabs",modelValue:m.value,dense:!0,align:"justify",...h("topVTab",{"onUpdate:modelValue":e=>{m.value=e}})},(()=>[(0,i.h)(B,{label:"HEX"+(!0===T.value?"A":""),name:"hex",ripple:!1}),(0,i.h)(B,{label:"RGB"+(!0===T.value?"A":""),name:"rgb",ripple:!1})]))),t.push((0,i.h)("div",{class:"q-color-picker__header-banner row flex-center no-wrap"},[(0,i.h)("input",{class:"fit",value:x.value[m.value],...!0!==_.value?{readonly:!0}:{},...h("topIn",{onInput:e=>{X(!0===W(e))},onChange:u.sT,onBlur:e=>{!0===W(e,!0)&&n.$forceUpdate(),X(!1)}})}),(0,i.h)(w.Z,{ref:f,class:"q-color-picker__error-icon absolute no-pointer-events",name:l.iconSet.type.negative})])),(0,i.h)("div",{class:"q-color-picker__header relative-position overflow-hidden"},[(0,i.h)("div",{class:"q-color-picker__header-bg absolute-full"}),(0,i.h)("div",{class:A.value,style:k.value},t)])}function ae(){return(0,i.h)(J,{modelValue:y.value,animated:!0},(()=>[(0,i.h)(Q,{class:"q-color-picker__spectrum-tab overflow-hidden",name:"spectrum"},le),(0,i.h)(Q,{class:"q-pa-md q-color-picker__tune-tab",name:"tune"},ue),(0,i.h)(Q,{class:"q-color-picker__palette-tab",name:"palette"},ce)]))}function se(){return(0,i.h)("div",{class:"q-color-picker__footer relative-position overflow-hidden"},[(0,i.h)(L,{class:"absolute-full",modelValue:y.value,dense:!0,align:"justify",...h("ftIn",{"onUpdate:modelValue":e=>{y.value=e}})},(()=>[(0,i.h)(B,{icon:l.iconSet.colorPicker.spectrum,name:"spectrum",ripple:!1}),(0,i.h)(B,{icon:l.iconSet.colorPicker.tune,name:"tune",ripple:!1}),(0,i.h)(B,{icon:l.iconSet.colorPicker.palette,name:"palette",ripple:!1})]))])}function le(){const e={ref:p,class:"q-color-picker__spectrum non-selectable relative-position cursor-pointer"+(!0!==_.value?" readonly":""),style:D.value,...!0===_.value?{onClick:$,onMousedown:Y}:{}},t=[(0,i.h)("div",{style:{paddingBottom:"100%"}}),(0,i.h)("div",{class:"q-color-picker__spectrum-white absolute-full"}),(0,i.h)("div",{class:"q-color-picker__spectrum-black absolute-full"}),(0,i.h)("div",{class:"absolute",style:P.value},[void 0!==x.value.hex?(0,i.h)("div",{class:"q-color-picker__spectrum-circle"}):null])],n=[(0,i.h)(b,{class:"q-color-picker__hue non-selectable",modelValue:x.value.h,min:0,max:360,trackSize:"8px",innerTrackColor:"transparent",selectionColor:"transparent",readonly:!0!==_.value,thumbPath:re,"onUpdate:modelValue":q,...h("lazyhue",{onChange:e=>q(e,!0)})})];return!0===T.value&&n.push((0,i.h)(b,{class:"q-color-picker__alpha non-selectable",modelValue:x.value.a,min:0,max:100,trackSize:"8px",trackColor:"white",innerTrackColor:"transparent",selectionColor:"transparent",trackImg:oe,readonly:!0!==_.value,hideSelection:!0,thumbPath:re,...h("alphaSlide",{"onUpdate:modelValue":e=>H(e,"a",100),onChange:e=>H(e,"a",100,void 0,!0)})})),[(0,d.Jl)("div",e,t,"spec",_.value,(()=>N.value)),(0,i.h)("div",{class:"q-color-picker__sliders"},n)]}function ue(){return[(0,i.h)("div",{class:"row items-center no-wrap"},[(0,i.h)("div","R"),(0,i.h)(b,{modelValue:x.value.r,min:0,max:255,color:"red",dark:c.value,readonly:!0!==_.value,...h("rSlide",{"onUpdate:modelValue":e=>H(e,"r",255),onChange:e=>H(e,"r",255,void 0,!0)})}),(0,i.h)("input",{value:x.value.r,maxlength:3,readonly:!0!==_.value,onChange:u.sT,...h("rIn",{onInput:e=>H(e.target.value,"r",255,e),onBlur:e=>H(e.target.value,"r",255,e,!0)})})]),(0,i.h)("div",{class:"row items-center no-wrap"},[(0,i.h)("div","G"),(0,i.h)(b,{modelValue:x.value.g,min:0,max:255,color:"green",dark:c.value,readonly:!0!==_.value,...h("gSlide",{"onUpdate:modelValue":e=>H(e,"g",255),onChange:e=>H(e,"g",255,void 0,!0)})}),(0,i.h)("input",{value:x.value.g,maxlength:3,readonly:!0!==_.value,onChange:u.sT,...h("gIn",{onInput:e=>H(e.target.value,"g",255,e),onBlur:e=>H(e.target.value,"g",255,e,!0)})})]),(0,i.h)("div",{class:"row items-center no-wrap"},[(0,i.h)("div","B"),(0,i.h)(b,{modelValue:x.value.b,min:0,max:255,color:"blue",readonly:!0!==_.value,dark:c.value,...h("bSlide",{"onUpdate:modelValue":e=>H(e,"b",255),onChange:e=>H(e,"b",255,void 0,!0)})}),(0,i.h)("input",{value:x.value.b,maxlength:3,readonly:!0!==_.value,onChange:u.sT,...h("bIn",{onInput:e=>H(e.target.value,"b",255,e),onBlur:e=>H(e.target.value,"b",255,e,!0)})})]),!0===T.value?(0,i.h)("div",{class:"row items-center no-wrap"},[(0,i.h)("div","A"),(0,i.h)(b,{modelValue:x.value.a,color:"grey",readonly:!0!==_.value,dark:c.value,...h("aSlide",{"onUpdate:modelValue":e=>H(e,"a",100),onChange:e=>H(e,"a",100,void 0,!0)})}),(0,i.h)("input",{value:x.value.a,maxlength:3,readonly:!0!==_.value,onChange:u.sT,...h("aIn",{onInput:e=>H(e.target.value,"a",100,e),onBlur:e=>H(e.target.value,"a",100,e,!0)})})]):null]}function ce(){const e=e=>(0,i.h)("div",{class:"q-color-picker__cube col-auto",style:{backgroundColor:e},...!0===_.value?h("palette#"+e,{onClick:()=>{G(e)}}):{}});return[(0,i.h)("div",{class:"row items-center q-color-picker__palette-rows"+(!0===_.value?" q-color-picker__palette-rows--editable":"")},O.value.map(e))]}return()=>{const t=[ae()];return void 0!==e.name&&!0!==e.disable&&I(t,"push"),!0!==e.noHeader&&t.unshift(K()),!0!==e.noFooter&&t.push(se()),(0,i.h)("div",{class:R.value,...E.value},t)}}})},6778:(e,t,n)=>{"use strict";n.d(t,{Z:()=>w});n(3610),n(71);var i=n(3673),r=n(1959),o=n(8880),a=n(69),s=n(4955),l=n(416),u=n(3628),c=n(6104),d=n(5911),h=n(405),p=n(908),f=n(2012),g=n(7657),v=n(4704),m=n(8517),y=n(230);let x=0;const _={standard:"fixed-full flex-center",top:"fixed-top justify-center",bottom:"fixed-bottom justify-center",right:"fixed-right items-center",left:"fixed-left items-center"},b={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},w=(0,p.L)({name:"QDialog",inheritAttrs:!1,props:{...u.vr,...c.D,transitionShow:String,transitionHide:String,persistent:Boolean,autoClose:Boolean,allowFocusOutside:Boolean,noEscDismiss:Boolean,noBackdropDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,noShake:Boolean,seamless:Boolean,maximized:Boolean,fullWidth:Boolean,fullHeight:Boolean,square:Boolean,position:{type:String,default:"standard",validator:e=>"standard"===e||["top","bottom","left","right"].includes(e)}},emits:[...u.gH,"shake","click","escape-key"],setup(e,{slots:t,emit:n,attrs:c}){const p=(0,i.FN)(),w=(0,r.iH)(null),S=(0,r.iH)(!1),M=(0,r.iH)(!1),C=(0,r.iH)(!1);let I,T,k,A=null;const D=(0,i.Fl)((()=>!0!==e.persistent&&!0!==e.noRouteDismiss&&!0!==e.seamless)),{preventBodyScroll:L}=(0,h.Z)(),{registerTimeout:P,removeTimeout:O}=(0,s.Z)(),{registerTick:R,removeTick:E}=(0,l.Z)(),{showPortal:N,hidePortal:F,portalIsAccessible:B,renderPortal:V}=(0,d.Z)(p,w,se,!0),{hide:z}=(0,u.ZP)({showing:S,hideOnRouteChange:D,handleShow:K,handleHide:J,processOnMount:!0}),{addToHistory:q,removeFromHistory:H}=(0,a.Z)(S,z,D),W=(0,i.Fl)((()=>"q-dialog__inner flex no-pointer-events q-dialog__inner--"+(!0===e.maximized?"maximized":"minimized")+` q-dialog__inner--${e.position} ${_[e.position]}`+(!0===C.value?" q-dialog__inner--animating":"")+(!0===e.fullWidth?" q-dialog__inner--fullwidth":"")+(!0===e.fullHeight?" q-dialog__inner--fullheight":"")+(!0===e.square?" q-dialog__inner--square":""))),G=(0,i.Fl)((()=>"q-transition--"+(void 0===e.transitionShow?b[e.position][0]:e.transitionShow))),U=(0,i.Fl)((()=>"q-transition--"+(void 0===e.transitionHide?b[e.position][1]:e.transitionHide))),j=(0,i.Fl)((()=>!0===M.value?U.value:G.value)),Z=(0,i.Fl)((()=>`--q-transition-duration: ${e.transitionDuration}ms`)),$=(0,i.Fl)((()=>!0===S.value&&!0!==e.seamless)),Y=(0,i.Fl)((()=>!0===e.autoClose?{onClick:re}:{})),X=(0,i.Fl)((()=>["q-dialog fullscreen no-pointer-events q-dialog--"+(!0===$.value?"modal":"seamless"),c.class]));function K(t){O(),E(),q(),A=!1===e.noRefocus&&null!==document.activeElement?document.activeElement:null,ie(e.maximized),N(),C.value=!0,!0!==e.noFocus&&(null!==document.activeElement&&document.activeElement.blur(),R(Q)),P((()=>{if(!0===p.proxy.$q.platform.is.ios){if(!0!==e.seamless&&document.activeElement){const{top:e,bottom:t}=document.activeElement.getBoundingClientRect(),{innerHeight:n}=window,i=void 0!==window.visualViewport?window.visualViewport.height:n;e>0&&t>i/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-i,t>=n?1/0:Math.ceil(document.scrollingElement.scrollTop+t-i/2))),document.activeElement.scrollIntoView()}k=!0,w.value.click(),k=!1}N(!0),C.value=!1,n("show",t)}),e.transitionDuration)}function J(t){O(),E(),H(),ne(!0),C.value=!0,F(),null!==A&&(A.focus(),A=null),P((()=>{F(!0),C.value=!1,n("hide",t)}),e.transitionDuration)}function Q(e){(0,y.jd)((()=>{let t=w.value;null!==t&&!0!==t.contains(document.activeElement)&&(t=t.querySelector(e||"[autofocus], [data-autofocus]")||t,t.focus({preventScroll:!0}))}))}function ee(){Q(),n("shake");const e=w.value;null!==e&&(e.classList.remove("q-animate--scale"),e.classList.add("q-animate--scale"),clearTimeout(I),I=setTimeout((()=>{null!==w.value&&(e.classList.remove("q-animate--scale"),Q())}),170))}function te(){!0!==e.seamless&&(!0===e.persistent||!0===e.noEscDismiss?!0!==e.maximized&&!0!==e.noShake&&ee():(n("escape-key"),z()))}function ne(t){clearTimeout(I),!0!==t&&!0!==S.value||(ie(!1),!0!==e.seamless&&(L(!1),(0,m.H)(ae),(0,v.k)(te))),!0!==t&&(A=null)}function ie(e){!0===e?!0!==T&&(x<1&&document.body.classList.add("q-body--dialog"),x++,T=!0):!0===T&&(x<2&&document.body.classList.remove("q-body--dialog"),x--,T=!1)}function re(e){!0!==k&&(z(e),n("click",e))}function oe(t){!0!==e.persistent&&!0!==e.noBackdropDismiss?z(t):!0!==e.noShake&&ee()}function ae(t){!0!==e.allowFocusOutside&&!0===B.value&&!0!==(0,f.mY)(w.value,t.target)&&Q('[tabindex]:not([tabindex="-1"])')}function se(){return(0,i.h)("div",{...c,class:X.value},[(0,i.h)(o.uT,{name:"q-transition--fade",appear:!0},(()=>!0===$.value?(0,i.h)("div",{class:"q-dialog__backdrop fixed-full",style:Z.value,"aria-hidden":"true",onMousedown:oe}):null)),(0,i.h)(o.uT,{name:j.value,appear:!0},(()=>!0===S.value?(0,i.h)("div",{ref:w,class:W.value,style:Z.value,tabindex:-1,...Y.value},(0,g.KR)(t.default)):null))])}return(0,i.YP)(S,(e=>{(0,i.Y3)((()=>{M.value=e}))})),(0,i.YP)((()=>e.maximized),(e=>{!0===S.value&&ie(e)})),(0,i.YP)($,(e=>{L(e),!0===e?((0,m.i)(ae),(0,v.c)(te)):((0,m.H)(ae),(0,v.k)(te))})),Object.assign(p.proxy,{focus:Q,shake:ee,__updateRefocusTarget(e){A=e||null}}),(0,i.Jd)(ne),V}})},2901:(e,t,n)=>{"use strict";n.d(t,{Z:()=>v});n(3610),n(71);var i=n(3673),r=n(1959),o=n(69),a=n(3628),s=n(405),l=n(4955),u=n(2236),c=n(5777),d=n(908),h=n(2130),p=n(7657),f=n(2547);const g=150,v=(0,d.L)({name:"QDrawer",inheritAttrs:!1,props:{...a.vr,...u.S,side:{type:String,default:"left",validator:e=>["left","right"].includes(e)},width:{type:Number,default:300},mini:Boolean,miniToOverlay:Boolean,miniWidth:{type:Number,default:57},breakpoint:{type:Number,default:1023},showIfAbove:Boolean,behavior:{type:String,validator:e=>["default","desktop","mobile"].includes(e),default:"default"},bordered:Boolean,elevated:Boolean,overlay:Boolean,persistent:Boolean,noSwipeOpen:Boolean,noSwipeClose:Boolean,noSwipeBackdrop:Boolean},emits:[...a.gH,"on-layout","mini-state"],setup(e,{slots:t,emit:n,attrs:d}){const v=(0,i.FN)(),{proxy:{$q:m}}=v,y=(0,u.Z)(e,m),{preventBodyScroll:x}=(0,s.Z)(),{registerTimeout:_}=(0,l.Z)(),b=(0,i.f3)(f.YE,(()=>{console.error("QDrawer needs to be child of QLayout")}));let w,S,M;const C=(0,r.iH)("mobile"===e.behavior||"desktop"!==e.behavior&&b.totalWidth.value<=e.breakpoint),I=(0,i.Fl)((()=>!0===e.mini&&!0!==C.value)),T=(0,i.Fl)((()=>!0===I.value?e.miniWidth:e.width)),k=(0,r.iH)(!0===e.showIfAbove&&!1===C.value||!0===e.modelValue),A=(0,i.Fl)((()=>!0!==e.persistent&&(!0===C.value||!0===Z.value)));function D(e,t){if(R(),!1!==e&&b.animate(),ae(0),!0===C.value){const e=b.instances[W.value];void 0!==e&&!0===e.belowBreakpoint&&e.hide(!1),se(1),!0!==b.isContainer.value&&x(!0)}else se(0),!1!==e&&le(!1);_((()=>{!1!==e&&le(!0),!0!==t&&n("show",e)}),g)}function L(e,t){E(),!1!==e&&b.animate(),se(0),ae(B.value*T.value),he(),!0!==t&&_((()=>{n("hide",e)}),g)}const{show:P,hide:O}=(0,a.ZP)({showing:k,hideOnRouteChange:A,handleShow:D,handleHide:L}),{addToHistory:R,removeFromHistory:E}=(0,o.Z)(k,O,A),N={belowBreakpoint:C,hide:O},F=(0,i.Fl)((()=>"right"===e.side)),B=(0,i.Fl)((()=>(!0===m.lang.rtl?-1:1)*(!0===F.value?1:-1))),V=(0,r.iH)(0),z=(0,r.iH)(!1),q=(0,r.iH)(!1),H=(0,r.iH)(T.value*B.value),W=(0,i.Fl)((()=>!0===F.value?"left":"right")),G=(0,i.Fl)((()=>!0===k.value&&!1===C.value&&!1===e.overlay?!0===e.miniToOverlay?e.miniWidth:T.value:0)),U=(0,i.Fl)((()=>!0===e.overlay||!0===e.miniToOverlay||b.view.value.indexOf(F.value?"R":"L")>-1||!0===m.platform.is.ios&&!0===b.isContainer.value)),j=(0,i.Fl)((()=>!1===e.overlay&&!0===k.value&&!1===C.value)),Z=(0,i.Fl)((()=>!0===e.overlay&&!0===k.value&&!1===C.value)),$=(0,i.Fl)((()=>"fullscreen q-drawer__backdrop"+(!1===k.value&&!1===z.value?" hidden":""))),Y=(0,i.Fl)((()=>({backgroundColor:`rgba(0,0,0,${.4*V.value})`}))),X=(0,i.Fl)((()=>!0===F.value?"r"===b.rows.value.top[2]:"l"===b.rows.value.top[0])),K=(0,i.Fl)((()=>!0===F.value?"r"===b.rows.value.bottom[2]:"l"===b.rows.value.bottom[0])),J=(0,i.Fl)((()=>{const e={};return!0===b.header.space&&!1===X.value&&(!0===U.value?e.top=`${b.header.offset}px`:!0===b.header.space&&(e.top=`${b.header.size}px`)),!0===b.footer.space&&!1===K.value&&(!0===U.value?e.bottom=`${b.footer.offset}px`:!0===b.footer.space&&(e.bottom=`${b.footer.size}px`)),e})),Q=(0,i.Fl)((()=>{const e={width:`${T.value}px`,transform:`translateX(${H.value}px)`};return!0===C.value?e:Object.assign(e,J.value)})),ee=(0,i.Fl)((()=>"q-drawer__content fit "+(!0!==b.isContainer.value?"scroll":"overflow-auto"))),te=(0,i.Fl)((()=>`q-drawer q-drawer--${e.side}`+(!0===q.value?" q-drawer--mini-animate":"")+(!0===e.bordered?" q-drawer--bordered":"")+(!0===y.value?" q-drawer--dark q-dark":"")+(!0===z.value?" no-transition":!0===k.value?"":" q-layout--prevent-focus")+(!0===C.value?" fixed q-drawer--on-top q-drawer--mobile q-drawer--top-padding":" q-drawer--"+(!0===I.value?"mini":"standard")+(!0===U.value||!0!==j.value?" fixed":"")+(!0===e.overlay||!0===e.miniToOverlay?" q-drawer--on-top":"")+(!0===X.value?" q-drawer--top-padding":"")))),ne=(0,i.Fl)((()=>{const t=!0===m.lang.rtl?e.side:W.value;return[[c.Z,ce,void 0,{[t]:!0,mouse:!0}]]})),ie=(0,i.Fl)((()=>{const t=!0===m.lang.rtl?W.value:e.side;return[[c.Z,de,void 0,{[t]:!0,mouse:!0}]]})),re=(0,i.Fl)((()=>{const t=!0===m.lang.rtl?W.value:e.side;return[[c.Z,de,void 0,{[t]:!0,mouse:!0,mouseAllDir:!0}]]}));function oe(){fe(C,"mobile"===e.behavior||"desktop"!==e.behavior&&b.totalWidth.value<=e.breakpoint)}function ae(e){void 0===e?(0,i.Y3)((()=>{e=!0===k.value?0:T.value,ae(B.value*e)})):(!0!==b.isContainer.value||!0!==F.value||!0!==C.value&&Math.abs(e)!==T.value||(e+=B.value*b.scrollbarWidth.value),H.value=e)}function se(e){V.value=e}function le(e){const t=!0===e?"remove":!0!==b.isContainer.value?"add":"";""!==t&&document.body.classList[t]("q-body--drawer-toggle")}function ue(){clearTimeout(S),v.proxy&&v.proxy.$el&&v.proxy.$el.classList.add("q-drawer--mini-animate"),q.value=!0,S=setTimeout((()=>{q.value=!1,v&&v.proxy&&v.proxy.$el&&v.proxy.$el.classList.remove("q-drawer--mini-animate")}),150)}function ce(e){if(!1!==k.value)return;const t=T.value,n=(0,h.vX)(e.distance.x,0,t);if(!0===e.isFinal){const e=n>=Math.min(75,t);return!0===e?P():(b.animate(),se(0),ae(B.value*t)),void(z.value=!1)}ae((!0===m.lang.rtl?!0!==F.value:F.value)?Math.max(t-n,0):Math.min(0,n-t)),se((0,h.vX)(n/t,0,1)),!0===e.isFirst&&(z.value=!0)}function de(t){if(!0!==k.value)return;const n=T.value,i=t.direction===e.side,r=(!0===m.lang.rtl?!0!==i:i)?(0,h.vX)(t.distance.x,0,n):0;if(!0===t.isFinal){const e=Math.abs(r){!0===t?(w=k.value,!0===k.value&&O(!1)):!1===e.overlay&&"mobile"!==e.behavior&&!1!==w&&(!0===k.value?(ae(0),se(0),he()):P(!1))})),(0,i.YP)((()=>e.side),((e,t)=>{b.instances[t]===N&&(b.instances[t]=void 0,b[t].space=!1,b[t].offset=0),b.instances[e]=N,b[e].size=T.value,b[e].space=j.value,b[e].offset=G.value})),(0,i.YP)(b.totalWidth,(()=>{!0!==b.isContainer.value&&!0===document.qScrollPrevented||oe()})),(0,i.YP)((()=>e.behavior+e.breakpoint),oe),(0,i.YP)(b.isContainer,(e=>{!0===k.value&&x(!0!==e),!0===e&&oe()})),(0,i.YP)(b.scrollbarWidth,(()=>{ae(!0===k.value?0:void 0)})),(0,i.YP)(G,(e=>{pe("offset",e)})),(0,i.YP)(j,(e=>{n("on-layout",e),pe("space",e)})),(0,i.YP)(F,(()=>{ae()})),(0,i.YP)(T,(t=>{ae(),ge(e.miniToOverlay,t)})),(0,i.YP)((()=>e.miniToOverlay),(e=>{ge(e,T.value)})),(0,i.YP)((()=>m.lang.rtl),(()=>{ae()})),(0,i.YP)((()=>e.mini),(()=>{!0===e.modelValue&&(ue(),b.animate())})),(0,i.YP)(I,(e=>{n("mini-state",e)})),b.instances[e.side]=N,ge(e.miniToOverlay,T.value),pe("space",j.value),pe("offset",G.value),!0===e.showIfAbove&&!0!==e.modelValue&&!0===k.value&&void 0!==e["onUpdate:modelValue"]&&n("update:modelValue",!0),(0,i.bv)((()=>{n("on-layout",j.value),n("mini-state",I.value),w=!0===e.showIfAbove;const t=()=>{const e=!0===k.value?D:L;e(!1,!0)};0===b.totalWidth.value?M=(0,i.YP)(b.totalWidth,(()=>{M(),M=void 0,!1===k.value&&!0===e.showIfAbove&&!1===C.value?P(!1):t()})):(0,i.Y3)(t)})),(0,i.Jd)((()=>{void 0!==M&&M(),clearTimeout(S),!0===k.value&&he(),b.instances[e.side]===N&&(b.instances[e.side]=void 0,pe("size",0),pe("offset",0),pe("space",!1))})),()=>{const n=[];!0===C.value&&(!1===e.noSwipeOpen&&n.push((0,i.wy)((0,i.h)("div",{key:"open",class:`q-drawer__opener fixed-${e.side}`,"aria-hidden":"true"}),ne.value)),n.push((0,p.Jl)("div",{ref:"backdrop",class:$.value,style:Y.value,"aria-hidden":"true",onClick:O},void 0,"backdrop",!0!==e.noSwipeBackdrop&&!0===k.value,(()=>re.value))));const r=!0===I.value&&void 0!==t.mini,o=[(0,i.h)("div",{...d,key:""+r,class:[ee.value,d.class]},!0===r?t.mini():(0,p.KR)(t.default))];return!0===e.elevated&&!0===k.value&&o.push((0,i.h)("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),n.push((0,p.Jl)("aside",{ref:"content",class:te.value,style:Q.value},o,"contentclose",!0!==e.noSwipeClose&&!0===C.value,(()=>ie.value))),(0,i.h)("div",{class:"q-drawer-container"},n)}}})},3812:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var i=n(3673),r=n(1959),o=n(5151),a=n(908),s=n(7657),l=n(2547);const u=(0,a.L)({name:"QHeader",props:{modelValue:{type:Boolean,default:!0},reveal:Boolean,revealOffset:{type:Number,default:250},bordered:Boolean,elevated:Boolean,heightHint:{type:[String,Number],default:50}},emits:["reveal","focusin"],setup(e,{slots:t,emit:n}){const{proxy:{$q:a}}=(0,i.FN)(),u=(0,i.f3)(l.YE,(()=>{console.error("QHeader needs to be child of QLayout")})),c=(0,r.iH)(parseInt(e.heightHint,10)),d=(0,r.iH)(!0),h=(0,i.Fl)((()=>!0===e.reveal||u.view.value.indexOf("H")>-1||a.platform.is.ios&&!0===u.isContainer.value)),p=(0,i.Fl)((()=>{if(!0!==e.modelValue)return 0;if(!0===h.value)return!0===d.value?c.value:0;const t=c.value-u.scroll.value.position;return t>0?t:0})),f=(0,i.Fl)((()=>!0!==e.modelValue||!0===h.value&&!0!==d.value)),g=(0,i.Fl)((()=>!0===e.modelValue&&!0===f.value&&!0===e.reveal)),v=(0,i.Fl)((()=>"q-header q-layout__section--marginal "+(!0===h.value?"fixed":"absolute")+"-top"+(!0===e.bordered?" q-header--bordered":"")+(!0===f.value?" q-header--hidden":"")+(!0!==e.modelValue?" q-layout--prevent-focus":""))),m=(0,i.Fl)((()=>{const e=u.rows.value.top,t={};return"l"===e[0]&&!0===u.left.space&&(t[!0===a.lang.rtl?"right":"left"]=`${u.left.size}px`),"r"===e[2]&&!0===u.right.space&&(t[!0===a.lang.rtl?"left":"right"]=`${u.right.size}px`),t}));function y(e,t){u.update("header",e,t)}function x(e,t){e.value!==t&&(e.value=t)}function _({height:e}){x(c,e),y("size",e)}function b(e){!0===g.value&&x(d,!0),n("focusin",e)}(0,i.YP)((()=>e.modelValue),(e=>{y("space",e),x(d,!0),u.animate()})),(0,i.YP)(p,(e=>{y("offset",e)})),(0,i.YP)((()=>e.reveal),(t=>{!1===t&&x(d,e.modelValue)})),(0,i.YP)(d,(e=>{u.animate(),n("reveal",e)})),(0,i.YP)(u.scroll,(t=>{!0===e.reveal&&x(d,"up"===t.direction||t.position<=e.revealOffset||t.position-t.inflectionPoint<100)}));const w={};return u.instances.header=w,!0===e.modelValue&&y("size",c.value),y("space",e.modelValue),y("offset",p.value),(0,i.Jd)((()=>{u.instances.header===w&&(u.instances.header=void 0,y("size",0),y("offset",0),y("space",!1))})),()=>{const n=(0,s.Bl)(t.default,[]);return!0===e.elevated&&n.push((0,i.h)("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),n.push((0,i.h)(o.Z,{debounce:0,onResize:_})),(0,i.h)("header",{class:v.value,style:m.value,onFocusin:b},n)}}})},4554:(e,t,n)=>{"use strict";n.d(t,{Z:()=>b});n(71);var i=n(3673),r=n(2417),o=n(908),a=n(7657);const s="0 0 24 24",l=e=>e,u=e=>`ionicons ${e}`,c={"mdi-":e=>`mdi ${e}`,"icon-":l,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":u,"ion-ios":u,"ion-logo":u,"iconfont ":l,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`},d={o_:"-outlined",r_:"-round",s_:"-sharp"},h={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},p=new RegExp("^("+Object.keys(c).join("|")+")"),f=new RegExp("^("+Object.keys(d).join("|")+")"),g=new RegExp("^("+Object.keys(h).join("|")+")"),v=/^[Mm]\s?[-+]?\.?\d/,m=/^img:/,y=/^svguse:/,x=/^ion-/,_=/^(fa-(solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,b=(0,o.L)({name:"QIcon",props:{...r.LU,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(e,{slots:t}){const{proxy:{$q:n}}=(0,i.FN)(),o=(0,r.ZP)(e),l=(0,i.Fl)((()=>"q-icon"+(!0===e.left?" on-left":"")+(!0===e.right?" on-right":"")+(void 0!==e.color?` text-${e.color}`:""))),u=(0,i.Fl)((()=>{let t,r=e.name;if("none"===r||!r)return{none:!0};if(null!==n.iconMapFn){const e=n.iconMapFn(r);if(void 0!==e){if(void 0===e.icon)return{cls:e.cls,content:void 0!==e.content?e.content:" "};if(r=e.icon,"none"===r||!r)return{none:!0}}}if(!0===v.test(r)){const[e,t=s]=r.split("|");return{svg:!0,viewBox:t,nodes:e.split("&&").map((e=>{const[t,n,r]=e.split("@@");return(0,i.h)("path",{style:n,d:t,transform:r})}))}}if(!0===m.test(r))return{img:!0,src:r.substring(4)};if(!0===y.test(r)){const[e,t=s]=r.split("|");return{svguse:!0,src:e.substring(7),viewBox:t}}let o=" ";const a=r.match(p);if(null!==a)t=c[a[1]](r);else if(!0===_.test(r))t=r;else if(!0===x.test(r))t=`ionicons ion-${!0===n.platform.is.ios?"ios":"md"}${r.substring(3)}`;else if(!0===g.test(r)){t="notranslate material-symbols";const e=r.match(g);null!==e&&(r=r.substring(6),t+=h[e[1]]),o=r}else{t="notranslate material-icons";const e=r.match(f);null!==e&&(r=r.substring(2),t+=d[e[1]]),o=r}return{cls:t,content:o}}));return()=>{const n={class:l.value,style:o.value,"aria-hidden":"true",role:"presentation"};return!0===u.value.none?(0,i.h)(e.tag,n,(0,a.KR)(t.default)):!0===u.value.img?(0,i.h)("span",n,(0,a.vs)(t.default,[(0,i.h)("img",{src:u.value.src})])):!0===u.value.svg?(0,i.h)("span",n,(0,a.vs)(t.default,[(0,i.h)("svg",{viewBox:u.value.viewBox||"0 0 24 24"},u.value.nodes)])):!0===u.value.svguse?(0,i.h)("span",n,(0,a.vs)(t.default,[(0,i.h)("svg",{viewBox:u.value.viewBox},[(0,i.h)("use",{"xlink:href":u.value.src})])])):(void 0!==u.value.cls&&(n.class+=" "+u.value.cls),(0,i.h)(e.tag,n,(0,a.vs)(t.default,[u.value.content])))}}})},4842:(e,t,n)=>{"use strict";n.d(t,{Z:()=>b});n(71),n(3610);var i=n(1959),r=n(3673),o=n(5),a=(n(5363),n(1436));const s={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},l={"#":{pattern:"[\\d]",negate:"[^\\d]"},S:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]"},N:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]"},A:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:e=>e.toLocaleUpperCase()},a:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:e=>e.toLocaleLowerCase()},X:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:e=>e.toLocaleUpperCase()},x:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:e=>e.toLocaleLowerCase()}},u=Object.keys(l);u.forEach((e=>{l[e].regex=new RegExp(l[e].pattern)}));const c=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+u.join("")+"])|(.)","g"),d=/[.*+?^${}()|[\]\\]/g,h=String.fromCharCode(1),p={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean};function f(e,t,n,o){let u,p,f,g;const v=(0,i.iH)(null),m=(0,i.iH)(x());function y(){return!0===e.autogrow||["textarea","text","search","url","tel","password"].includes(e.type)}function x(){if(b(),!0===v.value){const t=I(k(e.modelValue));return!1!==e.fillMask?A(t):t}return e.modelValue}function _(e){if(e-1){for(let i=e-n.length;i>0;i--)t+=h;n=n.slice(0,i)+t+n.slice(i)}return n}function b(){if(v.value=void 0!==e.mask&&e.mask.length>0&&y(),!1===v.value)return g=void 0,u="",void(p="");const t=void 0===s[e.mask]?e.mask:s[e.mask],n="string"===typeof e.fillMask&&e.fillMask.length>0?e.fillMask.slice(0,1):"_",i=n.replace(d,"\\$&"),r=[],o=[],a=[];let m=!0===e.reverseFillMask,x="",_="";t.replace(c,((e,t,n,i,s)=>{if(void 0!==i){const e=l[i];a.push(e),_=e.negate,!0===m&&(o.push("(?:"+_+"+)?("+e.pattern+"+)?(?:"+_+"+)?("+e.pattern+"+)?"),m=!1),o.push("(?:"+_+"+)?("+e.pattern+")?")}else if(void 0!==n)x="\\"+("\\"===n?"":n),a.push(n),r.push("([^"+x+"]+)?"+x+"?");else{const e=void 0!==t?t:s;x="\\"===e?"\\\\\\\\":e.replace(d,"\\\\$&"),a.push(e),r.push("([^"+x+"]+)?"+x+"?")}}));const b=new RegExp("^"+r.join("")+"("+(""===x?".":"[^"+x+"]")+"+)?$"),w=o.length-1,S=o.map(((t,n)=>0===n&&!0===e.reverseFillMask?new RegExp("^"+i+"*"+t):n===w?new RegExp("^"+t+"("+(""===_?".":_)+"+)?"+(!0===e.reverseFillMask?"$":i+"*")):new RegExp("^"+t)));f=a,g=e=>{const t=b.exec(e);null!==t&&(e=t.slice(1).join(""));const n=[],i=S.length;for(let r=0,o=e;r0?n.join(""):e},u=a.map((e=>"string"===typeof e?e:h)).join(""),p=u.split(h).join(n)}function w(t,i,a){const s=o.value,l=s.selectionEnd,c=s.value.length-l,d=k(t);!0===i&&b();const f=I(d),g=!1!==e.fillMask?A(f):f,v=m.value!==g;s.value!==g&&(s.value=g),!0===v&&(m.value=g),document.activeElement===s&&(0,r.Y3)((()=>{if(g!==p)if("insertFromPaste"!==a||!0===e.reverseFillMask)if(["deleteContentBackward","deleteContentForward"].indexOf(a)>-1){const t=!0===e.reverseFillMask?0===l?g.length>f.length?1:0:Math.max(0,g.length-(g===p?0:Math.min(f.length,c)+1))+1:l;s.setSelectionRange(t,t,"forward")}else if(!0===e.reverseFillMask)if(!0===v){const e=Math.max(0,g.length-(g===p?0:Math.min(f.length,c+1)));1===e&&1===l?s.setSelectionRange(e,e,"forward"):M.rightReverse(s,e,e)}else{const e=g.length-c;s.setSelectionRange(e,e,"backward")}else if(!0===v){const e=Math.max(0,u.indexOf(h),Math.min(f.length,l)-1);M.right(s,e,e)}else{const e=l-1;M.right(s,e,e)}else{const e=l-1;M.right(s,e,e)}else{const t=!0===e.reverseFillMask?p.length:0;s.setSelectionRange(t,t,"forward")}}));const y=!0===e.unmaskedValue?k(g):g;String(e.modelValue)!==y&&n(y,!0)}function S(e,t,n){const i=I(k(e.value));t=Math.max(0,u.indexOf(h),Math.min(i.length,t)),e.setSelectionRange(t,n,"forward")}(0,r.YP)((()=>e.type+e.autogrow),b),(0,r.YP)((()=>e.mask),(n=>{if(void 0!==n)w(m.value,!0);else{const n=k(m.value);b(),e.modelValue!==n&&t("update:modelValue",n)}})),(0,r.YP)((()=>e.fillMask+e.reverseFillMask),(()=>{!0===v.value&&w(m.value,!0)})),(0,r.YP)((()=>e.unmaskedValue),(()=>{!0===v.value&&w(m.value)}));const M={left(e,t,n,i){const r=-1===u.slice(t-1).indexOf(h);let o=Math.max(0,t-1);for(;o>=0;o--)if(u[o]===h){t=o,!0===r&&t++;break}if(o<0&&void 0!==u[t]&&u[t]!==h)return M.right(e,0,0);t>=0&&e.setSelectionRange(t,!0===i?n:t,"backward")},right(e,t,n,i){const r=e.value.length;let o=Math.min(r,n+1);for(;o<=r;o++){if(u[o]===h){n=o;break}u[o-1]===h&&(n=o)}if(o>r&&void 0!==u[n-1]&&u[n-1]!==h)return M.left(e,r,r);e.setSelectionRange(i?t:n,n,"forward")},leftReverse(e,t,n,i){const r=_(e.value.length);let o=Math.max(0,t-1);for(;o>=0;o--){if(r[o-1]===h){t=o;break}if(r[o]===h&&(t=o,0===o))break}if(o<0&&void 0!==r[t]&&r[t]!==h)return M.rightReverse(e,0,0);t>=0&&e.setSelectionRange(t,!0===i?n:t,"backward")},rightReverse(e,t,n,i){const r=e.value.length,o=_(r),a=-1===o.slice(0,n+1).indexOf(h);let s=Math.min(r,n+1);for(;s<=r;s++)if(o[s-1]===h){n=s,n>0&&!0===a&&n--;break}if(s>r&&void 0!==o[n-1]&&o[n-1]!==h)return M.leftReverse(e,r,r);e.setSelectionRange(!0===i?t:n,n,"forward")}};function C(t){if(!0===(0,a.Wm)(t))return;const n=o.value,i=n.selectionStart,r=n.selectionEnd;if(37===t.keyCode||39===t.keyCode){const o=M[(39===t.keyCode?"right":"left")+(!0===e.reverseFillMask?"Reverse":"")];t.preventDefault(),o(n,i,r,t.shiftKey)}else 8===t.keyCode&&!0!==e.reverseFillMask&&i===r?M.left(n,i,r,!0):46===t.keyCode&&!0===e.reverseFillMask&&i===r&&M.rightReverse(n,i,r,!0)}function I(t){if(void 0===t||null===t||""===t)return"";if(!0===e.reverseFillMask)return T(t);const n=f;let i=0,r="";for(let e=0;e=0&&i>-1;o--){const a=t[o];let s=e[i];if("string"===typeof a)r=a+r,s===a&&i--;else{if(void 0===s||!a.regex.test(s))return r;do{r=(void 0!==a.transform?a.transform(s):s)+r,i--,s=e[i]}while(n===o&&void 0!==s&&a.regex.test(s))}}return r}function k(e){return"string"!==typeof e||void 0===g?"number"===typeof e?g(""+e):e:g(e)}function A(t){return p.length-t.length<=0?t:!0===e.reverseFillMask&&t.length>0?p.slice(0,-t.length)+t:t+p.slice(t.length)}return{innerValue:m,hasMask:v,moveCursorForPaste:S,updateMaskValue:w,onMaskedKeydown:C}}var g=n(9550);function v(e,t){function n(){const t=e.modelValue;try{const e="DataTransfer"in window?new DataTransfer:"ClipboardEvent"in window?new ClipboardEvent("").clipboardData:void 0;return Object(t)===t&&("length"in t?Array.from(t):[t]).forEach((t=>{e.items.add(t)})),{files:e.files}}catch(n){return{files:void 0}}}return!0===t?(0,r.Fl)((()=>{if("file"===e.type)return n()})):(0,r.Fl)(n)}var m=n(4421),y=n(908),x=n(4716),_=n(230);const b=(0,y.L)({name:"QInput",inheritAttrs:!1,props:{...o.Cl,...p,...g.Fz,modelValue:{required:!1},shadowText:String,type:{type:String,default:"text"},debounce:[String,Number],autogrow:Boolean,inputClass:[Array,String,Object],inputStyle:[Array,String,Object]},emits:[...o.HJ,"paste","change"],setup(e,{emit:t,attrs:n}){const a={};let s,l,u,c,d=NaN;const h=(0,i.iH)(null),p=(0,g.Do)(e),{innerValue:y,hasMask:b,moveCursorForPaste:w,updateMaskValue:S,onMaskedKeydown:M}=f(e,t,F,h),C=v(e,!0),I=(0,r.Fl)((()=>(0,o.yV)(y.value))),T=(0,m.Z)(N),k=(0,o.tL)(),A=(0,r.Fl)((()=>"textarea"===e.type||!0===e.autogrow)),D=(0,r.Fl)((()=>!0===A.value||["text","search","url","tel","password"].includes(e.type))),L=(0,r.Fl)((()=>{const t={...k.splitAttrs.listeners.value,onInput:N,onPaste:E,onChange:V,onBlur:z,onFocus:x.sT};return t.onCompositionstart=t.onCompositionupdate=t.onCompositionend=T,!0===b.value&&(t.onKeydown=M),!0===e.autogrow&&(t.onAnimationend=B),t})),P=(0,r.Fl)((()=>{const t={tabindex:0,"data-autofocus":!0===e.autofocus||void 0,rows:"textarea"===e.type?6:void 0,"aria-label":e.label,name:p.value,...k.splitAttrs.attributes.value,id:k.targetUid.value,maxlength:e.maxlength,disabled:!0===e.disable,readonly:!0===e.readonly};return!1===A.value&&(t.type=e.type),!0===e.autogrow&&(t.rows=1),t}));function O(){(0,_.jd)((()=>{const e=document.activeElement;null===h.value||h.value===e||null!==e&&e.id===k.targetUid.value||h.value.focus({preventScroll:!0})}))}function R(){null!==h.value&&h.value.select()}function E(n){if(!0===b.value&&!0!==e.reverseFillMask){const e=n.target;w(e,e.selectionStart,e.selectionEnd)}t("paste",n)}function N(n){if(!n||!n.target)return;if("file"===e.type)return void t("update:modelValue",n.target.files);const i=n.target.value;if(!0!==n.target.qComposing){if(!0===b.value)S(i,!1,n.inputType);else if(F(i),!0===D.value&&n.target===document.activeElement){const{selectionStart:e,selectionEnd:t}=n.target;void 0!==e&&void 0!==t&&(0,r.Y3)((()=>{n.target===document.activeElement&&0===i.indexOf(n.target.value)&&n.target.setSelectionRange(e,t)}))}!0===e.autogrow&&B()}else a.value=i}function F(n,i){c=()=>{"number"!==e.type&&!0===a.hasOwnProperty("value")&&delete a.value,e.modelValue!==n&&d!==n&&(d=n,!0===i&&(l=!0),t("update:modelValue",n),(0,r.Y3)((()=>{d===n&&(d=NaN)}))),c=void 0},"number"===e.type&&(s=!0,a.value=n),void 0!==e.debounce?(clearTimeout(u),a.value=n,u=setTimeout(c,e.debounce)):c()}function B(){const e=h.value;if(null!==e){const t=e.parentNode.style,{overflow:n}=e.style;t.marginBottom=e.scrollHeight-1+"px",e.style.height="1px",e.style.overflow="hidden",e.style.height=e.scrollHeight+"px",e.style.overflow=n,t.marginBottom=""}}function V(e){T(e),clearTimeout(u),void 0!==c&&c(),t("change",e.target.value)}function z(t){void 0!==t&&(0,x.sT)(t),clearTimeout(u),void 0!==c&&c(),s=!1,l=!1,delete a.value,"file"!==e.type&&setTimeout((()=>{null!==h.value&&(h.value.value=void 0!==y.value?y.value:"")}))}function q(){return!0===a.hasOwnProperty("value")?a.value:void 0!==y.value?y.value:""}(0,r.YP)((()=>e.type),(()=>{h.value&&(h.value.value=e.modelValue)})),(0,r.YP)((()=>e.modelValue),(t=>{if(!0===b.value){if(!0===l&&(l=!1,String(t)===d))return;S(t)}else y.value!==t&&(y.value=t,"number"===e.type&&!0===a.hasOwnProperty("value")&&(!0===s?s=!1:delete a.value));!0===e.autogrow&&(0,r.Y3)(B)})),(0,r.YP)((()=>e.autogrow),(e=>{!0===e?(0,r.Y3)(B):null!==h.value&&n.rows>0&&(h.value.style.height="auto")})),(0,r.YP)((()=>e.dense),(()=>{!0===e.autogrow&&(0,r.Y3)(B)})),(0,r.Jd)((()=>{z()})),(0,r.bv)((()=>{!0===e.autogrow&&B()})),Object.assign(k,{innerValue:y,fieldClass:(0,r.Fl)((()=>"q-"+(!0===A.value?"textarea":"input")+(!0===e.autogrow?" q-textarea--autogrow":""))),hasShadow:(0,r.Fl)((()=>"file"!==e.type&&"string"===typeof e.shadowText&&e.shadowText.length>0)),inputRef:h,emitValue:F,hasValue:I,floatingLabel:(0,r.Fl)((()=>!0===I.value||(0,o.yV)(e.displayValue))),getControl:()=>(0,r.h)(!0===A.value?"textarea":"input",{ref:h,class:["q-field__native q-placeholder",e.inputClass],style:e.inputStyle,...P.value,...L.value,..."file"!==e.type?{value:q()}:C.value}),getShadowControl:()=>(0,r.h)("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(!0===A.value?"":" text-no-wrap")},[(0,r.h)("span",{class:"invisible"},q()),(0,r.h)("span",e.shadowText)])});const H=(0,o.ZP)(k),W=(0,r.FN)();return Object.assign(W.proxy,{focus:O,select:R,getNativeElement:()=>h.value}),H}})},3414:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var i=n(3673),r=n(1959),o=n(2236),a=n(7277),s=n(908),l=n(7657),u=n(4716),c=n(1436);const d=(0,s.L)({name:"QItem",props:{...o.S,...a.$,tag:{type:String,default:"div"},active:{type:Boolean,default:null},clickable:Boolean,dense:Boolean,insetLevel:Number,tabindex:[String,Number],focused:Boolean,manualFocus:Boolean},emits:["click","keyup"],setup(e,{slots:t,emit:n}){const{proxy:{$q:s}}=(0,i.FN)(),d=(0,o.Z)(e,s),{hasRouterLink:h,hasLink:p,linkProps:f,linkClass:g,linkTag:v,navigateToRouterLink:m}=(0,a.Z)(),y=(0,r.iH)(null),x=(0,r.iH)(null),_=(0,i.Fl)((()=>!0===e.clickable||!0===p.value||"label"===e.tag)),b=(0,i.Fl)((()=>!0!==e.disable&&!0===_.value)),w=(0,i.Fl)((()=>"q-item q-item-type row no-wrap"+(!0===e.dense?" q-item--dense":"")+(!0===d.value?" q-item--dark":"")+(!0===p.value&&null===e.active?g.value:!0===e.active?(void 0!==e.activeClass?` ${e.activeClass}`:"")+" q-item--active":"")+(!0===e.disable?" disabled":"")+(!0===b.value?" q-item--clickable q-link cursor-pointer "+(!0===e.manualFocus?"q-manual-focusable":"q-focusable q-hoverable")+(!0===e.focused?" q-manual-focusable--focused":""):""))),S=(0,i.Fl)((()=>{if(void 0===e.insetLevel)return null;const t=!0===s.lang.rtl?"Right":"Left";return{["padding"+t]:16+56*e.insetLevel+"px"}}));function M(e){!0===b.value&&(null!==x.value&&(!0!==e.qKeyEvent&&document.activeElement===y.value?x.value.focus():document.activeElement===x.value&&y.value.focus()),!0===h.value&&m(e),n("click",e))}function C(e){if(!0===b.value&&!0===(0,c.So)(e,13)){(0,u.NS)(e),e.qKeyEvent=!0;const t=new MouseEvent("click",e);t.qKeyEvent=!0,y.value.dispatchEvent(t)}n("keyup",e)}function I(){const e=(0,l.Bl)(t.default,[]);return!0===b.value&&e.unshift((0,i.h)("div",{class:"q-focus-helper",tabindex:-1,ref:x})),e}return()=>{const t={ref:y,class:w.value,style:S.value,onClick:M,onKeyup:C};return!0===b.value?(t.tabindex=e.tabindex||"0",Object.assign(t,f.value)):!0===_.value&&(t["aria-disabled"]="true"),(0,i.h)(v.value,t,I())}}})},2350:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(3673),r=n(908),o=n(7657);const a=(0,r.L)({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(e,{slots:t}){const n=(0,i.Fl)((()=>parseInt(e.lines,10))),r=(0,i.Fl)((()=>"q-item__label"+(!0===e.overline?" q-item__label--overline text-overline":"")+(!0===e.caption?" q-item__label--caption text-caption":"")+(!0===e.header?" q-item__label--header":"")+(1===n.value?" ellipsis":""))),a=(0,i.Fl)((()=>void 0!==e.lines&&n.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":n.value}:null));return()=>(0,i.h)("div",{style:a.value,class:r.value},(0,o.KR)(t.default))}})},2035:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(3673),r=n(908),o=n(7657);const a=(0,r.L)({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(e,{slots:t}){const n=(0,i.Fl)((()=>"q-item__section column q-item__section--"+(!0===e.avatar||!0===e.side||!0===e.thumbnail?"side":"main")+(!0===e.top?" q-item__section--top justify-start":" justify-center")+(!0===e.avatar?" q-item__section--avatar":"")+(!0===e.thumbnail?" q-item__section--thumbnail":"")+(!0===e.noWrap?" q-item__section--nowrap":"")));return()=>(0,i.h)("div",{class:n.value},(0,o.KR)(t.default))}})},7011:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(3673),r=n(908),o=n(2236),a=n(7657);const s=(0,r.L)({name:"QList",props:{...o.S,bordered:Boolean,dense:Boolean,separator:Boolean,padding:Boolean},setup(e,{slots:t}){const n=(0,i.FN)(),r=(0,o.Z)(e,n.proxy.$q),s=(0,i.Fl)((()=>"q-list"+(!0===e.bordered?" q-list--bordered":"")+(!0===e.dense?" q-list--dense":"")+(!0===e.separator?" q-list--separator":"")+(!0===r.value?" q-list--dark":"")+(!0===e.padding?" q-list--padding":"")));return()=>(0,i.h)("div",{class:s.value},(0,a.KR)(t.default))}})},3066:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var i=n(3673),r=n(1959),o=n(4688),a=(n(3610),n(71),n(908)),s=n(8400),l=n(4716);const{passive:u}=l.rU,c=["both","horizontal","vertical"],d=(0,a.L)({name:"QScrollObserver",props:{axis:{type:String,validator:e=>c.includes(e),default:"vertical"},debounce:[String,Number],scrollTarget:{default:void 0}},emits:["scroll"],setup(e,{emit:t}){const n={position:{top:0,left:0},direction:"down",directionChanged:!1,delta:{top:0,left:0},inflectionPoint:{top:0,left:0}};let r,o,a=null;function c(){null!==a&&a();const i=Math.max(0,(0,s.u3)(r)),o=(0,s.OI)(r),l={top:i-n.position.top,left:o-n.position.left};if("vertical"===e.axis&&0===l.top||"horizontal"===e.axis&&0===l.left)return;const u=Math.abs(l.top)>=Math.abs(l.left)?l.top<0?"up":"down":l.left<0?"left":"right";n.position={top:i,left:o},n.directionChanged=n.direction!==u,n.delta=l,!0===n.directionChanged&&(n.direction=u,n.inflectionPoint=n.position),t("scroll",{...n})}function d(){r=(0,s.b0)(o,e.scrollTarget),r.addEventListener("scroll",p,u),p(!0)}function h(){void 0!==r&&(r.removeEventListener("scroll",p,u),r=void 0)}function p(t){if(!0===t||0===e.debounce||"0"===e.debounce)c();else if(null===a){const[t,n]=e.debounce?[setTimeout(c,e.debounce),clearTimeout]:[requestAnimationFrame(c),cancelAnimationFrame];a=()=>{n(t),a=null}}}(0,i.YP)((()=>e.scrollTarget),(()=>{h(),d()}));const f=(0,i.FN)();return(0,i.bv)((()=>{o=f.proxy.$el.parentNode,d()})),(0,i.Jd)((()=>{null!==a&&a(),h()})),Object.assign(f.proxy,{trigger:p,getPosition:()=>n}),l.ZT}});var h=n(5151),p=n(7657),f=n(2547);const g=(0,a.L)({name:"QLayout",props:{container:Boolean,view:{type:String,default:"hhh lpr fff",validator:e=>/^(h|l)h(h|r) lpr (f|l)f(f|r)$/.test(e.toLowerCase())},onScroll:Function,onScrollHeight:Function,onResize:Function},setup(e,{slots:t,emit:n}){const{proxy:{$q:a}}=(0,i.FN)(),l=(0,r.iH)(null),u=(0,r.iH)(a.screen.height),c=(0,r.iH)(!0===e.container?0:a.screen.width),g=(0,r.iH)({position:0,direction:"down",inflectionPoint:0}),v=(0,r.iH)(0),m=(0,r.iH)(!0===o.uX.value?0:(0,s.np)()),y=(0,i.Fl)((()=>"q-layout q-layout--"+(!0===e.container?"containerized":"standard"))),x=(0,i.Fl)((()=>!1===e.container?{minHeight:a.screen.height+"px"}:null)),_=(0,i.Fl)((()=>0!==m.value?{[!0===a.lang.rtl?"left":"right"]:`${m.value}px`}:null)),b=(0,i.Fl)((()=>0!==m.value?{[!0===a.lang.rtl?"right":"left"]:0,[!0===a.lang.rtl?"left":"right"]:`-${m.value}px`,width:`calc(100% + ${m.value}px)`}:null));function w(t){if(!0===e.container||!0!==document.qScrollPrevented){const i={position:t.position.top,direction:t.direction,directionChanged:t.directionChanged,inflectionPoint:t.inflectionPoint.top,delta:t.delta.top};g.value=i,void 0!==e.onScroll&&n("scroll",i)}}function S(t){const{height:i,width:r}=t;let o=!1;u.value!==i&&(o=!0,u.value=i,void 0!==e.onScrollHeight&&n("scroll-height",i),C()),c.value!==r&&(o=!0,c.value=r),!0===o&&void 0!==e.onResize&&n("resize",t)}function M({height:e}){v.value!==e&&(v.value=e,C())}function C(){if(!0===e.container){const e=u.value>v.value?(0,s.np)():0;m.value!==e&&(m.value=e)}}let I;const T={instances:{},view:(0,i.Fl)((()=>e.view)),isContainer:(0,i.Fl)((()=>e.container)),rootRef:l,height:u,containerHeight:v,scrollbarWidth:m,totalWidth:(0,i.Fl)((()=>c.value+m.value)),rows:(0,i.Fl)((()=>{const t=e.view.toLowerCase().split(" ");return{top:t[0].split(""),middle:t[1].split(""),bottom:t[2].split("")}})),header:(0,r.qj)({size:0,offset:0,space:!1}),right:(0,r.qj)({size:300,offset:0,space:!1}),footer:(0,r.qj)({size:0,offset:0,space:!1}),left:(0,r.qj)({size:300,offset:0,space:!1}),scroll:g,animate(){void 0!==I?clearTimeout(I):document.body.classList.add("q-body--layout-animate"),I=setTimeout((()=>{document.body.classList.remove("q-body--layout-animate"),I=void 0}),155)},update(e,t,n){T[e][t]=n}};if((0,i.JJ)(f.YE,T),(0,s.np)()>0){let k=null;const A=document.body;function D(){k=null,A.classList.remove("hide-scrollbar")}function L(){if(null===k){if(A.scrollHeight>a.screen.height)return;A.classList.add("hide-scrollbar")}else clearTimeout(k);k=setTimeout(D,300)}function P(e){null!==k&&"remove"===e&&(clearTimeout(k),D()),window[`${e}EventListener`]("resize",L)}(0,i.YP)((()=>!0!==e.container?"add":"remove"),P),!0!==e.container&&P("add"),(0,i.Ah)((()=>{P("remove")}))}return()=>{const n=(0,p.vs)(t.default,[(0,i.h)(d,{onScroll:w}),(0,i.h)(h.Z,{onResize:S})]),r=(0,i.h)("div",{class:y.value,style:x.value,ref:!0===e.container?void 0:l,tabindex:-1},n);return!0===e.container?(0,i.h)("div",{class:"q-layout-container overflow-hidden",ref:l},[(0,i.h)(h.Z,{onResize:M}),(0,i.h)("div",{class:"absolute-full",style:_.value},[(0,i.h)("div",{class:"scroll",style:b.value},[r])])]):r}}})},811:(e,t,n)=>{"use strict";n.d(t,{Z:()=>C});n(71);var i=n(3673),r=n(1959),o=n(8880),a=n(5875),s=n(1372),l=n(3628),u=n(2236),c=n(5911),d=n(6104),h=n(416),p=n(4955),f=n(908),g=n(4312),v=n(8400),m=n(4716),y=n(7657),x=n(4704),_=n(8517),b=n(2012),w=n(9916),S=n(230),M=n(2657);const C=(0,f.L)({name:"QMenu",inheritAttrs:!1,props:{...a.u,...l.vr,...u.S,...d.D,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:M.$},self:{type:String,validator:M.$},offset:{type:Array,validator:M.io},scrollTarget:{default:void 0},touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...l.gH,"click","escape-key"],setup(e,{slots:t,emit:n,attrs:f}){let C,I,T,k=null;const A=(0,i.FN)(),{proxy:D}=A,{$q:L}=D,P=(0,r.iH)(null),O=(0,r.iH)(!1),R=(0,i.Fl)((()=>!0!==e.persistent&&!0!==e.noRouteDismiss)),E=(0,u.Z)(e,L),{registerTick:N,removeTick:F}=(0,h.Z)(),{registerTimeout:B,removeTimeout:V}=(0,p.Z)(),{transition:z,transitionStyle:q}=(0,d.Z)(e,O),{localScrollTarget:H,changeScrollEvent:W,unconfigureScrollTarget:G}=(0,s.Z)(e,se),{anchorEl:U,canShow:j}=(0,a.Z)({showing:O}),{hide:Z}=(0,l.ZP)({showing:O,canShow:j,handleShow:re,handleHide:oe,hideOnRouteChange:R,processOnMount:!0}),{showPortal:$,hidePortal:Y,renderPortal:X}=(0,c.Z)(A,P,he),K={anchorEl:U,innerRef:P,onClickOutside(t){if(!0!==e.persistent&&!0===O.value)return Z(t),("touchstart"===t.type||t.target.classList.contains("q-dialog__backdrop"))&&(0,m.NS)(t),!0}},J=(0,i.Fl)((()=>(0,M.li)(e.anchor||(!0===e.cover?"center middle":"bottom start"),L.lang.rtl))),Q=(0,i.Fl)((()=>!0===e.cover?J.value:(0,M.li)(e.self||"top start",L.lang.rtl))),ee=(0,i.Fl)((()=>(!0===e.square?" q-menu--square":"")+(!0===E.value?" q-menu--dark q-dark":""))),te=(0,i.Fl)((()=>!0===e.autoClose?{onClick:le}:{})),ne=(0,i.Fl)((()=>!0===O.value&&!0!==e.persistent));function ie(){(0,S.jd)((()=>{let e=P.value;e&&!0!==e.contains(document.activeElement)&&(e=e.querySelector("[autofocus], [data-autofocus]")||e,e.focus({preventScroll:!0}))}))}function re(t){if(F(),V(),k=!1===e.noRefocus?document.activeElement:null,(0,_.i)(ue),$(),se(),C=void 0,void 0!==t&&(e.touchPosition||e.contextMenu)){const e=(0,m.FK)(t);if(void 0!==e.left){const{top:t,left:n}=U.value.getBoundingClientRect();C={left:e.left-n,top:e.top-t}}}void 0===I&&(I=(0,i.YP)((()=>L.screen.width+"|"+L.screen.height+"|"+e.self+"|"+e.anchor+"|"+L.lang.rtl),de)),!0!==e.noFocus&&document.activeElement.blur(),N((()=>{de(),!0!==e.noFocus&&ie()})),B((()=>{!0===L.platform.is.ios&&(T=e.autoClose,P.value.click()),de(),$(!0),n("show",t)}),e.transitionDuration)}function oe(t){F(),V(),Y(),ae(!0),null===k||void 0!==t&&!0===t.qClickOutside||(k.focus(),k=null),B((()=>{Y(!0),n("hide",t)}),e.transitionDuration)}function ae(e){C=void 0,void 0!==I&&(I(),I=void 0),!0!==e&&!0!==O.value||((0,_.H)(ue),G(),(0,w.D)(K),(0,x.k)(ce)),!0!==e&&(k=null)}function se(){null===U.value&&void 0===e.scrollTarget||(H.value=(0,v.b0)(U.value,e.scrollTarget),W(H.value,de))}function le(e){!0!==T?((0,g.AH)(D,e),n("click",e)):T=!1}function ue(t){!0===ne.value&&!0!==e.noFocus&&!0!==(0,b.mY)(P.value,t.target)&&ie()}function ce(e){n("escape-key"),Z(e)}function de(){const t=P.value;null!==t&&null!==U.value&&(0,M.wq)({el:t,offset:e.offset,anchorEl:U.value,anchorOrigin:J.value,selfOrigin:Q.value,absoluteOffset:C,fit:e.fit,cover:e.cover,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}function he(){return(0,i.h)(o.uT,{name:z.value,appear:!0},(()=>!0===O.value?(0,i.h)("div",{...f,ref:P,tabindex:-1,class:["q-menu q-position-engine scroll"+ee.value,f.class],style:[f.style,q.value],...te.value},(0,y.KR)(t.default)):null))}return(0,i.YP)(ne,(e=>{!0===e?((0,x.c)(ce),(0,w.m)(K)):((0,x.k)(ce),(0,w.D)(K))})),(0,i.Jd)(ae),Object.assign(D,{focus:ie,updatePosition:de}),X}})},2652:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(3673),r=n(908),o=n(7657),a=n(2547);const s=(0,r.L)({name:"QPageContainer",setup(e,{slots:t}){const{proxy:{$q:n}}=(0,i.FN)(),r=(0,i.f3)(a.YE,(()=>{console.error("QPageContainer needs to be child of QLayout")}));(0,i.JJ)(a.Mw,!0);const s=(0,i.Fl)((()=>{const e={};return!0===r.header.space&&(e.paddingTop=`${r.header.size}px`),!0===r.right.space&&(e["padding"+(!0===n.lang.rtl?"Left":"Right")]=`${r.right.size}px`),!0===r.footer.space&&(e.paddingBottom=`${r.footer.size}px`),!0===r.left.space&&(e["padding"+(!0===n.lang.rtl?"Right":"Left")]=`${r.left.size}px`),e}));return()=>(0,i.h)("div",{class:"q-page-container",style:s.value},(0,o.KR)(t.default))}})},3944:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var i=n(3673),r=n(1959),o=n(6778),a=n(811),s=n(5875),l=n(908);const u=(0,l.L)({name:"QPopupProxy",props:{...s.u,breakpoint:{type:[String,Number],default:450}},emits:["show","hide"],setup(e,{slots:t,emit:n,attrs:l}){const{proxy:u}=(0,i.FN)(),{$q:c}=u,d=(0,r.iH)(!1),h=(0,r.iH)(null),p=(0,i.Fl)((()=>parseInt(e.breakpoint,10))),{canShow:f}=(0,s.Z)({showing:d});function g(){return c.screen.width"menu"===v.value?{maxHeight:"99vh"}:{}));function y(e){d.value=!0,n("show",e)}function x(e){d.value=!1,v.value=g(),n("hide",e)}return(0,i.YP)((()=>g()),(e=>{!0!==d.value&&(v.value=e)})),Object.assign(u,{show(e){!0===f(e)&&h.value.show(e)},hide(e){h.value.hide(e)},toggle(e){h.value.toggle(e)}}),()=>{const n={ref:h,...m.value,...l,onShow:y,onHide:x};let r;return"dialog"===v.value?r=o.Z:(r=a.Z,Object.assign(n,{target:e.target,contextMenu:e.contextMenu,noParentEvent:!0,separateClosePopup:!0})),(0,i.h)(r,n,t.default)}}})},5151:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var i=n(3673),r=n(1959),o=n(4688);function a(){const e=(0,r.iH)(!o.uX.value);return!1===e.value&&(0,i.bv)((()=>{e.value=!0})),e}var s=n(908),l=n(4716);const u="undefined"!==typeof ResizeObserver,c=!0===u?{}:{style:"display:block;position:absolute;top:0;left:0;right:0;bottom:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1;",url:"about:blank"},d=(0,s.L)({name:"QResizeObserver",props:{debounce:{type:[String,Number],default:100}},emits:["resize"],setup(e,{emit:t}){let n,r=null,o={width:-1,height:-1};function s(t){!0===t||0===e.debounce||"0"===e.debounce?d():null===r&&(r=setTimeout(d,e.debounce))}function d(){if(clearTimeout(r),r=null,n){const{offsetWidth:e,offsetHeight:i}=n;e===o.width&&i===o.height||(o={width:e,height:i},t("resize",o))}}const h=(0,i.FN)();if(Object.assign(h.proxy,{trigger:s}),!0===u){let p;return(0,i.bv)((()=>{(0,i.Y3)((()=>{n=h.proxy.$el.parentNode,n&&(p=new ResizeObserver(s),p.observe(n),d())}))})),(0,i.Jd)((()=>{clearTimeout(r),void 0!==p&&(void 0!==p.disconnect?p.disconnect():n&&p.unobserve(n))})),l.ZT}{const f=a();let g;function v(){clearTimeout(r),void 0!==g&&(void 0!==g.removeEventListener&&g.removeEventListener("resize",s,l.rU.passive),g=void 0)}function m(){v(),n&&n.contentDocument&&(g=n.contentDocument.defaultView,g.addEventListener("resize",s,l.rU.passive),d())}return(0,i.bv)((()=>{(0,i.Y3)((()=>{n=h.proxy.$el,n&&m()}))})),(0,i.Jd)(v),()=>{if(!0===f.value)return(0,i.h)("object",{style:c.style,tabindex:-1,type:"text/html",data:c.url,"aria-hidden":"true",onLoad:m})}}}})},5869:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(3673),r=n(2236),o=n(908);const a={true:"inset",item:"item-inset","item-thumbnail":"item-thumbnail-inset"},s={xs:2,sm:4,md:8,lg:16,xl:24},l=(0,o.L)({name:"QSeparator",props:{...r.S,spaced:[Boolean,String],inset:[Boolean,String],vertical:Boolean,color:String,size:String},setup(e){const t=(0,i.FN)(),n=(0,r.Z)(e,t.proxy.$q),o=(0,i.Fl)((()=>!0===e.vertical?"vertical":"horizontal")),l=(0,i.Fl)((()=>` q-separator--${o.value}`)),u=(0,i.Fl)((()=>!1!==e.inset?`${l.value}-${a[e.inset]}`:"")),c=(0,i.Fl)((()=>`q-separator${l.value}${u.value}`+(void 0!==e.color?` bg-${e.color}`:"")+(!0===n.value?" q-separator--dark":""))),d=(0,i.Fl)((()=>{const t={};if(void 0!==e.size&&(t[!0===e.vertical?"width":"height"]=e.size),!1!==e.spaced){const n=!0===e.spaced?`${s.md}px`:e.spaced in s?`${s[e.spaced]}px`:e.spaced,i=!0===e.vertical?["Left","Right"]:["Top","Bottom"];t[`margin${i[0]}`]=t[`margin${i[1]}`]=n}return t}));return()=>(0,i.h)("hr",{class:c.value,style:d.value,"aria-orientation":o.value})}})},2025:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(3673),r=n(908);const o=(0,i.h)("div",{class:"q-space"}),a=(0,r.L)({name:"QSpace",setup(){return()=>o}})},9754:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(3673),r=n(2417);const o={size:{type:[Number,String],default:"1em"},color:String};function a(e){return{cSize:(0,i.Fl)((()=>e.size in r.Ok?`${r.Ok[e.size]}px`:e.size)),classes:(0,i.Fl)((()=>"q-spinner"+(e.color?` text-${e.color}`:"")))}}var s=n(908);const l=(0,s.L)({name:"QSpinner",props:{...o,thickness:{type:Number,default:5}},setup(e){const{cSize:t,classes:n}=a(e);return()=>(0,i.h)("svg",{class:n.value+" q-spinner-mat",width:t.value,height:t.value,viewBox:"25 25 50 50"},[(0,i.h)("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":e.thickness,"stroke-miterlimit":"10"})])}})},7898:(e,t,n)=>{"use strict";n.d(t,{Z:()=>Fe});n(3610),n(71);var i=n(3673),r=n(1959),o=n(4554),a=n(908),s=n(7657);const l=(0,a.L)({name:"QTh",props:{props:Object,autoWidth:Boolean},emits:["click"],setup(e,{slots:t,emit:n}){const r=(0,i.FN)(),{proxy:{$q:a}}=r,l=e=>{n("click",e)};return()=>{if(void 0===e.props)return(0,i.h)("th",{class:!0===e.autoWidth?"q-table--col-auto-width":"",onClick:l},(0,s.KR)(t.default));let n,u;const c=r.vnode.key;if(c){if(n=e.props.colsMap[c],void 0===n)return}else n=e.props.col;if(!0===n.sortable){const e="right"===n.align?"unshift":"push";u=(0,s.Bl)(t.default,[]),u[e]((0,i.h)(o.Z,{class:n.__iconClass,name:a.iconSet.table.arrowUp}))}else u=(0,s.KR)(t.default);const d={class:n.__thClass+(!0===e.autoWidth?" q-table--col-auto-width":""),style:n.headerStyle,onClick:t=>{!0===n.sortable&&e.props.sort(n),l(t)}};return(0,i.h)("th",d,u)}}});var u=n(5869),c=n(7011),d=n(2236);const h=["horizontal","vertical","cell","none"],p=(0,a.L)({name:"QMarkupTable",props:{...d.S,dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,wrapCells:Boolean,separator:{type:String,default:"horizontal",validator:e=>h.includes(e)}},setup(e,{slots:t}){const n=(0,i.FN)(),r=(0,d.Z)(e,n.proxy.$q),o=(0,i.Fl)((()=>`q-markup-table q-table__container q-table__card q-table--${e.separator}-separator`+(!0===r.value?" q-table--dark q-table__card--dark q-dark":"")+(!0===e.dense?" q-table--dense":"")+(!0===e.flat?" q-table--flat":"")+(!0===e.bordered?" q-table--bordered":"")+(!0===e.square?" q-table--square":"")+(!1===e.wrapCells?" q-table--no-wrap":"")));return()=>(0,i.h)("div",{class:o.value},[(0,i.h)("table",{class:"q-table"},(0,s.KR)(t.default))])}});function f(e,t){return(0,i.h)("div",e,[(0,i.h)("table",{class:"q-table"},t)])}n(5363);var g=n(9405),v=n(4716),m=n(5811);const y=1e3,x=["start","center","end","start-force","center-force","end-force"],_=Array.prototype.filter,b=void 0===window.getComputedStyle(document.body).overflowAnchor?v.ZT:function(e,t){null!==e&&(cancelAnimationFrame(e._qOverflowAnimationFrame),e._qOverflowAnimationFrame=requestAnimationFrame((()=>{if(null===e)return;const n=e.children||[];_.call(n,(e=>e.dataset&&void 0!==e.dataset.qVsAnchor)).forEach((e=>{delete e.dataset.qVsAnchor}));const i=n[t];i&&i.dataset&&(i.dataset.qVsAnchor="")})))};function w(e,t){return e+t}function S(e,t,n,i,r,o,a,s){const l=e===window?document.scrollingElement||document.documentElement:e,u=!0===r?"offsetWidth":"offsetHeight",c={scrollStart:0,scrollViewSize:-a-s,scrollMaxSize:0,offsetStart:-a,offsetEnd:-s};if(!0===r?(e===window?(c.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,c.scrollViewSize+=document.documentElement.clientWidth):(c.scrollStart=l.scrollLeft,c.scrollViewSize+=l.clientWidth),c.scrollMaxSize=l.scrollWidth,!0===o&&(c.scrollStart=(!0===m.e?c.scrollMaxSize-c.scrollViewSize:0)-c.scrollStart)):(e===window?(c.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,c.scrollViewSize+=document.documentElement.clientHeight):(c.scrollStart=l.scrollTop,c.scrollViewSize+=l.clientHeight),c.scrollMaxSize=l.scrollHeight),null!==n)for(let d=n.previousElementSibling;null!==d;d=d.previousElementSibling)!1===d.classList.contains("q-virtual-scroll--skip")&&(c.offsetStart+=d[u]);if(null!==i)for(let d=i.nextElementSibling;null!==d;d=d.nextElementSibling)!1===d.classList.contains("q-virtual-scroll--skip")&&(c.offsetEnd+=d[u]);if(t!==e){const n=l.getBoundingClientRect(),i=t.getBoundingClientRect();!0===r?(c.offsetStart+=i.left-n.left,c.offsetEnd-=i.width):(c.offsetStart+=i.top-n.top,c.offsetEnd-=i.height),e!==window&&(c.offsetStart+=c.scrollStart),c.offsetEnd+=c.scrollMaxSize-c.offsetStart}return c}function M(e,t,n,i){"end"===t&&(t=(e===window?document.body:e)[!0===n?"scrollWidth":"scrollHeight"]),e===window?!0===n?(!0===i&&(t=(!0===m.e?document.body.scrollWidth-document.documentElement.clientWidth:0)-t),window.scrollTo(t,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,t):!0===n?(!0===i&&(t=(!0===m.e?e.scrollWidth-e.offsetWidth:0)-t),e.scrollLeft=t):e.scrollTop=t}function C(e,t,n,i){if(n>=i)return 0;const r=t.length,o=Math.floor(n/y),a=Math.floor((i-1)/y)+1;let s=e.slice(o,a).reduce(w,0);return n%y!==0&&(s-=t.slice(o*y,n).reduce(w,0)),i%y!==0&&i!==r&&(s-=t.slice(i,a*y).reduce(w,0)),s}const I={virtualScrollSliceSize:{type:[Number,String],default:null},virtualScrollSliceRatioBefore:{type:[Number,String],default:1},virtualScrollSliceRatioAfter:{type:[Number,String],default:1},virtualScrollItemSize:{type:[Number,String],default:24},virtualScrollStickySizeStart:{type:[Number,String],default:0},virtualScrollStickySizeEnd:{type:[Number,String],default:0},tableColspan:[Number,String]},T=Object.keys(I),k={virtualScrollHorizontal:Boolean,onVirtualScroll:Function,...I};function A({virtualScrollLength:e,getVirtualScrollTarget:t,getVirtualScrollEl:n,virtualScrollItemSizeComputed:o}){const a=(0,i.FN)(),{props:s,emit:l,proxy:u}=a,{$q:c}=u;let d,h,p,f,v=[];const m=(0,r.iH)(0),I=(0,r.iH)(0),T=(0,r.iH)({}),k=(0,r.iH)(null),A=(0,r.iH)(null),D=(0,r.iH)(null),L=(0,r.iH)({from:0,to:0}),P=(0,i.Fl)((()=>void 0!==s.tableColspan?s.tableColspan:100));void 0===o&&(o=(0,i.Fl)((()=>s.virtualScrollItemSize)));const O=(0,i.Fl)((()=>o.value+";"+s.virtualScrollHorizontal)),R=(0,i.Fl)((()=>O.value+";"+s.virtualScrollSliceRatioBefore+";"+s.virtualScrollSliceRatioAfter));function E(){H(h,!0)}function N(e){H(void 0===e?h:e)}function F(i,r){const o=t();if(void 0===o||null===o||8===o.nodeType)return;const a=S(o,n(),k.value,A.value,s.virtualScrollHorizontal,c.lang.rtl,s.virtualScrollStickySizeStart,s.virtualScrollStickySizeEnd);p!==a.scrollViewSize&&W(a.scrollViewSize),V(o,a,Math.min(e.value-1,Math.max(0,parseInt(i,10)||0)),0,x.indexOf(r)>-1?r:h>-1&&i>h?"end":"start")}function B(){const i=t();if(void 0===i||null===i||8===i.nodeType)return;const r=S(i,n(),k.value,A.value,s.virtualScrollHorizontal,c.lang.rtl,s.virtualScrollStickySizeStart,s.virtualScrollStickySizeEnd),o=e.value-1,a=r.scrollMaxSize-r.offsetStart-r.offsetEnd-I.value;if(d===r.scrollStart)return;if(r.scrollMaxSize<=0)return void V(i,r,0,0);p!==r.scrollViewSize&&W(r.scrollViewSize),z(L.value.from);const l=Math.floor(r.scrollMaxSize-Math.max(r.scrollViewSize,r.offsetEnd)-Math.min(f[o],r.scrollViewSize/2));if(l>0&&Math.ceil(r.scrollStart)>=l)return void V(i,r,o,r.scrollMaxSize-r.offsetEnd-v.reduce(w,0));let u=0,h=r.scrollStart-r.offsetStart,g=h;if(h<=a&&h+r.scrollViewSize>=m.value)h-=m.value,u=L.value.from,g=h;else for(let e=0;h>=v[e]&&u0&&u-r.scrollViewSize?(u++,g=h):g=f[u]+h;V(i,r,u,g)}function V(t,n,i,r,o){const a="string"===typeof o&&o.indexOf("-force")>-1,l=!0===a?o.replace("-force",""):o,u=void 0!==l?l:"start";let h=Math.max(0,i-T.value[u]),p=h+T.value.total;p>e.value&&(p=e.value,h=Math.max(0,p-T.value.total)),d=n.scrollStart;const g=h!==L.value.from||p!==L.value.to;if(!1===g&&void 0===l)return void U(i);const{activeElement:y}=document,x=D.value;!0===g&&null!==x&&x!==y&&!0===x.contains(y)&&(x.addEventListener("focusout",q),setTimeout((()=>{null!==x&&x.removeEventListener("focusout",q)}))),b(x,i-h);const _=void 0!==l?f.slice(h,i).reduce(w,0):0;if(!0===g){const t=p>=L.value.from&&h<=L.value.to?L.value.to:p;L.value={from:h,to:t},m.value=C(v,f,0,h),I.value=C(v,f,p,e.value),requestAnimationFrame((()=>{L.value.to!==p&&d===n.scrollStart&&(L.value={from:L.value.from,to:p},I.value=C(v,f,p,e.value))}))}requestAnimationFrame((()=>{if(d!==n.scrollStart)return;!0===g&&z(h);const e=f.slice(h,i).reduce(w,0),o=e+n.offsetStart+m.value,u=o+f[i];let p=o+r;if(void 0!==l){const t=e-_,r=n.scrollStart+t;p=!0!==a&&re.classList&&!1===e.classList.contains("q-virtual-scroll--skip"))),i=n.length,r=!0===s.virtualScrollHorizontal?e=>e.getBoundingClientRect().width:e=>e.offsetHeight;let o,a,l=e;for(let e=0;e=a;i--)f[i]=r;const s=Math.floor((e.value-1)/y);v=[];for(let i=0;i<=s;i++){let t=0;const n=Math.min((i+1)*y,e.value);for(let e=i*y;e=0?(z(L.value.from),(0,i.Y3)((()=>{F(t)}))):j()}function W(e){if(void 0===e&&"undefined"!==typeof window){const i=t();void 0!==i&&null!==i&&8!==i.nodeType&&(e=S(i,n(),k.value,A.value,s.virtualScrollHorizontal,c.lang.rtl,s.virtualScrollStickySizeStart,s.virtualScrollStickySizeEnd).scrollViewSize)}p=e;const i=parseFloat(s.virtualScrollSliceRatioBefore)||0,r=parseFloat(s.virtualScrollSliceRatioAfter)||0,a=1+i+r,l=void 0===e||e<=0?1:Math.ceil(e/o.value),u=Math.max(1,l,Math.ceil((s.virtualScrollSliceSize>0?s.virtualScrollSliceSize:10)/a));T.value={total:Math.ceil(u*a),start:Math.ceil(u*i),center:Math.ceil(u*(.5+i)),end:Math.ceil(u*(1+i)),view:l}}function G(e,t){const n=!0===s.virtualScrollHorizontal?"width":"height",r={["--q-virtual-scroll-item-"+n]:o.value+"px"};return["tbody"===e?(0,i.h)(e,{class:"q-virtual-scroll__padding",key:"before",ref:k},[(0,i.h)("tr",[(0,i.h)("td",{style:{[n]:`${m.value}px`,...r},colspan:P.value})])]):(0,i.h)(e,{class:"q-virtual-scroll__padding",key:"before",ref:k,style:{[n]:`${m.value}px`,...r}}),(0,i.h)(e,{class:"q-virtual-scroll__content",key:"content",ref:D,tabindex:-1},t.flat()),"tbody"===e?(0,i.h)(e,{class:"q-virtual-scroll__padding",key:"after",ref:A},[(0,i.h)("tr",[(0,i.h)("td",{style:{[n]:`${I.value}px`,...r},colspan:P.value})])]):(0,i.h)(e,{class:"q-virtual-scroll__padding",key:"after",ref:A,style:{[n]:`${I.value}px`,...r}})]}function U(e){h!==e&&(void 0!==s.onVirtualScroll&&l("virtual-scroll",{index:e,from:L.value.from,to:L.value.to-1,direction:e{W()})),(0,i.YP)(O,E),W();const j=(0,g.Z)(B,!0===c.platform.is.ios?120:35);(0,i.wF)((()=>{W()}));let Z=!1;return(0,i.se)((()=>{Z=!0})),(0,i.dl)((()=>{if(!0!==Z)return;const e=t();void 0!==d&&void 0!==e&&null!==e&&8!==e.nodeType?M(e,d,s.virtualScrollHorizontal,c.lang.rtl):F(h)})),(0,i.Jd)((()=>{j.cancel()})),Object.assign(u,{scrollTo:F,reset:E,refresh:N}),{virtualScrollSliceRange:L,virtualScrollSliceSizeComputed:T,setVirtualScrollSize:W,onVirtualScrollEvt:j,localResetVirtualScroll:H,padVirtualScroll:G,scrollTo:F,reset:E,refresh:N}}var D=n(8400);const L={list:c.Z,table:p},P=["list","table","__qtable"],O=(0,a.L)({name:"QVirtualScroll",props:{...k,type:{type:String,default:"list",validator:e=>P.includes(e)},items:{type:Array,default:()=>[]},itemsFn:Function,itemsSize:Number,scrollTarget:{default:void 0}},setup(e,{slots:t,attrs:n}){let o;const a=(0,r.iH)(null),l=(0,i.Fl)((()=>e.itemsSize>=0&&void 0!==e.itemsFn?parseInt(e.itemsSize,10):Array.isArray(e.items)?e.items.length:0)),{virtualScrollSliceRange:u,localResetVirtualScroll:c,padVirtualScroll:d,onVirtualScrollEvt:h}=A({virtualScrollLength:l,getVirtualScrollTarget:x,getVirtualScrollEl:y}),p=(0,i.Fl)((()=>{if(0===l.value)return[];const t=(e,t)=>({index:u.value.from+t,item:e});return void 0===e.itemsFn?e.items.slice(u.value.from,u.value.to).map(t):e.itemsFn(u.value.from,u.value.to-u.value.from).map(t)})),g=(0,i.Fl)((()=>"q-virtual-scroll q-virtual-scroll"+(!0===e.virtualScrollHorizontal?"--horizontal":"--vertical")+(void 0!==e.scrollTarget?"":" scroll"))),m=(0,i.Fl)((()=>void 0!==e.scrollTarget?{}:{tabindex:0}));function y(){return a.value.$el||a.value}function x(){return o}function _(){o=(0,D.b0)(y(),e.scrollTarget),o.addEventListener("scroll",h,v.rU.passive)}function b(){void 0!==o&&(o.removeEventListener("scroll",h,v.rU.passive),o=void 0)}function w(){let n=d("list"===e.type?"div":"tbody",p.value.map(t.default));return void 0!==t.before&&(n=t.before().concat(n)),(0,s.vs)(t.after,n)}return(0,i.YP)(l,(()=>{c()})),(0,i.YP)((()=>e.scrollTarget),(()=>{b(),_()})),(0,i.wF)((()=>{c()})),(0,i.bv)((()=>{_()})),(0,i.dl)((()=>{_()})),(0,i.se)((()=>{b()})),(0,i.Jd)((()=>{b()})),()=>{if(void 0!==t.default)return"__qtable"===e.type?f({ref:a,class:"q-table__middle "+g.value},w()):(0,i.h)(L[e.type],{...n,ref:a,class:[n.class,g.value],...m.value},w);console.error("QVirtualScroll: default scoped slot is required for rendering")}}});var R=n(5);const E=(0,a.L)({name:"QField",inheritAttrs:!1,props:R.Cl,emits:R.HJ,setup(){return(0,R.ZP)((0,R.tL)())}});var N=n(7030),F=n(3414),B=n(2035),V=n(2350),z=n(811),q=n(6778),H=n(9550),W=n(4421),G=n(782),U=n(2130),j=n(1436);const Z=e=>["add","add-unique","toggle"].includes(e),$=".*+?^${}()|[]\\",Y=Object.keys(R.Cl),X=(0,a.L)({name:"QSelect",inheritAttrs:!1,props:{...k,...H.Fz,...R.Cl,modelValue:{required:!0},multiple:Boolean,displayValue:[String,Number],displayValueHtml:Boolean,dropdownIcon:String,options:{type:Array,default:()=>[]},optionValue:[Function,String],optionLabel:[Function,String],optionDisable:[Function,String],hideSelected:Boolean,hideDropdownIcon:Boolean,fillInput:Boolean,maxValues:[Number,String],optionsDense:Boolean,optionsDark:{type:Boolean,default:null},optionsSelectedClass:String,optionsHtml:Boolean,optionsCover:Boolean,menuShrink:Boolean,menuAnchor:String,menuSelf:String,menuOffset:Array,popupContentClass:String,popupContentStyle:[String,Array,Object],useInput:Boolean,useChips:Boolean,newValueMode:{type:String,validator:Z},mapOptions:Boolean,emitValue:Boolean,inputDebounce:{type:[Number,String],default:500},inputClass:[Array,String,Object],inputStyle:[Array,String,Object],tabindex:{type:[String,Number],default:0},autocomplete:String,transitionShow:String,transitionHide:String,transitionDuration:[String,Number],behavior:{type:String,validator:e=>["default","menu","dialog"].includes(e),default:"default"},virtualScrollItemSize:{type:[Number,String],default:void 0},onNewValue:Function,onFilter:Function},emits:[...R.HJ,"add","remove","input-value","new-value","keyup","keypress","keydown","filter-abort"],setup(e,{slots:t,emit:n}){const{proxy:a}=(0,i.FN)(),{$q:l}=a,u=(0,r.iH)(!1),c=(0,r.iH)(!1),d=(0,r.iH)(-1),h=(0,r.iH)(""),p=(0,r.iH)(!1),f=(0,r.iH)(!1);let g,m,y,x,_,b,w,S,M;const C=(0,r.iH)(null),I=(0,r.iH)(null),T=(0,r.iH)(null),k=(0,r.iH)(null),D=(0,r.iH)(null),L=(0,H.Do)(e),P=(0,W.Z)($e),O=(0,i.Fl)((()=>Array.isArray(e.options)?e.options.length:0)),X=(0,i.Fl)((()=>void 0===e.virtualScrollItemSize?!0===e.optionsDense?24:48:e.virtualScrollItemSize)),{virtualScrollSliceRange:K,virtualScrollSliceSizeComputed:J,localResetVirtualScroll:Q,padVirtualScroll:ee,onVirtualScrollEvt:te,scrollTo:ne,setVirtualScrollSize:ie}=A({virtualScrollLength:O,getVirtualScrollTarget:Ge,getVirtualScrollEl:We,virtualScrollItemSizeComputed:X}),re=(0,R.tL)(),oe=(0,i.Fl)((()=>{const t=!0===e.mapOptions&&!0!==e.multiple,n=void 0===e.modelValue||null===e.modelValue&&!0!==t?[]:!0===e.multiple&&Array.isArray(e.modelValue)?e.modelValue:[e.modelValue];if(!0===e.mapOptions&&!0===Array.isArray(e.options)){const i=!0===e.mapOptions&&void 0!==m?m:[],r=n.map((e=>Ee(e,i)));return null===e.modelValue&&!0===t?r.filter((e=>null!==e)):r}return n})),ae=(0,i.Fl)((()=>{const t={};return Y.forEach((n=>{const i=e[n];void 0!==i&&(t[n]=i)})),t})),se=(0,i.Fl)((()=>null===e.optionsDark?re.isDark.value:e.optionsDark)),le=(0,i.Fl)((()=>(0,R.yV)(oe.value))),ue=(0,i.Fl)((()=>{let t="q-field__input q-placeholder col";return!0===e.hideSelected||0===oe.value.length?[t,e.inputClass]:(t+=" q-field__input--padding",void 0===e.inputClass?t:[t,e.inputClass])})),ce=(0,i.Fl)((()=>(!0===e.virtualScrollHorizontal?"q-virtual-scroll--horizontal":"")+(e.popupContentClass?" "+e.popupContentClass:""))),de=(0,i.Fl)((()=>0===O.value)),he=(0,i.Fl)((()=>oe.value.map((e=>Me.value(e))).join(", "))),pe=(0,i.Fl)((()=>!0===e.optionsHtml?()=>!0:e=>void 0!==e&&null!==e&&!0===e.html)),fe=(0,i.Fl)((()=>!0===e.displayValueHtml||void 0===e.displayValue&&(!0===e.optionsHtml||oe.value.some(pe.value)))),ge=(0,i.Fl)((()=>!0===re.focused.value?e.tabindex:-1)),ve=(0,i.Fl)((()=>{const t={tabindex:e.tabindex,role:"combobox","aria-label":e.label,"aria-autocomplete":!0===e.useInput?"list":"none","aria-expanded":!0===u.value?"true":"false","aria-owns":`${re.targetUid.value}_lb`,"aria-controls":`${re.targetUid.value}_lb`};return d.value>=0&&(t["aria-activedescendant"]=`${re.targetUid.value}_${d.value}`),t})),me=(0,i.Fl)((()=>{const t={id:`${re.targetUid.value}_lb`,role:"listbox","aria-multiselectable":!0===e.multiple?"true":"false"};return d.value>=0&&(t["aria-activedescendant"]=`${re.targetUid.value}_${d.value}`),t})),ye=(0,i.Fl)((()=>oe.value.map(((e,t)=>({index:t,opt:e,html:pe.value(e),selected:!0,removeAtIndex:De,toggleOption:Pe,tabindex:ge.value}))))),xe=(0,i.Fl)((()=>{if(0===O.value)return[];const{from:t,to:n}=K.value;return e.options.slice(t,n).map(((n,i)=>{const r=!0===Ce.value(n),o=t+i,a={clickable:!0,active:!1,activeClass:we.value,manualFocus:!0,focused:!1,disable:r,tabindex:-1,dense:e.optionsDense,dark:se.value,role:"option",id:`${re.targetUid.value}_${o}`,onClick:()=>{Pe(n)}};return!0!==r&&(!0===Fe(n)&&(a.active=!0),d.value===o&&(a.focused=!0),a["aria-selected"]=!0===a.active?"true":"false",!0===l.platform.is.desktop&&(a.onMousemove=()=>{!0===u.value&&Oe(o)})),{index:o,opt:n,html:pe.value(n),label:Me.value(n),selected:a.active,focused:a.focused,toggleOption:Pe,setOptionIndex:Oe,itemProps:a}}))})),_e=(0,i.Fl)((()=>void 0!==e.dropdownIcon?e.dropdownIcon:l.iconSet.arrow.dropdown)),be=(0,i.Fl)((()=>!1===e.optionsCover&&!0!==e.outlined&&!0!==e.standout&&!0!==e.borderless&&!0!==e.rounded)),we=(0,i.Fl)((()=>void 0!==e.optionsSelectedClass?e.optionsSelectedClass:void 0!==e.color?`text-${e.color}`:"")),Se=(0,i.Fl)((()=>Ne(e.optionValue,"value"))),Me=(0,i.Fl)((()=>Ne(e.optionLabel,"label"))),Ce=(0,i.Fl)((()=>Ne(e.optionDisable,"disable"))),Ie=(0,i.Fl)((()=>oe.value.map((e=>Se.value(e))))),Te=(0,i.Fl)((()=>{const e={onInput:$e,onChange:P,onKeydown:He,onKeyup:ze,onKeypress:qe,onFocus:Be,onClick(e){!0===y&&(0,v.sT)(e)}};return e.onCompositionstart=e.onCompositionupdate=e.onCompositionend=P,e}));function ke(t){return!0===e.emitValue?Se.value(t):t}function Ae(t){if(t>-1&&t=e.maxValues)return;const o=e.modelValue.slice();n("add",{index:o.length,value:r}),o.push(r),n("update:modelValue",o)}function Pe(t,i){if(!0!==re.editable.value||void 0===t||!0===Ce.value(t))return;const r=Se.value(t);if(!0!==e.multiple)return!0!==i&&(Xe(!0===e.fillInput?Me.value(t):"",!0,!0),ut()),null!==I.value&&I.value.focus(),void(0!==oe.value.length&&!0===(0,G.xb)(Se.value(oe.value[0]),r)||n("update:modelValue",!0===e.emitValue?r:t));if((!0!==y||!0===p.value)&&re.focus(),Be(),0===oe.value.length){const i=!0===e.emitValue?r:t;return n("add",{index:0,value:i}),void n("update:modelValue",!0===e.multiple?[i]:i)}const o=e.modelValue.slice(),a=Ie.value.findIndex((e=>(0,G.xb)(e,r)));if(a>-1)n("remove",{index:a,value:o.splice(a,1)[0]});else{if(void 0!==e.maxValues&&o.length>=e.maxValues)return;const i=!0===e.emitValue?r:t;n("add",{index:o.length,value:i}),o.push(i)}n("update:modelValue",o)}function Oe(e){if(!0!==l.platform.is.desktop)return;const t=e>-1&&e=0?Me.value(e.options[i]):b))}}function Ee(t,n){const i=e=>(0,G.xb)(Se.value(e),t);return e.options.find(i)||n.find(i)||t}function Ne(e,t){const n=void 0!==e?e:t;return"function"===typeof n?n:e=>null!==e&&"object"===typeof e&&n in e?e[n]:e}function Fe(e){const t=Se.value(e);return void 0!==Ie.value.find((e=>(0,G.xb)(e,t)))}function Be(t){!0===e.useInput&&null!==I.value&&(void 0===t||I.value===t.target&&t.target.value===he.value)&&I.value.select()}function Ve(e){!0===(0,j.So)(e,27)&&!0===u.value&&((0,v.sT)(e),ut(),ct()),n("keyup",e)}function ze(t){const{value:n}=t.target;if(void 0===t.keyCode)if(t.target.value="",clearTimeout(g),ct(),"string"===typeof n&&n.length>0){const t=n.toLocaleLowerCase(),i=n=>{const i=e.options.find((e=>n.value(e).toLocaleLowerCase()===t));return void 0!==i&&(-1===oe.value.indexOf(i)?Pe(i):ut(),!0)},r=e=>{!0!==i(Se)&&!0!==i(Me)&&!0!==e&&Ke(n,!0,(()=>r(!0)))};r()}else re.clearValue(t);else Ve(t)}function qe(e){n("keypress",e)}function He(t){if(n("keydown",t),!0===(0,j.Wm)(t))return;const r=h.value.length>0&&(void 0!==e.newValueMode||void 0!==e.onNewValue),o=!0!==t.shiftKey&&!0!==e.multiple&&(d.value>-1||!0===r);if(27===t.keyCode)return void(0,v.X$)(t);if(9===t.keyCode&&!1===o)return void st();if(void 0===t.target||t.target.id!==re.targetUid.value)return;if(40===t.keyCode&&!0!==re.innerLoading.value&&!1===u.value)return(0,v.NS)(t),void lt();if(8===t.keyCode&&!0!==e.hideSelected&&0===h.value.length)return void(!0===e.multiple&&!0===Array.isArray(e.modelValue)?Ae(e.modelValue.length-1):!0!==e.multiple&&null!==e.modelValue&&n("update:modelValue",null));35!==t.keyCode&&36!==t.keyCode||"string"===typeof h.value&&0!==h.value.length||((0,v.NS)(t),d.value=-1,Re(36===t.keyCode?1:-1,e.multiple)),33!==t.keyCode&&34!==t.keyCode||void 0===J.value||((0,v.NS)(t),d.value=Math.max(-1,Math.min(O.value,d.value+(33===t.keyCode?-1:1)*J.value.view)),Re(33===t.keyCode?1:-1,e.multiple)),38!==t.keyCode&&40!==t.keyCode||((0,v.NS)(t),Re(38===t.keyCode?-1:1,e.multiple));const a=O.value;if((void 0===S||M0&&!0!==e.useInput&&void 0!==t.key&&1===t.key.length&&t.altKey===t.ctrlKey&&(32!==t.keyCode||S.length>0)){!0!==u.value&<(t);const n=t.key.toLocaleLowerCase(),r=1===S.length&&S[0]===n;M=Date.now()+1500,!1===r&&((0,v.NS)(t),S+=n);const o=new RegExp("^"+S.split("").map((e=>$.indexOf(e)>-1?"\\"+e:e)).join(".*"),"i");let s=d.value;if(!0===r||s<0||!0!==o.test(Me.value(e.options[s])))do{s=(0,U.Uz)(s+1,-1,a-1)}while(s!==d.value&&(!0===Ce.value(e.options[s])||!0!==o.test(Me.value(e.options[s]))));d.value!==s&&(0,i.Y3)((()=>{Oe(s),ne(s),s>=0&&!0===e.useInput&&!0===e.fillInput&&Ye(Me.value(e.options[s]))}))}else if(13===t.keyCode||32===t.keyCode&&!0!==e.useInput&&""===S||9===t.keyCode&&!1!==o)if(9!==t.keyCode&&(0,v.NS)(t),d.value>-1&&d.value{if(n){if(!0!==Z(n))return}else n=e.newValueMode;if(void 0===t||null===t)return;Xe("",!0!==e.multiple,!0);const i="toggle"===n?Pe:Le;i(t,"add-unique"===n),!0!==e.multiple&&(null!==I.value&&I.value.focus(),ut())};if(void 0!==e.onNewValue?n("new-value",h.value,t):t(h.value),!0!==e.multiple)return}!0===u.value?st():!0!==re.innerLoading.value&<()}}function We(){return!0===y?D.value:null!==T.value&&null!==T.value.__qPortalInnerRef.value?T.value.__qPortalInnerRef.value:void 0}function Ge(){return We()}function Ue(){return!0===e.hideSelected?[]:void 0!==t["selected-item"]?ye.value.map((e=>t["selected-item"](e))).slice():void 0!==t.selected?[].concat(t.selected()):!0===e.useChips?ye.value.map(((t,n)=>(0,i.h)(N.Z,{key:"option-"+n,removable:!0===re.editable.value&&!0!==Ce.value(t.opt),dense:!0,textColor:e.color,tabindex:ge.value,onRemove(){t.removeAtIndex(n)}},(()=>(0,i.h)("span",{class:"ellipsis",[!0===t.html?"innerHTML":"textContent"]:Me.value(t.opt)}))))):[(0,i.h)("span",{[!0===fe.value?"innerHTML":"textContent"]:void 0!==e.displayValue?e.displayValue:he.value})]}function je(){if(!0===de.value)return void 0!==t["no-option"]?t["no-option"]({inputValue:h.value}):void 0;const e=void 0!==t.option?t.option:e=>(0,i.h)(F.Z,{key:e.index,...e.itemProps},(()=>(0,i.h)(B.Z,(()=>(0,i.h)(V.Z,(()=>(0,i.h)("span",{[!0===e.html?"innerHTML":"textContent"]:e.label})))))));let n=ee("div",xe.value.map(e));return void 0!==t["before-options"]&&(n=t["before-options"]().concat(n)),(0,s.vs)(t["after-options"],n)}function Ze(t,n){const r=!0===n?{...ve.value,...re.splitAttrs.attributes.value}:void 0,o={ref:!0===n?I:void 0,key:"i_t",class:ue.value,style:e.inputStyle,value:void 0!==h.value?h.value:"",type:"search",...r,id:!0===n?re.targetUid.value:void 0,maxlength:e.maxlength,autocomplete:e.autocomplete,"data-autofocus":!0!==t&&!0===e.autofocus||void 0,disabled:!0===e.disable,readonly:!0===e.readonly,...Te.value};return!0!==t&&!0===y&&(!0===Array.isArray(o.class)?o.class=[...o.class,"no-pointer-events"]:o.class+=" no-pointer-events"),(0,i.h)("input",o)}function $e(t){clearTimeout(g),t&&t.target&&!0===t.target.qComposing||(Ye(t.target.value||""),x=!0,b=h.value,!0===re.focused.value||!0===y&&!0!==p.value||re.focus(),void 0!==e.onFilter&&(g=setTimeout((()=>{Ke(h.value)}),e.inputDebounce)))}function Ye(e){h.value!==e&&(h.value=e,n("input-value",e))}function Xe(t,n,i){x=!0!==i,!0===e.useInput&&(Ye(t),!0!==n&&!0===i||(b=t),!0!==n&&Ke(t))}function Ke(t,r,o){if(void 0===e.onFilter||!0!==r&&!0!==re.focused.value)return;!0===re.innerLoading.value?n("filter-abort"):(re.innerLoading.value=!0,f.value=!0),""!==t&&!0!==e.multiple&&oe.value.length>0&&!0!==x&&t===Me.value(oe.value[0])&&(t="");const s=setTimeout((()=>{!0===u.value&&(u.value=!1)}),10);clearTimeout(_),_=s,n("filter",t,((e,t)=>{!0!==r&&!0!==re.focused.value||_!==s||(clearTimeout(_),"function"===typeof e&&e(),f.value=!1,(0,i.Y3)((()=>{re.innerLoading.value=!1,!0===re.editable.value&&(!0===r?!0===u.value&&ut():!0===u.value?dt(!0):u.value=!0),"function"===typeof t&&(0,i.Y3)((()=>{t(a)})),"function"===typeof o&&(0,i.Y3)((()=>{o(a)}))})))}),(()=>{!0===re.focused.value&&_===s&&(clearTimeout(_),re.innerLoading.value=!1,f.value=!1),!0===u.value&&(u.value=!1)}))}function Je(){return(0,i.h)(z.Z,{ref:T,class:ce.value,style:e.popupContentStyle,modelValue:u.value,fit:!0!==e.menuShrink,cover:!0===e.optionsCover&&!0!==de.value&&!0!==e.useInput,anchor:e.menuAnchor,self:e.menuSelf,offset:e.menuOffset,dark:se.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,square:be.value,transitionShow:e.transitionShow,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,separateClosePopup:!0,...me.value,onScrollPassive:te,onBeforeShow:ft,onBeforeHide:Qe,onShow:et},je)}function Qe(e){gt(e),st()}function et(){ie()}function tt(e){(0,v.sT)(e),null!==I.value&&I.value.focus(),p.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function nt(e){(0,v.sT)(e),(0,i.Y3)((()=>{p.value=!1}))}function it(){const n=[(0,i.h)(E,{class:`col-auto ${re.fieldClass.value}`,...ae.value,for:re.targetUid.value,dark:se.value,square:!0,loading:f.value,itemAligned:!1,filled:!0,stackLabel:h.value.length>0,...re.splitAttrs.listeners.value,onFocus:tt,onBlur:nt},{...t,rawControl:()=>re.getControl(!0),before:void 0,after:void 0})];return!0===u.value&&n.push((0,i.h)("div",{ref:D,class:ce.value+" scroll",style:e.popupContentStyle,...me.value,onClick:v.X$,onScrollPassive:te},je())),(0,i.h)(q.Z,{ref:k,modelValue:c.value,position:!0===e.useInput?"top":void 0,transitionShow:w,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,onBeforeShow:ft,onBeforeHide:rt,onHide:ot,onShow:at},(()=>(0,i.h)("div",{class:"q-select__dialog"+(!0===se.value?" q-select__dialog--dark q-dark":"")+(!0===p.value?" q-select__dialog--focused":"")},n)))}function rt(e){gt(e),null!==k.value&&k.value.__updateRefocusTarget(re.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),re.focused.value=!1}function ot(e){ut(),!1===re.focused.value&&n("blur",e),ct()}function at(){const e=document.activeElement;null!==e&&e.id===re.targetUid.value||null===I.value||I.value===e||I.value.focus(),ie()}function st(){!0!==c.value&&(d.value=-1,!0===u.value&&(u.value=!1),!1===re.focused.value&&(clearTimeout(_),_=void 0,!0===re.innerLoading.value&&(n("filter-abort"),re.innerLoading.value=!1,f.value=!1)))}function lt(n){!0===re.editable.value&&(!0===y?(re.onControlFocusin(n),c.value=!0,(0,i.Y3)((()=>{re.focus()}))):re.focus(),void 0!==e.onFilter?Ke(h.value):!0===de.value&&void 0===t["no-option"]||(u.value=!0))}function ut(){c.value=!1,st()}function ct(){!0===e.useInput&&Xe(!0!==e.multiple&&!0===e.fillInput&&oe.value.length>0&&Me.value(oe.value[0])||"",!0,!0)}function dt(t){let n=-1;if(!0===t){if(oe.value.length>0){const t=Se.value(oe.value[0]);n=e.options.findIndex((e=>(0,G.xb)(Se.value(e),t)))}Q(n)}Oe(n)}function ht(e,t){!0===u.value&&!1===re.innerLoading.value&&(Q(-1,!0),(0,i.Y3)((()=>{!0===u.value&&!1===re.innerLoading.value&&(e>t?Q():dt(!0))})))}function pt(){!1===c.value&&null!==T.value&&T.value.updatePosition()}function ft(e){void 0!==e&&(0,v.sT)(e),n("popup-show",e),re.hasPopupOpen=!0,re.onControlFocusin(e)}function gt(e){void 0!==e&&(0,v.sT)(e),n("popup-hide",e),re.hasPopupOpen=!1,re.onControlFocusout(e)}function vt(){y=(!0===l.platform.is.mobile||"dialog"===e.behavior)&&("menu"!==e.behavior&&(!0!==e.useInput||(void 0!==t["no-option"]||void 0!==e.onFilter||!1===de.value))),w=!0===l.platform.is.ios&&!0===y&&!0===e.useInput?"fade":e.transitionShow}return(0,i.YP)(oe,(t=>{m=t,!0===e.useInput&&!0===e.fillInput&&!0!==e.multiple&&!0!==re.innerLoading.value&&(!0!==c.value&&!0!==u.value||!0!==le.value)&&(!0!==x&&ct(),!0!==c.value&&!0!==u.value||Ke(""))}),{immediate:!0}),(0,i.YP)((()=>e.fillInput),ct),(0,i.YP)(u,dt),(0,i.YP)(O,ht),(0,i.Xn)(vt),(0,i.ic)(pt),vt(),(0,i.Jd)((()=>{clearTimeout(g)})),Object.assign(a,{showPopup:lt,hidePopup:ut,removeAtIndex:Ae,add:Le,toggleOption:Pe,getOptionIndex:()=>d.value,setOptionIndex:Oe,moveOptionSelection:Re,filter:Ke,updateMenuPosition:pt,updateInputValue:Xe,isOptionSelected:Fe,getEmittingOptionValue:ke,isOptionDisabled:(...e)=>!0===Ce.value.apply(null,e),getOptionValue:(...e)=>Se.value.apply(null,e),getOptionLabel:(...e)=>Me.value.apply(null,e)}),Object.assign(re,{innerValue:oe,fieldClass:(0,i.Fl)((()=>`q-select q-field--auto-height q-select--with${!0!==e.useInput?"out":""}-input q-select--with${!0!==e.useChips?"out":""}-chips q-select--`+(!0===e.multiple?"multiple":"single"))),inputRef:C,targetRef:I,hasValue:le,showPopup:lt,floatingLabel:(0,i.Fl)((()=>!0!==e.hideSelected&&!0===le.value||"number"===typeof h.value||h.value.length>0||(0,R.yV)(e.displayValue))),getControlChild:()=>{if(!1!==re.editable.value&&(!0===c.value||!0!==de.value||void 0!==t["no-option"]))return!0===y?it():Je();!0===re.hasPopupOpen&&(re.hasPopupOpen=!1)},controlEvents:{onFocusin(e){re.onControlFocusin(e)},onFocusout(e){re.onControlFocusout(e,(()=>{ct(),st()}))},onClick(e){if((0,v.X$)(e),!0!==y&&!0===u.value)return st(),void(null!==I.value&&I.value.focus());lt(e)}},getControl:t=>{const n=Ue(),r=!0===t||!0!==c.value||!0!==y;if(!0===e.useInput)n.push(Ze(t,r));else if(!0===re.editable.value){const o=!0===r?ve.value:void 0;n.push((0,i.h)("input",{ref:!0===r?I:void 0,key:"d_t",class:"q-select__focus-target",id:!0===r?re.targetUid.value:void 0,readonly:!0,"data-autofocus":!0!==t&&!0===e.autofocus||void 0,...o,onKeydown:He,onKeyup:Ve,onKeypress:qe})),!0===r&&"string"===typeof e.autocomplete&&e.autocomplete.length>0&&n.push((0,i.h)("input",{class:"q-select__autocomplete-input",autocomplete:e.autocomplete,onKeyup:ze}))}if(void 0!==L.value&&!0!==e.disable&&Ie.value.length>0){const t=Ie.value.map((e=>(0,i.h)("option",{value:e,selected:!0})));n.push((0,i.h)("select",{class:"hidden",name:L.value,multiple:e.multiple},t))}const o=!0===e.useInput||!0!==r?void 0:re.splitAttrs.attributes.value;return(0,i.h)("div",{class:"q-field__native row items-center",...o},n)},getInnerAppend:()=>!0!==e.loading&&!0!==f.value&&!0!==e.hideDropdownIcon?[(0,i.h)(o.Z,{class:"q-select__dropdown-icon"+(!0===u.value?" rotate-180":""),name:_e.value})]:null}),(0,R.ZP)(re)}});var K=n(2417);const J={xs:2,sm:4,md:6,lg:10,xl:14};function Q(e,t,n){return{transform:!0===t?`translateX(${!0===n.lang.rtl?"-":""}100%) scale3d(${-e},1,1)`:`scale3d(${e},1,1)`}}const ee=(0,a.L)({name:"QLinearProgress",props:{...d.S,...K.LU,value:{type:Number,default:0},buffer:Number,color:String,trackColor:String,reverse:Boolean,stripe:Boolean,indeterminate:Boolean,query:Boolean,rounded:Boolean,animationSpeed:{type:[String,Number],default:2100},instantFeedback:Boolean},setup(e,{slots:t}){const{proxy:n}=(0,i.FN)(),r=(0,d.Z)(e,n.$q),o=(0,K.ZP)(e,J),a=(0,i.Fl)((()=>!0===e.indeterminate||!0===e.query)),l=(0,i.Fl)((()=>e.reverse!==e.query)),u=(0,i.Fl)((()=>({...null!==o.value?o.value:{},"--q-linear-progress-speed":`${e.animationSpeed}ms`}))),c=(0,i.Fl)((()=>"q-linear-progress"+(void 0!==e.color?` text-${e.color}`:"")+(!0===e.reverse||!0===e.query?" q-linear-progress--reverse":"")+(!0===e.rounded?" rounded-borders":""))),h=(0,i.Fl)((()=>Q(void 0!==e.buffer?e.buffer:1,l.value,n.$q))),p=(0,i.Fl)((()=>`q-linear-progress__track absolute-full q-linear-progress__track--with${!0===e.instantFeedback?"out":""}-transition q-linear-progress__track--`+(!0===r.value?"dark":"light")+(void 0!==e.trackColor?` bg-${e.trackColor}`:""))),f=(0,i.Fl)((()=>Q(!0===a.value?1:e.value,l.value,n.$q))),g=(0,i.Fl)((()=>`q-linear-progress__model absolute-full q-linear-progress__model--with${!0===e.instantFeedback?"out":""}-transition q-linear-progress__model--${!0===a.value?"in":""}determinate`)),v=(0,i.Fl)((()=>({width:100*e.value+"%"}))),m=(0,i.Fl)((()=>"q-linear-progress__stripe absolute-"+(!0===e.reverse?"right":"left")));return()=>{const n=[(0,i.h)("div",{class:p.value,style:h.value}),(0,i.h)("div",{class:g.value,style:f.value})];return!0===e.stripe&&!1===a.value&&n.push((0,i.h)("div",{class:m.value,style:v.value})),(0,i.h)("div",{class:c.value,style:u.value,role:"progressbar","aria-valuemin":0,"aria-valuemax":1,"aria-valuenow":!0===e.indeterminate?void 0:e.value},(0,s.vs)(t.default,n))}}});function te(e,t){const n=(0,r.iH)(null),o=(0,i.Fl)((()=>!0===e.disable?null:(0,i.h)("span",{ref:n,class:"no-outline",tabindex:-1})));function a(e){const i=t.value;void 0!==e&&0===e.type.indexOf("key")?null!==i&&document.activeElement!==i&&!0===i.contains(document.activeElement)&&i.focus():null!==n.value&&(void 0===e||null!==i&&!0===i.contains(e.target))&&n.value.focus()}return{refocusTargetEl:o,refocusTarget:a}}const ne={xs:30,sm:35,md:40,lg:50,xl:60},ie={...d.S,...K.LU,...H.Fz,modelValue:{required:!0,default:null},val:{},trueValue:{default:!0},falseValue:{default:!1},indeterminateValue:{default:null},checkedIcon:String,uncheckedIcon:String,indeterminateIcon:String,toggleOrder:{type:String,validator:e=>"tf"===e||"ft"===e},toggleIndeterminate:Boolean,label:String,leftLabel:Boolean,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},re=["update:modelValue"];function oe(e,t){const{props:n,slots:o,emit:a,proxy:l}=(0,i.FN)(),{$q:u}=l,c=(0,d.Z)(n,u),h=(0,r.iH)(null),{refocusTargetEl:p,refocusTarget:f}=te(n,h),g=(0,K.ZP)(n,ne),m=(0,i.Fl)((()=>void 0!==n.val&&Array.isArray(n.modelValue))),y=(0,i.Fl)((()=>{const e=(0,r.IU)(n.val);return!0===m.value?n.modelValue.findIndex((t=>(0,r.IU)(t)===e)):-1})),x=(0,i.Fl)((()=>!0===m.value?y.value>-1:(0,r.IU)(n.modelValue)===(0,r.IU)(n.trueValue))),_=(0,i.Fl)((()=>!0===m.value?-1===y.value:(0,r.IU)(n.modelValue)===(0,r.IU)(n.falseValue))),b=(0,i.Fl)((()=>!1===x.value&&!1===_.value)),w=(0,i.Fl)((()=>!0===n.disable?-1:n.tabindex||0)),S=(0,i.Fl)((()=>`q-${e} cursor-pointer no-outline row inline no-wrap items-center`+(!0===n.disable?" disabled":"")+(!0===c.value?` q-${e}--dark`:"")+(!0===n.dense?` q-${e}--dense`:"")+(!0===n.leftLabel?" reverse":""))),M=(0,i.Fl)((()=>{const t=!0===x.value?"truthy":!0===_.value?"falsy":"indet",i=void 0===n.color||!0!==n.keepColor&&("toggle"===e?!0!==x.value:!0===_.value)?"":` text-${n.color}`;return`q-${e}__inner relative-position non-selectable q-${e}__inner--${t}${i}`})),C=(0,i.Fl)((()=>{const e={type:"checkbox"};return void 0!==n.name&&Object.assign(e,{"^checked":!0===x.value?"checked":void 0,name:n.name,value:!0===m.value?n.val:n.trueValue}),e})),I=(0,H.eX)(C),T=(0,i.Fl)((()=>{const e={tabindex:w.value,role:"checkbox","aria-label":n.label,"aria-checked":!0===b.value?"mixed":!0===x.value?"true":"false"};return!0===n.disable&&(e["aria-disabled"]="true"),e}));function k(e){void 0!==e&&((0,v.NS)(e),f(e)),!0!==n.disable&&a("update:modelValue",A(),e)}function A(){if(!0===m.value){if(!0===x.value){const e=n.modelValue.slice();return e.splice(y.value,1),e}return n.modelValue.concat([n.val])}if(!0===x.value){if("ft"!==n.toggleOrder||!1===n.toggleIndeterminate)return n.falseValue}else{if(!0!==_.value)return"ft"!==n.toggleOrder?n.trueValue:n.falseValue;if("ft"===n.toggleOrder||!1===n.toggleIndeterminate)return n.trueValue}return n.indeterminateValue}function D(e){13!==e.keyCode&&32!==e.keyCode||(0,v.NS)(e)}function L(e){13!==e.keyCode&&32!==e.keyCode||k(e)}const P=t(x,b);return Object.assign(l,{toggle:k}),()=>{const t=P();!0!==n.disable&&I(t,"unshift",` q-${e}__native absolute q-ma-none q-pa-none`);const r=[(0,i.h)("div",{class:M.value,style:g.value},t)];null!==p.value&&r.push(p.value);const a=void 0!==n.label?(0,s.vs)(o.default,[n.label]):(0,s.KR)(o.default);return void 0!==a&&r.push((0,i.h)("div",{class:`q-${e}__label q-anchor--skip`},a)),(0,i.h)("div",{ref:h,class:S.value,...T.value,onClick:k,onKeydown:D,onKeyup:L},r)}}const ae=(0,i.h)("div",{key:"svg",class:"q-checkbox__bg absolute"},[(0,i.h)("svg",{class:"q-checkbox__svg fit absolute-full",viewBox:"0 0 24 24","aria-hidden":"true"},[(0,i.h)("path",{class:"q-checkbox__truthy",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}),(0,i.h)("path",{class:"q-checkbox__indet",d:"M4,14H20V10H4"})])]),se=(0,a.L)({name:"QCheckbox",props:ie,emits:re,setup(e){function t(t,n){const r=(0,i.Fl)((()=>(!0===t.value?e.checkedIcon:!0===n.value?e.indeterminateIcon:e.uncheckedIcon)||null));return()=>null!==r.value?[(0,i.h)("div",{key:"icon",class:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[(0,i.h)(o.Z,{class:"q-checkbox__icon",name:r.value})])]:[ae]}return oe("checkbox",t)}});var le=n(8240),ue=n(6583),ce=n(7445);let de=0;const he={fullscreen:Boolean,noRouteFullscreenExit:Boolean},pe=["update:fullscreen","fullscreen"];function fe(){const e=(0,i.FN)(),{props:t,emit:n,proxy:o}=e;let a,s,l;const u=(0,r.iH)(!1);function c(){!0===u.value?h():d()}function d(){!0!==u.value&&(u.value=!0,l=o.$el.parentNode,l.replaceChild(s,o.$el),document.body.appendChild(o.$el),de++,1===de&&document.body.classList.add("q-body--fullscreen-mixin"),a={handler:h},ue.Z.add(a))}function h(){!0===u.value&&(void 0!==a&&(ue.Z.remove(a),a=void 0),l.replaceChild(o.$el,s),u.value=!1,de=Math.max(0,de-1),0===de&&(document.body.classList.remove("q-body--fullscreen-mixin"),void 0!==o.$el.scrollIntoView&&setTimeout((()=>{o.$el.scrollIntoView()}))))}return!0===(0,ce.Rb)(e)&&(0,i.YP)((()=>o.$route.fullPath),(()=>{!0!==t.noRouteFullscreenExit&&h()})),(0,i.YP)((()=>t.fullscreen),(e=>{u.value!==e&&c()})),(0,i.YP)(u,(e=>{n("update:fullscreen",e),n("fullscreen",e)})),(0,i.wF)((()=>{s=document.createElement("span")})),(0,i.bv)((()=>{!0===t.fullscreen&&d()})),(0,i.Jd)(h),Object.assign(o,{toggleFullscreen:c,setFullscreen:d,exitFullscreen:h}),{inFullscreen:u,toggleFullscreen:c}}function ge(e,t){return new Date(e)-new Date(t)}const ve={sortMethod:Function,binaryStateSort:Boolean,columnSortOrder:{type:String,validator:e=>"ad"===e||"da"===e,default:"ad"}};function me(e,t,n,r){const o=(0,i.Fl)((()=>{const{sortBy:e}=t.value;return e&&n.value.find((t=>t.name===e))||null})),a=(0,i.Fl)((()=>void 0!==e.sortMethod?e.sortMethod:(e,t,i)=>{const r=n.value.find((e=>e.name===t));if(void 0===r||void 0===r.field)return e;const o=!0===i?-1:1,a="function"===typeof r.field?e=>r.field(e):e=>e[r.field];return e.sort(((e,t)=>{let n=a(e),i=a(t);return null===n||void 0===n?-1*o:null===i||void 0===i?1*o:void 0!==r.sort?r.sort(n,i,e,t)*o:!0===(0,G.hj)(n)&&!0===(0,G.hj)(i)?(n-i)*o:!0===(0,G.J_)(n)&&!0===(0,G.J_)(i)?ge(n,i)*o:"boolean"===typeof n&&"boolean"===typeof i?(n-i)*o:([n,i]=[n,i].map((e=>(e+"").toLocaleString().toLowerCase())),ne.name===i));void 0!==e&&e.sortOrder&&(o=e.sortOrder)}let{sortBy:a,descending:s}=t.value;a!==i?(a=i,s="da"===o):!0===e.binaryStateSort?s=!s:!0===s?"ad"===o?a=null:s=!1:"ad"===o?s=!0:a=null,r({sortBy:a,descending:s,page:1})}return{columnToSort:o,computedSortMethod:a,sort:s}}const ye={filter:[String,Object],filterMethod:Function};function xe(e,t){const n=(0,i.Fl)((()=>void 0!==e.filterMethod?e.filterMethod:(e,t,n,i)=>{const r=t?t.toLowerCase():"";return e.filter((e=>n.some((t=>{const n=i(t,e)+"",o="undefined"===n||"null"===n?"":n.toLowerCase();return-1!==o.indexOf(r)}))))}));return(0,i.YP)((()=>e.filter),(()=>{(0,i.Y3)((()=>{t({page:1},!0)}))}),{deep:!0}),{computedFilterMethod:n}}function _e(e,t){for(const n in t)if(t[n]!==e[n])return!1;return!0}function be(e){return e.page<1&&(e.page=1),void 0!==e.rowsPerPage&&e.rowsPerPage<1&&(e.rowsPerPage=0),e}const we={pagination:Object,rowsPerPageOptions:{type:Array,default:()=>[5,7,10,15,20,25,50,0]},"onUpdate:pagination":[Function,Array]};function Se(e,t){const{props:n,emit:o}=e,a=(0,r.iH)(Object.assign({sortBy:null,descending:!1,page:1,rowsPerPage:n.rowsPerPageOptions.length>0?n.rowsPerPageOptions[0]:5},n.pagination)),s=(0,i.Fl)((()=>{const e=void 0!==n["onUpdate:pagination"]?{...a.value,...n.pagination}:a.value;return be(e)})),l=(0,i.Fl)((()=>void 0!==s.value.rowsNumber));function u(e){c({pagination:e,filter:n.filter})}function c(e={}){(0,i.Y3)((()=>{o("request",{pagination:e.pagination||s.value,filter:e.filter||n.filter,getCellValue:t})}))}function d(e,t){const i=be({...s.value,...e});!0!==_e(s.value,i)?!0!==l.value?void 0!==n.pagination&&void 0!==n["onUpdate:pagination"]?o("update:pagination",i):a.value=i:u(i):!0===l.value&&!0===t&&u(i)}return{innerPagination:a,computedPagination:s,isServerSide:l,requestServerInteraction:c,setPagination:d}}function Me(e,t,n,r,o,a){const{props:s,emit:l,proxy:{$q:u}}=e,c=(0,i.Fl)((()=>!0===r.value?n.value.rowsNumber||0:a.value)),d=(0,i.Fl)((()=>{const{page:e,rowsPerPage:t}=n.value;return(e-1)*t})),h=(0,i.Fl)((()=>{const{page:e,rowsPerPage:t}=n.value;return e*t})),p=(0,i.Fl)((()=>1===n.value.page)),f=(0,i.Fl)((()=>0===n.value.rowsPerPage?1:Math.max(1,Math.ceil(c.value/n.value.rowsPerPage)))),g=(0,i.Fl)((()=>0===h.value||n.value.page>=f.value)),v=(0,i.Fl)((()=>{const e=s.rowsPerPageOptions.includes(t.value.rowsPerPage)?s.rowsPerPageOptions:[t.value.rowsPerPage].concat(s.rowsPerPageOptions);return e.map((e=>({label:0===e?u.lang.table.allRows:""+e,value:e})))}));function m(){o({page:1})}function y(){const{page:e}=n.value;e>1&&o({page:e-1})}function x(){const{page:e,rowsPerPage:t}=n.value;h.value>0&&e*t{if(e===t)return;const i=n.value.page;e&&!i?o({page:1}):e["single","multiple","none"].includes(e)},selected:{type:Array,default:()=>[]}},Ie=["update:selected","selection"];function Te(e,t,n,r){const o=(0,i.Fl)((()=>{const t={};return e.selected.map(r.value).forEach((e=>{t[e]=!0})),t})),a=(0,i.Fl)((()=>"none"!==e.selection)),s=(0,i.Fl)((()=>"single"===e.selection)),l=(0,i.Fl)((()=>"multiple"===e.selection)),u=(0,i.Fl)((()=>n.value.length>0&&n.value.every((e=>!0===o.value[r.value(e)])))),c=(0,i.Fl)((()=>!0!==u.value&&n.value.some((e=>!0===o.value[r.value(e)])))),d=(0,i.Fl)((()=>e.selected.length));function h(e){return!0===o.value[e]}function p(){t("update:selected",[])}function f(n,i,o,a){t("selection",{rows:i,added:o,keys:n,evt:a});const l=!0===s.value?!0===o?i:[]:!0===o?e.selected.concat(i):e.selected.filter((e=>!1===n.includes(r.value(e))));t("update:selected",l)}return{hasSelectionMode:a,singleSelection:s,multipleSelection:l,allRowsSelected:u,someRowsSelected:c,rowsSelectedNumber:d,isRowSelected:h,clearSelection:p,updateSelection:f}}function ke(e){return Array.isArray(e)?e.slice():[]}const Ae={expanded:Array},De=["update:expanded"];function Le(e,t){const n=(0,r.iH)(ke(e.expanded));function o(e){return n.value.includes(e)}function a(i){void 0!==e.expanded?t("update:expanded",i):n.value=i}function s(e,t){const i=n.value.slice(),r=i.indexOf(e);!0===t?-1===r&&(i.push(e),a(i)):-1!==r&&(i.splice(r,1),a(i))}return(0,i.YP)((()=>e.expanded),(e=>{n.value=ke(e)})),{isRowExpanded:o,setExpanded:a,updateExpanded:s}}const Pe={visibleColumns:Array};function Oe(e,t,n){const r=(0,i.Fl)((()=>{if(void 0!==e.columns)return e.columns;const t=e.rows[0];return void 0!==t?Object.keys(t).map((e=>({name:e,label:e.toUpperCase(),field:e,align:(0,G.hj)(t[e])?"right":"left",sortable:!0}))):[]})),o=(0,i.Fl)((()=>{const{sortBy:n,descending:i}=t.value,o=void 0!==e.visibleColumns?r.value.filter((t=>!0===t.required||!0===e.visibleColumns.includes(t.name))):r.value;return o.map((e=>{const t=e.align||"right",r=`text-${t}`;return{...e,align:t,__iconClass:`q-table__sort-icon q-table__sort-icon--${t}`,__thClass:r+(void 0!==e.headerClasses?" "+e.headerClasses:"")+(!0===e.sortable?" sortable":"")+(e.name===n?" sorted "+(!0===i?"sort-desc":""):""),__tdStyle:void 0!==e.style?"function"!==typeof e.style?()=>e.style:e.style:()=>null,__tdClass:void 0!==e.classes?"function"!==typeof e.classes?()=>r+" "+e.classes:t=>r+" "+e.classes(t):()=>r}}))})),a=(0,i.Fl)((()=>{const e={};return o.value.forEach((t=>{e[t.name]=t})),e})),s=(0,i.Fl)((()=>void 0!==e.tableColspan?e.tableColspan:o.value.length+(!0===n.value?1:0)));return{colList:r,computedCols:o,computedColsMap:a,computedColspan:s}}var Re=n(9085);const Ee="q-table__bottom row items-center",Ne={};T.forEach((e=>{Ne[e]={}}));const Fe=(0,a.L)({name:"QTable",props:{rows:{type:Array,default:()=>[]},rowKey:{type:[String,Function],default:"id"},columns:Array,loading:Boolean,iconFirstPage:String,iconPrevPage:String,iconNextPage:String,iconLastPage:String,title:String,hideHeader:Boolean,grid:Boolean,gridHeader:Boolean,dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,separator:{type:String,default:"horizontal",validator:e=>["horizontal","vertical","cell","none"].includes(e)},wrapCells:Boolean,virtualScroll:Boolean,virtualScrollTarget:{default:void 0},...Ne,noDataLabel:String,noResultsLabel:String,loadingLabel:String,selectedRowsLabel:Function,rowsPerPageLabel:String,paginationLabel:Function,color:{type:String,default:"grey-8"},titleClass:[String,Array,Object],tableStyle:[String,Array,Object],tableClass:[String,Array,Object],tableHeaderStyle:[String,Array,Object],tableHeaderClass:[String,Array,Object],cardContainerClass:[String,Array,Object],cardContainerStyle:[String,Array,Object],cardStyle:[String,Array,Object],cardClass:[String,Array,Object],hideBottom:Boolean,hideSelectedBanner:Boolean,hideNoData:Boolean,hidePagination:Boolean,onRowClick:Function,onRowDblclick:Function,onRowContextmenu:Function,...d.S,...he,...Pe,...ye,...we,...Ae,...Ce,...ve},emits:["request","virtual-scroll",...pe,...De,...Ie],setup(e,{slots:t,emit:n}){const a=(0,i.FN)(),{proxy:{$q:s}}=a,c=(0,d.Z)(e,s),{inFullscreen:h,toggleFullscreen:p}=fe(),g=(0,i.Fl)((()=>"function"===typeof e.rowKey?e.rowKey:t=>t[e.rowKey])),v=(0,r.iH)(null),m=(0,r.iH)(null),y=(0,i.Fl)((()=>!0!==e.grid&&!0===e.virtualScroll)),x=(0,i.Fl)((()=>" q-table__card"+(!0===c.value?" q-table__card--dark q-dark":"")+(!0===e.square?" q-table--square":"")+(!0===e.flat?" q-table--flat":"")+(!0===e.bordered?" q-table--bordered":""))),_=(0,i.Fl)((()=>`q-table__container q-table--${e.separator}-separator column no-wrap`+(!0===e.grid?" q-table--grid":x.value)+(!0===c.value?" q-table--dark":"")+(!0===e.dense?" q-table--dense":"")+(!1===e.wrapCells?" q-table--no-wrap":"")+(!0===h.value?" fullscreen scroll":""))),b=(0,i.Fl)((()=>_.value+(!0===e.loading?" q-table--loading":"")));(0,i.YP)((()=>e.tableStyle+e.tableClass+e.tableHeaderStyle+e.tableHeaderClass+_.value),(()=>{!0===y.value&&null!==m.value&&m.value.reset()}));const{innerPagination:w,computedPagination:S,isServerSide:M,requestServerInteraction:C,setPagination:I}=Se(a,Ne),{computedFilterMethod:k}=xe(e,I),{isRowExpanded:A,setExpanded:D,updateExpanded:L}=Le(e,n),P=(0,i.Fl)((()=>{let t=e.rows;if(!0===M.value||0===t.length)return t;const{sortBy:n,descending:i}=S.value;return e.filter&&(t=k.value(t,e.filter,j.value,Ne)),null!==Y.value&&(t=K.value(e.rows===t?t.slice():t,n,i)),t})),R=(0,i.Fl)((()=>P.value.length)),E=(0,i.Fl)((()=>{let t=P.value;if(!0===M.value)return t;const{rowsPerPage:n}=S.value;return 0!==n&&(0===Q.value&&e.rows!==t?t.length>te.value&&(t=t.slice(0,te.value)):t=t.slice(Q.value,te.value)),t})),{hasSelectionMode:N,singleSelection:F,multipleSelection:B,allRowsSelected:V,someRowsSelected:z,rowsSelectedNumber:q,isRowSelected:H,clearSelection:W,updateSelection:G}=Te(e,n,E,g),{colList:U,computedCols:j,computedColsMap:Z,computedColspan:$}=Oe(e,S,N),{columnToSort:Y,computedSortMethod:K,sort:J}=me(e,S,U,I),{firstRowIndex:Q,lastRowIndex:te,isFirstPage:ne,isLastPage:ie,pagesNumber:re,computedRowsPerPageOptions:oe,computedRowsNumber:ae,firstPage:ue,prevPage:ce,nextPage:de,lastPage:he}=Me(a,w,S,M,I,R),pe=(0,i.Fl)((()=>0===E.value.length)),ge=(0,i.Fl)((()=>{const t={};return T.forEach((n=>{t[n]=e[n]})),void 0===t.virtualScrollItemSize&&(t.virtualScrollItemSize=!0===e.dense?28:48),t}));function ve(){!0===y.value&&m.value.reset()}function ye(){if(!0===e.grid)return Ye();const n=!0!==e.hideHeader?ze:null;if(!0===y.value){const r=t["top-row"],o=t["bottom-row"],a={default:e=>Ce(e.item,t.body,e.index)};if(void 0!==r){const e=(0,i.h)("tbody",r({cols:j.value}));a.before=null===n?()=>e:()=>[n()].concat(e)}else null!==n&&(a.before=n);return void 0!==o&&(a.after=()=>(0,i.h)("tbody",o({cols:j.value}))),(0,i.h)(O,{ref:m,class:e.tableClass,style:e.tableStyle,...ge.value,scrollTarget:e.virtualScrollTarget,items:E.value,type:"__qtable",tableColspan:$.value,onVirtualScroll:be},a)}const r=[Ie()];return null!==n&&r.unshift(n()),f({class:["q-table__middle scroll",e.tableClass],style:e.tableStyle},r)}function _e(e,t){if(null!==m.value)return void m.value.scrollTo(e,t);e=parseInt(e,10);const i=v.value.querySelector(`tbody tr:nth-of-type(${e+1})`);if(null!==i){const t=v.value.querySelector(".q-table__middle.scroll"),{offsetTop:r}=i,o=r{const n=t[`body-cell-${e.name}`],o=void 0!==n?n:u;return void 0!==o?o(Ae({key:s,row:r,pageIndex:a,col:e})):(0,i.h)("td",{class:e.__tdClass(r),style:e.__tdStyle(r)},Ne(e,r))}));if(!0===N.value){const n=t["body-selection"],o=void 0!==n?n(De({key:s,row:r,pageIndex:a})):[(0,i.h)(se,{modelValue:l,color:e.color,dark:c.value,dense:e.dense,"onUpdate:modelValue":(e,t)=>{G([s],[r],e,t)}})];d.unshift((0,i.h)("td",{class:"q-table--col-auto-width"},o))}const h={key:s,class:{selected:l}};return void 0!==e.onRowClick&&(h.class["cursor-pointer"]=!0,h.onClick=e=>{n("RowClick",e,r,a)}),void 0!==e.onRowDblclick&&(h.class["cursor-pointer"]=!0,h.onDblclick=e=>{n("RowDblclick",e,r,a)}),void 0!==e.onRowContextmenu&&(h.class["cursor-pointer"]=!0,h.onContextmenu=e=>{n("RowContextmenu",e,r,a)}),(0,i.h)("tr",h,d)}function Ie(){const e=t.body,n=t["top-row"],r=t["bottom-row"];let o=E.value.map(((t,n)=>Ce(t,e,n)));return void 0!==n&&(o=n({cols:j.value}).concat(o)),void 0!==r&&(o=o.concat(r({cols:j.value}))),(0,i.h)("tbody",o)}function ke(e){return Pe(e),e.cols=e.cols.map((t=>{const n={...t};return(0,Re.g)(n,"value",(()=>Ne(t,e.row))),n})),e}function Ae(e){return Pe(e),(0,Re.g)(e,"value",(()=>Ne(e.col,e.row))),e}function De(e){return Pe(e),e}function Pe(t){Object.assign(t,{cols:j.value,colsMap:Z.value,sort:J,rowIndex:Q.value+t.pageIndex,color:e.color,dark:c.value,dense:e.dense}),!0===N.value&&(0,Re.g)(t,"selected",(()=>H(t.key)),((e,n)=>{G([t.key],[t.row],e,n)})),(0,Re.g)(t,"expand",(()=>A(t.key)),(e=>{L(t.key,e)}))}function Ne(e,t){const n="function"===typeof e.field?e.field(t):t[e.field];return void 0!==e.format?e.format(n,t):n}const Fe=(0,i.Fl)((()=>({pagination:S.value,pagesNumber:re.value,isFirstPage:ne.value,isLastPage:ie.value,firstPage:ue,prevPage:ce,nextPage:de,lastPage:he,inFullscreen:h.value,toggleFullscreen:p})));function Be(){const n=t.top,r=t["top-left"],o=t["top-right"],a=t["top-selection"],s=!0===N.value&&void 0!==a&&q.value>0,l="q-table__top relative-position row items-center";if(void 0!==n)return(0,i.h)("div",{class:l},[n(Fe.value)]);let u;return!0===s?u=a(Fe.value).slice():(u=[],void 0!==r?u.push((0,i.h)("div",{class:"q-table-control"},[r(Fe.value)])):e.title&&u.push((0,i.h)("div",{class:"q-table__control"},[(0,i.h)("div",{class:["q-table__title",e.titleClass]},e.title)]))),void 0!==o&&(u.push((0,i.h)("div",{class:"q-table__separator col"})),u.push((0,i.h)("div",{class:"q-table__control"},[o(Fe.value)]))),0!==u.length?(0,i.h)("div",{class:l},u):void 0}const Ve=(0,i.Fl)((()=>!0===z.value?null:V.value));function ze(){const n=qe();return!0===e.loading&&void 0===t.loading&&n.push((0,i.h)("tr",{class:"q-table__progress"},[(0,i.h)("th",{class:"relative-position",colspan:$.value},we())])),(0,i.h)("thead",n)}function qe(){const n=t.header,r=t["header-cell"];if(void 0!==n)return n(He({header:!0})).slice();const o=j.value.map((e=>{const n=t[`header-cell-${e.name}`],o=void 0!==n?n:r,a=He({col:e});return void 0!==o?o(a):(0,i.h)(l,{key:e.name,props:a},(()=>e.label))}));if(!0===F.value&&!0!==e.grid)o.unshift((0,i.h)("th",{class:"q-table--col-auto-width"}," "));else if(!0===B.value){const n=t["header-selection"],r=void 0!==n?n(He({})):[(0,i.h)(se,{color:e.color,modelValue:Ve.value,dark:c.value,dense:e.dense,"onUpdate:modelValue":We})];o.unshift((0,i.h)("th",{class:"q-table--col-auto-width"},r))}return[(0,i.h)("tr",{class:e.tableHeaderClass,style:e.tableHeaderStyle},o)]}function He(t){return Object.assign(t,{cols:j.value,sort:J,colsMap:Z.value,color:e.color,dark:c.value,dense:e.dense}),!0===B.value&&(0,Re.g)(t,"selected",(()=>Ve.value),We),t}function We(e){!0===z.value&&(e=!1),G(E.value.map(g.value),E.value,e)}const Ge=(0,i.Fl)((()=>{const t=[e.iconFirstPage||s.iconSet.table.firstPage,e.iconPrevPage||s.iconSet.table.prevPage,e.iconNextPage||s.iconSet.table.nextPage,e.iconLastPage||s.iconSet.table.lastPage];return!0===s.lang.rtl?t.reverse():t}));function Ue(){if(!0===e.hideBottom)return;if(!0===pe.value){if(!0===e.hideNoData)return;const n=!0===e.loading?e.loadingLabel||s.lang.table.loading:e.filter?e.noResultsLabel||s.lang.table.noResults:e.noDataLabel||s.lang.table.noData,r=t["no-data"],a=void 0!==r?[r({message:n,icon:s.iconSet.table.warning,filter:e.filter})]:[(0,i.h)(o.Z,{class:"q-table__bottom-nodata-icon",name:s.iconSet.table.warning}),n];return(0,i.h)("div",{class:Ee+" q-table__bottom--nodata"},a)}const n=t.bottom;if(void 0!==n)return(0,i.h)("div",{class:Ee},[n(Fe.value)]);const r=!0!==e.hideSelectedBanner&&!0===N.value&&q.value>0?[(0,i.h)("div",{class:"q-table__control"},[(0,i.h)("div",[(e.selectedRowsLabel||s.lang.table.selectedRecords)(q.value)])])]:[];return!0!==e.hidePagination?(0,i.h)("div",{class:Ee+" justify-end"},Ze(r)):r.length>0?(0,i.h)("div",{class:Ee},r):void 0}function je(e){I({page:1,rowsPerPage:e.value})}function Ze(n){let r;const{rowsPerPage:o}=S.value,a=e.paginationLabel||s.lang.table.pagination,l=t.pagination,u=e.rowsPerPageOptions.length>1;if(n.push((0,i.h)("div",{class:"q-table__separator col"})),!0===u&&n.push((0,i.h)("div",{class:"q-table__control"},[(0,i.h)("span",{class:"q-table__bottom-item"},[e.rowsPerPageLabel||s.lang.table.recordsPerPage]),(0,i.h)(X,{class:"q-table__select inline q-table__bottom-item",color:e.color,modelValue:o,options:oe.value,displayValue:0===o?s.lang.table.allRows:o,dark:c.value,borderless:!0,dense:!0,optionsDense:!0,optionsCover:!0,"onUpdate:modelValue":je})])),void 0!==l)r=l(Fe.value);else if(r=[(0,i.h)("span",0!==o?{class:"q-table__bottom-item"}:{},[o?a(Q.value+1,Math.min(te.value,ae.value),ae.value):a(1,R.value,ae.value)])],0!==o&&re.value>1){const t={color:e.color,round:!0,dense:!0,flat:!0};!0===e.dense&&(t.size="sm"),re.value>2&&r.push((0,i.h)(le.Z,{key:"pgFirst",...t,icon:Ge.value[0],disable:ne.value,onClick:ue})),r.push((0,i.h)(le.Z,{key:"pgPrev",...t,icon:Ge.value[1],disable:ne.value,onClick:ce}),(0,i.h)(le.Z,{key:"pgNext",...t,icon:Ge.value[2],disable:ie.value,onClick:de})),re.value>2&&r.push((0,i.h)(le.Z,{key:"pgLast",...t,icon:Ge.value[3],disable:ie.value,onClick:he}))}return n.push((0,i.h)("div",{class:"q-table__control"},r)),n}function $e(){const n=!0===e.gridHeader?[(0,i.h)("table",{class:"q-table"},[ze(i.h)])]:!0===e.loading&&void 0===t.loading?we(i.h):void 0;return(0,i.h)("div",{class:"q-table__middle"},n)}function Ye(){const r=void 0!==t.item?t.item:r=>{const o=r.cols.map((e=>(0,i.h)("div",{class:"q-table__grid-item-row"},[(0,i.h)("div",{class:"q-table__grid-item-title"},[e.label]),(0,i.h)("div",{class:"q-table__grid-item-value"},[e.value])])));if(!0===N.value){const n=t["body-selection"],a=void 0!==n?n(r):[(0,i.h)(se,{modelValue:r.selected,color:e.color,dark:c.value,dense:e.dense,"onUpdate:modelValue":(e,t)=>{G([r.key],[r.row],e,t)}})];o.unshift((0,i.h)("div",{class:"q-table__grid-item-row"},a),(0,i.h)(u.Z,{dark:c.value}))}const a={class:["q-table__grid-item-card"+x.value,e.cardClass],style:e.cardStyle};return void 0===e.onRowClick&&void 0===e.onRowDblclick||(a.class[0]+=" cursor-pointer",void 0!==e.onRowClick&&(a.onClick=e=>{n("RowClick",e,r.row,r.pageIndex)}),void 0!==e.onRowDblclick&&(a.onDblclick=e=>{n("RowDblclick",e,r.row,r.pageIndex)})),(0,i.h)("div",{class:"q-table__grid-item col-xs-12 col-sm-6 col-md-4 col-lg-3"+(!0===r.selected?" q-table__grid-item--selected":"")},[(0,i.h)("div",a,o)])};return(0,i.h)("div",{class:["q-table__grid-content row",e.cardContainerClass],style:e.cardContainerStyle},E.value.map(((e,t)=>r(ke({key:g.value(e),row:e,pageIndex:t})))))}return Object.assign(a.proxy,{requestServerInteraction:C,setPagination:I,firstPage:ue,prevPage:ce,nextPage:de,lastPage:he,isRowSelected:H,clearSelection:W,isRowExpanded:A,setExpanded:D,sort:J,resetVirtualScroll:ve,scrollTo:_e,getCellValue:Ne}),(0,Re.K)(a.proxy,{filteredSortedRows:()=>P.value,computedRows:()=>E.value,computedRowsNumber:()=>ae.value}),()=>{const n=[Be()],r={ref:v,class:b.value};return!0===e.grid?n.push($e()):Object.assign(r,{class:[r.class,e.cardClass],style:e.cardStyle}),n.push(ye(),Ue()),!0===e.loading&&void 0!==t.loading&&n.push(t.loading()),(0,i.h)("div",r,n)}}})},3884:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(3673),r=n(908),o=n(7657);const a=(0,r.L)({name:"QTd",props:{props:Object,autoWidth:Boolean,noHover:Boolean},setup(e,{slots:t}){const n=(0,i.FN)(),r=(0,i.Fl)((()=>"q-td"+(!0===e.autoWidth?" q-table--col-auto-width":"")+(!0===e.noHover?" q-td--no-hover":"")+" "));return()=>{if(void 0===e.props)return(0,i.h)("td",{class:r.value},(0,o.KR)(t.default));const a=n.vnode.key,s=(void 0!==e.props.colsMap?e.props.colsMap[a]:null)||e.props.col;if(void 0===s)return;const{row:l}=e.props;return(0,i.h)("td",{class:r.value+s.__tdClass(l),style:s.__tdStyle(l)},(0,o.KR)(t.default))}}})},8186:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(3673),r=n(908),o=n(7657);const a=(0,r.L)({name:"QTr",props:{props:Object,noHover:Boolean},setup(e,{slots:t}){const n=(0,i.Fl)((()=>"q-tr"+(void 0===e.props||!0===e.props.header?"":" "+e.props.__trClass)+(!0===e.noHover?" q-tr--no-hover":"")));return()=>(0,i.h)("tr",{class:n.value},(0,o.KR)(t.default))}})},1432:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});n(3610);var i=n(3673),r=n(2236),o=n(908),a=n(7657),s=n(2547);const l=(0,o.L)({name:"QTimeline",props:{...r.S,color:{type:String,default:"primary"},side:{type:String,default:"right",validator:e=>["left","right"].includes(e)},layout:{type:String,default:"dense",validator:e=>["dense","comfortable","loose"].includes(e)}},setup(e,{slots:t}){const n=(0,i.FN)(),o=(0,r.Z)(e,n.proxy.$q);(0,i.JJ)(s.xP,e);const l=(0,i.Fl)((()=>`q-timeline q-timeline--${e.layout} q-timeline--${e.layout}--${e.side}`+(!0===o.value?" q-timeline--dark":"")));return()=>(0,i.h)("ul",{class:l.value},(0,a.KR)(t.default))}})},3424:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});n(3610);var i=n(3673),r=n(4554),o=n(908),a=n(7657),s=n(2547);const l=(0,o.L)({name:"QTimelineEntry",props:{heading:Boolean,tag:{type:String,default:"h3"},side:{type:String,default:"right",validator:e=>["left","right"].includes(e)},icon:String,avatar:String,color:String,title:String,subtitle:String,body:String},setup(e,{slots:t}){const n=(0,i.f3)(s.xP,(()=>{console.error("QTimelineEntry needs to be child of QTimeline")})),o=(0,i.Fl)((()=>`q-timeline__entry q-timeline__entry--${e.side}`+(void 0!==e.icon||void 0!==e.avatar?" q-timeline__entry--icon":""))),l=(0,i.Fl)((()=>`q-timeline__dot text-${e.color||n.color}`)),u=(0,i.Fl)((()=>"comfortable"===n.layout&&"left"===n.side));return()=>{const n=(0,a.Bl)(t.default,[]);if(void 0!==e.body&&n.unshift(e.body),!0===e.heading){const t=[(0,i.h)("div"),(0,i.h)("div"),(0,i.h)(e.tag,{class:"q-timeline__heading-title"},n)];return(0,i.h)("div",{class:"q-timeline__heading"},!0===u.value?t.reverse():t)}let s;void 0!==e.icon?s=[(0,i.h)(r.Z,{class:"row items-center justify-center",name:e.icon})]:void 0!==e.avatar&&(s=[(0,i.h)("img",{class:"q-timeline__dot-img",src:e.avatar})]);const c=[(0,i.h)("div",{class:"q-timeline__subtitle"},[(0,i.h)("span",{},(0,a.KR)(t.subtitle,[e.subtitle]))]),(0,i.h)("div",{class:l.value},s),(0,i.h)("div",{class:"q-timeline__content"},[(0,i.h)("h6",{class:"q-timeline__title"},(0,a.KR)(t.title,[e.title]))].concat(n))];return(0,i.h)("li",{class:o.value},!0===u.value?c.reverse():c)}}})},9570:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(3673),r=n(908),o=n(7657);const a=(0,r.L)({name:"QToolbar",props:{inset:Boolean},setup(e,{slots:t}){const n=(0,i.Fl)((()=>"q-toolbar row no-wrap items-center"+(!0===e.inset?" q-toolbar--inset":"")));return()=>(0,i.h)("div",{class:n.value},(0,o.KR)(t.default))}})},3747:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(3673),r=n(908),o=n(7657);const a=(0,r.L)({name:"QToolbarTitle",props:{shrink:Boolean},setup(e,{slots:t}){const n=(0,i.Fl)((()=>"q-toolbar__title ellipsis"+(!0===e.shrink?" col-shrink":"")));return()=>(0,i.h)("div",{class:n.value},(0,o.KR)(t.default))}})},8870:(e,t,n)=>{"use strict";n.d(t,{Z:()=>_});n(71);var i=n(3673),r=n(1959),o=n(8880),a=n(5875),s=n(1372),l=n(3628),u=n(5911),c=n(6104),d=n(416),h=n(4955),p=n(908),f=n(8400),g=n(4716),v=n(9725),m=n(7657),y=n(9916),x=n(2657);const _=(0,p.L)({name:"QTooltip",inheritAttrs:!1,props:{...a.u,...l.vr,...c.D,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null},transitionShow:{default:"jump-down"},transitionHide:{default:"jump-up"},anchor:{type:String,default:"bottom middle",validator:x.$},self:{type:String,default:"top middle",validator:x.$},offset:{type:Array,default:()=>[14,14],validator:x.io},scrollTarget:{default:void 0},delay:{type:Number,default:0},hideDelay:{type:Number,default:0}},emits:[...l.gH],setup(e,{slots:t,emit:n,attrs:p}){let _,b;const w=(0,i.FN)(),{proxy:{$q:S}}=w,M=(0,r.iH)(null),C=(0,r.iH)(!1),I=(0,i.Fl)((()=>(0,x.li)(e.anchor,S.lang.rtl))),T=(0,i.Fl)((()=>(0,x.li)(e.self,S.lang.rtl))),k=(0,i.Fl)((()=>!0!==e.persistent)),{registerTick:A,removeTick:D}=(0,d.Z)(),{registerTimeout:L,removeTimeout:P}=(0,h.Z)(),{transition:O,transitionStyle:R}=(0,c.Z)(e,C),{localScrollTarget:E,changeScrollEvent:N,unconfigureScrollTarget:F}=(0,s.Z)(e,Q),{anchorEl:B,canShow:V,anchorEvents:z}=(0,a.Z)({showing:C,configureAnchorEl:J}),{show:q,hide:H}=(0,l.ZP)({showing:C,canShow:V,handleShow:j,handleHide:Z,hideOnRouteChange:k,processOnMount:!0});Object.assign(z,{delayShow:X,delayHide:K});const{showPortal:W,hidePortal:G,renderPortal:U}=(0,u.Z)(w,M,te);if(!0===S.platform.is.mobile){const t={anchorEl:B,innerRef:M,onClickOutside(e){return H(e),e.target.classList.contains("q-dialog__backdrop")&&(0,g.NS)(e),!0}},n=(0,i.Fl)((()=>null===e.modelValue&&!0!==e.persistent&&!0===C.value));(0,i.YP)(n,(e=>{const n=!0===e?y.m:y.D;n(t)})),(0,i.Jd)((()=>{(0,y.D)(t)}))}function j(t){D(),P(),W(),A((()=>{b=new MutationObserver((()=>Y())),b.observe(M.value,{attributes:!1,childList:!0,characterData:!0,subtree:!0}),Y(),Q()})),void 0===_&&(_=(0,i.YP)((()=>S.screen.width+"|"+S.screen.height+"|"+e.self+"|"+e.anchor+"|"+S.lang.rtl),Y)),L((()=>{W(!0),n("show",t)}),e.transitionDuration)}function Z(t){D(),P(),G(),$(),L((()=>{G(!0),n("hide",t)}),e.transitionDuration)}function $(){void 0!==b&&(b.disconnect(),b=void 0),void 0!==_&&(_(),_=void 0),F(),(0,g.ul)(z,"tooltipTemp")}function Y(){const t=M.value;null!==B.value&&t&&(0,x.wq)({el:t,offset:e.offset,anchorEl:B.value,anchorOrigin:I.value,selfOrigin:T.value,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}function X(t){if(!0===S.platform.is.mobile){(0,v.M)(),document.body.classList.add("non-selectable");const e=B.value,t=["touchmove","touchcancel","touchend","click"].map((t=>[e,t,"delayHide","passiveCapture"]));(0,g.M0)(z,"tooltipTemp",t)}L((()=>{q(t)}),e.delay)}function K(t){P(),!0===S.platform.is.mobile&&((0,g.ul)(z,"tooltipTemp"),(0,v.M)(),setTimeout((()=>{document.body.classList.remove("non-selectable")}),10)),L((()=>{H(t)}),e.hideDelay)}function J(){if(!0===e.noParentEvent||null===B.value)return;const t=!0===S.platform.is.mobile?[[B.value,"touchstart","delayShow","passive"]]:[[B.value,"mouseenter","delayShow","passive"],[B.value,"mouseleave","delayHide","passive"]];(0,g.M0)(z,"anchor",t)}function Q(){if(null!==B.value||void 0!==e.scrollTarget){E.value=(0,f.b0)(B.value,e.scrollTarget);const t=!0===e.noParentEvent?Y:H;N(E.value,t)}}function ee(){return!0===C.value?(0,i.h)("div",{...p,ref:M,class:["q-tooltip q-tooltip--style q-position-engine no-pointer-events",p.class],style:[p.style,R.value],role:"complementary"},(0,m.KR)(t.default)):null}function te(){return(0,i.h)(o.uT,{name:O.value,appear:!0},ee)}return(0,i.Jd)($),Object.assign(w.proxy,{updatePosition:Y}),U}})},9992:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>s,jO:()=>a});n(3610);var i=n(3673);const r={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},o=Object.keys(r),a={align:{type:String,validator:e=>o.includes(e)}};function s(e){return(0,i.Fl)((()=>{const t=void 0===e.align?!0===e.vertical?"stretch":"left":e.align;return`${!0===e.vertical?"items":"justify"}-${r[t]}`}))}},5875:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u,u:()=>l});var i=n(3673),r=n(1959),o=n(9725),a=n(4716),s=n(1436);const l={target:{default:!0},noParentEvent:Boolean,contextMenu:Boolean};function u({showing:e,avoidEmit:t,configureAnchorEl:n}){const{props:l,proxy:u,emit:c}=(0,i.FN)(),d=(0,r.iH)(null);let h;function p(e){return null!==d.value&&(void 0===e||void 0===e.touches||e.touches.length<=1)}const f={};function g(){(0,a.ul)(f,"anchor")}function v(e){d.value=e;while(d.value.classList.contains("q-anchor--skip"))d.value=d.value.parentNode;n()}function m(){if(!1===l.target||""===l.target||null===u.$el.parentNode)d.value=null;else if(!0===l.target)v(u.$el.parentNode);else{let t=l.target;if("string"===typeof l.target)try{t=document.querySelector(l.target)}catch(e){t=void 0}void 0!==t&&null!==t?(d.value=t.$el||t,n()):(d.value=null,console.error(`Anchor: target "${l.target}" not found`))}}return void 0===n&&(Object.assign(f,{hide(e){u.hide(e)},toggle(e){u.toggle(e),e.qAnchorHandled=!0},toggleKey(e){!0===(0,s.So)(e,13)&&f.toggle(e)},contextClick(e){u.hide(e),(0,a.X$)(e),(0,i.Y3)((()=>{u.show(e),e.qAnchorHandled=!0}))},prevent:a.X$,mobileTouch(e){if(f.mobileCleanup(e),!0!==p(e))return;u.hide(e),d.value.classList.add("non-selectable");const t=e.target;(0,a.M0)(f,"anchor",[[t,"touchmove","mobileCleanup","passive"],[t,"touchend","mobileCleanup","passive"],[t,"touchcancel","mobileCleanup","passive"],[d.value,"contextmenu","prevent","notPassive"]]),h=setTimeout((()=>{u.show(e),e.qAnchorHandled=!0}),300)},mobileCleanup(t){d.value.classList.remove("non-selectable"),clearTimeout(h),!0===e.value&&void 0!==t&&(0,o.M)()}}),n=function(e=l.contextMenu){if(!0===l.noParentEvent||null===d.value)return;let t;t=!0===e?!0===u.$q.platform.is.mobile?[[d.value,"touchstart","mobileTouch","passive"]]:[[d.value,"mousedown","hide","passive"],[d.value,"contextmenu","contextClick","notPassive"]]:[[d.value,"click","toggle","passive"],[d.value,"keyup","toggleKey","passive"]],(0,a.M0)(f,"anchor",t)}),(0,i.YP)((()=>l.contextMenu),(e=>{null!==d.value&&(g(),n(e))})),(0,i.YP)((()=>l.target),(()=>{null!==d.value&&g(),m()})),(0,i.YP)((()=>l.noParentEvent),(e=>{null!==d.value&&(!0===e?g():n())})),(0,i.bv)((()=>{m(),!0!==t&&!0===l.modelValue&&null===d.value&&c("update:modelValue",!1)})),(0,i.Jd)((()=>{clearTimeout(h),g()})),{anchorEl:d,canShow:p,anchorEvents:f}}},2236:(e,t,n)=>{"use strict";n.d(t,{S:()=>r,Z:()=>o});var i=n(3673);const r={dark:{type:Boolean,default:null}};function o(e,t){return(0,i.Fl)((()=>null===e.dark?t.dark.isActive:e.dark))}},5:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>$,yV:()=>G,HJ:()=>j,Cl:()=>U,tL:()=>Z});var i=n(3673),r=n(1959),o=n(8880),a=n(4688),s=n(4554),l=n(9754),u=n(2236),c=(n(3610),n(71),n(2547));function d({validate:e,resetValidation:t,requiresQForm:n}){const r=(0,i.f3)(c.vh,!1);if(!1!==r){const{props:n,proxy:o}=(0,i.FN)();Object.assign(o,{validate:e,resetValidation:t}),(0,i.YP)((()=>n.disable),(e=>{!0===e?("function"===typeof t&&t(),r.unbindComponent(o)):r.bindComponent(o)})),!0!==n.disable&&r.bindComponent(o),(0,i.Jd)((()=>{!0!==n.disable&&r.unbindComponent(o)}))}else!0===n&&console.error("Parent QForm not found on useFormChild()!")}var h=n(9763);n(4406);n(2156);Object.prototype.toString,Object.prototype.hasOwnProperty;const p={};"Boolean Number String Function Array Date RegExp Object".split(" ").forEach((e=>{p["[object "+e+"]"]=e.toLowerCase()}));n(7965),n(6016),n(8240);var f=n(2417);const g={...f.LU,min:{type:Number,default:0},max:{type:Number,default:100},color:String,centerColor:String,trackColor:String,fontSize:String,thickness:{type:Number,default:.2,validator:e=>e>=0&&e<=1},angle:{type:Number,default:0},showValue:Boolean,reverse:Boolean,instantFeedback:Boolean};var v=n(908),m=n(7657),y=n(2130);const x=50,_=2*x,b=_*Math.PI,w=Math.round(1e3*b)/1e3;(0,v.L)({name:"QCircularProgress",props:{...g,value:{type:Number,default:0},animationSpeed:{type:[String,Number],default:600},indeterminate:Boolean},setup(e,{slots:t}){const{proxy:{$q:n}}=(0,i.FN)(),r=(0,f.ZP)(e),o=(0,i.Fl)((()=>{const t=(!0===n.lang.rtl?-1:1)*e.angle;return{transform:e.reverse!==(!0===n.lang.rtl)?`scale3d(-1, 1, 1) rotate3d(0, 0, 1, ${-90-t}deg)`:`rotate3d(0, 0, 1, ${t-90}deg)`}})),a=(0,i.Fl)((()=>!0!==e.instantFeedback&&!0!==e.indeterminate?{transition:`stroke-dashoffset ${e.animationSpeed}ms ease 0s, stroke ${e.animationSpeed}ms ease`}:"")),s=(0,i.Fl)((()=>_/(1-e.thickness/2))),l=(0,i.Fl)((()=>`${s.value/2} ${s.value/2} ${s.value} ${s.value}`)),u=(0,i.Fl)((()=>(0,y.vX)(e.value,e.min,e.max))),c=(0,i.Fl)((()=>b*(1-(u.value-e.min)/(e.max-e.min)))),d=(0,i.Fl)((()=>e.thickness/2*s.value));function h({thickness:e,offset:t,color:n,cls:r}){return(0,i.h)("circle",{class:"q-circular-progress__"+r+(void 0!==n?` text-${n}`:""),style:a.value,fill:"transparent",stroke:"currentColor","stroke-width":e,"stroke-dasharray":w,"stroke-dashoffset":t,cx:s.value,cy:s.value,r:x})}return()=>{const n=[];void 0!==e.centerColor&&"transparent"!==e.centerColor&&n.push((0,i.h)("circle",{class:`q-circular-progress__center text-${e.centerColor}`,fill:"currentColor",r:x-d.value/2,cx:s.value,cy:s.value})),void 0!==e.trackColor&&"transparent"!==e.trackColor&&n.push(h({cls:"track",thickness:d.value,offset:0,color:e.trackColor})),n.push(h({cls:"circle",thickness:d.value,offset:c.value,color:e.color}));const a=[(0,i.h)("svg",{class:"q-circular-progress__svg",style:o.value,viewBox:l.value,"aria-hidden":"true"},n)];return!0===e.showValue&&a.push((0,i.h)("div",{class:"q-circular-progress__text absolute-full row flex-center content-center",style:{fontSize:e.fontSize}},void 0!==t.default?t.default():[(0,i.h)("div",u.value)])),(0,i.h)("div",{class:`q-circular-progress q-circular-progress--${!0===e.indeterminate?"in":""}determinate`,style:r.value,role:"progressbar","aria-valuemin":e.min,"aria-valuemax":e.max,"aria-valuenow":!0===e.indeterminate?void 0:u.value},(0,m.pf)(t.internal,a))}}});var S=n(4716);const M={multiple:Boolean,accept:String,capture:String,maxFileSize:[Number,String],maxTotalSize:[Number,String],maxFiles:[Number,String],filter:Function},C=["rejected"];u.S,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean;const I=[...C,"start","finish","added","removed"];const T=()=>!0;function k(e){const t={};return e.forEach((e=>{t[e]=T})),t}n(782);k(I);n(5363),n(6701);n(9111);var A=n(9405);n(2012);n(8400),n(4398),n(6105),n(5123),n(8836),n(8685),n(2396),n(9802),n(2773);let D,L=0;const P=new Array(256);for(let Y=0;Y<256;Y++)P[Y]=(Y+256).toString(16).substring(1);const O=(()=>{const e="undefined"!==typeof crypto?crypto:"undefined"!==typeof window?window.crypto||window.msCrypto:void 0;if(void 0!==e){if(void 0!==e.randomBytes)return e.randomBytes;if(void 0!==e.getRandomValues)return t=>{const n=new Uint8Array(t);return e.getRandomValues(n),n}}return e=>{const t=[];for(let n=e;n>0;n--)t.push(Math.floor(256*Math.random()));return t}})(),R=4096;function E(){(void 0===D||L+16>R)&&(L=0,D=O(R));const e=Array.prototype.slice.call(D,L,L+=16);return e[6]=15&e[6]|64,e[8]=63&e[8]|128,P[e[0]]+P[e[1]]+P[e[2]]+P[e[3]]+"-"+P[e[4]]+P[e[5]]+"-"+P[e[6]]+P[e[7]]+"-"+P[e[8]]+P[e[9]]+"-"+P[e[10]]+P[e[11]]+P[e[12]]+P[e[13]]+P[e[14]]+P[e[15]]}var N=n(9085);const F=[!0,!1,"ondemand"],B={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],validator:e=>F.includes(e)}};function V(e,t){const{props:n,proxy:o}=(0,i.FN)(),a=(0,r.iH)(!1),s=(0,r.iH)(null),l=(0,r.iH)(null);d({validate:y,resetValidation:m});let u,c=0;const p=(0,i.Fl)((()=>void 0!==n.rules&&null!==n.rules&&n.rules.length>0)),f=(0,i.Fl)((()=>!0!==n.disable&&!0===p.value)),g=(0,i.Fl)((()=>!0===n.error||!0===a.value)),v=(0,i.Fl)((()=>"string"===typeof n.errorMessage&&n.errorMessage.length>0?n.errorMessage:s.value));function m(){c++,t.value=!1,l.value=null,a.value=!1,s.value=null,_.cancel()}function y(e=n.modelValue){if(!0!==f.value)return!0;const i=++c;!0!==t.value&&!0!==n.lazyRules&&(l.value=!0);const r=(e,n)=>{a.value!==e&&(a.value=e);const i=n||void 0;s.value!==i&&(s.value=i),t.value=!1},o=[];for(let t=0;t{if(void 0===e||!1===Array.isArray(e)||0===e.length)return i===c&&r(!1),!0;const t=e.find((e=>!1===e||"string"===typeof e));return i===c&&r(void 0!==t,t),void 0===t}),(e=>(i===c&&(console.error(e),r(!0)),!1))))}function x(e){!0===f.value&&"ondemand"!==n.lazyRules&&(!0===l.value||!0!==n.lazyRules&&!0!==e)&&_()}(0,i.YP)((()=>n.modelValue),(()=>{x()})),(0,i.YP)((()=>n.reactiveRules),(e=>{!0===e?void 0===u&&(u=(0,i.YP)((()=>n.rules),(()=>{x(!0)}))):void 0!==u&&(u(),u=void 0)}),{immediate:!0}),(0,i.YP)(e,(e=>{!0===e?null===l.value&&(l.value=!1):!1===l.value&&(l.value=!0,!0===f.value&&"ondemand"!==n.lazyRules&&!1===t.value&&_())}));const _=(0,A.Z)(y,0);return(0,i.Jd)((()=>{void 0!==u&&u(),_.cancel()})),Object.assign(o,{resetValidation:m,validate:y}),(0,N.g)(o,"hasError",(()=>g.value)),{isDirtyModel:l,hasRules:p,hasError:g,errorMessage:v,validate:y,resetValidation:m}}const z=/^on[A-Z]/;function q(e,t){const n={listeners:(0,r.iH)({}),attributes:(0,r.iH)({})};function o(){const i={},r={};for(const t in e)"class"!==t&&"style"!==t&&!1===z.test(t)&&(i[t]=e[t]);for(const e in t.props)!0===z.test(e)&&(r[e]=t.props[e]);n.attributes.value=i,n.listeners.value=r}return(0,i.Xn)(o),o(),n}var H=n(230);function W(e){return void 0===e?`f_${E()}`:e}function G(e){return void 0!==e&&null!==e&&(""+e).length>0}const U={...u.S,...B,label:String,stackLabel:Boolean,hint:String,hideHint:Boolean,prefix:String,suffix:String,labelColor:String,color:String,bgColor:String,filled:Boolean,outlined:Boolean,borderless:Boolean,standout:[Boolean,String],square:Boolean,loading:Boolean,labelSlot:Boolean,bottomSlots:Boolean,hideBottomSpace:Boolean,rounded:Boolean,dense:Boolean,itemAligned:Boolean,counter:Boolean,clearable:Boolean,clearIcon:String,disable:Boolean,readonly:Boolean,autofocus:Boolean,for:String,maxlength:[Number,String]},j=["update:modelValue","clear","focus","blur","popup-show","popup-hide"];function Z(){const{props:e,attrs:t,proxy:n,vnode:o}=(0,i.FN)(),a=(0,u.Z)(e,n.$q);return{isDark:a,editable:(0,i.Fl)((()=>!0!==e.disable&&!0!==e.readonly)),innerLoading:(0,r.iH)(!1),focused:(0,r.iH)(!1),hasPopupOpen:!1,splitAttrs:q(t,o),targetUid:(0,r.iH)(W(e.for)),rootRef:(0,r.iH)(null),targetRef:(0,r.iH)(null),controlRef:(0,r.iH)(null)}}function $(e){const{props:t,emit:n,slots:r,attrs:u,proxy:c}=(0,i.FN)(),{$q:d}=c;let h;void 0===e.hasValue&&(e.hasValue=(0,i.Fl)((()=>G(t.modelValue)))),void 0===e.emitValue&&(e.emitValue=e=>{n("update:modelValue",e)}),void 0===e.controlEvents&&(e.controlEvents={onFocusin:P,onFocusout:O}),Object.assign(e,{clearValue:R,onControlFocusin:P,onControlFocusout:O,focus:D}),void 0===e.computedCounter&&(e.computedCounter=(0,i.Fl)((()=>{if(!1!==t.counter){const e="string"===typeof t.modelValue||"number"===typeof t.modelValue?(""+t.modelValue).length:!0===Array.isArray(t.modelValue)?t.modelValue.length:0,n=void 0!==t.maxlength?t.maxlength:t.maxValues;return e+(void 0!==n?" / "+n:"")}})));const{isDirtyModel:p,hasRules:f,hasError:g,errorMessage:v,resetValidation:y}=V(e.focused,e.innerLoading),x=void 0!==e.floatingLabel?(0,i.Fl)((()=>!0===t.stackLabel||!0===e.focused.value||!0===e.floatingLabel.value)):(0,i.Fl)((()=>!0===t.stackLabel||!0===e.focused.value||!0===e.hasValue.value)),_=(0,i.Fl)((()=>!0===t.bottomSlots||void 0!==t.hint||!0===f.value||!0===t.counter||null!==t.error)),b=(0,i.Fl)((()=>!0===t.filled?"filled":!0===t.outlined?"outlined":!0===t.borderless?"borderless":t.standout?"standout":"standard")),w=(0,i.Fl)((()=>`q-field row no-wrap items-start q-field--${b.value}`+(void 0!==e.fieldClass?` ${e.fieldClass.value}`:"")+(!0===t.rounded?" q-field--rounded":"")+(!0===t.square?" q-field--square":"")+(!0===x.value?" q-field--float":"")+(!0===C.value?" q-field--labeled":"")+(!0===t.dense?" q-field--dense":"")+(!0===t.itemAligned?" q-field--item-aligned q-item-type":"")+(!0===e.isDark.value?" q-field--dark":"")+(void 0===e.getControl?" q-field--auto-height":"")+(!0===e.focused.value?" q-field--focused":"")+(!0===g.value?" q-field--error":"")+(!0===g.value||!0===e.focused.value?" q-field--highlighted":"")+(!0!==t.hideBottomSpace&&!0===_.value?" q-field--with-bottom":"")+(!0===t.disable?" q-field--disabled":!0===t.readonly?" q-field--readonly":""))),M=(0,i.Fl)((()=>"q-field__control relative-position row no-wrap"+(void 0!==t.bgColor?` bg-${t.bgColor}`:"")+(!0===g.value?" text-negative":"string"===typeof t.standout&&t.standout.length>0&&!0===e.focused.value?` ${t.standout}`:void 0!==t.color?` text-${t.color}`:""))),C=(0,i.Fl)((()=>!0===t.labelSlot||void 0!==t.label)),I=(0,i.Fl)((()=>"q-field__label no-pointer-events absolute ellipsis"+(void 0!==t.labelColor&&!0!==g.value?` text-${t.labelColor}`:""))),T=(0,i.Fl)((()=>({id:e.targetUid.value,editable:e.editable.value,focused:e.focused.value,floatingLabel:x.value,modelValue:t.modelValue,emitValue:e.emitValue}))),k=(0,i.Fl)((()=>{const n={for:e.targetUid.value};return!0===t.disable?n["aria-disabled"]="true":!0===t.readonly&&(n["aria-readonly"]="true"),n}));function A(){const t=document.activeElement;let n=void 0!==e.targetRef&&e.targetRef.value;!n||null!==t&&t.id===e.targetUid.value||(!0===n.hasAttribute("tabindex")||(n=n.querySelector("[tabindex]")),n&&n!==t&&n.focus({preventScroll:!0}))}function D(){(0,H.jd)(A)}function L(){(0,H.fP)(A);const t=document.activeElement;null!==t&&e.rootRef.value.contains(t)&&t.blur()}function P(t){clearTimeout(h),!0===e.editable.value&&!1===e.focused.value&&(e.focused.value=!0,n("focus",t))}function O(t,i){clearTimeout(h),h=setTimeout((()=>{(!0!==document.hasFocus()||!0!==e.hasPopupOpen&&void 0!==e.controlRef&&null!==e.controlRef.value&&!1===e.controlRef.value.contains(document.activeElement))&&(!0===e.focused.value&&(e.focused.value=!1,n("blur",t)),void 0!==i&&i())}))}function R(r){if((0,S.NS)(r),!0!==d.platform.is.mobile){const t=void 0!==e.targetRef&&e.targetRef.value||e.rootRef.value;t.focus()}else!0===e.rootRef.value.contains(document.activeElement)&&document.activeElement.blur();"file"===t.type&&(e.inputRef.value.value=null),n("update:modelValue",null),n("clear",t.modelValue),(0,i.Y3)((()=>{y(),!0!==d.platform.is.mobile&&(p.value=!1)}))}function E(){const n=[];return void 0!==r.prepend&&n.push((0,i.h)("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:S.X$},r.prepend())),n.push((0,i.h)("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},N())),!0===g.value&&!1===t.noErrorIcon&&n.push(B("error",[(0,i.h)(s.Z,{name:d.iconSet.field.error,color:"negative"})])),!0===t.loading||!0===e.innerLoading.value?n.push(B("inner-loading-append",void 0!==r.loading?r.loading():[(0,i.h)(l.Z,{color:t.color})])):!0===t.clearable&&!0===e.hasValue.value&&!0===e.editable.value&&n.push(B("inner-clearable-append",[(0,i.h)(s.Z,{class:"q-field__focusable-action",tag:"button",name:t.clearIcon||d.iconSet.field.clear,tabindex:0,type:"button","aria-hidden":null,role:null,onClick:R})])),void 0!==r.append&&n.push((0,i.h)("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:S.X$},r.append())),void 0!==e.getInnerAppend&&n.push(B("inner-append",e.getInnerAppend())),void 0!==e.getControlChild&&n.push(e.getControlChild()),n}function N(){const n=[];return void 0!==t.prefix&&null!==t.prefix&&n.push((0,i.h)("div",{class:"q-field__prefix no-pointer-events row items-center"},t.prefix)),void 0!==e.getShadowControl&&!0===e.hasShadow.value&&n.push(e.getShadowControl()),void 0!==e.getControl?n.push(e.getControl()):void 0!==r.rawControl?n.push(r.rawControl()):void 0!==r.control&&n.push((0,i.h)("div",{ref:e.targetRef,class:"q-field__native row",tabindex:-1,...e.splitAttrs.attributes.value,"data-autofocus":!0===t.autofocus||void 0},r.control(T.value))),!0===C.value&&n.push((0,i.h)("div",{class:I.value},(0,m.KR)(r.label,t.label))),void 0!==t.suffix&&null!==t.suffix&&n.push((0,i.h)("div",{class:"q-field__suffix no-pointer-events row items-center"},t.suffix)),n.concat((0,m.KR)(r.default))}function F(){let n,a;!0===g.value?null!==v.value?(n=[(0,i.h)("div",{role:"alert"},v.value)],a=`q--slot-error-${v.value}`):(n=(0,m.KR)(r.error),a="q--slot-error"):!0===t.hideHint&&!0!==e.focused.value||(void 0!==t.hint?(n=[(0,i.h)("div",t.hint)],a=`q--slot-hint-${t.hint}`):(n=(0,m.KR)(r.hint),a="q--slot-hint"));const s=!0===t.counter||void 0!==r.counter;if(!0===t.hideBottomSpace&&!1===s&&void 0===n)return;const l=(0,i.h)("div",{key:a,class:"q-field__messages col"},n);return(0,i.h)("div",{class:"q-field__bottom row items-start q-field__bottom--"+(!0!==t.hideBottomSpace?"animated":"stale")},[!0===t.hideBottomSpace?l:(0,i.h)(o.uT,{name:"q-transition--field-message"},(()=>l)),!0===s?(0,i.h)("div",{class:"q-field__counter"},void 0!==r.counter?r.counter():e.computedCounter.value):null])}function B(e,t){return null===t?null:(0,i.h)("div",{key:e,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},t)}(0,i.YP)((()=>t.for),(t=>{e.targetUid.value=W(t)})),Object.assign(c,{focus:D,blur:L});let z=!1;return(0,i.se)((()=>{z=!0})),(0,i.dl)((()=>{!0===z&&!0===t.autofocus&&c.focus()})),(0,i.bv)((()=>{!0===a.uX.value&&void 0===t.for&&(e.targetUid.value=W()),!0===t.autofocus&&c.focus()})),(0,i.Jd)((()=>{clearTimeout(h)})),function(){const n=void 0===e.getControl&&void 0===r.control?{...e.splitAttrs.attributes.value,"data-autofocus":!0===t.autofocus||void 0,...k.value}:k.value;return(0,i.h)("label",{ref:e.rootRef,class:[w.value,u.class],style:u.style,...n},[void 0!==r.before?(0,i.h)("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:S.X$},r.before()):null,(0,i.h)("div",{class:"q-field__inner relative-position col self-stretch"},[(0,i.h)("div",{ref:e.controlRef,class:M.value,tabindex:-1,...e.controlEvents},E()),!0===_.value?F():null]),void 0!==r.after?(0,i.h)("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:S.X$},r.after()):null])}}},9550:(e,t,n)=>{"use strict";n.d(t,{Do:()=>s,Fz:()=>r,Vt:()=>o,eX:()=>a});var i=n(3673);const r={name:String};function o(e){return(0,i.Fl)((()=>({type:"hidden",name:e.name,value:e.modelValue})))}function a(e={}){return(t,n,r)=>{t[n]((0,i.h)("input",{class:"hidden"+(r||""),...e.value}))}}function s(e){return(0,i.Fl)((()=>e.name||e.for))}},69:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var i=n(3673),r=n(6583);function o(e,t,n){let o;function a(){void 0!==o&&(r.Z.remove(o),o=void 0)}return(0,i.Jd)((()=>{!0===e.value&&a()})),{removeFromHistory:a,addToHistory(){o={condition:()=>!0===n.value,handler:t},r.Z.add(o)}}}},4421:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(4688);const r=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,o=/[\u4e00-\u9fff\u3400-\u4dbf\u{20000}-\u{2a6df}\u{2a700}-\u{2b73f}\u{2b740}-\u{2b81f}\u{2b820}-\u{2ceaf}\uf900-\ufaff\u3300-\u33ff\ufe30-\ufe4f\uf900-\ufaff\u{2f800}-\u{2fa1f}]/u,a=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,s=/[a-z0-9_ -]$/i;function l(e){return function(t){if("compositionend"===t.type||"change"===t.type){if(!0!==t.target.qComposing)return;t.target.qComposing=!1,e(t)}else if("compositionupdate"===t.type&&!0!==t.target.qComposing&&"string"===typeof t.data){const e=!0===i.Lp.is.firefox?!1===s.test(t.data):!0===r.test(t.data)||!0===o.test(t.data)||!0===a.test(t.data);!0===e&&(t.target.qComposing=!0)}}}},3628:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>s,gH:()=>a,vr:()=>o});var i=n(3673),r=n(7445);const o={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},a=["before-show","show","before-hide","hide"];function s({showing:e,canShow:t,hideOnRouteChange:n,handleShow:o,handleHide:a,processOnMount:s}){const l=(0,i.FN)(),{props:u,emit:c,proxy:d}=l;let h;function p(t){!0===e.value?v(t):f(t)}function f(e){if(!0===u.disable||void 0!==e&&!0===e.qAnchorHandled||void 0!==t&&!0!==t(e))return;const n=void 0!==u["onUpdate:modelValue"];!0===n&&(c("update:modelValue",!0),h=e,(0,i.Y3)((()=>{h===e&&(h=void 0)}))),null!==u.modelValue&&!1!==n||g(e)}function g(t){!0!==e.value&&(e.value=!0,c("before-show",t),void 0!==o?o(t):c("show",t))}function v(e){if(!0===u.disable)return;const t=void 0!==u["onUpdate:modelValue"];!0===t&&(c("update:modelValue",!1),h=e,(0,i.Y3)((()=>{h===e&&(h=void 0)}))),null!==u.modelValue&&!1!==t||m(e)}function m(t){!1!==e.value&&(e.value=!1,c("before-hide",t),void 0!==a?a(t):c("hide",t))}function y(t){if(!0===u.disable&&!0===t)void 0!==u["onUpdate:modelValue"]&&c("update:modelValue",!1);else if(!0===t!==e.value){const e=!0===t?g:m;e(h)}}(0,i.YP)((()=>u.modelValue),y),void 0!==n&&!0===(0,r.Rb)(l)&&(0,i.YP)((()=>d.$route.fullPath),(()=>{!0===n.value&&!0===e.value&&v()})),!0===s&&(0,i.bv)((()=>{y(u.modelValue)}));const x={show:f,hide:v,toggle:p};return Object.assign(d,x),x}},5911:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var i=n(1959),r=n(3673),o=(n(4716),n(230)),a=n(5578);const s=[];let l=document.body;function u(e){const t=document.createElement("div");if(void 0!==e&&(t.id=e),void 0!==a.w6.globalNodes){const e=a.w6.globalNodes["class"];void 0!==e&&(t.className=e)}return l.appendChild(t),s.push(t),t}function c(e){s.splice(s.indexOf(e),1),e.remove()}var d=n(4312);function h(e){e=e.parent;while(void 0!==e&&null!==e){if("QGlobalDialog"===e.type.name)return!0;if("QDialog"===e.type.name||"QMenu"===e.type.name)return!1;e=e.parent}return!1}function p(e,t,n,a){const s=(0,i.iH)(!1),l=(0,i.iH)(!1);let p=null;const f={},g=!0===a&&h(e);function v(t){if(!0===t)return(0,o.xF)(f),void(l.value=!0);l.value=!1,!1===s.value&&(!1===g&&null===p&&(p=u()),s.value=!0,d.wN.push(e.proxy),(0,o.YX)(f))}function m(t){if(l.value=!1,!0!==t)return;(0,o.xF)(f),s.value=!1;const n=d.wN.indexOf(e.proxy);n>-1&&d.wN.splice(n,1),null!==p&&(c(p),p=null)}return(0,r.Ah)((()=>{m(!0)})),Object.assign(e.proxy,{__qPortalInnerRef:t}),{showPortal:v,hidePortal:m,portalIsActive:s,portalIsAccessible:l,renderPortal:()=>!0===g?n():!0===s.value?[(0,r.h)(r.lR,{to:p},n())]:void 0}}},405:(e,t,n)=>{"use strict";n.d(t,{Z:()=>_});var i=n(4716),r=n(8400),o=n(4688);let a,s,l,u,c,d,h=0,p=!1;function f(e){g(e)&&(0,i.NS)(e)}function g(e){if(e.target===document.body||e.target.classList.contains("q-layout__backdrop"))return!0;const t=(0,i.AZ)(e),n=e.shiftKey&&!e.deltaX,o=!n&&Math.abs(e.deltaX)<=Math.abs(e.deltaY),a=n||o?e.deltaY:e.deltaX;for(let i=0;i0&&e.scrollTop+e.clientHeight===e.scrollHeight:a<0&&0===e.scrollLeft||a>0&&e.scrollLeft+e.clientWidth===e.scrollWidth}return!0}function v(e){e.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function m(e){!0!==p&&(p=!0,requestAnimationFrame((()=>{p=!1;const{height:t}=e.target,{clientHeight:n,scrollTop:i}=document.scrollingElement;void 0!==l&&t===window.innerHeight||(l=n-t,document.scrollingElement.scrollTop=i),i>l&&(document.scrollingElement.scrollTop-=Math.ceil((i-l)/8))})))}function y(e){const t=document.body,n=void 0!==window.visualViewport;if("add"===e){const{overflowY:e,overflowX:l}=window.getComputedStyle(t);a=(0,r.OI)(window),s=(0,r.u3)(window),u=t.style.left,c=t.style.top,t.style.left=`-${a}px`,t.style.top=`-${s}px`,"hidden"!==l&&("scroll"===l||t.scrollWidth>window.innerWidth)&&t.classList.add("q-body--force-scrollbar-x"),"hidden"!==e&&("scroll"===e||t.scrollHeight>window.innerHeight)&&t.classList.add("q-body--force-scrollbar-y"),t.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,!0===o.Lp.is.ios&&(!0===n?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",m,i.rU.passiveCapture),window.visualViewport.addEventListener("scroll",m,i.rU.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",v,i.rU.passiveCapture))}!0===o.Lp.is.desktop&&!0===o.Lp.is.mac&&window[`${e}EventListener`]("wheel",f,i.rU.notPassive),"remove"===e&&(!0===o.Lp.is.ios&&(!0===n?(window.visualViewport.removeEventListener("resize",m,i.rU.passiveCapture),window.visualViewport.removeEventListener("scroll",m,i.rU.passiveCapture)):window.removeEventListener("scroll",v,i.rU.passiveCapture)),t.classList.remove("q-body--prevent-scroll"),t.classList.remove("q-body--force-scrollbar-x"),t.classList.remove("q-body--force-scrollbar-y"),document.qScrollPrevented=!1,t.style.left=u,t.style.top=c,window.scrollTo(a,s),l=void 0)}function x(e){let t="add";if(!0===e){if(h++,void 0!==d)return clearTimeout(d),void(d=void 0);if(h>1)return}else{if(0===h)return;if(h--,h>0)return;if(t="remove",!0===o.Lp.is.ios&&!0===o.Lp.is.nativeMobile)return clearTimeout(d),void(d=setTimeout((()=>{y(t),d=void 0}),100))}y(t)}function _(){let e;return{preventBodyScroll(t){t===e||void 0===e&&!0!==t||(e=t,x(t))}}}},7277:(e,t,n)=>{"use strict";n.d(t,{$:()=>h,Z:()=>p});n(5363);var i=n(3673),r=n(4716),o=n(7445);function a(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function s(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function l(e,t){for(const n in t){const i=t[n],r=e[n];if("string"===typeof i){if(i!==r)return!1}else if(!1===Array.isArray(r)||r.length!==i.length||i.some(((e,t)=>e!==r[t])))return!1}return!0}function u(e,t){return!0===Array.isArray(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}function c(e,t){return!0===Array.isArray(e)?u(e,t):!0===Array.isArray(t)?u(t,e):e===t}function d(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!1===c(e[n],t[n]))return!1;return!0}const h={to:[String,Object],replace:Boolean,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"},href:String,target:String,disable:Boolean};function p(e){const t=(0,i.FN)(),{props:n,proxy:u}=t,c=(0,o.Rb)(t),h=(0,i.Fl)((()=>!0!==n.disable&&void 0!==n.href)),p=(0,i.Fl)((()=>!0===c&&!0!==n.disable&&!0!==h.value&&void 0!==n.to&&null!==n.to&&""!==n.to)),f=(0,i.Fl)((()=>{if(!0===p.value)try{return u.$router.resolve(n.to)}catch(e){}return null})),g=(0,i.Fl)((()=>null!==f.value)),v=(0,i.Fl)((()=>!0===h.value||!0===g.value)),m=(0,i.Fl)((()=>"a"===n.type||!0===v.value?"a":n.tag||e||"div")),y=(0,i.Fl)((()=>!0===h.value?{href:n.href,target:n.target}:!0===g.value?{href:f.value.href,target:n.target}:{})),x=(0,i.Fl)((()=>{if(!1===g.value)return null;const{matched:e}=f.value,{length:t}=e,n=e[t-1];if(void 0===n)return-1;const i=u.$route.matched;if(0===i.length)return-1;const r=i.findIndex(s.bind(null,n));if(r>-1)return r;const o=a(e[t-2]);return t>1&&a(n)===o&&i[i.length-1].path!==o?i.findIndex(s.bind(null,e[t-2])):r})),_=(0,i.Fl)((()=>!0===g.value&&x.value>-1&&l(u.$route.params,f.value.params))),b=(0,i.Fl)((()=>!0===_.value&&x.value===u.$route.matched.length-1&&d(u.$route.params,f.value.params))),w=(0,i.Fl)((()=>!0===g.value?!0===b.value?` ${n.exactActiveClass} ${n.activeClass}`:!0===n.exact?"":!0===_.value?` ${n.activeClass}`:"":""));function S(e){return!(!0===n.disable||e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||!0!==e.__qNavigate&&!0===e.defaultPrevented||void 0!==e.button&&0!==e.button||"_blank"===n.target)&&((0,r.X$)(e),u.$router[!0===n.replace?"replace":"push"](n.to).catch((e=>e)))}return{hasRouterLink:g,hasHrefLink:h,hasLink:v,linkTag:m,linkRoute:f,linkIsActive:_,linkIsExactActive:b,linkClass:w,linkProps:y,navigateToRouterLink:S}}},1372:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(1959),r=n(3673),o=n(4716);function a(e,t){const n=(0,i.iH)(null);let a;function s(e,t){const n=(void 0!==t?"add":"remove")+"EventListener",i=void 0!==t?t:a;e!==window&&e[n]("scroll",i,o.rU.passive),window[n]("scroll",i,o.rU.passive),a=t}function l(){null!==n.value&&(s(n.value),n.value=null)}const u=(0,r.YP)((()=>e.noParentEvent),(()=>{null!==n.value&&(l(),t())}));return(0,r.Jd)(u),{localScrollTarget:n,unconfigureScrollTarget:l,changeScrollEvent:s}}},2417:(e,t,n)=>{"use strict";n.d(t,{LU:()=>o,Ok:()=>r,ZP:()=>a});var i=n(3673);const r={xs:18,sm:24,md:32,lg:38,xl:46},o={size:String};function a(e,t=r){return(0,i.Fl)((()=>void 0!==e.size?{fontSize:e.size in t?`${t[e.size]}px`:e.size}:null))}},416:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(3673);function r(){let e;return(0,i.Jd)((()=>{e=void 0})),{registerTick(t){e=t,(0,i.Y3)((()=>{e===t&&(e(),e=void 0)}))},removeTick(){e=void 0}}}},4955:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(3673);function r(){let e;return(0,i.Jd)((()=>{clearTimeout(e)})),{registerTimeout(t,n){clearTimeout(e),e=setTimeout(t,n)},removeTimeout(){clearTimeout(e)}}}},6104:(e,t,n)=>{"use strict";n.d(t,{D:()=>o,Z:()=>a});var i=n(1959),r=n(3673);const o={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function a(e,t){const n=(0,i.iH)(t.value);return(0,r.YP)(t,(e=>{(0,r.Y3)((()=>{n.value=e}))})),{transition:(0,r.Fl)((()=>"q-transition--"+(!0===n.value?e.transitionHide:e.transitionShow))),transitionStyle:(0,r.Fl)((()=>`--q-transition-duration: ${e.transitionDuration}ms`))}}},677:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(908),r=n(4312),o=n(1436);function a(e){if(!1===e)return 0;if(!0===e||void 0===e)return 1;const t=parseInt(e,10);return isNaN(t)?0:t}const s=(0,i.f)({name:"close-popup",beforeMount(e,{value:t}){const n={depth:a(t),handler(t){0!==n.depth&&setTimeout((()=>{const i=(0,r.HW)(e);void 0!==i&&(0,r.S7)(i,t,n.depth)}))},handlerKey(e){!0===(0,o.So)(e,13)&&n.handler(e)}};e.__qclosepopup=n,e.addEventListener("click",n.handler),e.addEventListener("keyup",n.handlerKey)},updated(e,{value:t,oldValue:n}){t!==n&&(e.__qclosepopup.depth=a(t))},beforeUnmount(e){const t=e.__qclosepopup;e.removeEventListener("click",t.handler),e.removeEventListener("keyup",t.handlerKey),delete e.__qclosepopup}})},860:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var i=n(908),r=n(2012),o=n(4716),a=n(1436),s=n(3317);function l(e,t,n,i){!0===n.modifiers.stop&&(0,o.sT)(e);const a=n.modifiers.color;let s=n.modifiers.center;s=!0===s||!0===i;const l=document.createElement("span"),u=document.createElement("span"),c=(0,o.FK)(e),{left:d,top:h,width:p,height:f}=t.getBoundingClientRect(),g=Math.sqrt(p*p+f*f),v=g/2,m=(p-g)/2+"px",y=s?m:c.left-d-v+"px",x=(f-g)/2+"px",_=s?x:c.top-h-v+"px";u.className="q-ripple__inner",(0,r.iv)(u,{height:`${g}px`,width:`${g}px`,transform:`translate3d(${y},${_},0) scale3d(.2,.2,1)`,opacity:0}),l.className="q-ripple"+(a?" text-"+a:""),l.setAttribute("dir","ltr"),l.appendChild(u),t.appendChild(l);const b=()=>{l.remove(),clearTimeout(w)};n.abort.push(b);let w=setTimeout((()=>{u.classList.add("q-ripple__inner--enter"),u.style.transform=`translate3d(${m},${x},0) scale3d(1,1,1)`,u.style.opacity=.2,w=setTimeout((()=>{u.classList.remove("q-ripple__inner--enter"),u.classList.add("q-ripple__inner--leave"),u.style.opacity=0,w=setTimeout((()=>{l.remove(),n.abort.splice(n.abort.indexOf(b),1)}),275)}),250)}),50)}function u(e,{modifiers:t,value:n,arg:i}){const r=Object.assign({},e.cfg.ripple,t,n);e.modifiers={early:!0===r.early,stop:!0===r.stop,center:!0===r.center,color:r.color||i,keyCodes:[].concat(r.keyCodes||13)}}const c=(0,i.f)({name:"ripple",beforeMount(e,t){const n=t.instance.$.appContext.config.globalProperties.$q.config||{};if(!1===n.ripple)return;const i={cfg:n,enabled:!1!==t.value,modifiers:{},abort:[],start(t){!0===i.enabled&&!0!==t.qSkipRipple&&t.type===(!0===i.modifiers.early?"pointerdown":"click")&&l(t,e,i,!0===t.qKeyEvent)},keystart:(0,s.Z)((t=>{!0===i.enabled&&!0!==t.qSkipRipple&&!0===(0,a.So)(t,i.modifiers.keyCodes)&&t.type==="key"+(!0===i.modifiers.early?"down":"up")&&l(t,e,i,!0)}),300)};u(i,t),e.__qripple=i,(0,o.M0)(i,"main",[[e,"pointerdown","start","passive"],[e,"click","start","passive"],[e,"keydown","keystart","passive"],[e,"keyup","keystart","passive"]])},updated(e,t){if(t.oldValue!==t.value){const n=e.__qripple;void 0!==n&&(n.enabled=!1!==t.value,!0===n.enabled&&Object(t.value)===t.value&&u(n,t))}},beforeUnmount(e){const t=e.__qripple;void 0!==t&&(t.abort.forEach((e=>{e()})),(0,o.ul)(t,"main"),delete e._qripple)}})},5777:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var i=n(4688),r=n(908),o=n(7801),a=n(4716),s=n(9725);function l(e,t,n){const i=(0,a.FK)(e);let r,o=i.left-t.event.x,s=i.top-t.event.y,l=Math.abs(o),u=Math.abs(s);const c=t.direction;!0===c.horizontal&&!0!==c.vertical?r=o<0?"left":"right":!0!==c.horizontal&&!0===c.vertical?r=s<0?"up":"down":!0===c.up&&s<0?(r="up",l>u&&(!0===c.left&&o<0?r="left":!0===c.right&&o>0&&(r="right"))):!0===c.down&&s>0?(r="down",l>u&&(!0===c.left&&o<0?r="left":!0===c.right&&o>0&&(r="right"))):!0===c.left&&o<0?(r="left",l0&&(r="down"))):!0===c.right&&o>0&&(r="right",l0&&(r="down")));let d=!1;if(void 0===r&&!1===n){if(!0===t.event.isFirst||void 0===t.event.lastDir)return{};r=t.event.lastDir,d=!0,"left"===r||"right"===r?(i.left-=o,l=0,o=0):(i.top-=s,u=0,s=0)}return{synthetic:d,payload:{evt:e,touch:!0!==t.event.mouse,mouse:!0===t.event.mouse,position:i,direction:r,isFirst:t.event.isFirst,isFinal:!0===n,duration:Date.now()-t.event.time,distance:{x:l,y:u},offset:{x:o,y:s},delta:{x:i.left-t.event.lastX,y:i.top-t.event.lastY}}}}let u=0;const c=(0,r.f)({name:"touch-pan",beforeMount(e,{value:t,modifiers:n}){if(!0!==n.mouse&&!0!==i.Lp.has.touch)return;function r(e,t){!0===n.mouse&&!0===t?(0,a.NS)(e):(!0===n.stop&&(0,a.sT)(e),!0===n.prevent&&(0,a.X$)(e))}const c={uid:"qvtp_"+u++,handler:t,modifiers:n,direction:(0,o.R)(n),noop:a.ZT,mouseStart(e){(0,o.n)(e,c)&&(0,a.du)(e)&&((0,a.M0)(c,"temp",[[document,"mousemove","move","notPassiveCapture"],[document,"mouseup","end","passiveCapture"]]),c.start(e,!0))},touchStart(e){if((0,o.n)(e,c)){const t=e.target;(0,a.M0)(c,"temp",[[t,"touchmove","move","notPassiveCapture"],[t,"touchcancel","end","passiveCapture"],[t,"touchend","end","passiveCapture"]]),c.start(e)}},start(t,r){if(!0===i.Lp.is.firefox&&(0,a.Jf)(e,!0),c.lastEvt=t,!0===r||!0===n.stop){if(!0!==c.direction.all&&(!0!==r||!0!==c.modifiers.mouseAllDir)){const e=t.type.indexOf("mouse")>-1?new MouseEvent(t.type,t):new TouchEvent(t.type,t);!0===t.defaultPrevented&&(0,a.X$)(e),!0===t.cancelBubble&&(0,a.sT)(e),Object.assign(e,{qKeyEvent:t.qKeyEvent,qClickOutside:t.qClickOutside,qAnchorHandled:t.qAnchorHandled,qClonedBy:void 0===t.qClonedBy?[c.uid]:t.qClonedBy.concat(c.uid)}),c.initialEvent={target:t.target,event:e}}(0,a.sT)(t)}const{left:o,top:s}=(0,a.FK)(t);c.event={x:o,y:s,time:Date.now(),mouse:!0===r,detected:!1,isFirst:!0,isFinal:!1,lastX:o,lastY:s}},move(e){if(void 0===c.event)return;const t=(0,a.FK)(e),i=t.left-c.event.x,o=t.top-c.event.y;if(0===i&&0===o)return;c.lastEvt=e;const u=!0===c.event.mouse,d=()=>{r(e,u),!0!==n.preserveCursor&&(document.documentElement.style.cursor="grabbing"),!0===u&&document.body.classList.add("no-pointer-events--children"),document.body.classList.add("non-selectable"),(0,s.M)(),c.styleCleanup=e=>{if(c.styleCleanup=void 0,!0!==n.preserveCursor&&(document.documentElement.style.cursor=""),document.body.classList.remove("non-selectable"),!0===u){const t=()=>{document.body.classList.remove("no-pointer-events--children")};void 0!==e?setTimeout((()=>{t(),e()}),50):t()}else void 0!==e&&e()}};if(!0===c.event.detected){!0!==c.event.isFirst&&r(e,c.event.mouse);const{payload:t,synthetic:n}=l(e,c,!1);return void(void 0!==t&&(!1===c.handler(t)?c.end(e):(void 0===c.styleCleanup&&!0===c.event.isFirst&&d(),c.event.lastX=t.position.left,c.event.lastY=t.position.top,c.event.lastDir=!0===n?void 0:t.direction,c.event.isFirst=!1)))}if(!0===c.direction.all||!0===u&&!0===c.modifiers.mouseAllDir)return d(),c.event.detected=!0,void c.move(e);const h=Math.abs(i),p=Math.abs(o);h!==p&&(!0===c.direction.horizontal&&h>p||!0===c.direction.vertical&&h0||!0===c.direction.left&&h>p&&i<0||!0===c.direction.right&&h>p&&i>0?(c.event.detected=!0,c.move(e)):c.end(e,!0))},end(t,n){if(void 0!==c.event){if((0,a.ul)(c,"temp"),!0===i.Lp.is.firefox&&(0,a.Jf)(e,!1),!0===n)void 0!==c.styleCleanup&&c.styleCleanup(),!0!==c.event.detected&&void 0!==c.initialEvent&&c.initialEvent.target.dispatchEvent(c.initialEvent.event);else if(!0===c.event.detected){!0===c.event.isFirst&&c.handler(l(void 0===t?c.lastEvt:t,c).payload);const{payload:e}=l(void 0===t?c.lastEvt:t,c,!0),n=()=>{c.handler(e)};void 0!==c.styleCleanup?c.styleCleanup(n):n()}c.event=void 0,c.initialEvent=void 0,c.lastEvt=void 0}}};e.__qtouchpan=c,!0===n.mouse&&(0,a.M0)(c,"main",[[e,"mousedown","mouseStart","passive"+(!0===n.mouseCapture?"Capture":"")]]),!0===i.Lp.has.touch&&(0,a.M0)(c,"main",[[e,"touchstart","touchStart","passive"+(!0===n.capture?"Capture":"")],[e,"touchmove","noop","notPassiveCapture"]])},updated(e,t){const n=e.__qtouchpan;void 0!==n&&(t.oldValue!==t.value&&("function"!==typeof value&&n.end(),n.handler=t.value),n.direction=(0,o.R)(t.modifiers))},beforeUnmount(e){const t=e.__qtouchpan;void 0!==t&&(void 0!==t.event&&t.end(),(0,a.ul)(t,"main"),(0,a.ul)(t,"temp"),!0===i.Lp.is.firefox&&(0,a.Jf)(e,!1),void 0!==t.styleCleanup&&t.styleCleanup(),delete e.__qtouchpan)}})},6583:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});n(71),n(3610);var i=n(4688),r=n(4716);const o=()=>!0;function a(e){return"string"===typeof e&&""!==e&&"/"!==e&&"#/"!==e}function s(e){return!0===e.startsWith("#")&&(e=e.substring(1)),!1===e.startsWith("/")&&(e="/"+e),!0===e.endsWith("/")&&(e=e.substring(0,e.length-1)),"#"+e}function l(e){if(!1===e.backButtonExit)return()=>!1;if("*"===e.backButtonExit)return o;const t=["#/"];return!0===Array.isArray(e.backButtonExit)&&t.push(...e.backButtonExit.filter(a).map(s)),()=>t.includes(window.location.hash)}const u={__history:[],add:r.ZT,remove:r.ZT,install({$q:e}){if(!0===this.__installed)return;const{cordova:t,capacitor:n}=i.Lp.is;if(!0!==t&&!0!==n)return;const r=e.config[!0===t?"cordova":"capacitor"];if(void 0!==r&&!1===r.backButton)return;if(!0===n&&(void 0===window.Capacitor||void 0===window.Capacitor.Plugins.App))return;this.add=e=>{void 0===e.condition&&(e.condition=o),this.__history.push(e)},this.remove=e=>{const t=this.__history.indexOf(e);t>=0&&this.__history.splice(t,1)};const a=l(Object.assign({backButtonExit:!0},r)),s=()=>{if(this.__history.length){const e=this.__history[this.__history.length-1];!0===e.condition()&&(this.__history.pop(),e.handler())}else!0===a()?navigator.app.exitApp():window.history.back()};!0===t?document.addEventListener("deviceready",(()=>{document.addEventListener("backbutton",s,!1)})):window.Capacitor.Plugins.App.addListener("backButton",s)}}},9111:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s,F:()=>r});n(5363);var i=n(2002);const r={isoName:"en-US",nativeName:"English (US)",label:{clear:"Clear",ok:"OK",cancel:"Cancel",close:"Close",set:"Set",select:"Select",reset:"Reset",remove:"Remove",update:"Update",create:"Create",search:"Search",filter:"Filter",refresh:"Refresh"},date:{days:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),daysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),firstDayOfWeek:0,format24h:!1,pluralDay:"days"},table:{noData:"No data available",noResults:"No matching records found",loading:"Loading...",selectedRecords:e=>1===e?"1 record selected.":(0===e?"No":e)+" records selected.",recordsPerPage:"Records per page:",allRows:"All",pagination:(e,t,n)=>e+"-"+t+" of "+n,columns:"Columns"},editor:{url:"URL",bold:"Bold",italic:"Italic",strikethrough:"Strikethrough",underline:"Underline",unorderedList:"Unordered List",orderedList:"Ordered List",subscript:"Subscript",superscript:"Superscript",hyperlink:"Hyperlink",toggleFullscreen:"Toggle Fullscreen",quote:"Quote",left:"Left align",center:"Center align",right:"Right align",justify:"Justify align",print:"Print",outdent:"Decrease indentation",indent:"Increase indentation",removeFormat:"Remove formatting",formatting:"Formatting",fontSize:"Font Size",align:"Align",hr:"Insert Horizontal Rule",undo:"Undo",redo:"Redo",heading1:"Heading 1",heading2:"Heading 2",heading3:"Heading 3",heading4:"Heading 4",heading5:"Heading 5",heading6:"Heading 6",paragraph:"Paragraph",code:"Code",size1:"Very small",size2:"A bit small",size3:"Normal",size4:"Medium-large",size5:"Big",size6:"Very big",size7:"Maximum",defaultFont:"Default Font",viewSource:"View Source"},tree:{noNodes:"No nodes available",noResults:"No matching nodes found"}};function o(){const e=!0===Array.isArray(navigator.languages)&&navigator.languages.length>0?navigator.languages[0]:navigator.language;if("string"===typeof e)return e.split(/[-_]/).map(((e,t)=>0===t?e.toLowerCase():t>1||e.length<4?e.toUpperCase():e[0].toUpperCase()+e.slice(1).toLowerCase())).join("-")}const a=(0,i.Z)({__langPack:{}},{getLocale:o,set(e=r,t){const n={...e,rtl:!0===e.rtl,getLocale:o};{const e=document.documentElement;e.setAttribute("dir",!0===n.rtl?"rtl":"ltr"),e.setAttribute("lang",n.isoName),n.set=a.set,Object.assign(a.__langPack,n),a.props=n,a.isoName=n.isoName,a.nativeName=n.nativeName}},install({$q:e,lang:t,ssrContext:n}){e.lang=a.__langPack,!0===this.__installed?void 0!==t&&this.set(t):this.set(t||r)}}),s=a},2471:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});n(5363);function i(e){return encodeURIComponent(e)}function r(e){return decodeURIComponent(e)}function o(e){return i(e===Object(e)?JSON.stringify(e):""+e)}function a(e){if(""===e)return e;0===e.indexOf('"')&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\")),e=r(e.replace(/\+/g," "));try{const t=JSON.parse(e);t!==Object(t)&&!0!==Array.isArray(t)||(e=t)}catch(t){}return e}function s(e){const t=new Date;return t.setMilliseconds(t.getMilliseconds()+e),t.toUTCString()}function l(e){let t=0;const n=e.match(/(\d+)d/),i=e.match(/(\d+)h/),r=e.match(/(\d+)m/),o=e.match(/(\d+)s/);return n&&(t+=864e5*n[1]),i&&(t+=36e5*i[1]),r&&(t+=6e4*r[1]),o&&(t+=1e3*o[1]),0===t?e:s(t)}function u(e,t,n={},r){let a,u;void 0!==n.expires&&("[object Date]"===Object.prototype.toString.call(n.expires)?a=n.expires.toUTCString():"string"===typeof n.expires?a=l(n.expires):(u=parseFloat(n.expires),a=!1===isNaN(u)?s(864e5*u):n.expires));const d=`${i(e)}=${o(t)}`,h=[d,void 0!==a?"; Expires="+a:"",n.path?"; Path="+n.path:"",n.domain?"; Domain="+n.domain:"",n.sameSite?"; SameSite="+n.sameSite:"",n.httpOnly?"; HttpOnly":"",n.secure?"; Secure":"",n.other?"; "+n.other:""].join("");if(r){r.req.qCookies?r.req.qCookies.push(h):r.req.qCookies=[h],r.res.setHeader("Set-Cookie",r.req.qCookies);let t=r.req.headers.cookie||"";if(void 0!==a&&u<0){const n=c(e,r);void 0!==n&&(t=t.replace(`${e}=${n}; `,"").replace(`; ${e}=${n}`,"").replace(`${e}=${n}`,""))}else t=t?`${d}; ${t}`:h;r.req.headers.cookie=t}else document.cookie=h}function c(e,t){const n=t?t.req.headers:document,i=n.cookie?n.cookie.split("; "):[],o=i.length;let s,l,u,c=e?null:{},d=0;for(;dc(t,e),set:(t,n,i)=>u(t,n,i,e),has:t=>h(t,e),remove:(t,n)=>d(t,n,e),getAll:()=>c(null,e)}}const f={install({$q:e,ssrContext:t}){e.cookies=this}};Object.assign(f,p());const g=f},4688:(e,t,n)=>{"use strict";n.d(t,{Lp:()=>g,ZP:()=>m,aG:()=>a,uX:()=>o});var i=n(1959),r=n(9085);const o=(0,i.iH)(!1);let a,s=!1;function l(e,t){const n=/(edg|edge|edga|edgios)\/([\w.]+)/.exec(e)||/(opr)[\/]([\w.]+)/.exec(e)||/(vivaldi)[\/]([\w.]+)/.exec(e)||/(chrome|crios)[\/]([\w.]+)/.exec(e)||/(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e)||/(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e)||/(firefox|fxios)[\/]([\w.]+)/.exec(e)||/(webkit)[\/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[\/]([\w.]+)/.exec(e)||[];return{browser:n[5]||n[3]||n[1]||"",version:n[2]||n[4]||"0",versionNumber:n[4]||n[2]||"0",platform:t[0]||""}}function u(e){return/(ipad)/.exec(e)||/(ipod)/.exec(e)||/(windows phone)/.exec(e)||/(iphone)/.exec(e)||/(kindle)/.exec(e)||/(silk)/.exec(e)||/(android)/.exec(e)||/(win)/.exec(e)||/(mac)/.exec(e)||/(linux)/.exec(e)||/(cros)/.exec(e)||/(playbook)/.exec(e)||/(bb)/.exec(e)||/(blackberry)/.exec(e)||[]}const c="ontouchstart"in window||window.navigator.maxTouchPoints>0;function d(e){a={is:{...e}},delete e.mac,delete e.desktop;const t=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(e,{mobile:!0,ios:!0,platform:t,[t]:!0})}function h(e){const t=e.toLowerCase(),n=u(t),i=l(t,n),r={};i.browser&&(r[i.browser]=!0,r.version=i.version,r.versionNumber=parseInt(i.versionNumber,10)),i.platform&&(r[i.platform]=!0);const o=r.android||r.ios||r.bb||r.blackberry||r.ipad||r.iphone||r.ipod||r.kindle||r.playbook||r.silk||r["windows phone"];return!0===o||t.indexOf("mobile")>-1?(r.mobile=!0,r.edga||r.edgios?(r.edge=!0,i.browser="edge"):r.crios?(r.chrome=!0,i.browser="chrome"):r.fxios&&(r.firefox=!0,i.browser="firefox")):r.desktop=!0,(r.ipod||r.ipad||r.iphone)&&(r.ios=!0),r["windows phone"]&&(r.winphone=!0,delete r["windows phone"]),(r.chrome||r.opr||r.safari||r.vivaldi||!0===r.mobile&&!0!==r.ios&&!0!==o)&&(r.webkit=!0),r.edg&&(i.browser="edgechromium",r.edgeChromium=!0),(r.safari&&r.blackberry||r.bb)&&(i.browser="blackberry",r.blackberry=!0),r.safari&&r.playbook&&(i.browser="playbook",r.playbook=!0),r.opr&&(i.browser="opera",r.opera=!0),r.safari&&r.android&&(i.browser="android",r.android=!0),r.safari&&r.kindle&&(i.browser="kindle",r.kindle=!0),r.safari&&r.silk&&(i.browser="silk",r.silk=!0),r.vivaldi&&(i.browser="vivaldi",r.vivaldi=!0),r.name=i.browser,r.platform=i.platform,t.indexOf("electron")>-1?r.electron=!0:document.location.href.indexOf("-extension://")>-1?r.bex=!0:(void 0!==window.Capacitor?(r.capacitor=!0,r.nativeMobile=!0,r.nativeMobileWrapper="capacitor"):void 0===window._cordovaNative&&void 0===window.cordova||(r.cordova=!0,r.nativeMobile=!0,r.nativeMobileWrapper="cordova"),!0===c&&!0===r.mac&&(!0===r.desktop&&!0===r.safari||!0===r.nativeMobile&&!0!==r.android&&!0!==r.ios&&!0!==r.ipad)&&d(r)),r}const p=navigator.userAgent||navigator.vendor||window.opera,f={has:{touch:!1,webStorage:!1},within:{iframe:!1}},g={userAgent:p,is:h(p),has:{touch:c},within:{iframe:window.self!==window.top}},v={install(e){const{$q:t}=e;!0===o.value?(e.onSSRHydrated.push((()=>{o.value=!1,Object.assign(t.platform,g),a=void 0})),t.platform=(0,i.qj)(this)):t.platform=this}};{let e;(0,r.g)(g.has,"webStorage",(()=>{if(void 0!==e)return e;try{if(window.localStorage)return e=!0,!0}catch(t){}return e=!1,!1})),s=!0===g.is.ios&&-1===window.navigator.vendor.toLowerCase().indexOf("apple"),!0===o.value?Object.assign(v,g,a,f):Object.assign(v,g)}const m=v},2156:(e,t,n)=>{"use strict";n.d(t,{Nn:()=>o,T2:()=>c,WE:()=>s,id:()=>u,oo:()=>a,py:()=>l,vq:()=>r});n(6701),n(5363);const i=/^rgb(a)?\((\d{1,3}),(\d{1,3}),(\d{1,3}),?([01]?\.?\d*?)?\)$/;function r({r:e,g:t,b:n,a:i}){const r=void 0!==i;if(e=Math.round(e),t=Math.round(t),n=Math.round(n),e>255||t>255||n>255||r&&i>100)throw new TypeError("Expected 3 numbers below 256 (and optionally one below 100)");return i=r?(256|Math.round(255*i/100)).toString(16).slice(1):"","#"+(n|t<<8|e<<16|1<<24).toString(16).slice(1)+i}function o({r:e,g:t,b:n,a:i}){return`rgb${void 0!==i?"a":""}(${e},${t},${n}${void 0!==i?","+i/100:""})`}function a(e){if("string"!==typeof e)throw new TypeError("Expected a string");e=e.replace(/^#/,""),3===e.length?e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]:4===e.length&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]);const t=parseInt(e,16);return e.length>6?{r:t>>24&255,g:t>>16&255,b:t>>8&255,a:Math.round((255&t)/2.55)}:{r:t>>16,g:t>>8&255,b:255&t}}function s({h:e,s:t,v:n,a:i}){let r,o,a;t/=100,n/=100,e/=360;const s=Math.floor(6*e),l=6*e-s,u=n*(1-t),c=n*(1-l*t),d=n*(1-(1-l)*t);switch(s%6){case 0:r=n,o=d,a=u;break;case 1:r=c,o=n,a=u;break;case 2:r=u,o=n,a=d;break;case 3:r=u,o=c,a=n;break;case 4:r=d,o=u,a=n;break;case 5:r=n,o=u,a=c;break}return{r:Math.round(255*r),g:Math.round(255*o),b:Math.round(255*a),a:i}}function l({r:e,g:t,b:n,a:i}){const r=Math.max(e,t,n),o=Math.min(e,t,n),a=r-o,s=0===r?0:a/r,l=r/255;let u;switch(r){case o:u=0;break;case e:u=t-n+a*(t{"use strict";function i(e,t=250,n){let i;function r(){const r=arguments,o=()=>{i=void 0,!0!==n&&e.apply(this,r)};clearTimeout(i),!0===n&&void 0===i&&e.apply(this,r),i=setTimeout(o,t)}return r.cancel=()=>{clearTimeout(i)},r}n.d(t,{Z:()=>i})},2012:(e,t,n)=>{"use strict";n.d(t,{iv:()=>r,mY:()=>a,sb:()=>o});var i=n(1959);function r(e,t){const n=e.style;for(const i in t)n[i]=t[i]}function o(e){if(void 0===e||null===e)return;if("string"===typeof e)try{return document.querySelector(e)||void 0}catch(n){return}const t=!0===(0,i.dq)(e)?e.value:e;return t?t.$el||t:void 0}function a(e,t){if(void 0===e||null===e||!0===e.contains(t))return!0;for(let n=e.nextElementSibling;null!==n;n=n.nextElementSibling)if(n.contains(t))return!0;return!1}},4716:(e,t,n)=>{"use strict";n.d(t,{AZ:()=>s,FK:()=>a,Jf:()=>d,M0:()=>h,NS:()=>c,X$:()=>u,ZT:()=>r,du:()=>o,rU:()=>i,sT:()=>l,ul:()=>p});n(71);const i={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const e=Object.defineProperty({},"passive",{get(){Object.assign(i,{hasPassive:!0,passive:{passive:!0},notPassive:{passive:!1},passiveCapture:{passive:!0,capture:!0},notPassiveCapture:{passive:!1,capture:!0}})}});window.addEventListener("qtest",null,e),window.removeEventListener("qtest",null,e)}catch(f){}function r(){}function o(e){return 0===e.button}function a(e){return e.touches&&e.touches[0]?e=e.touches[0]:e.changedTouches&&e.changedTouches[0]?e=e.changedTouches[0]:e.targetTouches&&e.targetTouches[0]&&(e=e.targetTouches[0]),{top:e.clientY,left:e.clientX}}function s(e){if(e.path)return e.path;if(e.composedPath)return e.composedPath();const t=[];let n=e.target;while(n){if(t.push(n),"HTML"===n.tagName)return t.push(document),t.push(window),t;n=n.parentElement}}function l(e){e.stopPropagation()}function u(e){!1!==e.cancelable&&e.preventDefault()}function c(e){!1!==e.cancelable&&e.preventDefault(),e.stopPropagation()}function d(e,t){if(void 0===e||!0===t&&!0===e.__dragPrevented)return;const n=!0===t?e=>{e.__dragPrevented=!0,e.addEventListener("dragstart",u,i.notPassiveCapture)}:e=>{delete e.__dragPrevented,e.removeEventListener("dragstart",u,i.notPassiveCapture)};e.querySelectorAll("a, img").forEach(n)}function h(e,t,n){const r=`__q_${t}_evt`;e[r]=void 0!==e[r]?e[r].concat(n):n,n.forEach((t=>{t[0].addEventListener(t[1],e[t[2]],i[t[3]])}))}function p(e,t){const n=`__q_${t}_evt`;void 0!==e[n]&&(e[n].forEach((t=>{t[0].removeEventListener(t[1],e[t[2]],i[t[3]])})),e[n]=void 0)}},2130:(e,t,n)=>{"use strict";n.d(t,{Uz:()=>o,kC:()=>i,vX:()=>r,vk:()=>a});function i(e){return e.charAt(0).toUpperCase()+e.slice(1)}function r(e,t,n){return n<=t?t:Math.min(n,Math.max(t,e))}function o(e,t,n){if(n<=t)return t;const i=n-t+1;let r=t+(e-t)%i;return r=t?i:new Array(t-i.length+1).join(n)+i}},9763:(e,t,n)=>{"use strict";n.d(t,{E:()=>l});const i=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,r=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,o=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,a=/^rgb\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5])\)$/,s=/^rgba\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),(0|0\.[0-9]+[1-9]|0\.[1-9]+|1)\)$/,l={date:e=>/^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(e),time:e=>/^([0-1]?\d|2[0-3]):[0-5]\d$/.test(e),fulltime:e=>/^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/.test(e),timeOrFulltime:e=>/^([0-1]?\d|2[0-3]):[0-5]\d(:[0-5]\d)?$/.test(e),email:e=>/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e),hexColor:e=>i.test(e),hexaColor:e=>r.test(e),hexOrHexaColor:e=>o.test(e),rgbColor:e=>a.test(e),rgbaColor:e=>s.test(e),rgbOrRgbaColor:e=>a.test(e)||s.test(e),hexOrRgbColor:e=>i.test(e)||a.test(e),hexaOrRgbaColor:e=>r.test(e)||s.test(e),anyColor:e=>o.test(e)||a.test(e)||s.test(e)}},9916:(e,t,n)=>{"use strict";n.d(t,{D:()=>c,m:()=>u});var i=n(4716),r=n(4312);let o;const{notPassiveCapture:a}=i.rU,s=[];function l(e){clearTimeout(o);const t=e.target;if(void 0===t||8===t.nodeType||!0===t.classList.contains("no-pointer-events"))return;let n=r.wN.length-1;while(n>=0){const e=r.wN[n].$;if("QDialog"!==e.type.name)break;if(!0!==e.props.seamless)return;n--}for(let i=s.length-1;i>=0;i--){const n=s[i];if(null!==n.anchorEl.value&&!1!==n.anchorEl.value.contains(t)||t!==document.body&&(null===n.innerRef.value||!1!==n.innerRef.value.contains(t)))return;e.qClickOutside=!0,n.onClickOutside(e)}}function u(e){s.push(e),1===s.length&&(document.addEventListener("mousedown",l,a),document.addEventListener("touchstart",l,a))}function c(e){const t=s.findIndex((t=>t===e));t>-1&&(s.splice(t,1),0===s.length&&(clearTimeout(o),document.removeEventListener("mousedown",l,a),document.removeEventListener("touchstart",l,a)))}},908:(e,t,n)=>{"use strict";n.d(t,{L:()=>o,f:()=>a});var i=n(1959),r=n(3673);const o=e=>(0,i.Xl)((0,r.aZ)(e)),a=e=>(0,i.Xl)(e)},2002:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var i=n(1959),r=n(9085);const o=(e,t)=>{const n=(0,i.qj)(e);for(const i in e)(0,r.g)(t,i,(()=>n[i]),(e=>{n[i]=e}));return t}},4704:(e,t,n)=>{"use strict";n.d(t,{c:()=>d,k:()=>h});var i=n(4688),r=n(1436);const o=[];let a;function s(e){a=27===e.keyCode}function l(){!0===a&&(a=!1)}function u(e){!0===a&&(a=!1,!0===(0,r.So)(e,27)&&o[o.length-1](e))}function c(e){window[e]("keydown",s),window[e]("blur",l),window[e]("keyup",u),a=!1}function d(e){!0===i.Lp.is.desktop&&(o.push(e),1===o.length&&c("addEventListener"))}function h(e){const t=o.indexOf(e);t>-1&&(o.splice(t,1),0===o.length&&c("removeEventListener"))}},230:(e,t,n)=>{"use strict";n.d(t,{YX:()=>a,fP:()=>u,jd:()=>l,xF:()=>s});let i=[],r=[];function o(e){r=r.filter((t=>t!==e))}function a(e){o(e),r.push(e)}function s(e){o(e),0===r.length&&i.length>0&&(i[i.length-1](),i=[])}function l(e){0===r.length?e():i.push(e)}function u(e){i=i.filter((t=>t!==e))}},8517:(e,t,n)=>{"use strict";n.d(t,{H:()=>s,i:()=>a});var i=n(4688);const r=[];function o(e){r[r.length-1](e)}function a(e){!0===i.Lp.is.desktop&&(r.push(e),1===r.length&&document.body.addEventListener("focusin",o))}function s(e){const t=r.indexOf(e);t>-1&&(r.splice(t,1),0===r.length&&document.body.removeEventListener("focusin",o))}},5578:(e,t,n)=>{"use strict";n.d(t,{Uf:()=>r,tP:()=>o,w6:()=>i});const i={};let r=!1;function o(){r=!0}},9085:(e,t,n)=>{"use strict";function i(e,t,n,i){Object.defineProperty(e,t,{get:n,set:i,enumerable:!0})}function r(e,t){for(const n in t)i(e,n,t[n])}n.d(t,{K:()=>r,g:()=>i})},782:(e,t,n)=>{"use strict";n.d(t,{J_:()=>l,Kn:()=>s,hj:()=>u,xb:()=>a});n(71),n(4406);const i="function"===typeof Map,r="function"===typeof Set,o="function"===typeof ArrayBuffer;function a(e,t){if(e===t)return!0;if(null!==e&&null!==t&&"object"===typeof e&&"object"===typeof t){if(e.constructor!==t.constructor)return!1;let n,s;if(e.constructor===Array){if(n=e.length,n!==t.length)return!1;for(s=n;0!==s--;)if(!0!==a(e[s],t[s]))return!1;return!0}if(!0===i&&e.constructor===Map){if(e.size!==t.size)return!1;s=e.entries().next();while(!0!==s.done){if(!0!==t.has(s.value[0]))return!1;s=s.next()}s=e.entries().next();while(!0!==s.done){if(!0!==a(s.value[1],t.get(s.value[0])))return!1;s=s.next()}return!0}if(!0===r&&e.constructor===Set){if(e.size!==t.size)return!1;s=e.entries().next();while(!0!==s.done){if(!0!==t.has(s.value[0]))return!1;s=s.next()}return!0}if(!0===o&&null!=e.buffer&&e.buffer.constructor===ArrayBuffer){if(n=e.length,n!==t.length)return!1;for(s=n;0!==s--;)if(e[s]!==t[s])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const l=Object.keys(e).filter((t=>void 0!==e[t]));if(n=l.length,n!==Object.keys(t).filter((e=>void 0!==t[e])).length)return!1;for(s=n;0!==s--;){const n=l[s];if(!0!==a(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function s(e){return null!==e&&"object"===typeof e&&!0!==Array.isArray(e)}function l(e){return"[object Date]"===Object.prototype.toString.call(e)}function u(e){return"number"===typeof e&&isFinite(e)}},1436:(e,t,n)=>{"use strict";n.d(t,{So:()=>a,Wm:()=>o,ZK:()=>r});n(3610);let i=!1;function r(e){i=!0===e.isComposing}function o(e){return!0===i||e!==Object(e)||!0===e.isComposing||!0===e.qKeyEvent}function a(e,t){return!0!==o(e)&&[].concat(t).includes(e.keyCode)}},4312:(e,t,n)=>{"use strict";n.d(t,{AH:()=>a,HW:()=>o,S7:()=>s,wN:()=>r});var i=n(7445);const r=[];function o(e){return r.find((t=>null!==t.__qPortalInnerRef.value&&t.__qPortalInnerRef.value.contains(e)))}function a(e,t){do{if("QMenu"===e.$options.name){if(e.hide(t),!0===e.$props.separateClosePopup)return(0,i.Kq)(e)}else if(void 0!==e.__qPortalInnerRef){const n=(0,i.Kq)(e);return void 0!==n&&"QPopupProxy"===n.$options.name?(e.hide(t),n):e}e=(0,i.Kq)(e)}while(void 0!==e&&null!==e)}function s(e,t,n){while(0!==n&&void 0!==e&&null!==e){if(void 0!==e.__qPortalInnerRef){if(n--,"QMenu"===e.$options.name){e=a(e,t);continue}e.hide(t)}e=(0,i.Kq)(e)}}},2657:(e,t,n)=>{"use strict";n.d(t,{$:()=>s,io:()=>l,li:()=>c,wq:()=>p});n(3610);var i=n(8400),r=n(4688);let o,a;function s(e){const t=e.split(" ");return 2===t.length&&(!0!==["top","center","bottom"].includes(t[0])?(console.error("Anchor/Self position must start with one of top/center/bottom"),!1):!0===["left","middle","right","start","end"].includes(t[1])||(console.error("Anchor/Self position must end with one of left/middle/right/start/end"),!1))}function l(e){return!e||2===e.length&&("number"===typeof e[0]&&"number"===typeof e[1])}const u={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};function c(e,t){const n=e.split(" ");return{vertical:n[0],horizontal:u[`${n[1]}#${!0===t?"rtl":"ltr"}`]}}function d(e,t){let{top:n,left:i,right:r,bottom:o,width:a,height:s}=e.getBoundingClientRect();return void 0!==t&&(n-=t[1],i-=t[0],o+=t[1],r+=t[0],a+=t[0],s+=t[1]),{top:n,left:i,right:r,bottom:o,width:a,height:s,middle:i+(r-i)/2,center:n+(o-n)/2}}function h(e){return{top:0,center:e.offsetHeight/2,bottom:e.offsetHeight,left:0,middle:e.offsetWidth/2,right:e.offsetWidth}}function p(e){if(!0===r.Lp.is.ios&&void 0!==window.visualViewport){const e=document.body.style,{offsetLeft:t,offsetTop:n}=window.visualViewport;t!==o&&(e.setProperty("--q-pe-left",t+"px"),o=t),n!==a&&(e.setProperty("--q-pe-top",n+"px"),a=n)}let t;const{scrollLeft:n,scrollTop:i}=e.el;if(void 0===e.absoluteOffset)t=d(e.anchorEl,!0===e.cover?[0,0]:e.offset);else{const{top:n,left:i}=e.anchorEl.getBoundingClientRect(),r=n+e.absoluteOffset.top,o=i+e.absoluteOffset.left;t={top:r,left:o,width:1,height:1,right:o+1,center:r,middle:o,bottom:r+1}}let s={maxHeight:e.maxHeight,maxWidth:e.maxWidth,visibility:"visible"};!0!==e.fit&&!0!==e.cover||(s.minWidth=t.width+"px",!0===e.cover&&(s.minHeight=t.height+"px")),Object.assign(e.el.style,s);const l=h(e.el),u={top:t[e.anchorOrigin.vertical]-l[e.selfOrigin.vertical],left:t[e.anchorOrigin.horizontal]-l[e.selfOrigin.horizontal]};f(u,t,l,e.anchorOrigin,e.selfOrigin),s={top:u.top+"px",left:u.left+"px"},void 0!==u.maxHeight&&(s.maxHeight=u.maxHeight+"px",t.height>u.maxHeight&&(s.minHeight=s.maxHeight)),void 0!==u.maxWidth&&(s.maxWidth=u.maxWidth+"px",t.width>u.maxWidth&&(s.minWidth=s.maxWidth)),Object.assign(e.el.style,s),e.el.scrollTop!==i&&(e.el.scrollTop=i),e.el.scrollLeft!==n&&(e.el.scrollLeft=n)}function f(e,t,n,r,o){const a=n.bottom,s=n.right,l=(0,i.np)(),u=window.innerHeight-l,c=document.body.clientWidth;if(e.top<0||e.top+a>u)if("center"===o.vertical)e.top=t[r.vertical]>u/2?Math.max(0,u-a):0,e.maxHeight=Math.min(a,u);else if(t[r.vertical]>u/2){const n=Math.min(u,"center"===r.vertical?t.center:r.vertical===o.vertical?t.bottom:t.top);e.maxHeight=Math.min(a,n),e.top=Math.max(0,n-a)}else e.top=Math.max(0,"center"===r.vertical?t.center:r.vertical===o.vertical?t.top:t.bottom),e.maxHeight=Math.min(a,u-e.top);if(e.left<0||e.left+s>c)if(e.maxWidth=Math.min(s,c),"middle"===o.horizontal)e.left=t[r.horizontal]>c/2?Math.max(0,c-s):0;else if(t[r.horizontal]>c/2){const n=Math.min(c,"middle"===r.horizontal?t.middle:r.horizontal===o.horizontal?t.right:t.left);e.maxWidth=Math.min(s,n),e.left=Math.max(0,n-e.maxWidth)}else e.left=Math.max(0,"middle"===r.horizontal?t.middle:r.horizontal===o.horizontal?t.left:t.right),e.maxWidth=Math.min(s,c-e.left)}["left","middle","right"].forEach((e=>{u[`${e}#ltr`]=e,u[`${e}#rtl`]=e}))},7657:(e,t,n)=>{"use strict";n.d(t,{Bl:()=>o,Jl:()=>l,KR:()=>r,pf:()=>s,vs:()=>a});var i=n(3673);function r(e,t){return void 0!==e&&e()||t}function o(e,t){if(void 0!==e){const t=e();if(void 0!==t&&null!==t)return t.slice()}return t}function a(e,t){return void 0!==e?t.concat(e()):t}function s(e,t){return void 0===e?t:void 0!==t?t.concat(e()):e()}function l(e,t,n,r,o,a){t.key=r+o;const s=(0,i.h)(e,t,n);return!0===o?(0,i.wy)(s,a()):s}},5811:(e,t,n)=>{"use strict";n.d(t,{e:()=>i});let i=!1;{const e=document.createElement("div"),t=document.createElement("div");e.setAttribute("dir","rtl"),e.style.width="1px",e.style.height="1px",e.style.overflow="auto",t.style.width="1000px",t.style.height="1px",document.body.appendChild(e),e.appendChild(t),e.scrollLeft=-1e3,i=e.scrollLeft>=0,e.remove()}},9725:(e,t,n)=>{"use strict";n.d(t,{M:()=>r});var i=n(4688);function r(){if(void 0!==window.getSelection){const e=window.getSelection();void 0!==e.empty?e.empty():void 0!==e.removeAllRanges&&(e.removeAllRanges(),!0!==i.ZP.is.mobile&&e.addRange(document.createRange()))}else void 0!==document.selection&&document.selection.empty()}},2547:(e,t,n)=>{"use strict";n.d(t,{Mw:()=>a,Nd:()=>l,Ng:()=>i,YE:()=>o,vh:()=>s,xP:()=>r});const i="_q_",r="_q_t_",o="_q_l_",a="_q_pc_",s="_q_fo_",l="_q_tabs_"},7801:(e,t,n)=>{"use strict";n.d(t,{R:()=>o,n:()=>a});n(71);const i={left:!0,right:!0,up:!0,down:!0,horizontal:!0,vertical:!0},r=Object.keys(i);function o(e){const t={};for(const n of r)!0===e[n]&&(t[n]=!0);return 0===Object.keys(t).length?i:(!0===t.horizontal?t.left=t.right=!0:!0===t.left&&!0===t.right&&(t.horizontal=!0),!0===t.vertical?t.up=t.down=!0:!0===t.up&&!0===t.down&&(t.vertical=!0),!0===t.horizontal&&!0===t.vertical&&(t.all=!0),t)}function a(e,t){return void 0===t.event&&void 0!==e.target&&!0!==e.target.draggable&&"function"===typeof t.handler&&"INPUT"!==e.target.nodeName.toUpperCase()&&(void 0===e.qClonedBy||-1===e.qClonedBy.indexOf(t.uid))}i.all=!0},7445:(e,t,n)=>{"use strict";n.d(t,{Kq:()=>i,Pf:()=>o,Rb:()=>a});n(71);function i(e){if(Object(e.$parent)===e.$parent)return e.$parent;e=e.$.parent;while(Object(e)===e){if(Object(e.proxy)===e.proxy)return e.proxy;e=e.parent}}function r(e,t){"symbol"===typeof t.type?!0===Array.isArray(t.children)&&t.children.forEach((t=>{r(e,t)})):e.add(t)}function o(e){const t=new Set;return e.forEach((e=>{r(t,e)})),Array.from(t)}function a(e){return void 0!==e.appContext.config.globalProperties.$router}},8400:(e,t,n)=>{"use strict";n.d(t,{OI:()=>s,QA:()=>c,b0:()=>o,np:()=>u,u3:()=>a});n(3610);var i=n(2012);const r=[null,document,document.body,document.scrollingElement,document.documentElement];function o(e,t){let n=(0,i.sb)(t);if(void 0===n){if(void 0===e||null===e)return window;n=e.closest(".scroll,.scroll-y,.overflow-auto")}return r.includes(n)?window:n}function a(e){return e===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:e.scrollTop}function s(e){return e===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:e.scrollLeft}let l;function u(){if(void 0!==l)return l;const e=document.createElement("p"),t=document.createElement("div");(0,i.iv)(e,{width:"100%",height:"200px"}),(0,i.iv)(t,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),t.appendChild(e),document.body.appendChild(t);const n=e.offsetWidth;t.style.overflow="scroll";let r=e.offsetWidth;return n===r&&(r=t.clientWidth),t.remove(),l=n-r,l}function c(e,t=!0){return!(!e||e.nodeType!==Node.ELEMENT_NODE)&&(t?e.scrollHeight>e.clientHeight&&(e.classList.contains("scroll")||e.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(e)["overflow-y"])):e.scrollWidth>e.clientWidth&&(e.classList.contains("scroll")||e.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(e)["overflow-x"])))}},4398:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});n(6701);function i(e,t,n=document.body){if("string"!==typeof e)throw new TypeError("Expected a string as propName");if("string"!==typeof t)throw new TypeError("Expected a string as value");if(!(n instanceof Element))throw new TypeError("Expected a DOM element");n.style.setProperty(`--q-${e}`,t)}},3317:(e,t,n)=>{"use strict";function i(e,t=250){let n,i=!1;return function(){return!1===i&&(i=!0,setTimeout((()=>{i=!1}),t),n=e.apply(this,arguments)),n}}n.d(t,{Z:()=>i})},9782:(e,t,n)=>{"use strict";n.d(t,{Z:()=>P});n(3610);var i=n(4688),r=(n(71),n(2002)),o=n(4716),a=n(9405);const s=["sm","md","lg","xl"],{passive:l}=o.rU,u=(0,r.Z)({width:0,height:0,name:"xs",sizes:{sm:600,md:1024,lg:1440,xl:1920},lt:{sm:!0,md:!0,lg:!0,xl:!0},gt:{xs:!1,sm:!1,md:!1,lg:!1},xs:!0,sm:!1,md:!1,lg:!1,xl:!1},{setSizes:o.ZT,setDebounce:o.ZT,install({$q:e,onSSRHydrated:t}){if(e.screen=this,!0===this.__installed)return void(void 0!==e.config.screen&&(!1===e.config.screen.bodyClasses?document.body.classList.remove(`screen--${this.name}`):this.__update(!0)));const{visualViewport:n}=window,r=n||window,o=document.scrollingElement||document.documentElement,u=void 0===n||!0===i.Lp.is.mobile?()=>[Math.max(window.innerWidth,o.clientWidth),Math.max(window.innerHeight,o.clientHeight)]:()=>[n.width*n.scale+window.innerWidth-o.clientWidth,n.height*n.scale+window.innerHeight-o.clientHeight],c=void 0!==e.config.screen&&!0===e.config.screen.bodyClasses;this.__update=e=>{const[t,n]=u();if(n!==this.height&&(this.height=n),t!==this.width)this.width=t;else if(!0!==e)return;let i=this.sizes;this.gt.xs=t>=i.sm,this.gt.sm=t>=i.md,this.gt.md=t>=i.lg,this.gt.lg=t>=i.xl,this.lt.sm=t{s.forEach((t=>{void 0!==e[t]&&(h[t]=e[t])}))},this.setDebounce=e=>{p=e};const f=()=>{const e=getComputedStyle(document.body);e.getPropertyValue("--q-size-sm")&&s.forEach((t=>{this.sizes[t]=parseInt(e.getPropertyValue(`--q-size-${t}`),10)})),this.setSizes=e=>{s.forEach((t=>{e[t]&&(this.sizes[t]=e[t])})),this.__update(!0)},this.setDebounce=e=>{void 0!==d&&r.removeEventListener("resize",d,l),d=e>0?(0,a.Z)(this.__update,e):this.__update,r.addEventListener("resize",d,l)},this.setDebounce(p),Object.keys(h).length>0?(this.setSizes(h),h=void 0):this.__update(),!0===c&&"xs"===this.name&&document.body.classList.add("screen--xs")};!0===i.uX.value?t.push(f):f()}});n(5363);const c=(0,r.Z)({isActive:!1,mode:!1},{__media:void 0,set(e){c.mode=e,"auto"===e?(void 0===c.__media&&(c.__media=window.matchMedia("(prefers-color-scheme: dark)"),c.__updateMedia=()=>{c.set("auto")},c.__media.addListener(c.__updateMedia)),e=c.__media.matches):void 0!==c.__media&&(c.__media.removeListener(c.__updateMedia),c.__media=void 0),c.isActive=!0===e,document.body.classList.remove("body--"+(!0===e?"light":"dark")),document.body.classList.add("body--"+(!0===e?"dark":"light"))},toggle(){c.set(!1===c.isActive)},install({$q:e,onSSRHydrated:t,ssrContext:n}){const{dark:r}=e.config;if(e.dark=this,!0===this.__installed&&void 0===r)return;this.isActive=!0===r;const o=void 0!==r&&r;if(!0===i.uX.value){const e=e=>{this.__fromSSR=e},n=this.set;this.set=e,e(o),t.push((()=>{this.set=n,this.set(this.__fromSSR)}))}else this.set(o)}}),d=c;var h=n(6583),p=n(9111),f=n(4398),g=n(1436);function v(e){return!0===e.ios?"ios":!0===e.android?"android":void 0}function m({is:e,has:t,within:n},i){const r=[!0===e.desktop?"desktop":"mobile",(!1===t.touch?"no-":"")+"touch"];if(!0===e.mobile){const t=v(e);void 0!==t&&r.push("platform-"+t)}if(!0===e.nativeMobile){const t=e.nativeMobileWrapper;r.push(t),r.push("native-mobile"),!0!==e.ios||void 0!==i[t]&&!1===i[t].iosStatusBarPadding||r.push("q-ios-padding")}else!0===e.electron?r.push("electron"):!0===e.bex&&r.push("bex");return!0===n.iframe&&r.push("within-iframe"),r}function y(){const e=document.body.className;let t=e;void 0!==i.aG&&(t=t.replace("desktop","platform-ios mobile")),!0===i.Lp.has.touch&&(t=t.replace("no-touch","touch")),!0===i.Lp.within.iframe&&(t+=" within-iframe"),e!==t&&(document.body.className=t)}function x(e){for(const t in e)(0,f.Z)(t,e[t])}const _={install(e){if(!0!==this.__installed){if(!0===i.uX.value)y();else{const{$q:t}=e;void 0!==t.config.brand&&x(t.config.brand);const n=m(i.Lp,t.config);document.body.classList.add.apply(document.body.classList,n)}!0===i.Lp.is.ios&&document.body.addEventListener("touchstart",o.ZT),window.addEventListener("keydown",g.ZK,!0)}}};var b=n(9085);const w={name:"material-icons",type:{positive:"check_circle",negative:"warning",info:"info",warning:"priority_high"},arrow:{up:"arrow_upward",right:"arrow_forward",down:"arrow_downward",left:"arrow_back",dropdown:"arrow_drop_down"},chevron:{left:"chevron_left",right:"chevron_right"},colorPicker:{spectrum:"gradient",tune:"tune",palette:"style"},pullToRefresh:{icon:"refresh"},carousel:{left:"chevron_left",right:"chevron_right",up:"keyboard_arrow_up",down:"keyboard_arrow_down",navigationIcon:"lens"},chip:{remove:"cancel",selected:"check"},datetime:{arrowLeft:"chevron_left",arrowRight:"chevron_right",now:"access_time",today:"today"},editor:{bold:"format_bold",italic:"format_italic",strikethrough:"strikethrough_s",underline:"format_underlined",unorderedList:"format_list_bulleted",orderedList:"format_list_numbered",subscript:"vertical_align_bottom",superscript:"vertical_align_top",hyperlink:"link",toggleFullscreen:"fullscreen",quote:"format_quote",left:"format_align_left",center:"format_align_center",right:"format_align_right",justify:"format_align_justify",print:"print",outdent:"format_indent_decrease",indent:"format_indent_increase",removeFormat:"format_clear",formatting:"text_format",fontSize:"format_size",align:"format_align_left",hr:"remove",undo:"undo",redo:"redo",heading:"format_size",code:"code",size:"format_size",font:"font_download",viewSource:"code"},expansionItem:{icon:"keyboard_arrow_down",denseIcon:"arrow_drop_down"},fab:{icon:"add",activeIcon:"close"},field:{clear:"cancel",error:"error"},pagination:{first:"first_page",prev:"keyboard_arrow_left",next:"keyboard_arrow_right",last:"last_page"},rating:{icon:"grade"},stepper:{done:"check",active:"edit",error:"warning"},tabs:{left:"chevron_left",right:"chevron_right",up:"keyboard_arrow_up",down:"keyboard_arrow_down"},table:{arrowUp:"arrow_upward",warning:"warning",firstPage:"first_page",prevPage:"chevron_left",nextPage:"chevron_right",lastPage:"last_page"},tree:{icon:"play_arrow"},uploader:{done:"done",clear:"clear",add:"add_box",upload:"cloud_upload",removeQueue:"clear_all",removeUploaded:"done_all"}},S=(0,r.Z)({iconMapFn:null,__icons:{}},{set(e,t){const n={...e,rtl:!0===e.rtl};n.set=S.set,Object.assign(S.__icons,n)},install({$q:e,iconSet:t,ssrContext:n}){void 0!==e.config.iconMapFn&&(this.iconMapFn=e.config.iconMapFn),e.iconSet=this.__icons,(0,b.g)(e,"iconMapFn",(()=>this.iconMapFn),(e=>{this.iconMapFn=e})),!0===this.__installed?void 0!==t&&this.set(t):this.set(t||w)}}),M=S;var C=n(2547),I=n(5578),T=n(782);const k=[i.ZP,_,d,u,h.Z,p.Z,M];function A(e,t){t.forEach((t=>{t.install(e),t.__installed=!0}))}function D(e,t,n){e.config.globalProperties.$q=n.$q,e.provide(C.Ng,n.$q),A(n,k),void 0!==t.components&&Object.values(t.components).forEach((t=>{!0===(0,T.Kn)(t)&&void 0!==t.name&&e.component(t.name,t)})),void 0!==t.directives&&Object.values(t.directives).forEach((t=>{!0===(0,T.Kn)(t)&&void 0!==t.name&&e.directive(t.name,t)})),void 0!==t.plugins&&A(n,Object.values(t.plugins).filter((e=>"function"===typeof e.install&&!1===k.includes(e)))),!0===i.uX.value&&(n.$q.onSSRHydrated=()=>{n.onSSRHydrated.forEach((e=>{e()})),n.$q.onSSRHydrated=()=>{}})}const L=function(e,t={}){const n={version:"2.7.7"};!1===I.Uf?(void 0!==t.config&&Object.assign(I.w6,t.config),n.config={...I.w6},(0,I.tP)()):n.config=t.config||{},D(e,t,{parentApp:e,$q:n,lang:t.lang,iconSet:t.iconSet,onSSRHydrated:[]})},P={version:"2.7.7",install:L,lang:p.Z,iconSet:M}},392:(e,t,n)=>{var i=n(419),r=n(3353),o=TypeError;e.exports=function(e){if(i(e))return e;throw o(r(e)+" is not a function")}},2722:(e,t,n)=>{var i=n(7593),r=n(3353),o=TypeError;e.exports=function(e){if(i(e))return e;throw o(r(e)+" is not a constructor")}},8248:(e,t,n)=>{var i=n(419),r=String,o=TypeError;e.exports=function(e){if("object"==typeof e||i(e))return e;throw o("Can't set "+r(e)+" as a prototype")}},2852:(e,t,n)=>{var i=n(854),r=n(1074),o=n(928).f,a=i("unscopables"),s=Array.prototype;void 0==s[a]&&o(s,a,{configurable:!0,value:r(null)}),e.exports=function(e){s[a][e]=!0}},6412:(e,t,n)=>{"use strict";var i=n(1021).charAt;e.exports=function(e,t,n){return t+(n?i(e,t).length:1)}},2827:(e,t,n)=>{var i=n(7673),r=TypeError;e.exports=function(e,t){if(i(t,e))return e;throw r("Incorrect invocation")}},7950:(e,t,n)=>{var i=n(776),r=String,o=TypeError;e.exports=function(e){if(i(e))return e;throw o(r(e)+" is not an object")}},6257:e=>{e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},683:(e,t,n)=>{"use strict";var i,r,o,a=n(6257),s=n(9631),l=n(7358),u=n(419),c=n(776),d=n(7322),h=n(5976),p=n(3353),f=n(1904),g=n(3460),v=n(928).f,m=n(7673),y=n(4945),x=n(6184),_=n(854),b=n(6862),w=n(7624),S=w.enforce,M=w.get,C=l.Int8Array,I=C&&C.prototype,T=l.Uint8ClampedArray,k=T&&T.prototype,A=C&&y(C),D=I&&y(I),L=Object.prototype,P=l.TypeError,O=_("toStringTag"),R=b("TYPED_ARRAY_TAG"),E="TypedArrayConstructor",N=a&&!!x&&"Opera"!==h(l.opera),F=!1,B={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},V={BigInt64Array:8,BigUint64Array:8},z=function(e){if(!c(e))return!1;var t=h(e);return"DataView"===t||d(B,t)||d(V,t)},q=function(e){var t=y(e);if(c(t)){var n=M(t);return n&&d(n,E)?n[E]:q(t)}},H=function(e){if(!c(e))return!1;var t=h(e);return d(B,t)||d(V,t)},W=function(e){if(H(e))return e;throw P("Target is not a typed array")},G=function(e){if(u(e)&&(!x||m(A,e)))return e;throw P(p(e)+" is not a typed array constructor")},U=function(e,t,n,i){if(s){if(n)for(var r in B){var o=l[r];if(o&&d(o.prototype,e))try{delete o.prototype[e]}catch(a){try{o.prototype[e]=t}catch(u){}}}D[e]&&!n||g(D,e,n?t:N&&I[e]||t,i)}},j=function(e,t,n){var i,r;if(s){if(x){if(n)for(i in B)if(r=l[i],r&&d(r,e))try{delete r[e]}catch(o){}if(A[e]&&!n)return;try{return g(A,e,n?t:N&&A[e]||t)}catch(o){}}for(i in B)r=l[i],!r||r[e]&&!n||g(r,e,t)}};for(i in B)r=l[i],o=r&&r.prototype,o?S(o)[E]=r:N=!1;for(i in V)r=l[i],o=r&&r.prototype,o&&(S(o)[E]=r);if((!N||!u(A)||A===Function.prototype)&&(A=function(){throw P("Incorrect invocation")},N))for(i in B)l[i]&&x(l[i],A);if((!N||!D||D===L)&&(D=A.prototype,N))for(i in B)l[i]&&x(l[i].prototype,D);if(N&&y(k)!==D&&x(k,D),s&&!d(D,O))for(i in F=!0,v(D,O,{get:function(){return c(this)?this[R]:void 0}}),B)l[i]&&f(l[i],R,i);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:N,TYPED_ARRAY_TAG:F&&R,aTypedArray:W,aTypedArrayConstructor:G,exportTypedArrayMethod:U,exportTypedArrayStaticMethod:j,getTypedArrayConstructor:q,isView:z,isTypedArray:H,TypedArray:A,TypedArrayPrototype:D}},62:(e,t,n)=>{"use strict";var i=n(7358),r=n(1890),o=n(9631),a=n(6257),s=n(7961),l=n(1904),u=n(6703),c=n(6400),d=n(2827),h=n(1860),p=n(4068),f=n(833),g=n(8830),v=n(4945),m=n(6184),y=n(1454).f,x=n(928).f,_=n(5786),b=n(5771),w=n(1061),S=n(7624),M=s.PROPER,C=s.CONFIGURABLE,I=S.get,T=S.set,k="ArrayBuffer",A="DataView",D="prototype",L="Wrong length",P="Wrong index",O=i[k],R=O,E=R&&R[D],N=i[A],F=N&&N[D],B=Object.prototype,V=i.Array,z=i.RangeError,q=r(_),H=r([].reverse),W=g.pack,G=g.unpack,U=function(e){return[255&e]},j=function(e){return[255&e,e>>8&255]},Z=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},$=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},Y=function(e){return W(e,23,4)},X=function(e){return W(e,52,8)},K=function(e,t){x(e[D],t,{get:function(){return I(this)[t]}})},J=function(e,t,n,i){var r=f(n),o=I(e);if(r+t>o.byteLength)throw z(P);var a=I(o.buffer).bytes,s=r+o.byteOffset,l=b(a,s,s+t);return i?l:H(l)},Q=function(e,t,n,i,r,o){var a=f(n),s=I(e);if(a+t>s.byteLength)throw z(P);for(var l=I(s.buffer).bytes,u=a+s.byteOffset,c=i(+r),d=0;die;)(te=ne[ie++])in R||l(R,te,O[te]);E.constructor=R}m&&v(F)!==B&&m(F,B);var re=new N(new R(2)),oe=r(F.setInt8);re.setInt8(0,2147483648),re.setInt8(1,2147483649),!re.getInt8(0)&&re.getInt8(1)||u(F,{setInt8:function(e,t){oe(this,e,t<<24>>24)},setUint8:function(e,t){oe(this,e,t<<24>>24)}},{unsafe:!0})}else R=function(e){d(this,E);var t=f(e);T(this,{bytes:q(V(t),0),byteLength:t}),o||(this.byteLength=t)},E=R[D],N=function(e,t,n){d(this,F),d(e,E);var i=I(e).byteLength,r=h(t);if(r<0||r>i)throw z("Wrong offset");if(n=void 0===n?i-r:p(n),r+n>i)throw z(L);T(this,{buffer:e,byteLength:n,byteOffset:r}),o||(this.buffer=e,this.byteLength=n,this.byteOffset=r)},F=N[D],o&&(K(R,"byteLength"),K(N,"buffer"),K(N,"byteLength"),K(N,"byteOffset")),u(F,{getInt8:function(e){return J(this,1,e)[0]<<24>>24},getUint8:function(e){return J(this,1,e)[0]},getInt16:function(e){var t=J(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=J(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return $(J(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return $(J(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return G(J(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return G(J(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){Q(this,1,e,U,t)},setUint8:function(e,t){Q(this,1,e,U,t)},setInt16:function(e,t){Q(this,2,e,j,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){Q(this,2,e,j,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){Q(this,4,e,Z,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){Q(this,4,e,Z,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){Q(this,4,e,Y,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){Q(this,8,e,X,t,arguments.length>2?arguments[2]:void 0)}});w(R,k),w(N,A),e.exports={ArrayBuffer:R,DataView:N}},5786:(e,t,n)=>{"use strict";var i=n(7475),r=n(1801),o=n(6042);e.exports=function(e){var t=i(this),n=o(t),a=arguments.length,s=r(a>1?arguments[1]:void 0,n),l=a>2?arguments[2]:void 0,u=void 0===l?n:r(l,n);while(u>s)t[s++]=e;return t}},2029:(e,t,n)=>{"use strict";var i=n(422),r=n(3577),o=n(7475),a=n(9234),s=n(1558),l=n(7593),u=n(6042),c=n(6496),d=n(2151),h=n(7143),p=Array;e.exports=function(e){var t=o(e),n=l(this),f=arguments.length,g=f>1?arguments[1]:void 0,v=void 0!==g;v&&(g=i(g,f>2?arguments[2]:void 0));var m,y,x,_,b,w,S=h(t),M=0;if(!S||this===p&&s(S))for(m=u(t),y=n?new this(m):p(m);m>M;M++)w=v?g(t[M],M):t[M],c(y,M,w);else for(_=d(t,S),b=_.next,y=n?new this:[];!(x=r(b,_)).done;M++)w=v?a(_,g,[x.value,M],!0):x.value,c(y,M,w);return y.length=M,y}},6963:(e,t,n)=>{var i=n(7120),r=n(1801),o=n(6042),a=function(e){return function(t,n,a){var s,l=i(t),u=o(l),c=r(a,u);if(e&&n!=n){while(u>c)if(s=l[c++],s!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},5416:(e,t,n)=>{var i=n(422),r=n(2985),o=n(7475),a=n(6042),s=function(e){var t=1==e;return function(n,s,l){var u,c,d=o(n),h=r(d),p=i(s,l),f=a(h);while(f-- >0)if(u=h[f],c=p(u,f,d),c)switch(e){case 0:return u;case 1:return f}return t?-1:void 0}};e.exports={findLast:s(0),findLastIndex:s(1)}},2099:(e,t,n)=>{var i=n(422),r=n(1890),o=n(2985),a=n(7475),s=n(6042),l=n(6340),u=r([].push),c=function(e){var t=1==e,n=2==e,r=3==e,c=4==e,d=6==e,h=7==e,p=5==e||d;return function(f,g,v,m){for(var y,x,_=a(f),b=o(_),w=i(g,v),S=s(b),M=0,C=m||l,I=t?C(f,S):n||h?C(f,0):void 0;S>M;M++)if((p||M in b)&&(y=b[M],x=w(y,M,_),e))if(t)I[M]=x;else if(x)switch(e){case 3:return!0;case 5:return y;case 6:return M;case 2:u(I,y)}else switch(e){case 4:return!1;case 7:u(I,y)}return d?-1:r||c?c:I}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},5771:(e,t,n)=>{var i=n(1801),r=n(6042),o=n(6496),a=Array,s=Math.max;e.exports=function(e,t,n){for(var l=r(e),u=i(t,l),c=i(void 0===n?l:n,l),d=a(s(c-u,0)),h=0;u{var i=n(5771),r=Math.floor,o=function(e,t){var n=e.length,l=r(n/2);return n<8?a(e,t):s(e,o(i(e,0,l),t),o(i(e,l),t),t)},a=function(e,t){var n,i,r=e.length,o=1;while(o0)e[i]=e[--i];i!==o++&&(e[i]=n)}return e},s=function(e,t,n,i){var r=t.length,o=n.length,a=0,s=0;while(a{var i=n(6894),r=n(7593),o=n(776),a=n(854),s=a("species"),l=Array;e.exports=function(e){var t;return i(e)&&(t=e.constructor,r(t)&&(t===l||i(t.prototype))?t=void 0:o(t)&&(t=t[s],null===t&&(t=void 0))),void 0===t?l:t}},6340:(e,t,n)=>{var i=n(330);e.exports=function(e,t){return new(i(e))(0===t?0:t)}},9234:(e,t,n)=>{var i=n(7950),r=n(8105);e.exports=function(e,t,n,o){try{return o?t(i(n)[0],n[1]):t(n)}catch(a){r(e,"throw",a)}}},8047:(e,t,n)=>{var i=n(854),r=i("iterator"),o=!1;try{var a=0,s={next:function(){return{done:!!a++}},return:function(){o=!0}};s[r]=function(){return this},Array.from(s,(function(){throw 2}))}catch(l){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(l){}return n}},5173:(e,t,n)=>{var i=n(1890),r=i({}.toString),o=i("".slice);e.exports=function(e){return o(r(e),8,-1)}},5976:(e,t,n)=>{var i=n(5705),r=n(419),o=n(5173),a=n(854),s=a("toStringTag"),l=Object,u="Arguments"==o(function(){return arguments}()),c=function(e,t){try{return e[t]}catch(n){}};e.exports=i?o:function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=c(t=l(e),s))?n:u?o(t):"Object"==(i=o(t))&&r(t.callee)?"Arguments":i}},767:(e,t,n)=>{var i=n(1890),r=Error,o=i("".replace),a=function(e){return String(r(e).stack)}("zxcasd"),s=/\n\s*at [^:]*:[^\n]*/,l=s.test(a);e.exports=function(e,t){if(l&&"string"==typeof e&&!r.prepareStackTrace)while(t--)e=o(e,s,"");return e}},8438:(e,t,n)=>{var i=n(7322),r=n(7764),o=n(2404),a=n(928);e.exports=function(e,t,n){for(var s=r(t),l=a.f,u=o.f,c=0;c{var i=n(6400);e.exports=!i((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},5912:(e,t,n)=>{"use strict";var i=n(4848).IteratorPrototype,r=n(1074),o=n(5442),a=n(1061),s=n(2184),l=function(){return this};e.exports=function(e,t,n,u){var c=t+" Iterator";return e.prototype=r(i,{next:o(+!u,n)}),a(e,c,!1,!0),s[c]=l,e}},1904:(e,t,n)=>{var i=n(9631),r=n(928),o=n(5442);e.exports=i?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},5442:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},6496:(e,t,n)=>{"use strict";var i=n(8618),r=n(928),o=n(5442);e.exports=function(e,t,n){var a=i(t);a in e?r.f(e,a,o(0,n)):e[a]=n}},9468:(e,t,n)=>{var i=n(9843),r=n(928);e.exports=function(e,t,n){return n.get&&i(n.get,t,{getter:!0}),n.set&&i(n.set,t,{setter:!0}),r.f(e,t,n)}},3460:(e,t,n)=>{var i=n(419),r=n(928),o=n(9843),a=n(1615);e.exports=function(e,t,n,s){s||(s={});var l=s.enumerable,u=void 0!==s.name?s.name:t;if(i(n)&&o(n,u,s),s.global)l?e[t]=n:a(t,n);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(c){}l?e[t]=n:r.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},6703:(e,t,n)=>{var i=n(3460);e.exports=function(e,t,n){for(var r in t)i(e,r,t[r],n);return e}},1615:(e,t,n)=>{var i=n(7358),r=Object.defineProperty;e.exports=function(e,t){try{r(i,e,{value:t,configurable:!0,writable:!0})}catch(n){i[e]=t}return t}},8810:(e,t,n)=>{"use strict";var i=n(8934),r=n(3577),o=n(6692),a=n(7961),s=n(419),l=n(5912),u=n(4945),c=n(6184),d=n(1061),h=n(1904),p=n(3460),f=n(854),g=n(2184),v=n(4848),m=a.PROPER,y=a.CONFIGURABLE,x=v.IteratorPrototype,_=v.BUGGY_SAFARI_ITERATORS,b=f("iterator"),w="keys",S="values",M="entries",C=function(){return this};e.exports=function(e,t,n,a,f,v,I){l(n,t,a);var T,k,A,D=function(e){if(e===f&&E)return E;if(!_&&e in O)return O[e];switch(e){case w:return function(){return new n(this,e)};case S:return function(){return new n(this,e)};case M:return function(){return new n(this,e)}}return function(){return new n(this)}},L=t+" Iterator",P=!1,O=e.prototype,R=O[b]||O["@@iterator"]||f&&O[f],E=!_&&R||D(f),N="Array"==t&&O.entries||R;if(N&&(T=u(N.call(new e)),T!==Object.prototype&&T.next&&(o||u(T)===x||(c?c(T,x):s(T[b])||p(T,b,C)),d(T,L,!0,!0),o&&(g[L]=C))),m&&f==S&&R&&R.name!==S&&(!o&&y?h(O,"name",S):(P=!0,E=function(){return r(R,this)})),f)if(k={values:D(S),keys:v?E:D(w),entries:D(M)},I)for(A in k)(_||P||!(A in O))&&p(O,A,k[A]);else i({target:t,proto:!0,forced:_||P},k);return o&&!I||O[b]===E||p(O,b,E,{name:f}),g[t]=E,k}},9631:(e,t,n)=>{var i=n(6400);e.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},5354:(e,t,n)=>{var i=n(7358),r=n(776),o=i.document,a=r(o)&&r(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},4296:e=>{e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8753:(e,t,n)=>{var i=n(5354),r=i("span").classList,o=r&&r.constructor&&r.constructor.prototype;e.exports=o===Object.prototype?void 0:o},1544:(e,t,n)=>{var i=n(9173),r=i.match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},8979:(e,t,n)=>{var i=n(9173);e.exports=/MSIE|Trident/.test(i)},9173:(e,t,n)=>{var i=n(9694);e.exports=i("navigator","userAgent")||""},5068:(e,t,n)=>{var i,r,o=n(7358),a=n(9173),s=o.process,l=o.Deno,u=s&&s.versions||l&&l.version,c=u&&u.v8;c&&(i=c.split("."),r=i[0]>0&&i[0]<4?1:+(i[0]+i[1])),!r&&a&&(i=a.match(/Edge\/(\d+)/),(!i||i[1]>=74)&&(i=a.match(/Chrome\/(\d+)/),i&&(r=+i[1]))),e.exports=r},1513:(e,t,n)=>{var i=n(9173),r=i.match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},2875:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},6429:(e,t,n)=>{var i=n(6400),r=n(5442);e.exports=!i((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",r(1,7)),7!==e.stack)}))},8934:(e,t,n)=>{var i=n(7358),r=n(2404).f,o=n(1904),a=n(3460),s=n(1615),l=n(8438),u=n(4389);e.exports=function(e,t){var n,c,d,h,p,f,g=e.target,v=e.global,m=e.stat;if(c=v?i:m?i[g]||s(g,{}):(i[g]||{}).prototype,c)for(d in t){if(p=t[d],e.dontCallGetSet?(f=r(c,d),h=f&&f.value):h=c[d],n=u(v?d:g+(m?".":"#")+d,e.forced),!n&&void 0!==h){if(typeof p==typeof h)continue;l(p,h)}(e.sham||h&&h.sham)&&o(p,"sham",!0),a(c,d,p,e)}}},6400:e=>{e.exports=function(e){try{return!!e()}catch(t){return!0}}},9529:(e,t,n)=>{"use strict";n(7280);var i=n(1890),r=n(3460),o=n(4348),a=n(6400),s=n(854),l=n(1904),u=s("species"),c=RegExp.prototype;e.exports=function(e,t,n,d){var h=s(e),p=!a((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),f=p&&!a((function(){var t=!1,n=/a/;return"split"===e&&(n={},n.constructor={},n.constructor[u]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return t=!0,null},n[h](""),!t}));if(!p||!f||n){var g=i(/./[h]),v=t(h,""[e],(function(e,t,n,r,a){var s=i(e),l=t.exec;return l===o||l===c.exec?p&&!a?{done:!0,value:g(t,n,r)}:{done:!0,value:s(n,t,r)}:{done:!1}}));r(String.prototype,e,v[0]),r(c,h,v[1])}d&&l(c[h],"sham",!0)}},4157:(e,t,n)=>{var i=n(8427),r=Function.prototype,o=r.apply,a=r.call;e.exports="object"==typeof Reflect&&Reflect.apply||(i?a.bind(o):function(){return a.apply(o,arguments)})},422:(e,t,n)=>{var i=n(1890),r=n(392),o=n(8427),a=i(i.bind);e.exports=function(e,t){return r(e),void 0===t?e:o?a(e,t):function(){return e.apply(t,arguments)}}},8427:(e,t,n)=>{var i=n(6400);e.exports=!i((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},3577:(e,t,n)=>{var i=n(8427),r=Function.prototype.call;e.exports=i?r.bind(r):function(){return r.apply(r,arguments)}},7961:(e,t,n)=>{var i=n(9631),r=n(7322),o=Function.prototype,a=i&&Object.getOwnPropertyDescriptor,s=r(o,"name"),l=s&&"something"===function(){}.name,u=s&&(!i||i&&a(o,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:u}},1890:(e,t,n)=>{var i=n(8427),r=Function.prototype,o=r.bind,a=r.call,s=i&&o.bind(a,a);e.exports=i?function(e){return e&&s(e)}:function(e){return e&&function(){return a.apply(e,arguments)}}},9694:(e,t,n)=>{var i=n(7358),r=n(419),o=function(e){return r(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(i[e]):i[e]&&i[e][t]}},7143:(e,t,n)=>{var i=n(5976),r=n(2344),o=n(2184),a=n(854),s=a("iterator");e.exports=function(e){if(void 0!=e)return r(e,s)||r(e,"@@iterator")||o[i(e)]}},2151:(e,t,n)=>{var i=n(3577),r=n(392),o=n(7950),a=n(3353),s=n(7143),l=TypeError;e.exports=function(e,t){var n=arguments.length<2?s(e):t;if(r(n))return o(i(n,e));throw l(a(e)+" is not iterable")}},2344:(e,t,n)=>{var i=n(392);e.exports=function(e,t){var n=e[t];return null==n?void 0:i(n)}},8716:(e,t,n)=>{var i=n(1890),r=n(7475),o=Math.floor,a=i("".charAt),s=i("".replace),l=i("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,i,d,h){var p=n+e.length,f=i.length,g=c;return void 0!==d&&(d=r(d),g=u),s(h,g,(function(r,s){var u;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,n);case"'":return l(t,p);case"<":u=d[l(s,1,-1)];break;default:var c=+s;if(0===c)return r;if(c>f){var h=o(c/10);return 0===h?r:h<=f?void 0===i[h-1]?a(s,1):i[h-1]+a(s,1):r}u=i[c-1]}return void 0===u?"":u}))}},7358:(e,t,n)=>{var i=function(e){return e&&e.Math==Math&&e};e.exports=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},7322:(e,t,n)=>{var i=n(1890),r=n(7475),o=i({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(r(e),t)}},600:e=>{e.exports={}},9970:(e,t,n)=>{var i=n(9694);e.exports=i("document","documentElement")},7021:(e,t,n)=>{var i=n(9631),r=n(6400),o=n(5354);e.exports=!i&&!r((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},8830:e=>{var t=Array,n=Math.abs,i=Math.pow,r=Math.floor,o=Math.log,a=Math.LN2,s=function(e,s,l){var u,c,d,h=t(l),p=8*l-s-1,f=(1<>1,v=23===s?i(2,-24)-i(2,-77):0,m=e<0||0===e&&1/e<0?1:0,y=0;e=n(e),e!=e||e===1/0?(c=e!=e?1:0,u=f):(u=r(o(e)/a),d=i(2,-u),e*d<1&&(u--,d*=2),e+=u+g>=1?v/d:v*i(2,1-g),e*d>=2&&(u++,d/=2),u+g>=f?(c=0,u=f):u+g>=1?(c=(e*d-1)*i(2,s),u+=g):(c=e*i(2,g-1)*i(2,s),u=0));while(s>=8)h[y++]=255&c,c/=256,s-=8;u=u<0)h[y++]=255&u,u/=256,p-=8;return h[--y]|=128*m,h},l=function(e,t){var n,r=e.length,o=8*r-t-1,a=(1<>1,l=o-7,u=r-1,c=e[u--],d=127&c;c>>=7;while(l>0)d=256*d+e[u--],l-=8;n=d&(1<<-l)-1,d>>=-l,l+=t;while(l>0)n=256*n+e[u--],l-=8;if(0===d)d=1-s;else{if(d===a)return n?NaN:c?-1/0:1/0;n+=i(2,t),d-=s}return(c?-1:1)*n*i(2,d-t)};e.exports={pack:s,unpack:l}},2985:(e,t,n)=>{var i=n(1890),r=n(6400),o=n(5173),a=Object,s=i("".split);e.exports=r((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?s(e,""):a(e)}:a},9941:(e,t,n)=>{var i=n(419),r=n(776),o=n(6184);e.exports=function(e,t,n){var a,s;return o&&i(a=t.constructor)&&a!==n&&r(s=a.prototype)&&s!==n.prototype&&o(e,s),e}},3725:(e,t,n)=>{var i=n(1890),r=n(419),o=n(1089),a=i(Function.toString);r(o.inspectSource)||(o.inspectSource=function(e){return a(e)}),e.exports=o.inspectSource},5684:(e,t,n)=>{var i=n(776),r=n(1904);e.exports=function(e,t){i(t)&&"cause"in t&&r(e,"cause",t.cause)}},7624:(e,t,n)=>{var i,r,o,a=n(9262),s=n(7358),l=n(1890),u=n(776),c=n(1904),d=n(7322),h=n(1089),p=n(203),f=n(600),g="Object already initialized",v=s.TypeError,m=s.WeakMap,y=function(e){return o(e)?r(e):i(e,{})},x=function(e){return function(t){var n;if(!u(t)||(n=r(t)).type!==e)throw v("Incompatible receiver, "+e+" required");return n}};if(a||h.state){var _=h.state||(h.state=new m),b=l(_.get),w=l(_.has),S=l(_.set);i=function(e,t){if(w(_,e))throw new v(g);return t.facade=e,S(_,e,t),t},r=function(e){return b(_,e)||{}},o=function(e){return w(_,e)}}else{var M=p("state");f[M]=!0,i=function(e,t){if(d(e,M))throw new v(g);return t.facade=e,c(e,M,t),t},r=function(e){return d(e,M)?e[M]:{}},o=function(e){return d(e,M)}}e.exports={set:i,get:r,has:o,enforce:y,getterFor:x}},1558:(e,t,n)=>{var i=n(854),r=n(2184),o=i("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||a[o]===e)}},6894:(e,t,n)=>{var i=n(5173);e.exports=Array.isArray||function(e){return"Array"==i(e)}},419:e=>{e.exports=function(e){return"function"==typeof e}},7593:(e,t,n)=>{var i=n(1890),r=n(6400),o=n(419),a=n(5976),s=n(9694),l=n(3725),u=function(){},c=[],d=s("Reflect","construct"),h=/^\s*(?:class|function)\b/,p=i(h.exec),f=!h.exec(u),g=function(e){if(!o(e))return!1;try{return d(u,c,e),!0}catch(t){return!1}},v=function(e){if(!o(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return f||!!p(h,l(e))}catch(t){return!0}};v.sham=!0,e.exports=!d||r((function(){var e;return g(g.call)||!g(Object)||!g((function(){e=!0}))||e}))?v:g},4389:(e,t,n)=>{var i=n(6400),r=n(419),o=/#|\.prototype\./,a=function(e,t){var n=l[s(e)];return n==c||n!=u&&(r(t)?i(t):!!t)},s=a.normalize=function(e){return String(e).replace(o,".").toLowerCase()},l=a.data={},u=a.NATIVE="N",c=a.POLYFILL="P";e.exports=a},2818:(e,t,n)=>{var i=n(776),r=Math.floor;e.exports=Number.isInteger||function(e){return!i(e)&&isFinite(e)&&r(e)===e}},776:(e,t,n)=>{var i=n(419);e.exports=function(e){return"object"==typeof e?null!==e:i(e)}},6692:e=>{e.exports=!1},410:(e,t,n)=>{var i=n(9694),r=n(419),o=n(7673),a=n(8476),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=i("Symbol");return r(t)&&o(t.prototype,s(e))}},8105:(e,t,n)=>{var i=n(3577),r=n(7950),o=n(2344);e.exports=function(e,t,n){var a,s;r(e);try{if(a=o(e,"return"),!a){if("throw"===t)throw n;return n}a=i(a,e)}catch(l){s=!0,a=l}if("throw"===t)throw n;if(s)throw a;return r(a),n}},4848:(e,t,n)=>{"use strict";var i,r,o,a=n(6400),s=n(419),l=n(1074),u=n(4945),c=n(3460),d=n(854),h=n(6692),p=d("iterator"),f=!1;[].keys&&(o=[].keys(),"next"in o?(r=u(u(o)),r!==Object.prototype&&(i=r)):f=!0);var g=void 0==i||a((function(){var e={};return i[p].call(e)!==e}));g?i={}:h&&(i=l(i)),s(i[p])||c(i,p,(function(){return this})),e.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:f}},2184:e=>{e.exports={}},6042:(e,t,n)=>{var i=n(4068);e.exports=function(e){return i(e.length)}},9843:(e,t,n)=>{var i=n(6400),r=n(419),o=n(7322),a=n(9631),s=n(7961).CONFIGURABLE,l=n(3725),u=n(7624),c=u.enforce,d=u.get,h=Object.defineProperty,p=a&&!i((function(){return 8!==h((function(){}),"length",{value:8}).length})),f=String(String).split("String"),g=e.exports=function(e,t,n){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!o(e,"name")||s&&e.name!==t)&&(a?h(e,"name",{value:t,configurable:!0}):e.name=t),p&&n&&o(n,"arity")&&e.length!==n.arity&&h(e,"length",{value:n.arity});try{n&&o(n,"constructor")&&n.constructor?a&&h(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(r){}var i=c(e);return o(i,"source")||(i.source=f.join("string"==typeof t?t:"")),e};Function.prototype.toString=g((function(){return r(this)&&d(this).source||l(this)}),"toString")},1243:e=>{var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var i=+e;return(i>0?n:t)(i)}},7529:(e,t,n)=>{var i=n(5068),r=n(6400);e.exports=!!Object.getOwnPropertySymbols&&!r((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&i&&i<41}))},6595:(e,t,n)=>{var i=n(6400),r=n(854),o=n(6692),a=r("iterator");e.exports=!i((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,i){t["delete"]("b"),n+=i+e})),o&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},9262:(e,t,n)=>{var i=n(7358),r=n(419),o=n(3725),a=i.WeakMap;e.exports=r(a)&&/native code/.test(o(a))},7598:(e,t,n)=>{var i=n(4481);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:i(e)}},8439:(e,t,n)=>{"use strict";var i=n(9631),r=n(1890),o=n(3577),a=n(6400),s=n(9158),l=n(4199),u=n(5604),c=n(7475),d=n(2985),h=Object.assign,p=Object.defineProperty,f=r([].concat);e.exports=!h||a((function(){if(i&&1!==h({b:1},h(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=h({},e)[n]||s(h({},t)).join("")!=r}))?function(e,t){var n=c(e),r=arguments.length,a=1,h=l.f,p=u.f;while(r>a){var g,v=d(arguments[a++]),m=h?f(s(v),h(v)):s(v),y=m.length,x=0;while(y>x)g=m[x++],i&&!o(p,v,g)||(n[g]=v[g])}return n}:h},1074:(e,t,n)=>{var i,r=n(7950),o=n(3605),a=n(2875),s=n(600),l=n(9970),u=n(5354),c=n(203),d=">",h="<",p="prototype",f="script",g=c("IE_PROTO"),v=function(){},m=function(e){return h+f+d+e+h+"/"+f+d},y=function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t},x=function(){var e,t=u("iframe"),n="java"+f+":";return t.style.display="none",l.appendChild(t),t.src=String(n),e=t.contentWindow.document,e.open(),e.write(m("document.F=Object")),e.close(),e.F},_=function(){try{i=new ActiveXObject("htmlfile")}catch(t){}_="undefined"!=typeof document?document.domain&&i?y(i):x():y(i);var e=a.length;while(e--)delete _[p][a[e]];return _()};s[g]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(v[p]=r(e),n=new v,v[p]=null,n[g]=e):n=_(),void 0===t?n:o.f(n,t)}},3605:(e,t,n)=>{var i=n(9631),r=n(5953),o=n(928),a=n(7950),s=n(7120),l=n(9158);t.f=i&&!r?Object.defineProperties:function(e,t){a(e);var n,i=s(t),r=l(t),u=r.length,c=0;while(u>c)o.f(e,n=r[c++],i[n]);return e}},928:(e,t,n)=>{var i=n(9631),r=n(7021),o=n(5953),a=n(7950),s=n(8618),l=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,d="enumerable",h="configurable",p="writable";t.f=i?o?function(e,t,n){if(a(e),t=s(t),a(n),"function"===typeof e&&"prototype"===t&&"value"in n&&p in n&&!n[p]){var i=c(e,t);i&&i[p]&&(e[t]=n.value,n={configurable:h in n?n[h]:i[h],enumerable:d in n?n[d]:i[d],writable:!1})}return u(e,t,n)}:u:function(e,t,n){if(a(e),t=s(t),a(n),r)try{return u(e,t,n)}catch(i){}if("get"in n||"set"in n)throw l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},2404:(e,t,n)=>{var i=n(9631),r=n(3577),o=n(5604),a=n(5442),s=n(7120),l=n(8618),u=n(7322),c=n(7021),d=Object.getOwnPropertyDescriptor;t.f=i?d:function(e,t){if(e=s(e),t=l(t),c)try{return d(e,t)}catch(n){}if(u(e,t))return a(!r(o.f,e,t),e[t])}},1454:(e,t,n)=>{var i=n(1587),r=n(2875),o=r.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,o)}},4199:(e,t)=>{t.f=Object.getOwnPropertySymbols},4945:(e,t,n)=>{var i=n(7322),r=n(419),o=n(7475),a=n(203),s=n(123),l=a("IE_PROTO"),u=Object,c=u.prototype;e.exports=s?u.getPrototypeOf:function(e){var t=o(e);if(i(t,l))return t[l];var n=t.constructor;return r(n)&&t instanceof n?n.prototype:t instanceof u?c:null}},7673:(e,t,n)=>{var i=n(1890);e.exports=i({}.isPrototypeOf)},1587:(e,t,n)=>{var i=n(1890),r=n(7322),o=n(7120),a=n(6963).indexOf,s=n(600),l=i([].push);e.exports=function(e,t){var n,i=o(e),u=0,c=[];for(n in i)!r(s,n)&&r(i,n)&&l(c,n);while(t.length>u)r(i,n=t[u++])&&(~a(c,n)||l(c,n));return c}},9158:(e,t,n)=>{var i=n(1587),r=n(2875);e.exports=Object.keys||function(e){return i(e,r)}},5604:(e,t)=>{"use strict";var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,r=i&&!n.call({1:2},1);t.f=r?function(e){var t=i(this,e);return!!t&&t.enumerable}:n},6184:(e,t,n)=>{var i=n(1890),r=n(7950),o=n(8248);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=i(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),e(n,[]),t=n instanceof Array}catch(a){}return function(n,i){return r(n),o(i),t?e(n,i):n.__proto__=i,n}}():void 0)},9308:(e,t,n)=>{var i=n(3577),r=n(419),o=n(776),a=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&r(n=e.toString)&&!o(s=i(n,e)))return s;if(r(n=e.valueOf)&&!o(s=i(n,e)))return s;if("string"!==t&&r(n=e.toString)&&!o(s=i(n,e)))return s;throw a("Can't convert object to primitive value")}},7764:(e,t,n)=>{var i=n(9694),r=n(1890),o=n(1454),a=n(4199),s=n(7950),l=r([].concat);e.exports=i("Reflect","ownKeys")||function(e){var t=o.f(s(e)),n=a.f;return n?l(t,n(e)):t}},4836:(e,t,n)=>{var i=n(928).f;e.exports=function(e,t,n){n in e||i(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},9395:(e,t,n)=>{var i=n(3577),r=n(7950),o=n(419),a=n(5173),s=n(4348),l=TypeError;e.exports=function(e,t){var n=e.exec;if(o(n)){var u=i(n,e,t);return null!==u&&r(u),u}if("RegExp"===a(e))return i(s,e,t);throw l("RegExp#exec called on incompatible receiver")}},4348:(e,t,n)=>{"use strict";var i=n(3577),r=n(1890),o=n(4481),a=n(136),s=n(2351),l=n(1586),u=n(1074),c=n(7624).get,d=n(5337),h=n(1442),p=l("native-string-replace",String.prototype.replace),f=RegExp.prototype.exec,g=f,v=r("".charAt),m=r("".indexOf),y=r("".replace),x=r("".slice),_=function(){var e=/a/,t=/b*/g;return i(f,e,"a"),i(f,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),b=s.BROKEN_CARET,w=void 0!==/()??/.exec("")[1],S=_||w||b||d||h;S&&(g=function(e){var t,n,r,s,l,d,h,S=this,M=c(S),C=o(e),I=M.raw;if(I)return I.lastIndex=S.lastIndex,t=i(g,I,C),S.lastIndex=I.lastIndex,t;var T=M.groups,k=b&&S.sticky,A=i(a,S),D=S.source,L=0,P=C;if(k&&(A=y(A,"y",""),-1===m(A,"g")&&(A+="g"),P=x(C,S.lastIndex),S.lastIndex>0&&(!S.multiline||S.multiline&&"\n"!==v(C,S.lastIndex-1))&&(D="(?: "+D+")",P=" "+P,L++),n=new RegExp("^(?:"+D+")",A)),w&&(n=new RegExp("^"+D+"$(?!\\s)",A)),_&&(r=S.lastIndex),s=i(f,k?n:S,P),k?s?(s.input=x(s.input,L),s[0]=x(s[0],L),s.index=S.lastIndex,S.lastIndex+=s[0].length):S.lastIndex=0:_&&s&&(S.lastIndex=S.global?s.index+s[0].length:r),w&&s&&s.length>1&&i(p,s[0],n,(function(){for(l=1;l{"use strict";var i=n(7950);e.exports=function(){var e=i(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},2351:(e,t,n)=>{var i=n(6400),r=n(7358),o=r.RegExp,a=i((function(){var e=o("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),s=a||i((function(){return!o("a","y").sticky})),l=a||i((function(){var e=o("^r","gy");return e.lastIndex=2,null!=e.exec("str")}));e.exports={BROKEN_CARET:l,MISSED_STICKY:s,UNSUPPORTED_Y:a}},5337:(e,t,n)=>{var i=n(6400),r=n(7358),o=r.RegExp;e.exports=i((function(){var e=o(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}))},1442:(e,t,n)=>{var i=n(6400),r=n(7358),o=r.RegExp;e.exports=i((function(){var e=o("(?
b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$c")}))},7933:e=>{var t=TypeError;e.exports=function(e){if(void 0==e)throw t("Can't call method on "+e);return e}},4114:(e,t,n)=>{"use strict";var i=n(9694),r=n(928),o=n(854),a=n(9631),s=o("species");e.exports=function(e){var t=i(e),n=r.f;a&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},1061:(e,t,n)=>{var i=n(928).f,r=n(7322),o=n(854),a=o("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!r(e,a)&&i(e,a,{configurable:!0,value:t})}},203:(e,t,n)=>{var i=n(1586),r=n(6862),o=i("keys");e.exports=function(e){return o[e]||(o[e]=r(e))}},1089:(e,t,n)=>{var i=n(7358),r=n(1615),o="__core-js_shared__",a=i[o]||r(o,{});e.exports=a},1586:(e,t,n)=>{var i=n(6692),r=n(1089);(e.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.24.1",mode:i?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE",source:"https://github.com/zloirock/core-js"})},1021:(e,t,n)=>{var i=n(1890),r=n(1860),o=n(4481),a=n(7933),s=i("".charAt),l=i("".charCodeAt),u=i("".slice),c=function(e){return function(t,n){var i,c,d=o(a(t)),h=r(n),p=d.length;return h<0||h>=p?e?"":void 0:(i=l(d,h),i<55296||i>56319||h+1===p||(c=l(d,h+1))<56320||c>57343?e?s(d,h):i:e?u(d,h,h+2):c-56320+(i-55296<<10)+65536)}};e.exports={codeAt:c(!1),charAt:c(!0)}},5253:(e,t,n)=>{"use strict";var i=n(1890),r=2147483647,o=36,a=1,s=26,l=38,u=700,c=72,d=128,h="-",p=/[^\0-\u007E]/,f=/[.\u3002\uFF0E\uFF61]/g,g="Overflow: input needs wider integers to process",v=o-a,m=RangeError,y=i(f.exec),x=Math.floor,_=String.fromCharCode,b=i("".charCodeAt),w=i([].join),S=i([].push),M=i("".replace),C=i("".split),I=i("".toLowerCase),T=function(e){var t=[],n=0,i=e.length;while(n=55296&&r<=56319&&n>1,e+=x(e/t);while(e>v*s>>1)e=x(e/v),i+=o;return x(i+(v+1)*e/(e+l))},D=function(e){var t=[];e=T(e);var n,i,l=e.length,u=d,p=0,f=c;for(n=0;n=u&&ix((r-p)/M))throw m(g);for(p+=(b-u)*M,u=b,n=0;nr)throw m(g);if(i==u){var C=p,I=o;while(1){var D=I<=f?a:I>=f+s?s:I-f;if(C{var i=n(1860),r=Math.max,o=Math.min;e.exports=function(e,t){var n=i(e);return n<0?r(n+t,0):o(n,t)}},5492:(e,t,n)=>{var i=n(2181),r=TypeError;e.exports=function(e){var t=i(e,"number");if("number"==typeof t)throw r("Can't convert number to bigint");return BigInt(t)}},833:(e,t,n)=>{var i=n(1860),r=n(4068),o=RangeError;e.exports=function(e){if(void 0===e)return 0;var t=i(e),n=r(t);if(t!==n)throw o("Wrong length or index");return n}},7120:(e,t,n)=>{var i=n(2985),r=n(7933);e.exports=function(e){return i(r(e))}},1860:(e,t,n)=>{var i=n(1243);e.exports=function(e){var t=+e;return t!==t||0===t?0:i(t)}},4068:(e,t,n)=>{var i=n(1860),r=Math.min;e.exports=function(e){return e>0?r(i(e),9007199254740991):0}},7475:(e,t,n)=>{var i=n(7933),r=Object;e.exports=function(e){return r(i(e))}},701:(e,t,n)=>{var i=n(1443),r=RangeError;e.exports=function(e,t){var n=i(e);if(n%t)throw r("Wrong offset");return n}},1443:(e,t,n)=>{var i=n(1860),r=RangeError;e.exports=function(e){var t=i(e);if(t<0)throw r("The argument can't be less than 0");return t}},2181:(e,t,n)=>{var i=n(3577),r=n(776),o=n(410),a=n(2344),s=n(9308),l=n(854),u=TypeError,c=l("toPrimitive");e.exports=function(e,t){if(!r(e)||o(e))return e;var n,l=a(e,c);if(l){if(void 0===t&&(t="default"),n=i(l,e,t),!r(n)||o(n))return n;throw u("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},8618:(e,t,n)=>{var i=n(2181),r=n(410);e.exports=function(e){var t=i(e,"string");return r(t)?t:t+""}},5705:(e,t,n)=>{var i=n(854),r=i("toStringTag"),o={};o[r]="z",e.exports="[object z]"===String(o)},4481:(e,t,n)=>{var i=n(5976),r=String;e.exports=function(e){if("Symbol"===i(e))throw TypeError("Cannot convert a Symbol value to a string");return r(e)}},3353:e=>{var t=String;e.exports=function(e){try{return t(e)}catch(n){return"Object"}}},6968:(e,t,n)=>{"use strict";var i=n(8934),r=n(7358),o=n(3577),a=n(9631),s=n(8689),l=n(683),u=n(62),c=n(2827),d=n(5442),h=n(1904),p=n(2818),f=n(4068),g=n(833),v=n(701),m=n(8618),y=n(7322),x=n(5976),_=n(776),b=n(410),w=n(1074),S=n(7673),M=n(6184),C=n(1454).f,I=n(9401),T=n(2099).forEach,k=n(4114),A=n(928),D=n(2404),L=n(7624),P=n(9941),O=L.get,R=L.set,E=L.enforce,N=A.f,F=D.f,B=Math.round,V=r.RangeError,z=u.ArrayBuffer,q=z.prototype,H=u.DataView,W=l.NATIVE_ARRAY_BUFFER_VIEWS,G=l.TYPED_ARRAY_TAG,U=l.TypedArray,j=l.TypedArrayPrototype,Z=l.aTypedArrayConstructor,$=l.isTypedArray,Y="BYTES_PER_ELEMENT",X="Wrong length",K=function(e,t){Z(e);var n=0,i=t.length,r=new e(i);while(i>n)r[n]=t[n++];return r},J=function(e,t){N(e,t,{get:function(){return O(this)[t]}})},Q=function(e){var t;return S(q,e)||"ArrayBuffer"==(t=x(e))||"SharedArrayBuffer"==t},ee=function(e,t){return $(e)&&!b(t)&&t in e&&p(+t)&&t>=0},te=function(e,t){return t=m(t),ee(e,t)?d(2,e[t]):F(e,t)},ne=function(e,t,n){return t=m(t),!(ee(e,t)&&_(n)&&y(n,"value"))||y(n,"get")||y(n,"set")||n.configurable||y(n,"writable")&&!n.writable||y(n,"enumerable")&&!n.enumerable?N(e,t,n):(e[t]=n.value,e)};a?(W||(D.f=te,A.f=ne,J(j,"buffer"),J(j,"byteOffset"),J(j,"byteLength"),J(j,"length")),i({target:"Object",stat:!0,forced:!W},{getOwnPropertyDescriptor:te,defineProperty:ne}),e.exports=function(e,t,n){var a=e.match(/\d+$/)[0]/8,l=e+(n?"Clamped":"")+"Array",u="get"+e,d="set"+e,p=r[l],m=p,y=m&&m.prototype,x={},b=function(e,t){var n=O(e);return n.view[u](t*a+n.byteOffset,!0)},S=function(e,t,i){var r=O(e);n&&(i=(i=B(i))<0?0:i>255?255:255&i),r.view[d](t*a+r.byteOffset,i,!0)},A=function(e,t){N(e,t,{get:function(){return b(this,t)},set:function(e){return S(this,t,e)},enumerable:!0})};W?s&&(m=t((function(e,t,n,i){return c(e,y),P(function(){return _(t)?Q(t)?void 0!==i?new p(t,v(n,a),i):void 0!==n?new p(t,v(n,a)):new p(t):$(t)?K(m,t):o(I,m,t):new p(g(t))}(),e,m)})),M&&M(m,U),T(C(p),(function(e){e in m||h(m,e,p[e])})),m.prototype=y):(m=t((function(e,t,n,i){c(e,y);var r,s,l,u=0,d=0;if(_(t)){if(!Q(t))return $(t)?K(m,t):o(I,m,t);r=t,d=v(n,a);var h=t.byteLength;if(void 0===i){if(h%a)throw V(X);if(s=h-d,s<0)throw V(X)}else if(s=f(i)*a,s+d>h)throw V(X);l=s/a}else l=g(t),s=l*a,r=new z(s);R(e,{buffer:r,byteOffset:d,byteLength:s,length:l,view:new H(r)});while(u{var i=n(7358),r=n(6400),o=n(8047),a=n(683).NATIVE_ARRAY_BUFFER_VIEWS,s=i.ArrayBuffer,l=i.Int8Array;e.exports=!a||!r((function(){l(1)}))||!r((function(){new l(-1)}))||!o((function(e){new l,new l(null),new l(1.5),new l(e)}),!0)||r((function(){return 1!==new l(new s(2),1,void 0).length}))},9401:(e,t,n)=>{var i=n(422),r=n(3577),o=n(2722),a=n(7475),s=n(6042),l=n(2151),u=n(7143),c=n(1558),d=n(683).aTypedArrayConstructor;e.exports=function(e){var t,n,h,p,f,g,v=o(this),m=a(e),y=arguments.length,x=y>1?arguments[1]:void 0,_=void 0!==x,b=u(m);if(b&&!c(b)){f=l(m,b),g=f.next,m=[];while(!(p=r(g,f)).done)m.push(p.value)}for(_&&y>2&&(x=i(x,arguments[2])),n=s(m),h=new(d(v))(n),t=0;n>t;t++)h[t]=_?x(m[t],t):m[t];return h}},6862:(e,t,n)=>{var i=n(1890),r=0,o=Math.random(),a=i(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++r+o,36)}},8476:(e,t,n)=>{var i=n(7529);e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},5953:(e,t,n)=>{var i=n(9631),r=n(6400);e.exports=i&&r((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},6596:e=>{var t=TypeError;e.exports=function(e,n){if(e{var i=n(7358),r=n(1586),o=n(7322),a=n(6862),s=n(7529),l=n(8476),u=r("wks"),c=i.Symbol,d=c&&c["for"],h=l?c:c&&c.withoutSetter||a;e.exports=function(e){if(!o(u,e)||!s&&"string"!=typeof u[e]){var t="Symbol."+e;s&&o(c,e)?u[e]=c[e]:u[e]=l&&d?d(t):h(t)}return u[e]}},7971:(e,t,n)=>{"use strict";var i=n(9694),r=n(7322),o=n(1904),a=n(7673),s=n(6184),l=n(8438),u=n(4836),c=n(9941),d=n(7598),h=n(5684),p=n(767),f=n(6429),g=n(9631),v=n(6692);e.exports=function(e,t,n,m){var y="stackTraceLimit",x=m?2:1,_=e.split("."),b=_[_.length-1],w=i.apply(null,_);if(w){var S=w.prototype;if(!v&&r(S,"cause")&&delete S.cause,!n)return w;var M=i("Error"),C=t((function(e,t){var n=d(m?t:e,void 0),i=m?new w(e):new w;return void 0!==n&&o(i,"message",n),f&&o(i,"stack",p(i.stack,2)),this&&a(S,this)&&c(i,this,C),arguments.length>x&&h(i,arguments[x]),i}));if(C.prototype=S,"Error"!==b?s?s(C,M):l(C,M,{name:!0}):g&&y in w&&(u(C,w,y),u(C,w,"prepareStackTrace")),l(C,w),!v)try{S.name!==b&&o(S,"name",b),S.constructor=C}catch(I){}return C}}},3610:(e,t,n)=>{"use strict";var i=n(8934),r=n(6963).includes,o=n(6400),a=n(2852),s=o((function(){return!Array(1).includes()}));i({target:"Array",proto:!0,forced:s},{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},6843:(e,t,n)=>{"use strict";var i=n(7120),r=n(2852),o=n(2184),a=n(7624),s=n(928).f,l=n(8810),u=n(6692),c=n(9631),d="Array Iterator",h=a.set,p=a.getterFor(d);e.exports=l(Array,"Array",(function(e,t){h(this,{type:d,target:i(e),index:0,kind:t})}),(function(){var e=p(this),t=e.target,n=e.kind,i=e.index++;return!t||i>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:i,done:!1}:"values"==n?{value:t[i],done:!1}:{value:[i,t[i]],done:!1}}),"values");var f=o.Arguments=o.Array;if(r("keys"),r("values"),r("entries"),!u&&c&&"values"!==f.name)try{s(f,"name",{value:"values"})}catch(g){}},6701:(e,t,n)=>{var i=n(8934),r=n(7358),o=n(4157),a=n(7971),s="WebAssembly",l=r[s],u=7!==Error("e",{cause:7}).cause,c=function(e,t){var n={};n[e]=a(e,t,u),i({global:!0,constructor:!0,arity:1,forced:u},n)},d=function(e,t){if(l&&l[e]){var n={};n[e]=a(s+"."+e,t,u),i({target:s,stat:!0,constructor:!0,arity:1,forced:u},n)}};c("Error",(function(e){return function(t){return o(e,this,arguments)}})),c("EvalError",(function(e){return function(t){return o(e,this,arguments)}})),c("RangeError",(function(e){return function(t){return o(e,this,arguments)}})),c("ReferenceError",(function(e){return function(t){return o(e,this,arguments)}})),c("SyntaxError",(function(e){return function(t){return o(e,this,arguments)}})),c("TypeError",(function(e){return function(t){return o(e,this,arguments)}})),c("URIError",(function(e){return function(t){return o(e,this,arguments)}})),d("CompileError",(function(e){return function(t){return o(e,this,arguments)}})),d("LinkError",(function(e){return function(t){return o(e,this,arguments)}})),d("RuntimeError",(function(e){return function(t){return o(e,this,arguments)}}))},7280:(e,t,n)=>{"use strict";var i=n(8934),r=n(4348);i({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},4406:(e,t,n)=>{var i=n(7358),r=n(9631),o=n(9468),a=n(136),s=n(6400),l=i.RegExp,u=l.prototype,c=r&&s((function(){var e=!0;try{l(".","d")}catch(c){e=!1}var t={},n="",i=e?"dgimsy":"gimsy",r=function(e,i){Object.defineProperty(t,e,{get:function(){return n+=i,!0}})},o={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in e&&(o.hasIndices="d"),o)r(a,o[a]);var s=Object.getOwnPropertyDescriptor(u,"flags").get.call(t);return s!==i||n!==i}));c&&o(u,"flags",{configurable:!0,get:a})},839:(e,t,n)=>{"use strict";var i=n(1021).charAt,r=n(4481),o=n(7624),a=n(8810),s="String Iterator",l=o.set,u=o.getterFor(s);a(String,"String",(function(e){l(this,{type:s,string:r(e),index:0})}),(function(){var e,t=u(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=i(n,r),t.index+=e.length,{value:e,done:!1})}))},5363:(e,t,n)=>{"use strict";var i=n(4157),r=n(3577),o=n(1890),a=n(9529),s=n(6400),l=n(7950),u=n(419),c=n(1860),d=n(4068),h=n(4481),p=n(7933),f=n(6412),g=n(2344),v=n(8716),m=n(9395),y=n(854),x=y("replace"),_=Math.max,b=Math.min,w=o([].concat),S=o([].push),M=o("".indexOf),C=o("".slice),I=function(e){return void 0===e?e:String(e)},T=function(){return"$0"==="a".replace(/./,"$0")}(),k=function(){return!!/./[x]&&""===/./[x]("a","$0")}(),A=!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")}));a("replace",(function(e,t,n){var o=k?"$":"$0";return[function(e,n){var i=p(this),o=void 0==e?void 0:g(e,x);return o?r(o,e,i,n):r(t,h(i),e,n)},function(e,r){var a=l(this),s=h(e);if("string"==typeof r&&-1===M(r,o)&&-1===M(r,"$<")){var p=n(t,a,s,r);if(p.done)return p.value}var g=u(r);g||(r=h(r));var y=a.global;if(y){var x=a.unicode;a.lastIndex=0}var T=[];while(1){var k=m(a,s);if(null===k)break;if(S(T,k),!y)break;var A=h(k[0]);""===A&&(a.lastIndex=f(s,d(a.lastIndex),x))}for(var D="",L=0,P=0;P=L&&(D+=C(s,L,R)+V,L=R+O.length)}return D+C(s,L)}]}),!A||!T||k)},5123:(e,t,n)=>{"use strict";var i=n(683),r=n(6042),o=n(1860),a=i.aTypedArray,s=i.exportTypedArrayMethod;s("at",(function(e){var t=a(this),n=r(t),i=o(e),s=i>=0?i:n+i;return s<0||s>=n?void 0:t[s]}))},8836:(e,t,n)=>{"use strict";var i=n(683),r=n(5786),o=n(5492),a=n(5976),s=n(3577),l=n(1890),u=n(6400),c=i.aTypedArray,d=i.exportTypedArrayMethod,h=l("".slice),p=u((function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e}));d("fill",(function(e){var t=arguments.length;c(this);var n="Big"===h(a(this),0,3)?o(e):+e;return s(r,this,n,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}),p)},7648:(e,t,n)=>{"use strict";var i=n(683),r=n(5416).findLastIndex,o=i.aTypedArray,a=i.exportTypedArrayMethod;a("findLastIndex",(function(e){return r(o(this),e,arguments.length>1?arguments[1]:void 0)}))},4331:(e,t,n)=>{"use strict";var i=n(683),r=n(5416).findLast,o=i.aTypedArray,a=i.exportTypedArrayMethod;a("findLast",(function(e){return r(o(this),e,arguments.length>1?arguments[1]:void 0)}))},8685:(e,t,n)=>{"use strict";var i=n(7358),r=n(3577),o=n(683),a=n(6042),s=n(701),l=n(7475),u=n(6400),c=i.RangeError,d=i.Int8Array,h=d&&d.prototype,p=h&&h.set,f=o.aTypedArray,g=o.exportTypedArrayMethod,v=!u((function(){var e=new Uint8ClampedArray(2);return r(p,e,{length:1,0:3},1),3!==e[1]})),m=v&&o.NATIVE_ARRAY_BUFFER_VIEWS&&u((function(){var e=new d(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));g("set",(function(e){f(this);var t=s(arguments.length>1?arguments[1]:void 0,1),n=l(e);if(v)return r(p,this,n,t);var i=this.length,o=a(n),u=0;if(o+t>i)throw c("Wrong length");while(u{"use strict";var i=n(7358),r=n(1890),o=n(6400),a=n(392),s=n(6534),l=n(683),u=n(1544),c=n(8979),d=n(5068),h=n(1513),p=l.aTypedArray,f=l.exportTypedArrayMethod,g=i.Uint16Array,v=g&&r(g.prototype.sort),m=!!v&&!(o((function(){v(new g(2),null)}))&&o((function(){v(new g(2),{})}))),y=!!v&&!o((function(){if(d)return d<74;if(u)return u<67;if(c)return!0;if(h)return h<602;var e,t,n=new g(516),i=Array(516);for(e=0;e<516;e++)t=e%4,n[e]=515-e,i[e]=e-2*t+3;for(v(n,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(n[e]!==i[e])return!0})),x=function(e){return function(t,n){return void 0!==e?+e(t,n)||0:n!==n?-1:t!==t?1:0===t&&0===n?1/t>0&&1/n<0?1:-1:t>n}};f("sort",(function(e){return void 0!==e&&a(e),y?v(this,e):s(p(this),x(e))}),!y||m)},6105:(e,t,n)=>{var i=n(6968);i("Uint8",(function(e){return function(t,n,i){return e(this,t,n,i)}}))},2773:(e,t,n)=>{n(7648)},9802:(e,t,n)=>{n(4331)},71:(e,t,n)=>{var i=n(7358),r=n(4296),o=n(8753),a=n(6843),s=n(1904),l=n(854),u=l("iterator"),c=l("toStringTag"),d=a.values,h=function(e,t){if(e){if(e[u]!==d)try{s(e,u,d)}catch(i){e[u]=d}if(e[c]||s(e,c,t),r[t])for(var n in a)if(e[n]!==a[n])try{s(e,n,a[n])}catch(i){e[n]=a[n]}}};for(var p in r)h(i[p]&&i[p].prototype,p);h(o,"DOMTokenList")},1999:(e,t,n)=>{"use strict";n(6843);var i=n(8934),r=n(7358),o=n(3577),a=n(1890),s=n(9631),l=n(6595),u=n(3460),c=n(6703),d=n(1061),h=n(5912),p=n(7624),f=n(2827),g=n(419),v=n(7322),m=n(422),y=n(5976),x=n(7950),_=n(776),b=n(4481),w=n(1074),S=n(5442),M=n(2151),C=n(7143),I=n(6596),T=n(854),k=n(6534),A=T("iterator"),D="URLSearchParams",L=D+"Iterator",P=p.set,O=p.getterFor(D),R=p.getterFor(L),E=Object.getOwnPropertyDescriptor,N=function(e){if(!s)return r[e];var t=E(r,e);return t&&t.value},F=N("fetch"),B=N("Request"),V=N("Headers"),z=B&&B.prototype,q=V&&V.prototype,H=r.RegExp,W=r.TypeError,G=r.decodeURIComponent,U=r.encodeURIComponent,j=a("".charAt),Z=a([].join),$=a([].push),Y=a("".replace),X=a([].shift),K=a([].splice),J=a("".split),Q=a("".slice),ee=/\+/g,te=Array(4),ne=function(e){return te[e-1]||(te[e-1]=H("((?:%[\\da-f]{2}){"+e+"})","gi"))},ie=function(e){try{return G(e)}catch(t){return e}},re=function(e){var t=Y(e,ee," "),n=4;try{return G(t)}catch(i){while(n)t=Y(t,ne(n--),ie);return t}},oe=/[!'()~]|%20/g,ae={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},se=function(e){return ae[e]},le=function(e){return Y(U(e),oe,se)},ue=h((function(e,t){P(this,{type:L,iterator:M(O(e).entries),kind:t})}),"Iterator",(function(){var e=R(this),t=e.kind,n=e.iterator.next(),i=n.value;return n.done||(n.value="keys"===t?i.key:"values"===t?i.value:[i.key,i.value]),n}),!0),ce=function(e){this.entries=[],this.url=null,void 0!==e&&(_(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===j(e,0)?Q(e,1):e:b(e)))};ce.prototype={type:D,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,i,r,a,s,l,u=C(e);if(u){t=M(e,u),n=t.next;while(!(i=o(n,t)).done){if(r=M(x(i.value)),a=r.next,(s=o(a,r)).done||(l=o(a,r)).done||!o(a,r).done)throw W("Expected sequence with length 2");$(this.entries,{key:b(s.value),value:b(l.value)})}}else for(var c in e)v(e,c)&&$(this.entries,{key:c,value:b(e[c])})},parseQuery:function(e){if(e){var t,n,i=J(e,"&"),r=0;while(r0?arguments[0]:void 0;P(this,new ce(e))},he=de.prototype;if(c(he,{append:function(e,t){I(arguments.length,2);var n=O(this);$(n.entries,{key:b(e),value:b(t)}),n.updateURL()},delete:function(e){I(arguments.length,1);var t=O(this),n=t.entries,i=b(e),r=0;while(rt.key?1:-1})),e.updateURL()},forEach:function(e){var t,n=O(this).entries,i=m(e,arguments.length>1?arguments[1]:void 0),r=0;while(r1?ge(arguments[1]):{})}}),g(B)){var ve=function(e){return f(this,z),new B(e,arguments.length>1?ge(arguments[1]):{})};z.constructor=ve,ve.prototype=z,i({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:ve})}}e.exports={URLSearchParams:de,getState:O}},6016:(e,t,n)=>{n(1999)},6295:(e,t,n)=>{"use strict";n(839);var i,r=n(8934),o=n(9631),a=n(6595),s=n(7358),l=n(422),u=n(1890),c=n(3460),d=n(9468),h=n(2827),p=n(7322),f=n(8439),g=n(2029),v=n(5771),m=n(1021).codeAt,y=n(5253),x=n(4481),_=n(1061),b=n(6596),w=n(1999),S=n(7624),M=S.set,C=S.getterFor("URL"),I=w.URLSearchParams,T=w.getState,k=s.URL,A=s.TypeError,D=s.parseInt,L=Math.floor,P=Math.pow,O=u("".charAt),R=u(/./.exec),E=u([].join),N=u(1..toString),F=u([].pop),B=u([].push),V=u("".replace),z=u([].shift),q=u("".split),H=u("".slice),W=u("".toLowerCase),G=u([].unshift),U="Invalid authority",j="Invalid scheme",Z="Invalid host",$="Invalid port",Y=/[a-z]/i,X=/[\d+-.a-z]/i,K=/\d/,J=/^0x/i,Q=/^[0-7]+$/,ee=/^\d+$/,te=/^[\da-f]+$/i,ne=/[\0\t\n\r #%/:<>?@[\\\]^|]/,ie=/[\0\t\n\r #/:<>?@[\\\]^|]/,re=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,oe=/[\t\n\r]/g,ae=function(e){var t,n,i,r,o,a,s,l=q(e,".");if(l.length&&""==l[l.length-1]&&l.length--,t=l.length,t>4)return e;for(n=[],i=0;i1&&"0"==O(r,0)&&(o=R(J,r)?16:8,r=H(r,8==o?1:2)),""===r)a=0;else{if(!R(10==o?ee:8==o?Q:te,r))return e;a=D(r,o)}B(n,a)}for(i=0;i=P(256,5-t))return null}else if(a>255)return null;for(s=F(n),i=0;i6)return;i=0;while(h()){if(r=null,i>0){if(!("."==h()&&i<4))return;d++}if(!R(K,h()))return;while(R(K,h())){if(o=D(h(),10),null===r)r=o;else{if(0==r)return;r=10*r+o}if(r>255)return;d++}l[u]=256*l[u]+r,i++,2!=i&&4!=i||u++}if(4!=i)return;break}if(":"==h()){if(d++,!h())return}else if(h())return;l[u++]=t}else{if(null!==c)return;d++,u++,c=u}}if(null!==c){a=u-c,u=7;while(0!=u&&a>0)s=l[u],l[u--]=l[c+a-1],l[c+--a]=s}else if(8!=u)return;return l},le=function(e){for(var t=null,n=1,i=null,r=0,o=0;o<8;o++)0!==e[o]?(r>n&&(t=i,n=r),i=null,r=0):(null===i&&(i=o),++r);return r>n&&(t=i,n=r),t},ue=function(e){var t,n,i,r;if("number"==typeof e){for(t=[],n=0;n<4;n++)G(t,e%256),e=L(e/256);return E(t,".")}if("object"==typeof e){for(t="",i=le(e),n=0;n<8;n++)r&&0===e[n]||(r&&(r=!1),i===n?(t+=n?":":"::",r=!0):(t+=N(e[n],16),n<7&&(t+=":")));return"["+t+"]"}return e},ce={},de=f({},ce,{" ":1,'"':1,"<":1,">":1,"`":1}),he=f({},de,{"#":1,"?":1,"{":1,"}":1}),pe=f({},he,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),fe=function(e,t){var n=m(e,0);return n>32&&n<127&&!p(t,e)?e:encodeURIComponent(e)},ge={ftp:21,file:null,http:80,https:443,ws:80,wss:443},ve=function(e,t){var n;return 2==e.length&&R(Y,O(e,0))&&(":"==(n=O(e,1))||!t&&"|"==n)},me=function(e){var t;return e.length>1&&ve(H(e,0,2))&&(2==e.length||"/"===(t=O(e,2))||"\\"===t||"?"===t||"#"===t)},ye=function(e){return"."===e||"%2e"===W(e)},xe=function(e){return e=W(e),".."===e||"%2e."===e||".%2e"===e||"%2e%2e"===e},_e={},be={},we={},Se={},Me={},Ce={},Ie={},Te={},ke={},Ae={},De={},Le={},Pe={},Oe={},Re={},Ee={},Ne={},Fe={},Be={},Ve={},ze={},qe=function(e,t,n){var i,r,o,a=x(e);if(t){if(r=this.parse(a),r)throw A(r);this.searchParams=null}else{if(void 0!==n&&(i=new qe(n,!0)),r=this.parse(a,null,i),r)throw A(r);o=T(new I),o.bindURL(this),this.searchParams=o}};qe.prototype={type:"URL",parse:function(e,t,n){var r,o,a,s,l=this,u=t||_e,c=0,d="",h=!1,f=!1,m=!1;e=x(e),t||(l.scheme="",l.username="",l.password="",l.host=null,l.port=null,l.path=[],l.query=null,l.fragment=null,l.cannotBeABaseURL=!1,e=V(e,re,"")),e=V(e,oe,""),r=g(e);while(c<=r.length){switch(o=r[c],u){case _e:if(!o||!R(Y,o)){if(t)return j;u=we;continue}d+=W(o),u=be;break;case be:if(o&&(R(X,o)||"+"==o||"-"==o||"."==o))d+=W(o);else{if(":"!=o){if(t)return j;d="",u=we,c=0;continue}if(t&&(l.isSpecial()!=p(ge,d)||"file"==d&&(l.includesCredentials()||null!==l.port)||"file"==l.scheme&&!l.host))return;if(l.scheme=d,t)return void(l.isSpecial()&&ge[l.scheme]==l.port&&(l.port=null));d="","file"==l.scheme?u=Oe:l.isSpecial()&&n&&n.scheme==l.scheme?u=Se:l.isSpecial()?u=Te:"/"==r[c+1]?(u=Me,c++):(l.cannotBeABaseURL=!0,B(l.path,""),u=Be)}break;case we:if(!n||n.cannotBeABaseURL&&"#"!=o)return j;if(n.cannotBeABaseURL&&"#"==o){l.scheme=n.scheme,l.path=v(n.path),l.query=n.query,l.fragment="",l.cannotBeABaseURL=!0,u=ze;break}u="file"==n.scheme?Oe:Ce;continue;case Se:if("/"!=o||"/"!=r[c+1]){u=Ce;continue}u=ke,c++;break;case Me:if("/"==o){u=Ae;break}u=Fe;continue;case Ce:if(l.scheme=n.scheme,o==i)l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=v(n.path),l.query=n.query;else if("/"==o||"\\"==o&&l.isSpecial())u=Ie;else if("?"==o)l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=v(n.path),l.query="",u=Ve;else{if("#"!=o){l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=v(n.path),l.path.length--,u=Fe;continue}l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=v(n.path),l.query=n.query,l.fragment="",u=ze}break;case Ie:if(!l.isSpecial()||"/"!=o&&"\\"!=o){if("/"!=o){l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,u=Fe;continue}u=Ae}else u=ke;break;case Te:if(u=ke,"/"!=o||"/"!=O(d,c+1))continue;c++;break;case ke:if("/"!=o&&"\\"!=o){u=Ae;continue}break;case Ae:if("@"==o){h&&(d="%40"+d),h=!0,a=g(d);for(var y=0;y65535)return $;l.port=l.isSpecial()&&w===ge[l.scheme]?null:w,d=""}if(t)return;u=Ne;continue}return $}d+=o;break;case Oe:if(l.scheme="file","/"==o||"\\"==o)u=Re;else{if(!n||"file"!=n.scheme){u=Fe;continue}if(o==i)l.host=n.host,l.path=v(n.path),l.query=n.query;else if("?"==o)l.host=n.host,l.path=v(n.path),l.query="",u=Ve;else{if("#"!=o){me(E(v(r,c),""))||(l.host=n.host,l.path=v(n.path),l.shortenPath()),u=Fe;continue}l.host=n.host,l.path=v(n.path),l.query=n.query,l.fragment="",u=ze}}break;case Re:if("/"==o||"\\"==o){u=Ee;break}n&&"file"==n.scheme&&!me(E(v(r,c),""))&&(ve(n.path[0],!0)?B(l.path,n.path[0]):l.host=n.host),u=Fe;continue;case Ee:if(o==i||"/"==o||"\\"==o||"?"==o||"#"==o){if(!t&&ve(d))u=Fe;else if(""==d){if(l.host="",t)return;u=Ne}else{if(s=l.parseHost(d),s)return s;if("localhost"==l.host&&(l.host=""),t)return;d="",u=Ne}continue}d+=o;break;case Ne:if(l.isSpecial()){if(u=Fe,"/"!=o&&"\\"!=o)continue}else if(t||"?"!=o)if(t||"#"!=o){if(o!=i&&(u=Fe,"/"!=o))continue}else l.fragment="",u=ze;else l.query="",u=Ve;break;case Fe:if(o==i||"/"==o||"\\"==o&&l.isSpecial()||!t&&("?"==o||"#"==o)){if(xe(d)?(l.shortenPath(),"/"==o||"\\"==o&&l.isSpecial()||B(l.path,"")):ye(d)?"/"==o||"\\"==o&&l.isSpecial()||B(l.path,""):("file"==l.scheme&&!l.path.length&&ve(d)&&(l.host&&(l.host=""),d=O(d,0)+":"),B(l.path,d)),d="","file"==l.scheme&&(o==i||"?"==o||"#"==o))while(l.path.length>1&&""===l.path[0])z(l.path);"?"==o?(l.query="",u=Ve):"#"==o&&(l.fragment="",u=ze)}else d+=fe(o,he);break;case Be:"?"==o?(l.query="",u=Ve):"#"==o?(l.fragment="",u=ze):o!=i&&(l.path[0]+=fe(o,ce));break;case Ve:t||"#"!=o?o!=i&&("'"==o&&l.isSpecial()?l.query+="%27":l.query+="#"==o?"%23":fe(o,ce)):(l.fragment="",u=ze);break;case ze:o!=i&&(l.fragment+=fe(o,de));break}c++}},parseHost:function(e){var t,n,i;if("["==O(e,0)){if("]"!=O(e,e.length-1))return Z;if(t=se(H(e,1,-1)),!t)return Z;this.host=t}else if(this.isSpecial()){if(e=y(e),R(ne,e))return Z;if(t=ae(e),null===t)return Z;this.host=t}else{if(R(ie,e))return Z;for(t="",n=g(e),i=0;i1?arguments[1]:void 0,i=M(t,new qe(e,!1,n));o||(t.href=i.serialize(),t.origin=i.getOrigin(),t.protocol=i.getProtocol(),t.username=i.getUsername(),t.password=i.getPassword(),t.host=i.getHost(),t.hostname=i.getHostname(),t.port=i.getPort(),t.pathname=i.getPathname(),t.search=i.getSearch(),t.searchParams=i.getSearchParams(),t.hash=i.getHash())},We=He.prototype,Ge=function(e,t){return{get:function(){return C(this)[e]()},set:t&&function(e){return C(this)[t](e)},configurable:!0,enumerable:!0}};if(o&&(d(We,"href",Ge("serialize","setHref")),d(We,"origin",Ge("getOrigin")),d(We,"protocol",Ge("getProtocol","setProtocol")),d(We,"username",Ge("getUsername","setUsername")),d(We,"password",Ge("getPassword","setPassword")),d(We,"host",Ge("getHost","setHost")),d(We,"hostname",Ge("getHostname","setHostname")),d(We,"port",Ge("getPort","setPort")),d(We,"pathname",Ge("getPathname","setPathname")),d(We,"search",Ge("getSearch","setSearch")),d(We,"searchParams",Ge("getSearchParams")),d(We,"hash",Ge("getHash","setHash"))),c(We,"toJSON",(function(){return C(this).serialize()}),{enumerable:!0}),c(We,"toString",(function(){return C(this).serialize()}),{enumerable:!0}),k){var Ue=k.createObjectURL,je=k.revokeObjectURL;Ue&&c(He,"createObjectURL",l(Ue,k)),je&&c(He,"revokeObjectURL",l(je,k))}_(He,"URL"),r({global:!0,constructor:!0,forced:!a,sham:!o},{URL:He})},7965:(e,t,n)=>{n(6295)},2256:(e,t,n)=>{"use strict";n.d(t,{S1:()=>Tw});var i={};n.r(i),n.d(i,{Arc:()=>Jm,BezierCurve:()=>Ym,BoundingRect:()=>oo,Circle:()=>lm,CompoundPath:()=>ey,Ellipse:()=>dm,Group:()=>Lo,Image:()=>iu,IncrementalDisplayable:()=>gy,Line:()=>Gm,LinearGradient:()=>ry,OrientedBoundingRect:()=>hy,Path:()=>Yl,Point:()=>Yr,Polygon:()=>Fm,Polyline:()=>zm,RadialGradient:()=>ay,Rect:()=>hu,Ring:()=>Pm,Sector:()=>Am,Text:()=>Du,applyTransform:()=>Oy,clipPointsByRect:()=>By,clipRectByRect:()=>Vy,createIcon:()=>zy,extendPath:()=>by,extendShape:()=>xy,getShapeClass:()=>Sy,getTransform:()=>Py,groupTransition:()=>Fy,initProps:()=>Kc,isElementRemoved:()=>Jc,lineLineIntersect:()=>Hy,linePolygonIntersect:()=>qy,makeImage:()=>Cy,makePath:()=>My,mergePath:()=>Ty,registerShape:()=>wy,removeElement:()=>Qc,removeElementWithFadeOut:()=>td,resizePath:()=>ky,setTooltipConfig:()=>Uy,subPixelOptimize:()=>Ly,subPixelOptimizeLine:()=>Ay,subPixelOptimizeRect:()=>Dy,transformDirection:()=>Ry,traverseElements:()=>Zy,updateProps:()=>Xc}); +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */ +var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}Object.create;Object.create;var a=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),s=function(){function e(){this.browser=new a,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!==typeof window}return e}(),l=new s;function u(e,t){var n=t.browser,i=e.match(/Firefox\/([\d.]+)/),r=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),o=e.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(e);i&&(n.firefox=!0,n.version=i[1]),r&&(n.ie=!0,n.version=r[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18),a&&(n.weChat=!0),t.svgSupported="undefined"!==typeof SVGRect,t.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,t.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported="undefined"!==typeof document;var s=document.documentElement.style;t.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}"object"===typeof wx&&"function"===typeof wx.getSystemInfoSync?(l.wxa=!0,l.touchEventsSupported=!0):"undefined"===typeof document&&"undefined"!==typeof self?l.worker=!0:"undefined"===typeof navigator?(l.node=!0,l.svgSupported=!0):u(navigator.userAgent,l);const c=l;var d=12,h="sans-serif",p=d+"px "+h,f=20,g=100,v="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function m(e){var t={};if("undefined"===typeof JSON)return t;for(var n=0;n=0)s=a*n.length;else for(var l=0;l>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",r[u]+":0",i[1-l]+":auto",r[1-u]+":auto",""].join("!important;"),e.appendChild(a),n.push(a)}return n}function ut(e,t,n){for(var i=n?"invTrans":"trans",r=t[i],o=t.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var c=e[u].getBoundingClientRect(),d=2*u,h=c.left,p=c.top;a.push(h,p),l=l&&o&&h===o[d]&&p===o[d+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&r?r:(t.srcCoords=a,t[i]=n?it(s,a):it(a,s))}function ct(e){return"CANVAS"===e.nodeName.toUpperCase()}var dt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ht=[],pt=c.browser.firefox&&+c.browser.version.split(".")[0]<39;function ft(e,t,n,i){return n=n||{},i?gt(e,t,n):pt&&null!=t.layerX&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):null!=t.offsetX?(n.zrX=t.offsetX,n.zrY=t.offsetY):gt(e,t,n),n}function gt(e,t,n){if(c.domSupported&&e.getBoundingClientRect){var i=t.clientX,r=t.clientY;if(ct(e)){var o=e.getBoundingClientRect();return n.zrX=i-o.left,void(n.zrY=r-o.top)}if(st(ht,e,i,r))return n.zrX=ht[0],void(n.zrY=ht[1])}n.zrX=n.zrY=0}function vt(e){return e||window.event}function mt(e,t,n){if(t=vt(t),null!=t.zrX)return t;var i=t.type,r=i&&i.indexOf("touch")>=0;if(r){var o="touchend"!==i?t.targetTouches[0]:t.changedTouches[0];o&&ft(e,o,t,n)}else{ft(e,t,t,n);var a=yt(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return null==t.which&&void 0!==s&&dt.test(t.type)&&(t.which=1&s?1:2&s?3:4&s?2:0),t}function yt(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,i=e.deltaY;if(null==n||null==i)return t;var r=0!==i?Math.abs(i):Math.abs(n),o=i>0?-1:i<0?1:n>0?-1:1;return 3*r*o}function xt(e,t,n,i){e.addEventListener(t,n,i)}function _t(e,t,n,i){e.removeEventListener(t,n,i)}var bt=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function wt(e){return 2===e.which||3===e.which}var St=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var i=e.touches;if(i){for(var r={points:[],touches:[],target:t,event:e},o=0,a=i.length;o1&&i&&i.length>1){var o=Mt(i)/Mt(r);!isFinite(o)&&(o=1),t.pinchScale=o;var a=Ct(i);return t.pinchX=a[0],t.pinchY=a[1],{type:"pinch",target:e[0].target,event:t}}}}},Tt="silent";function kt(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:At}}function At(){bt(this.event)}var Dt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handler=null,t}return De(t,e),t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(et),Lt=function(){function e(e,t){this.x=e,this.y=t}return e}(),Pt=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Ot=function(e){function t(t,n,i,r){var o=e.call(this)||this;return o._hovered=new Lt(0,0),o.storage=t,o.painter=n,o.painterRoot=r,i=i||new Dt,o.proxy=null,o.setHandlerProxy(i),o._draggingMgr=new Je(o),o}return De(t,e),t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(W(Pt,(function(t){e.on&&e.on(t,this[t],this)}),this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,i=Et(this,t,n),r=this._hovered,o=r.target;o&&!o.__zr&&(r=this.findHover(r.x,r.y),o=r.target);var a=this._hovered=i?new Lt(t,n):this.findHover(t,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(r,"mouseout",e),this.dispatchToElement(a,"mousemove",e),s&&s!==o&&this.dispatchToElement(a,"mouseover",e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;"only_globalout"!==t&&this.dispatchToElement(this._hovered,"mouseout",e),"no_globalout"!==t&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new Lt(0,0)},t.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,n){e=e||{};var i=e.target;if(!i||!i.silent){var r="on"+t,o=kt(t,e,n);while(i)if(i[r]&&(o.cancelBubble=!!i[r].call(i,o)),i.trigger(t,o),i=i.__hostTarget?i.__hostTarget:i.parent,o.cancelBubble)break;o.cancelBubble||(this.trigger(t,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(e){"function"===typeof e[r]&&e[r].call(e,o),e.trigger&&e.trigger(t,o)})))}},t.prototype.findHover=function(e,t,n){for(var i=this.storage.getDisplayList(),r=new Lt(e,t),o=i.length-1;o>=0;o--){var a=void 0;if(i[o]!==n&&!i[o].ignore&&(a=Rt(i[o],e,t))&&(!r.topTarget&&(r.topTarget=i[o]),a!==Tt)){r.target=i[o];break}}return r},t.prototype.processGesture=function(e,t){this._gestureMgr||(this._gestureMgr=new St);var n=this._gestureMgr;"start"===t&&n.clear();var i=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if("end"===t&&n.clear(),i){var r=i.type;e.gestureEvent=r;var o=new Lt;o.target=i.target,this.dispatchToElement(o,r,i.event)}},t}(et);function Rt(e,t,n){if(e[e.rectHover?"rectContain":"contain"](t,n)){var i=e,r=void 0,o=!1;while(i){if(i.ignoreClip&&(o=!0),!o){var a=i.getClipPath();if(a&&!a.contain(t,n))return!1;i.silent&&(r=!0)}var s=i.__hostTarget;i=s||i.parent}return!r||Tt}return!1}function Et(e,t,n){var i=e.painter;return t<0||t>i.getWidth()||n<0||n>i.getHeight()}W(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(e){Ot.prototype[e]=function(t){var n,i,r=t.zrX,o=t.zrY,a=Et(this,r,o);if("mouseup"===e&&a||(n=this.findHover(r,o),i=n.target),"mousedown"===e)this._downEl=i,this._downPoint=[t.zrX,t.zrY],this._upEl=i;else if("mouseup"===e)this._upEl=i;else if("click"===e){if(this._downEl!==this._upEl||!this._downPoint||We(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,e,t)}}));const Nt=Ot;var Ft=32,Bt=7;function Vt(e){var t=0;while(e>=Ft)t|=1&e,e>>=1;return e+t}function zt(e,t,n,i){var r=t+1;if(r===n)return 1;if(i(e[r++],e[t])<0){while(r=0)r++;return r-t}function qt(e,t,n){n--;while(t>>1,r(a,e[o])<0?l=o:s=o+1;var u=i-s;switch(u){case 3:e[s+3]=e[s+2];case 2:e[s+2]=e[s+1];case 1:e[s+1]=e[s];break;default:while(u>0)e[s+u]=e[s+u-1],u--}e[s]=a}}function Wt(e,t,n,i,r,o){var a=0,s=0,l=1;if(o(e,t[n+r])>0){s=i-r;while(l0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{s=r+1;while(ls&&(l=s);var u=a;a=r-l,l=r-u}a++;while(a>>1);o(e,t[n+c])>0?a=c+1:l=c}return l}function Gt(e,t,n,i,r,o){var a=0,s=0,l=1;if(o(e,t[n+r])<0){s=r+1;while(ls&&(l=s);var u=a;a=r-l,l=r-u}else{s=i-r;while(l=0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}a++;while(a>>1);o(e,t[n+c])<0?l=c:a=c+1}return l}function Ut(e,t){var n,i,r=Bt,o=0,a=0;o=e.length;var s=[];function l(e,t){n[a]=e,i[a]=t,a+=1}function u(){while(a>1){var e=a-2;if(e>=1&&i[e-1]<=i[e]+i[e+1]||e>=2&&i[e-2]<=i[e]+i[e-1])i[e-1]i[e+1])break;d(e)}}function c(){while(a>1){var e=a-2;e>0&&i[e-1]=Bt||p>=Bt);if(f)break;g<0&&(g=0),g+=2}if(r=g,r<1&&(r=1),1===i){for(l=0;l=0;l--)e[p+l]=e[h+l];if(0===i){m=!0;break}}if(e[d--]=s[c--],1===--a){m=!0;break}if(v=a-Wt(e[u],s,0,a,a-1,t),0!==v){for(d-=v,c-=v,a-=v,p=d+1,h=c+1,l=0;l=Bt||v>=Bt);if(m)break;f<0&&(f=0),f+=2}if(r=f,r<1&&(r=1),1===a){for(d-=i,u-=i,p=d+1,h=u+1,l=i-1;l>=0;l--)e[p+l]=e[h+l];e[d]=s[c]}else{if(0===a)throw new Error;for(h=d-(a-1),l=0;l=0;l--)e[p+l]=e[h+l];e[d]=s[c]}else for(h=d-(a-1),l=0;ls&&(l=s),Ht(e,n,n+l,n+o,t),o=l}a.pushRun(n,o),a.mergeRuns(),r-=o,n+=o}while(0!==r);a.forceMergeRuns()}}var Zt=1,$t=2,Yt=4,Xt=!1;function Kt(){Xt||(Xt=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Jt(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Qt=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Jt}return e.prototype.traverse=function(e,t){for(var n=0;n0&&(u.__clipPaths=[]),isNaN(u.z)&&(Kt(),u.z=0),isNaN(u.z2)&&(Kt(),u.z2=0),isNaN(u.zlevel)&&(Kt(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var c=e.getDecalElement&&e.getDecalElement();c&&this._updateAndAddDisplayable(c,t,n);var d=e.getTextGuideLine();d&&this._updateAndAddDisplayable(d,t,n);var h=e.getTextContent();h&&this._updateAndAddDisplayable(h,t,n)}},e.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},e.prototype.delRoot=function(e){if(e instanceof Array)for(var t=0,n=e.length;t=0&&this._roots.splice(i,1)}},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}();const en=Qt;var tn;tn=c.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};const nn=tn;var rn={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return.5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return 0===e?0:Math.pow(1024,e-1)},exponentialOut:function(e){return 1===e?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(2-Math.pow(2,-10*(e-1)))},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1,i=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=i/4):t=i*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i))},elasticOut:function(e){var t,n=.1,i=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=i/4):t=i*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/i)+1)},elasticInOut:function(e){var t,n=.1,i=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=i/4):t=i*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)*-.5:n*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?e*e*((t+1)*e-t)*.5:.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-rn.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?.5*rn.bounceIn(2*e):.5*rn.bounceOut(2*e-1)+.5}};const on=rn;var an=Math.pow,sn=Math.sqrt,ln=1e-8,un=1e-4,cn=sn(3),dn=1/3,hn=Le(),pn=Le(),fn=Le();function gn(e){return e>-ln&&eln||e<-ln}function mn(e,t,n,i,r){var o=1-r;return o*o*(o*e+3*r*t)+r*r*(r*i+3*o*n)}function yn(e,t,n,i,r){var o=1-r;return 3*(((t-e)*o+2*(n-t)*r)*o+(i-n)*r*r)}function xn(e,t,n,i,r,o){var a=i+3*(t-n)-e,s=3*(n-2*t+e),l=3*(t-e),u=e-r,c=s*s-3*a*l,d=s*l-9*a*u,h=l*l-3*s*u,p=0;if(gn(c)&&gn(d))if(gn(s))o[0]=0;else{var f=-l/s;f>=0&&f<=1&&(o[p++]=f)}else{var g=d*d-4*c*h;if(gn(g)){var v=d/c,m=(f=-s/a+v,-v/2);f>=0&&f<=1&&(o[p++]=f),m>=0&&m<=1&&(o[p++]=m)}else if(g>0){var y=sn(g),x=c*s+1.5*a*(-d+y),_=c*s+1.5*a*(-d-y);x=x<0?-an(-x,dn):an(x,dn),_=_<0?-an(-_,dn):an(_,dn);f=(-s-(x+_))/(3*a);f>=0&&f<=1&&(o[p++]=f)}else{var b=(2*c*s-3*a*d)/(2*sn(c*c*c)),w=Math.acos(b)/3,S=sn(c),M=Math.cos(w),C=(f=(-s-2*S*M)/(3*a),m=(-s+S*(M+cn*Math.sin(w)))/(3*a),(-s+S*(M-cn*Math.sin(w)))/(3*a));f>=0&&f<=1&&(o[p++]=f),m>=0&&m<=1&&(o[p++]=m),C>=0&&C<=1&&(o[p++]=C)}}return p}function _n(e,t,n,i,r){var o=6*n-12*t+6*e,a=9*t+3*i-3*e-9*n,s=3*t-3*e,l=0;if(gn(a)){if(vn(o)){var u=-s/o;u>=0&&u<=1&&(r[l++]=u)}}else{var c=o*o-4*a*s;if(gn(c))r[0]=-o/(2*a);else if(c>0){var d=sn(c),h=(u=(-o+d)/(2*a),(-o-d)/(2*a));u>=0&&u<=1&&(r[l++]=u),h>=0&&h<=1&&(r[l++]=h)}}return l}function bn(e,t,n,i,r,o){var a=(t-e)*r+e,s=(n-t)*r+t,l=(i-n)*r+n,u=(s-a)*r+a,c=(l-s)*r+s,d=(c-u)*r+u;o[0]=e,o[1]=a,o[2]=u,o[3]=d,o[4]=d,o[5]=c,o[6]=l,o[7]=i}function wn(e,t,n,i,r,o,a,s,l,u,c){var d,h,p,f,g,v=.005,m=1/0;hn[0]=l,hn[1]=u;for(var y=0;y<1;y+=.05)pn[0]=mn(e,n,r,a,y),pn[1]=mn(t,i,o,s,y),f=Ue(hn,pn),f=0&&f=0&&u<=1&&(r[l++]=u)}}else{var c=a*a-4*o*s;if(gn(c)){u=-a/(2*o);u>=0&&u<=1&&(r[l++]=u)}else if(c>0){var d=sn(c),h=(u=(-a+d)/(2*o),(-a-d)/(2*o));u>=0&&u<=1&&(r[l++]=u),h>=0&&h<=1&&(r[l++]=h)}}return l}function Tn(e,t,n){var i=e+n-2*t;return 0===i?.5:(e-t)/i}function kn(e,t,n,i,r){var o=(t-e)*i+e,a=(n-t)*i+t,s=(a-o)*i+o;r[0]=e,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=n}function An(e,t,n,i,r,o,a,s,l){var u,c=.005,d=1/0;hn[0]=a,hn[1]=s;for(var h=0;h<1;h+=.05){pn[0]=Mn(e,n,r,h),pn[1]=Mn(t,i,o,h);var p=Ue(hn,pn);p=0&&p=1?1:xn(0,i,o,1,e,s)&&mn(0,r,a,1,s[0])}}}var On=function(){function e(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Te,this.ondestroy=e.ondestroy||Te,this.onrestart=e.onrestart||Te,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),!this._paused){var n=this._life,i=e-this._startTime-this._pausedTime,r=i/n;r<0&&(r=0),r=Math.min(r,1);var o=this.easingFunc,a=o?o(r):r;if(this.onframe(a),1===r){if(!this.loop)return!0;var s=i%n;this._startTime=e-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=t},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=Q(e)?e:on[e]||Pn(e)},e}();const Rn=On;var En=function(){function e(e){this.value=e}return e}(),Nn=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new En(e);return this.insertEntry(t),t},e.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},e.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),Fn=function(){function e(e){this._list=new Nn,this._maxSize=10,this._map={},this._maxSize=e}return e.prototype.put=function(e,t){var n=this._list,i=this._map,r=null;if(null==i[e]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete i[s.key],r=s.value,this._lastRemovedEntry=s}a?a.value=t:a=new En(t),a.key=e,n.insertEntry(a),i[e]=a}return r},e.prototype.get=function(e){var t=this._map[e],n=this._list;if(null!=t)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}();const Bn=Fn;var Vn={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function zn(e){return e=Math.round(e),e<0?0:e>255?255:e}function qn(e){return e=Math.round(e),e<0?0:e>360?360:e}function Hn(e){return e<0?0:e>1?1:e}function Wn(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?zn(parseFloat(t)/100*255):zn(parseInt(t,10))}function Gn(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?Hn(parseFloat(t)/100):Hn(parseFloat(t))}function Un(e,t,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function jn(e,t,n){return e+(t-e)*n}function Zn(e,t,n,i,r){return e[0]=t,e[1]=n,e[2]=i,e[3]=r,e}function $n(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var Yn=new Bn(20),Xn=null;function Kn(e,t){Xn&&$n(Xn,t),Xn=Yn.put(e,Xn||t.slice())}function Jn(e,t){if(e){t=t||[];var n=Yn.get(e);if(n)return $n(t,n);e+="";var i=e.replace(/ /g,"").toLowerCase();if(i in Vn)return $n(t,Vn[i]),Kn(e,t),t;var r=i.length;if("#"!==i.charAt(0)){var o=i.indexOf("("),a=i.indexOf(")");if(-1!==o&&a+1===r){var s=i.substr(0,o),l=i.substr(o+1,a-(o+1)).split(","),u=1;switch(s){case"rgba":if(4!==l.length)return 3===l.length?Zn(t,+l[0],+l[1],+l[2],1):Zn(t,0,0,0,1);u=Gn(l.pop());case"rgb":return 3!==l.length?void Zn(t,0,0,0,1):(Zn(t,Wn(l[0]),Wn(l[1]),Wn(l[2]),u),Kn(e,t),t);case"hsla":return 4!==l.length?void Zn(t,0,0,0,1):(l[3]=Gn(l[3]),Qn(l,t),Kn(e,t),t);case"hsl":return 3!==l.length?void Zn(t,0,0,0,1):(Qn(l,t),Kn(e,t),t);default:return}}Zn(t,0,0,0,1)}else{if(4===r||5===r){var c=parseInt(i.slice(1,4),16);return c>=0&&c<=4095?(Zn(t,(3840&c)>>4|(3840&c)>>8,240&c|(240&c)>>4,15&c|(15&c)<<4,5===r?parseInt(i.slice(4),16)/15:1),Kn(e,t),t):void Zn(t,0,0,0,1)}if(7===r||9===r){c=parseInt(i.slice(1,7),16);return c>=0&&c<=16777215?(Zn(t,(16711680&c)>>16,(65280&c)>>8,255&c,9===r?parseInt(i.slice(7),16)/255:1),Kn(e,t),t):void Zn(t,0,0,0,1)}}}}function Qn(e,t){var n=(parseFloat(e[0])%360+360)%360/360,i=Gn(e[1]),r=Gn(e[2]),o=r<=.5?r*(i+1):r+i-r*i,a=2*r-o;return t=t||[],Zn(t,zn(255*Un(a,o,n+1/3)),zn(255*Un(a,o,n)),zn(255*Un(a,o,n-1/3)),1),4===e.length&&(t[3]=e[3]),t}function ei(e){if(e){var t,n,i=e[0]/255,r=e[1]/255,o=e[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a,u=(s+a)/2;if(0===l)t=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var c=((s-i)/6+l/2)/l,d=((s-r)/6+l/2)/l,h=((s-o)/6+l/2)/l;i===s?t=h-d:r===s?t=1/3+c-h:o===s&&(t=2/3+d-c),t<0&&(t+=1),t>1&&(t-=1)}var p=[360*t,n,u];return null!=e[3]&&p.push(e[3]),p}}function ti(e,t){var n=Jn(e);if(n){for(var i=0;i<3;i++)n[i]=t<0?n[i]*(1-t)|0:(255-n[i])*t+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return ai(n,4===n.length?"rgba":"rgb")}}function ni(e,t,n){if(t&&t.length&&e>=0&&e<=1){n=n||[];var i=e*(t.length-1),r=Math.floor(i),o=Math.ceil(i),a=t[r],s=t[o],l=i-r;return n[0]=zn(jn(a[0],s[0],l)),n[1]=zn(jn(a[1],s[1],l)),n[2]=zn(jn(a[2],s[2],l)),n[3]=Hn(jn(a[3],s[3],l)),n}}function ii(e,t,n){if(t&&t.length&&e>=0&&e<=1){var i=e*(t.length-1),r=Math.floor(i),o=Math.ceil(i),a=Jn(t[r]),s=Jn(t[o]),l=i-r,u=ai([zn(jn(a[0],s[0],l)),zn(jn(a[1],s[1],l)),zn(jn(a[2],s[2],l)),Hn(jn(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:r,rightIndex:o,value:i}:u}}function ri(e,t,n,i){var r=Jn(e);if(e)return r=ei(r),null!=t&&(r[0]=qn(t)),null!=n&&(r[1]=Gn(n)),null!=i&&(r[2]=Gn(i)),ai(Qn(r),"rgba")}function oi(e,t){var n=Jn(e);if(n&&null!=t)return n[3]=Hn(t),ai(n,"rgba")}function ai(e,t){if(e&&e.length){var n=e[0]+","+e[1]+","+e[2];return"rgba"!==t&&"hsva"!==t&&"hsla"!==t||(n+=","+e[3]),t+"("+n+")"}}function si(e,t){var n=Jn(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var li=Math.round;function ui(e){var t;if(e&&"transparent"!==e){if("string"===typeof e&&e.indexOf("rgba")>-1){var n=Jn(e);n&&(e="rgb("+n[0]+","+n[1]+","+n[2]+")",t=n[3])}}else e="none";return{color:e,opacity:null==t?1:t}}var ci=1e-4;function di(e){return e-ci}function hi(e){return li(1e3*e)/1e3}function pi(e){return li(1e4*e)/1e4}function fi(e){return"matrix("+hi(e[0])+","+hi(e[1])+","+hi(e[2])+","+hi(e[3])+","+pi(e[4])+","+pi(e[5])+")"}var gi={left:"start",right:"end",center:"middle",middle:"middle"};function vi(e,t,n){return"top"===n?e+=t/2:"bottom"===n&&(e-=t/2),e}function mi(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function yi(e){var t=e.style,n=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}function xi(e){return e&&!!e.image}function _i(e){return e&&!!e.svgElement}function bi(e){return xi(e)||_i(e)}function wi(e){return"linear"===e.type}function Si(e){return"radial"===e.type}function Mi(e){return e&&("linear"===e.type||"radial"===e.type)}function Ci(e){return"url(#"+e+")"}function Ii(e){var t=e.getGlobalScale(),n=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function Ti(e){var t=e.x||0,n=e.y||0,i=(e.rotation||0)*ke,r=he(e.scaleX,1),o=he(e.scaleY,1),a=e.skewX||0,s=e.skewY||0,l=[];return(t||n)&&l.push("translate("+t+"px,"+n+"px)"),i&&l.push("rotate("+i+")"),1===r&&1===o||l.push("scale("+r+","+o+")"),(a||s)&&l.push("skew("+li(a*ke)+"deg, "+li(s*ke)+"deg)"),l.join(" ")}var ki=function(){return c.hasGlobalWindow&&Q(window.btoa)?function(e){return window.btoa(unescape(e))}:"undefined"!==typeof Buffer?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}}(),Ai=Array.prototype.slice;function Di(e,t,n){return(t-e)*n+e}function Li(e,t,n,i){for(var r=t.length,o=0;oi?t:e,o=Math.min(n,i),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;sa;if(s)i.length=a;else for(var l=o;l=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var i=this.keyframes,r=i.length,o=!1,a=ji,s=t;if(H(t)){var l=Vi(t);a=l,(1===l&&!ne(t[0])||2===l&&!ne(t[0][0]))&&(o=!0)}else if(ne(t)&&!ce(t))a=zi;else if(ee(t))if(isNaN(+t)){var u=Jn(t);u&&(s=u,a=Wi)}else a=zi;else if(se(t)){var c=F({},s);c.colorStops=G(t.colorStops,(function(e){return{offset:e.offset,color:Jn(e.color)}})),wi(t)?a=Gi:Si(t)&&(a=Ui),s=c}0===r?this.valType=a:a===this.valType&&a!==ji||(o=!0),this.discrete=this.discrete||o;var d={time:e,value:s,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=Q(n)?n:on[n]||Pn(n)),i.push(d),d},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort((function(e,t){return e.time-t.time}));for(var i=this.valType,r=n.length,o=n[r-1],a=this.discrete,s=$i(i),l=Zi(i),u=0;u=0;n--)if(l[n].percent<=t)break;n=p(n,u-2)}else{for(n=h;nt)break;n=p(n-1,u-2)}r=l[n+1],i=l[n]}if(i&&r){this._lastFr=n,this._lastFrP=t;var g=r.percent-i.percent,v=0===g?1:p((t-i.percent)/g,1);r.easingFunc&&(v=r.easingFunc(v));var m=o?this._additiveValue:d?Yi:e[c];if(!$i(s)&&!d||m||(m=this._additiveValue=[]),this.discrete)e[c]=v<1?i.rawValue:r.rawValue;else if($i(s))s===qi?Li(m,i[a],r[a],v):Pi(m,i[a],r[a],v);else if(Zi(s)){var y=i[a],x=r[a],_=s===Gi;e[c]={type:_?"linear":"radial",x:Di(y.x,x.x,v),y:Di(y.y,x.y,v),colorStops:G(y.colorStops,(function(e,t){var n=x.colorStops[t];return{offset:Di(e.offset,n.offset,v),color:Bi(Li([],e.color,n.color,v))}})),global:x.global},_?(e[c].x2=Di(y.x2,x.x2,v),e[c].y2=Di(y.y2,x.y2,v)):e[c].r=Di(y.r,x.r,v)}else if(d)Li(m,i[a],r[a],v),o||(e[c]=Bi(m));else{var b=Di(i[a],r[a],v);o?this._additiveValue=b:e[c]=b}o&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,i=this._additiveValue;t===zi?e[n]=e[n]+i:t===Wi?(Jn(e[n],Yi),Oi(Yi,Yi,i,1),e[n]=Bi(Yi)):t===qi?Oi(e[n],e[n],i,1):t===Hi&&Ri(e[n],e[n],i,1)},e}(),Ki=function(){function e(e,t,n,i){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&i?O("Can' use additive animation on looped animation."):(this._additiveAnimators=i,this._allowDiscrete=n)}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(e){this._target=e},e.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,$(t),n)},e.prototype.whenWithKeys=function(e,t,n,i){for(var r=this._tracks,o=0;o0&&s.addKeyframe(0,Fi(l),i),this._trackKeys.push(a)}s.addKeyframe(e,Fi(t[a]),i)}return this._maxTime=Math.max(this._maxTime,e),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n0)){this._started=1;for(var t=this,n=[],i=this._maxTime||0,r=0;r1){var a=o.pop();r.addKeyframe(a.time,e[i]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},e}();const Ji=Ki;function Qi(){return(new Date).getTime()}var er=function(e){function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t=t||{},n.stage=t.stage||{},n}return De(t,e),t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._head=n,n?n.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){var t=Qi()-this._pausedTime,n=t-this._time,i=this._head;while(i){var r=i.next,o=i.step(t,n);o?(i.ondestroy(),this.removeClip(i),i=r):i=r}this._time=t,e||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;function t(){e._running&&(nn(t),!e._paused&&e.update())}this._running=!0,nn(t)},t.prototype.start=function(){this._running||(this._time=Qi(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Qi(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Qi()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){var e=this._head;while(e){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return null==this._head},t.prototype.animate=function(e,t){t=t||{},this.start();var n=new Ji(e,t.loop);return this.addAnimator(n),n},t}(et);const tr=er;var nr=300,ir=c.domSupported,rr=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=G(e,(function(e){var t=e.replace("mouse","pointer");return n.hasOwnProperty(t)?t:e}));return{mouse:e,touch:t,pointer:i}}(),or={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},ar=!1;function sr(e){var t=e.pointerType;return"pen"===t||"touch"===t}function lr(e){e.touching=!0,null!=e.touchTimer&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout((function(){e.touching=!1,e.touchTimer=null}),700)}function ur(e){e&&(e.zrByTouch=!0)}function cr(e,t){return mt(e.dom,new hr(e,t),!0)}function dr(e,t){var n=t,i=!1;while(n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==t&&n===e.painterRoot))n=n.parentNode;return i}var hr=function(){function e(e,t){this.stopPropagation=Te,this.stopImmediatePropagation=Te,this.preventDefault=Te,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return e}(),pr={mousedown:function(e){e=mt(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=mt(this.dom,e);var t=this.__mayPointerCapture;!t||e.zrX===t[0]&&e.zrY===t[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=mt(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=mt(this.dom,e);var t=e.toElement||e.relatedTarget;dr(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){ar=!0,e=mt(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){ar||(e=mt(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=mt(this.dom,e),ur(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),pr.mousemove.call(this,e),pr.mousedown.call(this,e)},touchmove:function(e){e=mt(this.dom,e),ur(e),this.handler.processGesture(e,"change"),pr.mousemove.call(this,e)},touchend:function(e){e=mt(this.dom,e),ur(e),this.handler.processGesture(e,"end"),pr.mouseup.call(this,e),+new Date-+this.__lastTouchMomentBr||e<-Br}var zr=[],qr=[],Hr=kr(),Wr=Math.abs,Gr=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return Vr(this.rotation)||Vr(this.x)||Vr(this.y)||Vr(this.scaleX-1)||Vr(this.scaleY-1)||Vr(this.skewX)||Vr(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;t||e?(n=n||kr(),t?this.getLocalTransform(n):Fr(n),e&&(t?Lr(n,e,n):Dr(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&Fr(n)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(null!=t&&1!==t){this.getGlobalScale(zr);var n=zr[0]<0?-1:1,i=zr[1]<0?-1:1,r=((zr[0]-n)*t+n)/zr[0]||0,o=((zr[1]-i)*t+i)/zr[1]||0;e[0]*=r,e[1]*=r,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||kr(),Er(this.invTransform,e)},e.prototype.getComputedTransform=function(){var e=this,t=[];while(e)t.push(e),e=e.parent;while(e=t.pop())e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],i=Math.atan2(e[1],e[0]),r=Math.PI/2+i-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(r),t=Math.sqrt(t),this.skewX=r,this.skewY=0,this.rotation=-i,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(Lr(qr,e.invTransform,t),t=qr);var n=this.originX,i=this.originY;(n||i)&&(Hr[4]=n,Hr[5]=i,Lr(qr,t,Hr),qr[4]-=n,qr[5]-=i,t=qr),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],i=this.invTransform;return i&&Ze(n,n,i),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],i=this.transform;return i&&Ze(n,n,i),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&Wr(e[0]-1)>1e-10&&Wr(e[3]-1)>1e-10?Math.sqrt(Wr(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){jr(this,e)},e.getLocalTransform=function(e,t){t=t||[];var n=e.originX||0,i=e.originY||0,r=e.scaleX,o=e.scaleY,a=e.anchorX,s=e.anchorY,l=e.rotation||0,u=e.x,c=e.y,d=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(n||i||a||s){var p=n+a,f=i+s;t[4]=-p*r-d*f*o,t[5]=-f*o-h*p*r}else t[4]=t[5]=0;return t[0]=r,t[3]=o,t[1]=h*r,t[2]=d*o,l&&Or(t,t,l),t[4]+=n+u,t[5]+=i+c,t},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),Ur=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function jr(e,t){for(var n=0;nf&&(f=x,gf&&(f=_,m=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return 0===this.width||0===this.height},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},e.applyTransform=function(t,n,i){if(i){if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],o=i[3],a=i[4],s=i[5];return t.x=n.x*r+a,t.y=n.y*o+s,t.width=n.width*r,t.height=n.height*o,t.width<0&&(t.x+=t.width,t.width=-t.width),void(t.height<0&&(t.y+=t.height,t.height=-t.height))}Jr.x=eo.x=n.x,Jr.y=to.y=n.y,Qr.x=to.x=n.x+n.width,Qr.y=eo.y=n.y+n.height,Jr.transform(i),to.transform(i),Qr.transform(i),eo.transform(i),t.x=Xr(Jr.x,Qr.x,eo.x,to.x),t.y=Xr(Jr.y,Qr.y,eo.y,to.y);var l=Kr(Jr.x,Qr.x,eo.x,to.x),u=Kr(Jr.y,Qr.y,eo.y,to.y);t.width=l-t.x,t.height=u-t.y}else t!==n&&e.copy(t,n)},e}();const oo=ro;var ao={};function so(e,t){t=t||p;var n=ao[t];n||(n=ao[t]=new Bn(500));var i=n.get(e);return null==i&&(i=x.measureText(e,t).width,n.put(e,i)),i}function lo(e,t,n,i){var r=so(e,t),o=po(t),a=co(0,r,n),s=ho(0,o,i),l=new oo(a,s,r,o);return l}function uo(e,t,n,i){var r=((e||"")+"").split("\n"),o=r.length;if(1===o)return lo(r[0],t,n,i);for(var a=new oo(0,0,0,0),s=0;s=0?parseFloat(e)/100*t:parseFloat(e):e}function go(e,t,n){var i=t.position||"inside",r=null!=t.distance?t.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,c="left",d="top";if(i instanceof Array)l+=fo(i[0],n.width),u+=fo(i[1],n.height),c=null,d=null;else switch(i){case"left":l-=r,u+=s,c="right",d="middle";break;case"right":l+=r+a,u+=s,d="middle";break;case"top":l+=a/2,u-=r,c="center",d="bottom";break;case"bottom":l+=a/2,u+=o+r,c="center";break;case"inside":l+=a/2,u+=s,c="center",d="middle";break;case"insideLeft":l+=r,u+=s,d="middle";break;case"insideRight":l+=a-r,u+=s,c="right",d="middle";break;case"insideTop":l+=a/2,u+=r,c="center";break;case"insideBottom":l+=a/2,u+=o-r,c="center",d="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,c="right";break;case"insideBottomLeft":l+=r,u+=o-r,d="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,c="right",d="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=c,e.verticalAlign=d,e}var vo="__zr_normal__",mo=Ur.concat(["ignore"]),yo=U(Ur,(function(e,t){return e[t]=!0,e}),{ignore:!1}),xo={},_o=new oo(0,0,0,0),bo=function(){function e(e){this.id=P(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return e.prototype._init=function(e){this.attr(e)},e.prototype.drift=function(e,t,n){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=e,i[5]+=t,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,r=t.innerTransformable,o=void 0,a=void 0,s=!1;r.parent=i?this:null;var l=!1;if(r.copyTransform(t),null!=n.position){var u=_o;n.layoutRect?u.copy(n.layoutRect):u.copy(this.getBoundingRect()),i||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(xo,n,u):go(xo,n,u),r.x=xo.x,r.y=xo.y,o=xo.align,a=xo.verticalAlign;var c=n.origin;if(c&&null!=n.rotation){var d=void 0,h=void 0;"center"===c?(d=.5*u.width,h=.5*u.height):(d=fo(c[0],u.width),h=fo(c[1],u.height)),l=!0,r.originX=-r.x+d+(i?0:u.x),r.originY=-r.y+h+(i?0:u.y)}}null!=n.rotation&&(r.rotation=n.rotation);var p=n.offset;p&&(r.x+=p[0],r.y+=p[1],l||(r.originX=-p[0],r.originY=-p[1]));var f=null==n.inside?"string"===typeof n.position&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),v=void 0,m=void 0,y=void 0;f&&this.canBeInsideText()?(v=n.insideFill,m=n.insideStroke,null!=v&&"auto"!==v||(v=this.getInsideTextFill()),null!=m&&"auto"!==m||(m=this.getInsideTextStroke(v),y=!0)):(v=n.outsideFill,m=n.outsideStroke,null!=v&&"auto"!==v||(v=this.getOutsideFill()),null!=m&&"auto"!==m||(m=this.getOutsideStroke(v),y=!0)),v=v||"#000",v===g.fill&&m===g.stroke&&y===g.autoStroke&&o===g.align&&a===g.verticalAlign||(s=!0,g.fill=v,g.stroke=m,g.autoStroke=y,g.align=o,g.verticalAlign=a,t.setDefaultTextStyle(g)),t.__dirty|=Zt,s&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(e){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Ir:Cr},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n="string"===typeof t&&Jn(t);n||(n=[255,255,255,1]);for(var i=n[3],r=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(r?0:255)*(1-i);return n[3]=1,ai(n,"rgba")},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){"textConfig"===e?this.setTextConfig(t):"textContent"===e?this.setTextContent(t):"clipPath"===e?this.setClipPath(t):"extra"===e?(this.extra=this.extra||{},F(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if("string"===typeof e)this.attrKV(e,t);else if(ie(e))for(var n=e,i=$(n),r=0;r0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState(vo,!1,e)},e.prototype.useState=function(e,t,n,i){var r=e===vo,o=this.hasState();if(o||!r){var a=this.currentStates,s=this.stateTransition;if(!(V(a,e)>=0)||!t&&1!==a.length){var l;if(this.stateProxy&&!r&&(l=this.stateProxy(e)),l||(l=this.states&&this.states[e]),l||r){r||this.saveCurrentToNormalState(l);var u=!!(l&&l.hoverLayer||i);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,l,this._normalState,t,!n&&!this.__inHover&&s&&s.duration>0,s);var c=this._textContent,d=this._textGuide;return c&&c.useState(e,t,n,u),d&&d.useState(e,t,n,u),r?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Zt),l}O("State "+e+" not exists.")}}},e.prototype.useStates=function(e,t,n){if(e.length){var i=[],r=this.currentStates,o=e.length,a=o===r.length;if(a)for(var s=0;s0,p);var f=this._textContent,g=this._textGuide;f&&f.useStates(e,t,d),g&&g.useStates(e,t,d),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Zt)}else this.clearStates()},e.prototype._updateAnimationTargets=function(){for(var e=0;e=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var i=this.currentStates.slice(),r=V(i,e),o=V(i,t)>=0;r>=0?o?i.splice(r,1):i[r]=t:n&&!o&&i.push(t),this.useStates(i)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t,n={},i=0;i=0&&t.splice(n,1)})),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,i=n.length,r=[],o=0;o0&&n.during&&o[0].during((function(e,t){n.during(t)}));for(var h=0;h0||r.force&&!a.length){var M=void 0,C=void 0,I=void 0;if(s){C={},h&&(M={});for(_=0;_=0&&(n.splice(i,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=V(this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,i=n[t];if(e&&e!==this&&e.parent!==this&&e!==i){n[t]=e,i.parent=null;var r=this.__zr;r&&i.removeSelfFromZr(r),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,i=V(n,e);return i<0||(n.splice(i,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh()),this},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;n0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},e.prototype.resize=function(e){e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},e.prototype.clearAnimation=function(){this.animation.clear()},e.prototype.getWidth=function(){return this.painter.getWidth()},e.prototype.getHeight=function(){return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this.handler.off(e,t)},e.prototype.trigger=function(e,t){this.handler.trigger(e,t)},e.prototype.clear=function(){for(var e=this.storage.getRoots(),t=0;t0){if(e<=r)return a;if(e>=o)return s}else{if(e>=r)return a;if(e<=o)return s}else{if(e===r)return a;if(e===o)return s}return(e-r)/l*u+a}function Wo(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return ee(e)?qo(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):null==e?NaN:+e}function Go(e,t,n){return null==t&&(t=10),t=Math.min(Math.max(0,t),zo),e=(+e).toFixed(t),n?e:+e}function Uo(e){return e.sort((function(e,t){return e-t})),e}function jo(e){if(e=+e,isNaN(e))return 0;if(e>1e-14)for(var t=1,n=0;n<15;n++,t*=10)if(Math.round(e*t)/t===e)return n;return Zo(e)}function Zo(e){var t=e.toString().toLowerCase(),n=t.indexOf("e"),i=n>0?+t.slice(n+1):0,r=n>0?n:t.length,o=t.indexOf("."),a=o<0?0:r-1-o;return Math.max(0,a-i)}function $o(e,t){var n=Math.log,i=Math.LN10,r=Math.floor(n(e[1]-e[0])/i),o=Math.round(n(Math.abs(t[1]-t[0]))/i),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20}function Yo(e,t,n){if(!e[t])return 0;var i=U(e,(function(e,t){return e+(isNaN(t)?0:t)}),0);if(0===i)return 0;var r=Math.pow(10,n),o=G(e,(function(e){return(isNaN(e)?0:e)/i*r*100})),a=100*r,s=G(o,(function(e){return Math.floor(e)})),l=U(s,(function(e,t){return e+t}),0),u=G(o,(function(e,t){return e-s[t]}));while(lc&&(c=u[h],d=h);++s[d],u[d]=0,++l}return s[t]/r}function Xo(e,t){var n=Math.max(jo(e),jo(t)),i=e+t;return n>zo?i:Go(i,n)}var Ko=9007199254740991;function Jo(e){var t=2*Math.PI;return(e%t+t)%t}function Qo(e){return e>-Vo&&e=10&&t++,t}function ra(e,t){var n,i=ia(e),r=Math.pow(10,i),o=e/r;return n=t?o<1.5?1:o<2.5?2:o<4?3:o<7?5:10:o<1?1:o<2?2:o<3?3:o<5?5:10,e=n*r,i>=-20?+e.toFixed(i<0?-i:0):e}function oa(e,t){var n=(e.length-1)*t+1,i=Math.floor(n),r=+e[i-1],o=n-i;return o?r+o*(e[i]-r):r}function aa(e){e.sort((function(e,t){return s(e,t,0)?-1:1}));for(var t=-1/0,n=1,i=0;i=0||r&&V(r,s)<0)){var l=n.getShallow(s,t);null!=l&&(o[e[a][0]]=l)}}return o}}var cs=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],ds=us(cs),hs=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return ds(this,e,t)},e}(),ps=new Bn(50);function fs(e){if("string"===typeof e){var t=ps.get(e);return t&&t.image}return e}function gs(e,t,n,i,r){if(e){if("string"===typeof e){if(t&&t.__zrImageSrc===e||!n)return t;var o=ps.get(e),a={hostEl:n,cb:i,cbPayload:r};return o?(t=o.image,!ms(t)&&o.pending.push(a)):(t=x.loadImage(e,vs,vs),t.__zrImageSrc=e,ps.put(e,t.__cachedImgObj={image:t,pending:[a]})),t}return e}return t}function vs(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=a;l++)s-=a;var u=so(n,t);return u>s&&(n="",u=0),s=e-u,r.ellipsis=n,r.ellipsisWidth=u,r.contentWidth=s,r.containerWidth=e,r}function bs(e,t){var n=t.containerWidth,i=t.font,r=t.contentWidth;if(!n)return"";var o=so(e,i);if(o<=n)return e;for(var a=0;;a++){if(o<=r||a>=t.maxIterations){e+=t.ellipsis;break}var s=0===a?ws(e,r,t.ascCharWidth,t.cnCharWidth):o>0?Math.floor(e.length*r/o):0;e=e.substr(0,s),o=so(e,i)}return""===e&&(e=t.placeholder),e}function ws(e,t,n,i){for(var r=0,o=0,a=e.length;op&&c){var f=Math.floor(p/l);n=n.slice(0,f)}if(e&&a&&null!=d)for(var g=_s(d,o,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),v=0;vl&&ks(n,e.substring(l,u),t,s),ks(n,i[2],t,s,i[1]),l=ys.lastIndex}lo){b>0?(y.tokens=y.tokens.slice(0,b),v(y,_,x),n.lines=n.lines.slice(0,m+1)):n.lines=n.lines.slice(0,m);break e}var k=S.width,A=null==k||"auto"===k;if("string"===typeof k&&"%"===k.charAt(k.length-1))w.percentWidth=k,c.push(w),w.contentWidth=so(w.text,I);else{if(A){var D=S.backgroundColor,L=D&&D.image;L&&(L=fs(L),ms(L)&&(w.width=Math.max(w.width,L.width*T/L.height)))}var P=f&&null!=r?r-_:null;null!=P&&P0&&f+i.accumWidth>i.width&&(o=t.split("\n"),d=!0),i.accumWidth=f}else{var g=Ps(t,c,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+p,a=g.linesWidths,o=g.lines}}else o=t.split("\n");for(var v=0;v=33&&t<=383}var Ds=U(",&?/;] ".split(""),(function(e,t){return e[t]=!0,e}),{});function Ls(e){return!As(e)||!!Ds[e]}function Ps(e,t,n,i,r){for(var o=[],a=[],s="",l="",u=0,c=0,d=0;dn:r+c+p>n)?c?(s||l)&&(f?(s||(s=l,l="",u=0,c=u),o.push(s),a.push(c-u),l+=h,u+=p,s="",c=u):(l&&(s+=l,l="",u=0),o.push(s),a.push(c),s=h,c=p)):f?(o.push(l),a.push(u),l=h,u=p):(o.push(h),a.push(p)):(c+=p,f?(l+=h,u+=p):(l&&(s+=l,l="",u=0),s+=h))}else l&&(s+=l,c+=u),o.push(s),a.push(c),s="",l="",u=0,c=0}return o.length||s||(s=e,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(c)),1===o.length&&(c+=r),{accumWidth:c,lines:o,linesWidths:a}}var Os="__zr_style_"+Math.round(10*Math.random()),Rs={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Es={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Rs[Os]=!0;var Ns=["z","z2","invisible"],Fs=["invisible"],Bs=function(e){function t(t){return e.call(this,t)||this}return De(t,e),t.prototype._init=function(t){for(var n=$(t),i=0;i1e-4)return s[0]=e-n,s[1]=t-i,l[0]=e+n,void(l[1]=t+i);if($s[0]=js(r)*n+e,$s[1]=Us(r)*i+t,Ys[0]=js(o)*n+e,Ys[1]=Us(o)*i+t,u(s,$s,Ys),c(l,$s,Ys),r%=Zs,r<0&&(r+=Zs),o%=Zs,o<0&&(o+=Zs),r>o&&!a?o+=Zs:rr&&(Xs[0]=js(p)*n+e,Xs[1]=Us(p)*i+t,u(s,Xs,s),c(l,Xs,l))}var rl={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},ol=[],al=[],sl=[],ll=[],ul=[],cl=[],dl=Math.min,hl=Math.max,pl=Math.cos,fl=Math.sin,gl=Math.abs,vl=Math.PI,ml=2*vl,yl="undefined"!==typeof Float32Array,xl=[];function _l(e){var t=Math.round(e/vl*1e8)/1e8;return t%2*vl}function bl(e,t){var n=_l(e[0]);n<0&&(n+=ml);var i=n-e[0],r=e[1];r+=i,!t&&r-n>=ml?r=n+ml:t&&n-r>=ml?r=n-ml:!t&&n>r?r=n+(ml-_l(n-r)):t&&n0&&(this._ux=gl(n/Sr/e)||0,this._uy=gl(n/Sr/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(rl.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=gl(e-this._xi),i=gl(t-this._yi),r=n>this._ux||i>this._uy;if(this.addData(rl.L,e,t),this._ctx&&r&&this._ctx.lineTo(e,t),r)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(e,t,n,i,r,o){return this._drawPendingPt(),this.addData(rl.C,e,t,n,i,r,o),this._ctx&&this._ctx.bezierCurveTo(e,t,n,i,r,o),this._xi=r,this._yi=o,this},e.prototype.quadraticCurveTo=function(e,t,n,i){return this._drawPendingPt(),this.addData(rl.Q,e,t,n,i),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,i),this._xi=n,this._yi=i,this},e.prototype.arc=function(e,t,n,i,r,o){this._drawPendingPt(),xl[0]=i,xl[1]=r,bl(xl,o),i=xl[0],r=xl[1];var a=r-i;return this.addData(rl.A,e,t,n,n,i,a,0,o?0:1),this._ctx&&this._ctx.arc(e,t,n,i,r,o),this._xi=pl(r)*n+e,this._yi=fl(r)*n+t,this},e.prototype.arcTo=function(e,t,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,i,r),this},e.prototype.rect=function(e,t,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,i),this.addData(rl.R,e,t,n,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(rl.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){var t=e.length;this.data&&this.data.length===t||!yl||(this.data=new Float32Array(t));for(var n=0;nu.length&&(this._expandData(),u=this.data);for(var c=0;c0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){sl[0]=sl[1]=ul[0]=ul[1]=Number.MAX_VALUE,ll[0]=ll[1]=cl[0]=cl[1]=-Number.MAX_VALUE;var e,t=this.data,n=0,i=0,r=0,o=0;for(e=0;en||gl(y)>i||d===t-1)&&(f=Math.sqrt(m*m+y*y),r=g,o=v);break;case rl.C:var x=e[d++],_=e[d++],b=(g=e[d++],v=e[d++],e[d++]),w=e[d++];f=Sn(r,o,x,_,g,v,b,w,10),r=b,o=w;break;case rl.Q:x=e[d++],_=e[d++],g=e[d++],v=e[d++];f=Dn(r,o,x,_,g,v,10),r=g,o=v;break;case rl.A:var S=e[d++],M=e[d++],C=e[d++],I=e[d++],T=e[d++],k=e[d++],A=k+T;d+=1;e[d++];p&&(a=pl(T)*C+S,s=fl(T)*I+M),f=hl(C,I)*dl(ml,Math.abs(k)),r=pl(A)*C+S,o=fl(A)*I+M;break;case rl.R:a=r=e[d++],s=o=e[d++];var D=e[d++],L=e[d++];f=2*D+2*L;break;case rl.Z:m=a-r,y=s-o;f=Math.sqrt(m*m+y*y),r=a,o=s;break}f>=0&&(l[c++]=f,u+=f)}return this._pathLen=u,u},e.prototype.rebuildPath=function(e,t){var n,i,r,o,a,s,l,u,c,d,h,p=this.data,f=this._ux,g=this._uy,v=this._len,m=t<1,y=0,x=0,_=0;if(!m||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=this._pathLen,c=t*u,c))e:for(var b=0;b0&&(e.lineTo(d,h),_=0),w){case rl.M:n=r=p[b++],i=o=p[b++],e.moveTo(r,o);break;case rl.L:a=p[b++],s=p[b++];var M=gl(a-r),C=gl(s-o);if(M>f||C>g){if(m){var I=l[x++];if(y+I>c){var T=(c-y)/I;e.lineTo(r*(1-T)+a*T,o*(1-T)+s*T);break e}y+=I}e.lineTo(a,s),r=a,o=s,_=0}else{var k=M*M+C*C;k>_&&(d=a,h=s,_=k)}break;case rl.C:var A=p[b++],D=p[b++],L=p[b++],P=p[b++],O=p[b++],R=p[b++];if(m){I=l[x++];if(y+I>c){T=(c-y)/I;bn(r,A,L,O,T,ol),bn(o,D,P,R,T,al),e.bezierCurveTo(ol[1],al[1],ol[2],al[2],ol[3],al[3]);break e}y+=I}e.bezierCurveTo(A,D,L,P,O,R),r=O,o=R;break;case rl.Q:A=p[b++],D=p[b++],L=p[b++],P=p[b++];if(m){I=l[x++];if(y+I>c){T=(c-y)/I;kn(r,A,L,T,ol),kn(o,D,P,T,al),e.quadraticCurveTo(ol[1],al[1],ol[2],al[2]);break e}y+=I}e.quadraticCurveTo(A,D,L,P),r=L,o=P;break;case rl.A:var E=p[b++],N=p[b++],F=p[b++],B=p[b++],V=p[b++],z=p[b++],q=p[b++],H=!p[b++],W=F>B?F:B,G=gl(F-B)>.001,U=V+z,j=!1;if(m){I=l[x++];y+I>c&&(U=V+z*(c-y)/I,j=!0),y+=I}if(G&&e.ellipse?e.ellipse(E,N,F,B,q,V,U,H):e.arc(E,N,W,V,U,H),j)break e;S&&(n=pl(V)*F+E,i=fl(V)*B+N),r=pl(U)*F+E,o=fl(U)*B+N;break;case rl.R:n=r=p[b],i=o=p[b+1],a=p[b++],s=p[b++];var Z=p[b++],$=p[b++];if(m){I=l[x++];if(y+I>c){var Y=c-y;e.moveTo(a,s),e.lineTo(a+dl(Y,Z),s),Y-=Z,Y>0&&e.lineTo(a+Z,s+dl(Y,$)),Y-=$,Y>0&&e.lineTo(a+hl(Z-Y,0),s+$),Y-=Z,Y>0&&e.lineTo(a,s+hl($-Y,0));break e}y+=I}e.rect(a,s,Z,$);break;case rl.Z:if(m){I=l[x++];if(y+I>c){T=(c-y)/I;e.lineTo(r*(1-T)+n*T,o*(1-T)+i*T);break e}y+=I}e.closePath(),r=n,o=i}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.CMD=rl,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();const Sl=wl;function Ml(e,t,n,i,r,o,a){if(0===r)return!1;var s=r,l=0,u=e;if(a>t+s&&a>i+s||ae+s&&o>n+s||ot+d&&c>i+d&&c>o+d&&c>s+d||ce+d&&u>n+d&&u>r+d&&u>a+d||ut+u&&l>i+u&&l>o+u||le+u&&s>n+u&&s>r+u||sn||c+ur&&(r+=Al);var h=Math.atan2(l,s);return h<0&&(h+=Al),h>=i&&h<=r||h+Al>=i&&h+Al<=r}function Ll(e,t,n,i,r,o){if(o>t&&o>i||or?s:0}var Pl=Sl.CMD,Ol=2*Math.PI,Rl=1e-4;function El(e,t){return Math.abs(e-t)t&&u>i&&u>o&&u>s||u1&&Bl(),p=mn(t,i,o,s,Fl[0]),h>1&&(f=mn(t,i,o,s,Fl[1]))),2===h?vt&&s>i&&s>o||s=0&&u<=1){for(var c=0,d=Mn(t,i,o,u),h=0;hn||s<-n)return 0;var l=Math.sqrt(n*n-s*s);Nl[0]=-l,Nl[1]=l;var u=Math.abs(i-r);if(u<1e-4)return 0;if(u>=Ol-1e-4){i=0,r=Ol;var c=o?1:-1;return a>=Nl[0]+e&&a<=Nl[1]+e?c:0}if(i>r){var d=i;i=r,r=d}i<0&&(i+=Ol,r+=Ol);for(var h=0,p=0;p<2;p++){var f=Nl[p];if(f+e>a){var g=Math.atan2(s,f);c=o?1:-1;g<0&&(g=Ol+g),(g>=i&&g<=r||g+Ol>=i&&g+Ol<=r)&&(g>Math.PI/2&&g<1.5*Math.PI&&(c=-c),h+=c)}}return h}function Hl(e,t,n,i,r){for(var o,a,s=e.data,l=e.len(),u=0,c=0,d=0,h=0,p=0,f=0;f1&&(n||(u+=Ll(c,d,h,p,i,r))),v&&(c=s[f],d=s[f+1],h=c,p=d),g){case Pl.M:h=s[f++],p=s[f++],c=h,d=p;break;case Pl.L:if(n){if(Ml(c,d,s[f],s[f+1],t,i,r))return!0}else u+=Ll(c,d,s[f],s[f+1],i,r)||0;c=s[f++],d=s[f++];break;case Pl.C:if(n){if(Cl(c,d,s[f++],s[f++],s[f++],s[f++],s[f],s[f+1],t,i,r))return!0}else u+=Vl(c,d,s[f++],s[f++],s[f++],s[f++],s[f],s[f+1],i,r)||0;c=s[f++],d=s[f++];break;case Pl.Q:if(n){if(Il(c,d,s[f++],s[f++],s[f],s[f+1],t,i,r))return!0}else u+=zl(c,d,s[f++],s[f++],s[f],s[f+1],i,r)||0;c=s[f++],d=s[f++];break;case Pl.A:var m=s[f++],y=s[f++],x=s[f++],_=s[f++],b=s[f++],w=s[f++];f+=1;var S=!!(1-s[f++]);o=Math.cos(b)*x+m,a=Math.sin(b)*_+y,v?(h=o,p=a):u+=Ll(c,d,o,a,i,r);var M=(i-m)*_/x+m;if(n){if(Dl(m,y,_,b,b+w,S,t,M,r))return!0}else u+=ql(m,y,_,b,b+w,S,M,r);c=Math.cos(b+w)*x+m,d=Math.sin(b+w)*_+y;break;case Pl.R:h=c=s[f++],p=d=s[f++];var C=s[f++],I=s[f++];if(o=h+C,a=p+I,n){if(Ml(h,p,o,p,t,i,r)||Ml(o,p,o,a,t,i,r)||Ml(o,a,h,a,t,i,r)||Ml(h,a,h,p,t,i,r))return!0}else u+=Ll(o,p,o,a,i,r),u+=Ll(h,a,h,p,i,r);break;case Pl.Z:if(n){if(Ml(c,d,h,p,t,i,r))return!0}else u+=Ll(c,d,h,p,i,r);c=h,d=p;break}}return n||El(d,p)||(u+=Ll(c,d,h,p,i,r)||0),0!==u}function Wl(e,t,n){return Hl(e,0,!1,t,n)}function Gl(e,t,n,i){return Hl(e,t,!0,n,i)}var Ul=B({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Rs),jl={style:B({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Es.style)},Zl=Ur.concat(["invisible","culling","z","z2","zlevel","parent"]),$l=function(e){function t(t){return e.call(this,t)||this}return De(t,e),t.prototype.update=function(){var n=this;e.prototype.update.call(this);var i=this.style;if(i.decal){var r=this._decalEl=this._decalEl||new t;r.buildPath===t.prototype.buildPath&&(r.buildPath=function(e){n.buildPath(e,n.shape)}),r.silent=!0;var o=r.style;for(var a in i)o[a]!==i[a]&&(o[a]=i[a]);o.fill=i.fill?i.decal:null,o.decal=null,o.shadowColor=null,i.strokeFirst&&(o.stroke=null);for(var s=0;s.5?Cr:t>.2?Tr:Ir}if(e)return Ir}return Cr},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(ee(t)){var n=this.__zr,i=!(!n||!n.isDarkMode()),r=si(e,0)0))},t.prototype.hasFill=function(){var e=this.style,t=e.fill;return null!=t&&"none"!==t},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var r=this.path;(i||this.__dirty&Yt)&&(r.beginPath(),this.buildPath(r,this.shape,!1),this.pathUpdated()),e=r.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||n){o.copy(e);var a=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),i=this.getBoundingRect(),r=this.style;if(e=n[0],t=n[1],i.contain(e,t)){var o=this.path;if(this.hasStroke()){var a=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),Gl(o,a/s,e,t)))return!0}if(this.hasFill())return Wl(o,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Yt,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():"shape"===e?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){"shape"===t?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||(n=this.shape={}),"string"===typeof e?n[e]=t:F(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Yt)},t.prototype.createStyle=function(e){return Me(Ul,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=F({},this.shape))},t.prototype._applyStateObj=function(t,n,i,r,o,a){e.prototype._applyStateObj.call(this,t,n,i,r,o,a);var s,l=!(n&&r);if(n&&n.shape?o?r?s=n.shape:(s=F({},i.shape),F(s,n.shape)):(s=F({},r?this.shape:i.shape),F(s,n.shape)):l&&(s=i.shape),s)if(o){this.shape=F({},this.shape);for(var u={},c=$(s),d=0;d0},t.prototype.hasFill=function(){var e=this.style,t=e.fill;return null!=t&&"none"!==t},t.prototype.createStyle=function(e){return Me(Xl,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var t=e.text;null!=t?t+="":t="";var n=uo(t,e.font,e.textAlign,e.textBaseline);if(n.x+=e.x||0,n.y+=e.y||0,this.hasStroke()){var i=e.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},t.initDefaultProps=function(){var e=t.prototype;e.dirtyRectTolerance=10}(),t}(Hs);Kl.prototype.type="tspan";const Jl=Kl;var Ql=B({x:0,y:0},Rs),eu={style:B({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Es.style)};function tu(e){return!!(e&&"string"!==typeof e&&e.width&&e.height)}var nu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return De(t,e),t.prototype.createStyle=function(e){return Me(Ql,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(null!=n)return n;var i=tu(t.image)?t.image:this.__image;if(!i)return 0;var r="width"===e?"height":"width",o=t[r];return null==o?i[e]:i[e]/i[r]*o},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return eu},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new oo(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(Hs);nu.prototype.type="image";const iu=nu;function ru(e,t){var n,i,r,o,a,s=t.x,l=t.y,u=t.width,c=t.height,d=t.r;u<0&&(s+=u,u=-u),c<0&&(l+=c,c=-c),"number"===typeof d?n=i=r=o=d:d instanceof Array?1===d.length?n=i=r=o=d[0]:2===d.length?(n=r=d[0],i=o=d[1]):3===d.length?(n=d[0],i=o=d[1],r=d[2]):(n=d[0],i=d[1],r=d[2],o=d[3]):n=i=r=o=0,n+i>u&&(a=n+i,n*=u/a,i*=u/a),r+o>u&&(a=r+o,r*=u/a,o*=u/a),i+r>c&&(a=i+r,i*=c/a,r*=c/a),n+o>c&&(a=n+o,n*=c/a,o*=c/a),e.moveTo(s+n,l),e.lineTo(s+u-i,l),0!==i&&e.arc(s+u-i,l+i,i,-Math.PI/2,0),e.lineTo(s+u,l+c-r),0!==r&&e.arc(s+u-r,l+c-r,r,0,Math.PI/2),e.lineTo(s+o,l+c),0!==o&&e.arc(s+o,l+c-o,o,Math.PI/2,Math.PI),e.lineTo(s,l+n),0!==n&&e.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}var ou=Math.round;function au(e,t,n){if(t){var i=t.x1,r=t.x2,o=t.y1,a=t.y2;e.x1=i,e.x2=r,e.y1=o,e.y2=a;var s=n&&n.lineWidth;return s?(ou(2*i)===ou(2*r)&&(e.x1=e.x2=lu(i,s,!0)),ou(2*o)===ou(2*a)&&(e.y1=e.y2=lu(o,s,!0)),e):e}}function su(e,t,n){if(t){var i=t.x,r=t.y,o=t.width,a=t.height;e.x=i,e.y=r,e.width=o,e.height=a;var s=n&&n.lineWidth;return s?(e.x=lu(i,s,!0),e.y=lu(r,s,!0),e.width=Math.max(lu(i+o,s,!1)-e.x,0===o?0:1),e.height=Math.max(lu(r+a,s,!1)-e.y,0===a?0:1),e):e}}function lu(e,t,n){if(!t)return e;var i=ou(2*e);return(i+ou(t))%2===0?i/2:(i+(n?1:-1))/2}var uu=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),cu={},du=function(e){function t(t){return e.call(this,t)||this}return De(t,e),t.prototype.getDefaultShape=function(){return new uu},t.prototype.buildPath=function(e,t){var n,i,r,o;if(this.subPixelOptimize){var a=su(cu,t,this.style);n=a.x,i=a.y,r=a.width,o=a.height,a.r=t.r,t=a}else n=t.x,i=t.y,r=t.width,o=t.height;t.r?ru(e,t):e.rect(n,i,r,o)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Yl);du.prototype.type="rect";const hu=du;var pu={fill:"#000"},fu=2,gu={style:B({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Es.style)},vu=function(e){function t(t){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=pu,n.attr(t),n}return De(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t0,T=null!=e.width&&("truncate"===e.overflow||"break"===e.overflow||"breakAll"===e.overflow),k=r.calculatedLineHeight,A=0;A=0&&(k=_[T],"right"===k.align))this._placeToken(k,e,w,g,I,"right",m),S-=k.width,I-=k.width,T--;C+=(i-(C-f)-(v-I)-S)/2;while(M<=T)k=_[M],this._placeToken(k,e,w,g,C+k.width/2,"center",m),C+=k.width,M++;g+=w}},t.prototype._placeToken=function(e,t,n,i,r,o,a){var s=t.rich[e.styleName]||{};s.text=e.text;var l=e.verticalAlign,u=i+n/2;"top"===l?u=i+e.height/2:"bottom"===l&&(u=i+n-e.height/2);var c=!e.isLineHolder&&Au(s);c&&this._renderBackground(s,t,"right"===o?r-e.width:"center"===o?r-e.width/2:r,u-e.height/2,e.width,e.height);var d=!!s.backgroundColor,h=e.textPadding;h&&(r=Tu(r,o,h),u-=e.height/2-h[0]-e.innerHeight/2);var f=this._getOrCreateChild(Jl),g=f.createStyle();f.useStyle(g);var v=this._defaultStyle,m=!1,y=0,x=Iu("fill"in s?s.fill:"fill"in t?t.fill:(m=!0,v.fill)),_=Cu("stroke"in s?s.stroke:"stroke"in t?t.stroke:d||a||v.autoStroke&&!m?null:(y=fu,v.stroke)),b=s.textShadowBlur>0||t.textShadowBlur>0;g.text=e.text,g.x=r,g.y=u,b&&(g.shadowBlur=s.textShadowBlur||t.textShadowBlur||0,g.shadowColor=s.textShadowColor||t.textShadowColor||"transparent",g.shadowOffsetX=s.textShadowOffsetX||t.textShadowOffsetX||0,g.shadowOffsetY=s.textShadowOffsetY||t.textShadowOffsetY||0),g.textAlign=o,g.textBaseline="middle",g.font=e.font||p,g.opacity=pe(s.opacity,t.opacity,1),bu(g,s),_&&(g.lineWidth=pe(s.lineWidth,t.lineWidth,y),g.lineDash=he(s.lineDash,t.lineDash),g.lineDashOffset=t.lineDashOffset||0,g.stroke=_),x&&(g.fill=x);var w=e.contentWidth,S=e.contentHeight;f.setBoundingRect(new oo(co(g.x,w,g.textAlign),ho(g.y,S,g.textBaseline),w,S))},t.prototype._renderBackground=function(e,t,n,i,r,o){var a,s,l=e.backgroundColor,u=e.borderWidth,c=e.borderColor,d=l&&l.image,h=l&&!d,p=e.borderRadius,f=this;if(h||e.lineHeight||u&&c){a=this._getOrCreateChild(hu),a.useStyle(a.createStyle()),a.style.fill=null;var g=a.shape;g.x=n,g.y=i,g.width=r,g.height=o,g.r=p,a.dirtyShape()}if(h){var v=a.style;v.fill=l||null,v.fillOpacity=he(e.fillOpacity,1)}else if(d){s=this._getOrCreateChild(iu),s.onload=function(){f.dirtyStyle()};var m=s.style;m.image=l.image,m.x=n,m.y=i,m.width=r,m.height=o}if(u&&c){v=a.style;v.lineWidth=u,v.stroke=c,v.strokeOpacity=he(e.strokeOpacity,1),v.lineDash=e.borderDash,v.lineDashOffset=e.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(v.strokeFirst=!0,v.lineWidth*=2)}var y=(a||s).style;y.shadowBlur=e.shadowBlur||0,y.shadowColor=e.shadowColor||"transparent",y.shadowOffsetX=e.shadowOffsetX||0,y.shadowOffsetY=e.shadowOffsetY||0,y.opacity=pe(e.opacity,t.opacity,1)},t.makeFont=function(e){var t="";return wu(e)&&(t=[e.fontStyle,e.fontWeight,_u(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),t&&me(t)||e.textFont||e.font},t}(Hs),mu={left:!0,right:1,center:1},yu={top:1,bottom:1,middle:1},xu=["fontStyle","fontWeight","fontSize","fontFamily"];function _u(e){return"string"!==typeof e||-1===e.indexOf("px")&&-1===e.indexOf("rem")&&-1===e.indexOf("em")?isNaN(+e)?d+"px":e+"px":e}function bu(e,t){for(var n=0;n=0,o=!1;if(e instanceof Yl){var a=Eu(e),s=r&&a.selectFill||a.normalFill,l=r&&a.selectStroke||a.normalStroke;if(Yu(s)||Yu(l)){i=i||{};var u=i.style||{};"inherit"===u.fill?(o=!0,i=F({},i),u=F({},u),u.fill=s):!Yu(u.fill)&&Yu(s)?(o=!0,i=F({},i),u=F({},u),u.fill=Ku(s)):!Yu(u.stroke)&&Yu(l)&&(o||(i=F({},i),u=F({},u)),u.stroke=Ku(l)),i.style=u}}if(i&&null==i.z2){o||(i=F({},i));var c=e.z2EmphasisLift;i.z2=e.z2+(null!=c?c:Hu)}return i}function cc(e,t,n){if(n&&null==n.z2){n=F({},n);var i=e.z2SelectLift;n.z2=e.z2+(null!=i?i:Wu)}return n}function dc(e,t,n){var i=V(e.currentStates,t)>=0,r=e.style.opacity,o=i?null:lc(e,["opacity"],t,{opacity:1});n=n||{};var a=n.style||{};return null==a.opacity&&(n=F({},n),a=F({opacity:i?r:.1*o.opacity},a),n.style=a),n}function hc(e,t){var n=this.states[e];if(this.style){if("emphasis"===e)return uc(this,e,t,n);if("blur"===e)return dc(this,e,n);if("select"===e)return cc(this,e,n)}return n}function pc(e){e.stateProxy=hc;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=hc),n&&(n.stateProxy=hc)}function fc(e,t){!wc(e,t)&&!e.__highByOuter&&ac(e,Qu)}function gc(e,t){!wc(e,t)&&!e.__highByOuter&&ac(e,ec)}function vc(e,t){e.__highByOuter|=1<<(t||0),ac(e,Qu)}function mc(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&ac(e,ec)}function yc(e){ac(e,tc)}function xc(e){ac(e,nc)}function _c(e){ac(e,ic)}function bc(e){ac(e,rc)}function wc(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Sc(e){var t=e.getModel(),n=[],i=[];t.eachComponent((function(t,r){var o=Nu(r),a="series"===t,s=a?e.getViewOfSeriesModel(r):e.getViewOfComponentModel(r);!a&&i.push(s),o.isBlured&&(s.group.traverse((function(e){nc(e)})),a&&n.push(r)),o.isBlured=!1})),W(i,(function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)}))}function Mc(e,t,n,i){var r=i.getModel();function o(e,t){for(var n=0;n0){var o={dataIndex:r,seriesIndex:e.seriesIndex};null!=i&&(o.dataType=i),t.push(o)}}))})),t}function Oc(e,t,n){zc(e,!0),ac(e,pc),Nc(e,t,n)}function Rc(e){zc(e,!1)}function Ec(e,t,n,i){i?Rc(e):Oc(e,t,n)}function Nc(e,t,n){var i=Lu(e);null!=t?(i.focus=t,i.blurScope=n):i.focus&&(i.focus=null)}var Fc=["emphasis","blur","select"],Bc={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Vc(e,t,n,i){n=n||"itemStyle";for(var r=0;r0){var d=c.duration,h=c.delay,p=c.easing,f={duration:d,delay:h||0,easing:p,done:o,force:!!o||!!a,setToFinal:!u,scope:e,during:a};l?t.animateFrom(n,f):t.animateTo(n,f)}else t.stopAnimation(),!l&&t.attr(n),a&&a(1),o&&o()}function Xc(e,t,n,i,r,o){Yc("update",e,t,n,i,r,o)}function Kc(e,t,n,i,r,o){Yc("enter",e,t,n,i,r,o)}function Jc(e){if(!e.__zr)return!0;for(var t=0;t=0&&n.push(e)})),n}e.topologicalTravel=function(e,t,i,r){if(e.length){var o=n(t),a=o.graph,s=o.noEntryList,l={};W(e,(function(e){l[e]=!0}));while(s.length){var u=s.pop(),c=a[u],d=!!l[u];d&&(i.call(r,u,c.originalDeps.slice()),delete l[u]),W(c.successor,d?p:h)}W(l,(function(){var e="";throw new Error(e)}))}function h(e){a[e].entryCount--,0===a[e].entryCount&&s.push(e)}function p(e){l[e]=!0,h(e)}}}function Bd(e,t){return E(E({},e,!0),t,!0)}const Vd={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},zd={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var qd="ZH",Hd="EN",Wd=Hd,Gd={},Ud={},jd=c.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return e.indexOf(qd)>-1?qd:Wd}():Wd;function Zd(e,t){e=e.toUpperCase(),Ud[e]=new Od(t),Gd[e]=t}function $d(e){if(ee(e)){var t=Gd[e.toUpperCase()]||{};return e===qd||e===Hd?R(t):E(R(t),R(Gd[Wd]),!1)}return E(R(e),R(Gd[Wd]),!1)}function Yd(e){return Ud[e]}function Xd(){return Ud[Wd]}Zd(Hd,Vd),Zd(qd,zd);var Kd=1e3,Jd=60*Kd,Qd=60*Jd,eh=24*Qd,th=365*eh,nh={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},ih="{yyyy}-{MM}-{dd}",rh={year:"{yyyy}",month:"{yyyy}-{MM}",day:ih,hour:ih+" "+nh.hour,minute:ih+" "+nh.minute,second:ih+" "+nh.second,millisecond:nh.none},oh=["year","month","day","hour","minute","second","millisecond"],ah=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function sh(e,t){return e+="","0000".substr(0,t-e.length)+e}function lh(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function uh(e){return e===lh(e)}function ch(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function dh(e,t,n,i){var r=ta(e),o=r[gh(n)](),a=r[vh(n)]()+1,s=Math.floor((a-1)/3)+1,l=r[mh(n)](),u=r["get"+(n?"UTC":"")+"Day"](),c=r[yh(n)](),d=(c-1)%12+1,h=r[xh(n)](),p=r[_h(n)](),f=r[bh(n)](),g=i instanceof Od?i:Yd(i||jd)||Xd(),v=g.getModel("time"),m=v.get("month"),y=v.get("monthAbbr"),x=v.get("dayOfWeek"),_=v.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,o%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,m[a-1]).replace(/{MMM}/g,y[a-1]).replace(/{MM}/g,sh(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,sh(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,_[u]).replace(/{e}/g,u+"").replace(/{HH}/g,sh(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,sh(d+"",2)).replace(/{h}/g,d+"").replace(/{mm}/g,sh(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,sh(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,sh(f,3)).replace(/{S}/g,f+"")}function hh(e,t,n,i,r){var o=null;if(ee(n))o=n;else if(Q(n))o=n(e.value,t,{level:e.level});else{var a=F({},nh);if(e.level>0)for(var s=0;s=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if(J(o)){var d=null==e.level?0:e.level>=0?e.level:o.length+e.level;d=Math.min(d,o.length-1),o=o[d]}}return dh(new Date(e.value),o,r,i)}function ph(e,t){var n=ta(e),i=n[vh(t)]()+1,r=n[mh(t)](),o=n[yh(t)](),a=n[xh(t)](),s=n[_h(t)](),l=n[bh(t)](),u=0===l,c=u&&0===s,d=c&&0===a,h=d&&0===o,p=h&&1===r,f=p&&1===i;return f?"year":p?"month":h?"day":d?"hour":c?"minute":u?"second":"millisecond"}function fh(e,t,n){var i=ne(e)?ta(e):e;switch(t=t||ph(e,n),t){case"year":return i[gh(n)]();case"half-year":return i[vh(n)]()>=6?1:0;case"quarter":return Math.floor((i[vh(n)]()+1)/4);case"month":return i[vh(n)]();case"day":return i[mh(n)]();case"half-day":return i[yh(n)]()/24;case"hour":return i[yh(n)]();case"minute":return i[xh(n)]();case"second":return i[_h(n)]();case"millisecond":return i[bh(n)]()}}function gh(e){return e?"getUTCFullYear":"getFullYear"}function vh(e){return e?"getUTCMonth":"getMonth"}function mh(e){return e?"getUTCDate":"getDate"}function yh(e){return e?"getUTCHours":"getHours"}function xh(e){return e?"getUTCMinutes":"getMinutes"}function _h(e){return e?"getUTCSeconds":"getSeconds"}function bh(e){return e?"getUTCMilliseconds":"getMilliseconds"}function wh(e){return e?"setUTCFullYear":"setFullYear"}function Sh(e){return e?"setUTCMonth":"setMonth"}function Mh(e){return e?"setUTCDate":"setDate"}function Ch(e){return e?"setUTCHours":"setHours"}function Ih(e){return e?"setUTCMinutes":"setMinutes"}function Th(e){return e?"setUTCSeconds":"setSeconds"}function kh(e){return e?"setUTCMilliseconds":"setMilliseconds"}function Ah(e){if(!la(e))return ee(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function Dh(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()})),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var Lh=ge,Ph=/([&<>"'])/g,Oh={"&":"&","<":"<",">":">",'"':""","'":"'"};function Rh(e){return null==e?"":(e+"").replace(Ph,(function(e,t){return Oh[t]}))}function Eh(e,t,n){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function r(e){return e&&me(e)?e:"-"}function o(e){return!(null==e||isNaN(e)||!isFinite(e))}var a="time"===t,s=e instanceof Date;if(a||s){var l=a?ta(e):e;if(!isNaN(+l))return dh(l,i,n);if(s)return"-"}if("ordinal"===t)return te(e)?r(e):ne(e)&&o(e)?e+"":"-";var u=sa(e);return o(u)?Ah(u):te(e)?r(e):"boolean"===typeof e?e+"":"-"}var Nh=["a","b","c","d","e","f","g"],Fh=function(e,t){return"{"+e+(null==t?"":t)+"}"};function Bh(e,t,n){J(t)||(t=[t]);var i=t.length;if(!i)return"";for(var r=t[0].$vars||[],o=0;o':'';var a=n.markerId||"markerX";return{renderMode:o,content:"{"+a+"|} ",style:"subItem"===r?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function qh(e,t){return t=t||"transparent",ee(e)?e:ie(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function Hh(e,t){if("_blank"===t||"blank"===t){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var Wh=W,Gh=["left","right","top","bottom","width","height"],Uh=[["width","left","right"],["height","top","bottom"]];function jh(e,t,n,i,r){var o=0,a=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;t.eachChild((function(l,u){var c,d,h=l.getBoundingRect(),p=t.childAt(u+1),f=p&&p.getBoundingRect();if("horizontal"===e){var g=h.width+(f?-f.x+h.x:0);c=o+g,c>i||l.newline?(o=0,c=g,a+=s+n,s=h.height):s=Math.max(s,h.height)}else{var v=h.height+(f?-f.y+h.y:0);d=a+v,d>r||l.newline?(o+=s+n,a=0,d=v,s=h.width):s=Math.max(s,h.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===e?o=c+n:a=d+n)}))}var Zh=jh;K(jh,"vertical"),K(jh,"horizontal");function $h(e,t,n){var i=t.width,r=t.height,o=Wo(e.left,i),a=Wo(e.top,r),s=Wo(e.right,i),l=Wo(e.bottom,r);return(isNaN(o)||isNaN(parseFloat(e.left)))&&(o=0),(isNaN(s)||isNaN(parseFloat(e.right)))&&(s=i),(isNaN(a)||isNaN(parseFloat(e.top)))&&(a=0),(isNaN(l)||isNaN(parseFloat(e.bottom)))&&(l=r),n=Lh(n||0),{width:Math.max(s-o-n[1]-n[3],0),height:Math.max(l-a-n[0]-n[2],0)}}function Yh(e,t,n){n=Lh(n||0);var i=t.width,r=t.height,o=Wo(e.left,i),a=Wo(e.top,r),s=Wo(e.right,i),l=Wo(e.bottom,r),u=Wo(e.width,i),c=Wo(e.height,r),d=n[2]+n[0],h=n[1]+n[3],p=e.aspect;switch(isNaN(u)&&(u=i-s-h-o),isNaN(c)&&(c=r-l-d-a),null!=p&&(isNaN(u)&&isNaN(c)&&(p>i/r?u=.8*i:c=.8*r),isNaN(u)&&(u=p*c),isNaN(c)&&(c=u/p)),isNaN(o)&&(o=i-s-u-h),isNaN(a)&&(a=r-l-c-d),e.left||e.right){case"center":o=i/2-u/2-n[3];break;case"right":o=i-u-h;break}switch(e.top||e.bottom){case"middle":case"center":a=r/2-c/2-n[0];break;case"bottom":a=r-c-d;break}o=o||0,a=a||0,isNaN(u)&&(u=i-h-o-(s||0)),isNaN(c)&&(c=r-d-a-(l||0));var f=new oo(o+n[3],a+n[0],u,c);return f.margin=n,f}function Xh(e,t,n,i,r,o){var a,s=!r||!r.hv||r.hv[0],l=!r||!r.hv||r.hv[1],u=r&&r.boundingMode||"all";if(o=o||e,o.x=e.x,o.y=e.y,!s&&!l)return!1;if("raw"===u)a="group"===e.type?new oo(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(a=e.getBoundingRect(),e.needLocalTransform()){var c=e.getLocalTransform();a=a.clone(),a.applyTransform(c)}var d=Yh(B({width:a.width,height:a.height},t),n,i),h=s?d.x-a.x:0,p=l?d.y-a.y:0;return"raw"===u?(o.x=h,o.y=p):(o.x+=h,o.y+=p),o===e&&e.markRedraw(),!0}function Kh(e,t){return null!=e[Uh[t][0]]||null!=e[Uh[t][1]]&&null!=e[Uh[t][2]]}function Jh(e){var t=e.layoutMode||e.constructor.layoutMode;return ie(t)?t:t?{type:t}:null}function Qh(e,t,n){var i=n&&n.ignoreSize;!J(i)&&(i=[i,i]);var r=a(Uh[0],0),o=a(Uh[1],1);function a(n,r){var o={},a=0,u={},c=0,d=2;if(Wh(n,(function(t){u[t]=e[t]})),Wh(n,(function(e){s(t,e)&&(o[e]=u[e]=t[e]),l(o,e)&&a++,l(u,e)&&c++})),i[r])return l(t,n[1])?u[n[2]]=null:l(t,n[2])&&(u[n[1]]=null),u;if(c!==d&&a){if(a>=d)return o;for(var h=0;h=0;a--)o=E(o,n[a],!0);t.defaultOption=o}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+"Index",i=e+"Id";return Wa(this.ecModel,e,{index:this.get(n,!0),id:this.get(i,!0)},t)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(Od);function rp(e){var t=[];return W(ip.getClassesByMainType(e),(function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])})),t=G(t,(function(e){return Ja(e).main})),"dataset"!==e&&V(t,"dataset")<=0&&t.unshift("dataset"),t}is(ip,Od),ls(ip),Nd(ip),Fd(ip,rp);const op=ip;var ap="";"undefined"!==typeof navigator&&(ap=navigator.platform||"");var sp="rgba(0, 0, 0, 0.2)";const lp={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:sp,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:sp,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:sp,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:sp,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:sp,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:sp,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:ap.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var up=we(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),cp="original",dp="arrayRows",hp="objectRows",pp="keyedColumns",fp="typedArray",gp="unknown",vp="column",mp="row",yp={Must:1,Might:2,Not:3},xp=Fa();function _p(e){xp(e).datasetMap=we()}function bp(e,t,n){var i={},r=Sp(t);if(!r||!e)return i;var o,a,s=[],l=[],u=t.ecModel,c=xp(u).datasetMap,d=r.uid+"_"+n.seriesLayoutBy;e=e.slice(),W(e,(function(t,n){var r=ie(t)?t:e[n]={name:t};"ordinal"===r.type&&null==o&&(o=n,a=f(r)),i[r.name]=[]}));var h=c.get(d)||c.set(d,{categoryWayDim:a,valueWayDim:0});function p(e,t,n){for(var i=0;it)return e[i];return e[n-1]}function Bp(e,t,n,i,r,o,a){o=o||e;var s=t(o),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(r))return u[r];var c=null!=a&&i?Fp(i,a):n;if(c=c||n,c&&c.length){var d=c[l];return r&&(u[r]=d),s.paletteIdx=(l+1)%c.length,d}}function Vp(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var zp="\0_ec_inner",qp=1;var Hp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.init=function(e,t,n,i,r,o){i=i||{},this.option=null,this._theme=new Od(i),this._locale=new Od(r),this._optionManager=o},t.prototype.setOption=function(e,t,n){var i=Zp(t);this._optionManager.setOption(e,n,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,t){return this._resetOption(e,Zp(t))},t.prototype._resetOption=function(e,t){var n=!1,i=this._optionManager;if(!e||"recreate"===e){var r=i.mountOption("recreate"===e);0,this.option&&"recreate"!==e?(this.restoreData(),this._mergeOption(r,t)):Pp(this,r),n=!0}if("timeline"!==e&&"media"!==e||this.restoreData(),!e||"recreate"===e||"timeline"===e){var o=i.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,t))}if(!e||"recreate"===e||"media"===e){var a=i.getMediaOption(this);a.length&&W(a,(function(e){n=!0,this._mergeOption(e,t)}),this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,t){var n=this.option,i=this._componentsMap,r=this._componentsCount,o=[],a=we(),s=t&&t.replaceMergeMainTypeMap;function l(t){var o=Ap(this,t,ga(e[t])),a=i.get(t),l=a?s&&s.get(t)?"replaceMerge":"normalMerge":"replaceAll",u=_a(a,o,l);Oa(u,t,op),n[t]=null,i.set(t,null),r.set(t,0);var c,d=[],h=[],p=0;W(u,(function(e,n){var i=e.existing,r=e.newOption;if(r){var o="series"===t,a=op.getClass(t,e.keyInfo.subType,!o);if(!a)return;if("tooltip"===t){if(c)return void 0;c=!0}if(i&&i.constructor===a)i.name=e.keyInfo.name,i.mergeOption(r,this),i.optionUpdated(r,!1);else{var s=F({componentIndex:n},e.keyInfo);i=new a(r,this,this,s),F(i,s),e.brandNew&&(i.__requireNewView=!0),i.init(r,this,this),i.optionUpdated(null,!0)}}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(d.push(i.option),h.push(i),p++):(d.push(void 0),h.push(void 0))}),this),n[t]=d,i.set(t,h),r.set(t,p),"series"===t&&Dp(this)}_p(this),W(e,(function(e,t){null!=e&&(op.hasClass(t)?t&&(o.push(t),a.set(t,!0)):n[t]=null==n[t]?R(e):E(n[t],e,!0))})),s&&s.each((function(e,t){op.hasClass(t)&&!a.get(t)&&(o.push(t),a.set(t,!0))})),op.topologicalTravel(o,op.getAllClassMainTypes(),l,this),this._seriesIndices||Dp(this)},t.prototype.getOption=function(){var e=R(this.option);return W(e,(function(t,n){if(op.hasClass(n)){for(var i=ga(t),r=i.length,o=!1,a=r-1;a>=0;a--)i[a]&&!La(i[a])?o=!0:(i[a]=null,!o&&r--);i.length=r,e[n]=i}})),delete e[zp],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var i=n[t||0];if(i)return i;if(null==t)for(var r=0;r=t:"max"===n?e<=t:e===t}function sf(e,t){return e.join(",")===t.join(",")}const lf=nf;var uf=W,cf=ie,df=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function hf(e){var t=e&&e.itemStyle;if(t)for(var n=0,i=df.length;n=0;g--){var v=e[g];if(s||(h=v.data.rawIndexOf(v.stackedByDimension,d)),h>=0){var m=v.data.getByRawIndex(v.stackResultDimension,h);if("all"===l||"positive"===l&&m>0||"negative"===l&&m<0||"samesign"===l&&p>=0&&m>0||"samesign"===l&&p<=0&&m<0){p=Xo(p,m),f=m;break}}}return i[0]=p,i[1]=f,i}))}))}var Ef,Nf,Ff,Bf,Vf,zf=function(){function e(e){this.data=e.data||(e.sourceFormat===pp?{}:[]),this.sourceFormat=e.sourceFormat||gp,this.seriesLayoutBy=e.seriesLayoutBy||vp,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;nu&&(u=p)}s[0]=l,s[1]=u}},i=function(){return this._data?this._data.length/this._dimSize:0};function r(e){for(var t=0;t=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""}))}},e.prototype.getRawValue=function(e,t){return lg(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function dg(e){var t,n;return ie(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function hg(e){return new pg(e)}var pg=function(){function e(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t,n=this._upstream,i=e&&e.skip;if(this._dirty&&n){var r=this.context;r.data=r.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!i&&(t=this._plan(this.context));var o,a=c(this._modBy),s=this._modDataCount||0,l=c(e&&e.modBy),u=e&&e.modDataCount||0;function c(e){return!(e>=1)&&(e=1),e}a===l&&s===u||(t="reset"),(this._dirty||"reset"===t)&&(this._dirty=!1,o=this._doReset(i)),this._modBy=l,this._modDataCount=u;var d=e&&e.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,p=Math.min(null!=d?this._dueIndex+d:1/0,this._dueEnd);if(!i&&(o||h1&&i>0?s:a}};return o;function a(){return t=e?null:ot},gte:function(e,t){return e>=t}},bg=function(){function e(e,t){if(!ne(t)){var n="";0,vg(n)}this._opFn=_g[e],this._rvalFloat=sa(t)}return e.prototype.evaluate=function(e){return ne(e)?this._opFn(e,this._rvalFloat):this._opFn(sa(e),this._rvalFloat)},e}(),wg=function(){function e(e,t){var n="desc"===e;this._resultLT=n?1:-1,null==t&&(t=n?"min":"max"),this._incomparable="min"===t?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=ne(e)?e:sa(e),i=ne(t)?t:sa(t),r=isNaN(n),o=isNaN(i);if(r&&(n=this._incomparable),o&&(i=this._incomparable),r&&o){var a=ee(e),s=ee(t);a&&(n=s?e:0),s&&(i=a?t:0)}return ni?-this._resultLT:0},e}(),Sg=function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=sa(t)}return e.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(t=sa(e)===this._rvalFloat)}return this._isEQ?t:!t},e}();function Mg(e,t){return"eq"===e||"ne"===e?new Sg("eq"===e,t):Ie(_g,e)?new bg(e,t):null}var Cg=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(e){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(e){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(e,t){},e.prototype.retrieveValueFromItem=function(e,t){},e.prototype.convertValue=function(e,t){return mg(e,t)},e}();function Ig(e,t){var n=new Cg,i=e.data,r=n.sourceFormat=e.sourceFormat,o=e.startIndex,a="";e.seriesLayoutBy!==vp&&vg(a);var s=[],l={},u=e.dimensionsDefine;if(u)W(u,(function(e,t){var n=e.name,i={index:t,name:n,displayName:e.displayName};if(s.push(i),null!=n){var r="";Ie(l,n)&&vg(r),l[n]=i}}));else for(var c=0;c65535?Bg:Vg}function Gg(){return[1/0,-1/0]}function Ug(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function jg(e,t,n,i,r){var o=Hg[n||"float"];if(r){var a=e[t],s=a&&a.length;if(s!==i){for(var l=new o(i),u=0;ug[1]&&(g[1]=f)}return this._rawCount=this._count=s,{start:a,end:s}},e.prototype._initDataFromProvider=function(e,t,n){for(var i=this._provider,r=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=G(o,(function(e){return e.property})),u=0;uv[1]&&(v[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t=0&&t=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(null!=n&&ne))return o;r=o-1}}return-1},e.prototype.indicesOfNearest=function(e,t,n){var i=this._chunks,r=i[e],o=[];if(!r)return o;null==n&&(n=1/0);for(var a=1/0,s=-1,l=0,u=0,c=this.count();u=0&&s<0)&&(a=p,s=h,l=0),h===s&&(o[l++]=u))}return o.length=l,o},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,i=this._count;if(n===Array){e=new n(i);for(var r=0;r=c&&m<=d||isNaN(m))&&(s[l++]=f),f++}p=!0}else if(2===r){g=h[i[0]];var y=h[i[1]],x=e[i[1]][0],_=e[i[1]][1];for(v=0;v=c&&m<=d||isNaN(m))&&(b>=x&&b<=_||isNaN(b))&&(s[l++]=f),f++}p=!0}}if(!p)if(1===r)for(v=0;v=c&&m<=d||isNaN(m))&&(s[l++]=w)}else for(v=0;ve[C][1])&&(S=!1)}S&&(s[l++]=t.getRawIndex(v))}return lv[1]&&(v[1]=g)}}}},e.prototype.lttbDownSample=function(e,t){var n,i,r,o=this.clone([e],!0),a=o._chunks,s=a[e],l=this.count(),u=0,c=Math.floor(1/t),d=this.getRawIndex(0),h=new(Wg(this._rawCount))(Math.min(2*(Math.ceil(l/c)+2),l));h[u++]=d;for(var p=1;pn&&(n=i,r=x))}I>0&&Iu-p&&(s=u-p,a.length=s);for(var f=0;fc[1]&&(c[1]=v),d[h++]=m}return r._count=h,r._indices=d,r._updateGetRawIdx(),r},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,i=this._chunks,r=0,o=this.count();rs&&(s=c)}return i=[a,s],this._extent[e]=i,i},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],i=this._chunks,r=0;r=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,n,i){return mg(e[i],this._dimensions[i])}Ng={arrayRows:e,objectRows:function(e,t,n,i){return mg(e[t],this._dimensions[i])},keyedColumns:e,original:function(e,t,n,i){var r=e&&(null==e.value?e:e.value);return mg(r instanceof Array?r[i]:r,this._dimensions[i])},typedArray:function(e,t,n,i){return e[i]}}}(),e}();const $g=Zg;var Yg=function(){function e(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var e,t,n=this._sourceHost,i=this._getUpstreamSourceManagers(),r=!!i.length;if(Kg(n)){var o=n,a=void 0,s=void 0,l=void 0;if(r){var u=i[0];u.prepareSource(),l=u.getSource(),a=l.data,s=l.sourceFormat,t=[u._getVersionSign()]}else a=o.get("data",!0),s=oe(a)?fp:cp,t=[];var c=this._getSourceMetaRawOption()||{},d=l&&l.metaRawOption||{},h=he(c.seriesLayoutBy,d.seriesLayoutBy)||null,p=he(c.sourceHeader,d.sourceHeader),f=he(c.dimensions,d.dimensions),g=h!==d.seriesLayoutBy||!!p!==!!d.sourceHeader||f;e=g?[Hf(a,{seriesLayoutBy:h,sourceHeader:p,dimensions:f},s)]:[]}else{var v=n;if(r){var m=this._applyTransform(i);e=m.sourceList,t=m.upstreamSignList}else{var y=v.get("source",!0);e=[Hf(y,this._getSourceMetaRawOption(),null)],t=[]}}this._setLocalSource(e,t)},e.prototype._applyTransform=function(e){var t,n=this._sourceHost,i=n.get("transform",!0),r=n.get("fromTransformResult",!0);if(null!=r){var o="";1!==e.length&&Jg(o)}var a=[],s=[];return W(e,(function(e){e.prepareSource();var t=e.getSource(r||0),n="";null==r||t||Jg(n),a.push(t),s.push(e._getVersionSign())})),i?t=Og(i,a,{datasetIndex:n.componentIndex}):null!=r&&(t=[Gf(a[0])]),{sourceList:t,upstreamSignList:s}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t1||n>0&&!e.noHeader;return W(e.blocks,(function(e){var n=av(e);n>=t&&(t=n+ +(i&&(!n||rv(e)&&!e.noHeader)))})),t}return 0}function sv(e,t,n,i){var r=t.noHeader,o=cv(av(t)),a=[],s=t.blocks||[];ve(!s||J(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Ie(u,l)){var c=new wg(u[l],null);s.sort((function(e,t){return c.evaluate(e.sortParam,t.sortParam)}))}else"seriesDesc"===l&&s.reverse()}W(s,(function(n,r){var s=t.valueFormatter,l=ov(n)(s?F(F({},e),{valueFormatter:s}):e,n,r>0?o.html:0,i);null!=l&&a.push(l)}));var d="richText"===e.renderMode?a.join(o.richText):dv(a.join(""),r?n:o.html);if(r)return d;var h=Eh(t.header,"ordinal",e.useUTC),p=ev(i,e.renderMode).nameStyle;return"richText"===e.renderMode?fv(e,h,p)+o.richText+d:dv('
'+Rh(h)+"
"+d,n)}function lv(e,t,n,i){var r=e.renderMode,o=t.noName,a=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,c=t.valueFormatter||e.valueFormatter||function(e){return e=J(e)?e:[e],G(e,(function(e,t){return Eh(e,J(p)?p[t]:p,u)}))};if(!o||!a){var d=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",r),h=o?"":Eh(l,"ordinal",u),p=t.valueType,f=a?[]:c(t.value),g=!s||!o,v=!s&&o,m=ev(i,r),y=m.nameStyle,x=m.valueStyle;return"richText"===r?(s?"":d)+(o?"":fv(e,h,y))+(a?"":gv(e,f,g,v,x)):dv((s?"":d)+(o?"":hv(h,!s,y))+(a?"":pv(f,g,v,x)),n)}}function uv(e,t,n,i,r,o){if(e){var a=ov(e),s={useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:t,valueFormatter:e.valueFormatter};return a(s,e,0,o)}}function cv(e){return{html:tv[e],richText:nv[e]}}function dv(e,t){var n='
',i="margin: "+t+"px 0 0";return'
'+e+n+"
"}function hv(e,t,n){var i=t?"margin-left:2px":"";return''+Rh(e)+""}function pv(e,t,n,i){var r=n?"10px":"20px",o=t?"float:right;margin-left:"+r:"";return e=J(e)?e:[e],''+G(e,(function(e){return Rh(e)})).join("  ")+""}function fv(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function gv(e,t,n,i,r){var o=[r],a=i?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(J(t)?t.join(" "):t,o)}function vv(e,t){var n=e.getData().getItemVisual(t,"style"),i=n[e.visualDrawType];return qh(i)}function mv(e,t){var n=e.get("padding");return null!=n?n:"richText"===t?[8,10]:10}var yv=function(){function e(){this.richTextStyles={},this._nextStyleNameId=ua()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var i="richText"===n?this._generateStyleName():null,r=zh({color:t,type:e,renderMode:n,markerId:i});return ee(r)?r:(this.richTextStyles[i]=r.style,r.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};J(t)?W(t,(function(e){return F(n,e)})):F(n,t);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+e+"}"},e}();function xv(e){var t,n,i,r,o=e.series,a=e.dataIndex,s=e.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),c=u.length,d=o.getRawValue(a),h=J(d),p=vv(o,a);if(c>1||h&&!c){var f=_v(d,o,a,u,p);t=f.inlineValues,n=f.inlineValueTypes,i=f.blocks,r=f.inlineValues[0]}else if(c){var g=l.getDimensionInfo(u[0]);r=t=lg(l,a,u[0]),n=g.type}else r=t=h?d[0]:d;var v=Da(o),m=v&&o.name||"",y=l.getName(a),x=s?m:y;return iv("section",{header:m,noHeader:s||!v,sortParam:r,blocks:[iv("nameValue",{markerType:"item",markerColor:p,name:x,noName:!me(x),value:t,valueType:n})].concat(i||[])})}function _v(e,t,n,i,r){var o=t.getData(),a=U(e,(function(e,t,n){var i=o.getDimensionInfo(n);return e||i&&!1!==i.tooltip&&null!=i.displayName}),!1),s=[],l=[],u=[];function c(e,t){var n=o.getDimensionInfo(t);n&&!1!==n.otherDims.tooltip&&(a?u.push(iv("nameValue",{markerType:"subItem",markerColor:r,name:n.displayName,value:e,valueType:n.type})):(s.push(e),l.push(n.type)))}return i.length?W(i,(function(e){c(lg(o,n,e),e)})):W(e,c),{inlineValues:s,inlineValueTypes:l,blocks:u}}var bv=Fa();function wv(e,t){return e.getName(t)||e.getId(t)}var Sv="__universalTransitionEnabled",Mv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return o(t,e),t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=hg({count:Tv,reset:kv}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n);var i=bv(this).sourceManager=new Yg(this);i.prepareSource();var r=this.getInitialData(e,n);Dv(r,this),this.dataTask.context.data=r,bv(this).dataBeforeProcessed=r,Cv(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=Jh(this),i=n?ep(e):{},r=this.subType;op.hasClass(r)&&(r+="Series"),E(e,t.getTheme().get(this.subType)),E(e,this.getDefaultOption()),va(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&Qh(e,i,n)},t.prototype.mergeOption=function(e,t){e=E(this.option,e,!0),this.fillDataTextStyle(e.data);var n=Jh(this);n&&Qh(this.option,e,n);var i=bv(this).sourceManager;i.dirty(),i.prepareSource();var r=this.getInitialData(e,t);Dv(r,this),this.dataTask.dirty(),this.dataTask.context.data=r,bv(this).dataBeforeProcessed=r,Cv(this),this._initSelectedMapFromData(r)},t.prototype.fillDataTextStyle=function(e){if(e&&!oe(e))for(var t=["show"],n=0;nthis.getShallow("animationThreshold")&&(t=!1),!!t},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,n){var i=this.ecModel,r=Ep.prototype.getColorFromPalette.call(this,e,t,n);return r||(r=i.getColorFromPalette(e,t,n)),r},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,r=this.getData(t);if("series"===i||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o=0&&n.push(r)}return n},t.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(t);return("all"===n||n[wv(i,e)])&&!i.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Sv])return!0;var e=this.option.universalTransition;return!!e&&(!0===e||e&&e.enabled)},t.prototype._innerSelect=function(e,t){var n,i,r=this.option,o=r.selectedMode,a=t.length;if(o&&a)if("series"===o)r.selectedMap="all";else if("multiple"===o){ie(r.selectedMap)||(r.selectedMap={});for(var s=r.selectedMap,l=0;l0&&this._innerSelect(e,t)}},t.registerClass=function(e){return op.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(op);function Cv(e){var t=e.name;Da(e)||(e.name=Iv(e)||t)}function Iv(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),i=[];return W(n,(function(e){var n=t.getDimensionInfo(e);n.displayName&&i.push(n.displayName)})),i.join(" ")}function Tv(e){return e.model.getRawData().count()}function kv(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),Av}function Av(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Dv(e,t){W(Se(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),(function(n){e.wrapMethod(n,K(Lv,t))}))}function Lv(e,t){var n=Pv(e);return n&&n.setOutputEnd((t||this).count()),t}function Pv(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(e.uid))}return i}}q(Mv,cg),q(Mv,Ep),is(Mv,op);const Ov=Mv;var Rv=function(){function e(){this.group=new Lo,this.uid=Ed("viewComponent")}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,i){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,i){},e.prototype.updateLayout=function(e,t,n,i){},e.prototype.updateVisual=function(e,t,n,i){},e.prototype.toggleBlurSeries=function(e,t,n){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();ts(Rv),ls(Rv);const Ev=Rv;function Nv(){var e=Fa();return function(t){var n=e(t),i=t.pipelineContext,r=!!n.large,o=!!n.progressiveRender,a=n.large=!(!i||!i.large),s=n.progressiveRender=!(!i||!i.progressiveRender);return!(r===a&&o===s)&&"reset"}}var Fv=Sl.CMD,Bv=[[],[],[]],Vv=Math.sqrt,zv=Math.atan2;function qv(e,t){if(t){var n,i,r,o,a,s,l=e.data,u=e.len(),c=Fv.M,d=Fv.C,h=Fv.L,p=Fv.R,f=Fv.A,g=Fv.Q;for(r=0,o=0;r1&&(a*=Hv(f),s*=Hv(f));var g=(r===o?-1:1)*Hv((a*a*(s*s)-a*a*(p*p)-s*s*(h*h))/(a*a*(p*p)+s*s*(h*h)))||0,v=g*a*p/s,m=g*-s*h/a,y=(e+n)/2+Gv(d)*v-Wv(d)*m,x=(t+i)/2+Wv(d)*v+Gv(d)*m,_=$v([1,0],[(h-v)/a,(p-m)/s]),b=[(h-v)/a,(p-m)/s],w=[(-1*h-v)/a,(-1*p-m)/s],S=$v(b,w);if(Zv(b,w)<=-1&&(S=Uv),Zv(b,w)>=1&&(S=0),S<0){var M=Math.round(S/Uv*1e6)/1e6;S=2*Uv+M%2*Uv}c.addData(u,y,x,a,s,_,S,d,o)}var Xv=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Kv=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Jv(e){var t=new Sl;if(!e)return t;var n,i=0,r=0,o=i,a=r,s=Sl.CMD,l=e.match(Xv);if(!l)return t;for(var u=0;uD*D+L*L&&(M=I,C=T),{cx:M,cy:C,x0:-c,y0:-d,x1:M*(r/b-1),y1:C*(r/b-1)}}function Cm(e){var t;if(J(e)){var n=e.length;if(!n)return e;t=1===n?[e[0],e[0],0,0]:2===n?[e[0],e[0],e[1],e[1]]:3===n?e.concat(e[2]):e}else t=[e,e,e,e];return t}function Im(e,t){var n,i=_m(t.r,0),r=_m(t.r0||0,0),o=i>0,a=r>0;if(o||a){if(o||(i=r,r=0),r>i){var s=i;i=r,r=s}var l=t.startAngle,u=t.endAngle;if(!isNaN(l)&&!isNaN(u)){var c=t.cx,d=t.cy,h=!!t.clockwise,p=ym(u-l),f=p>pm&&p%pm;if(f>wm&&(p=f),i>wm)if(p>pm-wm)e.moveTo(c+i*gm(l),d+i*fm(l)),e.arc(c,d,i,l,u,!h),r>wm&&(e.moveTo(c+r*gm(u),d+r*fm(u)),e.arc(c,d,r,u,l,h));else{var g=void 0,v=void 0,m=void 0,y=void 0,x=void 0,_=void 0,b=void 0,w=void 0,S=void 0,M=void 0,C=void 0,I=void 0,T=void 0,k=void 0,A=void 0,D=void 0,L=i*gm(l),P=i*fm(l),O=r*gm(u),R=r*fm(u),E=p>wm;if(E){var N=t.cornerRadius;N&&(n=Cm(N),g=n[0],v=n[1],m=n[2],y=n[3]);var F=ym(i-r)/2;if(x=bm(F,m),_=bm(F,y),b=bm(F,g),w=bm(F,v),C=S=_m(x,_),I=M=_m(b,w),(S>wm||M>wm)&&(T=i*gm(u),k=i*fm(u),A=r*gm(l),D=r*fm(l),pwm){var U=bm(m,C),j=bm(y,C),Z=Mm(A,D,L,P,i,U,h),$=Mm(T,k,O,R,i,j,h);e.moveTo(c+Z.cx+Z.x0,d+Z.cy+Z.y0),C0&&e.arc(c+Z.cx,d+Z.cy,U,mm(Z.y0,Z.x0),mm(Z.y1,Z.x1),!h),e.arc(c,d,i,mm(Z.cy+Z.y1,Z.cx+Z.x1),mm($.cy+$.y1,$.cx+$.x1),!h),j>0&&e.arc(c+$.cx,d+$.cy,j,mm($.y1,$.x1),mm($.y0,$.x0),!h))}else e.moveTo(c+L,d+P),e.arc(c,d,i,l,u,!h);else e.moveTo(c+L,d+P);if(r>wm&&E)if(I>wm){U=bm(g,I),j=bm(v,I),Z=Mm(O,R,T,k,r,-j,h),$=Mm(L,P,A,D,r,-U,h);e.lineTo(c+Z.cx+Z.x0,d+Z.cy+Z.y0),I0&&e.arc(c+Z.cx,d+Z.cy,j,mm(Z.y0,Z.x0),mm(Z.y1,Z.x1),!h),e.arc(c,d,r,mm(Z.cy+Z.y1,Z.cx+Z.x1),mm($.cy+$.y1,$.cx+$.x1),h),U>0&&e.arc(c+$.cx,d+$.cy,U,mm($.y1,$.x1),mm($.y0,$.x0),!h))}else e.lineTo(c+O,d+R),e.arc(c,d,r,u,l,h);else e.lineTo(c+O,d+R)}else e.moveTo(c,d);e.closePath()}}}var Tm=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0}return e}(),km=function(e){function t(t){return e.call(this,t)||this}return De(t,e),t.prototype.getDefaultShape=function(){return new Tm},t.prototype.buildPath=function(e,t){Im(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Yl);km.prototype.type="sector";const Am=km;var Dm=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),Lm=function(e){function t(t){return e.call(this,t)||this}return De(t,e),t.prototype.getDefaultShape=function(){return new Dm},t.prototype.buildPath=function(e,t){var n=t.cx,i=t.cy,r=2*Math.PI;e.moveTo(n+t.r,i),e.arc(n,i,t.r,0,r,!1),e.moveTo(n+t.r0,i),e.arc(n,i,t.r0,0,r,!0)},t}(Yl);Lm.prototype.type="ring";const Pm=Lm;function Om(e,t,n,i){var r,o,a,s,l=[],u=[],c=[],d=[];if(i){a=[1/0,1/0],s=[-1/0,-1/0];for(var h=0,p=e.length;h=2){if(i){var o=Om(r,i,n,t.smoothConstraint);e.moveTo(r[0][0],r[0][1]);for(var a=r.length,s=0;s<(n?a:a-1);s++){var l=o[2*s],u=o[2*s+1],c=r[(s+1)%a];e.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{e.moveTo(r[0][0],r[0][1]);s=1;for(var d=r.length;sly[1]){if(a=!1,r)return a;var u=Math.abs(ly[0]-sy[1]),c=Math.abs(sy[0]-ly[1]);Math.min(u,c)>i.len()&&(uMath.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function Ey(e){return!e.isGroup}function Ny(e){return null!=e.shape}function Fy(e,t,n){if(e&&t){var i=r(e);t.traverse((function(e){if(Ey(e)&&e.anid){var t=i[e.anid];if(t){var r=o(e);e.attr(o(t)),Xc(e,r,n,Lu(e).dataIndex)}}}))}function r(e){var t={};return e.traverse((function(e){Ey(e)&&e.anid&&(t[e.anid]=e)})),t}function o(e){var t={x:e.x,y:e.y,rotation:e.rotation};return Ny(e)&&(t.shape=F({},e.shape)),t}}function By(e,t){return G(e,(function(e){var n=e[0];n=vy(n,t.x),n=my(n,t.x+t.width);var i=e[1];return i=vy(i,t.y),i=my(i,t.y+t.height),[n,i]}))}function Vy(e,t){var n=vy(e.x,t.x),i=my(e.x+e.width,t.x+t.width),r=vy(e.y,t.y),o=my(e.y+e.height,t.y+t.height);if(i>=n&&o>=r)return{x:n,y:r,width:i-n,height:o-r}}function zy(e,t,n){var i=F({rectHover:!0},t),r=i.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return 0===e.indexOf("image://")?(r.image=e.slice(8),B(r,n),new iu(i)):My(e.replace("path://",""),i,n,"center")}function qy(e,t,n,i,r){for(var o=0,a=r[r.length-1];o1)return!1;var v=Wy(p,f,c,d)/h;return!(v<0||v>1)}function Wy(e,t,n,i){return e*i-n*t}function Gy(e){return e<=1e-6&&e>=-1e-6}function Uy(e){var t=e.itemTooltipOption,n=e.componentModel,i=e.itemName,r=ee(t)?{formatter:t}:t,o=n.mainType,a=n.componentIndex,s={componentType:o,name:i,$vars:["name"]};s[o+"Index"]=a;var l=e.formatterParamsExtra;l&&W($(l),(function(e){Ie(s,e)||(s[e]=l[e],s.$vars.push(e))}));var u=Lu(e.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:i,option:B({content:i,formatterParams:s},r)}}function jy(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function Zy(e,t){if(e)if(J(e))for(var n=0;n=0?d():c=setTimeout(d,-r),l=i};return h.clear=function(){c&&(clearTimeout(c),c=null)},h.debounceNextCall=function(e){s=e},h}function sx(e,t,n,i){var r=e[t];if(r){var o=r[ix]||r,a=r[ox],s=r[rx];if(s!==n||a!==i){if(null==n||!i)return e[t]=o;r=e[t]=ax(o,n,"debounce"===i),r[ix]=o,r[ox]=i,r[rx]=n}return r}}function lx(e,t){var n=e[t];n&&n[ix]&&(n.clear&&n.clear(),e[t]=n[ix])}var ux=Fa(),cx={itemStyle:us(Ad,!0),lineStyle:us(Id,!0)},dx={lineStyle:"stroke",itemStyle:"fill"};function hx(e,t){var n=e.visualStyleMapper||cx[t];return n||(console.warn("Unkown style type '"+t+"'."),cx.itemStyle)}function px(e,t){var n=e.visualDrawType||dx[t];return n||(console.warn("Unkown style type '"+t+"'."),"fill")}var fx={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),i=e.visualStyleAccessPath||"itemStyle",r=e.getModel(i),o=hx(e,i),a=o(r),s=r.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=px(e,i),u=a[l],c=Q(u)?u:null,d="auto"===a.fill||"auto"===a.stroke;if(!a[l]||c||d){var h=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[l]||(a[l]=h,n.setVisual("colorFromPalette",!0)),a.fill="auto"===a.fill||Q(a.fill)?h:a.fill,a.stroke="auto"===a.stroke||Q(a.stroke)?h:a.stroke}if(n.setVisual("style",a),n.setVisual("drawType",l),!t.isSeriesFiltered(e)&&c)return n.setVisual("colorFromPalette",!1),{dataEach:function(t,n){var i=e.getDataParams(n),r=F({},a);r[l]=c(i),t.setItemVisual(n,"style",r)}}}},gx=new Od,vx={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData&&!t.isSeriesFiltered(e)){var n=e.getData(),i=e.visualStyleAccessPath||"itemStyle",r=hx(e,i),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[i]){gx.option=n[i];var a=r(gx),s=e.ensureUniqueItemVisual(t,"style");F(s,a),gx.option.decal&&(e.setItemVisual(t,"decal",gx.option.decal),gx.option.decal.dirty=!0),o in a&&e.setItemVisual(t,"colorFromPalette",!1)}}:null}}}},mx={performRawSeries:!0,overallReset:function(e){var t=we();e.eachSeries((function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var i=e.type+"-"+n,r=t.get(i);r||(r={},t.set(i,r)),ux(e).scope=r}})),e.eachSeries((function(t){if(!t.isColorBySeries()&&!e.isSeriesFiltered(t)){var n=t.getRawData(),i={},r=t.getData(),o=ux(t).scope,a=t.visualStyleAccessPath||"itemStyle",s=px(t,a);r.each((function(e){var t=r.getRawIndex(e);i[t]=e})),n.each((function(e){var a=i[e],l=r.getItemVisual(a,"colorFromPalette");if(l){var u=r.ensureUniqueItemVisual(a,"style"),c=n.getName(e)||e+"",d=n.count();u[s]=t.getColorFromPalette(c,o,d)}}))}}))}},yx=Math.PI;function xx(e,t){t=t||{},B(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Lo,i=new hu({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(i);var r,o=new Du({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new hu({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});return n.add(a),t.showSpinner&&(r=new Jm({shape:{startAngle:-yx/2,endAngle:-yx/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),r.animateShape(!0).when(1e3,{endAngle:3*yx/2}).start("circularInOut"),r.animateShape(!0).when(1e3,{startAngle:3*yx/2}).delay(300).start("circularInOut"),n.add(r)),n.resize=function(){var n=o.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,l=(e.getWidth()-2*s-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:s),u=e.getHeight()/2;t.showSpinner&&r.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),i.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var _x=function(){function e(e,t,n,i){this._stageTaskMap=we(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each((function(e){var t=e.overallTask;t&&t.dirty()}))},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),i=n.context,r=!t&&n.progressiveEnabled&&(!i||i.progressiveRender)&&e.__idxInPipeline>n.blockIndex,o=r?n.step:null,a=i&&i.modDataCount,s=null!=a?Math.ceil(a/o):null;return{step:o,modBy:s,modDataCount:a}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid),i=e.getData(),r=i.count(),o=n.progressiveEnabled&&t.incrementalPrepareRender&&r>=n.threshold,a=e.get("large")&&r>=e.get("largeThreshold"),s="mod"===e.get("progressiveChunkMode")?r:null;e.pipelineContext=n.context={progressiveRender:o,modDataCount:s,large:a}},e.prototype.restorePipelines=function(e){var t=this,n=t._pipelineMap=we();e.eachSeries((function(e){var i=e.getProgressive(),r=e.uid;n.set(r,{id:r,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:i&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),t._pipe(e,e.dataTask)}))},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;W(this._allHandlers,(function(i){var r=e.get(i.uid)||e.set(i.uid,{}),o="";ve(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,r,t,n),i.overallReset&&this._createOverallStageTask(i,r,t,n)}),this)},e.prototype.prepareView=function(e,t,n,i){var r=e.renderTask,o=r.context;o.model=t,o.ecModel=n,o.api=i,r.__block=!e.incrementalPrepareRender,this._pipe(t,r)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,i){i=i||{};var r=!1,o=this;function a(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}W(e,(function(e,s){if(!i.visualType||i.visualType===e.visualType){var l=o._stageTaskMap.get(e.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var d,h=c.agentStubMap;h.each((function(e){a(i,e)&&(e.dirty(),d=!0)})),d&&c.dirty(),o.updatePayload(c,n);var p=o.getPerformArgs(c,i.block);h.each((function(e){e.perform(p)})),c.perform(p)&&(r=!0)}else u&&u.each((function(s,l){a(i,s)&&s.dirty();var u=o.getPerformArgs(s,i.block);u.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(u)&&(r=!0)}))}})),this.unfinished=r||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries((function(e){t=e.dataTask.perform()||t})),this.unfinished=t||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each((function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)}))},e.prototype.updatePayload=function(e,t){"remain"!==t&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,i){var r=this,o=t.seriesTaskMap,a=t.seriesTaskMap=we(),s=e.seriesType,l=e.getTargetSeries;function u(t){var s=t.uid,l=a.set(s,o&&o.get(s)||hg({plan:Ix,reset:Tx,count:Dx}));l.context={model:t,ecModel:n,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:r},r._pipe(t,l)}e.createOnAllSeries?n.eachRawSeries(u):s?n.eachRawSeriesByType(s,u):l&&l(n,i).each(u)},e.prototype._createOverallStageTask=function(e,t,n,i){var r=this,o=t.overallTask=t.overallTask||hg({reset:bx});o.context={ecModel:n,api:i,overallReset:e.overallReset,scheduler:r};var a=o.agentStubMap,s=o.agentStubMap=we(),l=e.seriesType,u=e.getTargetSeries,c=!0,d=!1,h="";function p(e){var t=e.uid,n=s.set(t,a&&a.get(t)||(d=!0,hg({reset:Sx,onDirty:Cx})));n.context={model:e,overallProgress:c},n.agent=o,n.__block=c,r._pipe(e,n)}ve(!e.createOnAllSeries,h),l?n.eachRawSeriesByType(l,p):u?u(n,i).each(p):(c=!1,W(n.getSeries(),p)),d&&o.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=t),i.tail&&i.tail.pipe(t),i.tail=t,t.__idxInPipeline=i.count++,t.__pipeline=i},e.wrapStageHandler=function(e,t){return Q(e)&&(e={overallReset:e,seriesType:Lx(e)}),e.uid=Ed("stageHandler"),t&&(e.visualType=t),e},e}();function bx(e){e.overallReset(e.ecModel,e.api,e.payload)}function Sx(e){return e.overallProgress&&Mx}function Mx(){this.agent.dirty(),this.getDownstream().dirty()}function Cx(){this.agent&&this.agent.dirty()}function Ix(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function Tx(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=ga(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?G(t,(function(e,t){return Ax(t)})):kx}var kx=Ax(0);function Ax(e){return function(t,n){var i=n.data,r=n.resetDefines[e];if(r&&r.dataEach)for(var o=t.start;o0&&c===r.length-u.length){var d=r.slice(0,c);"data"!==d&&(t.mainType=d,t[u.toLowerCase()]=e,s=!0)}}a.hasOwnProperty(r)&&(n[r]=e,s=!0),s||(i[r]=e)}))}return{cptQuery:t,dataQuery:n,otherQuery:i}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,r=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=t.cptQuery,l=t.dataQuery;return u(s,o,"mainType")&&u(s,o,"subType")&&u(s,o,"index","componentIndex")&&u(s,o,"name")&&u(s,o,"id")&&u(l,r,"name")&&u(l,r,"dataIndex")&&u(l,r,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(e,t.otherQuery,i,r));function u(e,t,n,i){return null==e[n]||t[i||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),jx=["symbol","symbolSize","symbolRotate","symbolOffset"],Zx=jx.concat(["symbolKeepAspect"]),$x={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual("legendIcon",e.legendIcon),e.hasSymbolVisual){for(var i={},r={},o=!1,a=0;a=0&&x_(l)?l:.5;var u=e.createRadialGradient(a,s,0,a,s,l);return u}function w_(e,t,n){for(var i="radial"===t.type?b_(e,t,n):__(e,t,n),r=t.colorStops,o=0;o0?"dashed"===e?[4*t,2*t]:"dotted"===e?[t]:ne(e)?[e]:J(e)?e:null:null}function T_(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&I_(t.lineDash,t.lineWidth),i=t.lineDashOffset;if(n){var r=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;r&&1!==r&&(n=G(n,(function(e){return e/r})),i/=r)}return[n,i]}var k_=new Sl(!0);function A_(e){var t=e.stroke;return!(null==t||"none"===t||!(e.lineWidth>0))}function D_(e){return"string"===typeof e&&"none"!==e}function L_(e){var t=e.fill;return null!=t&&"none"!==t}function P_(e,t){if(null!=t.fillOpacity&&1!==t.fillOpacity){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function O_(e,t){if(null!=t.strokeOpacity&&1!==t.strokeOpacity){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function R_(e,t,n){var i=gs(t.image,t.__image,n);if(ms(i)){var r=e.createPattern(i,t.repeat||"repeat");if("function"===typeof DOMMatrix&&r&&r.setTransform){var o=new DOMMatrix;o.translateSelf(t.x||0,t.y||0),o.rotateSelf(0,0,(t.rotation||0)*ke),o.scaleSelf(t.scaleX||1,t.scaleY||1),r.setTransform(o)}return r}}function E_(e,t,n,i){var r,o=A_(n),a=L_(n),s=n.strokePercent,l=s<1,u=!t.path;t.silent&&!l||!u||t.createPathProxy();var c=t.path||k_,d=t.__dirty;if(!i){var h=n.fill,p=n.stroke,f=a&&!!h.colorStops,g=o&&!!p.colorStops,v=a&&!!h.image,m=o&&!!p.image,y=void 0,x=void 0,_=void 0,b=void 0,w=void 0;(f||g)&&(w=t.getBoundingRect()),f&&(y=d?w_(e,h,w):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(x=d?w_(e,p,w):t.__canvasStrokeGradient,t.__canvasStrokeGradient=x),v&&(_=d||!t.__canvasFillPattern?R_(e,h,t):t.__canvasFillPattern,t.__canvasFillPattern=_),m&&(b=d||!t.__canvasStrokePattern?R_(e,p,t):t.__canvasStrokePattern,t.__canvasStrokePattern=_),f?e.fillStyle=y:v&&(_?e.fillStyle=_:a=!1),g?e.strokeStyle=x:m&&(b?e.strokeStyle=b:o=!1)}var S,M,C=t.getGlobalScale();c.setScale(C[0],C[1],t.segmentIgnoreThreshold),e.setLineDash&&n.lineDash&&(r=T_(t),S=r[0],M=r[1]);var I=!0;(u||d&Yt)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),I=!1),c.reset(),t.buildPath(c,t.shape,i),c.toStatic(),t.pathUpdated()),I&&c.rebuildPath(e,l?s:1),S&&(e.setLineDash(S),e.lineDashOffset=M),i||(n.strokeFirst?(o&&O_(e,n),a&&P_(e,n)):(a&&P_(e,n),o&&O_(e,n))),S&&e.setLineDash([])}function N_(e,t,n){var i=t.__image=gs(n.image,t.__image,t,t.onload);if(i&&ms(i)){var r=n.x||0,o=n.y||0,a=t.getWidth(),s=t.getHeight(),l=i.width/i.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=i.width,s=i.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;e.drawImage(i,u,c,n.sWidth,n.sHeight,r,o,a,s)}else if(n.sx&&n.sy){u=n.sx,c=n.sy;var d=a-u,h=s-c;e.drawImage(i,u,c,d,h,r,o,a,s)}else e.drawImage(i,r,o,a,s)}}function F_(e,t,n){var i,r=n.text;if(null!=r&&(r+=""),r){e.font=n.font||p,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var o=void 0,a=void 0;e.setLineDash&&n.lineDash&&(i=T_(t),o=i[0],a=i[1]),o&&(e.setLineDash(o),e.lineDashOffset=a),n.strokeFirst?(A_(n)&&e.strokeText(r,n.x,n.y),L_(n)&&e.fillText(r,n.x,n.y)):(L_(n)&&e.fillText(r,n.x,n.y),A_(n)&&e.strokeText(r,n.x,n.y)),o&&e.setLineDash([])}}var B_=["shadowBlur","shadowOffsetX","shadowOffsetY"],V_=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function z_(e,t,n,i,r){var o=!1;if(!i&&(n=n||{},t===n))return!1;if(i||t.opacity!==n.opacity){K_(e,r),o=!0;var a=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(a)?Rs.opacity:a}(i||t.blend!==n.blend)&&(o||(K_(e,r),o=!0),e.globalCompositeOperation=t.blend||Rs.blend);for(var s=0;s0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,t,n){if(!this[Eb])if(this._disposed)gw(this.id);else{var i,r,o;if(ie(t)&&(n=t.lazyUpdate,i=t.silent,r=t.replaceMerge,o=t.transition,t=t.notMerge),this[Eb]=!0,!this._model||t){var a=new lf(this._api),s=this._theme,l=this._model=new $p;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(e,{replaceMerge:r},xw);var u={seriesTransition:o,optionChanged:!0};if(n)this[Nb]={silent:i,updateParams:u},this[Eb]=!1,this.getZr().wakeUp();else{try{jb(this),Yb.update.call(this,null,u)}catch(wm){throw this[Nb]=null,this[Eb]=!1,wm}this._ssr||this._zr.flush(),this[Nb]=null,this[Eb]=!1,Qb.call(this,i),ew.call(this,i)}}},t.prototype.setTheme=function(){gg("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||mb&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var t=this._zr.painter;return t.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var t=this._zr.painter;return t.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(c.svgSupported){var e=this._zr,t=e.storage.getDisplayList();return W(t,(function(e){e.stopAnimation(null,!0)})),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(!this._disposed){e=e||{};var t=e.excludeComponents,n=this._model,i=[],r=this;W(t,(function(e){n.eachComponent({mainType:e},(function(e){var t=r._componentsMap[e.__viewId];t.group.ignore||(i.push(t),t.group.ignore=!0)}))}));var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return W(i,(function(e){e.group.ignore=!1})),o}gw(this.id)},t.prototype.getConnectedDataURL=function(e){if(!this._disposed){var t="svg"===e.type,n=this.group,i=Math.min,r=Math.max,o=1/0;if(Mw[n]){var a=o,s=o,l=-o,u=-o,c=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();W(Sw,(function(o,d){if(o.group===n){var h=t?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas(R(e)),p=o.getDom().getBoundingClientRect();a=i(p.left,a),s=i(p.top,s),l=r(p.right,l),u=r(p.bottom,u),c.push({dom:h,left:p.left,top:p.top})}})),a*=d,s*=d,l*=d,u*=d;var h=l-a,p=u-s,f=x.createCanvas(),g=Fo(f,{renderer:t?"svg":"canvas"});if(g.resize({width:h,height:p}),t){var v="";return W(c,(function(e){var t=e.left-a,n=e.top-s;v+=''+e.dom+""})),g.painter.getSvgRoot().innerHTML=v,e.connectedBackgroundColor&&g.painter.setBackgroundColor(e.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}return e.connectedBackgroundColor&&g.add(new hu({shape:{x:0,y:0,width:h,height:p},style:{fill:e.connectedBackgroundColor}})),W(c,(function(e){var t=new iu({style:{x:e.left*d-a,y:e.top*d-s,image:e.dom}});g.add(t)})),g.refreshImmediately(),f.toDataURL("image/"+(e&&e.type||"png"))}return this.getDataURL(e)}gw(this.id)},t.prototype.convertToPixel=function(e,t){return Xb(this,"convertToPixel",e,t)},t.prototype.convertFromPixel=function(e,t){return Xb(this,"convertFromPixel",e,t)},t.prototype.containPixel=function(e,t){if(!this._disposed){var n,i=this._model,r=Va(i,e);return W(r,(function(e,i){i.indexOf("Models")>=0&&W(e,(function(e){var r=e.coordinateSystem;if(r&&r.containPoint)n=n||!!r.containPoint(t);else if("seriesModels"===i){var o=this._chartsMap[e.__viewId];o&&o.containPoint&&(n=n||o.containPoint(t,e))}else 0}),this)}),this),!!n}gw(this.id)},t.prototype.getVisual=function(e,t){var n=this._model,i=Va(n,e,{defaultMainType:"series"}),r=i.seriesModel;var o=r.getData(),a=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?o.indexOfRawIndex(i.dataIndex):null;return null!=a?Xx(o,a,t):Kx(o,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;W(fw,(function(t){var n=function(n){var i,r=e.getModel(),o=n.target,a="globalout"===t;if(a?i={}:o&&n_(o,(function(e){var t=Lu(e);if(t&&null!=t.dataIndex){var n=t.dataModel||r.getSeriesByIndex(t.seriesIndex);return i=n&&n.getDataParams(t.dataIndex,t.dataType)||{},!0}if(t.eventData)return i=F({},t.eventData),!0}),!0),i){var s=i.componentType,l=i.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",l=i.seriesIndex);var u=s&&null!=l&&r.getComponent(s,l),c=u&&e["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];0,i.event=n,i.type=t,e._$eventProcessor.eventInfo={targetEl:o,packedEvent:i,model:u,view:c},e.trigger(t,i)}};n.zrEventfulCallAtLast=!0,e._zr.on(t,n,e)})),W(mw,(function(t,n){e._messageCenter.on(n,(function(e){this.trigger(n,e)}),e)})),W(["selectchanged"],(function(t){e._messageCenter.on(t,(function(e){this.trigger(t,e)}),e)})),t_(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed?gw(this.id):this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed)gw(this.id);else{this._disposed=!0;var e=this.getDom();e&&Ga(this.getDom(),Iw,"");var t=this,n=t._api,i=t._model;W(t._componentsViews,(function(e){e.dispose(i,n)})),W(t._chartsViews,(function(e){e.dispose(i,n)})),t._zr.dispose(),t._dom=t._model=t._chartsMap=t._componentsMap=t._chartsViews=t._componentsViews=t._scheduler=t._api=t._zr=t._throttledZrFlush=t._theme=t._coordSysMgr=t._messageCenter=null,delete Sw[t.id]}},t.prototype.resize=function(e){if(!this[Eb])if(this._disposed)gw(this.id);else{this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption("media"),i=e&&e.silent;this[Nb]&&(null==i&&(i=this[Nb].silent),n=!0,this[Nb]=null),this[Eb]=!0;try{n&&jb(this),Yb.update.call(this,{type:"resize",animation:F({duration:0},e&&e.animation)})}catch(wm){throw this[Eb]=!1,wm}this[Eb]=!1,Qb.call(this,i),ew.call(this,i)}}},t.prototype.showLoading=function(e,t){if(this._disposed)gw(this.id);else if(ie(e)&&(t=e,e=""),e=e||"default",this.hideLoading(),ww[e]){var n=ww[e](this._api,t),i=this._zr;this._loadingFX=n,i.add(n)}},t.prototype.hideLoading=function(){this._disposed?gw(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t.prototype.makeActionFromEvent=function(e){var t=F({},e);return t.type=mw[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed)gw(this.id);else if(ie(t)||(t={silent:!!t}),vw[e.type]&&this._model)if(this[Eb])this._pendingActions.push(e);else{var n=t.silent;Jb.call(this,e,n);var i=t.flush;i?this._zr.flush():!1!==i&&c.browser.weChat&&this._throttledZrFlush(),Qb.call(this,n),ew.call(this,n)}},t.prototype.updateLabelLayout=function(){pb.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed)gw(this.id);else{var t=e.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(t);0,i.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},t.internalField=function(){function e(e){e.clearColorPalette(),e.eachSeries((function(e){e.clearColorPalette()}))}function t(e){var t=[],n=[],i=!1;if(e.eachComponent((function(e,r){var o=r.get("zlevel")||0,a=r.get("z")||0,s=r.getZLevelKey();i=i||!!s,("series"===e?n:t).push({zlevel:o,z:a,idx:r.componentIndex,type:e,key:s})})),i){var r,o,a=t.concat(n);jt(a,(function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel})),W(a,(function(t){var n=e.getComponent(t.type,t.idx),i=t.zlevel,a=t.key;null!=r&&(i=Math.max(r,i)),a?(i===r&&a!==o&&i++,o=a):o&&(i===r&&i++,o=""),r=i,n.setZLevel(i)}))}}function n(e){for(var t=[],n=e.currentStates,i=0;it.get("hoverLayerThreshold")&&!c.node&&!c.worker&&t.eachSeries((function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered((function(e){e.states.emphasis&&(e.states.emphasis.hoverLayer=!0)}))}}))}function r(e,t){var n=e.get("blendMode")||null;t.eachRendered((function(e){e.isGroup||(e.style.blend=n)}))}function a(e,t){if(!e.preventAutoZ){var n=e.get("z")||0,i=e.get("zlevel")||0;t.eachRendered((function(e){return s(e,n,i,-1/0),!0}))}}function s(e,t,n,i){var r=e.getTextContent(),o=e.getTextGuideLine(),a=e.isGroup;if(a)for(var l=e.childrenRef(),u=0;u0?{duration:o,delay:i.get("delay"),easing:i.get("easing")}:null;t.eachRendered((function(e){if(e.states&&e.states.emphasis){if(Jc(e))return;if(e instanceof Yl&&jc(e),e.__dirty){var t=e.prevStates;t&&e.useStates(t)}if(r){e.stateTransition=a;var i=e.getTextContent(),o=e.getTextGuideLine();i&&(i.stateTransition=a),o&&(o.stateTransition=a)}e.__dirty&&n(e)}}))}jb=function(e){var t=e._scheduler;t.restorePipelines(e._model),t.prepareStageTasks(),Zb(e,!0),Zb(e,!1),t.plan()},Zb=function(e,t){for(var n=e._model,i=e._scheduler,r=t?e._componentsViews:e._chartsViews,o=t?e._componentsMap:e._chartsMap,a=e._zr,s=e._api,l=0;l=0)){Vw.push(n);var o=Nx.wrapStageHandler(n,r);o.__prio=t,o.__raw=n,e.push(o)}}function qw(e,t){ww[e]=t}function Hw(e,t,n){var i=vb("registerMap");i&&i(e,t,n)}var Ww=Pg;Bw(Ib,fx),Bw(Ab,vx),Bw(Ab,mx),Bw(Ib,$x),Bw(Ab,Yx),Bw(Ob,db),Dw(Pf),Lw(_b,Of),qw("default",xx),Ew({type:Gu,event:Gu,update:Gu},Te),Ew({type:Uu,event:Uu,update:Uu},Te),Ew({type:ju,event:ju,update:ju},Te),Ew({type:Zu,event:Zu,update:Zu},Te),Ew({type:$u,event:$u,update:$u},Te),Aw("light",Bx),Aw("dark",Gx);var Gw=[],Uw={registerPreprocessor:Dw,registerProcessor:Lw,registerPostInit:Pw,registerPostUpdate:Ow,registerUpdateLifecycle:Rw,registerAction:Ew,registerCoordinateSystem:Nw,registerLayout:Fw,registerVisual:Bw,registerTransform:Ww,registerLoading:qw,registerMap:Hw,registerImpl:gb,PRIORITY:Rb,ComponentModel:op,ComponentView:Ev,SeriesModel:Ov,ChartView:nx,registerComponentModel:function(e){op.registerClass(e)},registerComponentView:function(e){Ev.registerClass(e)},registerSeriesModel:function(e){Ov.registerClass(e)},registerChartView:function(e){nx.registerClass(e)},registerSubTypeDefaulter:function(e,t){op.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Bo(e,t)}};function jw(e){J(e)?W(e,(function(e){jw(e)})):V(Gw,e)>=0||(Gw.push(e),Q(e)&&(e={install:e}),e.install(Uw))}var Zw=2*Math.PI,$w=Sl.CMD,Yw=["top","right","bottom","left"];function Xw(e,t,n,i,r){var o=n.width,a=n.height;switch(e){case"top":i.set(n.x+o/2,n.y-t),r.set(0,-1);break;case"bottom":i.set(n.x+o/2,n.y+a+t),r.set(0,1);break;case"left":i.set(n.x-t,n.y+a/2),r.set(-1,0);break;case"right":i.set(n.x+o+t,n.y+a/2),r.set(1,0);break}}function Kw(e,t,n,i,r,o,a,s,l){a-=e,s-=t;var u=Math.sqrt(a*a+s*s);a/=u,s/=u;var c=a*n+e,d=s*n+t;if(Math.abs(i-r)%Zw<1e-4)return l[0]=c,l[1]=d,u-n;if(o){var h=i;i=kl(r),r=kl(h)}else i=kl(i),r=kl(r);i>r&&(r+=Zw);var p=Math.atan2(s,a);if(p<0&&(p+=Zw),p>=i&&p<=r||p+Zw>=i&&p+Zw<=r)return l[0]=c,l[1]=d,u-n;var f=n*Math.cos(i)+e,g=n*Math.sin(i)+t,v=n*Math.cos(r)+e,m=n*Math.sin(r)+t,y=(f-a)*(f-a)+(g-s)*(g-s),x=(v-a)*(v-a)+(m-s)*(m-s);return y0){t=t/180*Math.PI,iS.fromArray(e[0]),rS.fromArray(e[1]),oS.fromArray(e[2]),Yr.sub(aS,iS,rS),Yr.sub(sS,oS,rS);var n=aS.len(),i=sS.len();if(!(n<.001||i<.001)){aS.scale(1/n),sS.scale(1/i);var r=aS.dot(sS),o=Math.cos(t);if(o1&&Yr.copy(cS,oS),cS.toArray(e[1])}}}}function hS(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,iS.fromArray(e[0]),rS.fromArray(e[1]),oS.fromArray(e[2]),Yr.sub(aS,rS,iS),Yr.sub(sS,oS,rS);var i=aS.len(),r=sS.len();if(!(i<.001||r<.001)){aS.scale(1/i),sS.scale(1/r);var o=aS.dot(t),a=Math.cos(n);if(o=l)Yr.copy(cS,oS);else{cS.scaleAndAdd(sS,s/Math.tan(Math.PI/2-c));var d=oS.x!==rS.x?(cS.x-rS.x)/(oS.x-rS.x):(cS.y-rS.y)/(oS.y-rS.y);if(isNaN(d))return;d<0?Yr.copy(cS,rS):d>1&&Yr.copy(cS,oS)}cS.toArray(e[1])}}}}function pS(e,t,n,i){var r="normal"===n,o=r?e:e.ensureState(n);o.ignore=t;var a=i.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=i.getModel("lineStyle").getLineStyle();r?e.useStyle(s):o.style=s}function fS(e,t){var n=t.smooth,i=t.points;if(i)if(e.moveTo(i[0][0],i[0][1]),n>0&&i.length>=3){var r=We(i[0],i[1]),o=We(i[1],i[2]);if(!r||!o)return e.lineTo(i[1][0],i[1][1]),void e.lineTo(i[2][0],i[2][1]);var a=Math.min(r,o)*n,s=je([],i[1],i[0],a/r),l=je([],i[1],i[2],a/o),u=je([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var c=1;c0&&o&&w(-d/a,0,a);var v,m,y=e[0],x=e[a-1];return _(),v<0&&S(-v,.8),m<0&&S(m,.8),_(),b(v,m,1),b(m,v,-1),_(),v<0&&M(-v),m<0&&M(m),u}function _(){v=y.rect[t]-i,m=r-x.rect[t]-x.rect[n]}function b(e,t,n){if(e<0){var i=Math.min(t,-e);if(i>0){w(i*n,0,a);var r=i+e;r<0&&S(-r*n,1)}else S(-e*n,1)}}function w(n,i,r){0!==n&&(u=!0);for(var o=i;o0)for(l=0;l0;l--){h=o[l-1]*d;w(-h,l,a)}}}function M(e){var t=e<0?-1:1;e=Math.abs(e);for(var n=Math.ceil(e/(a-1)),i=0;i0?w(n,0,i+1):w(-n,a-i-1,a),e-=n,e<=0)return}}function xS(e,t,n,i){return yS(e,"x","width",t,n,i)}function _S(e,t,n,i){return yS(e,"y","height",t,n,i)}function bS(e){var t=[];e.sort((function(e,t){return t.priority-e.priority}));var n=new oo(0,0,0,0);function i(e){if(!e.ignore){var t=e.ensureState("emphasis");null==t.ignore&&(t.ignore=!1)}e.ignore=!0}for(var r=0;r=0&&n.attr(r.oldLayoutSelect),V(c,"emphasis")>=0&&n.attr(r.oldLayoutEmphasis)),Xc(n,l,t,s)}else if(n.attr(l),!yd(n).valueAnimation){var d=he(n.style.opacity,1);n.style.opacity=0,Kc(n,{style:{opacity:d}},t,s)}if(r.oldLayout=l,n.states.select){var h=r.oldLayoutSelect={};kS(h,l,AS),kS(h,n.states.select,AS)}if(n.states.emphasis){var p=r.oldLayoutEmphasis={};kS(p,l,AS),kS(p,n.states.emphasis,AS)}_d(n,s,u,t,t)}if(i&&!i.ignore&&!i.invisible){r=TS(i),o=r.oldLayout;var f={points:i.shape.points};o?(i.attr({shape:o}),Xc(i,{shape:f},t)):(i.setShape(f),i.style.strokePercent=0,Kc(i,{style:{strokePercent:1}},t)),r.oldLayout=f}},e}();const LS=DS;var PS=Fa();function OS(e){e.registerUpdateLifecycle("series:beforeupdate",(function(e,t,n){var i=PS(t).labelManager;i||(i=PS(t).labelManager=new LS),i.clearLabels()})),e.registerUpdateLifecycle("series:layoutlabels",(function(e,t,n){var i=PS(t).labelManager;n.updatedSeries.forEach((function(e){i.addLabelsOfSeries(t.getViewOfSeriesModel(e))})),i.updateLayoutConfig(t),i.layout(t),i.processLabelsOverall()}))}function RS(e,t,n){var i=x.createCanvas(),r=t.getWidth(),o=t.getHeight(),a=i.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=r+"px",a.height=o+"px",i.setAttribute("data-zr-dom-id",e)),i.width=r*n,i.height=o*n,i}jw(OS);var ES=function(e){function t(t,n,i){var r,o=e.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null,i=i||Sr,"string"===typeof t?r=RS(t,n,i):ie(t)&&(r=t,t=r.id),o.id=t,o.dom=r;var a=r.style;return a&&(Ce(r),r.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),o.painter=n,o.dpr=i,o}return De(t,e),t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=RS("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),1!==e&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,t,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var r,o=[],a=this.maxRepaintRectCount,s=!1,l=new oo(0,0,0,0);function u(e){if(e.isFinite()&&!e.isZero())if(0===o.length){var t=new oo(0,0,0,0);t.copy(e),o.push(t)}else{for(var n=!1,i=1/0,r=0,u=0;u=a)}}for(var c=this.__startIndex;c15)break}}n.prevElClipPaths&&c.restore()};if(h)if(0===h.length)s=l.__endIndex;else for(var _=p.dpr,b=0;b0&&e>i[0]){for(s=0;se)break;a=n[i[s]]}if(i.splice(s+1,0,e),n[e]=t,!t.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(t.dom,l.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.__painter=this}},e.prototype.eachLayer=function(e,t){for(var n=this._zlevelList,i=0;i0?VS:0),this._needsManuallyCompositing),u.__builtin__||O("ZLevel "+l+" has been used by unkown layer "+u.id),u!==a&&(u.__used=!0,u.__startIndex!==o&&(u.__dirty=!0),u.__startIndex=o,u.incremental?u.__drawIndex=-1:u.__drawIndex=o,t(o),a=u),i.__dirty&Zt&&!i.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=o))}t(o),this.eachBuiltinLayer((function(e,t){!e.__used&&e.getElementCount()>0&&(e.__dirty=!0,e.__startIndex=e.__endIndex=e.__drawIndex=0),e.__dirty&&e.__drawIndex<0&&(e.__drawIndex=e.__startIndex)}))},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(e){e.clear()},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e,W(this._layers,(function(e){e.setUnpainted()}))},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?E(n[e],t,!0):n[e]=t;for(var i=0;i=YS:-l>=YS),h=l>0?l%YS:l%YS+YS,p=!1;p=!!d||!di(c)&&h>=$S===!!u;var f=e+n*ZS(o),g=t+i*jS(o);this._start&&this._add("M",f,g);var v=Math.round(r*XS);if(d){var m=1/this._p,y=(u?1:-1)*(YS-m);this._add("A",n,i,v,1,+u,e+n*ZS(o+y),t+i*jS(o+y)),m>.01&&this._add("A",n,i,v,0,+u,f,g)}else{var x=e+n*ZS(a),_=t+i*jS(a);this._add("A",n,i,v,+p,+u,x,_)}},e.prototype.rect=function(e,t,n,i){this._add("M",e,t),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(e,t,n,i,r,o,a,s,l){for(var u=[],c=this._p,d=1;d"}function pM(e){return""}function fM(e,t){t=t||{};var n=t.newline?"\n":"";function i(e){var t=e.children,r=e.tag,o=e.attrs;return hM(r,o)+(e.text||"")+(t?""+n+G(t,(function(e){return i(e)})).join(n)+n:"")+pM(r)}return i(e)}function gM(e,t,n){n=n||{};var i=n.newline?"\n":"",r=" {"+i,o=i+"}",a=G($(e),(function(t){return t+r+G($(e[t]),(function(n){return n+":"+e[t][n]+";"})).join(i)+o})).join(i),s=G($(t),(function(e){return"@keyframes "+e+r+G($(t[e]),(function(n){return n+r+G($(t[e][n]),(function(i){var r=t[e][n][i];return"d"===i&&(r='path("'+r+'")'),i+":"+r+";"})).join(i)+o})).join(i)+o})).join(i);return a||s?[""].join(i):""}function vM(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function mM(e,t,n,i){return dM("svg","root",{width:e,height:t,xmlns:aM,"xmlns:xlink":sM,version:"1.1",baseProfile:"full",viewBox:!!i&&"0 0 "+e+" "+t},n)}var yM={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},xM="transform-origin";function _M(e,t,n){var i=F({},e.shape);F(i,t),e.buildPath(n,i);var r=new JS;return r.reset(Ii(e)),n.rebuildPath(r,1),r.generateStr(),r.getStr()}function bM(e,t){var n=t.originX,i=t.originY;(n||i)&&(e[xM]=n+"px "+i+"px")}var wM={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function SM(e,t){var n=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function MM(e,t,n){var i,r,o=e.shape.paths,a={};if(W(o,(function(e){var t=vM(n.zrId);t.animation=!0,IM(e,{},t,!0);var o=t.cssAnims,s=t.cssNodes,l=$(o),u=l.length;if(u){r=l[u-1];var c=o[r];for(var d in c){var h=c[d];a[d]=a[d]||{d:""},a[d].d+=h.d||""}for(var p in s){var f=s[p].animation;f.indexOf(r)>=0&&(i=f)}}})),i){t.d=!1;var s=SM(a,n);return i.replace(r,s)}}function CM(e){return ee(e)?yM[e]?"cubic-bezier("+yM[e]+")":Pn(e)?e:"":""}function IM(e,t,n,i){var r=e.animators,o=r.length,a=[];if(e instanceof ey){var s=MM(e,t,n);if(s)a.push(s);else if(!o)return}else if(!o)return;for(var l={},u=0;u0})).length){var A=SM(c,n);return A+" "+r[0]+" both"}}for(var v in l){s=g(l[v]);s&&a.push(s)}if(a.length){var m=n.zrId+"-cls-"+n.cssClassIdx++;n.cssNodes["."+m]={animation:a.join(",")},t["class"]=m}}var TM=Math.round;function kM(e){return e&&ee(e.src)}function AM(e){return e&&Q(e.toDataURL)}function DM(e,t,n,i){oM((function(r,o){var a="fill"===r||"stroke"===r;a&&Mi(o)?GM(t,e,r,i):a&&bi(o)?UM(n,e,r,i):e[r]=o}),t,n,!1),WM(n,e,i)}function LM(e){return di(e[0]-1)&&di(e[1])&&di(e[2])&&di(e[3]-1)}function PM(e){return di(e[4])&&di(e[5])}function OM(e,t,n){if(t&&(!PM(t)||!LM(t))){var i=n?10:1e4;e.transform=LM(t)?"translate("+TM(t[4]*i)/i+" "+TM(t[5]*i)/i+")":fi(t)}}function RM(e,t,n){for(var i=e.points,r=[],o=0;ou?(a=null==n[h+1]?null:n[h+1].elm,lC(e,a,n,l,h)):uC(e,t,s,u))}function hC(e,t){var n=t.elm=e.elm,i=e.children,r=t.children;e!==t&&(cC(e,t),iC(t.text)?rC(i)&&rC(r)?i!==r&&dC(n,i,r):rC(r)?(rC(e.text)&&QM(n,""),lC(n,null,r,0,r.length-1)):rC(i)?uC(n,i,0,i.length-1):rC(e.text)&&QM(n,""):e.text!==t.text&&(rC(i)&&uC(n,i,0,i.length-1),QM(n,t.text)))}function pC(e,t){if(aC(e,t))hC(e,t);else{var n=e.elm,i=KM(n);sC(t),null!==i&&($M(i,t.elm,JM(n)),uC(i,[e],0,0))}return t}var fC=0,gC=function(){function e(e,t,n){if(this.type="svg",this.refreshHover=vC("refreshHover"),this.configLayer=vC("configLayer"),this.storage=t,this._opts=n=F({},n),this.root=e,this._id="zr"+fC++,this._oldVNode=mM(n.width,n.height),e&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var r=this._svgDom=this._oldVNode.elm=cM("svg");cC(null,this._oldVNode),i.appendChild(r),e.appendChild(i)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",pC(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return HM(e,vM(this._id))},e.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),n=this._backgroundColor,i=this._width,r=this._height,o=vM(this._id);o.animation=e.animation,o.willUpdate=e.willUpdate,o.compress=e.compress;var a=[];if(n&&"none"!==n){var s=ui(n),l=s.color,u=s.opacity;this._bgVNode=dM("rect","bg",{width:i,height:r,x:"0",y:"0",id:"0",fill:l,"fill-opacity":u}),a.push(this._bgVNode)}else this._bgVNode=null;var c=e.compress?null:this._mainVNode=dM("g","main",{},[]);this._paintList(t,o,c?c.children:a),c&&a.push(c);var d=G($(o.defs),(function(e){return o.defs[e]}));if(d.length&&a.push(dM("defs","defs",{},d)),e.animation){var h=gM(o.cssNodes,o.cssAnims,{newline:!0});if(h){var p=dM("style","stl",{},[],h);a.push(p)}}return mM(i,r,a,e.useViewBox)},e.prototype.renderToString=function(e){return e=e||{},fM(this.renderToVNode({animation:he(e.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:he(e.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e;var t=this._bgVNode;if(t&&t.elm){var n=ui(e),i=n.color,r=n.opacity;t.elm.setAttribute("fill",i),r<1&&t.elm.setAttribute("fill-opacity",r)}},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(e,t,n){for(var i,r,o=e.length,a=[],s=0,l=0,u=0;u=0;f--)if(d&&r&&d[f]===r[f])break;for(var g=p-1;g>f;g--)s--,i=a[s-1];for(var v=f+1;v1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(r,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},i={},r=[],o=[];this._initIndexMap(e,n,r,"_oldKeyGetter"),this._initIndexMap(t,i,o,"_newKeyGetter");for(var a=0;a1&&1===d)this._updateManyToOne&&this._updateManyToOne(u,l),i[s]=null;else if(1===c&&d>1)this._updateOneToMany&&this._updateOneToMany(u,l),i[s]=null;else if(1===c&&1===d)this._update&&this._update(u,l),i[s]=null;else if(c>1&&d>1)this._updateManyToMany&&this._updateManyToMany(u,l),i[s]=null;else if(c>1)for(var h=0;h1)for(var a=0;a30}var FC,BC,VC,zC,qC,HC,WC,GC=ie,UC=G,jC="undefined"===typeof Int32Array?Array:Int32Array,ZC="e\0\0",$C=-1,YC=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],XC=["_approximateExtent"],KC=function(){function e(e,t){var n;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var i=!1;OC(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(i=!0,n=e),n=n||["x","y"];for(var r={},o=[],a={},s=!1,l={},u=0;u=t)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var r=this._nameList,o=this._idList,a=i.getSource().sourceFormat,s=a===cp;if(s&&!i.pure)for(var l=[],u=e;u0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,i=n[e];i||(i=n[e]={});var r=i[t];return null==r&&(r=this.getVisual(t),J(r)?r=r.slice():GC(r)&&(r=F({},r)),i[t]=r),r},e.prototype.setItemVisual=function(e,t,n){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,GC(t)?F(i,t):i[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){GC(e)?F(this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?F(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){var n=this.hostModel&&this.hostModel.seriesIndex;Pu(n,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){W(this._graphicEls,(function(n,i){n&&e&&e.call(t,n,i)}))},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:UC(this.dimensions,this._getDimInfo,this),this.hostModel)),qC(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];Q(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(fe(arguments)))})},e.internalField=function(){FC=function(e){var t=e._invertedIndicesMap;W(t,(function(n,i){var r=e._dimInfos[i],o=r.ordinalMeta,a=e._store;if(o){n=t[i]=new jC(o.categories.length);for(var s=0;s1&&(s+="__ec__"+u),i[t]=s}}}(),e}();const JC=KC;function QC(e,t){qf(e)||(e=Wf(e)),t=t||{};var n=t.coordDimensions||[],i=t.dimensionsDefine||e.dimensionsDefine||[],r=we(),o=[],a=tI(e,n,i,t.dimensionsCount),s=t.canOmitUnusedDimensions&&NC(a),l=i===e.dimensionsDefine,u=l?EC(e):RC(i),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,a));for(var d=we(c),h=new zg(a),p=0;p0&&(i.name=r+(o-1)),o++,t.set(r,o)}}function tI(e,t,n,i){var r=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,i||0);return W(t,(function(e){var t;ie(e)&&(t=e.dimsDef)&&(r=Math.max(r,t.length))})),r}function nI(e,t,n){var i=t.data;if(n||i.hasOwnProperty(e)){var r=0;while(i.hasOwnProperty(e+r))r++;e+=r}return t.set(e,!0),e}var iI=function(){function e(e){this.coordSysDims=[],this.axisMap=we(),this.categoryAxisMap=we(),this.coordSysName=e}return e}();function rI(e){var t=e.get("coordinateSystem"),n=new iI(t),i=oI[t];if(i)return i(e,n,n.axisMap,n.categoryAxisMap),n}var oI={cartesian2d:function(e,t,n,i){var r=e.getReferringComponents("xAxis",qa).models[0],o=e.getReferringComponents("yAxis",qa).models[0];t.coordSysDims=["x","y"],n.set("x",r),n.set("y",o),aI(r)&&(i.set("x",r),t.firstCategoryDimIndex=0),aI(o)&&(i.set("y",o),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,i){var r=e.getReferringComponents("singleAxis",qa).models[0];t.coordSysDims=["single"],n.set("single",r),aI(r)&&(i.set("single",r),t.firstCategoryDimIndex=0)},polar:function(e,t,n,i){var r=e.getReferringComponents("polar",qa).models[0],o=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),aI(o)&&(i.set("radius",o),t.firstCategoryDimIndex=0),aI(a)&&(i.set("angle",a),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},geo:function(e,t,n,i){t.coordSysDims=["lng","lat"]},parallel:function(e,t,n,i){var r=e.ecModel,o=r.getComponent("parallel",e.get("parallelIndex")),a=t.coordSysDims=o.dimensions.slice();W(o.parallelAxisIndex,(function(e,o){var s=r.getComponent("parallelAxis",e),l=a[o];n.set(l,s),aI(s)&&(i.set(l,s),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=o))}))}};function aI(e){return"category"===e.get("type")}function sI(e,t,n){n=n||{};var i,r,o,a=n.byIndex,s=n.stackedCoordDimension;lI(t)?i=t:(r=t.schema,i=r.dimensions,o=t.store);var l,u,c,d,h=!(!e||!e.get("stack"));if(W(i,(function(e,t){ee(e)&&(i[t]=e={name:e}),h&&!e.isExtraCoord&&(a||l||!e.ordinalMeta||(l=e),u||"ordinal"===e.type||"time"===e.type||s&&s!==e.coordDim||(u=e))})),!u||a||l||(a=!0),u){c="__\0ecstackresult_"+e.id,d="__\0ecstackedover_"+e.id,l&&(l.createInvertedIndices=!0);var p=u.coordDim,f=u.type,g=0;W(i,(function(e){e.coordDim===p&&g++}));var v={name:c,coordDim:p,coordDimIndex:g,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},m={name:d,coordDim:d,coordDimIndex:g+1,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};r?(o&&(v.storeDimIndex=o.ensureCalculationDimension(d,f),m.storeDimIndex=o.ensureCalculationDimension(c,f)),r.appendCalculationDimension(v),r.appendCalculationDimension(m)):(i.push(v),i.push(m))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:d,stackResultDimension:c}}function lI(e){return!OC(e.schema)}function uI(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function cI(e,t){return uI(e,t)?e.getCalculationInfo("stackResultDimension"):t}function dI(e,t){var n,i=e.get("coordinateSystem"),r=ef.get(i);return t&&t.coordSysDims&&(n=G(t.coordSysDims,(function(e){var n={name:e},i=t.axisMap.get(e);if(i){var r=i.get("type");n.type=IC(r)}return n}))),n||(n=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),n}function hI(e,t,n){var i,r;return n&&W(e,(function(e,o){var a=e.coordDim,s=n.categoryAxisMap.get(a);s&&(null==i&&(i=o),e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),null!=e.otherDims.itemName&&(r=!0)})),r||null==i||(e[i].otherDims.itemName=0),i}function pI(e,t,n){n=n||{};var i,r=t.getSourceManager(),o=!1;e?(o=!0,i=Wf(e)):(i=r.getSource(),o=i.sourceFormat===cp);var a=rI(t),s=dI(t,a),l=n.useEncodeDefaulter,u=Q(l)?l:l?K(bp,s,t):null,c={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o},d=QC(i,c),h=hI(d.dimensions,n.createInvertedIndices,a),p=o?null:r.getSharedDataStore(d),f=sI(t,{schema:d,store:p}),g=new JC(d,t);g.setCalculationInfo(f);var v=null!=h&&fI(i)?function(e,t,n,i){return i===h?n:this.defaultDimValueGetter(e,t,n,i)}:null;return g.hasItemOption=!1,g.initData(o?i:p,null,v),g}function fI(e){if(e.sourceFormat===cp){var t=gI(e.data||[]);return!J(ya(t))}}function gI(e){var t=0;while(t-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),t},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(Ov);const yI=mI;function xI(e,t){var n=e.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i){var r=lg(e,t,n[0]);return null!=r?r+"":null}if(i){for(var o=[],a=0;a=0&&i.push(t[o])}return i.join(" ")}var bI=function(e){function t(t,n,i,r){var o=e.call(this)||this;return o.updateData(t,n,i,r),o}return o(t,e),t.prototype._createSymbol=function(e,t,n,i,r){this.removeAll();var o=v_(e,-1,-1,2,2,null,r);o.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),o.drift=wI,this._symbolType=e,this.add(o)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){vc(this.childAt(0))},t.prototype.downplay=function(){mc(this.childAt(0))},t.prototype.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},t.prototype.setDraggable=function(e,t){var n=this.childAt(0);n.draggable=e,n.cursor=!t&&e?"move":n.cursor},t.prototype.updateData=function(e,n,i,r){this.silent=!1;var o=e.getItemVisual(n,"symbol")||"circle",a=e.hostModel,s=t.getSymbolSize(e,n),l=o!==this._symbolType,u=r&&r.disableAnimation;if(l){var c=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,e,n,s,c)}else{var d=this.childAt(0);d.silent=!1;var h={scaleX:s[0]/2,scaleY:s[1]/2};u?d.attr(h):Xc(d,h,a,n),nd(d)}if(this._updateCommon(e,n,s,i,r),l){d=this.childAt(0);if(!u){h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,Kc(d,h,a,n)}}u&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,t,n,i,r){var o,a,s,l,u,c,d,h,p,f=this.childAt(0),g=e.hostModel;if(i&&(o=i.emphasisItemStyle,a=i.blurItemStyle,s=i.selectItemStyle,l=i.focus,u=i.blurScope,d=i.labelStatesModels,h=i.hoverScale,p=i.cursorStyle,c=i.emphasisDisabled),!i||e.hasItemOption){var v=i&&i.itemModel?i.itemModel:e.getItemModel(t),m=v.getModel("emphasis");o=m.getModel("itemStyle").getItemStyle(),s=v.getModel(["select","itemStyle"]).getItemStyle(),a=v.getModel(["blur","itemStyle"]).getItemStyle(),l=m.get("focus"),u=m.get("blurScope"),c=m.get("disabled"),d=ld(v),h=m.getShallow("scale"),p=v.getShallow("cursor")}var y=e.getItemVisual(t,"symbolRotate");f.attr("rotation",(y||0)*Math.PI/180||0);var x=y_(e.getItemVisual(t,"symbolOffset"),n);x&&(f.x=x[0],f.y=x[1]),p&&f.attr("cursor",p);var _=e.getItemVisual(t,"style"),b=_.fill;if(f instanceof iu){var w=f.style;f.useStyle(F({image:w.image,x:w.x,y:w.y,width:w.width,height:w.height},_))}else f.__isEmptyBrush?f.useStyle(F({},_)):f.useStyle(_),f.style.decal=null,f.setColor(b,r&&r.symbolInnerColor),f.style.strokeNoScale=!0;var S=e.getItemVisual(t,"liftZ"),M=this._z2;null!=S?null==M&&(this._z2=f.z2,f.z2+=S):null!=M&&(f.z2=M,this._z2=null);var C=r&&r.useNameLabel;function I(t){return C?e.getName(t):xI(e,t)}sd(f,d,{labelFetcher:g,labelDataIndex:t,defaultText:I,inheritColor:b,defaultOpacity:_.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var T=f.ensureState("emphasis");if(T.style=o,f.ensureState("select").style=s,f.ensureState("blur").style=a,h){var k=Math.max(ne(h)?h:1.1,3/this._sizeY);T.scaleX=this._sizeX*k,T.scaleY=this._sizeY*k}this.setSymbolScale(1),Ec(this,l,u,c)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,n){var i=this.childAt(0),r=Lu(this).dataIndex,o=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var a=i.getTextContent();a&&Qc(a,{style:{opacity:0}},t,{dataIndex:r,removeOpt:o,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Qc(i,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:r,cb:e,removeOpt:o})},t.getSymbolSize=function(e,t){return m_(e.getItemVisual(t,"symbolSize"))},t}(Lo);function wI(e,t){this.parent.drift(e,t)}const SI=bI;function MI(e,t,n,i){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(i.isIgnore&&i.isIgnore(n))&&!(i.clipShape&&!i.clipShape.contain(t[0],t[1]))&&"none"!==e.getItemVisual(n,"symbol")}function CI(e){return null==e||ie(e)||(e={isIgnore:e}),e||{}}function II(e){var t=e.hostModel,n=t.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:ld(t),cursorStyle:t.get("cursor")}}var TI=function(){function e(e){this.group=new Lo,this._SymbolCtor=e||SI}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=CI(t);var n=this.group,i=e.hostModel,r=this._data,o=this._SymbolCtor,a=t.disableAnimation,s=II(e),l={disableAnimation:a},u=t.getSymbolPoint||function(t){return e.getItemLayout(t)};r||n.removeAll(),e.diff(r).add((function(i){var r=u(i);if(MI(e,r,i,t)){var a=new o(e,i,s,l);a.setPosition(r),e.setItemGraphicEl(i,a),n.add(a)}})).update((function(c,d){var h=r.getItemGraphicEl(d),p=u(c);if(MI(e,p,c,t)){var f=e.getItemVisual(c,"symbol")||"circle",g=h&&h.getSymbolType&&h.getSymbolType();if(!h||g&&g!==f)n.remove(h),h=new o(e,c,s,l),h.setPosition(p);else{h.updateData(e,c,s,l);var v={x:p[0],y:p[1]};a?h.attr(v):Xc(h,v,i)}n.add(h),e.setItemGraphicEl(c,h)}else n.remove(h)})).remove((function(e){var t=r.getItemGraphicEl(e);t&&t.fadeOut((function(){n.remove(t)}),i)})).execute(),this._getSymbolPoint=u,this._data=e},e.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl((function(t,n){var i=e._getSymbolPoint(n);t.setPosition(i),t.markRedraw()}))},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=II(e),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n){function i(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=CI(n);for(var r=e.start;r0?n=i[0]:i[1]<0&&(n=i[1]),n}function LI(e,t,n,i){var r=NaN;e.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=e.valueStart);var o=e.baseDataOffset,a=[];return a[o]=n.get(e.baseDim,i),a[1-o]=r,t.dataToPoint(a)}var PI="undefined"!==typeof Float32Array,OI=PI?Float32Array:Array;function RI(e){return J(e)?PI?new Float32Array(e):e:new OI(e)}function EI(e,t){var n=[];return t.diff(e).add((function(e){n.push({cmd:"+",idx:e})})).update((function(e,t){n.push({cmd:"=",idx:t,idx1:e})})).remove((function(e){n.push({cmd:"-",idx:e})})).execute(),n}function NI(e,t,n,i,r,o,a,s){for(var l=EI(e,t),u=[],c=[],d=[],h=[],p=[],f=[],g=[],v=AI(r,t,a),m=e.getLayout("points")||[],y=t.getLayout("points")||[],x=0;x=r||g<0)break;if(VI(m,y)){if(l){g+=o;continue}break}if(g===n)e[o>0?"moveTo":"lineTo"](m,y),d=m,h=y;else{var x=m-u,_=y-c;if(x*x+_*_<.5){g+=o;continue}if(a>0){var b=g+o,w=t[2*b],S=t[2*b+1];while(w===m&&S===y&&v=i||VI(w,S))p=m,f=y;else{I=w-u,T=S-c;var D=m-u,L=w-m,P=y-c,O=S-y,R=void 0,E=void 0;if("x"===s){R=Math.abs(D),E=Math.abs(L);var N=I>0?1:-1;p=m-N*R*a,f=y,k=m+N*E*a,A=y}else if("y"===s){R=Math.abs(P),E=Math.abs(O);var F=T>0?1:-1;p=m,f=y-F*R*a,k=m,A=y+F*E*a}else R=Math.sqrt(D*D+P*P),E=Math.sqrt(L*L+O*O),C=E/(E+R),p=m-I*a*(1-C),f=y-T*a*(1-C),k=m+I*a*C,A=y+T*a*C,k=FI(k,BI(w,m)),A=FI(A,BI(S,y)),k=BI(k,FI(w,m)),A=BI(A,FI(S,y)),I=k-m,T=A-y,p=m-I*R/E,f=y-T*R/E,p=FI(p,BI(u,m)),f=FI(f,BI(c,y)),p=BI(p,FI(u,m)),f=BI(f,FI(c,y)),I=m-p,T=y-f,k=m+I*E/R,A=y+T*E/R}e.bezierCurveTo(d,h,p,f,m,y),d=k,h=A}else e.lineTo(m,y)}u=m,c=y,g+=o}return v}var qI=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),HI=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polyline",n}return o(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new qI},t.prototype.buildPath=function(e,t){var n=t.points,i=0,r=n.length/2;if(t.connectNulls){for(;r>0;r--)if(!VI(n[2*r-2],n[2*r-1]))break;for(;i=0){var y=s?(h-i)*m+i:(d-n)*m+n;return s?[e,y]:[y,e]}n=d,i=h;break;case a.C:d=o[u++],h=o[u++],p=o[u++],f=o[u++],g=o[u++],v=o[u++];var x=s?xn(n,d,p,g,e,l):xn(i,h,f,v,e,l);if(x>0)for(var _=0;_=0){y=s?mn(i,h,f,v,b):mn(n,d,p,g,b);return s?[e,y]:[y,e]}}n=g,i=v;break}}},t}(Yl),WI=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(qI),GI=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polygon",n}return o(t,e),t.prototype.getDefaultShape=function(){return new WI},t.prototype.buildPath=function(e,t){var n=t.points,i=t.stackedOnPoints,r=0,o=n.length/2,a=t.smoothMonotone;if(t.connectNulls){for(;o>0;o--)if(!VI(n[2*o-2],n[2*o-1]))break;for(;rt){i?r.push(a(i,l,t)):n&&r.push(a(n,l,0),a(n,l,t));break}n&&(r.push(a(n,l,0)),n=null),r.push(l),i=l}}return r}function nT(e,t,n){var i=e.getVisual("visualMeta");if(i&&i.length&&e.count()&&"cartesian2d"===t.type){for(var r,o,a=i.length-1;a>=0;a--){var s=e.getDimensionInfo(i[a].dimension);if(r=s&&s.coordDim,"x"===r||"y"===r){o=i[a];break}}if(o){var l=t.getAxis(r),u=G(o.stops,(function(e){return{coord:l.toGlobalCoord(l.dataToCoord(e.value)),color:e.color}})),c=u.length,d=o.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),d.reverse());var h=tT(u,"x"===r?n.getWidth():n.getHeight()),p=h.length;if(!p&&c)return u[0].coord<0?d[1]?d[1]:u[c-1].color:d[0]?d[0]:u[0].color;var f=10,g=h[0].coord-f,v=h[p-1].coord+f,m=v-g;if(m<.001)return"transparent";W(h,(function(e){e.offset=(e.coord-g)/m})),h.push({offset:p?h[p-1].offset:.5,color:d[1]||"transparent"}),h.unshift({offset:p?h[0].offset:.5,color:d[0]||"transparent"});var y=new ry(0,0,0,0,h,!0);return y[r]=g,y[r+"2"]=v,y}}}function iT(e,t,n){var i=e.get("showAllSymbol"),r="auto"===i;if(!i||r){var o=n.getAxesByScale("ordinal")[0];if(o&&(!r||!rT(o,t))){var a=t.mapDimension(o.dim),s={};return W(o.getViewLabels(),(function(e){var t=o.scale.getRawOrdinalNumber(e.tickValue);s[t]=1})),function(e){return!s.hasOwnProperty(t.get(a,e))}}}}function rT(e,t){var n=e.getExtent(),i=Math.abs(n[1]-n[0])/e.scale.count();isNaN(i)&&(i=0);for(var r=t.count(),o=Math.max(1,Math.round(r/5)),a=0;ai)return!1;return!0}function oT(e,t){return isNaN(e)||isNaN(t)}function aT(e){for(var t=e.length/2;t>0;t--)if(!oT(e[2*t-2],e[2*t-1]))break;return t-1}function sT(e,t){return[e[2*t],e[2*t+1]]}function lT(e,t,n){for(var i,r,o=e.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u=t||i>=t&&r<=t){l=u;break}s=u,i=r}else i=r;return{range:[s,l],t:(t-i)/(r-i)}}function uT(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t0&&"bolder"===e.get(["emphasis","lineStyle","width"])){var R=p.getState("emphasis").style;R.lineWidth=+p.style.lineWidth+1}Lu(p).seriesIndex=e.seriesIndex,Ec(p,L,P,O);var E=JI(e.get("smooth")),N=e.get("smoothMonotone");if(p.setShape({smooth:E,smoothMonotone:N,connectNulls:w}),f){var F=a.getCalculationInfo("stackedOnSeries"),V=0;f.useStyle(B(l.getAreaStyle(),{fill:T,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),F&&(V=JI(F.get("smooth"))),f.setShape({smooth:E,stackedOnSmooth:V,smoothMonotone:N,connectNulls:w}),Vc(f,e,"areaStyle"),Lu(f).seriesIndex=e.seriesIndex,Ec(f,L,P,O)}var z=function(e){i._changePolyState(e)};a.eachItemGraphicEl((function(e){e&&(e.onHoverStateChange=z)})),this._polyline.onHoverStateChange=z,this._data=a,this._coordSys=r,this._stackedOnPoints=_,this._points=u,this._step=I,this._valueOrigin=y,e.get("triggerLineEvent")&&(this.packEventData(e,p),f&&this.packEventData(e,f))},t.prototype.packEventData=function(e,t){Lu(t).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,t,n,i){var r=e.getData(),o=Na(r,i);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=r.getLayout("points"),s=r.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var c=e.get("zlevel"),d=e.get("z");s=new SI(r,o),s.x=l,s.y=u,s.setZ(c,d);var h=s.getSymbolPath().getTextContent();h&&(h.zlevel=c,h.z=d,h.z2=this._polyline.z2+1),s.__temp=!0,r.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else nx.prototype.highlight.call(this,e,t,n,i)},t.prototype.downplay=function(e,t,n,i){var r=e.getData(),o=Na(r,i);if(this._changePolyState("normal"),null!=o&&o>=0){var a=r.getItemGraphicEl(o);a&&(a.__temp?(r.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else nx.prototype.downplay.call(this,e,t,n,i)},t.prototype._changePolyState=function(e){var t=this._polygon;sc(this._polyline,e),t&&sc(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new HI({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t,t},t.prototype._newPolygon=function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new GI({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,t,n){var i,r,o=t.getBaseAxis(),a=o.inverse;"cartesian2d"===t.type?(i=o.isHorizontal(),r=!1):"polar"===t.type&&(i="angle"===o.dim,r=!0);var s=e.hostModel,l=s.get("animationDuration");Q(l)&&(l=l(null));var u=s.get("animationDelay")||0,c=Q(u)?u(null):u;e.eachItemGraphicEl((function(e,o){var s=e;if(s){var d=[e.x,e.y],h=void 0,p=void 0,f=void 0;if(n)if(r){var g=n,v=t.pointToCoord(d);i?(h=g.startAngle,p=g.endAngle,f=-v[1]/180*Math.PI):(h=g.r0,p=g.r,f=v[0])}else{var m=n;i?(h=m.x,p=m.x+m.width,f=e.x):(h=m.y+m.height,p=m.y,f=e.y)}var y=p===h?0:(f-h)/(p-h);a&&(y=1-y);var x=Q(u)?u(o):l*y+c,_=s.getSymbolPath(),b=_.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:x}),b&&b.animateFrom({style:{opacity:0}},{duration:300,delay:x}),_.disableLabelAnimation=!0}}))},t.prototype._initOrUpdateEndLabel=function(e,t,n){var i=e.getModel("endLabel");if(uT(e)){var r=e.getData(),o=this._polyline,a=r.getLayout("points");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||(s=this._endLabel=new Du({z2:200}),s.ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=aT(a);l>=0&&(sd(o,ld(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:l,defaultText:function(e,t,n){return null!=n?_I(r,n):xI(r,e)},enableTextSetter:!0},dT(i,t)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,t,n,i,r,o,a){var s=this._endLabel,l=this._polyline;if(s){e<1&&null==i.originalX&&(i.originalX=s.x,i.originalY=s.y);var u=n.getLayout("points"),c=n.hostModel,d=c.get("connectNulls"),h=o.get("precision"),p=o.get("distance")||0,f=a.getBaseAxis(),g=f.isHorizontal(),v=f.inverse,m=t.shape,y=v?g?m.x:m.y+m.height:g?m.x+m.width:m.y,x=(g?p:0)*(v?-1:1),_=(g?0:-p)*(v?-1:1),b=g?"x":"y",w=lT(u,y,b),S=w.range,M=S[1]-S[0],C=void 0;if(M>=1){if(M>1&&!d){var I=sT(u,S[0]);s.attr({x:I[0]+x,y:I[1]+_}),r&&(C=c.getRawValue(S[0]))}else{I=l.getPointOn(y,b);I&&s.attr({x:I[0]+x,y:I[1]+_});var T=c.getRawValue(S[0]),k=c.getRawValue(S[1]);r&&(C=$a(n,h,T,k,w.t))}i.lastFrameIndex=S[0]}else{var A=1===e||i.lastFrameIndex>0?S[0]:0;I=sT(u,A);r&&(C=c.getRawValue(A)),s.attr({x:I[0]+x,y:I[1]+_})}r&&yd(s).setLabelText(C)}},t.prototype._doUpdateAnimation=function(e,t,n,i,r,o,a){var s=this._polyline,l=this._polygon,u=e.hostModel,c=NI(this._data,e,this._stackedOnPoints,t,this._coordSys,n,this._valueOrigin,o),d=c.current,h=c.stackedOnCurrent,p=c.next,f=c.stackedOnNext;if(r&&(d=eT(c.current,n,r,a),h=eT(c.stackedOnCurrent,n,r,a),p=eT(c.next,n,r,a),f=eT(c.stackedOnNext,n,r,a)),KI(d,p)>3e3||l&&KI(h,f)>3e3)return s.stopAnimation(),s.setShape({points:p}),void(l&&(l.stopAnimation(),l.setShape({points:p,stackedOnPoints:f})));s.shape.__points=c.current,s.shape.points=d;var g={shape:{points:p}};c.current!==d&&(g.shape.__points=c.next),s.stopAnimation(),Xc(s,g,u),l&&(l.setShape({points:d,stackedOnPoints:h}),l.stopAnimation(),Xc(l,{shape:{stackedOnPoints:f}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var v=[],m=c.status,y=0;yt&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n10&&"cartesian2d"===o.type&&r){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),c=n.getDevicePixelRatio(),d=Math.abs(u[1]-u[0])*(c||1),h=Math.round(a/d);if(isFinite(h)&&h>1){"lttb"===r&&e.setData(i.lttbDownSample(i.mapDimension(l.dim),1/h));var p=void 0;ee(r)?p=gT[r]:Q(r)&&(p=r),p&&e.setData(i.downSample(i.mapDimension(l.dim),1/h,p,vT))}}}}}function yT(e){e.registerChartView(pT),e.registerSeriesModel(yI),e.registerLayout(fT("line",!0)),e.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,mT("line"))}var xT="__ec_stack_";function _T(e){return e.get("stack")||xT+e.seriesIndex}function bT(e){return e.dim+e.index}function wT(e){var t=[],n=e.axis,i="axis0";if("category"===n.type){for(var r=n.getBandWidth(),o=0;o0&&(o=null===o?s:Math.min(o,s))}n[i]=o}}return n}function CT(e){var t=MT(e),n=[];return W(e,(function(e){var i,r=e.coordinateSystem,o=r.getBaseAxis(),a=o.getExtent();if("category"===o.type)i=o.getBandWidth();else if("value"===o.type||"time"===o.type){var s=o.dim+"_"+o.index,l=t[s],u=Math.abs(a[1]-a[0]),c=o.scale.getExtent(),d=Math.abs(c[1]-c[0]);i=l?u/d*l:u}else{var h=e.getData();i=Math.abs(a[1]-a[0])/h.count()}var p=Wo(e.get("barWidth"),i),f=Wo(e.get("barMaxWidth"),i),g=Wo(e.get("barMinWidth")||(LT(e)?.5:1),i),v=e.get("barGap"),m=e.get("barCategoryGap");n.push({bandWidth:i,barWidth:p,barMaxWidth:f,barMinWidth:g,barGap:v,barCategoryGap:m,axisKey:bT(o),stackId:_T(e)})})),IT(n)}function IT(e){var t={};W(e,(function(e,n){var i=e.axisKey,r=e.bandWidth,o=t[i]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;t[i]=o;var s=e.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=e.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=e.barMaxWidth;u&&(a[s].maxWidth=u);var c=e.barMinWidth;c&&(a[s].minWidth=c);var d=e.barGap;null!=d&&(o.gap=d);var h=e.barCategoryGap;null!=h&&(o.categoryGap=h)}));var n={};return W(t,(function(e,t){n[t]={};var i=e.stacks,r=e.bandWidth,o=e.categoryGap;if(null==o){var a=$(i).length;o=Math.max(35-4*a,15)+"%"}var s=Wo(o,r),l=Wo(e.gap,1),u=e.remainedWidth,c=e.autoWidthCount,d=(u-s)/(c+(c-1)*l);d=Math.max(d,0),W(i,(function(e){var t=e.maxWidth,n=e.minWidth;if(e.width){i=e.width;t&&(i=Math.min(i,t)),n&&(i=Math.max(i,n)),e.width=i,u-=i+l*i,c--}else{var i=d;t&&ti&&(i=n),i!==d&&(e.width=i,u-=i+l*i,c--)}})),d=(u-s)/(c+(c-1)*l),d=Math.max(d,0);var h,p=0;W(i,(function(e,t){e.width||(e.width=d),h=e,p+=e.width*(1+l)})),h&&(p-=h.width*l);var f=-p/2;W(i,(function(e,i){n[t][i]=n[t][i]||{bandWidth:r,offset:f,width:e.width},f+=e.width*(1+l)}))})),n}function TT(e,t,n){if(e&&t){var i=e[bT(t)];return null!=i&&null!=n?i[_T(n)]:i}}function kT(e,t){var n=ST(e,t),i=CT(n);W(n,(function(e){var t=e.getData(),n=e.coordinateSystem,r=n.getBaseAxis(),o=_T(e),a=i[bT(r)][o],s=a.offset,l=a.width;t.setLayout({bandWidth:a.bandWidth,offset:s,size:l})}))}function AT(e){return{seriesType:e,plan:Nv(),reset:function(e){if(DT(e)){var t=e.getData(),n=e.coordinateSystem,i=n.getBaseAxis(),r=n.getOtherAxis(i),o=t.getDimensionIndex(t.mapDimension(r.dim)),a=t.getDimensionIndex(t.mapDimension(i.dim)),s=e.get("showBackground",!0),l=t.mapDimension(r.dim),u=t.getCalculationInfo("stackResultDimension"),c=uI(t,l)&&!!t.getCalculationInfo("stackedOnSeries"),d=r.isHorizontal(),h=PT(i,r),p=LT(e),f=e.get("barMinHeight")||0,g=u&&t.getDimensionIndex(u),v=t.getLayout("size"),m=t.getLayout("offset");return{progress:function(e,t){var i,r=e.count,l=p&&RI(3*r),u=p&&s&&RI(3*r),y=p&&RI(r),x=n.master.getRect(),_=d?x.width:x.height,b=t.getStore(),w=0;while(null!=(i=e.next())){var S=b.get(c?g:o,i),M=b.get(a,i),C=h,I=void 0;c&&(I=+S-b.get(o,i));var T=void 0,k=void 0,A=void 0,D=void 0;if(d){var L=n.dataToPoint([S,M]);if(c){var P=n.dataToPoint([I,M]);C=P[0]}T=C,k=L[1]+m,A=L[0]-C,D=v,Math.abs(A)e&&(e=t),e},t.prototype.brushSelector=function(e,t,n){return n.rect(t.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Bd(RT.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(RT);const NT=ET;var FT=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return e}(),BT=function(e){function t(t){var n=e.call(this,t)||this;return n.type="sausage",n}return o(t,e),t.prototype.getDefaultShape=function(){return new FT},t.prototype.buildPath=function(e,t){var n=t.cx,i=t.cy,r=Math.max(t.r0||0,0),o=Math.max(t.r,0),a=.5*(o-r),s=r+a,l=t.startAngle,u=t.endAngle,c=t.clockwise,d=2*Math.PI,h=c?u-lMath.PI/2&&c<1.5*Math.PI&&(c-=Math.PI),e.setTextConfig({rotation:c})}}function HT(e,t,n){return t*Math.sin(e)*(n?-1:1)}function WT(e,t,n){return t*Math.cos(e)*(n?1:-1)}var GT=Math.max,UT=Math.min;function jT(e,t){var n=e.getArea&&e.getArea();if($I(e,"cartesian2d")){var i=e.getBaseAxis();if("category"!==i.type||!i.onBand){var r=t.getLayout("bandWidth");i.isHorizontal()?(n.x-=r,n.width+=2*r):(n.y-=r,n.height+=2*r)}}return n}var ZT=function(e){function t(){var n=e.call(this)||this;return n.type=t.type,n._isFirstFrame=!0,n}return o(t,e),t.prototype.render=function(e,t,n,i){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var r=e.get("coordinateSystem");("cartesian2d"===r||"polar"===r)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,t,n):this._renderNormal(e,t,n,i))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,t){this._progressiveEls=[],this._incrementalRenderLarge(e,t)},t.prototype.eachRendered=function(e){Zy(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e,t,n,i){var r,o=this.group,a=e.getData(),s=this._data,l=e.coordinateSystem,u=l.getBaseAxis();"cartesian2d"===l.type?r=u.isHorizontal():"polar"===l.type&&(r="angle"===u.dim);var c=e.isAnimationEnabled()?e:null,d=XT(e,l);d&&this._enableRealtimeSort(d,a,n);var h=e.get("clip",!0)||d,p=jT(l,a);o.removeClipPath();var f=e.get("roundCap",!0),g=e.get("showBackground",!0),v=e.getModel("backgroundStyle"),m=v.get("borderRadius")||0,y=[],x=this._backgroundEls,_=i&&i.isInitSort,b=i&&"changeAxisOrder"===i.type;function w(e){var t=nk[l.type](a,e),n=pk(l,r,t);return n.useStyle(v.getItemStyle()),"cartesian2d"===l.type&&n.setShape("r",m),y[e]=n,n}a.diff(s).add((function(t){var n=a.getItemModel(t),i=nk[l.type](a,t,n);if(g&&w(t),a.hasValue(t)&&tk[l.type](i)){var s=!1;h&&(s=$T[l.type](p,i));var v=YT[l.type](e,a,t,i,r,c,u.model,!1,f);d&&(v.forceLabelAnimation=!0),ok(v,a,t,n,i,e,r,"polar"===l.type),_?v.attr({shape:i}):d?KT(d,c,v,i,t,r,!1,!1):Kc(v,{shape:i},e,t),a.setItemGraphicEl(t,v),o.add(v),v.ignore=s}})).update((function(t,n){var i=a.getItemModel(t),S=nk[l.type](a,t,i);if(g){var M=void 0;0===x.length?M=w(n):(M=x[n],M.useStyle(v.getItemStyle()),"cartesian2d"===l.type&&M.setShape("r",m),y[t]=M);var C=nk[l.type](a,t),I=hk(r,C,l);Xc(M,{shape:I},c,t)}var T=s.getItemGraphicEl(n);if(a.hasValue(t)&&tk[l.type](S)){var k=!1;if(h&&(k=$T[l.type](p,S),k&&o.remove(T)),T?nd(T):T=YT[l.type](e,a,t,S,r,c,u.model,!!T,f),d&&(T.forceLabelAnimation=!0),b){var A=T.getTextContent();if(A){var D=yd(A);null!=D.prevValue&&(D.prevValue=D.value)}}else ok(T,a,t,i,S,e,r,"polar"===l.type);_?T.attr({shape:S}):d?KT(d,c,T,S,t,r,!0,b):Xc(T,{shape:S},e,t,null),a.setItemGraphicEl(t,T),T.ignore=k,o.add(T)}else o.remove(T)})).remove((function(t){var n=s.getItemGraphicEl(t);n&&td(n,e,t)})).execute();var S=this._backgroundGroup||(this._backgroundGroup=new Lo);S.removeAll();for(var M=0;Mo)return!0;o=u}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,i=n.getExtent(),r=Math.max(0,i[0]),o=Math.min(i[1],n.getOrdinalMeta().categories.length-1);r<=o;++r)if(e.ordinalNumbers[r]!==n.getRawOrdinalNumber(r))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,i){if(this._isOrderChangedWithinSameData(e,t,n)){var r=this._dataSort(e,n,t);this._isOrderDifferentInView(r,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:r}))}},t.prototype._dispatchInitSort=function(e,t,n){var i=t.baseAxis,r=this._dataSort(e,i,(function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:r})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(t){td(t,e,Lu(t).dataIndex)}))):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(nx),$T={cartesian2d:function(e,t){var n=t.width<0?-1:1,i=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height);var r=e.x+e.width,o=e.y+e.height,a=GT(t.x,e.x),s=UT(t.x+t.width,r),l=GT(t.y,e.y),u=UT(t.y+t.height,o),c=sr?s:a,t.y=d&&l>o?u:l,t.width=c?0:s-a,t.height=d?0:u-l,n<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height),c||d},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var i=t.r;t.r=t.r0,t.r0=i}var r=UT(t.r,e.r),o=GT(t.r0,e.r0);t.r=r,t.r0=o;var a=r-o<0;if(n<0){i=t.r;t.r=t.r0,t.r0=i}return a}},YT={cartesian2d:function(e,t,n,i,r,o,a,s,l){var u=new hu({shape:F({},i),z2:1});if(u.__dataIndex=n,u.name="item",o){var c=u.shape,d=r?"height":"width";c[d]=0}return u},polar:function(e,t,n,i,r,o,a,s,l){var u=!r&&l?VT:Am,c=new u({shape:i,z2:1});c.name="item";var d=rk(r);if(c.calculateTextPosition=zT(d,{isRoundCap:u===VT}),o){var h=c.shape,p=r?"r":"endAngle",f={};h[p]=r?0:i.startAngle,f[p]=i[p],(s?Xc:Kc)(c,{shape:f},o)}return c}};function XT(e,t){var n=e.get("realtimeSort",!0),i=t.getBaseAxis();if(n&&"category"===i.type&&"cartesian2d"===t.type)return{baseAxis:i,otherAxis:t.getOtherAxis(i)}}function KT(e,t,n,i,r,o,a,s){var l,u;o?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(a?Xc:Kc)(n,{shape:l},t,r,null);var c=t?e.baseAxis.model:null;(a?Xc:Kc)(n,{shape:u},c,r)}function JT(e,t){for(var n=0;n0?1:-1,a=i.height>0?1:-1;return{x:i.x+o*r/2,y:i.y+a*r/2,width:i.width-o*r,height:i.height-a*r}},polar:function(e,t,n){var i=e.getItemLayout(t);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function ik(e){return null!=e.startAngle&&null!=e.endAngle&&e.startAngle===e.endAngle}function rk(e){return function(e){var t=e?"Arc":"Angle";return function(e){switch(e){case"start":case"insideStart":case"end":case"insideEnd":return e+t;default:return e}}}(e)}function ok(e,t,n,i,r,o,a,s){var l=t.getItemVisual(n,"style");s||e.setShape("r",i.get(["itemStyle","borderRadius"])||0),e.useStyle(l);var u=i.getShallow("cursor");u&&e.attr("cursor",u);var c=s?a?r.r>=r.r0?"endArc":"startArc":r.endAngle>=r.startAngle?"endAngle":"startAngle":a?r.height>=0?"bottom":"top":r.width>=0?"right":"left",d=ld(i);sd(e,d,{labelFetcher:o,labelDataIndex:n,defaultText:xI(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:c});var h=e.getTextContent();if(s&&h){var p=i.get(["label","position"]);e.textConfig.inside="middle"===p||null,qT(e,"outside"===p?c:p,rk(a),i.get(["label","rotate"]))}xd(h,d,o.getRawValue(n),(function(e){return _I(t,e)}));var f=i.getModel(["emphasis"]);Ec(e,f.get("focus"),f.get("blurScope"),f.get("disabled")),Vc(e,i),ik(r)&&(e.style.fill="none",e.style.stroke="none",W(e.states,(function(e){e.style&&(e.style.fill=e.style.stroke="none")})))}function ak(e,t){var n=e.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var i=e.get(["itemStyle","borderWidth"])||0,r=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),o=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(i,r,o)}var sk=function(){function e(){}return e}(),lk=function(e){function t(t){var n=e.call(this,t)||this;return n.type="largeBar",n}return o(t,e),t.prototype.getDefaultShape=function(){return new sk},t.prototype.buildPath=function(e,t){for(var n=t.points,i=this.baseDimIdx,r=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;l=0?n:null}),30,!1);function dk(e,t,n){for(var i=e.baseDimIdx,r=1-i,o=e.shape.points,a=e.largeDataIndices,s=[],l=[],u=e.barWidth,c=0,d=o.length/3;c=s[0]&&t<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[c]}return-1}function hk(e,t,n){if($I(n,"cartesian2d")){var i=t,r=n.getArea();return{x:e?i.x:r.x,y:e?r.y:i.y,width:e?i.width:r.width,height:e?r.height:i.height}}r=n.getArea();var o=t;return{cx:r.cx,cy:r.cy,r0:e?r.r0:o.r0,r:e?r.r:o.r,startAngle:e?o.startAngle:0,endAngle:e?o.endAngle:2*Math.PI}}function pk(e,t,n){var i="polar"===e.type?Am:hu;return new i({shape:hk(t,n,e),silent:!0,z2:0})}const fk=ZT;function gk(e){e.registerChartView(fk),e.registerSeriesModel(NT),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,K(kT,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,AT("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,mT("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(e,t){var n=e.componentType||"series";t.eachComponent({mainType:n,query:e},(function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)}))}))}var vk=2*Math.PI,mk=Math.PI/180;function yk(e,t){return Yh(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function xk(e,t){var n=yk(e,t),i=e.get("center"),r=e.get("radius");J(r)||(r=[0,r]),J(i)||(i=[i,i]);var o=Wo(n.width,t.getWidth()),a=Wo(n.height,t.getHeight()),s=Math.min(o,a),l=Wo(i[0],o)+n.x,u=Wo(i[1],a)+n.y,c=Wo(r[0],s/2),d=Wo(r[1],s/2);return{cx:l,cy:u,r0:c,r:d}}function _k(e,t,n){t.eachSeriesByType(e,(function(e){var t=e.getData(),i=t.mapDimension("value"),r=yk(e,n),o=xk(e,n),a=o.cx,s=o.cy,l=o.r,u=o.r0,c=-e.get("startAngle")*mk,d=e.get("minAngle")*mk,h=0;t.each(i,(function(e){!isNaN(e)&&h++}));var p=t.getSum(i),f=Math.PI/(p||h)*2,g=e.get("clockwise"),v=e.get("roseType"),m=e.get("stillShowZeroSum"),y=t.getDataExtent(i);y[0]=0;var x=vk,_=0,b=c,w=g?1:-1;if(t.setLayout({viewRect:r,r:l}),t.each(i,(function(e,n){var i;if(isNaN(e))t.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:g,cx:a,cy:s,r0:u,r:v?NaN:l});else{i="area"!==v?0===p&&m?f:e*f:vk/h,in?a:o,c=Math.abs(l.label.y-n);if(c>=u.maxY){var d=l.label.x-t-l.len2*r,h=i+l.len,f=Math.abs(d)e.unconstrainedWidth?null:p:null;i.setStyle("width",f)}var g=i.getBoundingRect();o.width=g.width;var v=(i.style.margin||0)+2.1;o.height=g.height+v,o.y-=(o.height-d)/2}}}function Ik(e){return"center"===e.position}function Tk(e){var t,n,i=e.getData(),r=[],o=!1,a=(e.get("minShowLabelAngle")||0)*wk,s=i.getLayout("viewRect"),l=i.getLayout("r"),u=s.width,c=s.x,d=s.y,h=s.height;function p(e){e.ignore=!0}function f(e){if(!e.ignore)return!0;for(var t in e.states)if(!1===e.states[t].ignore)return!0;return!1}i.each((function(e){var s=i.getItemGraphicEl(e),d=s.shape,h=s.getTextContent(),g=s.getTextGuideLine(),v=i.getItemModel(e),m=v.getModel("label"),y=m.get("position")||v.get(["emphasis","label","position"]),x=m.get("distanceToLabelLine"),_=m.get("alignTo"),b=Wo(m.get("edgeDistance"),u),w=m.get("bleedMargin"),S=v.getModel("labelLine"),M=S.get("length");M=Wo(M,u);var C=S.get("length2");if(C=Wo(C,u),Math.abs(d.endAngle-d.startAngle)0?"right":"left":L>0?"left":"right"}var z=Math.PI,q=0,H=m.get("rotate");if(ne(H))q=H*(z/180);else if("center"===y)q=0;else if("radial"===H||!0===H){var G=L<0?-D+z:-D;q=G}else if("tangential"===H&&"outside"!==y&&"outer"!==y){var U=Math.atan2(L,P);U<0&&(U=2*z+U);var j=P>0;j&&(U=z+U),q=U-z}if(o=!!q,h.x=I,h.y=T,h.rotation=q,h.setStyle({verticalAlign:"middle"}),O){h.setStyle({align:A});var Z=h.states.select;Z&&(Z.x+=h.x,Z.y+=h.y)}else{var $=h.getBoundingRect().clone();$.applyTransform(h.getComputedTransform());var Y=(h.style.margin||0)+2.1;$.y-=Y/2,$.height+=Y,r.push({label:h,labelLine:g,position:y,len:M,len2:C,minTurnAngle:S.get("minTurnAngle"),maxSurfaceAngle:S.get("maxSurfaceAngle"),surfaceNormal:new Yr(L,P),linePoints:k,textAlign:A,labelDistance:x,labelAlignTo:_,edgeDistance:b,bleedMargin:w,rect:$,unconstrainedWidth:$.width,labelStyleWidth:h.style.width})}s.setTextConfig({inside:O})}})),!o&&e.get("avoidLabelOverlap")&&Mk(r,t,n,l,u,h,c,d);for(var g=0;g0){for(var l=o.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u=i.r0}},t.type="pie",t}(nx);const Lk=Dk;function Pk(e,t,n){t=J(t)&&{coordDimensions:t}||F({encodeDefine:e.getEncode()},t);var i=e.getSource(),r=QC(i,t).dimensions,o=new JC(r,e);return o.initData(i,n),o}var Ok=function(){function e(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return e.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},e.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},e.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},e.prototype.getItemVisual=function(e,t){var n=this._getDataWithEncodedVisual();return n.getItemVisual(e,t)},e}();const Rk=Ok;var Ek=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Rk(X(this.getData,this),X(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return Pk(this,{coordDimensions:["value"],encodeDefaulter:K(wp,this)})},t.prototype.getDataParams=function(t){var n=this.getData(),i=e.prototype.getDataParams.call(this,t),r=[];return n.each(n.mapDimension("value"),(function(e){r.push(e)})),i.percent=Yo(r,t,n.hostModel.get("percentPrecision")),i.$vars.push("percent"),i},t.prototype._defaultLabelLine=function(e){va(e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(Ov);const Nk=Ek;function Fk(e){return{seriesType:e,reset:function(e,t){var n=e.getData();n.filterSelf((function(e){var t=n.mapDimension("value"),i=n.get(t,e);return!(ne(i)&&!isNaN(i)&&i<0)}))}}}function Bk(e){e.registerChartView(Lk),e.registerSeriesModel(Nk),Qx("pie",e.registerAction),e.registerLayout(K(_k,"pie")),e.registerProcessor(bk("pie")),e.registerProcessor(Fk("pie"))}var Vk=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return o(t,e),t.prototype.getInitialData=function(e,t){return vI(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?5e3:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?1e4:this.get("progressiveThreshold"):e},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(Ov);const zk=Vk;var qk=4,Hk=function(){function e(){}return e}(),Wk=function(e){function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return o(t,e),t.prototype.getDefaultShape=function(){return new Hk},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,t){var n,i=t.points,r=t.size,o=this.symbolProxy,a=o.shape,s=e.getContext?e.getContext():e,l=s&&r[0]=0;s--){var l=2*s,u=i[l]-o/2,c=i[l+1]-a/2;if(e>=u&&t>=c&&e<=u+o&&t<=c+a)return s}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),i=this.getBoundingRect();if(e=n[0],t=n[1],i.contain(e,t)){var r=this.hoverDataIdx=this.findDataIndex(e,t);return r>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape,n=t.points,i=t.size,r=i[0],o=i[1],a=1/0,s=1/0,l=-1/0,u=-1/0,c=0;c=0&&(l.dataIndex=n+(e.startIndex||0))}))},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}();const Uk=Gk;var jk=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),r=this._updateSymbolDraw(i,e);r.updateData(i,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var i=e.getData(),r=this._updateSymbolDraw(i,e);r.incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._symbolDraw.incrementalUpdate(e,t.getData(),{clipShape:this._getClipShape(t)}),this._finished=e.end===t.getData().count()},t.prototype.updateTransform=function(e,t,n){var i=e.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var r=fT("").reset(e,t,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){var t=e.coordinateSystem,n=t&&t.getArea&&t.getArea();return e.get("clip",!0)?n:null},t.prototype._updateSymbolDraw=function(e,t){var n=this._symbolDraw,i=t.pipelineContext,r=i.large;return n&&r===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=r?new Uk:new kI,this._isLargeDraw=r,this.group.removeAll()),this.group.add(n.group),n},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(nx);const Zk=jk;var $k=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(op);const Yk=$k;var Xk=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},e.prototype.getCoordSysModel=function(){},e}(),Kk=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",qa).models[0]},t.type="cartesian2dAxis",t}(op);q(Kk,Xk);var Jk={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},Qk=E({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Jk),eA=E({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},Jk),tA=E({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},eA),nA=B({logBase:10},eA);const iA={category:Qk,value:eA,time:tA,log:nA};var rA=0,oA=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++rA}return e.createByAxisModel=function(t){var n=t.option,i=n.data,r=i&&G(i,aA);return new e({categories:r,needCollect:!r,deduplication:!1!==n.dedplication})},e.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},e.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!ee(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var i=this._getOrCreateMap();return t=i.get(e),null==t&&(n?(t=this.categories.length,this.categories[t]=e,i.set(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||(this._map=we(this.categories))},e}();function aA(e){return ie(e)&&null!=e.value?e.value:e+""}const sA=oA;var lA={value:1,category:1,time:1,log:1};function uA(e,t,n,i){W(lA,(function(r,a){var s=E(E({},iA[a],!0),i,!0),l=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t+"Axis."+a,n}return o(n,e),n.prototype.mergeDefaultAndTheme=function(e,t){var n=Jh(this),i=n?ep(e):{},r=t.getTheme();E(e,r.get(a+"Axis")),E(e,this.getDefaultOption()),e.type=cA(e),n&&Qh(e,i,n)},n.prototype.optionUpdated=function(){var e=this.option;"category"===e.type&&(this.__ordinalMeta=sA.createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if("category"===t.type)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=t+"Axis."+a,n.defaultOption=s,n}(n);e.registerComponentModel(l)})),e.registerSubTypeDefaulter(t+"Axis",cA)}function cA(e){return e.type||(e.data?"category":"value")}var dA=function(){function e(e){this._setting=e||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(e){return this._setting[e]},e.prototype.unionExtent=function(e){var t=this._extent;e[0]t[1]&&(t[1]=e[1])},e.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t)},e.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();ls(dA);const hA=dA;function pA(e){return"interval"===e.type||"log"===e.type}function fA(e,t,n,i){var r={},o=e[1]-e[0],a=r.interval=ra(o/t,!0);null!=n&&ai&&(a=r.interval=i);var s=r.intervalPrecision=vA(a),l=r.niceTickExtent=[Go(Math.ceil(e[0]/a)*a,s),Go(Math.floor(e[1]/a)*a,s)];return yA(l,e),r}function gA(e){var t=Math.pow(10,ia(e)),n=e/t;return n?2===n?n=3:3===n?n=5:n*=2:n=1,Go(n*t)}function vA(e){return jo(e)+2}function mA(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function yA(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),mA(e,0,t),mA(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function xA(e,t){return e>=t[0]&&e<=t[1]}function _A(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function bA(e,t){return e*(t[1]-t[0])+t[0]}var wA=function(e){function t(t){var n=e.call(this,t)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new sA({})),J(i)&&(i=new sA({categories:G(i,(function(e){return ie(e)?e.value:e}))})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return o(t,e),t.prototype.parse=function(e){return null==e?NaN:ee(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),xA(e,this._extent)&&null!=this._ordinalMeta.categories[e]},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),_A(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(bA(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){var e=[],t=this._extent,n=t[0];while(n<=t[1])e.push({value:n}),n++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(null!=e){for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=Math.min(o,t.length);r=0&&e=0&&e=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(hA);hA.registerClass(wA);const SA=wA;var MA=Go,CA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return o(t,e),t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return xA(e,this._extent)},t.prototype.normalize=function(e){return _A(e,this._extent)},t.prototype.scale=function(e){return bA(e,this._extent)},t.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(t)||(n[1]=parseFloat(t))},t.prototype.unionExtent=function(e){var t=this._extent;e[0]t[1]&&(t[1]=e[1]),this.setExtent(t[0],t[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=vA(e)},t.prototype.getTicks=function(e){var t=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,o=[];if(!t)return o;var a=1e4;n[0]a)return[]}var l=o.length?o[o.length-1].value:i[1];return n[1]>l&&(e?o.push({value:MA(l+t,r)}):o.push({value:n[1]})),o},t.prototype.getMinorTicks=function(e){for(var t=this.getTicks(!0),n=[],i=this.getExtent(),r=1;ri[0]&&d>>1;e[r][1]n&&(this._approxInterval=n);var o=AA.length,a=Math.min(TA(AA,this._approxInterval,0,o),o-1);this._interval=AA[a][1],this._minLevelUnit=AA[Math.max(a-1,0)][0]},t.prototype.parse=function(e){return ne(e)?e:+ta(e)},t.prototype.contain=function(e){return xA(this.parse(e),this._extent)},t.prototype.normalize=function(e){return _A(this.parse(e),this._extent)},t.prototype.scale=function(e){return bA(e,this._extent)},t.type="time",t}(IA),AA=[["second",Kd],["minute",Jd],["hour",Qd],["quarter-day",6*Qd],["half-day",12*Qd],["day",1.2*eh],["half-week",3.5*eh],["week",7*eh],["month",31*eh],["quarter",95*eh],["half-year",th/2],["year",th]];function DA(e,t,n,i){var r=ta(t),o=ta(n),a=function(e){return fh(r,e,i)===fh(o,e,i)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},c=function(){return u()&&a("hour")},d=function(){return c()&&a("minute")},h=function(){return d()&&a("second")},p=function(){return h()&&a("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return d();case"second":return h();case"millisecond":return p()}}function LA(e,t){return e/=eh,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function PA(e){var t=30*eh;return e/=t,e>6?6:e>3?3:e>2?2:1}function OA(e){return e/=Qd,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function RA(e,t){return e/=t?Jd:Kd,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function EA(e){return ra(e,!0)}function NA(e,t,n){var i=new Date(e);switch(lh(t)){case"year":case"month":i[Sh(n)](0);case"day":i[Mh(n)](1);case"hour":i[Ch(n)](0);case"minute":i[Ih(n)](0);case"second":i[Th(n)](0),i[kh(n)](0)}return i.getTime()}function FA(e,t,n,i){var r=1e4,o=ah,a=0;function s(e,t,n,r,o,a,s){var l=new Date(t),u=t,c=l[r]();while(u1&&0===u&&o.unshift({value:o[0].value-h})}}for(u=0;u=i[0]&&y<=i[1]&&d++)}var x=(i[1]-i[0])/t;if(d>1.5*x&&h>x/1.5)break;if(u.push(v),d>x||e===o[p])break}c=[]}}}var _=j(G(u,(function(e){return j(e,(function(e){return e.value>=i[0]&&e.value<=i[1]&&!e.notAdd}))})),(function(e){return e.length>0})),b=[],w=_.length-1;for(p=0;p<_.length;++p)for(var S=_[p],M=0;M0)i*=10;var o=[Go(WA(t[0]/i)*i),Go(HA(t[1]/i)*i)];this._interval=i,this._niceExtent=o}},t.prototype.calcNiceExtent=function(e){zA.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=UA(e)/UA(this.base),xA(e,this._extent)},t.prototype.normalize=function(e){return e=UA(e)/UA(this.base),_A(e,this._extent)},t.prototype.scale=function(e){return e=bA(e,this._extent),GA(this.base,e)},t.type="log",t}(hA),ZA=jA.prototype;function $A(e,t){return qA(e,jo(t))}ZA.getMinorTicks=zA.getMinorTicks,ZA.getLabel=zA.getLabel,hA.registerClass(jA);const YA=jA;var XA=function(){function e(e,t,n){this._prepareParams(e,t,n)}return e.prototype._prepareParams=function(e,t,n){n[1]0&&s>0&&!l&&(a=0),a<0&&s<0&&!u&&(s=0));var d=this._determinedMin,h=this._determinedMax;return null!=d&&(a=d,l=!0),null!=h&&(s=h,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:c}},e.prototype.modifyDataMinMax=function(e,t){this[JA[e]]=t},e.prototype.setDeterminedMinMax=function(e,t){var n=KA[e];this[n]=t},e.prototype.freeze=function(){this.frozen=!0},e}(),KA={min:"_determinedMin",max:"_determinedMax"},JA={min:"_dataMin",max:"_dataMax"};function QA(e,t,n){var i=e.rawExtentInfo;return i||(i=new XA(e,t,n),e.rawExtentInfo=i,i)}function eD(e,t){return null==t?null:ce(t)?NaN:e.parse(t)}function tD(e,t){var n=e.type,i=QA(e,t,e.getExtent()).calculate();e.setBlank(i.isBlank);var r=i.min,o=i.max,a=t.ecModel;if(a&&"time"===n){var s=ST("bar",a),l=!1;if(W(s,(function(e){l=l||e.getBaseAxis()===t.axis})),l){var u=CT(s),c=nD(r,o,t,u);r=c.min,o=c.max}}return{extent:[r,o],fixMin:i.minFixed,fixMax:i.maxFixed}}function nD(e,t,n,i){var r=n.axis.getExtent(),o=r[1]-r[0],a=TT(i,n.axis);if(void 0===a)return{min:e,max:t};var s=1/0;W(a,(function(e){s=Math.min(e.offset,s)}));var l=-1/0;W(a,(function(e){l=Math.max(e.offset+e.width,l)})),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-e,d=1-(s+l)/o,h=c/d-c;return t+=h*(l/u),e-=h*(s/u),{min:e,max:t}}function iD(e,t){var n=t,i=tD(e,n),r=i.extent,o=n.get("splitNumber");e instanceof YA&&(e.base=n.get("logBase"));var a=e.type,s=n.get("interval"),l="interval"===a||"time"===a;e.setExtent(r[0],r[1]),e.calcNiceExtent({splitNumber:o,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&e.setInterval&&e.setInterval(s)}function rD(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new SA({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new BA({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(hA.getClass(t)||IA)}}function oD(e){var t=e.scale.getExtent(),n=t[0],i=t[1];return!(n>0&&i>0||n<0&&i<0)}function aD(e){var t=e.getLabelModel().get("formatter"),n="category"===e.type?e.scale.getExtent()[0]:null;return"time"===e.scale.type?function(t){return function(n,i){return e.scale.getFormattedLabel(n,i,t)}}(t):ee(t)?function(t){return function(n){var i=e.scale.getLabel(n),r=t.replace("{value}",null!=i?i:"");return r}}(t):Q(t)?function(t){return function(i,r){return null!=n&&(r=i.value-n),t(sD(e,i),r,null!=i.level?{level:i.level}:null)}}(t):function(t){return e.scale.getLabel(t)}}function sD(e,t){return"category"===e.type?e.scale.getLabel(t):t.value}function lD(e){var t=e.model,n=e.scale;if(t.get(["axisLabel","show"])&&!n.isBlank()){var i,r,o=n.getExtent();n instanceof SA?r=n.count():(i=n.getTicks(),r=i.length);var a,s=e.getLabelModel(),l=aD(e),u=1;r>40&&(u=Math.ceil(r/40));for(var c=0;ce[1]&&(e[1]=i[1])}))}var fD=function(){function e(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return G(this._dimList,(function(e){return this._axes[e]}),this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),j(this.getAxes(),(function(t){return t.scale.type===e}))},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}();const gD=fD;var vD=["x","y"];function mD(e){return"interval"===e.type||"time"===e.type}var yD=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=vD,t}return o(t,e),t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,t=this.getAxis("y").scale;if(mD(e)&&mD(t)){var n=e.getExtent(),i=t.getExtent(),r=this.dataToPoint([n[0],i[0]]),o=this.dataToPoint([n[1],i[1]]),a=n[1]-n[0],s=i[1]-i[0];if(a&&s){var l=(o[0]-r[0])/a,u=(o[1]-r[1])/s,c=r[0]-n[0]*l,d=r[1]-i[0]*u,h=this._transform=[l,0,0,u,c,d];this._invTransform=Er([],h)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var t=this.getAxis("x"),n=this.getAxis("y");return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,t){var n=this.dataToPoint(e),i=this.dataToPoint(t),r=this.getArea(),o=new oo(n[0],n[1],i[0]-n[0],i[1]-n[1]);return r.intersect(o)},t.prototype.dataToPoint=function(e,t,n){n=n||[];var i=e[0],r=e[1];if(this._transform&&null!=i&&isFinite(i)&&null!=r&&isFinite(r))return Ze(n,e,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(i,t)),n[1]=a.toGlobalCoord(a.dataToCoord(r,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),o=i.getExtent(),a=n.parse(e[0]),s=i.parse(e[1]);return t=t||[],t[0]=Math.min(Math.max(Math.min(r[0],r[1]),a),Math.max(r[0],r[1])),t[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),t},t.prototype.pointToData=function(e,t){var n=[];if(this._invTransform)return Ze(n,e,this._invTransform);var i=this.getAxis("x"),r=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(e[0]),t),n[1]=r.coordToData(r.toLocalCoord(e[1]),t),n},t.prototype.getOtherAxis=function(e){return this.getAxis("x"===e.dim?"y":"x")},t.prototype.getArea=function(){var e=this.getAxis("x").getGlobalExtent(),t=this.getAxis("y").getGlobalExtent(),n=Math.min(e[0],e[1]),i=Math.min(t[0],t[1]),r=Math.max(e[0],e[1])-n,o=Math.max(t[0],t[1])-i;return new oo(n,i,r,o)},t}(gD);const xD=yD;var _D=Fa();function bD(e){return"category"===e.type?SD(e):ID(e)}function wD(e,t){return"category"===e.type?CD(e,t):{ticks:G(e.scale.getTicks(),(function(e){return e.value}))}}function SD(e){var t=e.getLabelModel(),n=MD(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function MD(e,t){var n,i,r=TD(e,"labels"),o=cD(t),a=kD(r,o);return a||(Q(o)?n=RD(e,o):(i="auto"===o?DD(e):o,n=OD(e,i)),AD(r,o,{labels:n,labelCategoryInterval:i}))}function CD(e,t){var n,i,r=TD(e,"ticks"),o=cD(t),a=kD(r,o);if(a)return a;if(t.get("show")&&!e.scale.isBlank()||(n=[]),Q(o))n=RD(e,o,!0);else if("auto"===o){var s=MD(e,e.getLabelModel());i=s.labelCategoryInterval,n=G(s.labels,(function(e){return e.tickValue}))}else i=o,n=OD(e,i,!0);return AD(r,o,{ticks:n,tickCategoryInterval:i})}function ID(e){var t=e.scale.getTicks(),n=aD(e);return{labels:G(t,(function(t,i){return{level:t.level,formattedLabel:n(t,i),rawLabel:e.scale.getLabel(t),tickValue:t.value}}))}}function TD(e,t){return _D(e)[t]||(_D(e)[t]=[])}function kD(e,t){for(var n=0;n40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),c=Math.abs(u*Math.cos(i)),d=Math.abs(u*Math.sin(i)),h=0,p=0;l<=o[1];l+=s){var f=0,g=0,v=uo(n({value:l}),t.font,"center","top");f=1.3*v.width,g=1.3*v.height,h=Math.max(h,f,7),p=Math.max(p,g,7)}var m=h/c,y=p/d;isNaN(m)&&(m=1/0),isNaN(y)&&(y=1/0);var x=Math.max(0,Math.floor(Math.min(m,y))),_=_D(e.model),b=e.getExtent(),w=_.lastAutoInterval,S=_.lastTickCount;return null!=w&&null!=S&&Math.abs(w-x)<=1&&Math.abs(S-a)<=1&&w>x&&_.axisExtent0===b[0]&&_.axisExtent1===b[1]?x=w:(_.lastTickCount=a,_.lastAutoInterval=x,_.axisExtent0=b[0],_.axisExtent1=b[1]),x}function PD(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function OD(e,t,n){var i=aD(e),r=e.scale,o=r.getExtent(),a=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=o[0],c=r.count();0!==u&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var d=dD(e),h=a.get("showMinLabel")||d,p=a.get("showMaxLabel")||d;h&&u!==o[0]&&g(o[0]);for(var f=u;f<=o[1];f+=l)g(f);function g(e){var t={value:e};s.push(n?e:{formattedLabel:i(t),rawLabel:r.getLabel(t),tickValue:e})}return p&&f-l!==o[1]&&g(o[1]),s}function RD(e,t,n){var i=e.scale,r=aD(e),o=[];return W(i.getTicks(),(function(e){var a=i.getLabel(e),s=e.value;t(e.value,a)&&o.push(n?s:{formattedLabel:r(e),rawLabel:a,tickValue:s})})),o}var ED=[0,1],ND=function(){function e(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return e.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),i=Math.max(t[0],t[1]);return e>=n&&e<=i},e.prototype.containData=function(e){return this.scale.contain(e)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(e){return $o(e||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this._extent,i=this.scale;return e=i.normalize(e),this.onBand&&"ordinal"===i.type&&(n=n.slice(),FD(n,i.count())),Ho(e,ED,n,t)},e.prototype.coordToData=function(e,t){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&(n=n.slice(),FD(n,i.count()));var r=Ho(e,n,ED,t);return this.scale.scale(r)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),n=wD(this,t),i=n.ticks,r=G(i,(function(e){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(e):e),tickValue:e}}),this),o=t.get("alignWithLabel");return BD(this,r,o,e.clamp),r},e.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var n=this.scale.getMinorTicks(t),i=G(n,(function(e){return G(e,(function(e){return{coord:this.dataToCoord(e),tickValue:e}}),this)}),this);return i},e.prototype.getViewLabels=function(){return bD(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),n=t[1]-t[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(e[1]-e[0]);return Math.abs(i)/n},e.prototype.calculateCategoryInterval=function(){return LD(this)},e}();function FD(e,t){var n=e[1]-e[0],i=t,r=n/i/2;e[0]+=r,e[1]-=r}function BD(e,t,n,i){var r=t.length;if(e.onBand&&!n&&r){var o,a,s=e.getExtent();if(1===r)t[0].coord=s[0],o=t[1]={coord:s[0]};else{var l=t[r-1].tickValue-t[0].tickValue,u=(t[r-1].coord-t[0].coord)/l;W(t,(function(e){e.coord-=u/2}));var c=e.scale.getExtent();a=1+c[1]-t[r-1].tickValue,o={coord:t[r-1].coord+u*a},t.push(o)}var d=s[0]>s[1];h(t[0].coord,s[0])&&(i?t[0].coord=s[0]:t.shift()),i&&h(s[0],t[0].coord)&&t.unshift({coord:s[0]}),h(s[1],o.coord)&&(i?o.coord=s[1]:t.pop()),i&&h(o.coord,s[1])&&t.push({coord:s[1]})}function h(e,t){return e=Go(e),t=Go(t),d?e>t:et[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e["x"===this.dim?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if("category"!==this.type)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(VD);const qD=zD;function HD(e,t,n){n=n||{};var i=e.coordinateSystem,r=t.axis,o={},a=r.getAxesOnZeroOf()[0],s=r.position,l=a?"onZero":s,u=r.dim,c=i.getRect(),d=[c.x,c.x+c.width,c.y,c.y+c.height],h={left:0,right:1,top:0,bottom:1,onZero:2},p=t.get("offset")||0,f="x"===u?[d[2]-p,d[3]+p]:[d[0]-p,d[1]+p];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));f[h.onZero]=Math.max(Math.min(g,f[1]),f[0])}o.position=["y"===u?f[h[l]]:d[0],"x"===u?f[h[l]]:d[3]],o.rotation=Math.PI/2*("x"===u?0:1);var v={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=v[s],o.labelOffset=a?f[h[s]]-f[h.onZero]:0,t.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),de(n.labelInside,t.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var m=t.get(["axisLabel","rotate"]);return o.labelRotate="top"===l?-m:m,o.z2=1,o}function WD(e){return"cartesian2d"===e.get("coordinateSystem")}function GD(e){var t={xAxisModel:null,yAxisModel:null};return W(t,(function(n,i){var r=i.replace(/Model$/,""),o=e.getReferringComponents(r,qa).models[0];t[i]=o})),t}var UD=Math.log;function jD(e,t,n){var i=IA.prototype,r=i.getTicks.call(n),o=i.getTicks.call(n,!0),a=r.length-1,s=i.getInterval.call(n),l=tD(e,t),u=l.extent,c=l.fixMin,d=l.fixMax;if("log"===e.type){var h=UD(e.base);u=[UD(u[0])/h,UD(u[1])/h]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:d});var p=i.getExtent.call(e);c&&(u[0]=p[0]),d&&(u[1]=p[1]);var f=i.getInterval.call(e),g=u[0],v=u[1];if(c&&d)f=(v-g)/a;else if(c){v=u[0]+f*a;while(vu[0]&&isFinite(g)&&isFinite(u[0]))f=gA(f),g=u[1]-f*a}else{var m=e.getTicks().length-1;m>a&&(f=gA(f));var y=f*a;v=Math.ceil(u[1]/f)*f,g=Go(v-y),g<0&&u[0]>=0?(g=0,v=Go(y)):v>0&&u[1]<=0&&(v=0,g=-Go(y))}var x=(r[0].value-o[0].value)/s,_=(r[a].value-o[a].value)/s;i.setExtent.call(e,g+f*x,v+f*_),i.setInterval.call(e,f),(x||_)&&i.setNiceExtent.call(e,g+f,v-f)}var ZD=function(){function e(e,t,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=vD,this._initCartesian(e,t,n),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var n=this._axesMap;function i(e){var t,n=$(e),i=n.length;if(i){for(var r=[],o=i-1;o>=0;o--){var a=+n[o],s=e[a],l=s.model,u=s.scale;pA(u)&&l.get("alignTicks")&&null==l.get("interval")?r.push(s):(iD(u,l),pA(u)&&(t=s))}r.length&&(t||(t=r.pop(),iD(t.scale,t.model)),W(r,(function(e){jD(e.scale,e.model,t.scale)})))}}this._updateScale(e,this.model),i(n.x),i(n.y);var r={};W(n.x,(function(e){YD(n,"y",e,r)})),W(n.y,(function(e){YD(n,"x",e,r)})),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var i=e.getBoxLayoutParams(),r=!n&&e.get("containLabel"),o=Yh(i,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var a=this._axesList;function s(){W(a,(function(e){var t=e.isHorizontal(),n=t?[0,o.width]:[0,o.height],i=e.inverse?1:0;e.setExtent(n[i],n[1-i]),KD(e,t?o.x:o.y)}))}s(),r&&(W(a,(function(e){if(!e.model.get(["axisLabel","inside"])){var t=lD(e);if(t){var n=e.isHorizontal()?"height":"width",i=e.model.get(["axisLabel","margin"]);o[n]-=t[n]+i,"top"===e.position?o.y+=t.height+i:"left"===e.position&&(o.x+=t.width+i)}}})),s()),W(this._coordsList,(function(e){e.calcAffineTransform()}))},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(null!=n)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(null!=e&&null!=t){var n="x"+e+"y"+t;return this._coordsMap[n]}ie(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,r=this._coordsList;i0?"top":"bottom",i="center"):Qo(o-QD)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=o>0&&o0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:i,textVerticalAlign:r}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},e}(),tL={axisLine:function(e,t,n,i){var r=t.get(["axisLine","show"]);if("auto"===r&&e.handleAutoShown&&(r=e.handleAutoShown("axisLine")),r){var o=t.axis.getExtent(),a=i.transform,s=[o[0],0],l=[o[1],0];a&&(Ze(s,s,a),Ze(l,l,a));var u=F({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new Gm({subPixelOptimize:!0,shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:u,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});c.anid="line",n.add(c);var d=t.get(["axisLine","symbol"]);if(null!=d){var h=t.get(["axisLine","symbolSize"]);ee(d)&&(d=[d,d]),(ee(h)||ne(h))&&(h=[h,h]);var p=y_(t.get(["axisLine","symbolOffset"])||0,h),f=h[0],g=h[1];W([{rotate:e.rotation+Math.PI/2,offset:p[0],r:0},{rotate:e.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],(function(t,i){if("none"!==d[i]&&null!=d[i]){var r=v_(d[i],-f/2,-g/2,f,g,u.stroke,!0),o=t.r+t.offset;r.attr({rotation:t.rotate,x:s[0]+o*Math.cos(e.rotation),y:s[1]-o*Math.sin(e.rotation),silent:!0,z2:11}),n.add(r)}}))}}},axisTickLabel:function(e,t,n,i){var r=lL(n,i,t,e),o=cL(n,i,t,e);if(iL(t,o,r),uL(n,i,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var a=mS(G(o,(function(e){return{label:e,priority:e.z2,defaultAttr:{ignore:e.ignore}}})));bS(a)}},axisName:function(e,t,n,i){var r=de(e.axisName,t.get("name"));if(r){var o,a,s=t.get("nameLocation"),l=e.nameDirection,u=t.getModel("nameTextStyle"),c=t.get("nameGap")||0,d=t.axis.getExtent(),h=d[0]>d[1]?-1:1,p=["start"===s?d[0]-h*c:"end"===s?d[1]+h*c:(d[0]+d[1])/2,aL(s)?e.labelOffset+l*c:0],f=t.get("nameRotate");null!=f&&(f=f*QD/180),aL(s)?o=eL.innerTextLayout(e.rotation,null!=f?f:e.rotation,l):(o=nL(e.rotation,s,f||0,d),a=e.axisNameAvailableWidth,null!=a&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var g=u.getFont(),v=t.get("nameTruncate",!0)||{},m=v.ellipsis,y=de(e.nameTruncateMaxWidth,v.maxWidth,a),x=new Du({x:p[0],y:p[1],rotation:o.rotation,silent:eL.isLabelSilent(t),style:ud(u,{text:r,font:g,overflow:"truncate",width:y,ellipsis:m,fill:u.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:u.get("align")||o.textAlign,verticalAlign:u.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(Uy({el:x,componentModel:t,itemName:r}),x.__fullText=r,x.anid="name",t.get("triggerEvent")){var _=eL.makeAxisEventDataBase(t);_.targetType="axisName",_.name=r,Lu(x).eventData=_}i.add(x),x.updateTransform(),n.add(x),x.decomposeTransform()}}};function nL(e,t,n,i){var r,o,a=Jo(n-e),s=i[0]>i[1],l="start"===t&&!s||"start"!==t&&s;return Qo(a-QD/2)?(o=l?"bottom":"top",r="center"):Qo(a-1.5*QD)?(o=l?"top":"bottom",r="center"):(o="middle",r=a<1.5*QD&&a>QD/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:r,textVerticalAlign:o}}function iL(e,t,n){if(!dD(e.axis)){var i=e.get(["axisLabel","showMinLabel"]),r=e.get(["axisLabel","showMaxLabel"]);t=t||[],n=n||[];var o=t[0],a=t[1],s=t[t.length-1],l=t[t.length-2],u=n[0],c=n[1],d=n[n.length-1],h=n[n.length-2];!1===i?(rL(o),rL(u)):oL(o,a)&&(i?(rL(a),rL(c)):(rL(o),rL(u))),!1===r?(rL(s),rL(d)):oL(l,s)&&(r?(rL(l),rL(h)):(rL(s),rL(d)))}}function rL(e){e&&(e.ignore=!0)}function oL(e,t){var n=e&&e.getBoundingRect().clone(),i=t&&t.getBoundingRect().clone();if(n&&i){var r=Ar([]);return Or(r,r,-e.rotation),n.applyTransform(Lr([],r,e.getLocalTransform())),i.applyTransform(Lr([],r,t.getLocalTransform())),n.intersect(i)}}function aL(e){return"middle"===e||"center"===e}function sL(e,t,n,i,r){for(var o=[],a=[],s=[],l=0;l=0||e===t}function yL(e){var t=xL(e);if(t){var n=t.axisPointerModel,i=t.axis.scale,r=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=i.parse(a));var s=bL(n);null==o&&(r.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a0&&!d.min?d.min=0:null!=d.min&&d.min<0&&!d.max&&(d.max=0);var h=a;null!=d.color&&(h=B({color:d.color},a));var p=E(R(d),{boundaryGap:e,splitNumber:t,scale:n,axisLine:i,axisTick:r,axisLabel:o,name:d.text,showName:s,nameLocation:"end",nameGap:u,nameTextStyle:h,triggerEvent:c},!1);if(ee(l)){var f=p.name;p.name=l.replace("{value}",null!=f?f:"")}else Q(l)&&(p.name=l(p.name,p));var g=new Od(p,null,this.ecModel);return q(g,Xk.prototype),g.mainType="radar",g.componentIndex=this.componentIndex,g}),this);this._indicatorModels=d},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:E({lineStyle:{color:"#bbb"}},ZL.axisLine),axisLabel:$L(ZL.axisLabel,!1),axisTick:$L(ZL.axisTick,!1),splitLine:$L(ZL.splitLine,!0),splitArea:$L(ZL.splitArea,!0),indicator:[]},t}(op);const XL=YL;var KL=["axisLine","axisTickLabel","axisName"],JL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.render=function(e,t,n){var i=this.group;i.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes(),i=G(n,(function(e){var n=e.model.get("showName")?e.name:"",i=new dL(e.model,{axisName:n,position:[t.cx,t.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return i}));W(i,(function(e){W(KL,e.add,e),this.group.add(e.getGroup())}),this)},t.prototype._buildSplitLineAndArea=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes();if(n.length){var i=e.get("shape"),r=e.getModel("splitLine"),o=e.getModel("splitArea"),a=r.getModel("lineStyle"),s=o.getModel("areaStyle"),l=r.get("show"),u=o.get("show"),c=a.get("color"),d=s.get("color"),h=J(c)?c:[c],p=J(d)?d:[d],f=[],g=[];if("circle"===i)for(var v=n[0].getTicksCoords(),m=t.cx,y=t.cy,x=0;x3?1.4:r>1?1.2:1.1,l=i>0?s:1/s;hP(this,"zoom","zoomOnMouseWheel",e,{scale:l,originX:o,originY:a,isAvailableBehavior:null})}if(n){var u=Math.abs(i),c=(i>0?1:-1)*(u>3?.4:u>1?.15:.05);hP(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:c,originX:o,originY:a,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!uP(this._zr,"globalPan")){var t=e.pinchScale>1?1.1:1/1.1;hP(this,"zoom",null,e,{scale:t,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}(et);function hP(e,t,n,i,r){e.pointerChecker&&e.pointerChecker(i,r.originX,r.originY)&&(bt(i.event),pP(e,t,n,i,r))}function pP(e,t,n,i,r){r.isAvailableBehavior=X(fP,null,n,i),e.trigger(t,r)}function fP(e,t,n){var i=n[e];return!e||i&&(!ee(i)||t.event[i+"Key"])}const gP=dP;function vP(e,t,n){var i=e.target;i.x+=t,i.y+=n,i.dirty()}function mP(e,t,n,i){var r=e.target,o=e.zoomLimit,a=e.zoom=e.zoom||1;if(a*=t,o){var s=o.min||0,l=o.max||1/0;a=Math.max(Math.min(l,a),s)}var u=a/e.zoom;e.zoom=a,r.x-=(n-r.x)*(u-1),r.y-=(i-r.y)*(u-1),r.scaleX*=u,r.scaleY*=u,r.dirty()}var yP,xP={axisPointer:1,tooltip:1,brush:1};function _P(e,t,n){var i=t.getComponentByElement(e.topTarget),r=i&&i.coordinateSystem;return i&&i!==n&&!xP.hasOwnProperty(i.mainType)&&r&&r.model!==n}function bP(e){if(ee(e)){var t=new DOMParser;e=t.parseFromString(e,"text/xml")}var n=e;9===n.nodeType&&(n=n.firstChild);while("svg"!==n.nodeName.toLowerCase()||1!==n.nodeType)n=n.nextSibling;return n}var wP={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},SP=$(wP),MP={"alignment-baseline":"textBaseline","stop-color":"stopColor"},CP=$(MP),IP=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(e,t){t=t||{};var n=bP(e);this._defsUsePending=[];var i=new Lo;this._root=i;var r=[],o=n.getAttribute("viewBox")||"",a=parseFloat(n.getAttribute("width")||t.width),s=parseFloat(n.getAttribute("height")||t.height);isNaN(a)&&(a=null),isNaN(s)&&(s=null),PP(n,i,null,!0,!1);var l,u,c=n.firstChild;while(c)this._parseNode(c,i,r,null,!1,!1),c=c.nextSibling;if(NP(this._defs,this._defsUsePending),this._defsUsePending=[],o){var d=BP(o);d.length>=4&&(l={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(l&&null!=a&&null!=s&&(u=UP(l,{x:0,y:0,width:a,height:s}),!t.ignoreViewBox)){var h=i;i=new Lo,i.add(h),h.scaleX=h.scaleY=u.scale,h.x=u.x,h.y=u.y}return t.ignoreRootClip||null==a||null==s||i.setClipPath(new hu({shape:{x:0,y:0,width:a,height:s}})),{root:i,width:a,height:s,viewBoxRect:l,viewBoxTransform:u,named:r}},e.prototype._parseNode=function(e,t,n,i,r,o){var a,s=e.nodeName.toLowerCase(),l=i;if("defs"===s&&(r=!0),"text"===s&&(o=!0),"defs"===s||"switch"===s)a=t;else{if(!r){var u=yP[s];if(u&&Ie(yP,s)){a=u.call(this,e,t);var c=e.getAttribute("name");if(c){var d={name:c,namedFrom:null,svgNodeTagLower:s,el:a};n.push(d),"g"===s&&(l=d)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:a});t.add(a)}}var h=TP[s];if(h&&Ie(TP,s)){var p=h.call(this,e),f=e.getAttribute("id");f&&(this._defs[f]=p)}}if(a&&a.isGroup){var g=e.firstChild;while(g)1===g.nodeType?this._parseNode(g,a,n,l,r,o):3===g.nodeType&&o&&this._parseText(g,a),g=g.nextSibling}},e.prototype._parseText=function(e,t){var n=new Jl({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});DP(t,n),PP(e,n,this._defsUsePending,!1,!1),OP(n,t);var i=n.style,r=i.fontSize;r&&r<9&&(i.fontSize=9,n.scaleX*=r/9,n.scaleY*=r/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var a=n.getBoundingRect();return this._textX+=a.width,t.add(n),n},e.internalField=function(){yP={g:function(e,t){var n=new Lo;return DP(t,n),PP(e,n,this._defsUsePending,!1,!1),n},rect:function(e,t){var n=new hu;return DP(t,n),PP(e,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(e,t){var n=new lm;return DP(t,n),PP(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),n.silent=!0,n},line:function(e,t){var n=new Gm;return DP(t,n),PP(e,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(e,t){var n=new dm;return DP(t,n),PP(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(e,t){var n,i=e.getAttribute("points");i&&(n=LP(i));var r=new Fm({shape:{points:n||[]},silent:!0});return DP(t,r),PP(e,r,this._defsUsePending,!1,!1),r},polyline:function(e,t){var n,i=e.getAttribute("points");i&&(n=LP(i));var r=new zm({shape:{points:n||[]},silent:!0});return DP(t,r),PP(e,r,this._defsUsePending,!1,!1),r},image:function(e,t){var n=new iu;return DP(t,n),PP(e,n,this._defsUsePending,!1,!1),n.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),n.silent=!0,n},text:function(e,t){var n=e.getAttribute("x")||"0",i=e.getAttribute("y")||"0",r=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(r),this._textY=parseFloat(i)+parseFloat(o);var a=new Lo;return DP(t,a),PP(e,a,this._defsUsePending,!1,!0),a},tspan:function(e,t){var n=e.getAttribute("x"),i=e.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=i&&(this._textY=parseFloat(i));var r=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",a=new Lo;return DP(t,a),PP(e,a,this._defsUsePending,!1,!0),this._textX+=parseFloat(r),this._textY+=parseFloat(o),a},path:function(e,t){var n=e.getAttribute("d")||"",i=nm(n);return DP(t,i),PP(e,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),e}(),TP={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),n=parseInt(e.getAttribute("y1")||"0",10),i=parseInt(e.getAttribute("x2")||"10",10),r=parseInt(e.getAttribute("y2")||"0",10),o=new ry(t,n,i,r);return kP(e,o),AP(e,o),o},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),n=parseInt(e.getAttribute("cy")||"0",10),i=parseInt(e.getAttribute("r")||"0",10),r=new ay(t,n,i);return kP(e,r),AP(e,r),r}};function kP(e,t){var n=e.getAttribute("gradientUnits");"userSpaceOnUse"===n&&(t.global=!0)}function AP(e,t){var n=e.firstChild;while(n){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var i=n.getAttribute("offset"),r=void 0;r=i&&i.indexOf("%")>0?parseInt(i,10)/100:i?parseFloat(i):0;var o={};WP(n,o,o);var a=o.stopColor||n.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:r,color:a})}n=n.nextSibling}}function DP(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),B(t.__inheritedStyle,e.__inheritedStyle))}function LP(e){for(var t=BP(e),n=[],i=0;i0;o-=2){var a=i[o],s=i[o-1],l=BP(a);switch(r=r||kr(),s){case"translate":Pr(r,r,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Rr(r,r,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Or(r,r,-parseFloat(l[0])*zP);break;case"skewX":var u=Math.tan(parseFloat(l[0])*zP);Lr(r,[1,0,u,1,0,0],r);break;case"skewY":var c=Math.tan(parseFloat(l[0])*zP);Lr(r,[1,c,0,1,0,0],r);break;case"matrix":r[0]=parseFloat(l[0]),r[1]=parseFloat(l[1]),r[2]=parseFloat(l[2]),r[3]=parseFloat(l[3]),r[4]=parseFloat(l[4]),r[5]=parseFloat(l[5]);break}}t.setLocalTransform(r)}}var HP=/([^\s:;]+)\s*:\s*([^:;]+)/g;function WP(e,t,n){var i=e.getAttribute("style");if(i){var r;HP.lastIndex=0;while(null!=(r=HP.exec(i))){var o=r[1],a=Ie(wP,o)?wP[o]:null;a&&(t[a]=r[2]);var s=Ie(MP,o)?MP[o]:null;s&&(n[s]=r[2])}}}function GP(e,t,n){for(var i=0;in&&(e=r,n=a)}if(e)return QP(e.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},t.prototype.getBoundingRect=function(e){var t=this._rect;if(t&&!e)return t;var n=[1/0,1/0],i=[-1/0,-1/0],r=this.geometries;return W(r,(function(t){"polygon"===t.type?JP(t.exterior,n,i,e):W(t.points,(function(t){JP(t,n,i,e)}))})),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),t=new oo(n[0],n[1],i[0]-n[0],i[1]-n[1]),e||(this._rect=t),t},t.prototype.contain=function(e){var t=this.getBoundingRect(),n=this.geometries;if(!t.contain(e[0],e[1]))return!1;e:for(var i=0,r=n.length;i>1^-(1&s),l=l>>1^-(1&l),s+=r,l+=o,r=s,o=l,i.push([s/n,l/n])}return i}function hO(e,t){return e=uO(e),G(j(e.features,(function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0})),(function(e){var n=e.properties,i=e.geometry,r=[];switch(i.type){case"Polygon":var o=i.coordinates;r.push(new tO(o[0],o.slice(1)));break;case"MultiPolygon":W(i.coordinates,(function(e){e[0]&&r.push(new tO(e[0],e.slice(1)))}));break;case"LineString":r.push(new nO([i.coordinates]));break;case"MultiLineString":r.push(new nO(i.coordinates))}var a=new iO(n[t||"name"],r,n.cp);return a.properties=n,a}))}for(var pO=[126,25],fO="南海诸岛",gO=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],vO=0;vO0,g={api:n,geo:s,mapOrGeoModel:e,data:a,isVisualEncodedByVisualMap:f,isGeo:o,transformInfoRaw:d};"geoJSON"===s.resourceType?this._buildGeoJSON(g):"geoSVG"===s.resourceType&&this._buildSVG(g),this._updateController(e,t,n),this._updateMapSelectHandler(e,l,n,i)},e.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=we(),n=we(),i=this._regionsGroup,r=e.transformInfoRaw,o=e.mapOrGeoModel,a=e.data,s=e.geo.projection,l=s&&s.stream;function u(e,t){return t&&(e=t(e)),e&&[e[0]*r.scaleX+r.x,e[1]*r.scaleY+r.y]}function c(e){for(var t=[],n=!l&&s&&s.project,i=0;i=0)&&(h=r);var p=a?{normal:{align:"center",verticalAlign:"middle"}}:null;sd(t,ld(i),{labelFetcher:h,labelDataIndex:d,defaultText:n},p);var f=t.getTextContent();if(f&&(OO(f).ignore=f.ignore,t.textConfig&&a)){var g=t.getBoundingRect().clone();t.textConfig.layoutRect=g,t.textConfig.position=[(a[0]-g.x)/g.width*100+"%",(a[1]-g.y)/g.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function VO(e,t,n,i,r,o){e.data?e.data.setItemGraphicEl(o,t):Lu(t).eventData={componentType:"geo",componentIndex:r.componentIndex,geoIndex:r.componentIndex,name:n,region:i&&i.option||{}}}function zO(e,t,n,i,r){e.data||Uy({el:t,componentModel:r,itemName:n,itemTooltipOption:i.get("tooltip")})}function qO(e,t,n,i,r){t.highDownSilentOnTouch=!!r.get("selectedMode");var o=i.getModel("emphasis"),a=o.get("focus");return Ec(t,a,o.get("blurScope"),o.get("disabled")),e.isGeo&&Hc(t,r,n),a}function HO(e,t,n){var i,r=[];function o(){i=[]}function a(){i.length&&(r.push(i),i=[])}var s=t({polygonStart:o,polygonEnd:a,lineStart:o,lineEnd:a,point:function(e,t){isFinite(e)&&isFinite(t)&&i.push([e,t])},sphere:function(){}});return!n&&s.polygonStart(),W(e,(function(e){s.lineStart();for(var t=0;t-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(Ov);const ZO=jO;function $O(e,t){var n={};return W(e,(function(e){e.each(e.mapDimension("value"),(function(t,i){var r="ec-"+e.getName(i);n[r]=n[r]||[],isNaN(t)||n[r].push(t)}))})),e[0].map(e[0].mapDimension("value"),(function(i,r){for(var o,a="ec-"+e[0].getName(r),s=0,l=1/0,u=-1/0,c=n[a].length,d=0;d1?(p.width=h,p.height=h/x):(p.height=h,p.width=h*x),p.y=d[1]-p.height/2,p.x=d[0]-p.width/2;else{var b=e.getBoxLayoutParams();b.aspect=x,p=Yh(b,{width:m,height:y})}this.setViewRect(p.x,p.y,p.width,p.height),this.setCenter(e.get("center"),t),this.setZoom(e.get("zoom"))}function sR(e,t){W(t.get("geoCoord"),(function(t,n){e.addGeoCoord(n,t)}))}var lR=function(){function e(){this.dimensions=nR}return e.prototype.create=function(e,t){var n=[];function i(e){return{nameProperty:e.get("nameProperty"),aspectScale:e.get("aspectScale"),projection:e.get("projection")}}e.eachComponent("geo",(function(e,r){var o=e.get("map"),a=new oR(o+r,o,F({nameMap:e.get("nameMap")},i(e)));a.zoomLimit=e.get("scaleLimit"),n.push(a),e.coordinateSystem=a,a.model=e,a.resize=aR,a.resize(e,t)})),e.eachSeries((function(e){var t=e.get("coordinateSystem");if("geo"===t){var i=e.get("geoIndex")||0;e.coordinateSystem=n[i]}}));var r={};return e.eachSeriesByType("map",(function(e){if(!e.getHostGeoModel()){var t=e.getMapType();r[t]=r[t]||[],r[t].push(e)}})),W(r,(function(e,r){var o=G(e,(function(e){return e.get("nameMap")})),a=new oR(r,r,F({nameMap:N(o)},i(e[0])));a.zoomLimit=de.apply(null,G(e,(function(e){return e.get("scaleLimit")}))),n.push(a),a.resize=aR,a.resize(e[0],t),W(e,(function(e){e.coordinateSystem=a,sR(a,e)}))})),n},e.prototype.getFilledRegions=function(e,t,n,i){for(var r=(e||[]).slice(),o=we(),a=0;a=0;a--){var s=i[a];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:a,thread:null},r.push(s)}}function bR(e,t){var n=e.isExpand?e.children:[],i=e.parentNode.children,r=e.hierNode.i?i[e.hierNode.i-1]:null;if(n.length){IR(e);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;r?(e.hierNode.prelim=r.hierNode.prelim+t(e,r),e.hierNode.modifier=e.hierNode.prelim-o):e.hierNode.prelim=o}else r&&(e.hierNode.prelim=r.hierNode.prelim+t(e,r));e.parentNode.hierNode.defaultAncestor=TR(e,r,e.parentNode.hierNode.defaultAncestor||i[0],t)}function wR(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function SR(e){return arguments.length?e:PR}function MR(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function CR(e,t){return Yh(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function IR(e){var t=e.children,n=t.length,i=0,r=0;while(--n>=0){var o=t[n];o.hierNode.prelim+=i,o.hierNode.modifier+=i,r+=o.hierNode.change,i+=o.hierNode.shift+r}}function TR(e,t,n,i){if(t){var r=e,o=e,a=o.parentNode.children[0],s=t,l=r.hierNode.modifier,u=o.hierNode.modifier,c=a.hierNode.modifier,d=s.hierNode.modifier;while(s=kR(s),o=AR(o),s&&o){r=kR(r),a=AR(a),r.hierNode.ancestor=e;var h=s.hierNode.prelim+d-o.hierNode.prelim-u+i(s,o);h>0&&(LR(DR(s,e,n),e,h),u+=h,l+=h),d+=s.hierNode.modifier,u+=o.hierNode.modifier,l+=r.hierNode.modifier,c+=a.hierNode.modifier}s&&!kR(r)&&(r.hierNode.thread=s,r.hierNode.modifier+=d-l),o&&!AR(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=u-c,n=e)}return n}function kR(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function AR(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function DR(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function LR(e,t,n){var i=n/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=i,t.hierNode.shift+=n,t.hierNode.modifier+=n,t.hierNode.prelim+=n,e.hierNode.change+=i}function PR(e,t){return e.parentNode===t.parentNode?1:2}var OR=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),RR=function(e){function t(t){return e.call(this,t)||this}return o(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new OR},t.prototype.buildPath=function(e,t){var n=t.childPoints,i=n.length,r=t.parentPoint,o=n[0],a=n[i-1];if(1===i)return e.moveTo(r[0],r[1]),void e.lineTo(o[0],o[1]);var s=t.orient,l="TB"===s||"BT"===s?0:1,u=1-l,c=Wo(t.forkPosition,1),d=[];d[l]=r[l],d[u]=r[u]+(a[u]-r[u])*c,e.moveTo(r[0],r[1]),e.lineTo(d[0],d[1]),e.moveTo(o[0],o[1]),d[l]=o[l],e.lineTo(d[0],d[1]),d[l]=a[l],e.lineTo(d[0],d[1]),e.lineTo(a[0],a[1]);for(var h=1;hy.x,b||(_-=Math.PI));var S=b?"left":"right",M=s.getModel("label"),C=M.get("rotate"),I=C*(Math.PI/180),T=v.getTextContent();T&&(v.setTextConfig({position:M.get("position")||S,rotation:null==C?-_:I,origin:"center"}),T.setStyle("verticalAlign","middle"))}var k=s.get(["emphasis","focus"]),A="relative"===k?Se(a.getAncestorsIndices(),a.getDescendantIndices()):"ancestor"===k?a.getAncestorsIndices():"descendant"===k?a.getDescendantIndices():null;A&&(Lu(n).focus=A),BR(r,a,c,n,f,p,g,i),n.__edge&&(n.onHoverStateChange=function(t){if("blur"!==t){var i=a.parentNode&&e.getItemGraphicEl(a.parentNode.dataIndex);i&&i.hoverState===Bu||sc(n.__edge,t)}})}function BR(e,t,n,i,r,o,a,s){var l=t.getModel(),u=e.get("edgeShape"),c=e.get("layout"),d=e.getOrient(),h=e.get(["lineStyle","curveness"]),p=e.get("edgeForkPosition"),f=l.getModel("lineStyle").getLineStyle(),g=i.__edge;if("curve"===u)t.parentNode&&t.parentNode!==n&&(g||(g=i.__edge=new Ym({shape:HR(c,d,h,r,r)})),Xc(g,{shape:HR(c,d,h,o,a)},e));else if("polyline"===u)if("orthogonal"===c){if(t!==n&&t.children&&0!==t.children.length&&!0===t.isExpand){for(var v=t.children,m=[],y=0;yt&&(t=i.height)}this.height=t+1},e.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,i=n.length;t=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,n=t.data.getItemModel(this.dataIndex);return n.getModel(e)}},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},e.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t=0){var i=n.getData().tree.root,r=e.targetNode;if(ee(r)&&(r=i.getNodeById(r)),r&&i.contains(r))return{node:r};var o=e.targetNodeId;if(null!=o&&(r=i.getNodeById(o)))return{node:r}}}function aE(e){var t=[];while(e)e=e.parentNode,e&&t.push(e);return t.reverse()}function sE(e,t){var n=aE(e);return V(n,t)>=0}function lE(e,t){var n=[];while(e){var i=e.dataIndex;n.push({name:e.name,dataIndex:i,value:t.getRawValue(i)}),e=e.parentNode}return n.reverse(),n}var uE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return o(t,e),t.prototype.getInitialData=function(e){var t={name:e.name,children:e.data},n=e.leaves||{},i=new Od(n,this,this.ecModel),r=rE.createTree(t,this,o);function o(e){e.wrapMethod("getItemModel",(function(e,t){var n=r.getNodeByDataIndex(t);return n&&n.children.length&&n.isExpand||(e.parentModel=i),e}))}var a=0;r.eachNode("preorder",(function(e){e.depth>a&&(a=e.depth)}));var s=e.expandAndCollapse,l=s&&e.initialTreeDepth>=0?e.initialTreeDepth:a;return r.root.eachNode("preorder",(function(e){var t=e.hostTree.data.getRawDataItem(e.dataIndex);e.isExpand=t&&null!=t.collapsed?!t.collapsed:e.depth<=l})),r.data},t.prototype.getOrient=function(){var e=this.get("orient");return"horizontal"===e?e="LR":"vertical"===e&&(e="TB"),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,t,n){var i=this.getData().tree,r=i.root.children[0],o=i.getNodeByDataIndex(e),a=o.getValue(),s=o.name;while(o&&o!==r)s=o.parentNode.name+"."+s,o=o.parentNode;return iv("nameValue",{name:s,value:a,noValue:isNaN(a)||null==a})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=lE(i,this),n.collapsed=!i.isExpand,n},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(Ov);const cE=uE;function dE(e,t,n){var i,r=[e],o=[];while(i=r.pop())if(o.push(i),i.isExpand){var a=i.children;if(a.length)for(var s=0;s=0;o--)i.push(r[o])}}function pE(e,t){e.eachSeriesByType("tree",(function(e){fE(e,t)}))}function fE(e,t){var n=CR(e,t);e.layoutInfo=n;var i=e.get("layout"),r=0,o=0,a=null;"radial"===i?(r=2*Math.PI,o=Math.min(n.height,n.width)/2,a=SR((function(e,t){return(e.parentNode===t.parentNode?1:2)/e.depth}))):(r=n.width,o=n.height,a=SR());var s=e.getData().tree.root,l=s.children[0];if(l){_R(s),dE(l,bR,a),s.hierNode.modifier=-l.hierNode.prelim,hE(l,wR);var u=l,c=l,d=l;hE(l,(function(e){var t=e.getLayout().x;tc.getLayout().x&&(c=e),e.depth>d.depth&&(d=e)}));var h=u===c?1:a(u,c)/2,p=h-u.getLayout().x,f=0,g=0,v=0,m=0;if("radial"===i)f=r/(c.getLayout().x+h+p),g=o/(d.depth-1||1),hE(l,(function(e){v=(e.getLayout().x+p)*f,m=(e.depth-1)*g;var t=MR(v,m);e.setLayout({x:t.x,y:t.y,rawX:v,rawY:m},!0)}));else{var y=e.getOrient();"RL"===y||"LR"===y?(g=o/(c.getLayout().x+h+p),f=r/(d.depth-1||1),hE(l,(function(e){m=(e.getLayout().x+p)*g,v="LR"===y?(e.depth-1)*f:r-(e.depth-1)*f,e.setLayout({x:v,y:m},!0)}))):"TB"!==y&&"BT"!==y||(f=r/(c.getLayout().x+h+p),g=o/(d.depth-1||1),hE(l,(function(e){v=(e.getLayout().x+p)*f,m="TB"===y?(e.depth-1)*g:o-(e.depth-1)*g,e.setLayout({x:v,y:m},!0)})))}}}function gE(e){e.eachSeriesByType("tree",(function(e){var t=e.getData(),n=t.tree;n.eachNode((function(e){var n=e.getModel(),i=n.getModel("itemStyle").getItemStyle(),r=t.ensureUniqueItemVisual(e.dataIndex,"style");F(r,i)}))}))}function vE(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var n=e.dataIndex,i=t.getData().tree,r=i.getNodeByDataIndex(n);r.isExpand=!r.isExpand}))})),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(e,t,n){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var i=t.coordinateSystem,r=fR(i,e,void 0,n);t.setCenter&&t.setCenter(r.center),t.setZoom&&t.setZoom(r.zoom)}))}))}function mE(e){e.registerChartView(WR),e.registerSeriesModel(cE),e.registerLayout(pE),e.registerVisual(gE),vE(e)}var yE=["treemapZoomToNode","treemapRender","treemapMove"];function xE(e){for(var t=0;t1)n=n.parentNode;var r=Np(e.ecModel,n.name||n.dataIndex+"",i);t.setVisual("decal",r)}))}var bE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.preventUsingHoverLayer=!0,n}return o(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};wE(n);var i=e.levels||[],r=this.designatedVisualItemStyle={},o=new Od({itemStyle:r},this,t);i=e.levels=SE(i,t);var a=G(i||[],(function(e){return new Od(e,o,t)}),this),s=rE.createTree(n,this,l);function l(e){e.wrapMethod("getItemModel",(function(e,t){var n=s.getNodeByDataIndex(t),i=n?a[n.depth]:null;return e.parentModel=i||o,e}))}return s.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),r=this.getRawValue(e),o=i.getName(e);return iv("nameValue",{name:o,value:r})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=lE(i,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},F(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var t=this._idIndexMap;t||(t=this._idIndexMap=we(),this._idIndexMapCount=0);var n=t.get(e);return null==n&&t.set(e,n=this._idIndexMapCount++),n},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){_E(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(Ov);function wE(e){var t=0;W(e.children,(function(e){wE(e);var n=e.value;J(n)&&(n=n[0]),t+=n}));var n=e.value;J(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),n<0&&(n=0),J(e.value)?e.value[0]=n:e.value=n}function SE(e,t){var n=ga(t.get("color")),i=ga(t.get(["aria","decal","decals"]));if(n){var r,o;e=e||[],W(e,(function(e){var t=new Od(e),n=t.get("color"),i=t.get("decal");(t.get(["itemStyle","color"])||n&&"none"!==n)&&(r=!0),(t.get(["itemStyle","decal"])||i&&"none"!==i)&&(o=!0)}));var a=e[0]||(e[0]={});return r||(a.color=n.slice()),!o&&i&&(a.decal=i.slice()),e}}const ME=bE;var CE=8,IE=8,TE=5,kE=function(){function e(e){this.group=new Lo,e.add(this.group)}return e.prototype.render=function(e,t,n,i){var r=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),r.get("show")&&n){var a=r.getModel("itemStyle"),s=a.getModel("textStyle"),l={pos:{left:r.get("left"),right:r.get("right"),top:r.get("top"),bottom:r.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:r.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,l,s),this._renderContent(e,l,a,s,i),Xh(o,l.pos,l.box)}},e.prototype._prepare=function(e,t,n){for(var i=e;i;i=i.parentNode){var r=Aa(i.getModel().get("name"),""),o=n.getTextRect(r),a=Math.max(o.width+2*CE,t.emptyItemWidth);t.totalWidth+=a+IE,t.renderList.push({node:i,text:r,width:a})}},e.prototype._renderContent=function(e,t,n,i,r){for(var o=0,a=t.emptyItemWidth,s=e.get(["breadcrumb","height"]),l=$h(t.pos,t.box),u=t.totalWidth,c=t.renderList,d=c.length-1;d>=0;d--){var h=c[d],p=h.node,f=h.width,g=h.text;u>l.width&&(u-=f-a,f=a,g=null);var v=new Fm({shape:{points:AE(o,0,f,s,d===c.length-1,0===d)},style:B(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new Du({style:{text:g,fill:i.getTextColor(),font:i.getFont()}}),textConfig:{position:"inside"},z2:1e4*Hu,onclick:K(r,p)});v.disableLabelAnimation=!0,this.group.add(v),DE(v,e,p),o+=f+IE}},e.prototype.remove=function(){this.group.removeAll()},e}();function AE(e,t,n,i,r,o){var a=[[r?e:e-TE,t],[e+n,t],[e+n,t+i],[r?e:e-TE,t+i]];return!o&&a.splice(2,0,[e+n+TE,t+i/2]),!r&&a.push([e,t+i/2]),a}function DE(e,t,n){Lu(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&lE(n,t)}}const LE=kE;var PE=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(e,t,n,i,r){return!this._elExistsMap[e.id]&&(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:n,delay:i,easing:r}),!0)},e.prototype.finished=function(e){return this._finishedCallback=e,this},e.prototype.start=function(){for(var e=this,t=this._storage.length,n=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},i=0,r=this._storage.length;iNE||Math.abs(e.dy)>NE)){var t=this.seriesModel.getData().tree.root;if(!t)return;var n=t.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+e.dx,y:n.y+e.dy,width:n.width,height:n.height}})}},t.prototype._onZoom=function(e){var t=e.originX,n=e.originY;if("animating"!==this._state){var i=this.seriesModel.getData().tree.root;if(!i)return;var r=i.getLayout();if(!r)return;var o=new oo(r.x,r.y,r.width,r.height),a=this.seriesModel.layoutInfo;t-=a.x,n-=a.y;var s=kr();Pr(s,s,[-t,-n]),Rr(s,s,[e.scale,e.scale]),Pr(s,s,[t,n]),o.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x,y:o.y,width:o.width,height:o.height}})}},t.prototype._initEvents=function(e){var t=this;e.on("click",(function(e){if("ready"===t._state){var n=t.seriesModel.get("nodeClick",!0);if(n){var i=t.findTarget(e.offsetX,e.offsetY);if(i){var r=i.node;if(r.getLayout().isLeafRoot)t._rootToNode(i);else if("zoomToNode"===n)t._zoomToNode(i);else if("link"===n){var o=r.hostTree.data.getItemModel(r.dataIndex),a=o.get("link",!0),s=o.get("target",!0)||"blank";a&&Hh(a,s)}}}}}),this)},t.prototype._renderBreadcrumb=function(e,t,n){var i=this;n||(n=null!=e.get("leafDepth",!0)?{node:e.getViewRoot()}:this.findTarget(t.getWidth()/2,t.getHeight()/2),n||(n={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new LE(this.group))).render(e,t,n.node,(function(t){"animating"!==i._state&&(sE(e.getViewRoot(),t)?i._rootToNode({node:t}):i._zoomToNode({node:t}))}))},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=jE(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,t){var n,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},(function(i){var r=this._storage.background[i.getRawIndex()];if(r){var o=r.transformCoordToLocal(e,t),a=r.shape;if(!(a.x<=o[0]&&o[0]<=a.x+a.width&&a.y<=o[1]&&o[1]<=a.y+a.height))return!1;n={node:i,offsetX:o[0],offsetY:o[1]}}}),this),n},t.type="treemap",t}(nx);function jE(){return{nodeGroup:[],background:[],content:[]}}function ZE(e,t,n,i,r,o,a,s,l,u){if(a){var c=a.getLayout(),d=e.getData(),h=a.getModel();if(d.setItemGraphicEl(a.dataIndex,null),c&&c.isInView){var p=c.width,f=c.height,g=c.borderWidth,v=c.invisible,m=a.getRawIndex(),y=s&&s.getRawIndex(),x=a.viewChildren,_=c.upperHeight,b=x&&x.length,w=h.getModel("itemStyle"),S=h.getModel(["emphasis","itemStyle"]),M=h.getModel(["blur","itemStyle"]),C=h.getModel(["select","itemStyle"]),I=w.get("borderRadius")||0,T=q("nodeGroup",RE);if(T){if(l.add(T),T.x=c.x||0,T.y=c.y||0,T.markRedraw(),GE(T).nodeWidth=p,GE(T).nodeHeight=f,c.isAboveViewRoot)return T;var k=q("background",EE,u,zE);k&&E(T,k,b&&c.upperLabelHeight);var A=h.getModel("emphasis"),D=A.get("focus"),L=A.get("blurScope"),P=A.get("disabled"),O="ancestor"===D?a.getAncestorsIndices():"descendant"===D?a.getDescendantIndices():D;if(b)qc(T)&&zc(T,!1),k&&(zc(k,!P),d.setItemGraphicEl(a.dataIndex,k),Nc(k,O,L));else{var R=q("content",EE,u,qE);R&&N(T,R),k.disableMorphing=!0,k&&qc(k)&&zc(k,!1),zc(T,!P),d.setItemGraphicEl(a.dataIndex,T),Nc(T,O,L)}return T}}}function E(t,n,i){var r=Lu(n);if(r.dataIndex=a.dataIndex,r.seriesIndex=e.seriesIndex,n.setShape({x:0,y:0,width:p,height:f,r:I}),v)B(n);else{n.invisible=!1;var o=a.getVisual("style"),s=o.stroke,l=WE(w);l.fill=s;var u=HE(S);u.fill=S.get("borderColor");var c=HE(M);c.fill=M.get("borderColor");var d=HE(C);if(d.fill=C.get("borderColor"),i){var h=p-2*g;V(n,s,o.opacity,{x:g,y:0,width:h,height:_})}else n.removeTextContent();n.setStyle(l),n.ensureState("emphasis").style=u,n.ensureState("blur").style=c,n.ensureState("select").style=d,pc(n)}t.add(n)}function N(t,n){var i=Lu(n);i.dataIndex=a.dataIndex,i.seriesIndex=e.seriesIndex;var r=Math.max(p-2*g,0),o=Math.max(f-2*g,0);if(n.culling=!0,n.setShape({x:g,y:g,width:r,height:o,r:I}),v)B(n);else{n.invisible=!1;var s=a.getVisual("style"),l=s.fill,u=WE(w);u.fill=l,u.decal=s.decal;var c=HE(S),d=HE(M),h=HE(C);V(n,l,s.opacity,null),n.setStyle(u),n.ensureState("emphasis").style=c,n.ensureState("blur").style=d,n.ensureState("select").style=h,pc(n)}t.add(n)}function B(e){!e.invisible&&o.push(e)}function V(t,n,i,r){var o=h.getModel(r?BE:FE),s=Aa(h.get("name"),null),l=o.getShallow("show");sd(t,ld(h,r?BE:FE),{defaultText:l?s:null,inheritColor:n,defaultOpacity:i,labelFetcher:e,labelDataIndex:a.dataIndex});var u=t.getTextContent();if(u){var d=u.style,p=ge(d.padding||0);r&&(t.setTextConfig({layoutRect:r}),u.disableLabelLayout=!0),u.beforeUpdate=function(){var e=Math.max((r?r.width:t.shape.width)-p[1]-p[3],0),n=Math.max((r?r.height:t.shape.height)-p[0]-p[2],0);d.width===e&&d.height===n||u.setStyle({width:e,height:n})},d.truncateMinChar=2,d.lineOverflow="truncate",z(d,r,c);var f=u.getState("emphasis");z(f?f.style:null,r,c)}}function z(t,n,i){var r=t?t.text:null;if(!n&&i.isLeafRoot&&null!=r){var o=e.get("drillDownIcon",!0);t.text=o?o+" "+r:r}}function q(e,i,o,a){var s=null!=y&&n[e][y],l=r[e];return s?(n[e][y]=null,H(l,s)):v||(s=new i,s instanceof Hs&&(s.z2=$E(o,a)),W(l,s)),t[e][m]=s}function H(e,t){var n=e[m]={};t instanceof RE?(n.oldX=t.x,n.oldY=t.y):n.oldShape=F({},t.shape)}function W(e,t){var n=e[m]={},o=a.parentNode,s=t instanceof Lo;if(o&&(!i||"drillDown"===i.direction)){var l=0,u=0,c=r.background[o.getRawIndex()];!i&&c&&c.oldShape&&(l=c.oldShape.width,u=c.oldShape.height),s?(n.oldX=0,n.oldY=u):n.oldShape={x:l,y:u,width:0,height:0}}n.fadein=!s}}function $E(e,t){return e*VE+t}const YE=UE;var XE=W,KE=ie,JE=-1,QE=function(){function e(t){var n=t.mappingMethod,i=t.type,r=this.option=R(t);this.type=i,this.mappingMethod=n,this._normalizeData=dN[n];var o=e.visualHandlers[i];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[n],"piecewise"===n?(nN(r),eN(r)):"category"===n?r.categories?tN(r):nN(r,!0):(ve("linear"!==n||r.dataExtent),nN(r))}return e.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},e.prototype.getNormalizer=function(){return X(this._normalizeData,this)},e.listVisualTypes=function(){return $(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(e,t,n){ie(e)?W(e,t,n):t.call(n,e)},e.mapVisual=function(t,n,i){var r,o=J(t)?[]:ie(t)?{}:(r=!0,null);return e.eachVisual(t,(function(e,t){var a=n.call(i,e,t);r?o=a:o[t]=a})),o},e.retrieveVisuals=function(t){var n,i={};return t&&XE(e.visualHandlers,(function(e,r){t.hasOwnProperty(r)&&(i[r]=t[r],n=!0)})),n?i:null},e.prepareVisualTypes=function(e){if(J(e))e=e.slice();else{if(!KE(e))return[];var t=[];XE(e,(function(e,n){t.push(n)})),e=t}return e.sort((function(e,t){return"color"===t&&"color"!==e&&0===e.indexOf("color")?1:-1})),e},e.dependsOn=function(e,t){return"color"===t?!(!e||0!==e.indexOf(t)):e===t},e.findPieceIndex=function(e,t,n){for(var i,r=1/0,o=0,a=t.length;o=0;o--)null==i[o]&&(delete n[t[o]],t.pop())}function nN(e,t){var n=e.visual,i=[];ie(n)?XE(n,(function(e){i.push(e)})):null!=n&&i.push(n);var r={color:1,symbol:1};t||1!==i.length||r.hasOwnProperty(e.type)||(i[1]=i[0]),cN(e,i)}function iN(e){return{applyVisual:function(t,n,i){var r=this.mapValueToVisual(t);i("color",e(n("color"),r))},_normalizedToVisual:lN([0,1])}}function rN(e){var t=this.option.visual;return t[Math.round(Ho(e,[0,1],[0,t.length-1],!0))]||{}}function oN(e){return function(t,n,i){i(e,this.mapValueToVisual(t))}}function aN(e){var t=this.option.visual;return t[this.option.loop&&e!==JE?e%t.length:e]}function sN(){return this.option.visual[0]}function lN(e){return{linear:function(t){return Ho(t,e,this.option.visual,!0)},category:aN,piecewise:function(t,n){var i=uN.call(this,n);return null==i&&(i=Ho(t,e,this.option.visual,!0)),i},fixed:sN}}function uN(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var i=QE.findPieceIndex(e,n),r=n[i];if(r&&r.visual)return r.visual[this.type]}}function cN(e,t){return e.visual=t,"color"===e.type&&(e.parsedVisual=G(t,(function(e){var t=Jn(e);return t||[0,0,0,1]}))),t}var dN={linear:function(e){return Ho(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=QE.findPieceIndex(e,t,!0);if(null!=n)return Ho(n,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return null==t?JE:t},fixed:Te};function hN(e,t,n){return e?t<=n:t=n.length||e===n[e.depth]){var o=MN(r,u,e,t,f,i);mN(e,o,n,i)}}))}else s=xN(u),c.fill=s}}function yN(e,t,n){var i=F({},t),r=n.designatedVisualItemStyle;return W(["color","colorAlpha","colorSaturation"],(function(n){r[n]=t[n];var o=e.get(n);r[n]=null,null!=o&&(i[n]=o)})),i}function xN(e){var t=bN(e,"color");if(t){var n=bN(e,"colorAlpha"),i=bN(e,"colorSaturation");return i&&(t=ri(t,null,null,i)),n&&(t=oi(t,n)),t}}function _N(e,t){return null!=t?ri(t,null,null,e):null}function bN(e,t){var n=e[t];if(null!=n&&"none"!==n)return n}function wN(e,t,n,i,r,o){if(o&&o.length){var a=SN(t,"color")||null!=r.color&&"none"!==r.color&&(SN(t,"colorAlpha")||SN(t,"colorSaturation"));if(a){var s=t.get("visualMin"),l=t.get("visualMax"),u=n.dataExtent.slice();null!=s&&su[1]&&(u[1]=l);var c=t.get("colorMappingBy"),d={type:a.name,dataExtent:u,visual:a.range};"color"!==d.type||"index"!==c&&"id"!==c?d.mappingMethod="linear":(d.mappingMethod="category",d.loop=!0);var h=new pN(d);return gN(h).drColorMappingBy=c,h}}}function SN(e,t){var n=e.get(t);return J(n)&&n.length?{name:t,range:n}:null}function MN(e,t,n,i,r,o){var a=F({},t);if(r){var s=r.type,l="color"===s&&gN(r).drColorMappingBy,u="index"===l?i:"id"===l?o.mapIdToIndex(n.getId()):n.getValue(e.get("visualDimension"));a[s]=r.mapValueToVisual(u)}return a}var CN=Math.max,IN=Math.min,TN=de,kN=W,AN=["itemStyle","borderWidth"],DN=["itemStyle","gapWidth"],LN=["upperLabel","show"],PN=["upperLabel","height"];const ON={seriesType:"treemap",reset:function(e,t,n,i){var r=n.getWidth(),o=n.getHeight(),a=e.option,s=Yh(e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=a.size||[],u=Wo(TN(s.width,l[0]),r),c=Wo(TN(s.height,l[1]),o),d=i&&i.type,h=["treemapZoomToNode","treemapRootToNode"],p=oE(i,h,e),f="treemapRender"===d||"treemapMove"===d?i.rootRect:null,g=e.getViewRoot(),v=aE(g);if("treemapMove"!==d){var m="treemapZoomToNode"===d?qN(e,p,g,u,c):f?[f.width,f.height]:[u,c],y=a.sort;y&&"asc"!==y&&"desc"!==y&&(y="desc");var x={squareRatio:a.squareRatio,sort:y,leafDepth:a.leafDepth};g.hostTree.clearLayouts();var _={x:0,y:0,width:m[0],height:m[1],area:m[0]*m[1]};g.setLayout(_),RN(g,x,!1,0),_=g.getLayout(),kN(v,(function(e,t){var n=(v[t+1]||g).getValue();e.setLayout(F({dataExtent:[n,n],borderWidth:0,upperHeight:0},_))}))}var b=e.getData().tree.root;b.setLayout(HN(s,f,p),!0),e.setLayoutInfo(s),WN(b,new oo(-s.x,-s.y,r,o),v,g,0)}};function RN(e,t,n,i){var r,o;if(!e.isRemoved()){var a=e.getLayout();r=a.width,o=a.height;var s=e.getModel(),l=s.get(AN),u=s.get(DN)/2,c=GN(s),d=Math.max(l,c),h=l-u,p=d-u;e.setLayout({borderWidth:l,upperHeight:d,upperLabelHeight:c},!0),r=CN(r-2*h,0),o=CN(o-h-p,0);var f=r*o,g=EN(e,s,f,t,n,i);if(g.length){var v={x:h,y:p,width:r,height:o},m=IN(r,o),y=1/0,x=[];x.area=0;for(var _=0,b=g.length;_=0;l--){var u=r["asc"===i?a-l-1:l].getValue();u/n*ta[1]&&(a[1]=t)}))):a=[NaN,NaN],{sum:i,dataExtent:a}}function VN(e,t,n){for(var i=0,r=1/0,o=0,a=void 0,s=e.length;oi&&(i=a));var l=e.area*e.area,u=t*t*n;return l?CN(u*i/l,l/(u*r)):1/0}function zN(e,t,n,i,r){var o=t===n.width?0:1,a=1-o,s=["x","y"],l=["width","height"],u=n[s[o]],c=t?e.area/t:0;(r||c>n[l[a]])&&(c=n[l[a]]);for(var d=0,h=e.length;dKo&&(u=Ko),a=o}ui&&(i=t);var o=i%2?i+2:i+3;r=[];for(var a=0;a0&&(y[0]=-y[0],y[1]=-y[1]);var _=m[0]<0?-1:1;if("start"!==i.__position&&"end"!==i.__position){var b=-Math.atan2(m[1],m[0]);u[0].8?"left":c[0]<-.8?"right":"center",h=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":i.x=-c[0]*f+l[0],i.y=-c[1]*g+l[1],d=c[0]>.8?"right":c[0]<-.8?"left":"center",h=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=f*_+l[0],i.y=l[1]+w,d=m[0]<0?"right":"left",i.originX=-f*_,i.originY=-w;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=x[0],i.y=x[1]+w,d="center",i.originY=-w;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-f*_+u[0],i.y=u[1]+w,d=m[0]>=0?"right":"left",i.originX=f*_,i.originY=-w;break}i.scaleX=i.scaleY=r,i.setStyle({verticalAlign:i.__verticalAlign||h,align:i.__align||d})}}}function S(e,t){var n=e.__specifiedRotation;if(null==n){var i=a.tangentAt(t);e.attr("rotation",(1===t?-1:1)*Math.PI/2-Math.atan2(i[1],i[0]))}else e.attr("rotation",n)}},t}(Lo);const RF=OF;var EF=function(){function e(e){this.group=new Lo,this._LineCtor=e||RF}return e.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var n=this,i=n.group,r=n._lineData;n._lineData=e,r||i.removeAll();var o=FF(e);e.diff(r).add((function(n){t._doAdd(e,n,o)})).update((function(n,i){t._doUpdate(r,e,i,n,o)})).remove((function(e){i.remove(r.getItemGraphicEl(e))})).execute()},e.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl((function(t,n){t.updateLayout(e,n)}),this)},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=FF(e),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t){function n(e){e.isGroup||NF(e)||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var i=e.start;i0}function FF(e){var t=e.hostModel,n=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:ld(t)}}function BF(e){return isNaN(e[0])||isNaN(e[1])}function VF(e){return e&&!BF(e[0])&&!BF(e[1])}const zF=EF;var qF=[],HF=[],WF=[],GF=Mn,UF=Ue,jF=Math.abs;function ZF(e,t,n){for(var i,r=e[0],o=e[1],a=e[2],s=1/0,l=n*n,u=.1,c=.1;c<=.9;c+=.1){qF[0]=GF(r[0],o[0],a[0],c),qF[1]=GF(r[1],o[1],a[1],c);var d=jF(UF(qF,t)-l);d=0?i+=u:i-=u:f>=0?i-=u:i+=u}return i}function $F(e,t){var n=[],i=kn,r=[[],[],[]],o=[[],[]],a=[];t/=2,e.eachEdge((function(e,s){var l=e.getLayout(),u=e.getVisual("fromSymbol"),c=e.getVisual("toSymbol");l.__original||(l.__original=[Oe(l[0]),Oe(l[1])],l[2]&&l.__original.push(Oe(l[2])));var d=l.__original;if(null!=l[2]){if(Pe(r[0],d[0]),Pe(r[1],d[2]),Pe(r[2],d[1]),u&&"none"!==u){var h=dF(e.node1),p=ZF(r,d[0],h*t);i(r[0][0],r[1][0],r[2][0],p,n),r[0][0]=n[3],r[1][0]=n[4],i(r[0][1],r[1][1],r[2][1],p,n),r[0][1]=n[3],r[1][1]=n[4]}if(c&&"none"!==c){h=dF(e.node2),p=ZF(r,d[1],h*t);i(r[0][0],r[1][0],r[2][0],p,n),r[1][0]=n[1],r[2][0]=n[2],i(r[0][1],r[1][1],r[2][1],p,n),r[1][1]=n[1],r[2][1]=n[2]}Pe(l[0],r[0]),Pe(l[1],r[2]),Pe(l[2],r[1])}else{if(Pe(o[0],d[0]),Pe(o[1],d[1]),Fe(a,o[1],o[0]),qe(a,a),u&&"none"!==u){h=dF(e.node1);Ne(o[0],o[0],a,h*t)}if(c&&"none"!==c){h=dF(e.node2);Ne(o[1],o[1],a,-h*t)}Pe(l[0],o[0]),Pe(l[1],o[1])}}))}function YF(e){return"view"===e.type}var XF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.init=function(e,t){var n=new kI,i=new zF,r=this.group;this._controller=new gP(t.getZr()),this._controllerHost={target:r},r.add(n.group),r.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},t.prototype.render=function(e,t,n){var i=this,r=e.coordinateSystem;this._model=e;var o=this._symbolDraw,a=this._lineDraw,s=this.group;if(YF(r)){var l={x:r.x,y:r.y,scaleX:r.scaleX,scaleY:r.scaleY};this._firstRender?s.attr(l):Xc(s,l,e)}$F(e.getGraph(),cF(e));var u=e.getData();o.updateData(u);var c=e.getEdgeData();a.updateData(c),this._updateNodeAndLinkScale(),this._updateController(e,t,n),clearTimeout(this._layoutTimeout);var d=e.forceLayout,h=e.get(["force","layoutAnimation"]);d&&this._startForceLayoutIteration(d,h),u.graph.eachNode((function(e){var t=e.dataIndex,n=e.getGraphicEl(),r=e.getModel();if(n){n.off("drag").off("dragend");var o=r.get("draggable");o&&n.on("drag",(function(){d&&(d.warmUp(),!i._layouting&&i._startForceLayoutIteration(d,h),d.setFixed(t),u.setItemLayout(t,[n.x,n.y]))})).on("dragend",(function(){d&&d.setUnfixed(t)})),n.setDraggable(o&&!!d,!!r.get("cursor"));var a=r.get(["emphasis","focus"]);"adjacency"===a&&(Lu(n).focus=e.getAdjacentDataIndices())}})),u.graph.eachEdge((function(e){var t=e.getGraphicEl(),n=e.getModel().get(["emphasis","focus"]);t&&"adjacency"===n&&(Lu(t).focus={edge:[e.dataIndex],node:[e.node1.dataIndex,e.node2.dataIndex]})}));var p="circular"===e.get("layout")&&e.get(["circular","rotateLabel"]),f=u.getLayout("cx"),g=u.getLayout("cy");u.eachItemGraphicEl((function(e,t){var n=u.getItemModel(t),i=n.get(["label","rotate"])||0,r=e.getSymbolPath();if(p){var o=u.getItemLayout(t),a=Math.atan2(o[1]-g,o[0]-f);a<0&&(a=2*Math.PI+a);var s=o[0]=0&&e.call(t,n[r],r)},e.prototype.eachEdge=function(e,t){for(var n=this.edges,i=n.length,r=0;r=0&&n[r].node1.dataIndex>=0&&n[r].node2.dataIndex>=0&&e.call(t,n[r],r)},e.prototype.breadthFirstTraverse=function(e,t,n,i){if(t instanceof eB||(t=this._nodesMap[JF(t)]),t){for(var r="out"===n?"outEdges":"in"===n?"inEdges":"edges",o=0;o=0&&n.node2.dataIndex>=0}));for(r=0,o=i.length;r=0&&this[e][t].setItemVisual(this.dataIndex,n,i)},getVisual:function(n){return this[e][t].getItemVisual(this.dataIndex,n)},setLayout:function(n,i){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,n,i)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}q(eB,nB("hostGraph","data")),q(tB,nB("hostGraph","edgeData"));const iB=QF;function rB(e,t,n,i,r){for(var o=new iB(i),a=0;a "+h)),u++)}var p,f=n.get("coordinateSystem");if("cartesian2d"===f||"polar"===f)p=vI(e,n);else{var g=ef.get(f),v=g&&g.dimensions||[];V(v,"value")<0&&v.concat(["value"]);var m=QC(e,{coordDimensions:v,encodeDefine:n.getEncode()}).dimensions;p=new JC(m,n),p.initData(e)}var y=new JC(["value"],n);return y.initData(l,s),r&&r(p,y),eE({mainData:p,struct:o,structAttr:"graph",datas:{node:p,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o}var oB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return o(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new Rk(i,i),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(t){e.prototype.mergeDefaultAndTheme.apply(this,arguments),va(t,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,t){var n=e.edges||e.links||[],i=e.data||e.nodes||[],r=this;if(i&&n){rF(this);var o=rB(i,n,this,!0,a);return W(o.edges,(function(e){oF(e.node1,e.node2,this,e.dataIndex)}),this),o.data}function a(e,t){e.wrapMethod("getItemModel",(function(e){var t=r._categoriesModels,n=e.getShallow("category"),i=t[n];return i&&(i.parentModel=e.parentModel,e.parentModel=i),e}));var n=Od.prototype.getModel;function i(e,t){var i=n.call(this,e,t);return i.resolveParentPath=o,i}function o(e){if(e&&("label"===e[0]||"label"===e[1])){var t=e.slice();return"label"===e[0]?t[0]="edgeLabel":"label"===e[1]&&(t[1]="edgeLabel"),t}return e}t.wrapMethod("getItemModel",(function(e){return e.resolveParentPath=o,e.getModel=i,e}))}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,t,n){if("edge"===n){var i=this.getData(),r=this.getDataParams(e,n),o=i.graph.getEdgeByIndex(e),a=i.getName(o.node1.dataIndex),s=i.getName(o.node2.dataIndex),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),iv("nameValue",{name:l.join(" > "),value:r.value,noValue:null==r.value})}var u=xv({series:this,dataIndex:e,multipleSeries:t});return u},t.prototype._updateCategoriesData=function(){var e=G(this.option.categories||[],(function(e){return null!=e.value?e:F({value:0},e)})),t=new JC(["value"],this);t.initData(e),this._categoriesData=t,this._categoriesModels=t.mapArray((function(e){return t.getItemModel(e)}))},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(Ov);const aB=oB;var sB={type:"graphRoam",event:"graphRoam",update:"none"};function lB(e){e.registerChartView(KF),e.registerSeriesModel(aB),e.registerProcessor(jN),e.registerVisual(ZN),e.registerVisual(YN),e.registerLayout(uF),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,vF),e.registerLayout(xF),e.registerCoordinateSystem("graphView",{dimensions:eR.dimensions,create:bF}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Te),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Te),e.registerAction(sB,(function(e,t,n){t.eachComponent({mainType:"series",query:e},(function(t){var i=t.coordinateSystem,r=fR(i,e,void 0,n);t.setCenter&&t.setCenter(r.center),t.setZoom&&t.setZoom(r.zoom)}))}))}var uB=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),cB=function(e){function t(t){var n=e.call(this,t)||this;return n.type="pointer",n}return o(t,e),t.prototype.getDefaultShape=function(){return new uB},t.prototype.buildPath=function(e,t){var n=Math.cos,i=Math.sin,r=t.r,o=t.width,a=t.angle,s=t.x-n(a)*o*(o>=r/3?1:2),l=t.y-i(a)*o*(o>=r/3?1:2);a=t.angle-Math.PI/2,e.moveTo(s,l),e.lineTo(t.x+n(a)*o,t.y+i(a)*o),e.lineTo(t.x+n(t.angle)*r,t.y+i(t.angle)*r),e.lineTo(t.x-n(a)*o,t.y-i(a)*o),e.lineTo(s,l)},t}(Yl);const dB=cB;function hB(e,t){var n=e.get("center"),i=t.getWidth(),r=t.getHeight(),o=Math.min(i,r),a=Wo(n[0],t.getWidth()),s=Wo(n[1],t.getHeight()),l=Wo(e.get("radius"),o/2);return{cx:a,cy:s,r:l}}function pB(e,t){var n=null==e?"":e+"";return t&&(ee(t)?n=t.replace("{value}",n):Q(t)&&(n=t(e))),n}var fB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.render=function(e,t,n){this.group.removeAll();var i=e.get(["axisLine","lineStyle","color"]),r=hB(e,n);this._renderMain(e,t,n,i,r),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,t,n,i,r){var o=this.group,a=e.get("clockwise"),s=-e.get("startAngle")/180*Math.PI,l=-e.get("endAngle")/180*Math.PI,u=e.getModel("axisLine"),c=u.get("roundCap"),d=c?VT:Am,h=u.get("show"),p=u.getModel("lineStyle"),f=p.get("width"),g=[s,l];bl(g,!a),s=g[0],l=g[1];for(var v=l-s,m=s,y=0;h&&y=e&&(0===t?0:i[t-1][0]).8?"bottom":"middle",align:u<-.4?"left":u>.4?"right":"center"},{inheritColor:R}),silent:!0}))}if(y.get("show")&&D!==_){L=y.get("distance");L=L?L+l:l;for(var E=0;E<=b;E++){u=Math.cos(M),c=Math.sin(M);var N=new Gm({shape:{x1:u*(f-L)+h,y1:c*(f-L)+p,x2:u*(f-S-L)+h,y2:c*(f-S-L)+p},silent:!0,style:k});"auto"===k.stroke&&N.setStyle({stroke:i((D+E/b)/_)}),d.add(N),M+=I}M-=I}else M+=C}},t.prototype._renderPointer=function(e,t,n,i,r,o,a,s,l){var u=this.group,c=this._data,d=this._progressEls,h=[],p=e.get(["pointer","show"]),f=e.getModel("progress"),g=f.get("show"),v=e.getData(),m=v.mapDimension("value"),y=+e.get("min"),x=+e.get("max"),_=[y,x],b=[o,a];function w(t,n){var i,o=v.getItemModel(t),a=o.getModel("pointer"),s=Wo(a.get("width"),r.r),l=Wo(a.get("length"),r.r),u=e.get(["pointer","icon"]),c=a.get("offsetCenter"),d=Wo(c[0],r.r),h=Wo(c[1],r.r),p=a.get("keepAspect");return i=u?v_(u,d-s/2,h-l,s,l,null,p):new dB({shape:{angle:-Math.PI/2,width:s,r:l,x:d,y:h}}),i.rotation=-(n+Math.PI/2),i.x=r.cx,i.y=r.cy,i}function S(e,t){var n=f.get("roundCap"),i=n?VT:Am,a=f.get("overlap"),u=a?f.get("width"):l/v.count(),c=a?r.r-u:r.r-(e+1)*u,d=a?r.r:r.r-e*u,h=new i({shape:{startAngle:o,endAngle:t,cx:r.cx,cy:r.cy,clockwise:s,r0:c,r:d}});return a&&(h.z2=x-v.get(m,e)%x),h}(g||p)&&(v.diff(c).add((function(t){var n=v.get(m,t);if(p){var i=w(t,o);Kc(i,{rotation:-((isNaN(+n)?b[0]:Ho(n,_,b,!0))+Math.PI/2)},e),u.add(i),v.setItemGraphicEl(t,i)}if(g){var r=S(t,o),a=f.get("clip");Kc(r,{shape:{endAngle:Ho(n,_,b,a)}},e),u.add(r),Pu(e.seriesIndex,v.dataType,t,r),h[t]=r}})).update((function(t,n){var i=v.get(m,t);if(p){var r=c.getItemGraphicEl(n),a=r?r.rotation:o,s=w(t,a);s.rotation=a,Xc(s,{rotation:-((isNaN(+i)?b[0]:Ho(i,_,b,!0))+Math.PI/2)},e),u.add(s),v.setItemGraphicEl(t,s)}if(g){var l=d[n],y=l?l.shape.endAngle:o,x=S(t,y),M=f.get("clip");Xc(x,{shape:{endAngle:Ho(i,_,b,M)}},e),u.add(x),Pu(e.seriesIndex,v.dataType,t,x),h[t]=x}})).execute(),v.each((function(e){var t=v.getItemModel(e),n=t.getModel("emphasis"),r=n.get("focus"),o=n.get("blurScope"),a=n.get("disabled");if(p){var s=v.getItemGraphicEl(e),l=v.getItemVisual(e,"style"),u=l.fill;if(s instanceof iu){var c=s.style;s.useStyle(F({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},l))}else s.useStyle(l),"pointer"!==s.type&&s.setColor(u);s.setStyle(t.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===s.style.fill&&s.setStyle("fill",i(Ho(v.get(m,e),_,[0,1],!0))),s.z2EmphasisLift=0,Vc(s,t),Ec(s,r,o,a)}if(g){var d=h[e];d.useStyle(v.getItemVisual(e,"style")),d.setStyle(t.getModel(["progress","itemStyle"]).getItemStyle()),d.z2EmphasisLift=0,Vc(d,t),Ec(d,r,o,a)}})),this._progressEls=h)},t.prototype._renderAnchor=function(e,t){var n=e.getModel("anchor"),i=n.get("show");if(i){var r=n.get("size"),o=n.get("icon"),a=n.get("offsetCenter"),s=n.get("keepAspect"),l=v_(o,t.cx-r/2+Wo(a[0],t.r),t.cy-r/2+Wo(a[1],t.r),r,r,null,s);l.z2=n.get("showAbove")?1:0,l.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(l)}},t.prototype._renderTitleAndDetail=function(e,t,n,i,r){var o=this,a=e.getData(),s=a.mapDimension("value"),l=+e.get("min"),u=+e.get("max"),c=new Lo,d=[],h=[],p=e.isAnimationEnabled(),f=e.get(["pointer","showAbove"]);a.diff(this._data).add((function(e){d[e]=new Du({silent:!0}),h[e]=new Du({silent:!0})})).update((function(e,t){d[e]=o._titleEls[t],h[e]=o._detailEls[t]})).execute(),a.each((function(t){var n=a.getItemModel(t),o=a.get(s,t),g=new Lo,v=i(Ho(o,[l,u],[0,1],!0)),m=n.getModel("title");if(m.get("show")){var y=m.get("offsetCenter"),x=r.cx+Wo(y[0],r.r),_=r.cy+Wo(y[1],r.r),b=d[t];b.attr({z2:f?0:2,style:ud(m,{x,y:_,text:a.getName(t),align:"center",verticalAlign:"middle"},{inheritColor:v})}),g.add(b)}var w=n.getModel("detail");if(w.get("show")){var S=w.get("offsetCenter"),M=r.cx+Wo(S[0],r.r),C=r.cy+Wo(S[1],r.r),I=Wo(w.get("width"),r.r),T=Wo(w.get("height"),r.r),k=e.get(["progress","show"])?a.getItemVisual(t,"style").fill:v,A=(b=h[t],w.get("formatter"));b.attr({z2:f?0:2,style:ud(w,{x:M,y:C,text:pB(o,A),width:isNaN(I)?null:I,height:isNaN(T)?null:T,align:"center",verticalAlign:"middle"},{inheritColor:k})}),xd(b,{normal:w},o,(function(e){return pB(e,A)})),p&&_d(b,t,a,e,{getFormattedLabel:function(e,t,n,i,r,a){return pB(a?a.interpolatedValue:o,A)}}),g.add(b)}c.add(g)})),this.group.add(c),this._titleEls=d,this._detailEls=h},t.type="gauge",t}(nx);const gB=fB;var vB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="itemStyle",n}return o(t,e),t.prototype.getInitialData=function(e,t){return Pk(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(Ov);const mB=vB;function yB(e){e.registerChartView(gB),e.registerSeriesModel(mB)}var xB=["itemStyle","opacity"],_B=function(e){function t(t,n){var i=e.call(this)||this,r=i,o=new zm,a=new Du;return r.setTextContent(a),i.setTextGuideLine(o),i.updateData(t,n,!0),i}return o(t,e),t.prototype.updateData=function(e,t,n){var i=this,r=e.hostModel,o=e.getItemModel(t),a=e.getItemLayout(t),s=o.getModel("emphasis"),l=o.get(xB);l=null==l?1:l,n||nd(i),i.useStyle(e.getItemVisual(t,"style")),i.style.lineJoin="round",n?(i.setShape({points:a.points}),i.style.opacity=0,Kc(i,{style:{opacity:l}},r,t)):Xc(i,{style:{opacity:l},shape:{points:a.points}},r,t),Vc(i,o),this._updateLabel(e,t),Ec(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))},t.prototype._updateLabel=function(e,t){var n=this,i=this.getTextGuideLine(),r=n.getTextContent(),o=e.hostModel,a=e.getItemModel(t),s=e.getItemLayout(t),l=s.label,u=e.getItemVisual(t,"style"),c=u.fill;sd(r,ld(a),{labelFetcher:e.hostModel,labelDataIndex:t,defaultOpacity:u.opacity,defaultText:e.getName(t)},{normal:{align:l.textAlign,verticalAlign:l.verticalAlign}}),n.setTextConfig({local:!0,inside:!!l.inside,insideStroke:c,outsideFill:c});var d=l.linePoints;i.setShape({points:d}),n.textGuideLineConfig={anchor:d?new Yr(d[0][0],d[0][1]):null},Xc(r,{style:{x:l.x,y:l.y}},o,t),r.attr({rotation:l.rotation,originX:l.x,originY:l.y,z2:10}),gS(n,vS(a),{stroke:c})},t}(Fm),bB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreLabelLineUpdate=!0,n}return o(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),r=this._data,o=this.group;i.diff(r).add((function(e){var t=new _B(i,e);i.setItemGraphicEl(e,t),o.add(t)})).update((function(e,t){var n=r.getItemGraphicEl(t);n.updateData(i,e),o.add(n),i.setItemGraphicEl(e,n)})).remove((function(t){var n=r.getItemGraphicEl(t);td(n,e,t)})).execute(),this._data=i},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(nx);const wB=bB;var SB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Rk(X(this.getData,this),X(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.getInitialData=function(e,t){return Pk(this,{coordDimensions:["value"],encodeDefaulter:K(wp,this)})},t.prototype._defaultLabelLine=function(e){va(e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.prototype.getDataParams=function(t){var n=this.getData(),i=e.prototype.getDataParams.call(this,t),r=n.mapDimension("value"),o=n.getSum(r);return i.percent=o?+(n.get(r,t)/o*100).toFixed(2):0,i.$vars.push("percent"),i},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(Ov);const MB=SB;function CB(e,t){return Yh(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function IB(e,t){for(var n=e.mapDimension("value"),i=e.mapArray(n,(function(e){return e})),r=[],o="ascending"===t,a=0,s=e.count();aYB)return;var r=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);"none"!==r.behavior&&this._dispatchExpand({axisExpandWindow:r.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!this._mouseDownPoint&&JB(this,"mousemove")){var t=this._model,n=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),i=n.behavior;"jump"===i&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===i?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===i?null:{duration:0}})}}};function JB(e,t){var n=e._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===t}const QB=XB;var eV=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var t=this.option;e&&E(t,e,!0),this._initDimensions()},t.prototype.contains=function(e,t){var n=e.get("parallelIndex");return null!=n&&t.getComponent("parallel",n)===this},t.prototype.setAxisExpand=function(e){W(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(t){e.hasOwnProperty(t)&&(this.option[t]=e[t])}),this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],t=this.parallelAxisIndex=[],n=j(this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(e){return(e.get("parallelIndex")||0)===this.componentIndex}),this);W(n,(function(n){e.push("dim"+n.get("dim")),t.push(n.componentIndex)}))},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(op);const tV=eV;var nV=function(e){function t(t,n,i,r,o){var a=e.call(this,t,n,i)||this;return a.type=r||"value",a.axisIndex=o,a}return o(t,e),t.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},t}(VD);const iV=nV;function rV(e,t,n,i,r,o){e=e||0;var a=n[1]-n[0];if(null!=r&&(r=aV(r,[0,a])),null!=o&&(o=Math.max(o,null!=r?r:0)),"all"===i){var s=Math.abs(t[1]-t[0]);s=aV(s,[0,a]),r=o=aV(s,[r,o]),i=0}t[0]=aV(t[0],n),t[1]=aV(t[1],n);var l=oV(t,i);t[i]+=e;var u,c=r||0,d=n.slice();return l.sign<0?d[0]+=c:d[1]-=c,t[i]=aV(t[i],d),u=oV(t,i),null!=r&&(u.sign!==l.sign||u.spano&&(t[1-i]=t[i]+u.sign*o),t}function oV(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function aV(e,t){return Math.min(null!=t[1]?t[1]:1/0,Math.max(null!=t[0]?t[0]:-1/0,e))}var sV=W,lV=Math.min,uV=Math.max,cV=Math.floor,dV=Math.ceil,hV=Go,pV=Math.PI,fV=function(){function e(e,t,n){this.type="parallel",this._axesMap=we(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var i=e.dimensions,r=e.parallelAxisIndex;sV(i,(function(e,n){var i=r[n],o=t.getComponent("parallelAxis",i),a=this._axesMap.set(e,new iV(e,rD(o),[0,0],o.get("type"),i)),s="category"===a.type;a.onBand=s&&o.get("boundaryGap"),a.inverse=o.get("inverse"),o.axis=a,a.model=o,a.coordinateSystem=o.coordinateSystem=this}),this)},e.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},e.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),n=t.axisBase,i=t.layoutBase,r=t.pixelDimIndex,o=e[1-r],a=e[r];return o>=n&&o<=n+t.axisLength&&a>=i&&a<=i+t.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(e,t){t.eachSeries((function(n){if(e.contains(n,t)){var i=n.getData();sV(this.dimensions,(function(e){var t=this._axesMap.get(e);t.scale.unionExtentFromData(i,i.mapDimension(e)),iD(t.scale,t.model)}),this)}}),this)},e.prototype.resize=function(e,t){this._rect=Yh(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var e,t=this._model,n=this._rect,i=["x","y"],r=["width","height"],o=t.get("layout"),a="horizontal"===o?0:1,s=n[r[a]],l=[0,s],u=this.dimensions.length,c=gV(t.get("axisExpandWidth"),l),d=gV(t.get("axisExpandCount")||0,[0,u]),h=t.get("axisExpandable")&&u>3&&u>d&&d>1&&c>0&&s>0,p=t.get("axisExpandWindow");if(p)e=gV(p[1]-p[0],l),p[1]=p[0]+e;else{e=gV(c*(d-1),l);var f=t.get("axisExpandCenter")||cV(u/2);p=[c*f-e/2],p[1]=p[0]+e}var g=(s-e)/(u-d);g<3&&(g=0);var v=[cV(hV(p[0]/c,1))+1,dV(hV(p[1]/c,1))-1],m=g/c*p[0];return{layout:o,pixelDimIndex:a,layoutBase:n[i[a]],layoutLength:s,axisBase:n[i[1-a]],axisLength:n[r[1-a]],axisExpandable:h,axisExpandWidth:c,axisCollapseWidth:g,axisExpandWindow:p,axisCount:u,winInnerIndices:v,axisExpandWindow0Pos:m}},e.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),r=i.layout;t.each((function(e){var t=[0,i.axisLength],n=e.inverse?1:0;e.setExtent(t[n],t[1-n])})),sV(n,(function(t,n){var o=(i.axisExpandable?mV:vV)(n,i),a={horizontal:{x:o.position,y:i.axisLength},vertical:{x:0,y:o.position}},s={horizontal:pV/2,vertical:0},l=[a[r].x+e.x,a[r].y+e.y],u=s[r],c=kr();Or(c,c,u),Pr(c,c,l),this._axesLayout[t]={position:l,rotation:u,transform:c,axisNameAvailableWidth:o.axisNameAvailableWidth,axisLabelShow:o.axisLabelShow,nameTruncateMaxWidth:o.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},e.prototype.getAxis=function(e){return this._axesMap.get(e)},e.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},e.prototype.eachActiveState=function(e,t,n,i){null==n&&(n=0),null==i&&(i=e.count());var r=this._axesMap,o=this.dimensions,a=[],s=[];W(o,(function(t){a.push(e.mapDimension(t)),s.push(r.get(t).model)}));for(var l=this.hasAxisBrushed(),u=n;ur*(1-c[0])?(l="jump",a=s-r*(1-c[2])):(a=s-r*c[1])>=0&&(a=s-r*(1-c[1]))<=0&&(a=0),a*=t.axisExpandWidth/u,a?rV(a,i,o,"all"):l="none";else{var h=i[1]-i[0],p=o[1]*s/h;i=[uV(0,p-h/2)],i[1]=lV(o[1],i[0]+h),i[0]=i[1]-h}return{axisExpandWindow:i,behavior:l}},e}();function gV(e,t){return lV(uV(e,t[0]),t[1])}function vV(e,t){var n=t.layoutLength/(t.axisCount-1);return{position:n*e,axisNameAvailableWidth:n,axisLabelShow:!0}}function mV(e,t){var n,i,r=t.layoutLength,o=t.axisExpandWidth,a=t.axisCount,s=t.axisCollapseWidth,l=t.winInnerIndices,u=s,c=!1;return e=0;n--)Uo(t[n])},t.prototype.getActiveState=function(e){var t=this.activeIntervals;if(!t.length)return"normal";if(null==e||isNaN(+e))return"inactive";if(1===t.length){var n=t[0];if(n[0]<=e&&e<=n[1])return"active"}else for(var i=0,r=t.length;iAV}function $V(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function YV(e,t,n,i){var r=new Lo;return r.add(new hu({name:"main",style:QV(n),silent:!0,draggable:!0,cursor:"move",drift:K(rz,e,t,r,["n","s","w","e"]),ondragend:K(jV,t,{isEnd:!0})})),W(i,(function(n){r.add(new hu({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:K(rz,e,t,r,n),ondragend:K(jV,t,{isEnd:!0})}))})),r}function XV(e,t,n,i){var r=i.brushStyle.lineWidth||0,o=IV(r,DV),a=n[0][0],s=n[1][0],l=a-r/2,u=s-r/2,c=n[0][1],d=n[1][1],h=c-o+r/2,p=d-o+r/2,f=c-a,g=d-s,v=f+r,m=g+r;JV(e,t,"main",a,s,f,g),i.transformable&&(JV(e,t,"w",l,u,o,m),JV(e,t,"e",h,u,o,m),JV(e,t,"n",l,u,v,o),JV(e,t,"s",l,p,v,o),JV(e,t,"nw",l,u,o,o),JV(e,t,"ne",h,u,o,o),JV(e,t,"sw",l,p,o,o),JV(e,t,"se",h,p,o,o))}function KV(e,t){var n=t.__brushOption,i=n.transformable,r=t.childAt(0);r.useStyle(QV(n)),r.attr({silent:!i,cursor:i?"move":"default"}),W([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(n){var r=t.childOfName(n.join("")),o=1===n.length?nz(e,n[0]):iz(e,n);r&&r.attr({silent:!i,invisible:!i,cursor:i?OV[o]+"-resize":null})}))}function JV(e,t,n,i,r,o,a){var s=t.childOfName(n);s&&s.setShape(lz(sz(e,t,[[i,r],[i+o,r+a]])))}function QV(e){return B({strokeNoScale:!0},e.brushStyle)}function ez(e,t,n,i){var r=[CV(e,n),CV(t,i)],o=[IV(e,n),IV(t,i)];return[[r[0],o[0]],[r[1],o[1]]]}function tz(e){return Py(e.group)}function nz(e,t){var n={w:"left",e:"right",n:"top",s:"bottom"},i={left:"w",right:"e",top:"n",bottom:"s"},r=Ry(n[t],tz(e));return i[r]}function iz(e,t){var n=[nz(e,t[0]),nz(e,t[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}function rz(e,t,n,i,r,o){var a=n.__brushOption,s=e.toRectRange(a.range),l=az(t,r,o);W(i,(function(e){var t=PV[e];s[t[0]][t[1]]+=l[t[0]]})),a.range=e.fromRectRange(ez(s[0][0],s[1][0],s[0][1],s[1][1])),qV(t,n),jV(t,{isEnd:!1})}function oz(e,t,n,i){var r=t.__brushOption.range,o=az(e,n,i);W(r,(function(e){e[0]+=o[0],e[1]+=o[1]})),qV(e,t),jV(e,{isEnd:!1})}function az(e,t,n){var i=e.group,r=i.transformCoordToLocal(t,n),o=i.transformCoordToLocal(0,0);return[r[0]-o[0],r[1]-o[1]]}function sz(e,t,n){var i=GV(e,t);return i&&i!==MV?i.clipPath(n,e._transform):R(n)}function lz(e){var t=CV(e[0][0],e[1][0]),n=CV(e[0][1],e[1][1]),i=IV(e[0][0],e[1][0]),r=IV(e[0][1],e[1][1]);return{x:t,y:n,width:i-t,height:r-n}}function uz(e,t,n){if(e._brushType&&!vz(e,t.offsetX,t.offsetY)){var i=e._zr,r=e._covers,o=WV(e,t,n);if(!e._dragging)for(var a=0;ai.getWidth()||n<0||n>i.getHeight()}var mz={lineX:yz(0),lineY:yz(1),rect:{createCover:function(e,t){function n(e){return e}return YV({toRectRange:n,fromRectRange:n},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=$V(e);return ez(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,i){XV(e,t,n,i)},updateCommon:KV,contain:dz},polygon:{createCover:function(e,t){var n=new Lo;return n.add(new zm({name:"main",style:QV(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new Fm({name:"main",draggable:!0,drift:K(oz,e,t),ondragend:K(jV,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,i){t.childAt(0).setShape({points:sz(e,t,n)})},updateCommon:KV,contain:dz}};function yz(e){return{createCover:function(t,n){return YV({toRectRange:function(t){var n=[t,[0,100]];return e&&n.reverse(),n},fromRectRange:function(t){return t[e]}},t,n,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var n=$V(t),i=CV(n[0][e],n[1][e]),r=IV(n[0][e],n[1][e]);return[i,r]},updateCoverShape:function(t,n,i,r){var o,a=GV(t,n);if(a!==MV&&a.getLinearBrushOtherExtent)o=a.getLinearBrushOtherExtent(e);else{var s=t._zr;o=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[i,o];e&&l.reverse(),XV(t,n,l,r)},updateCommon:KV,contain:dz}}const xz=NV;function _z(e){return e=Sz(e),function(t){return By(t,e)}}function bz(e,t){return e=Sz(e),function(n){var i=null!=t?t:n,r=i?e.width:e.height,o=i?e.x:e.y;return[o,o+(r||0)]}}function wz(e,t,n){var i=Sz(e);return function(e,r){return i.contain(r[0],r[1])&&!_P(e,t,n)}}function Sz(e){return oo.create(e)}var Mz=["axisLine","axisTickLabel","axisName"],Cz=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.init=function(t,n){e.prototype.init.apply(this,arguments),(this._brushController=new xz(n.getZr())).on("brush",X(this._onBrush,this))},t.prototype.render=function(e,t,n,i){if(!Iz(e,t,i)){this.axisModel=e,this.api=n,this.group.removeAll();var r=this._axisGroup;if(this._axisGroup=new Lo,this.group.add(this._axisGroup),e.get("show")){var o=kz(e,t),a=o.coordinateSystem,s=e.getAreaSelectStyle(),l=s.width,u=e.axis.dim,c=a.getAxisLayout(u),d=F({strokeContainThreshold:l},c),h=new dL(e,d);W(Mz,h.add,h),this._axisGroup.add(h.getGroup()),this._refreshBrushController(d,s,e,o,l,n),Fy(r,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,t,n,i,r,o){var a=n.axis.getExtent(),s=a[1]-a[0],l=Math.min(30,.1*Math.abs(s)),u=oo.create({x:a[0],y:-r/2,width:s,height:r});u.x-=l,u.width+=2*l,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:_z(u),isTargetByCursor:wz(u,o,i),getLinearBrushOtherExtent:bz(u,0)}]).enableBrush({brushType:"lineX",brushStyle:t,removeOnClick:!0}).updateCovers(Tz(n))},t.prototype._onBrush=function(e){var t=e.areas,n=this.axisModel,i=n.axis,r=G(t,(function(e){return[i.coordToData(e.range[0],!0),i.coordToData(e.range[1],!0)]}));(!n.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:r})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(Ev);function Iz(e,t,n){return n&&"axisAreaSelect"===n.type&&t.findComponents({mainType:"parallelAxis",query:n})[0]===e}function Tz(e){var t=e.axis;return G(e.activeIntervals,(function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}}))}function kz(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}const Az=Cz;var Dz={type:"axisAreaSelect",event:"axisAreaSelected"};function Lz(e){e.registerAction(Dz,(function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},(function(t){t.axis.model.setActiveIntervals(e.intervals)}))})),e.registerAction("parallelAxisExpand",(function(e,t){t.eachComponent({mainType:"parallel",query:e},(function(t){t.setAxisExpand(e)}))}))}var Pz={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function Oz(e){e.registerComponentView(QB),e.registerComponentModel(tV),e.registerCoordinateSystem("parallel",bV),e.registerPreprocessor(jB),e.registerComponentModel(SV),e.registerComponentView(Az),uA(e,"parallel",SV,Pz),Lz(e)}function Rz(e){jw(Oz),e.registerChartView(BB),e.registerSeriesModel(HB),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,UB)}var Ez=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return e}(),Nz=function(e){function t(t){return e.call(this,t)||this}return o(t,e),t.prototype.getDefaultShape=function(){return new Ez},t.prototype.buildPath=function(e,t){var n=t.extent;e.moveTo(t.x1,t.y1),e.bezierCurveTo(t.cpx1,t.cpy1,t.cpx2,t.cpy2,t.x2,t.y2),"vertical"===t.orient?(e.lineTo(t.x2+n,t.y2),e.bezierCurveTo(t.cpx2+n,t.cpy2,t.cpx1+n,t.cpy1,t.x1+n,t.y1)):(e.lineTo(t.x2,t.y2+n),e.bezierCurveTo(t.cpx2,t.cpy2+n,t.cpx1,t.cpy1+n,t.x1,t.y1+n)),e.closePath()},t.prototype.highlight=function(){vc(this)},t.prototype.downplay=function(){mc(this)},t}(Yl),Fz=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._focusAdjacencyDisabled=!1,n}return o(t,e),t.prototype.render=function(e,t,n){var i=this,r=e.getGraph(),o=this.group,a=e.layoutInfo,s=a.width,l=a.height,u=e.getData(),c=e.getData("edge"),d=e.get("orient");this._model=e,o.removeAll(),o.x=a.x,o.y=a.y,r.eachEdge((function(t){var n=new Nz,i=Lu(n);i.dataIndex=t.dataIndex,i.seriesIndex=e.seriesIndex,i.dataType="edge";var r,a,u,h,p,f,g,v,m=t.getModel(),y=m.getModel("lineStyle"),x=y.get("curveness"),_=t.node1.getLayout(),b=t.node1.getModel(),w=b.get("localX"),S=b.get("localY"),M=t.node2.getLayout(),C=t.node2.getModel(),I=C.get("localX"),T=C.get("localY"),k=t.getLayout();switch(n.shape.extent=Math.max(1,k.dy),n.shape.orient=d,"vertical"===d?(r=(null!=w?w*s:_.x)+k.sy,a=(null!=S?S*l:_.y)+_.dy,u=(null!=I?I*s:M.x)+k.ty,h=null!=T?T*l:M.y,p=r,f=a*(1-x)+h*x,g=u,v=a*x+h*(1-x)):(r=(null!=w?w*s:_.x)+_.dx,a=(null!=S?S*l:_.y)+k.sy,u=null!=I?I*s:M.x,h=(null!=T?T*l:M.y)+k.ty,p=r*(1-x)+u*x,f=a,g=r*x+u*(1-x),v=h),n.setShape({x1:r,y1:a,x2:u,y2:h,cpx1:p,cpy1:f,cpx2:g,cpy2:v}),n.useStyle(y.getItemStyle()),n.style.fill){case"source":n.style.fill=t.node1.getVisual("color"),n.style.decal=t.node1.getVisual("style").decal;break;case"target":n.style.fill=t.node2.getVisual("color"),n.style.decal=t.node2.getVisual("style").decal;break;case"gradient":var A=t.node1.getVisual("color"),D=t.node2.getVisual("color");ee(A)&&ee(D)&&(n.style.fill=new ry(0,0,+("horizontal"===d),+("vertical"===d),[{color:A,offset:0},{color:D,offset:1}]))}var L=m.getModel("emphasis");Vc(n,m,"lineStyle",(function(e){return e.getItemStyle()})),o.add(n),c.setItemGraphicEl(t.dataIndex,n);var P=L.get("focus");Ec(n,"adjacency"===P?t.getAdjacentDataIndices():P,L.get("blurScope"),L.get("disabled")),Lu(n).dataType="edge"})),r.eachNode((function(t){var n=t.getLayout(),i=t.getModel(),r=i.get("localX"),a=i.get("localY"),c=i.getModel("emphasis"),d=new hu({shape:{x:null!=r?r*s:n.x,y:null!=a?a*l:n.y,width:n.dx,height:n.dy},style:i.getModel("itemStyle").getItemStyle(),z2:10});sd(d,ld(i),{labelFetcher:e,labelDataIndex:t.dataIndex,defaultText:t.id}),d.disableLabelAnimation=!0,d.setStyle("fill",t.getVisual("color")),d.setStyle("decal",t.getVisual("style").decal),Vc(d,i),o.add(d),u.setItemGraphicEl(t.dataIndex,d),Lu(d).dataType="node";var h=c.get("focus");Ec(d,"adjacency"===h?t.getAdjacentDataIndices():h,c.get("blurScope"),c.get("disabled"))})),u.eachItemGraphicEl((function(t,r){var o=u.getItemModel(r);o.get("draggable")&&(t.drift=function(t,o){i._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=o,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:u.getRawIndex(r),localX:this.shape.x/s,localY:this.shape.y/l})},t.ondragend=function(){i._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor="move")})),!this._data&&e.isAnimationEnabled()&&o.setClipPath(Bz(o.getBoundingRect(),e,(function(){o.removeClipPath()}))),this._data=e.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(nx);function Bz(e,t,n){var i=new hu({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return Kc(i,{shape:{width:e.width+20}},t,n),i}const Vz=Fz;var zz=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.getInitialData=function(e,t){var n=e.edges||e.links,i=e.data||e.nodes,r=e.levels;this.levelModels=[];for(var o=this.levelModels,a=0;a=0&&(o[r[a].depth]=new Od(r[a],this,t));if(i&&n){var s=rB(i,n,this,!0,l);return s.data}function l(e,t){e.wrapMethod("getItemModel",(function(e,t){var n=e.parentModel,i=n.getData().getItemLayout(t);if(i){var r=i.depth,o=n.levelModels[r];o&&(e.parentModel=o)}return e})),t.wrapMethod("getItemModel",(function(e,t){var n=e.parentModel,i=n.getGraph().getEdgeByIndex(t),r=i.node1.getLayout();if(r){var o=r.depth,a=n.levelModels[o];a&&(e.parentModel=a)}return e}))}},t.prototype.setNodePosition=function(e,t){var n=this.option.data||this.option.nodes,i=n[e];i.localX=t[0],i.localY=t[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,t,n){function i(e){return isNaN(e)||null==e}if("edge"===n){var r=this.getDataParams(e,n),o=r.data,a=r.value,s=o.source+" -- "+o.target;return iv("nameValue",{name:s,value:a,noValue:i(a)})}var l=this.getGraph().getNodeByIndex(e),u=l.getLayout().value,c=this.getDataParams(e,n).data.name;return iv("nameValue",{name:null!=c?c+"":null,value:u,noValue:i(u)})},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(t,n){var i=e.prototype.getDataParams.call(this,t,n);if(null==i.value&&"node"===n){var r=this.getGraph().getNodeByIndex(t),o=r.getLayout().value;i.value=o}return i},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}(Ov);const qz=zz;function Hz(e,t){e.eachSeriesByType("sankey",(function(e){var n=e.get("nodeWidth"),i=e.get("nodeGap"),r=Wz(e,t);e.layoutInfo=r;var o=r.width,a=r.height,s=e.getGraph(),l=s.nodes,u=s.edges;Uz(l);var c=j(l,(function(e){return 0===e.getLayout().value})),d=0!==c.length?0:e.get("layoutIterations"),h=e.get("orient"),p=e.get("nodeAlign");Gz(l,u,n,i,o,a,d,h,p)}))}function Wz(e,t){return Yh(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Gz(e,t,n,i,r,o,a,s,l){jz(e,t,n,r,o,s,l),Kz(e,t,o,r,i,a,s),cq(e,s)}function Uz(e){W(e,(function(e){var t=lq(e.outEdges,sq),n=lq(e.inEdges,sq),i=e.getValue()||0,r=Math.max(t,n,i);e.setLayout({value:r},!0)}))}function jz(e,t,n,i,r,o,a){for(var s=[],l=[],u=[],c=[],d=0,h=0;h=0;m&&v.depth>p&&(p=v.depth),g.setLayout({depth:m?v.depth:d},!0),"vertical"===o?g.setLayout({dy:n},!0):g.setLayout({dx:n},!0);for(var y=0;yd-1?p:d-1;a&&"left"!==a&&$z(e,a,o,S);var M="vertical"===o?(r-n)/S:(i-n)/S;Xz(e,M,o)}function Zz(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return null!=t.depth&&t.depth>=0}function $z(e,t,n,i){if("right"===t){var r=[],o=e,a=0;while(o.length){for(var s=0;s0;o--)l*=.99,tq(s,l,a),eq(s,r,n,i,a),uq(s,l,a),eq(s,r,n,i,a)}function Jz(e,t){var n=[],i="vertical"===t?"y":"x",r=Za(e,(function(e){return e.getLayout()[i]}));return r.keys.sort((function(e,t){return e-t})),W(r.keys,(function(e){n.push(r.buckets.get(e))})),n}function Qz(e,t,n,i,r,o){var a=1/0;W(e,(function(e){var t=e.length,s=0;W(e,(function(e){s+=e.getLayout().value}));var l="vertical"===o?(i-(t-1)*r)/s:(n-(t-1)*r)/s;l0&&(a=s.getLayout()[o]+l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]+s.getLayout()[d]+t;var p="vertical"===r?i:n;if(l=u-t-p,l>0){a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0),u=a;for(h=c-2;h>=0;--h)s=e[h],l=s.getLayout()[o]+s.getLayout()[d]+t-u,l>0&&(a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]}}))}function tq(e,t,n){W(e.slice().reverse(),(function(e){W(e,(function(e){if(e.outEdges.length){var i=lq(e.outEdges,nq,n)/lq(e.outEdges,sq);if(isNaN(i)){var r=e.outEdges.length;i=r?lq(e.outEdges,iq,n)/r:0}if("vertical"===n){var o=e.getLayout().x+(i-aq(e,n))*t;e.setLayout({x:o},!0)}else{var a=e.getLayout().y+(i-aq(e,n))*t;e.setLayout({y:a},!0)}}}))}))}function nq(e,t){return aq(e.node2,t)*e.getValue()}function iq(e,t){return aq(e.node2,t)}function rq(e,t){return aq(e.node1,t)*e.getValue()}function oq(e,t){return aq(e.node1,t)}function aq(e,t){return"vertical"===t?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function sq(e){return e.getValue()}function lq(e,t,n){var i=0,r=e.length,o=-1;while(++or&&(r=t)})),W(n,(function(t){var n=new pN({type:"color",mappingMethod:"linear",dataExtent:[i,r],visual:e.get("color")}),o=n.mapValueToVisual(t.getLayout().value),a=t.getModel().get(["itemStyle","color"]);null!=a?(t.setVisual("color",a),t.setVisual("style",{fill:a})):(t.setVisual("color",o),t.setVisual("style",{fill:o}))}))}}))}function hq(e){e.registerChartView(Vz),e.registerSeriesModel(qz),e.registerLayout(Hz),e.registerVisual(dq),e.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},(function(t){t.setNodePosition(e.dataIndex,[e.localX,e.localY])}))}))}var pq=function(){function e(){}return e.prototype.getInitialData=function(e,t){var n,i,r=t.getComponent("xAxis",this.get("xAxisIndex")),o=t.getComponent("yAxis",this.get("yAxisIndex")),a=r.get("type"),s=o.get("type");"category"===a?(e.layout="horizontal",n=r.getOrdinalMeta(),i=!0):"category"===s?(e.layout="vertical",n=o.getOrdinalMeta(),i=!0):e.layout=e.layout||"horizontal";var l=["x","y"],u="horizontal"===e.layout?0:1,c=this._baseAxisDim=l[u],d=l[1-u],h=[r,o],p=h[u].get("type"),f=h[1-u].get("type"),g=e.data;if(g&&i){var v=[];W(g,(function(e,t){var n;J(e)?(n=e.slice(),e.unshift(t)):J(e.value)?(n=F({},e),n.value=n.value.slice(),e.value.unshift(t)):n=e,v.push(n)})),e.data=v}var m=this.defaultValueDimensions,y=[{name:c,type:IC(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:IC(f),dimsDef:m.slice()}];return Pk(this,{coordDimensions:y,dimensionsCount:m.length+1,encodeDefaulter:K(bp,y,this)})},e.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},e}(),fq=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return o(t,e),t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t}(Ov);q(fq,pq,!0);const gq=fq;var vq=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),r=this.group,o=this._data;this._data||r.removeAll();var a="horizontal"===e.get("layout")?1:0;i.diff(o).add((function(e){if(i.hasValue(e)){var t=i.getItemLayout(e),n=xq(t,i,e,a,!0);i.setItemGraphicEl(e,n),r.add(n)}})).update((function(e,t){var n=o.getItemGraphicEl(t);if(i.hasValue(e)){var s=i.getItemLayout(e);n?(nd(n),_q(s,n,i,e)):n=xq(s,i,e,a),r.add(n),i.setItemGraphicEl(e,n)}else r.remove(n)})).remove((function(e){var t=o.getItemGraphicEl(e);t&&r.remove(t)})).execute(),this._data=i},t.prototype.remove=function(e){var t=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(e){e&&t.remove(e)}))},t.type="boxplot",t}(nx),mq=function(){function e(){}return e}(),yq=function(e){function t(t){var n=e.call(this,t)||this;return n.type="boxplotBoxPath",n}return o(t,e),t.prototype.getDefaultShape=function(){return new mq},t.prototype.buildPath=function(e,t){var n=t.points,i=0;for(e.moveTo(n[i][0],n[i][1]),i++;i<4;i++)e.lineTo(n[i][0],n[i][1]);for(e.closePath();ig){var _=[m,x];i.push(_)}}}return{boxData:n,outliers:i}}var Dq={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==dp){var n="";0,vg(n)}var i=Aq(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function Lq(e){e.registerSeriesModel(gq),e.registerChartView(wq),e.registerVisual(Sq),e.registerLayout(Cq),e.registerTransform(Dq)}var Pq=["color","borderColor"],Oq=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.render=function(e,t,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,t,n){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,t,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,t):this._incrementalRenderNormal(e,t)},t.prototype.eachRendered=function(e){Zy(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e){var t=e.getData(),n=this._data,i=this.group,r=t.getLayout("isSimpleBox"),o=e.get("clip",!0),a=e.coordinateSystem,s=a.getArea&&a.getArea();this._data||i.removeAll(),t.diff(n).add((function(n){if(t.hasValue(n)){var a=t.getItemLayout(n);if(o&&Fq(s,a))return;var l=Nq(a,n,!0);Kc(l,{shape:{points:a.ends}},e,n),Bq(l,t,n,r),i.add(l),t.setItemGraphicEl(n,l)}})).update((function(a,l){var u=n.getItemGraphicEl(l);if(t.hasValue(a)){var c=t.getItemLayout(a);o&&Fq(s,c)?i.remove(u):(u?(Xc(u,{shape:{points:c.ends}},e,a),nd(u)):u=Nq(c,a),Bq(u,t,a,r),i.add(u),t.setItemGraphicEl(a,u))}else i.remove(u)})).remove((function(e){var t=n.getItemGraphicEl(e);t&&i.remove(t)})).execute(),this._data=t},t.prototype._renderLarge=function(e){this._clear(),Hq(e,this.group);var t=e.get("clip",!0)?ZI(e.coordinateSystem,!1,e):null;t?this.group.setClipPath(t):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,t){var n,i=t.getData(),r=i.getLayout("isSimpleBox");while(null!=(n=e.next())){var o=i.getItemLayout(n),a=Nq(o,n);Bq(a,i,n,r),a.incremental=!0,this.group.add(a),this._progressiveEls.push(a)}},t.prototype._incrementalRenderLarge=function(e,t){Hq(t,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(nx),Rq=function(){function e(){}return e}(),Eq=function(e){function t(t){var n=e.call(this,t)||this;return n.type="normalCandlestickBox",n}return o(t,e),t.prototype.getDefaultShape=function(){return new Rq},t.prototype.buildPath=function(e,t){var n=t.points;this.__simpleBox?(e.moveTo(n[4][0],n[4][1]),e.lineTo(n[6][0],n[6][1])):(e.moveTo(n[0][0],n[0][1]),e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]),e.lineTo(n[3][0],n[3][1]),e.closePath(),e.moveTo(n[4][0],n[4][1]),e.lineTo(n[5][0],n[5][1]),e.moveTo(n[6][0],n[6][1]),e.lineTo(n[7][0],n[7][1]))},t}(Yl);function Nq(e,t,n){var i=e.ends;return new Eq({shape:{points:n?Vq(i,e):i},z2:100})}function Fq(e,t){for(var n=!0,i=0;i0?"borderColor":"borderColor0"])||n.get(["itemStyle",e>0?"color":"color0"]),o=n.getModel("itemStyle").getItemStyle(Pq);t.useStyle(o),t.style.fill=null,t.style.stroke=r}const Gq=Oq;var Uq=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return o(t,e),t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,t,n){var i=t.getItemLayout(e);return i&&n.rect(i.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(Ov);q(Uq,pq,!0);const jq=Uq;function Zq(e){e&&J(e.series)&&W(e.series,(function(e){ie(e)&&"k"===e.type&&(e.type="candlestick")}))}var $q=["itemStyle","borderColor"],Yq=["itemStyle","borderColor0"],Xq=["itemStyle","color"],Kq=["itemStyle","color0"],Jq={seriesType:"candlestick",plan:Nv(),performRawSeries:!0,reset:function(e,t){function n(e,t){return t.get(e>0?Xq:Kq)}function i(e,t){return t.get(e>0?$q:Yq)}if(!t.isSeriesFiltered(e)){var r=e.pipelineContext.large;return!r&&{progress:function(e,t){var r;while(null!=(r=e.next())){var o=t.getItemModel(r),a=t.getItemLayout(r).sign,s=o.getItemStyle();s.fill=n(a,o),s.stroke=i(a,o)||s.fill;var l=t.ensureUniqueItemVisual(r,"style");F(l,s)}}}}}};const Qq=Jq;var eH={seriesType:"candlestick",plan:Nv(),reset:function(e){var t=e.coordinateSystem,n=e.getData(),i=nH(e,n),r=0,o=1,a=["x","y"],s=n.getDimensionIndex(n.mapDimension(a[r])),l=G(n.mapDimensionsAll(a[o]),n.getDimensionIndex,n),u=l[0],c=l[1],d=l[2],h=l[3];if(n.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),!(s<0||l.length<4))return{progress:e.pipelineContext.large?f:p};function p(e,n){var a,l=n.getStore();while(null!=(a=e.next())){var p=l.get(s,a),f=l.get(u,a),g=l.get(c,a),v=l.get(d,a),m=l.get(h,a),y=Math.min(f,g),x=Math.max(f,g),_=C(y,p),b=C(x,p),w=C(v,p),S=C(m,p),M=[];I(M,b,0),I(M,_,1),M.push(k(S),k(b),k(w),k(_)),n.setItemLayout(a,{sign:tH(l,a,f,g,c),initBaseline:f>g?b[o]:_[o],ends:M,brushRect:T(v,m,p)})}function C(e,n){var i=[];return i[r]=n,i[o]=e,isNaN(n)||isNaN(e)?[NaN,NaN]:t.dataToPoint(i)}function I(e,t,n){var o=t.slice(),a=t.slice();o[r]=Ly(o[r]+i/2,1,!1),a[r]=Ly(a[r]-i/2,1,!0),n?e.push(o,a):e.push(a,o)}function T(e,t,n){var a=C(e,n),s=C(t,n);return a[r]-=i/2,s[r]-=i/2,{x:a[0],y:a[1],width:o?i:s[0]-a[0],height:o?s[1]-a[1]:i}}function k(e){return e[r]=Ly(e[r],1),e}}function f(e,n){var i,a,l=RI(4*e.count),p=0,f=[],g=[],v=n.getStore();while(null!=(a=e.next())){var m=v.get(s,a),y=v.get(u,a),x=v.get(c,a),_=v.get(d,a),b=v.get(h,a);isNaN(m)||isNaN(_)||isNaN(b)?(l[p++]=NaN,p+=3):(l[p++]=tH(v,a,y,x,c),f[r]=m,f[o]=_,i=t.dataToPoint(f,null,g),l[p++]=i?i[0]:NaN,l[p++]=i?i[1]:NaN,f[o]=b,i=t.dataToPoint(f,null,g),l[p++]=i?i[1]:NaN)}n.setLayout("largePoints",l)}}};function tH(e,t,n,i,r){var o;return o=n>i?-1:n0?e.get(r,t-1)<=i?1:-1:1,o}function nH(e,t){var n,i=e.getBaseAxis(),r="category"===i.type?i.getBandWidth():(n=i.getExtent(),Math.abs(n[1]-n[0])/t.count()),o=Wo(he(e.get("barMaxWidth"),r),r),a=Wo(he(e.get("barMinWidth"),1),r),s=e.get("barWidth");return null!=s?Wo(s,r):Math.max(Math.min(r/2,o),a)}const iH=eH;function rH(e){e.registerChartView(Gq),e.registerSeriesModel(jq),e.registerPreprocessor(Zq),e.registerVisual(Qq),e.registerLayout(iH)}function oH(e,t){var n=t.rippleEffectColor||t.color;e.eachChild((function(e){e.attr({z:t.z,zlevel:t.zlevel,style:{stroke:"stroke"===t.brushType?n:null,fill:"fill"===t.brushType?n:null}})}))}var aH=function(e){function t(t,n){var i=e.call(this)||this,r=new SI(t,n),o=new Lo;return i.add(r),i.add(o),i.updateData(t,n),i}return o(t,e),t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var t=e.symbolType,n=e.color,i=e.rippleNumber,r=this.childAt(1),o=0;o0&&(o=this._getLineLength(i)/s*1e3),o!==this._period||a!==this._loop){i.stopAnimation();var u=void 0;u=Q(l)?l(n):l,i.__t>0&&(u=-o*i.__t),this._animateSymbol(i,o,u,a)}this._period=o,this._loop=a}},t.prototype._animateSymbol=function(e,t,n,i){if(t>0){e.__t=0;var r=this,o=e.animate("",i).when(t,{__t:1}).delay(n).during((function(){r._updateSymbolPosition(e)}));i||o.done((function(){r.remove(e)})),o.start()}},t.prototype._getLineLength=function(e){return We(e.__p1,e.__cp1)+We(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,t){e.__p1=t[0],e.__p2=t[1],e.__cp1=t[2]||[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]},t.prototype.updateData=function(e,t,n){this.childAt(0).updateData(e,t,n),this._updateEffectSymbol(e,t)},t.prototype._updateSymbolPosition=function(e){var t=e.__p1,n=e.__p2,i=e.__cp1,r=e.__t,o=[e.x,e.y],a=o.slice(),s=Mn,l=Cn;o[0]=s(t[0],i[0],n[0],r),o[1]=s(t[1],i[1],n[1],r);var u=l(t[0],i[0],n[0],r),c=l(t[1],i[1],n[1],r);e.rotation=-Math.atan2(c,u)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==e.__lastT&&e.__lastT=0;o--)if(i[o]<=t)break;o=Math.min(o,r-2)}else{for(o=a;ot)break;o=Math.min(o-1,r-2)}var l=(t-i[o])/(i[o+1]-i[o]),u=n[o],c=n[o+1];e.x=u[0]*(1-l)+l*c[0],e.y=u[1]*(1-l)+l*c[1];var d=c[0]-u[0],h=c[1]-u[1];e.rotation=-Math.atan2(h,d)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=t,e.ignore=!1}},t}(fH);const yH=mH;var xH=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),_H=function(e){function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return o(t,e),t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new xH},t.prototype.buildPath=function(e,t){var n,i=t.segs,r=t.curveness;if(t.polyline)for(n=this._off;n0){e.moveTo(i[n++],i[n++]);for(var a=1;a0){var d=(s+u)/2-(l-c)*r,h=(l+c)/2-(u-s)*r;e.quadraticCurveTo(d,h,u,c)}else e.lineTo(u,c)}this.incremental&&(this._off=n,this.notClear=!0)},t.prototype.findDataIndex=function(e,t){var n=this.shape,i=n.segs,r=n.curveness,o=this.style.lineWidth;if(n.polyline)for(var a=0,s=0;s0)for(var u=i[s++],c=i[s++],d=1;d0){var f=(u+h)/2-(c-p)*r,g=(c+p)/2-(h-u)*r;if(Il(u,c,f,g,h,p,o,e,t))return a}else if(Ml(u,c,h,p,o,e,t))return a;a++}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),i=this.getBoundingRect();if(e=n[0],t=n[1],i.contain(e,t)){var r=this.hoverDataIdx=this.findDataIndex(e,t);return r>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape,n=t.segs,i=1/0,r=1/0,o=-1/0,a=-1/0,s=0;s0&&(o.dataIndex=n+e.__startIndex)}))},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}();const wH=bH;var SH={seriesType:"lines",plan:Nv(),reset:function(e){var t=e.coordinateSystem;if(t){var n=e.get("polyline"),i=e.pipelineContext.large;return{progress:function(r,o){var a=[];if(i){var s=void 0,l=r.end-r.start;if(n){for(var u=0,c=r.start;c0&&(l||s.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)})),r.updateData(i);var u=e.get("clip",!0)&&ZI(e.coordinateSystem,!1,e);u?this.group.setClipPath(u):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var i=e.getData(),r=this._updateLineDraw(i,e);r.incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._lineDraw.incrementalUpdate(e,t.getData()),this._finished=e.end===t.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,t,n){var i=e.getData(),r=e.pipelineContext;if(!this._finished||r.large||r.progressiveRender)return{update:!0};var o=MH.reset(e,t,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},t.prototype._updateLineDraw=function(e,t){var n=this._lineDraw,i=this._showEffect(t),r=!!t.get("polyline"),o=t.pipelineContext,a=o.large;return n&&i===this._hasEffet&&r===this._isPolyline&&a===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=a?new wH:new zF(r?i?yH:vH:i?fH:RF),this._hasEffet=i,this._isPolyline=r,this._isLargeDraw=a),this.group.add(n.group),n},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var t=e.getZr(),n="svg"===t.painter.getType();n||null==this._lastZlevel||t.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,t){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(t)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.type="lines",t}(nx);const IH=CH;var TH="undefined"===typeof Uint32Array?Array:Uint32Array,kH="undefined"===typeof Float64Array?Array:Float64Array;function AH(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=G(t,(function(e){var t=[e[0].coord,e[1].coord],n={coords:t};return e[0].name&&(n.fromName=e[0].name),e[1].name&&(n.toName=e[1].name),N([n,e[0],e[1]])})))}var DH=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return o(t,e),t.prototype.init=function(t){t.data=t.data||[],AH(t);var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(t){if(AH(t),t.data){var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var t=this._processFlatCoordsArray(e.data);t.flatCoords&&(this._flatCoords?(this._flatCoords=Se(this._flatCoords,t.flatCoords),this._flatCoordsOffset=Se(this._flatCoordsOffset,t.flatCoordsOffset)):(this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset),e.data=new Float32Array(t.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var t=this.getData().getItemModel(e),n=t.option instanceof Array?t.option:t.getShallow("coords");return n},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[2*e+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,t){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*e],i=this._flatCoordsOffset[2*e+1],r=0;r ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?1e4:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?2e4:this.get("progressiveThreshold"):e},t.prototype.getZLevelKey=function(){var e=this.getModel("effect"),t=e.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get("show")&&t>0?t+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(Ov);const LH=DH;function PH(e){return e instanceof Array||(e=[e,e]),e}var OH={seriesType:"lines",reset:function(e){var t=PH(e.get("symbol")),n=PH(e.get("symbolSize")),i=e.getData();function r(e,t){var n=e.getItemModel(t),i=PH(n.getShallow("symbol",!0)),r=PH(n.getShallow("symbolSize",!0));i[0]&&e.setItemVisual(t,"fromSymbol",i[0]),i[1]&&e.setItemVisual(t,"toSymbol",i[1]),r[0]&&e.setItemVisual(t,"fromSymbolSize",r[0]),r[1]&&e.setItemVisual(t,"toSymbolSize",r[1])}return i.setVisual("fromSymbol",t&&t[0]),i.setVisual("toSymbol",t&&t[1]),i.setVisual("fromSymbolSize",n&&n[0]),i.setVisual("toSymbolSize",n&&n[1]),{dataEach:i.hasItemOption?r:null}}};const RH=OH;function EH(e){e.registerChartView(IH),e.registerSeriesModel(LH),e.registerLayout(MH),e.registerVisual(RH)}var NH=256,FH=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=x.createCanvas();this.canvas=e}return e.prototype.update=function(e,t,n,i,r,o){var a=this._getBrush(),s=this._getGradient(r,"inRange"),l=this._getGradient(r,"outOfRange"),u=this.pointSize+this.blurSize,c=this.canvas,d=c.getContext("2d"),h=e.length;c.width=t,c.height=n;for(var p=0;p0){var T=o(y)?s:l;y>0&&(y=y*C+S),_[b++]=T[I],_[b++]=T[I+1],_[b++]=T[I+2],_[b++]=T[I+3]*y*256}else b+=4}return d.putImageData(x,0,0),c},e.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=x.createCanvas()),t=this.pointSize+this.blurSize,n=2*t;e.width=n,e.height=n;var i=e.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-t,t,this.pointSize,0,2*Math.PI,!0),i.closePath(),i.fill(),e},e.prototype._getGradient=function(e,t){for(var n=this._gradientPixels,i=n[t]||(n[t]=new Uint8ClampedArray(1024)),r=[0,0,0,0],o=0,a=0;a<256;a++)e[t](a/255,!0,r),i[o++]=r[0],i[o++]=r[1],i[o++]=r[2],i[o++]=r[3];return i},e}();const BH=FH;function VH(e,t,n){var i=e[1]-e[0];t=G(t,(function(t){return{interval:[(t.interval[0]-e[0])/i,(t.interval[1]-e[0])/i]}}));var r=t.length,o=0;return function(e){var i;for(i=o;i=0;i--){a=t[i].interval;if(a[0]<=e&&e<=a[1]){o=i;break}}return i>=0&&i=t[0]&&e<=t[1]}}function qH(e){var t=e.dimensions;return"lng"===t[0]&&"lat"===t[1]}var HH=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.render=function(e,t,n){var i;t.eachComponent("visualMap",(function(t){t.eachTargetSeries((function(n){n===e&&(i=t)}))})),this._progressiveEls=null,this.group.removeAll();var r=e.coordinateSystem;"cartesian2d"===r.type||"calendar"===r.type?this._renderOnCartesianAndCalendar(e,n,0,e.getData().count()):qH(r)&&this._renderOnGeo(r,e,i,n)},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll()},t.prototype.incrementalRender=function(e,t,n,i){var r=t.coordinateSystem;r&&(qH(r)?this.render(t,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(t,i,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){Zy(this._progressiveEls||this.group,e)},t.prototype._renderOnCartesianAndCalendar=function(e,t,n,i,r){var o,a,s,l,u=e.coordinateSystem,c=$I(u,"cartesian2d");if(c){var d=u.getAxis("x"),h=u.getAxis("y");0,o=d.getBandWidth()+.5,a=h.getBandWidth()+.5,s=d.scale.getExtent(),l=h.scale.getExtent()}for(var p=this.group,f=e.getData(),g=e.getModel(["emphasis","itemStyle"]).getItemStyle(),v=e.getModel(["blur","itemStyle"]).getItemStyle(),m=e.getModel(["select","itemStyle"]).getItemStyle(),y=e.get(["itemStyle","borderRadius"]),x=ld(e),_=e.getModel("emphasis"),b=_.get("focus"),w=_.get("blurScope"),S=_.get("disabled"),M=c?[f.mapDimension("x"),f.mapDimension("y"),f.mapDimension("value")]:[f.mapDimension("time"),f.mapDimension("value")],C=n;Cs[1]||Al[1])continue;var D=u.dataToPoint([k,A]);I=new hu({shape:{x:D[0]-o/2,y:D[1]-a/2,width:o,height:a},style:T})}else{if(isNaN(f.get(M[1],C)))continue;I=new hu({z2:1,shape:u.dataToRect([f.get(M[0],C)]).contentShape,style:T})}if(f.hasItemOption){var L=f.getItemModel(C),P=L.getModel("emphasis");g=P.getModel("itemStyle").getItemStyle(),v=L.getModel(["blur","itemStyle"]).getItemStyle(),m=L.getModel(["select","itemStyle"]).getItemStyle(),y=L.get(["itemStyle","borderRadius"]),b=P.get("focus"),w=P.get("blurScope"),S=P.get("disabled"),x=ld(L)}I.shape.r=y;var O=e.getRawValue(C),R="-";O&&null!=O[2]&&(R=O[2]+""),sd(I,x,{labelFetcher:e,labelDataIndex:C,defaultOpacity:T.opacity,defaultText:R}),I.ensureState("emphasis").style=g,I.ensureState("blur").style=v,I.ensureState("select").style=m,Ec(I,b,w,S),I.incremental=r,r&&(I.states.emphasis.hoverLayer=!0),p.add(I),f.setItemGraphicEl(C,I),this._progressiveEls&&this._progressiveEls.push(I)}},t.prototype._renderOnGeo=function(e,t,n,i){var r=n.targetVisuals.inRange,o=n.targetVisuals.outOfRange,a=t.getData(),s=this._hmLayer||this._hmLayer||new BH;s.blurSize=t.get("blurSize"),s.pointSize=t.get("pointSize"),s.minOpacity=t.get("minOpacity"),s.maxOpacity=t.get("maxOpacity");var l=e.getViewRect().clone(),u=e.getRoamTransform();l.applyTransform(u);var c=Math.max(l.x,0),d=Math.max(l.y,0),h=Math.min(l.width+l.x,i.getWidth()),p=Math.min(l.height+l.y,i.getHeight()),f=h-c,g=p-d,v=[a.mapDimension("lng"),a.mapDimension("lat"),a.mapDimension("value")],m=a.mapArray(v,(function(t,n,i){var r=e.dataToPoint([t,n]);return r[0]-=c,r[1]-=d,r.push(i),r})),y=n.getExtent(),x="visualMap.continuous"===n.type?zH(y,n.option.range):VH(y,n.getPieceList(),n.option.selected);s.update(m,f,g,r.color.getNormalizer(),{inRange:r.color.getColorMapper(),outOfRange:o.color.getColorMapper()},x);var _=new iu({style:{width:f,height:g,x:c,y:d,image:s.canvas},silent:!0});this.group.add(_)},t.type="heatmap",t}(nx);const WH=HH;var GH=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.getInitialData=function(e,t){return vI(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=ef.get(this.get("coordinateSystem"));if(e&&e.dimensions)return"lng"===e.dimensions[0]&&"lat"===e.dimensions[1]},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(Ov);const UH=GH;function jH(e){e.registerChartView(WH),e.registerSeriesModel(UH)}var ZH=["itemStyle","borderWidth"],$H=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],YH=new lm,XH=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.render=function(e,t,n){var i=this.group,r=e.getData(),o=this._data,a=e.coordinateSystem,s=a.getBaseAxis(),l=s.isHorizontal(),u=a.master.getRect(),c={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:e,coordSys:a,coordSysExtent:[[u.x,u.x+u.width],[u.y,u.y+u.height]],isHorizontal:l,valueDim:$H[+l],categoryDim:$H[1-+l]};return r.diff(o).add((function(e){if(r.hasValue(e)){var t=lW(r,e),n=KH(r,e,t,c),o=dW(r,c,n);r.setItemGraphicEl(e,o),i.add(o),mW(o,c,n)}})).update((function(e,t){var n=o.getItemGraphicEl(t);if(r.hasValue(e)){var a=lW(r,e),s=KH(r,e,a,c),l=fW(r,s);n&&l!==n.__pictorialShapeStr&&(i.remove(n),r.setItemGraphicEl(e,null),n=null),n?hW(n,c,s):n=dW(r,c,s,!0),r.setItemGraphicEl(e,n),n.__pictorialSymbolMeta=s,i.add(n),mW(n,c,s)}else i.remove(n)})).remove((function(e){var t=o.getItemGraphicEl(e);t&&pW(o,e,t.__pictorialSymbolMeta.animationModel,t)})).execute(),this._data=r,this.group},t.prototype.remove=function(e,t){var n=this.group,i=this._data;e.get("animation")?i&&i.eachItemGraphicEl((function(t){pW(i,Lu(t).dataIndex,e,t)})):n.removeAll()},t.type="pictorialBar",t}(nx);function KH(e,t,n,i){var r=e.getItemLayout(t),o=n.get("symbolRepeat"),a=n.get("symbolClip"),s=n.get("symbolPosition")||"start",l=n.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=n.get("symbolPatternSize")||2,d=n.isAnimationEnabled(),h={dataIndex:t,layout:r,itemModel:n,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:a,symbolRepeat:o,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:d?n:null,hoverScale:d&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};JH(n,o,r,i,h),eW(e,t,r,o,a,h.boundingLength,h.pxSign,c,i,h),tW(n,h.symbolScale,u,i,h);var p=h.symbolSize,f=y_(n.get("symbolOffset"),p);return nW(n,p,r,o,a,f,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,i,h),h}function JH(e,t,n,i,r){var o,a=i.valueDim,s=e.get("symbolBoundingData"),l=i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()),u=l.toGlobalCoord(l.dataToCoord(0)),c=1-+(n[a.wh]<=0);if(J(s)){var d=[QH(l,s[0])-u,QH(l,s[1])-u];d[1]0?1:-1}function QH(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function eW(e,t,n,i,r,o,a,s,l,u){var c,d=l.valueDim,h=l.categoryDim,p=Math.abs(n[h.wh]),f=e.getItemVisual(t,"symbolSize");c=J(f)?f.slice():null==f?["100%","100%"]:[f,f],c[h.index]=Wo(c[h.index],p),c[d.index]=Wo(c[d.index],i?p:Math.abs(o)),u.symbolSize=c;var g=u.symbolScale=[c[0]/s,c[1]/s];g[d.index]*=(l.isHorizontal?-1:1)*a}function tW(e,t,n,i,r){var o=e.get(ZH)||0;o&&(YH.attr({scaleX:t[0],scaleY:t[1],rotation:n}),YH.updateTransform(),o/=YH.getLineScale(),o*=t[i.valueDim.index]),r.valueLineWidth=o||0}function nW(e,t,n,i,r,o,a,s,l,u,c,d){var h=c.categoryDim,p=c.valueDim,f=d.pxSign,g=Math.max(t[p.index]+s,0),v=g;if(i){var m=Math.abs(l),y=de(e.get("symbolMargin"),"15%")+"",x=!1;y.lastIndexOf("!")===y.length-1&&(x=!0,y=y.slice(0,y.length-1));var _=Wo(y,t[p.index]),b=Math.max(g+2*_,0),w=x?0:2*_,S=la(i),M=S?i:yW((m+w)/b),C=m-M*g;_=C/2/(x?M:Math.max(M-1,1)),b=g+2*_,w=x?0:2*_,S||"fixed"===i||(M=u?yW((Math.abs(u)+w)/b):0),v=M*b-w,d.repeatTimes=M,d.symbolMargin=_}var I=f*(v/2),T=d.pathPosition=[];T[h.index]=n[h.wh]/2,T[p.index]="start"===a?I:"end"===a?l-I:l/2,o&&(T[0]+=o[0],T[1]+=o[1]);var k=d.bundlePosition=[];k[h.index]=n[h.xy],k[p.index]=n[p.xy];var A=d.barRectShape=F({},n);A[p.wh]=f*Math.max(Math.abs(n[p.wh]),Math.abs(T[p.index]+I)),A[h.wh]=n[h.wh];var D=d.clipShape={};D[h.xy]=-n[h.xy],D[h.wh]=c.ecSize[h.wh],D[p.xy]=0,D[p.wh]=n[p.wh]}function iW(e){var t=e.symbolPatternSize,n=v_(e.symbolType,-t/2,-t/2,t,t);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function rW(e,t,n,i){var r=e.__pictorialBundle,o=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,l=t.valueDim,u=n.repeatTimes||0,c=0,d=o[t.valueDim.index]+a+2*n.symbolMargin;for(gW(e,(function(e){e.__pictorialAnimationIndex=c,e.__pictorialRepeatTimes=u,c0:i<0)&&(r=u-1-e),t[l.index]=d*(r-u/2+.5)+s[l.index],{x:t[0],y:t[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function oW(e,t,n,i){var r=e.__pictorialBundle,o=e.__pictorialMainPath;o?vW(o,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,i):(o=e.__pictorialMainPath=iW(n),r.add(o),vW(o,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,i))}function aW(e,t,n){var i=F({},t.barRectShape),r=e.__pictorialBarRect;r?vW(r,null,{shape:i},t,n):(r=e.__pictorialBarRect=new hu({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),r.disableMorphing=!0,e.add(r))}function sW(e,t,n,r){if(n.symbolClip){var o=e.__pictorialClipPath,a=F({},n.clipShape),s=t.valueDim,l=n.animationModel,u=n.dataIndex;if(o)Xc(o,{shape:a},l,u);else{a[s.wh]=0,o=new hu({shape:a}),e.__pictorialBundle.setClipPath(o),e.__pictorialClipPath=o;var c={};c[s.wh]=n.clipShape[s.wh],i[r?"updateProps":"initProps"](o,{shape:c},l,u)}}}function lW(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=uW,n.isAnimationEnabled=cW,n}function uW(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function cW(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function dW(e,t,n,i){var r=new Lo,o=new Lo;return r.add(o),r.__pictorialBundle=o,o.x=n.bundlePosition[0],o.y=n.bundlePosition[1],n.symbolRepeat?rW(r,t,n):oW(r,t,n),aW(r,n,i),sW(r,t,n,i),r.__pictorialShapeStr=fW(e,n),r.__pictorialSymbolMeta=n,r}function hW(e,t,n){var i=n.animationModel,r=n.dataIndex,o=e.__pictorialBundle;Xc(o,{x:n.bundlePosition[0],y:n.bundlePosition[1]},i,r),n.symbolRepeat?rW(e,t,n,!0):oW(e,t,n,!0),aW(e,n,!0),sW(e,t,n,!0)}function pW(e,t,n,i){var r=i.__pictorialBarRect;r&&r.removeTextContent();var o=[];gW(i,(function(e){o.push(e)})),i.__pictorialMainPath&&o.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),W(o,(function(e){Qc(e,{scaleX:0,scaleY:0},n,t,(function(){i.parent&&i.parent.remove(i)}))})),e.setItemGraphicEl(t,null)}function fW(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function gW(e,t,n){W(e.__pictorialBundle.children(),(function(i){i!==e.__pictorialBarRect&&t.call(n,i)}))}function vW(e,t,n,r,o,a){t&&e.attr(t),r.symbolClip&&!o?n&&e.attr(n):n&&i[o?"updateProps":"initProps"](e,n,r.animationModel,r.dataIndex,a)}function mW(e,t,n){var i=n.dataIndex,r=n.itemModel,o=r.getModel("emphasis"),a=o.getModel("itemStyle").getItemStyle(),s=r.getModel(["blur","itemStyle"]).getItemStyle(),l=r.getModel(["select","itemStyle"]).getItemStyle(),u=r.getShallow("cursor"),c=o.get("focus"),d=o.get("blurScope"),h=o.get("scale");gW(e,(function(e){if(e instanceof iu){var t=e.style;e.useStyle(F({image:t.image,x:t.x,y:t.y,width:t.width,height:t.height},n.style))}else e.useStyle(n.style);var i=e.ensureState("emphasis");i.style=a,h&&(i.scaleX=1.1*e.scaleX,i.scaleY=1.1*e.scaleY),e.ensureState("blur").style=s,e.ensureState("select").style=l,u&&(e.cursor=u),e.z2=n.z2}));var p=t.valueDim.posDesc[+(n.boundingLength>0)],f=e.__pictorialBarRect;sd(f,ld(r),{labelFetcher:t.seriesModel,labelDataIndex:i,defaultText:xI(t.seriesModel.getData(),i),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:p}),Ec(e,c,d,o.get("disabled"))}function yW(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}const xW=XH;var _W=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return o(t,e),t.prototype.getInitialData=function(t){return t.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=Bd(RT.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(RT);const bW=_W;function wW(e){e.registerChartView(xW),e.registerSeriesModel(bW),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,K(kT,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,AT("pictorialBar"))}var SW=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._layers=[],n}return o(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),r=this,o=this.group,a=e.getLayerSeries(),s=i.getLayout("layoutInfo"),l=s.rect,u=s.boundaryGap;function c(e){return e.name}o.x=0,o.y=l.y+u[0];var d=new wC(this._layersSeries||[],a,c,c),h=[];function p(t,n,s){var l=r._layers;if("remove"!==t){for(var u,c,d=[],p=[],f=a[n].indices,g=0;go&&(o=s),i.push(s)}for(var u=0;uo&&(o=d)}return{y0:r,max:o}}function PW(e){e.registerChartView(CW),e.registerSeriesModel(kW),e.registerLayout(AW),e.registerProcessor(bk("themeRiver"))}var OW=2,RW=4,EW=function(e){function t(t,n,i,r){var o=e.call(this)||this;o.z2=OW,o.textConfig={inside:!0},Lu(o).seriesIndex=n.seriesIndex;var a=new Du({z2:RW,silent:t.getModel().get(["label","silent"])});return o.setTextContent(a),o.updateData(!0,t,n,i,r),o}return o(t,e),t.prototype.updateData=function(e,t,n,i,r){this.node=t,t.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var o=this;Lu(o).dataIndex=t.dataIndex;var a=t.getModel(),s=a.getModel("emphasis"),l=t.getLayout(),u=F({},l);u.label=null;var c=t.getVisual("style");c.lineJoin="bevel";var d=t.getVisual("decal");d&&(c.decal=ob(d,r));var h=kk(a.getModel("itemStyle"),u,!0);F(u,h),W(zu,(function(e){var t=o.ensureState(e),n=a.getModel([e,"itemStyle"]);t.style=n.getItemStyle();var i=kk(n,u);i&&(t.shape=i)})),e?(o.setShape(u),o.shape.r=l.r0,Xc(o,{shape:{r:l.r}},n,t.dataIndex)):(Xc(o,{shape:u},n),nd(o)),o.useStyle(c),this._updateLabel(n);var p=a.getShallow("cursor");p&&o.attr("cursor",p),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;var f=s.get("focus"),g="ancestor"===f?t.getAncestorsIndices():"descendant"===f?t.getDescendantIndices():f;Ec(this,g,s.get("blurScope"),s.get("disabled"))},t.prototype._updateLabel=function(e){var t=this,n=this.node.getModel(),i=n.getModel("label"),r=this.node.getLayout(),o=r.endAngle-r.startAngle,a=(r.startAngle+r.endAngle)/2,s=Math.cos(a),l=Math.sin(a),u=this,c=u.getTextContent(),d=this.node.dataIndex,h=i.get("minAngle")/180*Math.PI,p=i.get("show")&&!(null!=h&&Math.abs(o)Math.PI/2?"right":"left"):S&&"center"!==S?"left"===S?(y=r.r0+w,a>Math.PI/2&&(S="right")):"right"===S&&(y=r.r-w,a>Math.PI/2&&(S="left")):(y=o===2*Math.PI&&0===r.r0?0:(r.r+r.r0)/2,S="center"),g.style.align=S,g.style.verticalAlign=f(h,"verticalAlign")||"middle",g.x=y*s+r.cx,g.y=y*l+r.cy;var M=f(h,"rotate"),C=0;"radial"===M?(C=-a,C<-Math.PI/2&&(C+=Math.PI)):"tangential"===M?(C=Math.PI/2-a,C>Math.PI/2?C-=Math.PI:C<-Math.PI/2&&(C+=Math.PI)):ne(M)&&(C=M*Math.PI/180),g.rotation=C})),c.dirtyStyle()},t}(Am);const NW=EW;var FW="sunburstRootToNode",BW="sunburstHighlight",VW="sunburstUnhighlight";function zW(e){e.registerAction({type:FW,update:"updateView"},(function(e,t){function n(t,n){var i=oE(e,[FW],t);if(i){var r=t.getViewRoot();r&&(e.direction=sE(r,i.node)?"rollUp":"drillDown"),t.resetViewRoot(i.node)}}t.eachComponent({mainType:"series",subType:"sunburst",query:e},n)})),e.registerAction({type:BW,update:"none"},(function(e,t,n){function i(t){var n=oE(e,[BW],t);n&&(e.dataIndex=n.node.dataIndex)}e=F({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},i),n.dispatchAction(F(e,{type:"highlight"}))})),e.registerAction({type:VW,update:"updateView"},(function(e,t,n){e=F({},e),n.dispatchAction(F(e,{type:"downplay"}))}))}var qW=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.render=function(e,t,n,i){var r=this;this.seriesModel=e,this.api=n,this.ecModel=t;var o=e.getData(),a=o.tree.root,s=e.getViewRoot(),l=this.group,u=e.get("renderLabelForZeroData"),c=[];s.eachNode((function(e){c.push(e)}));var d=this._oldChildren||[];function h(e,t){function n(e){return e.getId()}function i(n,i){var r=null==n?null:e[n],o=null==i?null:t[i];p(r,o)}0===e.length&&0===t.length||new wC(t,e,n,n).add(i).update(i).remove(K(i,null)).execute()}function p(i,r){if(u||!i||i.getValue()||(i=null),i!==a&&r!==a)if(r&&r.piece)i?(r.piece.updateData(!1,i,e,t,n),o.setItemGraphicEl(i.dataIndex,r.piece)):f(r);else if(i){var s=new NW(i,e,t,n);l.add(s),o.setItemGraphicEl(i.dataIndex,s)}}function f(e){e&&e.piece&&(l.remove(e.piece),e.piece=null)}function g(i,o){o.depth>0?(r.virtualPiece?r.virtualPiece.updateData(!1,i,e,t,n):(r.virtualPiece=new NW(i,e,t,n),l.add(r.virtualPiece)),o.piece.off("click"),r.virtualPiece.on("click",(function(e){r._rootToNode(o.parentNode)}))):r.virtualPiece&&(l.remove(r.virtualPiece),r.virtualPiece=null)}h(c,d),g(a,s),this._initEvents(),this._oldChildren=c},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",(function(t){var n=!1,i=e.seriesModel.getViewRoot();i.eachNode((function(i){if(!n&&i.piece&&i.piece===t.target){var r=i.getModel().get("nodeClick");if("rootToNode"===r)e._rootToNode(i);else if("link"===r){var o=i.getModel(),a=o.get("link");if(a){var s=o.get("target",!0)||"_blank";Hh(a,s)}}n=!0}}))}))},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:FW,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,t){var n=t.getData(),i=n.getItemLayout(0);if(i){var r=e[0]-i.cx,o=e[1]-i.cy,a=Math.sqrt(r*r+o*o);return a<=i.r&&a>=i.r0}},t.type="sunburst",t}(nx);const HW=qW;var WW=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreStyleOnData=!0,n}return o(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};GW(n);var i=this._levelModels=G(e.levels||[],(function(e){return new Od(e,this,t)}),this),r=rE.createTree(n,this,o);function o(e){e.wrapMethod("getItemModel",(function(e,t){var n=r.getNodeByDataIndex(t),o=i[n.depth];return o&&(e.parentModel=o),e}))}return r.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treePathInfo=lE(i,this),n},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){_E(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}(Ov);function GW(e){var t=0;W(e.children,(function(e){GW(e);var n=e.value;J(n)&&(n=n[0]),t+=n}));var n=e.value;J(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),n<0&&(n=0),J(e.value)?e.value[0]=n:e.value=n}const UW=WW;var jW=Math.PI/180;function ZW(e,t,n){t.eachSeriesByType(e,(function(e){var t=e.get("center"),i=e.get("radius");J(i)||(i=[0,i]),J(t)||(t=[t,t]);var r=n.getWidth(),o=n.getHeight(),a=Math.min(r,o),s=Wo(t[0],r),l=Wo(t[1],o),u=Wo(i[0],a/2),c=Wo(i[1],a/2),d=-e.get("startAngle")*jW,h=e.get("minAngle")*jW,p=e.getData().tree.root,f=e.getViewRoot(),g=f.depth,v=e.get("sort");null!=v&&$W(f,v);var m=0;W(f.children,(function(e){!isNaN(e.getValue())&&m++}));var y=f.getValue(),x=Math.PI/(y||m)*2,_=f.depth>0,b=f.height-(_?-1:1),w=(c-u)/(b||1),S=e.get("clockwise"),M=e.get("stillShowZeroSum"),C=S?1:-1,I=function(t,n){if(t){var i=n;if(t!==p){var r=t.getValue(),o=0===y&&M?x:r*x;o1)r=r.parentNode;var o=n.getColorFromPalette(r.name||r.dataIndex+"",t);return e.depth>1&&ee(o)&&(o=ti(o,(e.depth-1)/(i-1)*.5)),o}e.eachSeriesByType("sunburst",(function(e){var t=e.getData(),i=t.tree;i.eachNode((function(r){var o=r.getModel(),a=o.getModel("itemStyle").getItemStyle();a.fill||(a.fill=n(r,e,i.root.height));var s=t.ensureUniqueItemVisual(r.dataIndex,"style");F(s,a)}))}))}function KW(e){e.registerChartView(HW),e.registerSeriesModel(UW),e.registerLayout(K(ZW,"sunburst")),e.registerProcessor(K(bk,"sunburst")),e.registerVisual(XW),zW(e)}var JW={color:"fill",borderColor:"stroke"},QW={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},eG=Fa(),tG=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,t){return vI(null,this)},t.prototype.getDataParams=function(t,n,i){var r=e.prototype.getDataParams.call(this,t,n);return i&&(r.info=eG(i).info),r},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(Ov);const nG=tG;function iG(e,t){return t=t||[0,0],G(["x","y"],(function(n,i){var r=this.getAxis(n),o=t[i],a=e[i]/2;return"category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a))}),this)}function rG(e){var t=e.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:X(iG,e)}}}function oG(e,t){return t=t||[0,0],G([0,1],(function(n){var i=t[n],r=e[n]/2,o=[],a=[];return o[n]=i-r,a[n]=i+r,o[1-n]=a[1-n]=t[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])}),this)}function aG(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(t){return e.dataToPoint(t)},size:X(oG,e)}}}function sG(e,t){var n=this.getAxis(),i=t instanceof Array?t[0]:t,r=(e instanceof Array?e[0]:e)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-r)-n.dataToCoord(i+r))}function lG(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:X(sG,e)}}}function uG(e,t){return t=t||[0,0],G(["Radius","Angle"],(function(n,i){var r="get"+n+"Axis",o=this[r](),a=t[i],s=e[i]/2,l="category"===o.type?o.getBandWidth():Math.abs(o.dataToCoord(a-s)-o.dataToCoord(a+s));return"Angle"===n&&(l=l*Math.PI/180),l}),this)}function cG(e){var t=e.getRadiusAxis(),n=e.getAngleAxis(),i=t.getExtent();return i[0]>i[1]&&i.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:i[1],r0:i[0]},api:{coord:function(i){var r=t.dataToRadius(i[0]),o=n.dataToAngle(i[1]),a=e.coordToPoint([r,o]);return a.push(r,o*Math.PI/180),a},size:X(uG,e)}}}function dG(e){var t=e.getRect(),n=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(t,n){return e.dataToPoint(t,n)}}}}function hG(e,t,n,i){return e&&(e.legacy||!1!==e.legacy&&!n&&!i&&"tspan"!==t&&("text"===t||Ie(e,"text")))}function pG(e,t,n){var i,r,o,a=e;if("text"===t)o=a;else{o={},Ie(a,"text")&&(o.text=a.text),Ie(a,"rich")&&(o.rich=a.rich),Ie(a,"textFill")&&(o.fill=a.textFill),Ie(a,"textStroke")&&(o.stroke=a.textStroke),Ie(a,"fontFamily")&&(o.fontFamily=a.fontFamily),Ie(a,"fontSize")&&(o.fontSize=a.fontSize),Ie(a,"fontStyle")&&(o.fontStyle=a.fontStyle),Ie(a,"fontWeight")&&(o.fontWeight=a.fontWeight),r={type:"text",style:o,silent:!0},i={};var s=Ie(a,"textPosition");n?i.position=s?a.textPosition:"inside":s&&(i.position=a.textPosition),Ie(a,"textPosition")&&(i.position=a.textPosition),Ie(a,"textOffset")&&(i.offset=a.textOffset),Ie(a,"textRotation")&&(i.rotation=a.textRotation),Ie(a,"textDistance")&&(i.distance=a.textDistance)}return fG(o,e),W(o.rich,(function(e){fG(e,e)})),{textConfig:i,textContent:r}}function fG(e,t){t&&(t.font=t.textFont||t.font,Ie(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),Ie(t,"textAlign")&&(e.align=t.textAlign),Ie(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),Ie(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),Ie(t,"textWidth")&&(e.width=t.textWidth),Ie(t,"textHeight")&&(e.height=t.textHeight),Ie(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),Ie(t,"textPadding")&&(e.padding=t.textPadding),Ie(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),Ie(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),Ie(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),Ie(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),Ie(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),Ie(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),Ie(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function gG(e,t,n){var i=e;i.textPosition=i.textPosition||n.position||"inside",null!=n.offset&&(i.textOffset=n.offset),null!=n.rotation&&(i.textRotation=n.rotation),null!=n.distance&&(i.textDistance=n.distance);var r=i.textPosition.indexOf("inside")>=0,o=e.fill||"#000";vG(i,t);var a=null==i.textFill;return r?a&&(i.textFill=n.insideFill||"#fff",!i.textStroke&&n.insideStroke&&(i.textStroke=n.insideStroke),!i.textStroke&&(i.textStroke=o),null==i.textStrokeWidth&&(i.textStrokeWidth=2)):(a&&(i.textFill=e.fill||n.outsideFill||"#000"),!i.textStroke&&n.outsideStroke&&(i.textStroke=n.outsideStroke)),i.text=t.text,i.rich=t.rich,W(t.rich,(function(e){vG(e,e)})),i}function vG(e,t){t&&(Ie(t,"fill")&&(e.textFill=t.fill),Ie(t,"stroke")&&(e.textStroke=t.fill),Ie(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),Ie(t,"font")&&(e.font=t.font),Ie(t,"fontStyle")&&(e.fontStyle=t.fontStyle),Ie(t,"fontWeight")&&(e.fontWeight=t.fontWeight),Ie(t,"fontSize")&&(e.fontSize=t.fontSize),Ie(t,"fontFamily")&&(e.fontFamily=t.fontFamily),Ie(t,"align")&&(e.textAlign=t.align),Ie(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),Ie(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),Ie(t,"width")&&(e.textWidth=t.width),Ie(t,"height")&&(e.textHeight=t.height),Ie(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),Ie(t,"padding")&&(e.textPadding=t.padding),Ie(t,"borderColor")&&(e.textBorderColor=t.borderColor),Ie(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),Ie(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),Ie(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),Ie(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),Ie(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),Ie(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),Ie(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),Ie(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),Ie(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),Ie(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var mG={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},yG=$(mG),xG=(U(Ur,(function(e,t){return e[t]=1,e}),{}),Ur.join(", "),["","style","shape","extra"]),_G=Fa();function bG(e,t,n,i,r){var o=e+"Animation",a=$c(e,i,r)||{},s=_G(t).userDuring;return a.duration>0&&(a.during=s?X(LG,{el:t,userDuring:s}):null,a.setToFinal=!0,a.scope=e),F(a,n[o]),a}function wG(e,t,n,i){i=i||{};var r=i.dataIndex,o=i.isInit,a=i.clearStyle,s=n.isAnimationEnabled(),l=_G(e),u=t.style;l.userDuring=t.during;var c={},d={};if(EG(e,t,d),OG("shape",t,d),OG("extra",t,d),!o&&s&&(RG(e,t,c),PG("shape",e,t,c),PG("extra",e,t,c),NG(e,t,u,c)),d.style=u,IG(e,d,a),kG(e,t),s)if(o){var h={};W(xG,(function(e){var n=e?t[e]:t;n&&n.enterFrom&&(e&&(h[e]=h[e]||{}),F(e?h[e]:h,n.enterFrom))}));var p=bG("enter",e,t,n,r);p.duration>0&&e.animateFrom(h,p)}else TG(e,t,r||0,n,c);SG(e,t),u?e.dirty():e.markRedraw()}function SG(e,t){for(var n=_G(e).leaveToProps,i=0;i0&&e.animateFrom(r,o)}}function kG(e,t){Ie(t,"silent")&&(e.silent=t.silent),Ie(t,"ignore")&&(e.ignore=t.ignore),e instanceof Hs&&Ie(t,"invisible")&&(e.invisible=t.invisible),e instanceof Yl&&Ie(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var AG={},DG={setTransform:function(e,t){return AG.el[e]=t,this},getTransform:function(e){return AG.el[e]},setShape:function(e,t){var n=AG.el,i=n.shape||(n.shape={});return i[e]=t,n.dirtyShape&&n.dirtyShape(),this},getShape:function(e){var t=AG.el.shape;if(t)return t[e]},setStyle:function(e,t){var n=AG.el,i=n.style;return i&&(i[e]=t,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(e){var t=AG.el.style;if(t)return t[e]},setExtra:function(e,t){var n=AG.el.extra||(AG.el.extra={});return n[e]=t,this},getExtra:function(e){var t=AG.el.extra;if(t)return t[e]}};function LG(){var e=this,t=e.el;if(t){var n=_G(t).userDuring,i=e.userDuring;n===i?(AG.el=t,i(DG)):e.el=e.userDuring=null}}function PG(e,t,n,i){var r=n[e];if(r){var o,a=t[e];if(a){var s=n.transition,l=r.transition;if(l)if(!o&&(o=i[e]={}),CG(l))F(o,a);else for(var u=ga(l),c=0;c=0){!o&&(o=i[e]={});var p=$(a);for(c=0;c=0)){var h=e.getAnimationStyleProps(),p=h?h.style:null;if(p){!r&&(r=i.style={});var f=$(n);for(u=0;u=0?t.getStore().get(r,n):void 0}var o=t.get(i.name,n),a=i&&i.ordinalMeta;return a?a.categories[o]:o}function w(n,i){null==i&&(i=s);var r=t.getItemVisual(i,"style"),o=r&&r.fill,a=r&&r.opacity,l=y(i,WG).getItemStyle();null!=o&&(l.fill=o),null!=a&&(l.opacity=a);var u={inheritColor:ee(o)?o:"#000"},c=x(i,WG),d=ud(c,null,u,!1,!0);d.text=c.getShallow("show")?he(e.getFormattedLabel(i,WG),xI(t,i)):null;var h=cd(c,u,!1);return C(n,l),l=gG(l,d,h),n&&M(l,n),l.legacy=!0,l}function S(n,i){null==i&&(i=s);var r=y(i,HG).getItemStyle(),o=x(i,HG),a=ud(o,null,null,!0,!0);a.text=o.getShallow("show")?pe(e.getFormattedLabel(i,HG),e.getFormattedLabel(i,WG),xI(t,i)):null;var l=cd(o,null,!0);return C(n,r),r=gG(r,a,l),n&&M(r,n),r.legacy=!0,r}function M(e,t){for(var n in t)Ie(t,n)&&(e[n]=t[n])}function C(e,t){e&&(e.textFill&&(t.textFill=e.textFill),e.textPosition&&(t.textPosition=e.textPosition))}function I(e,n){if(null==n&&(n=s),Ie(JW,e)){var i=t.getItemVisual(n,"style");return i?i[JW[e]]:null}if(Ie(QW,e))return t.getItemVisual(n,e)}function T(e){if("cartesian2d"===o.type){var t=o.getBaseAxis();return wT(B({axis:t},e))}}function k(){return n.getCurrentSeriesIndices()}function A(e){return md(e,n)}}function cU(e){var t={};return W(e.dimensions,(function(n){var i=e.getDimensionInfo(n);if(!i.isExtraCoord){var r=i.coordDim,o=t[r]=t[r]||[];o[i.coordDimIndex]=e.getDimensionIndex(n)}})),t}function dU(e,t,n,i,r,o,a){if(i){var s=hU(e,t,n,i,r,o);return s&&a.setItemGraphicEl(n,s),s&&Ec(s,i.focus,i.blurScope,i.emphasisDisabled),s}o.remove(t)}function hU(e,t,n,i,r,o){var a=-1,s=t;t&&pU(t,i,r)&&(a=V(o.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=rU(i),s&&tU(s,u)),!1===i.morph?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),KG.normal.cfg=KG.normal.conOpt=KG.emphasis.cfg=KG.emphasis.conOpt=KG.blur.cfg=KG.blur.conOpt=KG.select.cfg=KG.select.conOpt=null,KG.isLegacy=!1,gU(u,n,i,r,l,KG),fU(u,n,i,r,l),oU(e,u,n,i,KG,r,l),Ie(i,"info")&&(eG(u).info=i.info);for(var c=0;c=0?o.replaceAt(u,a):o.add(u),u}function pU(e,t,n){var i=eG(e),r=t.type,o=t.shape,a=t.style;return n.isUniversalTransitionEnabled()||null!=r&&r!==i.customGraphicType||"path"===r&&CU(o)&&MU(o)!==i.customPathData||"image"===r&&Ie(a,"image")&&a.image!==i.customImagePath}function fU(e,t,n,i,r){var o=n.clipPath;if(!1===o)e&&e.getClipPath()&&e.removeClipPath();else if(o){var a=e.getClipPath();a&&pU(a,o,i)&&(a=null),a||(a=rU(o),e.setClipPath(a)),oU(null,a,t,o,null,i,r)}}function gU(e,t,n,i,r,o){if(!e.isGroup){vU(n,null,o),vU(n,HG,o);var a=o.normal.conOpt,s=o.emphasis.conOpt,l=o.blur.conOpt,u=o.select.conOpt;if(null!=a||null!=s||null!=u||null!=l){var c=e.getTextContent();if(!1===a)c&&e.removeTextContent();else{a=o.normal.conOpt=a||{type:"text"},c?c.clearStates():(c=rU(a),e.setTextContent(c)),oU(null,c,t,a,null,i,r);for(var d=a&&a.style,h=0;h=c;d--){var h=t.childAt(d);MG(h,eG(t).option,r)}}}function _U(e){new wC(e.oldChildren,e.newChildren,bU,bU,e).add(wU).update(wU).remove(SU).execute()}function bU(e,t){var n=e&&e.name;return null!=n?n:XG+t}function wU(e,t){var n=this.context,i=null!=e?n.newChildren[e]:null,r=null!=t?n.oldChildren[t]:null;hU(n.api,r,n.dataIndex,i,n.seriesModel,n.group)}function SU(e){var t=this.context,n=t.oldChildren[e];MG(n,eG(n).option,t.seriesModel)}function MU(e){return e&&(e.pathData||e.d)}function CU(e){return e&&(Ie(e,"pathData")||Ie(e,"d"))}function IU(e){e.registerChartView(iU),e.registerSeriesModel(nG)}var TU=Fa(),kU=R,AU=X,DU=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,i){var r=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=n,i||this._lastValue!==r||this._lastStatus!==o){this._lastValue=r,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||"hide"===o)return a&&a.hide(),void(s&&s.hide());a&&a.show(),s&&s.show();var l={};this.makeElOption(l,r,e,t,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var c=this._moveAnimation=this.determineAnimation(e,t);if(a){var d=K(LU,t,c);this.updatePointerEl(a,l,d),this.updateLabelEl(a,l,d,t)}else a=this._group=new Lo,this.createPointerEl(a,l,e,t),this.createLabelEl(a,l,e,t),n.getZr().add(a);EU(a,t,!0),this._renderHandle(r)}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var n=t.get("animation"),i=e.axis,r="category"===i.type,o=t.get("snap");if(!o&&!r)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(r&&i.getBandWidth()>a)return!0;if(o){var s=xL(e).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},e.prototype.makeElOption=function(e,t,n,i,r){},e.prototype.createPointerEl=function(e,t,n,r){var o=t.pointer;if(o){var a=TU(e).pointerEl=new i[o.type](kU(t.pointer));e.add(a)}},e.prototype.createLabelEl=function(e,t,n,i){if(t.label){var r=TU(e).labelEl=new Du(kU(t.label));e.add(r),OU(r,i)}},e.prototype.updatePointerEl=function(e,t,n){var i=TU(e).pointerEl;i&&t.pointer&&(i.setStyle(t.pointer.style),n(i,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,i){var r=TU(e).labelEl;r&&(r.setStyle(t.label.style),n(r,{x:t.label.x,y:t.label.y}),OU(r,i))},e.prototype._renderHandle=function(e){if(!this._dragging&&this.updateHandleTransform){var t,n=this._axisPointerModel,i=this._api.getZr(),r=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return r&&i.remove(r),void(this._handle=null);this._handle||(t=!0,r=this._handle=zy(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(e){bt(e.event)},onmousedown:AU(this._onHandleDragMove,this,0,0),drift:AU(this._onHandleDragMove,this),ondragend:AU(this._onHandleDragEnd,this)}),i.add(r)),EU(r,n,!1),r.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");J(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,sx(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,t)}},e.prototype._moveHandleToValue=function(e,t){LU(this._axisPointerModel,!t&&this._moveAnimation,this._handle,RU(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(RU(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(RU(i)),TU(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,i=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),i&&t.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),lx(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},e}();function LU(e,t,n,i){PU(TU(n).lastProp,i)||(TU(n).lastProp=i,t?Xc(n,i,e):(n.stopAnimation(),n.attr(i)))}function PU(e,t){if(ie(e)&&ie(t)){var n=!0;return W(t,(function(t,i){n=n&&PU(e[i],t)})),!!n}return e===t}function OU(e,t){e[t.get(["label","show"])?"show":"hide"]()}function RU(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function EU(e,t,n){var i=t.get("z"),r=t.get("zlevel");e&&e.traverse((function(e){"group"!==e.type&&(null!=i&&(e.z=i),null!=r&&(e.zlevel=r),e.silent=n)}))}const NU=DU;function FU(e){var t,n=e.get("type"),i=e.getModel(n+"Style");return"line"===n?(t=i.getLineStyle(),t.fill=null):"shadow"===n&&(t=i.getAreaStyle(),t.stroke=null),t}function BU(e,t,n,i,r){var o=n.get("value"),a=zU(o,t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=Lh(s.get("padding")||0),u=s.getFont(),c=uo(a,u),d=r.position,h=c.width+l[1]+l[3],p=c.height+l[0]+l[2],f=r.align;"right"===f&&(d[0]-=h),"center"===f&&(d[0]-=h/2);var g=r.verticalAlign;"bottom"===g&&(d[1]-=p),"middle"===g&&(d[1]-=p/2),VU(d,h,p,i);var v=s.get("backgroundColor");v&&"auto"!==v||(v=t.get(["axisLine","lineStyle","color"])),e.label={x:d[0],y:d[1],style:ud(s,{text:a,font:u,fill:s.getTextColor(),padding:l,backgroundColor:v}),z2:10}}function VU(e,t,n,i){var r=i.getWidth(),o=i.getHeight();e[0]=Math.min(e[0]+t,r)-t,e[1]=Math.min(e[1]+n,o)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function zU(e,t,n,i,r){e=t.scale.parse(e);var o=t.scale.getLabel({value:e},{precision:r.precision}),a=r.formatter;if(a){var s={value:sD(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};W(i,(function(e){var t=n.getSeriesByIndex(e.seriesIndex),i=e.dataIndexInside,r=t&&t.getDataParams(i);r&&s.seriesData.push(r)})),ee(a)?o=a.replace("{value}",o):Q(a)&&(o=a(s))}return o}function qU(e,t,n){var i=kr();return Or(i,i,n.rotation),Pr(i,i,n.position),Oy([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function HU(e,t,n,i,r,o){var a=dL.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get(["label","margin"]),BU(t,i,r,o,{position:qU(i.axis,e,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function WU(e,t,n){return n=n||0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function GU(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function UU(e,t,n,i,r,o){return{cx:e,cy:t,r0:n,r:i,startAngle:r,endAngle:o,clockwise:!0}}var jU=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.makeElOption=function(e,t,n,i,r){var o=n.axis,a=o.grid,s=i.get("type"),l=ZU(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(t,!0));if(s&&"none"!==s){var c=FU(i),d=$U[s](o,u,l);d.style=c,e.graphicKey=d.type,e.pointer=d}var h=HD(a.model,n);HU(t,e,h,n,i,r)},t.prototype.getHandleTransform=function(e,t,n){var i=HD(t.axis.grid.model,t,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=qU(t.axis,e,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,i){var r=n.axis,o=r.grid,a=r.getGlobalExtent(!0),s=ZU(o,r).getOtherAxis(r).getGlobalExtent(),l="x"===r.dim?0:1,u=[e.x,e.y];u[l]+=t[l],u[l]=Math.min(a[1],u[l]),u[l]=Math.max(a[0],u[l]);var c=(s[1]+s[0])/2,d=[c,c];d[l]=u[l];var h=[{verticalAlign:"middle"},{align:"center"}];return{x:u[0],y:u[1],rotation:e.rotation,cursorPoint:d,tooltipOption:h[l]}},t}(NU);function ZU(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var $U={line:function(e,t,n){var i=WU([t,n[0]],[t,n[1]],YU(e));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(e,t,n){var i=Math.max(1,e.getBandWidth()),r=n[1]-n[0];return{type:"Rect",shape:GU([t-i/2,n[0]],[i,r],YU(e))}}};function YU(e){return"x"===e.dim?0:1}const XU=jU;var KU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(op);const JU=KU;var QU=Fa(),ej=W;function tj(e,t,n){if(!c.node){var i=t.getZr();QU(i).records||(QU(i).records={}),nj(i,t);var r=QU(i).records[e]||(QU(i).records[e]={});r.handler=n}}function nj(e,t){function n(n,i){e.on(n,(function(n){var r=aj(t);ej(QU(e).records,(function(e){e&&i(e,n,r.dispatchAction)})),ij(r.pendings,t)}))}QU(e).initialized||(QU(e).initialized=!0,n("click",K(oj,"click")),n("mousemove",K(oj,"mousemove")),n("globalout",rj))}function ij(e,t){var n,i=e.showTip.length,r=e.hideTip.length;i?n=e.showTip[i-1]:r&&(n=e.hideTip[r-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}function rj(e,t,n){e.handler("leave",null,n)}function oj(e,t,n,i){t.handler(e,n,i)}function aj(e){var t={showTip:[],hideTip:[]},n=function(i){var r=t[i.type];r?r.push(i):(i.dispatchAction=n,e.dispatchAction(i))};return{dispatchAction:n,pendings:t}}function sj(e,t){if(!c.node){var n=t.getZr(),i=(QU(n).records||{})[e];i&&(QU(n).records[e]=null)}}var lj=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.render=function(e,t,n){var i=t.getComponent("tooltip"),r=e.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";tj("axisPointer",n,(function(e,t,n){"none"!==r&&("leave"===e||r.indexOf(e)>=0)&&n({type:"updateAxisPointer",currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})}))},t.prototype.remove=function(e,t){sj("axisPointer",t)},t.prototype.dispose=function(e,t){sj("axisPointer",t)},t.type="axisPointer",t}(Ev);const uj=lj;function cj(e,t){var n,i=[],r=e.seriesIndex;if(null==r||!(n=t.getSeriesByIndex(r)))return{point:[]};var o=n.getData(),a=Na(o,e);if(null==a||a<0||J(a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)i=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),d=c.dim,h=u.dim,p="x"===d||"radius"===d?1:0,f=o.mapDimension(h),g=[];g[p]=o.get(f,a),g[1-p]=o.get(o.getCalculationInfo("stackResultDimension"),a),i=l.dataToPoint(g)||[]}else i=l.dataToPoint(o.getValues(G(l.dimensions,(function(e){return o.mapDimension(e)})),a))||[];else if(s){var v=s.getBoundingRect().clone();v.applyTransform(s.transform),i=[v.x+v.width/2,v.y+v.height/2]}return{point:i,el:s}}var dj=Fa();function hj(e,t,n){var i=e.currTrigger,r=[e.x,e.y],o=e,a=e.dispatchAction||X(n.dispatchAction,n),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){wj(r)&&(r=cj({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},t).point);var l=wj(r),u=o.axesInfo,c=s.axesInfo,d="leave"===i||wj(r),h={},p={},f={list:[],map:{}},g={showPointer:K(gj,p),showTooltip:K(vj,f)};W(s.coordSysMap,(function(e,t){var n=l||e.containPoint(r);W(s.coordSysAxesInfo[t],(function(e,t){var i=e.axis,o=_j(u,e);if(!d&&n&&(!u||o)){var a=o&&o.value;null!=a||l||(a=i.pointToData(r)),null!=a&&pj(e,a,g,!1,h)}}))}));var v={};return W(c,(function(e,t){var n=e.linkGroup;n&&!p[t]&&W(n.axesInfo,(function(t,i){var r=p[i];if(t!==e&&r){var o=r.value;n.mapper&&(o=e.axis.scale.parse(n.mapper(o,bj(t),bj(e)))),v[e.key]=o}}))})),W(v,(function(e,t){pj(c[t],e,g,!0,h)})),mj(p,c,h),yj(f,r,e,a),xj(c,a,n),h}}function pj(e,t,n,i,r){var o=e.axis;if(!o.scale.isBlank()&&o.containData(t))if(e.involveSeries){var a=fj(t,e),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==r.seriesIndex&&F(r,s[0]),!i&&e.snap&&o.containData(l)&&null!=l&&(t=l),n.showPointer(e,t,s),n.showTooltip(e,a,l)}else n.showPointer(e,t)}function fj(e,t){var n=t.axis,i=n.dim,r=e,o=[],a=Number.MAX_VALUE,s=-1;return W(t.seriesModels,(function(t,l){var u,c,d=t.getData().mapDimensionsAll(i);if(t.getAxisTooltipData){var h=t.getAxisTooltipData(d,e,n);c=h.dataIndices,u=h.nestestValue}else{if(c=t.getData().indicesOfNearest(d[0],e,"category"===n.type?.5:null),!c.length)return;u=t.getData().get(d[0],c[0])}if(null!=u&&isFinite(u)){var p=e-u,f=Math.abs(p);f<=a&&((f=0&&s<0)&&(a=f,s=p,r=u,o.length=0),W(c,(function(e){o.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})})))}})),{payloadBatch:o,snapToValue:r}}function gj(e,t,n,i){e[t.key]={value:n,payloadBatch:i}}function vj(e,t,n,i){var r=n.payloadBatch,o=t.axis,a=o.model,s=t.axisPointerModel;if(t.triggerTooltip&&r.length){var l=t.coordSys.model,u=wL(l),c=e.map[u];c||(c=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function mj(e,t,n){var i=n.axesInfo=[];W(t,(function(t,n){var r=t.axisPointerModel.option,o=e[n];o?(!t.useHandle&&(r.status="show"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!t.useHandle&&(r.status="hide"),"show"===r.status&&i.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:r.value})}))}function yj(e,t,n,i){if(!wj(t)&&e.list.length){var r=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:e.list})}else i({type:"hideTip"})}function xj(e,t,n){var i=n.getZr(),r="axisPointerLastHighlights",o=dj(i)[r]||{},a=dj(i)[r]={};W(e,(function(e,t){var n=e.axisPointerModel.option;"show"===n.status&&W(n.seriesDataIndices,(function(e){var t=e.seriesIndex+" | "+e.dataIndex;a[t]=e}))}));var s=[],l=[];W(o,(function(e,t){!a[t]&&l.push(e)})),W(a,(function(e,t){!o[t]&&s.push(e)})),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function _j(e,t){for(var n=0;n<(e||[]).length;n++){var i=e[n];if(t.axis.dim===i.axisDim&&t.axis.model.componentIndex===i.axisIndex)return i}}function bj(e){var t=e.axis.model,n={},i=n.axisDim=e.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=t.componentIndex,n.axisName=n[i+"AxisName"]=t.name,n.axisId=n[i+"AxisId"]=t.id,n}function wj(e){return!e||null==e[0]||isNaN(e[0])||null==e[1]||isNaN(e[1])}function Sj(e){CL.registerAxisPointerClass("CartesianAxisPointer",XU),e.registerComponentModel(JU),e.registerComponentView(uj),e.registerPreprocessor((function(e){if(e){(!e.axisPointer||0===e.axisPointer.length)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!J(t)&&(e.axisPointer.link=[t])}})),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,(function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=hL(e,t)})),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},hj)}function Mj(e){jw(FL),jw(Sj)}var Cj=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.makeElOption=function(e,t,n,i,r){var o=n.axis;"angle"===o.dim&&(this.animationThreshold=Math.PI/18);var a=o.polar,s=a.getOtherAxis(o),l=s.getExtent(),u=o.dataToCoord(t),c=i.get("type");if(c&&"none"!==c){var d=FU(i),h=Tj[c](o,a,u,l);h.style=d,e.graphicKey=h.type,e.pointer=h}var p=i.get(["label","margin"]),f=Ij(t,n,i,a,p);BU(e,n,i,r,f)},t}(NU);function Ij(e,t,n,i,r){var o=t.axis,a=o.dataToCoord(e),s=i.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,u,c,d=i.getRadiusAxis().getExtent();if("radius"===o.dim){var h=kr();Or(h,h,s),Pr(h,h,[i.cx,i.cy]),l=Oy([a,-r],h);var p=t.getModel("axisLabel").get("rotate")||0,f=dL.innerTextLayout(s,p*Math.PI/180,-1);u=f.textAlign,c=f.textVerticalAlign}else{var g=d[1];l=i.coordToPoint([g+r,a]);var v=i.cx,m=i.cy;u=Math.abs(l[0]-v)/g<.3?"center":l[0]>v?"left":"right",c=Math.abs(l[1]-m)/g<.3?"middle":l[1]>m?"top":"bottom"}return{position:l,align:u,verticalAlign:c}}var Tj={line:function(e,t,n,i){return"angle"===e.dim?{type:"Line",shape:WU(t.coordToPoint([i[0],n]),t.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:n}}},shadow:function(e,t,n,i){var r=Math.max(1,e.getBandWidth()),o=Math.PI/180;return"angle"===e.dim?{type:"Sector",shape:UU(t.cx,t.cy,i[0],i[1],(-n-r/2)*o,(r/2-n)*o)}:{type:"Sector",shape:UU(t.cx,t.cy,n-r/2,n+r/2,0,2*Math.PI)}}};const kj=Cj;var Aj=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.findAxisModel=function(e){var t,n=this.ecModel;return n.eachComponent(e,(function(e){e.getCoordSysModel()===this&&(t=e)}),this),t},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(op);const Dj=Aj;var Lj=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",qa).models[0]},t.type="polarAxis",t}(op);q(Lj,Xk);var Pj=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.type="angleAxis",t}(Lj),Oj=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.type="radiusAxis",t}(Lj),Rj=function(e){function t(t,n){return e.call(this,"radius",t,n)||this}return o(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t}(VD);Rj.prototype.dataToRadius=VD.prototype.dataToCoord,Rj.prototype.radiusToData=VD.prototype.coordToData;const Ej=Rj;var Nj=Fa(),Fj=function(e){function t(t,n){return e.call(this,"angle",t,n||[0,360])||this}return o(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,t=e.getLabelModel(),n=e.scale,i=n.getExtent(),r=n.count();if(i[1]-i[0]<1)return 0;var o=i[0],a=e.dataToCoord(o+1)-e.dataToCoord(o),s=Math.abs(a),l=uo(null==o?"":o+"",t.getFont(),"center","top"),u=Math.max(l.height,7),c=u/s;isNaN(c)&&(c=1/0);var d=Math.max(0,Math.floor(c)),h=Nj(e.model),p=h.lastAutoInterval,f=h.lastTickCount;return null!=p&&null!=f&&Math.abs(p-d)<=1&&Math.abs(f-r)<=1&&p>d?d=p:(h.lastTickCount=r,h.lastAutoInterval=d),d},t}(VD);Fj.prototype.dataToAngle=VD.prototype.dataToCoord,Fj.prototype.angleToData=VD.prototype.coordToData;const Bj=Fj;var Vj=["radius","angle"],zj=function(){function e(e){this.dimensions=Vj,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new Ej,this._angleAxis=new Bj,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},e.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},e.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(e){var t=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===e&&t.push(n),i.scale.type===e&&t.push(i),t},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(e){var t=null!=e&&"auto"!==e?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},e.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},e.prototype.pointToData=function(e,t){var n=this.pointToCoord(e);return[this._radiusAxis.radiusToData(n[0],t),this._angleAxis.angleToData(n[1],t)]},e.prototype.pointToCoord=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,i=this.getAngleAxis(),r=i.getExtent(),o=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);i.inverse?o=a-360:a=o+360;var s=Math.sqrt(t*t+n*n);t/=s,n/=s;var l=Math.atan2(-n,t)/Math.PI*180,u=la)l+=360*u;return[s,l]},e.prototype.coordToPoint=function(e){var t=e[0],n=e[1]/180*Math.PI,i=Math.cos(n)*t+this.cx,r=-Math.sin(n)*t+this.cy;return[i,r]},e.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),n=t.getExtent().slice();n[0]>n[1]&&n.reverse();var i=e.getExtent(),r=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-i[0]*r,endAngle:-i[1]*r,clockwise:e.inverse,contain:function(e,t){var n=e-this.cx,i=t-this.cy,r=n*n+i*i-1e-4,o=this.r,a=this.r0;return r<=o*o&&r>=a*a}}},e.prototype.convertToPixel=function(e,t,n){var i=qj(t);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var i=qj(t);return i===this?this.pointToData(n):null},e}();function qj(e){var t=e.seriesModel,n=e.polarModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}const Hj=zj;function Wj(e,t,n){var i=t.get("center"),r=n.getWidth(),o=n.getHeight();e.cx=Wo(i[0],r),e.cy=Wo(i[1],o);var a=e.getRadiusAxis(),s=Math.min(r,o)/2,l=t.get("radius");null==l?l=[0,"100%"]:J(l)||(l=[0,l]);var u=[Wo(l[0],s),Wo(l[1],s)];a.inverse?a.setExtent(u[1],u[0]):a.setExtent(u[0],u[1])}function Gj(e,t){var n=this,i=n.getAngleAxis(),r=n.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),r.scale.setExtent(1/0,-1/0),e.eachSeries((function(e){if(e.coordinateSystem===n){var t=e.getData();W(hD(t,"radius"),(function(e){r.scale.unionExtentFromData(t,e)})),W(hD(t,"angle"),(function(e){i.scale.unionExtentFromData(t,e)}))}})),iD(i.scale,i.model),iD(r.scale,r.model),"category"===i.type&&!i.onBand){var o=i.getExtent(),a=360/i.scale.count();i.inverse?o[1]+=a:o[1]-=a,i.setExtent(o[0],o[1])}}function Uj(e){return"angleAxis"===e.mainType}function jj(e,t){if(e.type=t.get("type"),e.scale=rD(t),e.onBand=t.get("boundaryGap")&&"category"===e.type,e.inverse=t.get("inverse"),Uj(t)){e.inverse=e.inverse!==t.get("clockwise");var n=t.get("startAngle");e.setExtent(n,n+(e.inverse?-360:360))}t.axis=e,e.model=t}var Zj={dimensions:Vj,create:function(e,t){var n=[];return e.eachComponent("polar",(function(e,i){var r=new Hj(i+"");r.update=Gj;var o=r.getRadiusAxis(),a=r.getAngleAxis(),s=e.findAxisModel("radiusAxis"),l=e.findAxisModel("angleAxis");jj(o,s),jj(a,l),Wj(r,e,t),n.push(r),e.coordinateSystem=r,r.model=e})),e.eachSeries((function(e){if("polar"===e.get("coordinateSystem")){var t=e.getReferringComponents("polar",qa).models[0];0,e.coordinateSystem=t.coordinateSystem}})),n}};const $j=Zj;var Yj=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Xj(e,t,n){t[1]>t[0]&&(t=t.slice().reverse());var i=e.coordToPoint([t[0],n]),r=e.coordToPoint([t[1],n]);return{x1:i[0],y1:i[1],x2:r[0],y2:r[1]}}function Kj(e){var t=e.getRadiusAxis();return t.inverse?0:1}function Jj(e){var t=e[0],n=e[e.length-1];t&&n&&Math.abs(Math.abs(t.coord-n.coord)-360)<1e-4&&e.pop()}var Qj=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return o(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var n=e.axis,i=n.polar,r=i.getRadiusAxis().getExtent(),o=n.getTicksCoords(),a=n.getMinorTicksCoords(),s=G(n.getViewLabels(),(function(e){e=R(e);var t=n.scale,i="ordinal"===t.type?t.getRawOrdinalNumber(e.tickValue):e.tickValue;return e.coord=n.dataToCoord(i),e}));Jj(s),Jj(o),W(Yj,(function(t){!e.get([t,"show"])||n.scale.isBlank()&&"axisLine"!==t||eZ[t](this.group,e,i,o,a,r,s)}),this)}},t.type="angleAxis",t}(CL),eZ={axisLine:function(e,t,n,i,r,o){var a,s=t.getModel(["axisLine","lineStyle"]),l=Kj(n),u=l?0:1;a=0===o[u]?new lm({shape:{cx:n.cx,cy:n.cy,r:o[l]},style:s.getLineStyle(),z2:1,silent:!0}):new Pm({shape:{cx:n.cx,cy:n.cy,r:o[l],r0:o[u]},style:s.getLineStyle(),z2:1,silent:!0}),a.style.fill=null,e.add(a)},axisTick:function(e,t,n,i,r,o){var a=t.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=o[Kj(n)],u=G(i,(function(e){return new Gm({shape:Xj(n,[l,l+s],e.coord)})}));e.add(Ty(u,{style:B(a.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,n,i,r,o){if(r.length){for(var a=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(a.get("inside")?-1:1)*s.get("length"),u=o[Kj(n)],c=[],d=0;df?"left":"right",m=Math.abs(p[1]-g)/h<.3?"middle":p[1]>g?"top":"bottom";if(s&&s[d]){var y=s[d];ie(y)&&y.textStyle&&(a=new Od(y.textStyle,l,l.ecModel))}var x=new Du({silent:dL.isLabelSilent(t),style:ud(a,{x:p[0],y:p[1],fill:a.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:i.formattedLabel,align:v,verticalAlign:m})});if(e.add(x),c){var _=dL.makeAxisEventDataBase(t);_.targetType="axisLabel",_.value=i.rawLabel,Lu(x).eventData=_}}),this)},splitLine:function(e,t,n,i,r,o){var a=t.getModel("splitLine"),s=a.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],d=0;d=0?"p":"n",I=_;y&&(i[s][M]||(i[s][M]={p:_,n:_}),I=i[s][M][C]);var T=void 0,k=void 0,A=void 0,D=void 0;if("radius"===d.dim){var L=d.dataToCoord(S)-_,P=o.dataToCoord(M);Math.abs(L)=D})}}}))}function dZ(e){var t={};W(e,(function(e,n){var i=e.getData(),r=e.coordinateSystem,o=r.getBaseAxis(),a=uZ(r,o),s=o.getExtent(),l="category"===o.type?o.getBandWidth():Math.abs(s[1]-s[0])/i.count(),u=t[a]||{bandWidth:l,remainedWidth:l,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},c=u.stacks;t[a]=u;var d=lZ(e);c[d]||u.autoWidthCount++,c[d]=c[d]||{width:0,maxWidth:0};var h=Wo(e.get("barWidth"),l),p=Wo(e.get("barMaxWidth"),l),f=e.get("barGap"),g=e.get("barCategoryGap");h&&!c[d].width&&(h=Math.min(u.remainedWidth,h),c[d].width=h,u.remainedWidth-=h),p&&(c[d].maxWidth=p),null!=f&&(u.gap=f),null!=g&&(u.categoryGap=g)}));var n={};return W(t,(function(e,t){n[t]={};var i=e.stacks,r=e.bandWidth,o=Wo(e.categoryGap,r),a=Wo(e.gap,1),s=e.remainedWidth,l=e.autoWidthCount,u=(s-o)/(l+(l-1)*a);u=Math.max(u,0),W(i,(function(e,t){var n=e.maxWidth;n&&n=t.y&&e[1]<=t.y+t.height:n.contain(n.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},e.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e["horizontal"===t.orient?0:1]))]},e.prototype.dataToPoint=function(e){var t=this.getAxis(),n=this.getRect(),i=[],r="horizontal"===t.orient?0:1;return e instanceof Array&&(e=e[0]),i[r]=t.toGlobalCoord(t.dataToCoord(+e)),i[1-r]=0===r?n.y+n.height/2:n.x+n.width/2,i},e.prototype.convertToPixel=function(e,t,n){var i=AZ(t);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var i=AZ(t);return i===this?this.pointToData(n):null},e}();function AZ(e){var t=e.seriesModel,n=e.singleAxisModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}const DZ=kZ;function LZ(e,t){var n=[];return e.eachComponent("singleAxis",(function(i,r){var o=new DZ(i,e,t);o.name="single_"+r,o.resize(i,t),i.coordinateSystem=o,n.push(o)})),e.eachSeries((function(e){if("singleAxis"===e.get("coordinateSystem")){var t=e.getReferringComponents("singleAxis",qa).models[0];e.coordinateSystem=t&&t.coordinateSystem}})),n}var PZ={create:LZ,dimensions:TZ};const OZ=PZ;var RZ=["x","y"],EZ=["width","height"],NZ=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.makeElOption=function(e,t,n,i,r){var o=n.axis,a=o.coordinateSystem,s=VZ(a,1-BZ(o)),l=a.dataToPoint(t)[0],u=i.get("type");if(u&&"none"!==u){var c=FU(i),d=FZ[u](o,l,s);d.style=c,e.graphicKey=d.type,e.pointer=d}var h=mZ(n);HU(t,e,h,n,i,r)},t.prototype.getHandleTransform=function(e,t,n){var i=mZ(t,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=qU(t.axis,e,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,i){var r=n.axis,o=r.coordinateSystem,a=BZ(r),s=VZ(o,a),l=[e.x,e.y];l[a]+=t[a],l[a]=Math.min(s[1],l[a]),l[a]=Math.max(s[0],l[a]);var u=VZ(o,1-a),c=(u[1]+u[0])/2,d=[c,c];return d[a]=l[a],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:d,tooltipOption:{verticalAlign:"middle"}}},t}(NU),FZ={line:function(e,t,n){var i=WU([t,n[0]],[t,n[1]],BZ(e));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(e,t,n){var i=e.getBandWidth(),r=n[1]-n[0];return{type:"Rect",shape:GU([t-i/2,n[0]],[i,r],BZ(e))}}};function BZ(e){return e.isHorizontal()?0:1}function VZ(e,t){var n=e.getRect();return[n[RZ[t]],n[RZ[t]]+n[EZ[t]]]}const zZ=NZ;var qZ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.type="single",t}(Ev);function HZ(e){jw(Sj),CL.registerAxisPointerClass("SingleAxisPointer",zZ),e.registerComponentView(qZ),e.registerComponentView(wZ),e.registerComponentModel(MZ),uA(e,"single",MZ,MZ.defaultOption),e.registerCoordinateSystem("single",OZ)}var WZ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.init=function(t,n,i){var r=ep(t);e.prototype.init.apply(this,arguments),GZ(t,r)},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),GZ(this.option,t)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(op);function GZ(e,t){var n,i=e.cellSize;n=J(i)?i:e.cellSize=[i,i],1===n.length&&(n[1]=n[0]);var r=G([0,1],(function(e){return Kh(t,e)&&(n[e]="auto"),null!=n[e]&&"auto"!==n[e]}));Qh(e,t,{type:"box",ignoreSize:r})}const UZ=WZ;var jZ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.render=function(e,t,n){var i=this.group;i.removeAll();var r=e.coordinateSystem,o=r.getRangeInfo(),a=r.getOrient(),s=t.getLocaleModel();this._renderDayRect(e,o,i),this._renderLines(e,o,a,i),this._renderYearText(e,o,a,i),this._renderMonthText(e,s,a,i),this._renderWeekText(e,s,o,a,i)},t.prototype._renderDayRect=function(e,t,n){for(var i=e.coordinateSystem,r=e.getModel("itemStyle").getItemStyle(),o=i.getCellWidth(),a=i.getCellHeight(),s=t.start.time;s<=t.end.time;s=i.getNextNDay(s,1).time){var l=i.dataToRect([s],!1).tl,u=new hu({shape:{x:l[0],y:l[1],width:o,height:a},cursor:"default",style:r});n.add(u)}},t.prototype._renderLines=function(e,t,n,i){var r=this,o=e.coordinateSystem,a=e.getModel(["splitLine","lineStyle"]).getLineStyle(),s=e.get(["splitLine","show"]),l=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=t.start,c=0;u.time<=t.end.time;c++){h(u.formatedDate),0===c&&(u=o.getDateInfo(t.start.y+"-"+t.start.m));var d=u.date;d.setMonth(d.getMonth()+1),u=o.getDateInfo(d)}function h(t){r._firstDayOfMonth.push(o.getDateInfo(t)),r._firstDayPoints.push(o.dataToRect([t],!1).tl);var l=r._getLinePointsOfOneWeek(e,t,n);r._tlpoints.push(l[0]),r._blpoints.push(l[l.length-1]),s&&r._drawSplitline(l,a,i)}h(o.getNextNDay(t.end.time,1).formatedDate),s&&this._drawSplitline(r._getEdgesPoints(r._tlpoints,l,n),a,i),s&&this._drawSplitline(r._getEdgesPoints(r._blpoints,l,n),a,i)},t.prototype._getEdgesPoints=function(e,t,n){var i=[e[0].slice(),e[e.length-1].slice()],r="horizontal"===n?0:1;return i[0][r]=i[0][r]-t/2,i[1][r]=i[1][r]+t/2,i},t.prototype._drawSplitline=function(e,t,n){var i=new zm({z2:20,shape:{points:e},style:t});n.add(i)},t.prototype._getLinePointsOfOneWeek=function(e,t,n){for(var i=e.coordinateSystem,r=i.getDateInfo(t),o=[],a=0;a<7;a++){var s=i.getNextNDay(r.time,a),l=i.dataToRect([s.time],!1);o[2*s.day]=l.tl,o[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return o},t.prototype._formatterLabel=function(e,t){return ee(e)&&e?Vh(e,t):Q(e)?e(t):t.nameMap},t.prototype._yearTextPositionControl=function(e,t,n,i,r){var o=t[0],a=t[1],s=["center","bottom"];"bottom"===i?(a+=r,s=["center","top"]):"left"===i?o-=r:"right"===i?(o+=r,s=["center","top"]):a-=r;var l=0;return"left"!==i&&"right"!==i||(l=Math.PI/2),{rotation:l,x:o,y:a,style:{align:s[0],verticalAlign:s[1]}}},t.prototype._renderYearText=function(e,t,n,i){var r=e.getModel("yearLabel");if(r.get("show")){var o=r.get("margin"),a=r.get("position");a||(a="horizontal"!==n?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,u=(s[0][1]+s[1][1])/2,c="horizontal"===n?0:1,d={top:[l,s[c][1]],bottom:[l,s[1-c][1]],left:[s[1-c][0],u],right:[s[c][0],u]},h=t.start.y;+t.end.y>+t.start.y&&(h=h+"-"+t.end.y);var p=r.get("formatter"),f={start:t.start.y,end:t.end.y,nameMap:h},g=this._formatterLabel(p,f),v=new Du({z2:30,style:ud(r,{text:g})});v.attr(this._yearTextPositionControl(v,d[a],n,a,o)),i.add(v)}},t.prototype._monthTextPositionControl=function(e,t,n,i,r){var o="left",a="top",s=e[0],l=e[1];return"horizontal"===n?(l+=r,t&&(o="center"),"start"===i&&(a="bottom")):(s+=r,t&&(a="middle"),"start"===i&&(o="right")),{x:s,y:l,align:o,verticalAlign:a}},t.prototype._renderMonthText=function(e,t,n,i){var r=e.getModel("monthLabel");if(r.get("show")){var o=r.get("nameMap"),a=r.get("margin"),s=r.get("position"),l=r.get("align"),u=[this._tlpoints,this._blpoints];o&&!ee(o)||(o&&(t=Yd(o)||t),o=t.get(["time","monthAbbr"])||[]);var c="start"===s?0:1,d="horizontal"===n?0:1;a="start"===s?-a:a;for(var h="center"===l,p=0;p=i.start.time&&n.timea.end.time&&e.reverse(),e},e.prototype._getRangeInfo=function(e){var t,n=[this.getDateInfo(e[0]),this.getDateInfo(e[1])];n[0].time>n[1].time&&(t=!0,n.reverse());var i=Math.floor(n[1].time/$Z)-Math.floor(n[0].time/$Z)+1,r=new Date(n[0].time),o=r.getDate(),a=n[1].date.getDate();r.setDate(o+i-1);var s=r.getDate();if(s!==a){var l=r.getTime()-n[1].time>0?1:-1;while((s=r.getDate())!==a&&(r.getTime()-n[1].time)*l>0)i-=l,r.setDate(s-l)}var u=Math.floor((i+n[0].day+6)/7),c=t?1-u:u-1;return t&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:i,weeks:u,nthWeek:c,fweek:n[0].day,lweek:n[1].day}},e.prototype._getDateByWeeksAndDay=function(e,t,n){var i=this._getRangeInfo(n);if(e>i.weeks||0===e&&ti.lweek)return null;var r=7*(e-1)-i.fweek+t,o=new Date(i.start.time);return o.setDate(+i.start.d+r),this.getDateInfo(o)},e.create=function(t,n){var i=[];return t.eachComponent("calendar",(function(r){var o=new e(r,t,n);i.push(o),r.coordinateSystem=o})),t.eachSeries((function(e){"calendar"===e.get("coordinateSystem")&&(e.coordinateSystem=i[e.get("calendarIndex")||0])})),i},e.dimensions=["time","value"],e}();function XZ(e){var t=e.calendarModel,n=e.seriesModel,i=t?t.coordinateSystem:n?n.coordinateSystem:null;return i}const KZ=YZ;function JZ(e){e.registerComponentModel(UZ),e.registerComponentView(ZZ),e.registerCoordinateSystem("calendar",KZ)}function QZ(e,t){var n=e.existing;if(t.id=e.keyInfo.id,!t.type&&n&&(t.type=n.type),null==t.parentId){var i=t.parentOption;i?t.parentId=i.id:n&&(t.parentId=n.parentId)}t.parentOption=null}function e$(e,t){var n;return W(t,(function(t){null!=e[t]&&"auto"!==e[t]&&(n=!0)})),n}function t$(e,t,n){var i=F({},n),r=e[t],o=n.$action||"merge";"merge"===o?r?(E(r,i,!0),Qh(r,i,{ignoreSize:!0}),tp(n,r),r$(n,r),r$(n,r,"shape"),r$(n,r,"style"),r$(n,r,"extra"),n.clipPath=r.clipPath):e[t]=i:"replace"===o?e[t]=i:"remove"===o&&r&&(e[t]=null)}var n$=["transition","enterFrom","leaveTo"],i$=n$.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function r$(e,t,n){if(n&&(!e[n]&&t[n]&&(e[n]={}),e=e[n],t=t[n]),e&&t)for(var i=n?n$:i$,r=0;r=0;l--){u=n[l],c=Aa(u.id,null),d=null!=c?r.get(c):null;if(d){h=d.parent,g=l$(h);var v=h===i?{width:o,height:a}:{width:g.width,height:g.height},m={},y=Xh(d,u,v,null,{hv:u.hv,boundingMode:u.bounding},m);if(!l$(d).isNew&&y){for(var x=u.transition,_={},b=0;b=0)?_[w]=S:d[w]=S}Xc(d,_,e,0)}else d.attr(m)}}},t.prototype._clear=function(){var e=this,t=this._elMap;t.each((function(n){h$(n,l$(n).option,t,e._lastGraphicModel)})),this._elMap=we()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(Ev);function c$(e){var t=Ie(s$,e)?s$[e]:Sy(e);var n=new t({});return l$(n).type=e,n}function d$(e,t,n,i){var r=c$(n);return t.add(r),i.set(e,r),l$(r).id=e,l$(r).isNew=!0,r}function h$(e,t,n,i){var r=e&&e.parent;r&&("group"===e.type&&e.traverse((function(e){h$(e,t,n,i)})),MG(e,t,i),n.removeKey(l$(e).id))}function p$(e,t,n,i){e.isGroup||W([["cursor",Hs.prototype.cursor],["zlevel",i||0],["z",n||0],["z2",0]],(function(n){var i=n[0];Ie(t,i)?e[i]=he(t[i],n[1]):null==e[i]&&(e[i]=n[1])})),W($(t),(function(n){if(0===n.indexOf("on")){var i=t[n];e[n]=Q(i)?i:null}})),Ie(t,"draggable")&&(e.draggable=t.draggable),null!=t.name&&(e.name=t.name),null!=t.id&&(e.id=t.id)}function f$(e){return e=F({},e),W(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Gh),(function(t){delete e[t]})),e}function g$(e,t,n){var i=Lu(e).eventData;e.silent||e.ignore||i||(i=Lu(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),i&&(i.info=n.info)}function v$(e){e.registerComponentModel(a$),e.registerComponentView(u$),e.registerPreprocessor((function(e){var t=e.graphic;J(t)?t[0]&&t[0].elements?e.graphic=[e.graphic[0]]:e.graphic=[{elements:t}]:t&&!t.elements&&(e.graphic=[{elements:[t]}])}))}var m$=["x","y","radius","angle","single"],y$=["cartesian2d","polar","singleAxis"];function x$(e){var t=e.get("coordinateSystem");return V(y$,t)>=0}function _$(e){return e+"Axis"}function b$(e,t){var n,i=we(),r=[],o=we();e.eachComponent({mainType:"dataZoom",query:t},(function(e){o.get(e.uid)||s(e)}));do{n=!1,e.eachComponent("dataZoom",a)}while(n);function a(e){!o.get(e.uid)&&l(e)&&(s(e),n=!0)}function s(e){o.set(e.uid,!0),r.push(e),u(e)}function l(e){var t=!1;return e.eachTargetAxis((function(e,n){var r=i.get(e);r&&r[n]&&(t=!0)})),t}function u(e){e.eachTargetAxis((function(e,t){(i.get(e)||i.set(e,[]))[t]=!0}))}return r}function w$(e){var t=e.ecModel,n={infoList:[],infoMap:we()};return e.eachTargetAxis((function(e,i){var r=t.getComponent(_$(e),i);if(r){var o=r.getCoordSysModel();if(o){var a=o.uid,s=n.infoMap.get(a);s||(s={model:o,axisModels:[]},n.infoList.push(s),n.infoMap.set(a,s)),s.axisModels.push(r)}}})),n}var S$=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},e}(),M$=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return o(t,e),t.prototype.init=function(e,t,n){var i=C$(e);this.settledOption=i,this.mergeDefaultAndTheme(e,n),this._doInit(i)},t.prototype.mergeOption=function(e){var t=C$(e);E(this.option,e,!0),E(this.settledOption,t,!0),this._doInit(t)},t.prototype._doInit=function(e){var t=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;W([["start","startValue"],["end","endValue"]],(function(e,i){"value"===this._rangePropMode[i]&&(t[e[0]]=n[e[0]]=null)}),this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),t=this._targetAxisInfoMap=we(),n=this._fillSpecifiedTargetAxis(t);n?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(t,this._orient)),this._noTarget=!0,t.each((function(e){e.indexList.length&&(this._noTarget=!1)}),this)},t.prototype._fillSpecifiedTargetAxis=function(e){var t=!1;return W(m$,(function(n){var i=this.getReferringComponents(_$(n),Ha);if(i.specified){t=!0;var r=new S$;W(i.models,(function(e){r.add(e.componentIndex)})),e.set(n,r)}}),this),t},t.prototype._fillAutoTargetAxisByOrient=function(e,t){var n=this.ecModel,i=!0;if(i){var r="vertical"===t?"y":"x",o=n.findComponents({mainType:r+"Axis"});a(o,r)}if(i){o=n.findComponents({mainType:"singleAxis",filter:function(e){return e.get("orient",!0)===t}});a(o,"single")}function a(t,n){var r=t[0];if(r){var o=new S$;if(o.add(r.componentIndex),e.set(n,o),i=!1,"x"===n||"y"===n){var a=r.getReferringComponents("grid",qa).models[0];a&&W(t,(function(e){r.componentIndex!==e.componentIndex&&a===e.getReferringComponents("grid",qa).models[0]&&o.add(e.componentIndex)}))}}}i&&W(m$,(function(t){if(i){var r=n.findComponents({mainType:_$(t),filter:function(e){return"category"===e.get("type",!0)}});if(r[0]){var o=new S$;o.add(r[0].componentIndex),e.set(t,o),i=!1}}}),this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis((function(t){!e&&(e=t)}),this),"y"===e?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var t=this.ecModel.option;this.option.throttle=t.animation&&t.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var t=this._rangePropMode,n=this.get("rangeMode");W([["start","startValue"],["end","endValue"]],(function(i,r){var o=null!=e[i[0]],a=null!=e[i[1]];o&&!a?t[r]="percent":!o&&a?t[r]="value":n?t[r]=n[r]:o&&(t[r]="percent")}))},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis((function(t,n){null==e&&(e=this.ecModel.getComponent(_$(t),n))}),this),e},t.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each((function(n,i){W(n.indexList,(function(n){e.call(t,i,n)}))}))},t.prototype.getAxisProxy=function(e,t){var n=this.getAxisModel(e,t);if(n)return n.__dzAxisProxy},t.prototype.getAxisModel=function(e,t){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[t])return this.ecModel.getComponent(_$(e),t)},t.prototype.setRawRange=function(e){var t=this.option,n=this.settledOption;W([["start","startValue"],["end","endValue"]],(function(i){null==e[i[0]]&&null==e[i[1]]||(t[i[0]]=n[i[0]]=e[i[0]],t[i[1]]=n[i[1]]=e[i[1]])}),this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var t=this.option;W(["start","startValue","end","endValue"],(function(n){t[n]=e[n]}))},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,t){if(null!=e||null!=t)return this.getAxisProxy(e,t).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var t,n=this._targetAxisInfoMap.keys(),i=0;io[1];if(c&&!d&&!h)return!0;c&&(r=!0),d&&(t=!0),h&&(n=!0)}return r&&t&&n}))}else O$(i,(function(n){if("empty"===r)e.setData(t=t.map(n,(function(e){return a(e)?e:NaN})));else{var i={};i[n]=o,t.selectRange(i)}}));O$(i,(function(e){t.setApproximateExtent(o,e)}))}}))}function a(e){return e>=o[0]&&e<=o[1]}},e.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._dataExtent;O$(["min","max"],(function(i){var r=t.get(i+"Span"),o=t.get(i+"ValueSpan");null!=o&&(o=this.getAxisModel().axis.scale.parse(o)),null!=o?r=Ho(n[0]+o,n,[0,100],!0):null!=r&&(o=Ho(r,[0,100],n,!0)-n[0]),e[i+"Span"]=r,e[i+"ValueSpan"]=o}),this)},e.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,n=this._valueWindow;if(t){var i=$o(n,[0,500]);i=Math.min(i,20);var r=e.axis.scale.rawExtentInfo;0!==t[0]&&r.setDeterminedMinMax("min",+n[0].toFixed(i)),100!==t[1]&&r.setDeterminedMinMax("max",+n[1].toFixed(i)),r.freeze()}},e}();function N$(e,t,n){var i=[1/0,-1/0];O$(n,(function(e){pD(i,e.getData(),t)}));var r=e.getAxisModel(),o=QA(r.axis.scale,r,i).calculate();return[o.min,o.max]}const F$=E$;var B$={getTargetSeries:function(e){function t(t){e.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(i,r){var o=e.getComponent(_$(i),r);t(i,r,o,n)}))}))}t((function(e,t,n,i){n.__dzAxisProxy=null}));var n=[];t((function(t,i,r,o){r.__dzAxisProxy||(r.__dzAxisProxy=new F$(t,i,o,e),n.push(r.__dzAxisProxy))}));var i=we();return W(n,(function(e){W(e.getTargetSeriesModels(),(function(e){i.set(e.uid,e)}))})),i},overallReset:function(e,t){e.eachComponent("dataZoom",(function(e){e.eachTargetAxis((function(t,n){e.getAxisProxy(t,n).reset(e)})),e.eachTargetAxis((function(n,i){e.getAxisProxy(n,i).filterData(e,t)}))})),e.eachComponent("dataZoom",(function(e){var t=e.findRepresentativeAxisProxy();if(t){var n=t.getDataPercentWindow(),i=t.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}}))}};const V$=B$;function z$(e){e.registerAction("dataZoom",(function(e,t){var n=b$(t,e);W(n,(function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})}))}))}var q$=!1;function H$(e){q$||(q$=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,V$),z$(e),e.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function W$(e){e.registerComponentModel(k$),e.registerComponentView(P$),H$(e)}var G$=function(){function e(){}return e}(),U$={};function j$(e,t){U$[e]=t}function Z$(e){return U$[e]}var $$=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;W(this.option.feature,(function(e,n){var i=Z$(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(t)),E(e,i.defaultOption))}))},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(op);const Y$=$$;function X$(e,t,n){var i=t.getBoxLayoutParams(),r=t.get("padding"),o={width:n.getWidth(),height:n.getHeight()},a=Yh(i,o,r);Zh(t.get("orient"),e,t.get("itemGap"),a.width,a.height),Xh(e,i,o,r)}function K$(e,t){var n=Lh(t.get("padding")),i=t.getItemStyle(["color","opacity"]);return i.fill=t.get("backgroundColor"),e=new hu({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get("borderRadius")},style:i,silent:!0,z2:-1}),e}var J$=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(e,t,n,i){var r=this.group;if(r.removeAll(),e.get("show")){var o=+e.get("itemSize"),a="vertical"===e.get("orient"),s=e.get("feature")||{},l=this._features||(this._features={}),u=[];W(s,(function(e,t){u.push(t)})),new wC(this._featureNames||[],u).add(c).update(c).remove(K(c,null)).execute(),this._featureNames=u,X$(r,e,n),r.add(K$(r.getBoundingRect(),e)),a||r.eachChild((function(e){var t=e.__title,i=e.ensureState("emphasis"),a=i.textConfig||(i.textConfig={}),s=e.getTextContent(),l=s&&s.ensureState("emphasis");if(l&&!Q(l)&&t){var u=l.style||(l.style={}),c=uo(t,Du.makeFont(u)),d=e.x+r.x,h=e.y+r.y+o,p=!1;h+c.height>n.getHeight()&&(a.position="top",p=!0);var f=p?-5-c.height:o+10;d+c.width/2>n.getWidth()?(a.position=["100%",f],u.align="right"):d-c.width/2<0&&(a.position=[0,f],u.align="left")}}))}function c(r,o){var a,c=u[r],h=u[o],p=s[c],f=new Od(p,e,e.ecModel);if(i&&null!=i.newTitle&&i.featureName===c&&(p.title=i.newTitle),c&&!h){if(Q$(c))a={onclick:f.option.onclick,featureName:c};else{var g=Z$(c);if(!g)return;a=new g}l[c]=a}else if(a=l[h],!a)return;a.uid=Ed("toolbox-feature"),a.model=f,a.ecModel=t,a.api=n;var v=a instanceof G$;c||!h?!f.get("show")||v&&a.unusable?v&&a.remove&&a.remove(t,n):(d(f,a,c),f.setIconStatus=function(e,t){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,i[e]&&("emphasis"===t?vc:mc)(i[e])},a instanceof G$&&a.render&&a.render(f,t,n,i)):v&&a.dispose&&a.dispose(t,n)}function d(i,s,l){var u,c,d=i.getModel("iconStyle"),h=i.getModel(["emphasis","iconStyle"]),p=s instanceof G$&&s.getIcons?s.getIcons():i.get("icon"),f=i.get("title")||{};ee(p)?(u={},u[l]=p):u=p,ee(f)?(c={},c[l]=f):c=f;var g=i.iconPaths={};W(u,(function(l,u){var p=zy(l,{},{x:-o/2,y:-o/2,width:o,height:o});p.setStyle(d.getItemStyle());var f=p.ensureState("emphasis");f.style=h.getItemStyle();var v=new Du({style:{text:c[u],align:h.get("textAlign"),borderRadius:h.get("textBorderRadius"),padding:h.get("textPadding"),fill:null},ignore:!0});p.setTextContent(v),Uy({el:p,componentModel:e,itemName:u,formatterParamsExtra:{title:c[u]}}),p.__title=c[u],p.on("mouseover",(function(){var t=h.getItemStyle(),i=a?null==e.get("right")&&"right"!==e.get("left")?"right":"left":null==e.get("bottom")&&"bottom"!==e.get("top")?"bottom":"top";v.setStyle({fill:h.get("textFill")||t.fill||t.stroke||"#000",backgroundColor:h.get("textBackgroundColor")}),p.setTextConfig({position:h.get("textPosition")||i}),v.ignore=!e.get("showTitle"),n.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==i.get(["iconStatus",u])&&n.leaveEmphasis(this),v.hide()})),("emphasis"===i.get(["iconStatus",u])?vc:mc)(p),r.add(p),p.on("click",X(s.onclick,s,t,n,u)),g[u]=p}))}},t.prototype.updateView=function(e,t,n,i){W(this._features,(function(e){e instanceof G$&&e.updateView&&e.updateView(e.model,t,n,i)}))},t.prototype.remove=function(e,t){W(this._features,(function(n){n instanceof G$&&n.remove&&n.remove(e,t)})),this.group.removeAll()},t.prototype.dispose=function(e,t){W(this._features,(function(n){n instanceof G$&&n.dispose&&n.dispose(e,t)}))},t.type="toolbox",t}(Ev);function Q$(e){return 0===e.indexOf("my")}const eY=J$;var tY=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.onclick=function(e,t){var n=this.model,i=n.get("name")||e.get("title.0.text")||"echarts",r="svg"===t.getZr().painter.getType(),o=r?"svg":n.get("type",!0)||"png",a=t.getConnectedDataURL({type:o,backgroundColor:n.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),s=c.browser;if(Q(MouseEvent)&&(s.newEdge||!s.ie&&!s.edge)){var l=document.createElement("a");l.download=i+"."+o,l.target="_blank",l.href=a;var u=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});l.dispatchEvent(u)}else if(window.navigator.msSaveOrOpenBlob||r){var d=a.split(","),h=d[0].indexOf("base64")>-1,p=r?decodeURIComponent(d[1]):d[1];h&&(p=window.atob(p));var f=i+"."+o;if(window.navigator.msSaveOrOpenBlob){var g=p.length,v=new Uint8Array(g);while(g--)v[g]=p.charCodeAt(g);var m=new Blob([v]);window.navigator.msSaveOrOpenBlob(m,f)}else{var y=document.createElement("iframe");document.body.appendChild(y);var x=y.contentWindow,_=x.document;_.open("image/svg+xml","replace"),_.write(p),_.close(),x.focus(),_.execCommand("SaveAs",!0,f),document.body.removeChild(y)}}else{var b=n.get("lang"),w='',S=window.open();S.document.write(w),S.document.title=i}},t.getDefaultOption=function(e){var t={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return t},t}(G$);const nY=tY;var iY="__ec_magicType_stack__",rY=[["line","bar"],["stack"]],oY=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.getIcons=function(){var e=this.model,t=e.get("icon"),n={};return W(e.get("type"),(function(e){t[e]&&(n[e]=t[e])})),n},t.getDefaultOption=function(e){var t={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return t},t.prototype.onclick=function(e,t,n){var i=this.model,r=i.get(["seriesIndex",n]);if(aY[n]){var o,a={series:[]},s=function(e){var t=e.subType,r=e.id,o=aY[n](t,r,e,i);o&&(B(o,e.option),a.series.push(o));var s=e.coordinateSystem;if(s&&"cartesian2d"===s.type&&("line"===n||"bar"===n)){var l=s.getAxesByScale("ordinal")[0];if(l){var u=l.dim,c=u+"Axis",d=e.getReferringComponents(c,qa).models[0],h=d.componentIndex;a[c]=a[c]||[];for(var p=0;p<=h;p++)a[c][h]=a[c][h]||{};a[c][h].boundaryGap="bar"===n}}};W(rY,(function(e){V(e,n)>=0&&W(e,(function(e){i.setIconStatus(e,"normal")}))})),i.setIconStatus(n,"emphasis"),e.eachComponent({mainType:"series",query:null==r?null:{seriesIndex:r}},s);var l=n;"stack"===n&&(o=E({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),"emphasis"!==i.get(["iconStatus",n])&&(l="tiled")),t.dispatchAction({type:"changeMagicType",currentType:l,newOption:a,newTitle:o,featureName:"magicType"})}},t}(G$),aY={line:function(e,t,n,i){if("bar"===e)return E({id:t,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","line"])||{},!0)},bar:function(e,t,n,i){if("line"===e)return E({id:t,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","bar"])||{},!0)},stack:function(e,t,n,i){var r=n.get("stack")===iY;if("line"===e||"bar"===e)return i.setIconStatus("stack",r?"normal":"emphasis"),E({id:t,stack:r?"":iY},i.get(["option","stack"])||{},!0)}};Ew({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(e,t){t.mergeOption(e.newOption)}));const sY=oY;var lY=new Array(60).join("-"),uY="\t";function cY(e){var t={},n=[],i=[];return e.eachRawSeries((function(e){var r=e.coordinateSystem;if(!r||"cartesian2d"!==r.type&&"polar"!==r.type)n.push(e);else{var o=r.getBaseAxis();if("category"===o.type){var a=o.dim+"_"+o.index;t[a]||(t[a]={categoryAxis:o,valueAxis:r.getOtherAxis(o),series:[]},i.push({axisDim:o.dim,axisIndex:o.index})),t[a].series.push(e)}else n.push(e)}})),{seriesGroupByCategoryAxis:t,other:n,meta:i}}function dY(e){var t=[];return W(e,(function(e,n){var i=e.categoryAxis,r=e.valueAxis,o=r.dim,a=[" "].concat(G(e.series,(function(e){return e.name}))),s=[i.model.getCategories()];W(e.series,(function(e){var t=e.getRawData();s.push(e.getRawData().mapArray(t.mapDimension(o),(function(e){return e})))}));for(var l=[a.join(uY)],u=0;u=0)return!0}var vY=new RegExp("["+uY+"]+","g");function mY(e){for(var t=e.split(/\n+/g),n=fY(t.shift()).split(vY),i=[],r=G(n,(function(e){return{name:e,data:[]}})),o=0;o=0;r--){var o=n[r];if(o[i])break}if(r<0){var a=e.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(a){var s=a.getPercentRange();n[0][i]={dataZoomId:i,start:s[0],end:s[1]}}}})),n.push(t)}function IY(e){var t=AY(e),n=t[t.length-1];t.length>1&&t.pop();var i={};return SY(n,(function(e,n){for(var r=t.length-1;r>=0;r--)if(e=t[r][n],e){i[n]=e;break}})),i}function TY(e){MY(e).snapshots=null}function kY(e){return AY(e).length}function AY(e){var t=MY(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var DY=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.onclick=function(e,t){TY(e),t.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var t={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocaleModel().get(["toolbox","restore","title"])};return t},t}(G$);Ew({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(e,t){t.resetOption("recreate")}));const LY=DY;var PY=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],OY=function(){function e(e,t,n){var i=this;this._targetInfoList=[];var r=EY(t,e);W(NY,(function(e,t){(!n||!n.include||V(n.include,t)>=0)&&e(r,i._targetInfoList)}))}return e.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,(function(e,t,n){if((e.coordRanges||(e.coordRanges=[])).push(t),!e.coordRange){e.coordRange=t;var i=VY[e.brushType](0,n,t);e.__rangeOffset={offset:qY[e.brushType](i.values,e.range,[1,1]),xyMinMax:i.xyMinMax}}})),e},e.prototype.matchOutputRanges=function(e,t,n){W(e,(function(e){var i=this.findTargetInfo(e,t);i&&!0!==i&&W(i.coordSyses,(function(i){var r=VY[e.brushType](1,i,e.range,!0);n(e,r.values,i,t)}))}),this)},e.prototype.setInputRanges=function(e,t){W(e,(function(e){var n=this.findTargetInfo(e,t);if(e.range=e.range||[],n&&!0!==n){e.panelId=n.panelId;var i=VY[e.brushType](0,n.coordSys,e.coordRange),r=e.__rangeOffset;e.range=r?qY[e.brushType](i.values,r.offset,WY(i.xyMinMax,r.xyMinMax)):i.values}}),this)},e.prototype.makePanelOpts=function(e,t){return G(this._targetInfoList,(function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:_z(i),isTargetByCursor:wz(i,e,n.coordSysModel),getLinearBrushOtherExtent:bz(i)}}))},e.prototype.controlSeries=function(e,t,n){var i=this.findTargetInfo(e,n);return!0===i||i&&V(i.coordSyses,t.coordinateSystem)>=0},e.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,i=EY(t,e),r=0;re[1]&&e.reverse(),e}function EY(e,t){return Va(e,t,{includeMainTypes:PY})}var NY={grid:function(e,t){var n=e.xAxisModels,i=e.yAxisModels,r=e.gridModels,o=we(),a={},s={};(n||i||r)&&(W(n,(function(e){var t=e.axis.grid.model;o.set(t.id,t),a[t.id]=!0})),W(i,(function(e){var t=e.axis.grid.model;o.set(t.id,t),s[t.id]=!0})),W(r,(function(e){o.set(e.id,e),a[e.id]=!0,s[e.id]=!0})),o.each((function(e){var r=e.coordinateSystem,o=[];W(r.getCartesians(),(function(e,t){(V(n,e.getAxis("x").model)>=0||V(i,e.getAxis("y").model)>=0)&&o.push(e)})),t.push({panelId:"grid--"+e.id,gridModel:e,coordSysModel:e,coordSys:o[0],coordSyses:o,getPanelRect:BY.grid,xAxisDeclared:a[e.id],yAxisDeclared:s[e.id]})})))},geo:function(e,t){W(e.geoModels,(function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:BY.geo})}))}},FY=[function(e,t){var n=e.xAxisModel,i=e.yAxisModel,r=e.gridModel;return!r&&n&&(r=n.axis.grid.model),!r&&i&&(r=i.axis.grid.model),r&&r===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],BY={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(Py(e)),t}},VY={lineX:K(zY,0),lineY:K(zY,1),rect:function(e,t,n,i){var r=e?t.pointToData([n[0][0],n[1][0]],i):t.dataToPoint([n[0][0],n[1][0]],i),o=e?t.pointToData([n[0][1],n[1][1]],i):t.dataToPoint([n[0][1],n[1][1]],i),a=[RY([r[0],o[0]]),RY([r[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(e,t,n,i){var r=[[1/0,-1/0],[1/0,-1/0]],o=G(n,(function(n){var o=e?t.pointToData(n,i):t.dataToPoint(n,i);return r[0][0]=Math.min(r[0][0],o[0]),r[1][0]=Math.min(r[1][0],o[1]),r[0][1]=Math.max(r[0][1],o[0]),r[1][1]=Math.max(r[1][1],o[1]),o}));return{values:o,xyMinMax:r}}};function zY(e,t,n,i){var r=n.getAxis(["x","y"][e]),o=RY(G([0,1],(function(e){return t?r.coordToData(r.toLocalCoord(i[e]),!0):r.toGlobalCoord(r.dataToCoord(i[e]))}))),a=[];return a[e]=o,a[1-e]=[NaN,NaN],{values:o,xyMinMax:a}}var qY={lineX:K(HY,0),lineY:K(HY,1),rect:function(e,t,n){return[[e[0][0]-n[0]*t[0][0],e[0][1]-n[0]*t[0][1]],[e[1][0]-n[1]*t[1][0],e[1][1]-n[1]*t[1][1]]]},polygon:function(e,t,n){return G(e,(function(e,i){return[e[0]-n[0]*t[i][0],e[1]-n[1]*t[i][1]]}))}};function HY(e,t,n,i){return[t[0]-i[e]*n[0],t[1]-i[e]*n[1]]}function WY(e,t){var n=GY(e),i=GY(t),r=[n[0]/i[0],n[1]/i[1]];return isNaN(r[0])&&(r[0]=1),isNaN(r[1])&&(r[1]=1),r}function GY(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}const UY=OY;var jY=W,ZY=Pa("toolbox-dataZoom_"),$Y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(e,t,n,i){this._brushController||(this._brushController=new xz(n.getZr()),this._brushController.on("brush",X(this._onBrush,this)).mount()),JY(e,t,this,i,n),KY(e,t)},t.prototype.onclick=function(e,t,n){YY[n].call(this)},t.prototype.remove=function(e,t){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,t){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var t=e.areas;if(e.isEnd&&t.length){var n={},i=this.ecModel;this._brushController.updateCovers([]);var r=new UY(XY(this.model),i,{include:["grid"]});r.matchOutputRanges(t,i,(function(e,t,n){if("cartesian2d"===n.type){var i=e.brushType;"rect"===i?(o("x",n,t[0]),o("y",n,t[1])):o({lineX:"x",lineY:"y"}[i],n,t)}})),CY(i,n),this._dispatchZoomAction(n)}function o(e,t,r){var o=t.getAxis(e),s=o.model,l=a(e,s,i),u=l.findRepresentativeAxisProxy(s).getMinMaxSpan();null==u.minValueSpan&&null==u.maxValueSpan||(r=rV(0,r.slice(),o.scale.getExtent(),0,u.minValueSpan,u.maxValueSpan)),l&&(n[l.id]={dataZoomId:l.id,startValue:r[0],endValue:r[1]})}function a(e,t,n){var i;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){var r=n.getAxisModel(e,t.componentIndex);r&&(i=n)})),i}},t.prototype._dispatchZoomAction=function(e){var t=[];jY(e,(function(e,n){t.push(R(e))})),t.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:t})},t.getDefaultOption=function(e){var t={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return t},t}(G$),YY={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(IY(this.ecModel))}};function XY(e){var t={xAxisIndex:e.get("xAxisIndex",!0),yAxisIndex:e.get("yAxisIndex",!0),xAxisId:e.get("xAxisId",!0),yAxisId:e.get("yAxisId",!0)};return null==t.xAxisIndex&&null==t.xAxisId&&(t.xAxisIndex="all"),null==t.yAxisIndex&&null==t.yAxisId&&(t.yAxisIndex="all"),t}function KY(e,t){e.setIconStatus("back",kY(t)>1?"emphasis":"normal")}function JY(e,t,n,i,r){var o=n._isZoomActive;i&&"takeGlobalCursor"===i.type&&(o="dataZoomSelect"===i.key&&i.dataZoomSelectActive),n._isZoomActive=o,e.setIconStatus("zoom",o?"emphasis":"normal");var a=new UY(XY(e),t,{include:["grid"]}),s=a.makePanelOpts(r,(function(e){return e.xAxisDeclared&&!e.yAxisDeclared?"lineX":!e.xAxisDeclared&&e.yAxisDeclared?"lineY":"rect"}));n._brushController.setPanels(s).enableBrush(!(!o||!s.length)&&{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()})}kp("dataZoom",(function(e){var t=e.getComponent("toolbox",0),n=["feature","dataZoom"];if(t&&null!=t.get(n)){var i=t.getModel(n),r=[],o=XY(i),a=Va(e,o);return jY(a.xAxisModels,(function(e){return s(e,"xAxis","xAxisIndex")})),jY(a.yAxisModels,(function(e){return s(e,"yAxis","yAxisIndex")})),r}function s(e,t,n){var o=e.componentIndex,a={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:ZY+t+o};a[n]=o,r.push(a)}}));const QY=$Y;function eX(e){e.registerComponentModel(Y$),e.registerComponentView(eY),j$("saveAsImage",nY),j$("magicType",sY),j$("dataView",wY),j$("dataZoom",QY),j$("restore",LY),jw(W$)}var tX=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(op);const nX=tX;function iX(e){var t=e.get("confine");return null!=t?!!t:"richText"===e.get("renderMode")}function rX(e){if(c.domSupported)for(var t=document.documentElement.style,n=0,i=e.length;n-1?(l+="top:50%",u+="translateY(-50%) rotate("+(o="left"===a?-225:-45)+"deg)"):(l+="left:50%",u+="translateX(-50%) rotate("+(o="top"===a?225:45)+"deg)");var c=o*Math.PI/180,d=s+r,h=d*Math.abs(Math.cos(c))+d*Math.abs(Math.sin(c)),p=Math.round(100*((h-Math.SQRT2*r)/2+Math.SQRT2*r-(h-d)/2))/100;l+=";"+a+":-"+p+"px";var f=t+" solid "+r+"px;",g=["position:absolute;width:"+s+"px;height:"+s+"px;",l+";"+u+";","border-bottom:"+f,"border-right:"+f,"background-color:"+i+";"];return'
'}function fX(e,t){var n="cubic-bezier(0.23,1,0.32,1)",i=" "+e/2+"s "+n,r="opacity"+i+",visibility"+i;return t||(i=" "+e+"s "+n,r+=c.transformSupported?","+cX+i:",left"+i+",top"+i),uX+":"+r}function gX(e,t,n){var i=e.toFixed(0)+"px",r=t.toFixed(0)+"px";if(!c.transformSupported)return n?"top:"+r+";left:"+i+";":[["top",r],["left",i]];var o=c.transform3dSupported,a="translate"+(o?"3d":"")+"("+i+","+r+(o?",0":"")+")";return n?"top:0;left:0;"+cX+":"+a+";":[["top",0],["left",0],[oX,a]]}function vX(e){var t=[],n=e.get("fontSize"),i=e.getTextColor();i&&t.push("color:"+i),t.push("font:"+e.getFont()),n&&t.push("line-height:"+Math.round(3*n/2)+"px");var r=e.get("textShadowColor"),o=e.get("textShadowBlur")||0,a=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return r&&o&&t.push("text-shadow:"+a+"px "+s+"px "+o+"px "+r),W(["decoration","align"],(function(n){var i=e.get(n);i&&t.push("text-"+n+":"+i)})),t.join(";")}function mX(e,t,n){var i=[],r=e.get("transitionDuration"),o=e.get("backgroundColor"),a=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),c=e.getModel("textStyle"),d=mv(e,"html"),h=l+"px "+u+"px "+a+"px "+s;return i.push("box-shadow:"+h),t&&r&&i.push(fX(r,n)),o&&i.push("background-color:"+o),W(["width","color","radius"],(function(t){var n="border-"+t,r=Dh(n),o=e.get(r);null!=o&&i.push(n+":"+o+("color"===t?"":"px"))})),i.push(vX(c)),null!=d&&i.push("padding:"+Lh(d).join("px ")+"px"),i.join(";")+";"}function yX(e,t,n,i,r){var o=t&&t.painter;if(n){var a=o&&o.getViewportRoot();a&&at(e,a,document.body,i,r)}else{e[0]=i,e[1]=r;var s=o&&o.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var xX=function(){function e(e,t,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,c.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var r=this._zr=t.getZr(),o=this._appendToBody=n&&n.appendToBody;yX(this._styleCoord,r,o,t.getWidth()/2,t.getHeight()/2),o?document.body.appendChild(i):e.appendChild(i),this._container=e;var a=this;i.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},i.onmousemove=function(e){if(e=e||window.event,!a._enterable){var t=r.handler,n=r.painter.getViewportRoot();mt(n,e,!0),t.dispatch("mousemove",e)}},i.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return e.prototype.update=function(e){var t=this._container,n=lX(t,"position"),i=t.style;"absolute"!==i.position&&"absolute"!==n&&(i.position="relative");var r=e.get("alwaysShowContent");r&&this._moveIfResized(),this.el.className=e.get("className")||""},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,r=this._styleCoord;n.innerHTML?i.cssText=dX+mX(e,!this._firstShow,this._longHide)+gX(r[0],r[1],!0)+"border-color:"+qh(t)+";"+(e.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,i,r){var o=this.el;if(null!=e){var a="";if(ee(r)&&"item"===n.get("trigger")&&!iX(n)&&(a=pX(n,i,r)),ee(e))o.innerHTML=e+a;else if(e){o.innerHTML="",J(e)||(e=[e]);for(var s=0;s=0?this._tryShow(n,i):"leave"===e&&this._hide(i))}),this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api,i=e.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==i&&"click"!==i){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&r.manuallyShowTip(e,t,n,{x:r._lastX,y:r._lastY,dataByCoordSys:r._lastDataByCoordSys})}))}},t.prototype.manuallyShowTip=function(e,t,n,i){if(i.from!==this.uid&&!c.node&&n.getDom()){var r=AX(i,n);this._ticket="";var o=i.dataByCoordSys,a=RX(i,t,n);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:i.position,positionDefault:"bottom"},r)}else if(i.tooltip&&null!=i.x&&null!=i.y){var l=IX;l.x=i.x,l.y=i.y,l.update(),Lu(l).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:l},r)}else if(o)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:o,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(e,t,n,i))return;var u=cj(i,t),d=u.point[0],h=u.point[1];null!=d&&null!=h&&this._tryShow({offsetX:d,offsetY:h,target:u.el,position:i.position,positionDefault:"bottom"},r)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},r))}},t.prototype.manuallyHideTip=function(e,t,n,i){var r=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(AX(i,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,i){var r=i.seriesIndex,o=i.dataIndex,a=t.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=t.getSeriesByIndex(r);if(s){var l=s.getData(),u=kX([l.getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel);if("axis"===u.get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:i.position}),!0}}},t.prototype._tryShow=function(e,t){var n=e.target,i=this._tooltipModel;if(i){this._lastX=e.offsetX,this._lastY=e.offsetY;var r=e.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,e);else if(n){var o,a;this._lastDataByCoordSys=null,n_(n,(function(e){return null!=Lu(e).dataIndex?(o=e,!0):null!=Lu(e).tooltipConfig?(a=e,!0):void 0}),!0),o?this._showSeriesItemTooltip(e,o,t):a?this._showComponentItemTooltip(e,a,t):this._hide(t)}else this._lastDataByCoordSys=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get("showDelay");t=X(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,i=this._tooltipModel,r=[t.offsetX,t.offsetY],o=kX([t.tooltipOption],i),a=this._renderMode,s=[],l=iv("section",{blocks:[],noHeader:!0}),u=[],c=new yv;W(e,(function(e){W(e.dataByAxis,(function(e){var t=n.getComponent(e.axisDim+"Axis",e.axisIndex),r=e.value;if(t&&null!=r){var o=zU(r,t.axis,n,e.seriesDataIndices,e.valueLabelOpt),d=iv("section",{header:o,noHeader:!me(o),sortBlocks:!0,blocks:[]});l.blocks.push(d),W(e.seriesDataIndices,(function(l){var h=n.getSeriesByIndex(l.seriesIndex),p=l.dataIndexInside,f=h.getDataParams(p);if(!(f.dataIndex<0)){f.axisDim=e.axisDim,f.axisIndex=e.axisIndex,f.axisType=e.axisType,f.axisId=e.axisId,f.axisValue=sD(t.axis,{value:r}),f.axisValueLabel=o,f.marker=c.makeTooltipMarker("item",qh(f.color),a);var g=dg(h.formatTooltip(p,!0,null)),v=g.frag;if(v){var m=kX([h],i).get("valueFormatter");d.blocks.push(m?F({valueFormatter:m},v):v)}g.text&&u.push(g.text),s.push(f)}}))}}))})),l.blocks.reverse(),u.reverse();var d=t.position,h=o.get("order"),p=uv(l,c,a,h,n.get("useUTC"),o.get("textStyle"));p&&u.unshift(p);var f="richText"===a?"\n\n":"
",g=u.join(f);this._showOrMove(o,(function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(o,d,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(o,g,s,Math.random()+"",r[0],r[1],d,null,c)}))},t.prototype._showSeriesItemTooltip=function(e,t,n){var i=this._ecModel,r=Lu(t),o=r.seriesIndex,a=i.getSeriesByIndex(o),s=r.dataModel||a,l=r.dataIndex,u=r.dataType,c=s.getData(u),d=this._renderMode,h=e.positionDefault,p=kX([c.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,h?{position:h}:null),f=p.get("trigger");if(null==f||"item"===f){var g=s.getDataParams(l,u),v=new yv;g.marker=v.makeTooltipMarker("item",qh(g.color),d);var m=dg(s.formatTooltip(l,!1,u)),y=p.get("order"),x=p.get("valueFormatter"),_=m.frag,b=_?uv(x?F({valueFormatter:x},_):_,v,d,y,i.get("useUTC"),p.get("textStyle")):m.text,w="item_"+s.name+"_"+l;this._showOrMove(p,(function(){this._showTooltipContent(p,b,g,w,e.offsetX,e.offsetY,e.position,e.target,v)})),n({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:o,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var i=Lu(t),r=i.tooltipConfig,o=r.option||{};if(ee(o)){var a=o;o={content:a,formatter:a}}var s=[o],l=this._ecModel.getComponent(i.componentMainType,i.componentIndex);l&&s.push(l),s.push({formatter:o.content});var u=e.positionDefault,c=kX(s,this._tooltipModel,u?{position:u}:null),d=c.get("content"),h=Math.random()+"",p=new yv;this._showOrMove(c,(function(){var n=R(c.get("formatterParams")||{});this._showTooltipContent(c,d,n,h,e.offsetX,e.offsetY,e.position,t,p)})),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,i,r,o,a,s,l){if(this._ticket="",e.get("showContent")&&e.get("show")){var u=this._tooltipContent;u.setEnterable(e.get("enterable"));var c=e.get("formatter");a=a||e.get("position");var d=t,h=this._getNearestPoint([r,o],n,e.get("trigger"),e.get("borderColor")),p=h.color;if(c)if(ee(c)){var f=e.ecModel.get("useUTC"),g=J(n)?n[0]:n,v=g&&g.axisType&&g.axisType.indexOf("time")>=0;d=c,v&&(d=dh(g.axisValue,d,f)),d=Bh(d,n,!0)}else if(Q(c)){var m=X((function(t,i){t===this._ticket&&(u.setContent(i,l,e,p,a),this._updatePosition(e,a,r,o,u,n,s))}),this);this._ticket=i,d=c(n,i,m)}else d=c;u.setContent(d,l,e,p,a),u.show(e,p),this._updatePosition(e,a,r,o,u,n,s)}},t.prototype._getNearestPoint=function(e,t,n,i){return"axis"===n||J(t)?{color:i||("html"===this._renderMode?"#fff":"none")}:J(t)?void 0:{color:i||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,i,r,o,a){var s=this._api.getWidth(),l=this._api.getHeight();t=t||e.get("position");var u=r.getSize(),c=e.get("align"),d=e.get("verticalAlign"),h=a&&a.getBoundingRect().clone();if(a&&h.applyTransform(a.transform),Q(t)&&(t=t([n,i],o,r.el,h,{viewSize:[s,l],contentSize:u.slice()})),J(t))n=Wo(t[0],s),i=Wo(t[1],l);else if(ie(t)){var p=t;p.width=u[0],p.height=u[1];var f=Yh(p,{width:s,height:l});n=f.x,i=f.y,c=null,d=null}else if(ee(t)&&a){var g=PX(t,h,u,e.get("borderWidth"));n=g[0],i=g[1]}else{g=DX(n,i,r,s,l,c?null:20,d?null:20);n=g[0],i=g[1]}if(c&&(n-=OX(c)?u[0]/2:"right"===c?u[0]:0),d&&(i-=OX(d)?u[1]/2:"bottom"===d?u[1]:0),iX(e)){g=LX(n,i,r,s,l);n=g[0],i=g[1]}r.moveTo(n,i)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,i=this._cbParamsList,r=!!n&&n.length===e.length;return r&&W(n,(function(n,o){var a=n.dataByAxis||[],s=e[o]||{},l=s.dataByAxis||[];r=r&&a.length===l.length,r&&W(a,(function(e,n){var o=l[n]||{},a=e.seriesDataIndices||[],s=o.seriesDataIndices||[];r=r&&e.value===o.value&&e.axisType===o.axisType&&e.axisId===o.axisId&&a.length===s.length,r&&W(a,(function(e,t){var n=s[t];r=r&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex})),i&&W(e.seriesDataIndices,(function(e){var n=e.seriesIndex,o=t[n],a=i[n];o&&a&&a.data!==o.data&&(r=!1)}))}))})),this._lastDataByCoordSys=e,this._cbParamsList=t,!!r},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,t){!c.node&&t.getDom()&&(lx(this,"_updatePosition"),this._tooltipContent.dispose(),sj("itemTooltip",t))},t.type="tooltip",t}(Ev);function kX(e,t,n){var i,r=t.ecModel;n?(i=new Od(n,r,r),i=new Od(t.option,i,r)):i=t;for(var o=e.length-1;o>=0;o--){var a=e[o];a&&(a instanceof Od&&(a=a.get("tooltip",!0)),ee(a)&&(a={formatter:a}),a&&(i=new Od(a,i,r)))}return i}function AX(e,t){return e.dispatchAction||X(t.dispatchAction,t)}function DX(e,t,n,i,r,o,a){var s=n.getSize(),l=s[0],u=s[1];return null!=o&&(e+l+o+2>i?e-=l+o:e+=o),null!=a&&(t+u+a>r?t-=u+a:t+=a),[e,t]}function LX(e,t,n,i,r){var o=n.getSize(),a=o[0],s=o[1];return e=Math.min(e+a,i)-a,t=Math.min(t+s,r)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function PX(e,t,n,i){var r=n[0],o=n[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=t.width,c=t.height;switch(e){case"inside":s=t.x+u/2-r/2,l=t.y+c/2-o/2;break;case"top":s=t.x+u/2-r/2,l=t.y-o-a;break;case"bottom":s=t.x+u/2-r/2,l=t.y+c+a;break;case"left":s=t.x-r-a,l=t.y+c/2-o/2;break;case"right":s=t.x+u+a,l=t.y+c/2-o/2}return[s,l]}function OX(e){return"center"===e||"middle"===e}function RX(e,t,n){var i=za(e).queryOptionMap,r=i.keys()[0];if(r&&"series"!==r){var o=Wa(t,r,i.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(a){var s,l=n.getViewOfComponentModel(a);return l.group.traverse((function(t){var n=Lu(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0})),s?{componentMainType:r,componentIndex:a.componentIndex,el:s}:void 0}}}const EX=TX;function NX(e){jw(Sj),e.registerComponentModel(nX),e.registerComponentView(EX),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Te),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Te)}var FX=["rect","polygon","keep","clear"];function BX(e,t){var n=ga(e?e.brush:[]);if(n.length){var i=[];W(n,(function(e){var t=e.hasOwnProperty("toolbox")?e.toolbox:[];t instanceof Array&&(i=i.concat(t))}));var r=e&&e.toolbox;J(r)&&(r=r[0]),r||(r={feature:{}},e.toolbox=[r]);var o=r.feature||(r.feature={}),a=o.brush||(o.brush={}),s=a.type||(a.type=[]);s.push.apply(s,i),VX(s),t&&!s.length&&s.push.apply(s,FX)}}function VX(e){var t={};W(e,(function(e){t[e]=1})),e.length=0,W(t,(function(t,n){e.push(n)}))}var zX=W;function qX(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!0}function HX(e,t,n){var i={};return zX(t,(function(t){var o=i[t]=r();zX(e[t],(function(e,i){if(pN.isValidType(i)){var r={type:i,visual:e};n&&n(r,t),o[i]=new pN(r),"opacity"===i&&(r=R(r),r.type="colorAlpha",o.__hidden.__alphaForOpacity=new pN(r))}}))})),i;function r(){var e=function(){};e.prototype.__hidden=e.prototype;var t=new e;return t}}function WX(e,t,n){var i;W(n,(function(e){t.hasOwnProperty(e)&&qX(t[e])&&(i=!0)})),i&&W(n,(function(n){t.hasOwnProperty(n)&&qX(t[n])?e[n]=R(t[n]):delete e[n]}))}function GX(e,t,n,i,r,o){var a,s={};function l(e){return Xx(n,a,e)}function u(e,t){Jx(n,a,e,t)}function c(e,c){a=null==o?e:c;var d=n.getRawDataItem(a);if(!d||!1!==d.visualMap)for(var h=i.call(r,e),p=t[h],f=s[h],g=0,v=f.length;gt[0][1]&&(t[0][1]=o[0]),o[1]t[1][1]&&(t[1][1]=o[1])}return t&&aK(t)}};function aK(e){return new oo(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var sK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t,this.model,(this._brushController=new xz(t.getZr())).on("brush",X(this._onBrush,this)).mount()},t.prototype.render=function(e,t,n,i){this.model=e,this._updateController(e,t,n,i)},t.prototype.updateTransform=function(e,t,n,i){QX(t),this._updateController(e,t,n,i)},t.prototype.updateVisual=function(e,t,n,i){this.updateTransform(e,t,n,i)},t.prototype.updateView=function(e,t,n,i){this._updateController(e,t,n,i)},t.prototype._updateController=function(e,t,n,i){(!i||i.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(n)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var t=this.model.id,n=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:t,areas:R(n),$from:t}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:t,areas:R(n),$from:t})},t.type="brush",t}(Ev);const lK=sK;var uK="#ddd",cK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.areas=[],n.brushOption={},n}return o(t,e),t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&WX(n,e,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:uK},i.hasOwnProperty("liftZ")||(i.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=G(e,(function(e){return dK(this.option,e)}),this))},t.prototype.setBrushOption=function(e){this.brushOption=dK(this.option,e),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(op);function dK(e,t){return E({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new Od(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}const hK=cK;var pK=["rect","polygon","lineX","lineY","keep","clear"],fK=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(e,t,n){var i,r,o;t.eachComponent({mainType:"brush"},(function(e){i=e.brushType,r=e.brushOption.brushMode||"single",o=o||!!e.areas.length})),this._brushType=i,this._brushMode=r,W(e.get("type",!0),(function(t){e.setIconStatus(t,("keep"===t?"multiple"===r:"clear"===t?o:t===i)?"emphasis":"normal")}))},t.prototype.updateView=function(e,t,n){this.render(e,t,n)},t.prototype.getIcons=function(){var e=this.model,t=e.get("icon",!0),n={};return W(e.get("type",!0),(function(e){t[e]&&(n[e]=t[e])})),n},t.prototype.onclick=function(e,t,n){var i=this._brushType,r=this._brushMode;"clear"===n?(t.dispatchAction({type:"axisAreaSelect",intervals:[]}),t.dispatchAction({type:"brush",command:"clear",areas:[]})):t.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===r?"single":"multiple":r}})},t.getDefaultOption=function(e){var t={show:!0,type:pK.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:e.getLocaleModel().get(["toolbox","brush","title"])};return t},t}(G$);const gK=fK;function vK(e){e.registerComponentView(lK),e.registerComponentModel(hK),e.registerPreprocessor(BX),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,eK),e.registerAction({type:"brush",event:"brush",update:"updateVisual"},(function(e,t){t.eachComponent({mainType:"brush",query:e},(function(t){t.setAreas(e.areas)}))})),e.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Te),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Te),j$("brush",gK)}var mK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return o(t,e),t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(op),yK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.render=function(e,t,n){if(this.group.removeAll(),e.get("show")){var i=this.group,r=e.getModel("textStyle"),o=e.getModel("subtextStyle"),a=e.get("textAlign"),s=he(e.get("textBaseline"),e.get("textVerticalAlign")),l=new Du({style:ud(r,{text:e.get("text"),fill:r.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),c=e.get("subtext"),d=new Du({style:ud(o,{text:c,fill:o.getTextColor(),y:u.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),h=e.get("link"),p=e.get("sublink"),f=e.get("triggerEvent",!0);l.silent=!h&&!f,d.silent=!p&&!f,h&&l.on("click",(function(){Hh(h,"_"+e.get("target"))})),p&&d.on("click",(function(){Hh(p,"_"+e.get("subtarget"))})),Lu(l).eventData=Lu(d).eventData=f?{componentType:"title",componentIndex:e.componentIndex}:null,i.add(l),c&&i.add(d);var g=i.getBoundingRect(),v=e.getBoxLayoutParams();v.width=g.width,v.height=g.height;var m=Yh(v,{width:n.getWidth(),height:n.getHeight()},e.get("padding"));a||(a=e.get("left")||e.get("right"),"middle"===a&&(a="center"),"right"===a?m.x+=m.width:"center"===a&&(m.x+=m.width/2)),s||(s=e.get("top")||e.get("bottom"),"center"===s&&(s="middle"),"bottom"===s?m.y+=m.height:"middle"===s&&(m.y+=m.height/2),s=s||"top"),i.x=m.x,i.y=m.y,i.markRedraw();var y={align:a,verticalAlign:s};l.setStyle(y),d.setStyle(y),g=i.getBoundingRect();var x=m.margin,_=e.getItemStyle(["color","opacity"]);_.fill=e.get("backgroundColor");var b=new hu({shape:{x:g.x-x[3],y:g.y-x[0],width:g.width+x[1]+x[3],height:g.height+x[0]+x[2],r:e.get("borderRadius")},style:_,subPixelOptimize:!0,silent:!0});i.add(b)}},t.type="title",t}(Ev);function xK(e){e.registerComponentModel(mK),e.registerComponentView(yK)}var _K=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode="box",n}return o(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._initData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){null==e&&(e=this.option.currentIndex);var t=this._data.count();this.option.loop?e=(e%t+t)%t:(e>=t&&(e=t-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e,t=this.option,n=t.data||[],i=t.axisType,r=this._names=[];"category"===i?(e=[],W(n,(function(t,n){var i,o=Aa(ya(t),"");ie(t)?(i=R(t),i.value=n):i=n,e.push(i),r.push(o)}))):e=n;var o={category:"ordinal",time:"time",value:"number"}[i]||"number",a=this._data=new JC([{name:"value",type:o}],this);a.initData(e,r)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(op);const bK=_K;var wK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.type="timeline.slider",t.defaultOption=Bd(bK.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(bK);q(wK,cg.prototype);const SK=wK;var MK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.type="timeline",t}(Ev);const CK=MK;var IK=function(e){function t(t,n,i,r){var o=e.call(this,t,n,i)||this;return o.type=r||"value",o}return o(t,e),t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},t}(VD);const TK=IK;var kK=Math.PI,AK=Fa(),DK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.init=function(e,t){this.api=t},t.prototype.render=function(e,t,n){if(this.model=e,this.api=n,this.ecModel=t,this.group.removeAll(),e.get("show",!0)){var i=this._layout(e,n),r=this._createGroup("_mainGroup"),o=this._createGroup("_labelGroup"),a=this._axis=this._createAxis(i,e);e.formatTooltip=function(e){var t=a.scale.getLabel({value:e});return iv("nameValue",{noName:!0,value:t})},W(["AxisLine","AxisTick","Control","CurrentPointer"],(function(t){this["_render"+t](i,r,a,e)}),this),this._renderAxisLabel(i,o,a,e),this._position(i,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,t){var n,i=e.get(["label","position"]),r=e.get("orient"),o=PK(e,t);n=null==i||"auto"===i?"horizontal"===r?o.y+o.height/2=0||"+"===n?"left":"right"},c={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},d={horizontal:0,vertical:kK/2},h="vertical"===r?o.height:o.width,p=e.getModel("controlStyle"),f=p.get("show",!0),g=f?p.get("itemSize"):0,v=f?p.get("itemGap"):0,m=g+v,y=e.get(["label","rotate"])||0;y=y*kK/180;var x=p.get("position",!0),_=f&&p.get("showPlayBtn",!0),b=f&&p.get("showPrevBtn",!0),w=f&&p.get("showNextBtn",!0),S=0,M=h;"left"===x||"bottom"===x?(_&&(a=[0,0],S+=m),b&&(s=[S,0],S+=m),w&&(l=[M-g,0],M-=m)):(_&&(a=[M-g,0],M-=m),b&&(s=[0,0],S+=m),w&&(l=[M-g,0],M-=m));var C=[S,M];return e.get("inverse")&&C.reverse(),{viewRect:o,mainLength:h,orient:r,rotation:d[r],labelRotation:y,labelPosOpt:n,labelAlign:e.get(["label","align"])||u[r],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||c[r],playPosition:a,prevBtnPosition:s,nextBtnPosition:l,axisExtent:C,controlSize:g,controlGap:v}},t.prototype._position=function(e,t){var n=this._mainGroup,i=this._labelGroup,r=e.viewRect;if("vertical"===e.orient){var o=kr(),a=r.x,s=r.y+r.height;Pr(o,o,[-a,-s]),Or(o,o,-kK/2),Pr(o,o,[a,s]),r=r.clone(),r.applyTransform(o)}var l=v(r),u=v(n.getBoundingRect()),c=v(i.getBoundingRect()),d=[n.x,n.y],h=[i.x,i.y];h[0]=d[0]=l[0][0];var p=e.labelPosOpt;if(null==p||ee(p)){var f="+"===p?0:1;m(d,u,l,1,f),m(h,c,l,1,1-f)}else{f=p>=0?0:1;m(d,u,l,1,f),h[1]=d[1]+p}function g(e){e.originX=l[0][0]-e.x,e.originY=l[1][0]-e.y}function v(e){return[[e.x,e.x+e.width],[e.y,e.y+e.height]]}function m(e,t,n,i,r){e[i]+=n[i][r]-t[i][r]}n.setPosition(d),i.setPosition(h),n.rotation=i.rotation=e.rotation,g(n),g(i)},t.prototype._createAxis=function(e,t){var n=t.getData(),i=t.get("axisType"),r=LK(t,i);r.getTicks=function(){return n.mapArray(["value"],(function(e){return{value:e}}))};var o=n.getDataExtent("value");r.setExtent(o[0],o[1]),r.calcNiceTicks();var a=new TK("value",r,e.axisExtent,i);return a.model=t,a},t.prototype._createGroup=function(e){var t=this[e]=new Lo;return this.group.add(t),t},t.prototype._renderAxisLine=function(e,t,n,i){var r=n.getExtent();if(i.get(["lineStyle","show"])){var o=new Gm({shape:{x1:r[0],y1:0,x2:r[1],y2:0},style:F({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});t.add(o);var a=this._progressLine=new Gm({shape:{x1:r[0],x2:this._currentPointer?this._currentPointer.x:r[0],y1:0,y2:0},style:B({lineCap:"round",lineWidth:o.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});t.add(a)}},t.prototype._renderAxisTick=function(e,t,n,i){var r=this,o=i.getData(),a=n.scale.getTicks();this._tickSymbols=[],W(a,(function(e){var a=n.dataToCoord(e.value),s=o.getItemModel(e.value),l=s.getModel("itemStyle"),u=s.getModel(["emphasis","itemStyle"]),c=s.getModel(["progress","itemStyle"]),d={x:a,y:0,onclick:X(r._changeTimeline,r,e.value)},h=RK(s,l,t,d);h.ensureState("emphasis").style=u.getItemStyle(),h.ensureState("progress").style=c.getItemStyle(),Oc(h);var p=Lu(h);s.get("tooltip")?(p.dataIndex=e.value,p.dataModel=i):p.dataIndex=p.dataModel=null,r._tickSymbols.push(h)}))},t.prototype._renderAxisLabel=function(e,t,n,i){var r=this,o=n.getLabelModel();if(o.get("show")){var a=i.getData(),s=n.getViewLabels();this._tickLabels=[],W(s,(function(i){var o=i.tickValue,s=a.getItemModel(o),l=s.getModel("label"),u=s.getModel(["emphasis","label"]),c=s.getModel(["progress","label"]),d=n.dataToCoord(i.tickValue),h=new Du({x:d,y:0,rotation:e.labelRotation-e.rotation,onclick:X(r._changeTimeline,r,o),silent:!1,style:ud(l,{text:i.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});h.ensureState("emphasis").style=ud(u),h.ensureState("progress").style=ud(c),t.add(h),Oc(h),AK(h).dataIndex=o,r._tickLabels.push(h)}))}},t.prototype._renderControl=function(e,t,n,i){var r=e.controlSize,o=e.rotation,a=i.getModel("controlStyle").getItemStyle(),s=i.getModel(["emphasis","controlStyle"]).getItemStyle(),l=i.getPlayState(),u=i.get("inverse",!0);function c(e,n,l,u){if(e){var c=fo(he(i.get(["controlStyle",n+"BtnSize"]),r),r),d=[0,-c/2,c,c],h=OK(i,n+"Icon",d,{x:e[0],y:e[1],originX:r/2,originY:0,rotation:u?-o:0,rectHover:!0,style:a,onclick:l});h.ensureState("emphasis").style=s,t.add(h),Oc(h)}}c(e.nextBtnPosition,"next",X(this._changeTimeline,this,u?"-":"+")),c(e.prevBtnPosition,"prev",X(this._changeTimeline,this,u?"+":"-")),c(e.playPosition,l?"stop":"play",X(this._handlePlayClick,this,!l),!0)},t.prototype._renderCurrentPointer=function(e,t,n,i){var r=i.getData(),o=i.getCurrentIndex(),a=r.getItemModel(o).getModel("checkpointStyle"),s=this,l={onCreate:function(e){e.draggable=!0,e.drift=X(s._handlePointerDrag,s),e.ondragend=X(s._handlePointerDragend,s),EK(e,s._progressLine,o,n,i,!0)},onUpdate:function(e){EK(e,s._progressLine,o,n,i)}};this._currentPointer=RK(a,a,this._mainGroup,{},this._currentPointer,l)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,t,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,t){var n=this._toAxisCoord(e)[0],i=this._axis,r=Uo(i.getExtent().slice());n>r[1]&&(n=r[1]),n=0&&(a[o]=+a[o].toFixed(h)),[a,d]}var QK={min:K(JK,"min"),max:K(JK,"max"),average:K(JK,"average"),median:K(JK,"median")};function eJ(e,t){var n=e.getData(),i=e.coordinateSystem;if(t&&!KK(t)&&!J(t.coord)&&i){var r=i.dimensions,o=tJ(t,n,i,e);if(t=R(t),t.type&&QK[t.type]&&o.baseAxis&&o.valueAxis){var a=V(r,o.baseAxis.dim),s=V(r,o.valueAxis.dim),l=QK[t.type](n,o.baseDataDim,o.valueDataDim,a,s);t.coord=l[0],t.value=l[1]}else{for(var u=[null!=t.xAxis?t.xAxis:t.radiusAxis,null!=t.yAxis?t.yAxis:t.angleAxis],c=0;c<2;c++)QK[u[c]]&&(u[c]=aJ(n,n.mapDimension(r[c]),u[c]));t.coord=u}}return t}function tJ(e,t,n,i){var r={};return null!=e.valueIndex||null!=e.valueDim?(r.valueDataDim=null!=e.valueIndex?t.getDimension(e.valueIndex):e.valueDim,r.valueAxis=n.getAxis(nJ(i,r.valueDataDim)),r.baseAxis=n.getOtherAxis(r.valueAxis),r.baseDataDim=t.mapDimension(r.baseAxis.dim)):(r.baseAxis=i.getBaseAxis(),r.valueAxis=n.getOtherAxis(r.baseAxis),r.baseDataDim=t.mapDimension(r.baseAxis.dim),r.valueDataDim=t.mapDimension(r.valueAxis.dim)),r}function nJ(e,t){var n=e.getData().getDimensionInfo(t);return n&&n.coordDim}function iJ(e,t){return!(e&&e.containData&&t.coord&&!XK(t))||e.containData(t.coord)}function rJ(e,t,n){return!(e&&e.containZone&&t.coord&&n.coord&&!XK(t)&&!XK(n))||e.containZone(t.coord,n.coord)}function oJ(e,t){return e?function(e,n,i,r){var o=r<2?e.coord&&e.coord[r]:e.value;return mg(o,t[r])}:function(e,n,i,r){return mg(e.value,t[r])}}function aJ(e,t,n){if("average"===n){var i=0,r=0;return e.each(t,(function(e,t){isNaN(e)||(i+=e,r++)})),i/r}return"median"===n?e.getMedian(t):e.getDataExtent(t)["max"===n?1:0]}var sJ=Fa(),lJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.init=function(){this.markerGroupMap=we()},t.prototype.render=function(e,t,n){var i=this,r=this.markerGroupMap;r.each((function(e){sJ(e).keep=!1})),t.eachSeries((function(e){var r=ZK.getMarkerModelFromSeries(e,i.type);r&&i.renderSeries(e,r,t,n)})),r.each((function(e){!sJ(e).keep&&i.group.remove(e.group)}))},t.prototype.markKeep=function(e){sJ(e).keep=!0},t.prototype.toggleBlurSeries=function(e,t){var n=this;W(e,(function(e){var i=ZK.getMarkerModelFromSeries(e,n.type);if(i){var r=i.getData();r.eachItemGraphicEl((function(e){e&&(t?yc(e):xc(e))}))}}))},t.type="marker",t}(Ev);const uJ=lJ;function cJ(e,t,n){var i=t.coordinateSystem;e.each((function(r){var o,a=e.getItemModel(r),s=Wo(a.get("x"),n.getWidth()),l=Wo(a.get("y"),n.getHeight());if(isNaN(s)||isNaN(l)){if(t.getMarkerPosition)o=t.getMarkerPosition(e.getValues(e.dimensions,r));else if(i){var u=e.get(i.dimensions[0],r),c=e.get(i.dimensions[1],r);o=i.dataToPoint([u,c])}}else o=[s,l];isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),e.setItemLayout(r,o)}))}var dJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=ZK.getMarkerModelFromSeries(e,"markPoint");t&&(cJ(t.getData(),e,n),this.markerGroupMap.get(e.id).updateLayout())}),this)},t.prototype.renderSeries=function(e,t,n,i){var r=e.coordinateSystem,o=e.id,a=e.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new kI),u=hJ(r,e,t);t.setData(u),cJ(t.getData(),e,i),u.each((function(e){var n=u.getItemModel(e),i=n.getShallow("symbol"),r=n.getShallow("symbolSize"),o=n.getShallow("symbolRotate"),s=n.getShallow("symbolOffset"),l=n.getShallow("symbolKeepAspect");if(Q(i)||Q(r)||Q(o)||Q(s)){var c=t.getRawValue(e),d=t.getDataParams(e);Q(i)&&(i=i(c,d)),Q(r)&&(r=r(c,d)),Q(o)&&(o=o(c,d)),Q(s)&&(s=s(c,d))}var h=n.getModel("itemStyle").getItemStyle(),p=Kx(a,"color");h.fill||(h.fill=p),u.setItemVisual(e,{symbol:i,symbolSize:r,symbolRotate:o,symbolOffset:s,symbolKeepAspect:l,style:h})})),l.updateData(u),this.group.add(l.group),u.eachItemGraphicEl((function(e){e.traverse((function(e){Lu(e).dataModel=t}))})),this.markKeep(l),l.group.silent=t.get("silent")||e.get("silent")},t.type="markPoint",t}(uJ);function hJ(e,t,n){var i;i=e?G(e&&e.dimensions,(function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return F(F({},n),{name:e,ordinalMeta:null})})):[{name:"value",type:"float"}];var r=new JC(i,n),o=G(n.get("data"),K(eJ,t));e&&(o=j(o,K(iJ,e)));var a=oJ(!!e,i);return r.initData(o,null,a),r}const pJ=dJ;function fJ(e){e.registerComponentModel(YK),e.registerComponentView(pJ),e.registerPreprocessor((function(e){WK(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})}))}var gJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,n,i)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(ZK);const vJ=gJ;var mJ=Fa(),yJ=function(e,t,n,i){var r,o=e.getData();if(J(i))r=i;else{var a=i.type;if("min"===a||"max"===a||"average"===a||"median"===a||null!=i.xAxis||null!=i.yAxis){var s=void 0,l=void 0;if(null!=i.yAxis||null!=i.xAxis)s=t.getAxis(null!=i.yAxis?"y":"x"),l=de(i.yAxis,i.xAxis);else{var u=tJ(i,o,t,e);s=u.valueAxis;var c=cI(o,u.valueDataDim);l=aJ(o,c,a)}var d="x"===s.dim?0:1,h=1-d,p=R(i),f={coord:[]};p.type=null,p.coord=[],p.coord[h]=-1/0,f.coord[h]=1/0;var g=n.get("precision");g>=0&&ne(l)&&(l=+l.toFixed(Math.min(g,20))),p.coord[d]=f.coord[d]=l,r=[p,f,{type:a,valueIndex:i.valueIndex,value:l}]}else r=[]}var v=[eJ(e,r[0]),eJ(e,r[1]),F({},r[2])];return v[2].type=v[2].type||null,E(v[2],v[0]),E(v[2],v[1]),v};function xJ(e){return!isNaN(e)&&!isFinite(e)}function _J(e,t,n,i){var r=1-e,o=i.dimensions[e];return xJ(t[r])&&xJ(n[r])&&t[e]===n[e]&&i.getAxis(o).containData(t[e])}function bJ(e,t){if("cartesian2d"===e.type){var n=t[0].coord,i=t[1].coord;if(n&&i&&(_J(1,n,i,e)||_J(0,n,i,e)))return!0}return iJ(e,t[0])&&iJ(e,t[1])}function wJ(e,t,n,i,r){var o,a=i.coordinateSystem,s=e.getItemModel(t),l=Wo(s.get("x"),r.getWidth()),u=Wo(s.get("y"),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition)o=i.getMarkerPosition(e.getValues(e.dimensions,t));else{var c=a.dimensions,d=e.get(c[0],t),h=e.get(c[1],t);o=a.dataToPoint([d,h])}if($I(a,"cartesian2d")){var p=a.getAxis("x"),f=a.getAxis("y");c=a.dimensions;xJ(e.get(c[0],t))?o[0]=p.toGlobalCoord(p.getExtent()[n?0:1]):xJ(e.get(c[1],t))&&(o[1]=f.toGlobalCoord(f.getExtent()[n?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];e.setItemLayout(t,o)}var SJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=ZK.getMarkerModelFromSeries(e,"markLine");if(t){var i=t.getData(),r=mJ(t).from,o=mJ(t).to;r.each((function(t){wJ(r,t,!0,e,n),wJ(o,t,!1,e,n)})),i.each((function(e){i.setItemLayout(e,[r.getItemLayout(e),o.getItemLayout(e)])})),this.markerGroupMap.get(e.id).updateLayout()}}),this)},t.prototype.renderSeries=function(e,t,n,i){var r=e.coordinateSystem,o=e.id,a=e.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new zF);this.group.add(l.group);var u=MJ(r,e,t),c=u.from,d=u.to,h=u.line;mJ(t).from=c,mJ(t).to=d,t.setData(h);var p=t.get("symbol"),f=t.get("symbolSize"),g=t.get("symbolRotate"),v=t.get("symbolOffset");function m(t,n,r){var o=t.getItemModel(n);wJ(t,n,r,e,i);var s=o.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=Kx(a,"color")),t.setItemVisual(n,{symbolKeepAspect:o.get("symbolKeepAspect"),symbolOffset:he(o.get("symbolOffset",!0),v[r?0:1]),symbolRotate:he(o.get("symbolRotate",!0),g[r?0:1]),symbolSize:he(o.get("symbolSize"),f[r?0:1]),symbol:he(o.get("symbol",!0),p[r?0:1]),style:s})}J(p)||(p=[p,p]),J(f)||(f=[f,f]),J(g)||(g=[g,g]),J(v)||(v=[v,v]),u.from.each((function(e){m(c,e,!0),m(d,e,!1)})),h.each((function(e){var t=h.getItemModel(e).getModel("lineStyle").getLineStyle();h.setItemLayout(e,[c.getItemLayout(e),d.getItemLayout(e)]),null==t.stroke&&(t.stroke=c.getItemVisual(e,"style").fill),h.setItemVisual(e,{fromSymbolKeepAspect:c.getItemVisual(e,"symbolKeepAspect"),fromSymbolOffset:c.getItemVisual(e,"symbolOffset"),fromSymbolRotate:c.getItemVisual(e,"symbolRotate"),fromSymbolSize:c.getItemVisual(e,"symbolSize"),fromSymbol:c.getItemVisual(e,"symbol"),toSymbolKeepAspect:d.getItemVisual(e,"symbolKeepAspect"),toSymbolOffset:d.getItemVisual(e,"symbolOffset"),toSymbolRotate:d.getItemVisual(e,"symbolRotate"),toSymbolSize:d.getItemVisual(e,"symbolSize"),toSymbol:d.getItemVisual(e,"symbol"),style:t})})),l.updateData(h),u.line.eachItemGraphicEl((function(e){Lu(e).dataModel=t,e.traverse((function(e){Lu(e).dataModel=t}))})),this.markKeep(l),l.group.silent=t.get("silent")||e.get("silent")},t.type="markLine",t}(uJ);function MJ(e,t,n){var i;i=e?G(e&&e.dimensions,(function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return F(F({},n),{name:e,ordinalMeta:null})})):[{name:"value",type:"float"}];var r=new JC(i,n),o=new JC(i,n),a=new JC([],n),s=G(n.get("data"),K(yJ,t,e,n));e&&(s=j(s,K(bJ,e)));var l=oJ(!!e,i);return r.initData(G(s,(function(e){return e[0]})),null,l),o.initData(G(s,(function(e){return e[1]})),null,l),a.initData(G(s,(function(e){return e[2]}))),a.hasItemOption=!0,{from:r,to:o,line:a}}const CJ=SJ;function IJ(e){e.registerComponentModel(vJ),e.registerComponentView(CJ),e.registerPreprocessor((function(e){WK(e.series,"markLine")&&(e.markLine=e.markLine||{})}))}var TJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,n,i)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(ZK);const kJ=TJ;var AJ=Fa(),DJ=function(e,t,n,i){var r=eJ(e,i[0]),o=eJ(e,i[1]),a=r.coord,s=o.coord;a[0]=de(a[0],-1/0),a[1]=de(a[1],-1/0),s[0]=de(s[0],1/0),s[1]=de(s[1],1/0);var l=N([{},r,o]);return l.coord=[r.coord,o.coord],l.x0=r.x,l.y0=r.y,l.x1=o.x,l.y1=o.y,l};function LJ(e){return!isNaN(e)&&!isFinite(e)}function PJ(e,t,n,i){var r=1-e;return LJ(t[r])&&LJ(n[r])}function OJ(e,t){var n=t.coord[0],i=t.coord[1],r={coord:n,x:t.x0,y:t.y0},o={coord:i,x:t.x1,y:t.y1};return $I(e,"cartesian2d")?!(!n||!i||!PJ(1,n,i,e)&&!PJ(0,n,i,e))||rJ(e,r,o):iJ(e,r)||iJ(e,o)}function RJ(e,t,n,i,r){var o,a=i.coordinateSystem,s=e.getItemModel(t),l=Wo(s.get(n[0]),r.getWidth()),u=Wo(s.get(n[1]),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition)o=i.getMarkerPosition(e.getValues(n,t));else{var c=e.get(n[0],t),d=e.get(n[1],t),h=[c,d];a.clampData&&a.clampData(h,h),o=a.dataToPoint(h,!0)}if($I(a,"cartesian2d")){var p=a.getAxis("x"),f=a.getAxis("y");c=e.get(n[0],t),d=e.get(n[1],t);LJ(c)?o[0]=p.toGlobalCoord(p.getExtent()["x0"===n[0]?0:1]):LJ(d)&&(o[1]=f.toGlobalCoord(f.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];return o}var EJ=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],NJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=ZK.getMarkerModelFromSeries(e,"markArea");if(t){var i=t.getData();i.each((function(t){var r=G(EJ,(function(r){return RJ(i,t,r,e,n)}));i.setItemLayout(t,r);var o=i.getItemGraphicEl(t);o.setShape("points",r)}))}}),this)},t.prototype.renderSeries=function(e,t,n,i){var r=e.coordinateSystem,o=e.id,a=e.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,{group:new Lo});this.group.add(l.group),this.markKeep(l);var u=FJ(r,e,t);t.setData(u),u.each((function(t){var n=G(EJ,(function(n){return RJ(u,t,n,e,i)})),o=r.getAxis("x").scale,s=r.getAxis("y").scale,l=o.getExtent(),c=s.getExtent(),d=[o.parse(u.get("x0",t)),o.parse(u.get("x1",t))],h=[s.parse(u.get("y0",t)),s.parse(u.get("y1",t))];Uo(d),Uo(h);var p=!(l[0]>d[1]||l[1]h[1]||c[1]=0},t.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(op);const HJ=qJ;var WJ=K,GJ=W,UJ=Lo,jJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return o(t,e),t.prototype.init=function(){this.group.add(this._contentGroup=new UJ),this.group.add(this._selectorGroup=new UJ),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get("show",!0)){var r=e.get("align"),o=e.get("orient");r&&"auto"!==r||(r="right"===e.get("left")&&"vertical"===o?"right":"left");var a=e.get("selector",!0),s=e.get("selectorPosition",!0);!a||s&&"auto"!==s||(s="horizontal"===o?"end":"start"),this.renderInner(r,e,t,n,a,o,s);var l=e.getBoxLayoutParams(),u={width:n.getWidth(),height:n.getHeight()},c=e.get("padding"),d=Yh(l,u,c),h=this.layoutInner(e,r,d,i,a,s),p=Yh(B({width:h.width,height:h.height},l),u,c);this.group.x=p.x-h.x,this.group.y=p.y-h.y,this.group.markRedraw(),this.group.add(this._backgroundEl=K$(h,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,i,r,o,a){var s=this.getContentGroup(),l=we(),u=t.get("selectedMode"),c=[];n.eachRawSeries((function(e){!e.get("legendHoverLink")&&c.push(e.id)})),GJ(t.getData(),(function(r,o){var a=r.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var d=new UJ;return d.newline=!0,void s.add(d)}var h=n.getSeriesByName(a)[0];if(!l.get(a)){if(h){var p=h.getData(),f=p.getVisual("legendLineStyle")||{},g=p.getVisual("legendIcon"),v=p.getVisual("style"),m=this._createItem(h,a,o,r,t,e,f,v,g,u,i);m.on("click",WJ(YJ,a,null,i,c)).on("mouseover",WJ(KJ,h.name,null,i,c)).on("mouseout",WJ(JJ,h.name,null,i,c)),l.set(a,!0)}else n.eachRawSeries((function(n){if(!l.get(a)&&n.legendVisualProvider){var s=n.legendVisualProvider;if(!s.containName(a))return;var d=s.indexOfName(a),h=s.getItemVisual(d,"style"),p=s.getItemVisual(d,"legendIcon"),f=Jn(h.fill);f&&0===f[3]&&(f[3]=.2,h=F(F({},h),{fill:ai(f,"rgba")}));var g=this._createItem(n,a,o,r,t,e,{},h,p,u,i);g.on("click",WJ(YJ,null,a,i,c)).on("mouseover",WJ(KJ,null,a,i,c)).on("mouseout",WJ(JJ,null,a,i,c)),l.set(a,!0)}}),this);0}}),this),r&&this._createSelector(r,t,i,o,a)},t.prototype._createSelector=function(e,t,n,i,r){var o=this.getSelectorGroup();GJ(e,(function(e){var i=e.type,r=new Du({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect"})}});o.add(r);var a=t.getModel("selectorLabel"),s=t.getModel(["emphasis","selectorLabel"]);sd(r,{normal:a,emphasis:s},{defaultText:e.title}),Oc(r)}))},t.prototype._createItem=function(e,t,n,i,r,o,a,s,l,u,c){var d=e.visualDrawType,h=r.get("itemWidth"),p=r.get("itemHeight"),f=r.isSelected(t),g=i.get("symbolRotate"),v=i.get("symbolKeepAspect"),m=i.get("icon");l=m||l||"roundRect";var y=ZJ(l,i,a,s,d,f,c),x=new UJ,_=i.getModel("textStyle");if(!Q(e.getLegendIcon)||m&&"inherit"!==m){var b="inherit"===m&&e.getData().getVisual("symbol")?"inherit"===g?e.getData().getVisual("symbolRotate"):g:0;x.add($J({itemWidth:h,itemHeight:p,icon:l,iconRotate:b,itemStyle:y.itemStyle,lineStyle:y.lineStyle,symbolKeepAspect:v}))}else x.add(e.getLegendIcon({itemWidth:h,itemHeight:p,icon:l,iconRotate:g,itemStyle:y.itemStyle,lineStyle:y.lineStyle,symbolKeepAspect:v}));var w="left"===o?h+5:-5,S=o,M=r.get("formatter"),C=t;ee(M)&&M?C=M.replace("{name}",null!=t?t:""):Q(M)&&(C=M(t));var I=i.get("inactiveColor");x.add(new Du({style:ud(_,{text:C,x:w,y:p/2,fill:f?_.getTextColor():I,align:S,verticalAlign:"middle"})}));var T=new hu({shape:x.getBoundingRect(),invisible:!0}),k=i.getModel("tooltip");return k.get("show")&&Uy({el:T,componentModel:r,itemName:t,itemTooltipOption:k.option}),x.add(T),x.eachChild((function(e){e.silent=!0})),T.silent=!u,this.getContentGroup().add(x),Oc(x),x.__legendDataIndex=n,x},t.prototype.layoutInner=function(e,t,n,i,r,o){var a=this.getContentGroup(),s=this.getSelectorGroup();Zh(e.get("orient"),a,e.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),r){Zh("horizontal",s,e.get("selectorItemGap",!0));var c=s.getBoundingRect(),d=[-c.x,-c.y],h=e.get("selectorButtonGap",!0),p=e.getOrient().index,f=0===p?"width":"height",g=0===p?"height":"width",v=0===p?"y":"x";"end"===o?d[p]+=l[f]+h:u[p]+=c[f]+h,d[1-p]+=l[g]/2-c[g]/2,s.x=d[0],s.y=d[1],a.x=u[0],a.y=u[1];var m={x:0,y:0};return m[f]=l[f]+h+c[f],m[g]=Math.max(l[g],c[g]),m[v]=Math.min(0,c[v]+d[1-p]),m}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Ev);function ZJ(e,t,n,i,r,o,a){function s(e,t){"auto"===e.lineWidth&&(e.lineWidth=t.lineWidth>0?2:0),GJ(e,(function(n,i){"inherit"===e[i]&&(e[i]=t[i])}))}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=0===e.lastIndexOf("empty",0)?"fill":"stroke",d=l.getShallow("decal");u.decal=d&&"inherit"!==d?ob(d,a):i.decal,"inherit"===u.fill&&(u.fill=i[r]),"inherit"===u.stroke&&(u.stroke=i[c]),"inherit"===u.opacity&&(u.opacity=("fill"===r?i:n).opacity),s(u,i);var h=t.getModel("lineStyle"),p=h.getLineStyle();if(s(p,n),"auto"===u.fill&&(u.fill=i.fill),"auto"===u.stroke&&(u.stroke=i.fill),"auto"===p.stroke&&(p.stroke=i.fill),!o){var f=t.get("inactiveBorderWidth"),g=u[c];u.lineWidth="auto"===f?i.lineWidth>0&&g?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),p.stroke=h.get("inactiveColor"),p.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:p}}function $J(e){var t=e.icon||"roundRect",n=v_(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function YJ(e,t,n,i){JJ(e,t,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=e?e:t}),KJ(e,t,n,i)}function XJ(e){var t,n=e.getZr().storage.getDisplayList(),i=0,r=n.length;while(in[r],f=[-d.x,-d.y];t||(f[i]=l[s]);var g=[0,0],v=[-h.x,-h.y],m=he(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(p){var y=e.get("pageButtonPosition",!0);"end"===y?v[i]+=n[r]-h[r]:g[i]+=h[r]+m}v[1-i]+=d[o]/2-h[o]/2,l.setPosition(f),u.setPosition(g),c.setPosition(v);var x={x:0,y:0};if(x[r]=p?n[r]:d[r],x[o]=Math.max(d[o],h[o]),x[a]=Math.min(0,h[a]+v[1-i]),u.__rectSize=n[r],p){var _={x:0,y:0};_[r]=Math.max(n[r]-h[r]-m,0),_[o]=x[o],u.setClipPath(new hu({shape:_})),u.__rectSize=_[r]}else c.eachChild((function(e){e.attr({invisible:!0,silent:!0})}));var b=this._getPageInfo(e);return null!=b.pageIndex&&Xc(l,{x:b.contentPosition[0],y:b.contentPosition[1]},p?e:null),this._updatePageInfoView(e,b),x},t.prototype._pageGo=function(e,t,n){var i=this._getPageInfo(t)[e];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;W(["pagePrev","pageNext"],(function(i){var r=i+"DataIndex",o=null!=t[r],a=n.childOfName(i);a&&(a.setStyle("fill",o?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),a.cursor=o?"pointer":"default")}));var i=n.childOfName("pageText"),r=e.get("pageFormatter"),o=t.pageIndex,a=null!=o?o+1:0,s=t.pageCount;i&&r&&i.setStyle("text",ee(r)?r.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):r({current:a,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,r=e.getOrient().index,o=lQ[r],a=uQ[r],s=this._findTargetItemIndex(t),l=n.children(),u=l[s],c=l.length,d=c?1:0,h={contentPosition:[n.x,n.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return h;var p=y(u);h.contentPosition[r]=-p.s;for(var f=s+1,g=p,v=p,m=null;f<=c;++f)m=y(l[f]),(!m&&v.e>g.s+i||m&&!x(m,g.s))&&(g=v.i>g.i?v:m,g&&(null==h.pageNextDataIndex&&(h.pageNextDataIndex=g.i),++h.pageCount)),v=m;for(f=s-1,g=p,v=p,m=null;f>=-1;--f)m=y(l[f]),m&&x(v,m.s)||!(g.i=t&&e.s<=t+i}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var t,n,i=this.getContentGroup();return i.eachChild((function(i,r){var o=i.__legendDataIndex;null==n&&null!=o&&(n=r),o===e&&(t=r)})),null!=t?t:n},t.type="legend.scroll",t}(QJ);const dQ=cQ;function hQ(e){e.registerAction("legendScroll","legendscroll",(function(e,t){var n=e.scrollDataIndex;null!=n&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},(function(e){e.setScrollDataIndex(n)}))}))}function pQ(e){jw(iQ),e.registerComponentModel(aQ),e.registerComponentView(dQ),hQ(e)}function fQ(e){jw(iQ),jw(pQ)}var gQ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.type="dataZoom.inside",t.defaultOption=Bd(I$.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(I$);const vQ=gQ;var mQ=Fa();function yQ(e,t,n){mQ(e).coordSysRecordMap.each((function(e){var i=e.dataZoomInfoMap.get(t.uid);i&&(i.getRange=n)}))}function xQ(e,t){for(var n=mQ(e).coordSysRecordMap,i=n.keys(),r=0;ri[n+t]&&(t=a),r=r&&o.get("preventDefaultMouseMove",!0)})),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!r}}}function CQ(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,(function(e,t){var n=mQ(t),i=n.coordSysRecordMap||(n.coordSysRecordMap=we());i.each((function(e){e.dataZoomInfoMap=null})),e.eachComponent({mainType:"dataZoom",subType:"inside"},(function(e){var n=w$(e);W(n.infoList,(function(n){var r=n.model.uid,o=i.get(r)||i.set(r,bQ(t,n.model)),a=o.dataZoomInfoMap||(o.dataZoomInfoMap=we());a.set(e.uid,{dzReferCoordSysInfo:n,model:e,getRange:null})}))})),i.each((function(e){var t,n=e.controller,r=e.dataZoomInfoMap;if(r){var o=r.keys()[0];null!=o&&(t=r.get(o))}if(t){var a=MQ(r);n.enable(a.controlType,a.opt),n.setPointerChecker(e.containsPoint),sx(e,"dispatchAction",t.model.get("throttle",!0),"fixRate")}else _Q(i,e)}))}))}var IQ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return o(t,e),t.prototype.render=function(t,n,i){e.prototype.render.apply(this,arguments),t.noTarget()?this._clear():(this.range=t.getPercentRange(),yQ(i,t,{pan:X(TQ.pan,this),zoom:X(TQ.zoom,this),scrollMove:X(TQ.scrollMove,this)}))},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){xQ(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(D$),TQ={zoom:function(e,t,n,i){var r=this.range,o=r.slice(),a=e.axisModels[0];if(a){var s=AQ[t](null,[i.originX,i.originY],a,n,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],u=Math.max(1/i.scale,0);o[0]=(o[0]-l)*u+l,o[1]=(o[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return rV(0,o,[0,100],0,c.minSpan,c.maxSpan),this.range=o,r[0]!==o[0]||r[1]!==o[1]?o:void 0}},pan:kQ((function(e,t,n,i,r,o){var a=AQ[i]([o.oldX,o.oldY],[o.newX,o.newY],t,r,n);return a.signal*(e[1]-e[0])*a.pixel/a.pixelLength})),scrollMove:kQ((function(e,t,n,i,r,o){var a=AQ[i]([0,0],[o.scrollDelta,o.scrollDelta],t,r,n);return a.signal*(e[1]-e[0])*o.scrollDelta}))};function kQ(e){return function(t,n,i,r){var o=this.range,a=o.slice(),s=t.axisModels[0];if(s){var l=e(a,s,t,n,i,r);return rV(l,a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}}}var AQ={grid:function(e,t,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem.getRect();return e=e||[0,0],"x"===o.dim?(a.pixel=t[0]-e[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=t[1]-e[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(e,t,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),"radiusAxis"===n.mainType?(a.pixel=t[0]-e[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=t[1]-e[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=o.inverse?-1:1),a},singleAxis:function(e,t,n,i,r){var o=n.axis,a=r.model.coordinateSystem.getRect(),s={};return e=e||[0,0],"horizontal"===o.orient?(s.pixel=t[0]-e[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}};const DQ=IQ;function LQ(e){H$(e),e.registerComponentModel(vQ),e.registerComponentView(DQ),CQ(e)}var PQ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=Bd(I$.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(I$);const OQ=PQ;var RQ=hu,EQ=7,NQ=1,FQ=30,BQ=7,VQ="horizontal",zQ="vertical",qQ=5,HQ=["line","bar","candlestick","scatter"],WQ={easing:"cubicOut",duration:100,delay:0},GQ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return o(t,e),t.prototype.init=function(e,t){this.api=t,this._onBrush=X(this._onBrush,this),this._onBrushEnd=X(this._onBrushEnd,this)},t.prototype.render=function(t,n,i,r){if(e.prototype.render.apply(this,arguments),sx(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),!1!==t.get("show")){if(t.noTarget())return this._clear(),void this.group.removeAll();r&&"dataZoom"===r.type&&r.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){lx(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var t=this._displayables.sliderGroup=new Lo;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,t=this.api,n=e.get("brushSelect"),i=n?BQ:0,r=this._findCoordRect(),o={width:t.getWidth(),height:t.getHeight()},a=this._orient===VQ?{right:o.width-r.x-r.width,top:o.height-FQ-EQ-i,width:r.width,height:FQ}:{right:EQ,top:r.y,width:FQ,height:r.height},s=ep(e.option);W(["right","top","width","height"],(function(e){"ph"===s[e]&&(s[e]=a[e])}));var l=Yh(s,o);this._location={x:l.x,y:l.y},this._size=[l.width,l.height],this._orient===zQ&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,t=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),r=i&&i.get("inverse"),o=this._displayables.sliderGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==VQ||r?n===VQ&&r?{scaleY:a?1:-1,scaleX:-1}:n!==zQ||r?{scaleY:a?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:a?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:a?1:-1,scaleX:1});var s=e.getBoundingRect([o]);e.x=t.x-s.x,e.y=t.y-s.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,t=this._size,n=this._displayables.sliderGroup,i=e.get("brushSelect");n.add(new RQ({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var r=new RQ({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:"transparent"},z2:0,onclick:X(this._onClickPanel,this)}),o=this.api.getZr();i?(r.on("mousedown",this._onBrushStart,this),r.cursor="crosshair",o.on("mousemove",this._onBrush),o.on("mouseup",this._onBrushEnd)):(o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)),n.add(r)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],e){var t=this._size,n=this._shadowSize||[],i=e.series,r=i.getRawData(),o=i.getShadowDim?i.getShadowDim():e.otherDim;if(null!=o){var a=this._shadowPolygonPts,s=this._shadowPolylinePts;if(r!==this._shadowData||o!==this._shadowDim||t[0]!==n[0]||t[1]!==n[1]){var l=r.getDataExtent(o),u=.3*(l[1]-l[0]);l=[l[0]-u,l[1]+u];var c,d=[0,t[1]],h=[0,t[0]],p=[[t[0],0],[0,0]],f=[],g=h[1]/(r.count()-1),v=0,m=Math.round(r.count()/t[0]);r.each([o],(function(e,t){if(m>0&&t%m)v+=g;else{var n=null==e||isNaN(e)||""===e,i=n?0:Ho(e,l,d,!0);n&&!c&&t?(p.push([p[p.length-1][0],0]),f.push([f[f.length-1][0],0])):!n&&c&&(p.push([v,0]),f.push([v,0])),p.push([v,i]),f.push([v,i]),v+=g,c=n}})),a=this._shadowPolygonPts=p,s=this._shadowPolylinePts=f}this._shadowData=r,this._shadowDim=o,this._shadowSize=[t[0],t[1]];for(var y=this.dataZoomModel,x=0;x<3;x++){var _=b(1===x);this._displayables.sliderGroup.add(_),this._displayables.dataShadowSegs.push(_)}}}function b(e){var t=y.getModel(e?"selectedDataBackground":"dataBackground"),n=new Lo,i=new Fm({shape:{points:a},segmentIgnoreThreshold:1,style:t.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),r=new zm({shape:{points:s},segmentIgnoreThreshold:1,style:t.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(i),n.add(r),n}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,t=e.get("showDataShadow");if(!1!==t){var n,i=this.ecModel;return e.eachTargetAxis((function(r,o){var a=e.getAxisProxy(r,o).getTargetSeriesModels();W(a,(function(e){if(!n&&!(!0!==t&&V(HQ,e.get("type"))<0)){var a,s=i.getComponent(_$(r),o).axis,l=UQ(r),u=e.coordinateSystem;null!=l&&u.getOtherAxis&&(a=u.getOtherAxis(s).inverse),l=e.getData().mapDimension(l),n={thisAxis:s,series:e,thisDim:r,otherDim:l,otherAxisInverse:a}}}),this)}),this),n}},t.prototype._renderHandle=function(){var e=this.group,t=this._displayables,n=t.handles=[null,null],i=t.handleLabels=[null,null],r=this._displayables.sliderGroup,o=this._size,a=this.dataZoomModel,s=this.api,l=a.get("borderRadius")||0,u=a.get("brushSelect"),c=t.filler=new RQ({silent:u,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});r.add(c),r.add(new RQ({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1],r:l},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:NQ,fill:"rgba(0,0,0,0)"}})),W([0,1],(function(t){var o=a.get("handleIcon");!p_[o]&&o.indexOf("path://")<0&&o.indexOf("image://")<0&&(o="path://"+o);var s=v_(o,-1,0,2,2,null,!0);s.attr({cursor:jQ(this._orient),draggable:!0,drift:X(this._onDragMove,this,t),ondragend:X(this._onDragEnd,this),onmouseover:X(this._showDataInfo,this,!0),onmouseout:X(this._showDataInfo,this,!1),z2:5});var l=s.getBoundingRect(),u=a.get("handleSize");this._handleHeight=Wo(u,this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,s.setStyle(a.getModel("handleStyle").getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState("emphasis").style=a.getModel(["emphasis","handleStyle"]).getItemStyle(),Oc(s);var c=a.get("handleColor");null!=c&&(s.style.fill=c),r.add(n[t]=s);var d=a.getModel("textStyle");e.add(i[t]=new Du({silent:!0,invisible:!0,style:ud(d,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:d.getTextColor(),font:d.getFont()}),z2:10}))}),this);var d=c;if(u){var h=Wo(a.get("moveHandleSize"),o[1]),p=t.moveHandle=new hu({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:h}}),f=.8*h,g=t.moveHandleIcon=v_(a.get("moveHandleIcon"),-f/2,-f/2,f,f,"#fff",!0);g.silent=!0,g.y=o[1]+h/2-.5,p.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var v=Math.min(o[1]/2,Math.max(h,10));d=t.moveZone=new hu({invisible:!0,shape:{y:o[1]-v,height:h+v}}),d.on("mouseover",(function(){s.enterEmphasis(p)})).on("mouseout",(function(){s.leaveEmphasis(p)})),r.add(p),r.add(g),r.add(d)}d.attr({draggable:!0,cursor:jQ(this._orient),drift:X(this._onDragMove,this,"all"),ondragstart:X(this._showDataInfo,this,!0),ondragend:X(this._onDragEnd,this),onmouseover:X(this._showDataInfo,this,!0),onmouseout:X(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[Ho(e[0],[0,100],t,!0),Ho(e[1],[0,100],t,!0)]},t.prototype._updateInterval=function(e,t){var n=this.dataZoomModel,i=this._handleEnds,r=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];rV(t,i,r,n.get("zoomLock")?"all":e,null!=o.minSpan?Ho(o.minSpan,a,r,!0):null,null!=o.maxSpan?Ho(o.maxSpan,a,r,!0):null);var s=this._range,l=this._range=Uo([Ho(i[0],r,a,!0),Ho(i[1],r,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},t.prototype._updateView=function(e){var t=this._displayables,n=this._handleEnds,i=Uo(n.slice()),r=this._size;W([0,1],(function(e){var i=t.handles[e],o=this._handleHeight;i.attr({scaleX:o/2,scaleY:o/2,x:n[e]+(e?-1:1),y:r[1]/2-o/2})}),this),t.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:r[1]});var o={x:i[0],width:i[1]-i[0]};t.moveHandle&&(t.moveHandle.setShape(o),t.moveZone.setShape(o),t.moveZone.getBoundingRect(),t.moveHandleIcon&&t.moveHandleIcon.attr("x",o.x+o.width/2));for(var a=t.dataShadowSegs,s=[0,i[0],i[1],r[0]],l=0;lt[0]||n[1]<0||n[1]>t[1])){var i=this._handleEnds,r=(i[0]+i[1])/2,o=this._updateInterval("all",n[0]-r);this._updateView(),o&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var t=e.offsetX,n=e.offsetY;this._brushStart=new Yr(t,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var t=this._displayables.brushRect;if(this._brushing=!1,t){t.attr("ignore",!0);var n=t.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(n.width)<5)){var r=this._getViewExtent(),o=[0,100];this._range=Uo([Ho(n.x,r,o,!0),Ho(n.x+n.width,r,o,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(bt(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,t){var n=this._displayables,i=this.dataZoomModel,r=n.brushRect;r||(r=n.brushRect=new RQ({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(r)),r.attr("ignore",!1);var o=this._brushStart,a=this._displayables.sliderGroup,s=a.transformCoordToLocal(e,t),l=a.transformCoordToLocal(o.x,o.y),u=this._size;s[0]=Math.max(Math.min(u[0],s[0]),0),r.setShape({x:l[0],y:0,width:s[0]-l[0],height:u[1]})},t.prototype._dispatchZoomAction=function(e){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?WQ:null,start:t[0],end:t[1]})},t.prototype._findCoordRect=function(){var e,t=w$(this.dataZoomModel).infoList;if(!e&&t.length){var n=t[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var i=this.api.getWidth(),r=this.api.getHeight();e={x:.2*i,y:.2*r,width:.6*i,height:.6*r}}return e},t.type="dataZoom.slider",t}(D$);function UQ(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function jQ(e){return"vertical"===e?"ns-resize":"ew-resize"}const ZQ=GQ;function $Q(e){e.registerComponentModel(OQ),e.registerComponentView(ZQ),H$(e)}function YQ(e){jw(LQ),jw($Q)}var XQ={get:function(e,t,n){var i=R((KQ[e]||{})[t]);return n&&J(i)?i[i.length-1]:i}},KQ={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const JQ=XQ;var QQ=pN.mapVisual,e0=pN.eachVisual,t0=J,n0=W,i0=Uo,r0=Ho,o0=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return o(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&WX(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=X(e,this),this.controllerVisuals=HX(this.option.controller,t,e),this.targetVisuals=HX(this.option.target,t,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesIndex,t=[];return null==e||"all"===e?this.ecModel.eachSeries((function(e,n){t.push(n)})):t=ga(e),t},t.prototype.eachTargetSeries=function(e,t){W(this.getTargetSeriesIndices(),(function(n){var i=this.ecModel.getSeriesByIndex(n);i&&e.call(t,i)}),this)},t.prototype.isTargetSeries=function(e){var t=!1;return this.eachTargetSeries((function(n){n===e&&(t=!0)})),t},t.prototype.formatValueText=function(e,t,n){var i,r=this.option,o=r.precision,a=this.dataBound,s=r.formatter;n=n||["<",">"],J(e)&&(e=e.slice(),i=!0);var l=t?e:i?[u(e[0]),u(e[1])]:u(e);return ee(s)?s.replace("{value}",i?l[0]:l).replace("{value2}",i?l[1]:l):Q(s)?i?s(e[0],e[1]):s(e):i?e[0]===a[0]?n[0]+" "+l[1]:e[1]===a[1]?n[1]+" "+l[0]:l[0]+" - "+l[1]:l;function u(e){return e===a[0]?"min":e===a[1]?"max":(+e).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var e=this.option,t=i0([e.min,e.max]);this._dataExtent=t},t.prototype.getDataDimensionIndex=function(e){var t=this.option.dimension;if(null!=t)return e.getDimensionIndex(t);for(var n=e.dimensions,i=n.length-1;i>=0;i--){var r=n[i],o=e.getDimensionInfo(r);if(!o.isCalculationCoord)return o.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,t=this.option,n={inRange:t.inRange,outOfRange:t.outOfRange},i=t.target||(t.target={}),r=t.controller||(t.controller={});E(i,n),E(r,n);var o=this.isCategory();function a(n){t0(t.color)&&!n.inRange&&(n.inRange={color:t.color.slice().reverse()}),n.inRange=n.inRange||{color:e.get("gradientColor")}}function s(e,t,n){var i=e[t],r=e[n];i&&!r&&(r=e[n]={},n0(i,(function(e,t){if(pN.isValidType(t)){var n=JQ.get(t,"inactive",o);null!=n&&(r[t]=n,"color"!==t||r.hasOwnProperty("opacity")||r.hasOwnProperty("colorAlpha")||(r.opacity=[0,0]))}})))}function l(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,i=this.get("inactiveColor"),r=this.getItemSymbol(),a=r||"roundRect";n0(this.stateList,(function(r){var s=this.itemSize,l=e[r];l||(l=e[r]={color:o?i:[i]}),null==l.symbol&&(l.symbol=t&&R(t)||(o?a:[a])),null==l.symbolSize&&(l.symbolSize=n&&R(n)||(o?s[0]:[s[0],s[0]])),l.symbol=QQ(l.symbol,(function(e){return"none"===e?a:e}));var u=l.symbolSize;if(null!=u){var c=-1/0;e0(u,(function(e){e>c&&(c=e)})),l.symbolSize=QQ(u,(function(e){return r0(e,[0,c],[0,s[0]],!0)}))}}),this)}a.call(this,i),a.call(this,r),s.call(this,i,"inRange","outOfRange"),l.call(this,r)},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(op);const a0=o0;var s0=[20,140],l0=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual((function(e){e.mappingMethod="linear",e.dataExtent=this.getExtent()})),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(null==t[0]||isNaN(t[0]))&&(t[0]=s0[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=s0[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):J(t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),W(this.stateList,(function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)}),this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),t=Uo((this.get("range")||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]=n[1]||e<=t[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries((function(n){var i=[],r=n.getData();r.each(this.getDataDimensionIndex(r),(function(t,n){e[0]<=t&&t<=e[1]&&i.push(n)}),this),t.push({seriesId:n.id,dataIndex:i})}),this),t},t.prototype.getVisualMeta=function(e){var t=u0(this,"outOfRange",this.getExtent()),n=u0(this,"inRange",this.option.range.slice()),i=[];function r(t,n){i.push({value:t,color:e(t,n)})}for(var o=0,a=0,s=n.length,l=t.length;ae[1])break;i.push({color:this.getControllerVisual(a,"color",t),offset:o/n})}return i.push({color:this.getControllerVisual(e[1],"color",t),offset:1}),i},t.prototype._createBarPoints=function(e,t){var n=this.visualMapModel.itemSize;return[[n[0]-t[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-t[1],e[1]]]},t.prototype._createBarGroup=function(e){var t=this._orient,n=this.visualMapModel.get("inverse");return new Lo("horizontal"!==t||n?"horizontal"===t&&n?{scaleX:"bottom"===e?-1:1,rotation:-Math.PI/2}:"vertical"!==t||n?{scaleX:"left"===e?1:-1}:{scaleX:"left"===e?1:-1,scaleY:-1}:{scaleX:"bottom"===e?1:-1,rotation:Math.PI/2})},t.prototype._updateHandle=function(e,t){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,r=n.handleThumbs,o=n.handleLabels,a=i.itemSize,s=i.getExtent();m0([0,1],(function(l){var u=r[l];u.setStyle("fill",t.handlesColor[l]),u.y=e[l];var c=v0(e[l],[0,a[1]],s,!0),d=this.getControllerVisual(c,"symbolSize");u.scaleX=u.scaleY=d/a[0],u.x=a[0]-d/2;var h=Oy(n.handleLabelPoints[l],Py(u,this.group));o[l].setStyle({x:h[0],y:h[1],text:i.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this)}},t.prototype._showIndicator=function(e,t,n,i){var r=this.visualMapModel,o=r.getExtent(),a=r.itemSize,s=[0,a[1]],l=this._shapes,u=l.indicator;if(u){u.attr("invisible",!1);var c={convertOpacityToAlpha:!0},d=this.getControllerVisual(e,"color",c),h=this.getControllerVisual(e,"symbolSize"),p=v0(e,o,s,!0),f=a[0]-h/2,g={x:u.x,y:u.y};u.y=p,u.x=f;var v=Oy(l.indicatorLabelPoint,Py(u,this.group)),m=l.indicatorLabel;m.attr("invisible",!1);var y=this._applyTransform("left",l.mainGroup),x=this._orient,_="horizontal"===x;m.setStyle({text:(n||"")+r.formatValueText(t),verticalAlign:_?y:"middle",align:_?"center":y});var b={x:f,y:p,style:{fill:d}},w={style:{x:v[0],y:v[1]}};if(r.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var S={duration:100,easing:"cubicInOut",additive:!0};u.x=g.x,u.y=g.y,u.animateTo(b,S),m.animateTo(w,S)}else u.attr(b),m.attr(w);this._firstShowIndicator=!1;var M=this._shapes.handleLabels;if(M)for(var C=0;Cr[1]&&(u[1]=1/0),t&&(u[0]===-1/0?this._showIndicator(l,u[1],"< ",a):u[1]===1/0?this._showIndicator(l,u[0],"> ",a):this._showIndicator(l,l,"≈ ",a));var c=this._hoverLinkDataIndices,d=[];(t||C0(n))&&(d=this._hoverLinkDataIndices=n.findTargetDataIndices(u));var h=Ea(c,d);this._dispatchHighDown("downplay",g0(h[0],n)),this._dispatchHighDown("highlight",g0(h[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t=e.target,n=this.visualMapModel;if(t&&null!=Lu(t).dataIndex){var i=Lu(t),r=this.ecModel.getSeriesByIndex(i.seriesIndex);if(n.isTargetSeries(r)){var o=r.getData(i.dataType),a=o.getStore().get(n.getDataDimensionIndex(o),i.dataIndex);isNaN(a)||this._showIndicator(a,a)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var t=this._shapes.handleLabels;if(t)for(var n=0;n=0&&(r.dimension=o,i.push(r))}})),e.getData().setVisual("visualMeta",i)}}];function L0(e,t,n,i){for(var r=t.targetVisuals[i],o=pN.prepareVisualTypes(r),a={color:Kx(e.getData(),"color")},s=0,l=o.length;s0:e.splitNumber>0)&&!e.calculable?"piecewise":"continuous"})),e.registerAction(k0,A0),W(D0,(function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)})),e.registerPreprocessor(O0))}function F0(e){e.registerComponentModel(c0),e.registerComponentView(T0),N0(e)}var B0=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return o(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],V0[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var r=this.option.categories;this.resetVisual((function(e,t){"categories"===i?(e.mappingMethod="category",e.categories=R(r)):(e.dataExtent=this.getExtent(),e.mappingMethod="piecewise",e.pieceList=G(this._pieceList,(function(e){return e=R(e),"inRange"!==t&&(e.visual=null),e})))}))},t.prototype.completeVisualOption=function(){var t=this.option,n={},i=pN.listVisualTypes(),r=this.isCategory();function o(e,t,n){return e&&e[t]&&e[t].hasOwnProperty(n)}W(t.pieces,(function(e){W(i,(function(t){e.hasOwnProperty(t)&&(n[t]=1)}))})),W(n,(function(e,n){var i=!1;W(this.stateList,(function(e){i=i||o(t,e,n)||o(t.target,e,n)}),this),!i&&W(this.stateList,(function(e){(t[e]||(t[e]={}))[n]=JQ.get(n,"inRange"===e?"active":"inactive",r)}))}),this),e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var n=this.option,i=this._pieceList,r=(t?n:e).selected||{};if(n.selected=r,W(i,(function(e,t){var n=this.getSelectedMapKey(e);r.hasOwnProperty(n)||(r[n]=!0)}),this),"single"===n.selectedMode){var o=!1;W(i,(function(e,t){var n=this.getSelectedMapKey(e);r[n]&&(o?r[n]=!1:o=!0)}),this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return"categories"===this._mode?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=R(e)},t.prototype.getValueState=function(e){var t=pN.findPieceIndex(e,this._pieceList);return null!=t&&this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[],n=this._pieceList;return this.eachTargetSeries((function(i){var r=[],o=i.getData();o.each(this.getDataDimensionIndex(o),(function(t,i){var o=pN.findPieceIndex(t,n);o===e&&r.push(i)}),this),t.push({seriesId:i.id,dataIndex:r})}),this),t},t.prototype.getRepresentValue=function(e){var t;if(this.isCategory())t=e.value;else if(null!=e.value)t=e.value;else{var n=e.interval||[];t=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return t},t.prototype.getVisualMeta=function(e){if(!this.isCategory()){var t=[],n=["",""],i=this,r=this._pieceList.slice();if(r.length){var o=r[0].interval[0];o!==-1/0&&r.unshift({interval:[-1/0,o]}),o=r[r.length-1].interval[1],o!==1/0&&r.push({interval:[o,1/0]})}else r.push({interval:[-1/0,1/0]});var a=-1/0;return W(r,(function(e){var t=e.interval;t&&(t[0]>a&&s([a,t[0]],"outOfRange"),s(t.slice()),a=t[1])}),this),{stops:t,outerColors:n}}function s(r,o){var a=i.getRepresentValue({interval:r});o||(o=i.getValueState(a));var s=e(a,o);r[0]===-1/0?n[0]=s:r[1]===1/0?n[1]=s:t.push({value:r[0],color:s},{value:r[1],color:s})}},t.type="visualMap.piecewise",t.defaultOption=Bd(a0.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(a0),V0={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),i=this.getExtent(),r=t.splitNumber;r=Math.max(parseInt(r,10),1),t.splitNumber=r;var o=(i[1]-i[0])/r;while(+o.toFixed(n)!==o&&n<5)n++;t.precision=n,o=+o.toFixed(n),t.minOpen&&e.push({interval:[-1/0,i[0]],close:[0,0]});for(var a=0,s=i[0];a","≥"][t[0]]];e.text=e.text||this.formatValueText(null!=e.value?e.value:e.interval,!1,n)}),this)}};function z0(e,t){var n=e.inverse;("vertical"===e.orient?!n:n)&&t.reverse()}const q0=B0;var H0=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get("textGap"),i=t.textStyleModel,r=i.getFont(),o=i.getTextColor(),a=this._getItemAlign(),s=t.itemSize,l=this._getViewData(),u=l.endsText,c=de(t.get("showLabel",!0),!u);u&&this._renderEndsText(e,u[0],s,c,a),W(l.viewPieceList,(function(i){var l=i.piece,u=new Lo;u.onclick=X(this._onItemClick,this,l),this._enableHoverLink(u,i.indexInModelPieceList);var d=t.getRepresentValue(l);if(this._createItemSymbol(u,d,[0,0,s[0],s[1]]),c){var h=this.visualMapModel.getValueState(d);u.add(new Du({style:{x:"right"===a?-n:s[0]+n,y:s[1]/2,text:l.text,verticalAlign:"middle",align:a,font:r,fill:o,opacity:"outOfRange"===h?.5:1}}))}e.add(u)}),this),u&&this._renderEndsText(e,u[1],s,c,a),Zh(t.get("orient"),e,t.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,t){var n=this;e.on("mouseover",(function(){return i("highlight")})).on("mouseout",(function(){return i("downplay")}));var i=function(e){var i=n.visualMapModel;i.option.hoverLink&&n.api.dispatchAction({type:e,batch:g0(i.findTargetDataIndices(t),i)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if("vertical"===t.orient)return f0(e,this.api,e.itemSize);var n=t.align;return n&&"auto"!==n||(n="left"),n},t.prototype._renderEndsText=function(e,t,n,i,r){if(t){var o=new Lo,a=this.visualMapModel.textStyleModel;o.add(new Du({style:ud(a,{x:i?"right"===r?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?r:"center",text:t})})),e.add(o)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=G(e.getPieceList(),(function(e,t){return{piece:e,indexInModelPieceList:t}})),n=e.get("text"),i=e.get("orient"),r=e.get("inverse");return("horizontal"===i?r:!r)?t.reverse():n&&(n=n.slice().reverse()),{viewPieceList:t,endsText:n}},t.prototype._createItemSymbol=function(e,t,n){e.add(v_(this.getControllerVisual(t,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(t,"color")))},t.prototype._onItemClick=function(e){var t=this.visualMapModel,n=t.option,i=n.selectedMode;if(i){var r=R(n.selected),o=t.getSelectedMapKey(e);"single"===i||!0===i?(r[o]=!0,W(r,(function(e,t){r[t]=t===o}))):r[o]=!r[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:r})}},t.type="visualMap.piecewise",t}(h0);const W0=H0;function G0(e){e.registerComponentModel(q0),e.registerComponentView(W0),N0(e)}function U0(e){jw(F0),jw(G0)}var j0={label:{enabled:!0},decal:{show:!1}},Z0=Fa(),$0={};function Y0(e,t){var n=e.getModel("aria");if(n.get("enabled")){var i=R(j0);E(i.label,e.getLocaleModel().get("aria"),!1),E(n.option,i,!1),r(),o()}function r(){var t=n.getModel("decal"),i=t.get("show");if(i){var r=we();e.eachSeries((function(e){if(!e.isColorBySeries()){var t=r.get(e.type);t||(t={},r.set(e.type,t)),Z0(e).scope=t}})),e.eachRawSeries((function(t){if(!e.isSeriesFiltered(t))if(Q(t.enableAriaDecal))t.enableAriaDecal();else{var n=t.getData();if(t.isColorBySeries()){var i=Np(t.ecModel,t.name,$0,e.getSeriesCount()),r=n.getVisual("decal");n.setVisual("decal",u(r,i))}else{var o=t.getRawData(),a={},s=Z0(t).scope;n.each((function(e){var t=n.getRawIndex(e);a[t]=e}));var l=o.count();o.each((function(e){var i=a[e],r=o.getName(e)||e+"",c=Np(t.ecModel,r,s,l),d=n.getItemVisual(i,"decal");n.setItemVisual(i,"decal",u(d,c))}))}}function u(e,t){var n=e?F(F({},t),e):t;return n.dirty=!0,n}}))}}function o(){var i=e.getLocaleModel().get("aria"),r=n.getModel("label");if(r.option=B(r.option,i),r.get("enabled")){var o=t.getZr().dom;if(r.get("description"))o.setAttribute("aria-label",r.get("description"));else{var u,c=e.getSeriesCount(),d=r.get(["data","maxCount"])||10,h=r.get(["series","maxCount"])||10,p=Math.min(c,h);if(!(c<1)){var f=s();if(f){var g=r.get(["general","withTitle"]);u=a(g,{title:f})}else u=r.get(["general","withoutTitle"]);var v=[],m=c>1?r.get(["series","multiple","prefix"]):r.get(["series","single","prefix"]);u+=a(m,{seriesCount:c}),e.eachSeries((function(e,t){if(t1?r.get(["series","multiple",o]):r.get(["series","single",o]),n=a(n,{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:l(e.subType)});var s=e.getData();if(s.count()>d){var u=r.get(["data","partialData"]);n+=a(u,{displayCnt:d})}else n+=r.get(["data","allData"]);for(var h=r.get(["data","separator","middle"]),f=r.get(["data","separator","end"]),g=[],m=0;m":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},Q0=function(){function e(e){var t=this._condVal=ee(e)?new RegExp(e):ue(e)?e:null;if(null==t){var n="";0,vg(n)}}return e.prototype.evaluate=function(e){var t=typeof e;return ee(t)?this._condVal.test(e):!!ne(t)&&this._condVal.test(e+"")},e}(),e1=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),t1=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t2&&l.push(t),t=[e,n]}function f(e,n,i,r){x1(e,i)&&x1(n,r)||t.push(e,n,i,r,i,r)}function g(e,n,i,r,o,a){var s=Math.abs(n-e),l=4*Math.tan(s/4)/3,u=nM:T2&&l.push(t),l}function b1(e,t,n,i,r,o,a,s,l,u){if(x1(e,n)&&x1(t,i)&&x1(r,a)&&x1(o,s))l.push(a,s);else{var c=2/u,d=c*c,h=a-e,p=s-t,f=Math.sqrt(h*h+p*p);h/=f,p/=f;var g=n-e,v=i-t,m=r-a,y=o-s,x=g*g+v*v,_=m*m+y*y;if(x=0&&M=0)l.push(a,s);else{var C=[],I=[];bn(e,n,r,a,.5,C),bn(t,i,o,s,.5,I),b1(C[0],I[0],C[1],I[1],C[2],I[2],C[3],I[3],l,u),b1(C[4],I[4],C[5],I[5],C[6],I[6],C[7],I[7],l,u)}}}}function w1(e,t){var n=_1(e),i=[];t=t||1;for(var r=0;r0)for(u=0;uMath.abs(u),d=S1([l,u],c?0:1,t),h=(c?s:u)/d.length,p=0;pr,a=S1([i,r],o?0:1,t),s=o?"width":"height",l=o?"height":"width",u=o?"x":"y",c=o?"y":"x",d=e[s]/a.length,h=0;h1?null:new Yr(g*l+e,g*u+t)}function k1(e,t,n){var i=new Yr;Yr.sub(i,n,t),i.normalize();var r=new Yr;Yr.sub(r,e,t);var o=r.dot(i);return o}function A1(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function D1(e,t,n){for(var i=e.length,r=[],o=0;oa?(u.x=c.x=s+o/2,u.y=l,c.y=l+a):(u.y=c.y=l+a/2,u.x=s,c.x=s+o),D1(t,u,c)}function P1(e,t,n,i){if(1===n)i.push(t);else{var r=Math.floor(n/2),o=e(t);P1(e,o[0],r,i),P1(e,o[1],n-r,i)}return i}function O1(e,t){for(var n=[],i=0;i0)for(var b=i/n,w=-i/2;w<=i/2;w+=b){var S=Math.sin(w),M=Math.cos(w),C=0;for(x=0;x0;u/=2){var c=0,d=0;(e&u)>0&&(c=1),(t&u)>0&&(d=1),l+=u*u*(3*c^d),0===d&&(1===c&&(e=u-1-e,t=u-1-t),s=e,e=t,t=s)}return l}function J1(e){var t=1/0,n=1/0,i=-1/0,r=-1/0,o=G(e,(function(e){var o=e.getBoundingRect(),a=e.getComputedTransform(),s=o.x+o.width/2+(a?a[4]:0),l=o.y+o.height/2+(a?a[5]:0);return t=Math.min(s,t),n=Math.min(l,n),i=Math.max(s,i),r=Math.max(l,r),[s,l]})),a=G(o,(function(o,a){return{cp:o,z:K1(o[0],o[1],t,n,i,r),path:e[a]}}));return a.sort((function(e,t){return e.z-t.z})).map((function(e){return e.path}))}function Q1(e){return N1(e.path,e.count)}function e2(){return{fromIndividuals:[],toIndividuals:[],count:0}}function t2(e,t,n){var i=[];function r(e){for(var t=0;t=0;r--)if(!n[r].many.length){var l=n[s].many;if(l.length<=1){if(!s)return n;s=0}o=l.length;var u=Math.ceil(o/2);n[r].many=l.slice(u,o),n[s].many=l.slice(0,u),s++}return n}var o2={clone:function(e){for(var t=[],n=1-Math.pow(1-e.path.style.opacity,1/e.count),i=0;i0){var s,l,u=i.getModel("universalTransition").get("delay"),c=Object.assign({setToFinal:!0},a);i2(e)&&(s=e,l=t),i2(t)&&(s=t,l=e);for(var d=s?s===e:e.length>t.length,h=s?r2(l,s):r2(d?t:e,[d?e:t]),p=0,f=0;fl2))for(var i=n.getIndices(),r=c2(n),o=0;o0&&r.group.traverse((function(e){e instanceof Yl&&!e.animators.length&&e.animateFrom({style:{opacity:0}},o)}))}))}function y2(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function x2(e){return J(e)?e.sort().join(","):e}function _2(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function b2(e,t){var n=we(),i=we(),r=we();return W(e.oldSeries,(function(t,n){var o=e.oldData[n],a=y2(t),s=x2(a);i.set(s,o),J(a)&&W(a,(function(e){r.set(e,{data:o,key:s})}))})),W(t.updatedSeries,(function(e){if(e.isUniversalTransitionEnabled()&&e.isAnimationEnabled()){var t=e.getData(),o=y2(e),a=x2(o),s=i.get(a);if(s)n.set(a,{oldSeries:[{divide:_2(s),data:s}],newSeries:[{divide:_2(t),data:t}]});else if(J(o)){0;var l=[];W(o,(function(e){var t=i.get(e);t&&l.push({divide:_2(t),data:t})})),l.length&&n.set(a,{oldSeries:l,newSeries:[{data:t,divide:_2(t)}]})}else{var u=r.get(o);if(u){var c=n.get(u.key);c||(c={oldSeries:[{data:u.data,divide:_2(u.data)}],newSeries:[]},n.set(u.key,c)),c.newSeries.push({data:t,divide:_2(t)})}}}})),n}function w2(e,t){for(var n=0;n=0&&r.push({data:t.oldData[n],divide:_2(t.oldData[n]),dim:e.dimension})})),W(ga(e.to),(function(e){var t=w2(n.updatedSeries,e);if(t>=0){var i=n.updatedSeries[t].getData();o.push({data:i,divide:_2(i),dim:e.dimension})}})),r.length>0&&o.length>0&&m2(r,o,i)}function M2(e){e.registerUpdateLifecycle("series:beforeupdate",(function(e,t,n){W(ga(n.seriesTransition),(function(e){W(ga(e.to),(function(e){for(var t=n.updatedSeries,i=0;i{"use strict";t.Z=(e,t)=>{const n=e.__vccOpts||e;for(const[i,r]of t)n[i]=r;return n}},3340:(e,t,n)=>{"use strict";function i(e){return e}n.d(t,{BC:()=>i})},8339:(e,t,n)=>{"use strict";n.d(t,{p7:()=>nt,r5:()=>z});var i=n(3673),r=n(1959); +/*! + * vue-router v4.1.3 + * (c) 2022 Eduardo San Martin Morote + * @license MIT + */ +const o="undefined"!==typeof window;function a(e){return e.__esModule||"Module"===e[Symbol.toStringTag]}const s=Object.assign;function l(e,t){const n={};for(const i in t){const r=t[i];n[i]=c(r)?r.map(e):e(r)}return n}const u=()=>{},c=Array.isArray;const d=/\/$/,h=e=>e.replace(d,"");function p(e,t,n="/"){let i,r={},o="",a="";const s=t.indexOf("#");let l=t.indexOf("?");return s=0&&(l=-1),l>-1&&(i=t.slice(0,l),o=t.slice(l+1,s>-1?s:t.length),r=e(o)),s>-1&&(i=i||t.slice(0,s),a=t.slice(s,t.length)),i=b(null!=i?i:t,n),{fullPath:i+(o&&"?")+o+a,path:i,query:r,hash:a}}function f(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function g(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function v(e,t,n){const i=t.matched.length-1,r=n.matched.length-1;return i>-1&&i===r&&m(t.matched[i],n.matched[r])&&y(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function m(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function y(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!x(e[n],t[n]))return!1;return!0}function x(e,t){return c(e)?_(e,t):c(t)?_(t,e):e===t}function _(e,t){return c(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}function b(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),i=e.split("/");let r,o,a=n.length-1;for(r=0;r1&&a--}return n.slice(0,a).join("/")+"/"+i.slice(r-(r===i.length?1:0)).join("/")}var w,S;(function(e){e["pop"]="pop",e["push"]="push"})(w||(w={})),function(e){e["back"]="back",e["forward"]="forward",e["unknown"]=""}(S||(S={}));function M(e){if(!e)if(o){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),h(e)}const C=/^[^#]+#/;function I(e,t){return e.replace(C,"#")+t}function T(e,t){const n=document.documentElement.getBoundingClientRect(),i=e.getBoundingClientRect();return{behavior:t.behavior,left:i.left-n.left-(t.left||0),top:i.top-n.top-(t.top||0)}}const k=()=>({left:window.pageXOffset,top:window.pageYOffset});function A(e){let t;if("el"in e){const n=e.el,i="string"===typeof n&&n.startsWith("#");0;const r="string"===typeof n?i?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=T(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.pageXOffset,null!=t.top?t.top:window.pageYOffset)}function D(e,t){const n=history.state?history.state.position-t:-1;return n+e}const L=new Map;function P(e,t){L.set(e,t)}function O(e){const t=L.get(e);return L.delete(e),t}let R=()=>location.protocol+"//"+location.host;function E(e,t){const{pathname:n,search:i,hash:r}=t,o=e.indexOf("#");if(o>-1){let t=r.includes(e.slice(o))?e.slice(o).length:1,n=r.slice(t);return"/"!==n[0]&&(n="/"+n),g(n,"")}const a=g(n,e);return a+i+r}function N(e,t,n,i){let r=[],o=[],a=null;const l=({state:o})=>{const s=E(e,location),l=n.value,u=t.value;let c=0;if(o){if(n.value=s,t.value=o,a&&a===l)return void(a=null);c=u?o.position-u.position:0}else i(s);r.forEach((e=>{e(n.value,l,{delta:c,type:w.pop,direction:c?c>0?S.forward:S.back:S.unknown})}))};function u(){a=n.value}function c(e){r.push(e);const t=()=>{const t=r.indexOf(e);t>-1&&r.splice(t,1)};return o.push(t),t}function d(){const{history:e}=window;e.state&&e.replaceState(s({},e.state,{scroll:k()}),"")}function h(){for(const e of o)e();o=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",d),{pauseListeners:u,listen:c,destroy:h}}function F(e,t,n,i=!1,r=!1){return{back:e,current:t,forward:n,replaced:i,position:window.history.length,scroll:r?k():null}}function B(e){const{history:t,location:n}=window,i={value:E(e,n)},r={value:t.state};function o(i,o,a){const s=e.indexOf("#"),l=s>-1?(n.host&&document.querySelector("base")?e:e.slice(s))+i:R()+e+i;try{t[a?"replaceState":"pushState"](o,"",l),r.value=o}catch(u){console.error(u),n[a?"replace":"assign"](l)}}function a(e,n){const a=s({},t.state,F(r.value.back,e,r.value.forward,!0),n,{position:r.value.position});o(e,a,!0),i.value=e}function l(e,n){const a=s({},r.value,t.state,{forward:e,scroll:k()});o(a.current,a,!0);const l=s({},F(i.value,e,null),{position:a.position+1},n);o(e,l,!1),i.value=e}return r.value||o(i.value,{back:null,current:i.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:i,state:r,push:l,replace:a}}function V(e){e=M(e);const t=B(e),n=N(e,t.state,t.location,t.replace);function i(e,t=!0){t||n.pauseListeners(),history.go(e)}const r=s({location:"",base:e,go:i,createHref:I.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function z(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),V(e)}function q(e){return"string"===typeof e||e&&"object"===typeof e}function H(e){return"string"===typeof e||"symbol"===typeof e}const W={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},G=Symbol("");var U;(function(e){e[e["aborted"]=4]="aborted",e[e["cancelled"]=8]="cancelled",e[e["duplicated"]=16]="duplicated"})(U||(U={}));function j(e,t){return s(new Error,{type:e,[G]:!0},t)}function Z(e,t){return e instanceof Error&&G in e&&(null==t||!!(e.type&t))}const $="[^/]+?",Y={sensitive:!1,strict:!1,start:!0,end:!0},X=/[.+*?^${}()[\]/\\]/g;function K(e,t){const n=s({},Y,t),i=[];let r=n.start?"^":"";const o=[];for(const s of e){const e=s.length?[]:[90];n.strict&&!s.length&&(r+="/");for(let t=0;tt.length?1===t.length&&80===t[0]?1:-1:0}function Q(e,t){let n=0;const i=e.score,r=t.score;while(n0&&t[t.length-1]<0}const te={type:0,value:""},ne=/[a-zA-Z0-9_]/;function ie(e){if(!e)return[[]];if("/"===e)return[[te]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(e){throw new Error(`ERR (${n})/"${u}": ${e}`)}let n=0,i=n;const r=[];let o;function a(){o&&r.push(o),o=[]}let s,l=0,u="",c="";function d(){u&&(0===n?o.push({type:0,value:u}):1===n||2===n||3===n?(o.length>1&&("*"===s||"+"===s)&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:u,regexp:c,repeatable:"*"===s||"+"===s,optional:"*"===s||"?"===s})):t("Invalid state to consume buffer"),u="")}function h(){u+=s}while(l{a(f)}:u}function a(e){if(H(e)){const t=i.get(e);t&&(i.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(a),t.alias.forEach(a))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&i.delete(e.record.name),e.children.forEach(a),e.alias.forEach(a))}}function l(){return n}function c(e){let t=0;while(t=0&&(e.record.path!==n[t].record.path||!he(e,n[t])))t++;n.splice(t,0,e),e.record.name&&!ue(e)&&i.set(e.record.name,e)}function d(e,t){let r,o,a,l={};if("name"in e&&e.name){if(r=i.get(e.name),!r)throw j(1,{location:e});a=r.record.name,l=s(ae(t.params,r.keys.filter((e=>!e.optional)).map((e=>e.name))),e.params),o=r.stringify(l)}else if("path"in e)o=e.path,r=n.find((e=>e.re.test(o))),r&&(l=r.parse(o),a=r.record.name);else{if(r=t.name?i.get(t.name):n.find((e=>e.re.test(t.path))),!r)throw j(1,{location:e,currentLocation:t});a=r.record.name,l=s({},t.params,e.params),o=r.stringify(l)}const u=[];let c=r;while(c)u.unshift(c.record),c=c.parent;return{name:a,path:o,params:l,matched:u,meta:ce(u)}}return t=de({strict:!1,end:!0,sensitive:!1},t),e.forEach((e=>o(e))),{addRoute:o,resolve:d,removeRoute:a,getRoutes:l,getRecordMatcher:r}}function ae(e,t){const n={};for(const i of t)i in e&&(n[i]=e[i]);return n}function se(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:le(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function le(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const i in e.components)t[i]="boolean"===typeof n?n:n[i];return t}function ue(e){while(e){if(e.record.aliasOf)return!0;e=e.parent}return!1}function ce(e){return e.reduce(((e,t)=>s(e,t.meta)),{})}function de(e,t){const n={};for(const i in e)n[i]=i in t?t[i]:e[i];return n}function he(e,t){return t.children.some((t=>t===e||he(e,t)))}const pe=/#/g,fe=/&/g,ge=/\//g,ve=/=/g,me=/\?/g,ye=/\+/g,xe=/%5B/g,_e=/%5D/g,be=/%5E/g,we=/%60/g,Se=/%7B/g,Me=/%7C/g,Ce=/%7D/g,Ie=/%20/g;function Te(e){return encodeURI(""+e).replace(Me,"|").replace(xe,"[").replace(_e,"]")}function ke(e){return Te(e).replace(Se,"{").replace(Ce,"}").replace(be,"^")}function Ae(e){return Te(e).replace(ye,"%2B").replace(Ie,"+").replace(pe,"%23").replace(fe,"%26").replace(we,"`").replace(Se,"{").replace(Ce,"}").replace(be,"^")}function De(e){return Ae(e).replace(ve,"%3D")}function Le(e){return Te(e).replace(pe,"%23").replace(me,"%3F")}function Pe(e){return null==e?"":Le(e).replace(ge,"%2F")}function Oe(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}function Re(e){const t={};if(""===e||"?"===e)return t;const n="?"===e[0],i=(n?e.slice(1):e).split("&");for(let r=0;re&&Ae(e))):[i&&Ae(i)];r.forEach((e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))}))}return t}function Ne(e){const t={};for(const n in e){const i=e[n];void 0!==i&&(t[n]=c(i)?i.map((e=>null==e?null:""+e)):null==i?i:""+i)}return t}const Fe=Symbol(""),Be=Symbol(""),Ve=Symbol(""),ze=Symbol(""),qe=Symbol("");function He(){let e=[];function t(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function We(e,t,n,i,r){const o=i&&(i.enterCallbacks[r]=i.enterCallbacks[r]||[]);return()=>new Promise(((a,s)=>{const l=e=>{!1===e?s(j(4,{from:n,to:t})):e instanceof Error?s(e):q(e)?s(j(2,{from:t,to:e})):(o&&i.enterCallbacks[r]===o&&"function"===typeof e&&o.push(e),a())},u=e.call(i&&i.instances[r],t,n,l);let c=Promise.resolve(u);e.length<3&&(c=c.then(l)),c.catch((e=>s(e)))}))}function Ge(e,t,n,i){const r=[];for(const o of e){0;for(const e in o.components){let s=o.components[e];if("beforeRouteEnter"===t||o.instances[e])if(Ue(s)){const a=s.__vccOpts||s,l=a[t];l&&r.push(We(l,n,i,o,e))}else{let l=s();0,r.push((()=>l.then((r=>{if(!r)return Promise.reject(new Error(`Couldn't resolve component "${e}" at "${o.path}"`));const s=a(r)?r.default:r;o.components[e]=s;const l=s.__vccOpts||s,u=l[t];return u&&We(u,n,i,o,e)()}))))}}}return r}function Ue(e){return"object"===typeof e||"displayName"in e||"props"in e||"__vccOpts"in e}function je(e){const t=(0,i.f3)(Ve),n=(0,i.f3)(ze),o=(0,i.Fl)((()=>t.resolve((0,r.SU)(e.to)))),a=(0,i.Fl)((()=>{const{matched:e}=o.value,{length:t}=e,i=e[t-1],r=n.matched;if(!i||!r.length)return-1;const a=r.findIndex(m.bind(null,i));if(a>-1)return a;const s=Ke(e[t-2]);return t>1&&Ke(i)===s&&r[r.length-1].path!==s?r.findIndex(m.bind(null,e[t-2])):a})),s=(0,i.Fl)((()=>a.value>-1&&Xe(n.params,o.value.params))),l=(0,i.Fl)((()=>a.value>-1&&a.value===n.matched.length-1&&y(n.params,o.value.params)));function c(n={}){return Ye(n)?t[(0,r.SU)(e.replace)?"replace":"push"]((0,r.SU)(e.to)).catch(u):Promise.resolve()}return{route:o,href:(0,i.Fl)((()=>o.value.href)),isActive:s,isExactActive:l,navigate:c}}const Ze=(0,i.aZ)({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:je,setup(e,{slots:t}){const n=(0,r.qj)(je(e)),{options:o}=(0,i.f3)(Ve),a=(0,i.Fl)((()=>({[Je(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[Je(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive})));return()=>{const r=t.default&&t.default(n);return e.custom?r:(0,i.h)("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:a.value},r)}}}),$e=Ze;function Ye(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&(void 0===e.button||0===e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Xe(e,t){for(const n in t){const i=t[n],r=e[n];if("string"===typeof i){if(i!==r)return!1}else if(!c(r)||r.length!==i.length||i.some(((e,t)=>e!==r[t])))return!1}return!0}function Ke(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Je=(e,t,n)=>null!=e?e:null!=t?t:n,Qe=(0,i.aZ)({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const o=(0,i.f3)(qe),a=(0,i.Fl)((()=>e.route||o.value)),l=(0,i.f3)(Be,0),u=(0,i.Fl)((()=>{let e=(0,r.SU)(l);const{matched:t}=a.value;let n;while((n=t[e])&&!n.components)e++;return e})),c=(0,i.Fl)((()=>a.value.matched[u.value]));(0,i.JJ)(Be,(0,i.Fl)((()=>u.value+1))),(0,i.JJ)(Fe,c),(0,i.JJ)(qe,a);const d=(0,r.iH)();return(0,i.YP)((()=>[d.value,c.value,e.name]),(([e,t,n],[i,r,o])=>{t&&(t.instances[n]=e,r&&r!==t&&e&&e===i&&(t.leaveGuards.size||(t.leaveGuards=r.leaveGuards),t.updateGuards.size||(t.updateGuards=r.updateGuards))),!e||!t||r&&m(t,r)&&i||(t.enterCallbacks[n]||[]).forEach((t=>t(e)))}),{flush:"post"}),()=>{const r=a.value,o=e.name,l=c.value,u=l&&l.components[o];if(!u)return et(n.default,{Component:u,route:r});const h=l.props[o],p=h?!0===h?r.params:"function"===typeof h?h(r):h:null,f=e=>{e.component.isUnmounted&&(l.instances[o]=null)},g=(0,i.h)(u,s({},p,t,{onVnodeUnmounted:f,ref:d}));return et(n.default,{Component:g,route:r})||g}}});function et(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const tt=Qe;function nt(e){const t=oe(e.routes,e),n=e.parseQuery||Re,a=e.stringifyQuery||Ee,d=e.history;const h=He(),g=He(),m=He(),y=(0,r.XI)(W);let x=W;o&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const _=l.bind(null,(e=>""+e)),b=l.bind(null,Pe),S=l.bind(null,Oe);function M(e,n){let i,r;return H(e)?(i=t.getRecordMatcher(e),r=n):r=e,t.addRoute(r,i)}function C(e){const n=t.getRecordMatcher(e);n&&t.removeRoute(n)}function I(){return t.getRoutes().map((e=>e.record))}function T(e){return!!t.getRecordMatcher(e)}function L(e,i){if(i=s({},i||y.value),"string"===typeof e){const r=p(n,e,i.path),o=t.resolve({path:r.path},i),a=d.createHref(r.fullPath);return s(r,o,{params:S(o.params),hash:Oe(r.hash),redirectedFrom:void 0,href:a})}let r;if("path"in e)r=s({},e,{path:p(n,e.path,i.path).path});else{const t=s({},e.params);for(const e in t)null==t[e]&&delete t[e];r=s({},e,{params:b(e.params)}),i.params=b(i.params)}const o=t.resolve(r,i),l=e.hash||"";o.params=_(S(o.params));const u=f(a,s({},e,{hash:ke(l),path:o.path})),c=d.createHref(u);return s({fullPath:u,hash:l,query:a===Ee?Ne(e.query):e.query||{}},o,{redirectedFrom:void 0,href:c})}function R(e){return"string"===typeof e?p(n,e,y.value.path):s({},e)}function E(e,t){if(x!==e)return j(8,{from:t,to:e})}function N(e){return V(e)}function F(e){return N(s(R(e),{replace:!0}))}function B(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:n}=t;let i="function"===typeof n?n(e):n;return"string"===typeof i&&(i=i.includes("?")||i.includes("#")?i=R(i):{path:i},i.params={}),s({query:e.query,hash:e.hash,params:"path"in i?{}:e.params},i)}}function V(e,t){const n=x=L(e),i=y.value,r=e.state,o=e.force,l=!0===e.replace,u=B(n);if(u)return V(s(R(u),{state:r,force:o,replace:l}),t||n);const c=n;let d;return c.redirectedFrom=t,!o&&v(a,i,n)&&(d=j(16,{to:c,from:i}),ne(i,i,!0,!1)),(d?Promise.resolve(d):q(c,i)).catch((e=>Z(e)?Z(e,2)?e:te(e):Q(e,c,i))).then((e=>{if(e){if(Z(e,2))return V(s({replace:l},R(e.to),{state:r,force:o}),t||c)}else e=U(c,i,!0,l,r);return G(c,i,e),e}))}function z(e,t){const n=E(e,t);return n?Promise.reject(n):Promise.resolve()}function q(e,t){let n;const[i,r,o]=rt(e,t);n=Ge(i.reverse(),"beforeRouteLeave",e,t);for(const s of i)s.leaveGuards.forEach((i=>{n.push(We(i,e,t))}));const a=z.bind(null,e,t);return n.push(a),it(n).then((()=>{n=[];for(const i of h.list())n.push(We(i,e,t));return n.push(a),it(n)})).then((()=>{n=Ge(r,"beforeRouteUpdate",e,t);for(const i of r)i.updateGuards.forEach((i=>{n.push(We(i,e,t))}));return n.push(a),it(n)})).then((()=>{n=[];for(const i of e.matched)if(i.beforeEnter&&!t.matched.includes(i))if(c(i.beforeEnter))for(const r of i.beforeEnter)n.push(We(r,e,t));else n.push(We(i.beforeEnter,e,t));return n.push(a),it(n)})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),n=Ge(o,"beforeRouteEnter",e,t),n.push(a),it(n)))).then((()=>{n=[];for(const i of g.list())n.push(We(i,e,t));return n.push(a),it(n)})).catch((e=>Z(e,8)?e:Promise.reject(e)))}function G(e,t,n){for(const i of m.list())i(e,t,n)}function U(e,t,n,i,r){const a=E(e,t);if(a)return a;const l=t===W,u=o?history.state:{};n&&(i||l?d.replace(e.fullPath,s({scroll:l&&u&&u.scroll},r)):d.push(e.fullPath,r)),y.value=e,ne(e,t,n,l),te()}let $;function Y(){$||($=d.listen(((e,t,n)=>{if(!se.listening)return;const i=L(e),r=B(i);if(r)return void V(s(r,{replace:!0}),i).catch(u);x=i;const a=y.value;o&&P(D(a.fullPath,n.delta),k()),q(i,a).catch((e=>Z(e,12)?e:Z(e,2)?(V(e.to,i).then((e=>{Z(e,20)&&!n.delta&&n.type===w.pop&&d.go(-1,!1)})).catch(u),Promise.reject()):(n.delta&&d.go(-n.delta,!1),Q(e,i,a)))).then((e=>{e=e||U(i,a,!1),e&&(n.delta&&!Z(e,8)?d.go(-n.delta,!1):n.type===w.pop&&Z(e,20)&&d.go(-1,!1)),G(i,a,e)})).catch(u)})))}let X,K=He(),J=He();function Q(e,t,n){te(e);const i=J.list();return i.length?i.forEach((i=>i(e,t,n))):console.error(e),Promise.reject(e)}function ee(){return X&&y.value!==W?Promise.resolve():new Promise(((e,t)=>{K.add([e,t])}))}function te(e){return X||(X=!e,Y(),K.list().forEach((([t,n])=>e?n(e):t())),K.reset()),e}function ne(t,n,r,a){const{scrollBehavior:s}=e;if(!o||!s)return Promise.resolve();const l=!r&&O(D(t.fullPath,0))||(a||!r)&&history.state&&history.state.scroll||null;return(0,i.Y3)().then((()=>s(t,n,l))).then((e=>e&&A(e))).catch((e=>Q(e,t,n)))}const ie=e=>d.go(e);let re;const ae=new Set,se={currentRoute:y,listening:!0,addRoute:M,removeRoute:C,hasRoute:T,getRoutes:I,resolve:L,options:e,push:N,replace:F,go:ie,back:()=>ie(-1),forward:()=>ie(1),beforeEach:h.add,beforeResolve:g.add,afterEach:m.add,onError:J.add,isReady:ee,install(e){const t=this;e.component("RouterLink",$e),e.component("RouterView",tt),e.config.globalProperties.$router=t,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>(0,r.SU)(y)}),o&&!re&&y.value===W&&(re=!0,N(d.location).catch((e=>{0})));const n={};for(const r in W)n[r]=(0,i.Fl)((()=>y.value[r]));e.provide(Ve,t),e.provide(ze,(0,r.qj)(n)),e.provide(qe,y);const a=e.unmount;ae.add(e),e.unmount=function(){ae.delete(e),ae.size<1&&(x=W,$&&$(),$=null,y.value=W,re=!1,X=!1),a()}}};return se}function it(e){return e.reduce(((e,t)=>e.then((()=>t()))),Promise.resolve())}function rt(e,t){const n=[],i=[],r=[],o=Math.max(t.matched.length,e.matched.length);for(let a=0;am(e,o)))?i.push(o):n.push(o));const s=e.matched[a];s&&(t.matched.find((e=>m(e,s)))||r.push(s))}return[n,i,r]}}}]); \ No newline at end of file diff --git a/Server/templates/js/vendor.ee689f15.js.gz b/Server/templates/js/vendor.ee689f15.js.gz new file mode 100644 index 0000000..73e3106 Binary files /dev/null and b/Server/templates/js/vendor.ee689f15.js.gz differ diff --git a/Web/syseye/package-lock.json b/Web/syseye/package-lock.json index a8ba4e8..1df1797 100644 --- a/Web/syseye/package-lock.json +++ b/Web/syseye/package-lock.json @@ -5349,6 +5349,11 @@ } } }, + "js-base64": { + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/js-base64/-/js-base64-3.7.2.tgz", + "integrity": "sha512-NnRs6dsyqUXejqk/yv2aiXlAvOs56sLkX6nUdeaNezI5LFFLlsZjOThmwnrcwh5ZZRwZlCMnVAY3CvhIhoVEKQ==" + }, "js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", diff --git a/Web/syseye/package.json b/Web/syseye/package.json index 9026e48..3036ff5 100644 --- a/Web/syseye/package.json +++ b/Web/syseye/package.json @@ -14,6 +14,7 @@ "axios": "^0.27.2", "core-js": "^3.6.5", "echarts": "^5.3.3", + "js-base64": "^3.7.2", "quasar": "^2.0.0", "vue": "^3.0.0", "vue-router": "^4.0.0" diff --git a/Web/syseye/src/assets/b64.js b/Web/syseye/src/assets/b64.js new file mode 100644 index 0000000..8a8aa58 --- /dev/null +++ b/Web/syseye/src/assets/b64.js @@ -0,0 +1,117 @@ +/* eslint-disable camelcase */ +/* eslint-disable eqeqeq */ +/* eslint-disable no-useless-escape */ +// 1.加密解密方法使用: + +// 1.加密 +// var str = '124中文内容'; +// var base = new Base64(); +// var result = base.encode(str); +// //document.write(result); + +// //2.解密 +// var result2 = base.decode(result); +// document.write(result2); +// //2.加密、解密算法封装: + +function Base64 () { + // private property + const _keyStr = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=' + + // public method for encoding + this.encode = function (input) { + let output = '' + let chr1, chr2, chr3, enc1, enc2, enc3, enc4 + let i = 0 + input = _utf8_encode(input) + while (i < input.length) { + chr1 = input.charCodeAt(i++) + chr2 = input.charCodeAt(i++) + chr3 = input.charCodeAt(i++) + enc1 = chr1 >> 2 + enc2 = ((chr1 & 3) << 4) | (chr2 >> 4) + enc3 = ((chr2 & 15) << 2) | (chr3 >> 6) + enc4 = chr3 & 63 + if (isNaN(chr2)) { + enc3 = enc4 = 64 + } else if (isNaN(chr3)) { + enc4 = 64 + } + output = output + + _keyStr.charAt(enc1) + _keyStr.charAt(enc2) + + _keyStr.charAt(enc3) + _keyStr.charAt(enc4) + } + return output + } + + // public method for decoding + this.decode = function (input) { + let output = '' + let chr1, chr2, chr3 + let enc1, enc2, enc3, enc4 + let i = 0 + input = input.replace(/[^A-Za-z0-9\+\/\=]/g, '') + while (i < input.length) { + enc1 = _keyStr.indexOf(input.charAt(i++)) + enc2 = _keyStr.indexOf(input.charAt(i++)) + enc3 = _keyStr.indexOf(input.charAt(i++)) + enc4 = _keyStr.indexOf(input.charAt(i++)) + chr1 = (enc1 << 2) | (enc2 >> 4) + chr2 = ((enc2 & 15) << 4) | (enc3 >> 2) + chr3 = ((enc3 & 3) << 6) | enc4 + output = output + String.fromCharCode(chr1) + if (enc3 != 64) { + output = output + String.fromCharCode(chr2) + } + if (enc4 != 64) { + output = output + String.fromCharCode(chr3) + } + } + output = _utf8_decode(output) + return output + } + + // private method for UTF-8 encoding + var _utf8_encode = function (string) { + string = string.replace(/\r\n/g, '\n') + let utftext = '' + for (let n = 0; n < string.length; n++) { + const c = string.charCodeAt(n) + if (c < 128) { + utftext += String.fromCharCode(c) + } else if ((c > 127) && (c < 2048)) { + utftext += String.fromCharCode((c >> 6) | 192) + utftext += String.fromCharCode((c & 63) | 128) + } else { + utftext += String.fromCharCode((c >> 12) | 224) + utftext += String.fromCharCode(((c >> 6) & 63) | 128) + utftext += String.fromCharCode((c & 63) | 128) + } + } + return utftext + } + // private method for UTF-8 decoding + var _utf8_decode = function (utftext) { + let string = '' + let i = 0 + let c = 0, c1 = 0, c2 = 0 + while (i < utftext.length) { + c = utftext.charCodeAt(i) + if (c < 128) { + string += String.fromCharCode(c) + i++ + } else if ((c > 191) && (c < 224)) { + c2 = utftext.charCodeAt(i + 1) + string += String.fromCharCode(((c & 31) << 6) | (c2 & 63)) + i += 2 + } else { + c2 = utftext.charCodeAt(i + 1) + c1 = utftext.charCodeAt(i + 2) + string += String.fromCharCode(((c & 15) << 12) | ((c2 & 63) << 6) | (c1 & 63)) + i += 3 + } + } + return string + } +} +export default Base64 diff --git a/Web/syseye/src/layouts/MainLayout.vue b/Web/syseye/src/layouts/MainLayout.vue index 7d78e29..18efcd9 100644 --- a/Web/syseye/src/layouts/MainLayout.vue +++ b/Web/syseye/src/layouts/MainLayout.vue @@ -1,22 +1,17 @@