shaluDashBoardUi.umd.min.js 2.5 MB

12345678910111213141516171819
  1. (function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("vue")):"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["shaluDashBoardUi"]=t(require("vue")):e["shaluDashBoardUi"]=t(e["Vue"])})("undefined"!==typeof self?self:this,(function(e){return function(){var t={49385:function(e,t,n){"use strict";n.r(t),n.d(t,{Config:function(){return O},basicBarProps:function(){return d.A},default:function(){return S},defaultPropsValue:function(){return d.T}});var r=n(72987),o=n(9274),i=n(59102),a=n(3640),s=n(87781),l=n(93648),u=n(55673),c=n(74112),d=n(35372),h=n(80344),p=n(4908),f=n(29535);const g=e=>((0,o.pushScopeId)("data-v-3278e0a3"),e=e(),(0,o.popScopeId)(),e),m={class:"chart-config"},v={class:"config-tab"},y=g((()=>(0,o.createElementVNode)("span",null,"数据设置",-1))),b=g((()=>(0,o.createElementVNode)("span",null,"样式设置",-1)));var _=(0,o.defineComponent)({__name:"Config",props:d.A,emits:["change"],setup(e,{emit:t}){const n=e,r=(0,o.ref)("1"),d=t,g=[{label:"样式",prop:"",type:"divider"},{label:"固定柱宽",prop:"series.bar.fixedBarWidth",type:"radioGroup",fieldProps:{options:[{label:"是",value:!0},{label:"否",value:!1}]},defaultValue:!1,format:(e,t)=>{e.value["series.bar.barWidth"]=t&&"auto"!==e.value?.["series.bar.barWidth"]?e.value?.["series.bar.barWidth"]||20:"auto"}},{label:"",prop:"",type:"dependency",name:["series.bar.fixedBarWidth"],children:e=>e["series.bar.fixedBarWidth"]?[{label:"柱宽",prop:"series.bar.barWidth",type:"inputNumber",fieldProps:{addonAfter:"px"},defaultValue:20}]:[]},{label:"系列间隔",prop:"series.bar.barGap",type:"slider",defaultValue:30,format:(e,t)=>{e.value["series.bar.barGap"]=t+"%"},valueToForm:e=>+(e?.replace("%","")||0)},{label:"分类间隔",prop:"series.bar.barCategoryGap",type:"slider",defaultValue:20,format:(e,t)=>{e.value["series.bar.barCategoryGap"]=t+"%"},valueToForm:e=>+(e?.replace("%","")||0)},{label:"边框",prop:"",type:"divider"},{label:"线宽",prop:"series.bar.itemStyle.borderWidth",type:"inputNumber",fieldProps:{addonAfter:"px"},defaultValue:0},{label:"颜色",prop:"series.bar.itemStyle.borderColor",type:"colorSelect",defaultValue:"#ccc"},{label:"圆角",prop:"series.bar.itemStyle.borderRadius",type:"inputNumber",fieldProps:{addonAfter:"px"},defaultValue:0}],_=[h.f.title,h.f.legend,h.f.label,{...h.f.series,children:h.f.series.children.concat(g)},h.f.xAxis,h.f.yAxis,h.f.tooltip],x=e=>{d("change",{...n,dataSource:e})},w=e=>{const t=(0,p.A)(n);Object.keys(e).forEach((n=>{(0,f.A)(t,n,e[n])})),d("change",t)};return(e,t)=>((0,o.openBlock)(),(0,o.createElementBlock)("div",m,[(0,o.createElementVNode)("div",v,[(0,o.createVNode)((0,o.unref)(i.A),{activeKey:r.value,"onUpdate:activeKey":t[0]||(t[0]=e=>r.value=e),size:"small",centered:""},{default:(0,o.withCtx)((()=>[(0,o.createVNode)((0,o.unref)(a.A),{key:"1"},{tab:(0,o.withCtx)((()=>[(0,o.createVNode)((0,o.unref)(s.A)),y])),_:1}),(0,o.createVNode)((0,o.unref)(a.A),{key:"2"},{tab:(0,o.withCtx)((()=>[(0,o.createVNode)((0,o.unref)(l.A)),b])),_:1})])),_:1},8,["activeKey"])]),"1"===r.value?((0,o.openBlock)(),(0,o.createBlock)(u.A,{key:0,dataSource:e.dataSource,onChange:x},null,8,["dataSource"])):(0,o.createCommentVNode)("",!0),"2"===r.value?((0,o.openBlock)(),(0,o.createBlock)((0,o.unref)(c.O),{key:1,columns:_,formModel:n,onChange:w},null,8,["formModel"])):(0,o.createCommentVNode)("",!0)]))}}),x=n(23165);const w=(0,x.A)(_,[["__scopeId","data-v-3278e0a3"]]);var O=w;r.A.Config=O,r.A.install=e=>(e.component("FmDashboardBasicBar",r.A),e);var S=r.A},35372:function(e,t,n){"use strict";n.d(t,{A:function(){return i},T:function(){return l}});var r=n(50527),o=n(83848);const i={width:{type:Number,default:400},height:{type:Number,default:260},dataSource:r.Ex,title:{type:Object},legend:{type:Object},backgroundColor:{type:String},grid:{type:Object},tooltip:{type:Object},xAxis:{type:Object},yAxis:{type:Object},series:{type:Array},color:{type:Object}},a=[];a["bar"]={fixedBarWidth:!1,barWidth:"auto",barGap:"30%",barCategoryGap:"20%",itemStyle:{borderColor:"#ccc",borderRadius:0,borderWidth:0}};const s=(0,r.iN)({title:{text:"柱状图标题"},xAxis:{data:["轴标签A","轴标签B","轴标签C","轴标签D"]},series:a}),l={container:{props:{width:400,height:260}},props:{dataSource:{sourceType:o.o.STATIC,data:{xData:["轴标签A","轴标签B","轴标签C","轴标签D"],series:[{type:"bar",name:"系列1",data:[89.3,92.1,94.4,85.4]},{type:"bar",name:"系列2",data:[95.8,89.4,91.2,76.9]}]},url:location.origin+"/mock/api/get/example/bar",method:"POST",params:{},headers:{},refreshTime:0,dataProcess:"\n (res) => {\n // 取出列表\n const data = res.data;\n // x轴数据\n const xData = data.map((item) => item.name); \n // 系列数据\n const series = [\n { type: 'bar', name: '价格', data: data.map(item => item.price) },\n { type: 'bar', name: '总量', data: data.map(item => item.count) },\n ];\n\n // 返回图表数据\n return { xData, series };\n }\n "},...s}}},13239:function(e,t,n){"use strict";n.r(t),n.d(t,{Config:function(){return E},basicLineProps:function(){return s},default:function(){return D},defaultPropsValue:function(){return c}});var r=n(9274),o=n(7734),i=n(50527),a=n(83848);const s={width:{type:Number,default:400},height:{type:Number,default:260},dataSource:i.Ex,title:{type:Object},legend:{type:Object},backgroundColor:{type:String},grid:{type:Object},tooltip:{type:Object},xAxis:{type:Object},yAxis:{type:Object},series:{type:Array},dataset:{type:Object}},l=[];l["line"]={lineStyle:{type:"solid",width:1},symbol:"rect",symbolSize:4,symbolRotate:0,smooth:!1,step:!1};const u=(0,i.iN)({title:{text:"折线图标题"},xAxis:{data:["轴标签A","轴标签B","轴标签C","轴标签D"]},series:l}),c={container:{props:{width:400,height:260}},props:{dataSource:{sourceType:a.o.STATIC,data:{xData:["轴标签A","轴标签B","轴标签C","轴标签D"],series:[{type:"line",name:"系列1",data:[89.3,92.1,94.4,85.4]},{type:"line",name:"系列2",data:[95.8,89.4,91.2,76.9]}]},url:location.origin+"/mock/api/get/example/line",method:"POST",params:{},headers:{},refreshTime:0,dataProcess:"\n (res) => {\n // 取出列表\n const data = res.data;\n // x轴数据\n const xData = data.map((item) => item.name); \n // 系列数据\n const series = [\n { type: 'line', name: '苹果', data: data.map(item => item.apple) },\n { type: 'line', name: 'VIVO', data: data.map(item => item.vivo) },\n { type: 'line', name: '小米', data: data.map(item => item.mi) },\n ];\n\n // 返回图表数据\n return { xData, series };\n }\n "},...u}};var d=n(52885),h=(0,r.defineComponent)({__name:"BasicLine",props:s,setup(e){const t=e,{options:n,loading:i}=(0,d.u)(t);return(e,t)=>((0,r.openBlock)(),(0,r.createBlock)(o.A,{width:e.width,height:e.height,"echarts-options":(0,r.unref)(n),loading:(0,r.unref)(i)},null,8,["width","height","echarts-options","loading"]))}});const p=h;var f=p,g=n(59102),m=n(3640),v=n(87781),y=n(93648),b=n(55673),_=n(74112),x=n(80344),w=n(83067),O=n(4908),S=n(29535);const A=e=>((0,r.pushScopeId)("data-v-769a6597"),e=e(),(0,r.popScopeId)(),e),k={class:"chart-config"},C={class:"config-tab"},M=A((()=>(0,r.createElementVNode)("span",null,"数据设置",-1))),T=A((()=>(0,r.createElementVNode)("span",null,"样式设置",-1)));var P=(0,r.defineComponent)({__name:"Config",props:s,emits:["change"],setup(e,{emit:t}){const n=e,o=(0,r.ref)("1"),i=t,a=[{label:"线",prop:"",type:"divider"},{label:"线条样式",prop:"series.line.lineStyle.type",type:"select",fieldProps:{options:[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点线",value:"dotted"}]}},{label:"线宽",prop:"series.line.lineStyle.width",type:"inputNumber",fieldProps:{min:0,addonAfter:"px"}},{label:"形态",prop:"series.line.lineType",type:"radioGroupButton",fieldProps:{options:[{label:"普通",value:"normal"},{label:"平滑",value:"smooth"},{label:"阶梯",value:"step"}]},format:(e,t)=>{switch(t){case"smooth":e.value["series.line.smooth"]=!0,e.value["series.line.step"]=!1;break;case"step":e.value["series.line.smooth"]=!1,e.value["series.line.step"]="end";break;default:e.value["series.line.smooth"]=!1,e.value["series.line.step"]=!1}},valueToForm:(e,t)=>{const n=(0,w.A)(t,"series.line.step"),r=(0,w.A)(t,"series.line.smooth");return n?"step":r?"smooth":"normal"}},{label:"标记点",prop:"",type:"divider"},{label:"图形",prop:"series.line.symbol",type:"select",fieldProps:{options:[{label:"圆",value:"circle"},{label:"方",value:"rect"},{label:"三角",value:"triangle"},{label:"菱形",value:"diamond"},{label:"标记",value:"pin"},{label:"箭头",value:"arrow"},{label:"无",value:"none"}]}},{label:"大小",prop:"series.line.symbolSize",type:"inputNumber",fieldProps:{min:0,addonAfter:"px"}},{label:"旋转",prop:"series.line.symbolRotate",type:"inputNumber",fieldProps:{min:0,addonAfter:"°"}}],s=[x.f.title,x.f.legend,x.f.label,{...x.f.series,children:x.f.series.children.concat(a)},x.f.tooltip,x.f.background],l=e=>{i("change",{...n,dataSource:e})},u=e=>{const t=(0,O.A)(n);Object.keys(e).forEach((n=>{(0,S.A)(t,n,e[n])})),i("change",t)};return(e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",k,[(0,r.createElementVNode)("div",C,[(0,r.createVNode)((0,r.unref)(g.A),{activeKey:o.value,"onUpdate:activeKey":t[0]||(t[0]=e=>o.value=e),size:"small",centered:""},{default:(0,r.withCtx)((()=>[(0,r.createVNode)((0,r.unref)(m.A),{key:"1"},{tab:(0,r.withCtx)((()=>[(0,r.createVNode)((0,r.unref)(v.A)),M])),_:1}),(0,r.createVNode)((0,r.unref)(m.A),{key:"2"},{tab:(0,r.withCtx)((()=>[(0,r.createVNode)((0,r.unref)(y.A)),T])),_:1})])),_:1},8,["activeKey"])]),"1"===o.value?((0,r.openBlock)(),(0,r.createBlock)(b.A,{key:0,dataSource:e.dataSource,onChange:l},null,8,["dataSource"])):(0,r.createCommentVNode)("",!0),"2"===o.value?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(_.O),{key:1,columns:s,formModel:n,onChange:u},null,8,["formModel"])):(0,r.createCommentVNode)("",!0)]))}}),I=n(23165);const $=(0,I.A)(P,[["__scopeId","data-v-769a6597"]]);var E=$;f.Config=E,f.install=e=>(e.component("FmDashboardBasicLine",f),e);var D=f},65045:function(e,t,n){"use strict";n.r(t),n.d(t,{Config:function(){return O},basicPieProps:function(){return d.B},default:function(){return S},defaultPropsValue:function(){return d.T}});var r=n(99368),o=n(9274),i=n(59102),a=n(3640),s=n(87781),l=n(93648),u=n(55673),c=n(74112),d=n(63854),h=n(80344),p=n(4908),f=n(29535);const g=e=>((0,o.pushScopeId)("data-v-1343366f"),e=e(),(0,o.popScopeId)(),e),m={class:"chart-config"},v={class:"config-tab"},y=g((()=>(0,o.createElementVNode)("span",null,"数据设置",-1))),b=g((()=>(0,o.createElementVNode)("span",null,"样式设置",-1)));var _=(0,o.defineComponent)({__name:"Config",props:d.B,emits:["change"],setup(e,{emit:t}){const n=e,r=(0,o.ref)("1"),d=t,g=[{label:"样式",prop:"",type:"divider"},{label:"起始角度",prop:"series.pie.startAngle",type:"inputNumber",fieldProps:{min:0,max:360,addonAfter:"°"}},{label:"完结角度",prop:"series.pie.endAngle",type:"inputNumber",fieldProps:{min:0,max:360,addonAfter:"°"}},{label:"内径占比",prop:"series.pie.radius",type:"slider",format:(e,t)=>{console.log("formatModel",e);const n=.75*t;return e.value["series.pie.radius"]=[n+"%","75%"],100*t},valueToForm:e=>{const t=(e||["0%","75%"])[0].replace("%","");return t/.75}}],_=[h.f.title,h.f.legend,h.f.label,{...h.f.series,children:h.f.series.children.concat(g)},h.f.tooltip],x=e=>{d("change",{...n,dataSource:e})},w=e=>{const t=(0,p.A)(n);Object.keys(e).forEach((n=>{(0,f.A)(t,n,e[n])})),d("change",t)};return(e,t)=>((0,o.openBlock)(),(0,o.createElementBlock)("div",m,[(0,o.createElementVNode)("div",v,[(0,o.createVNode)((0,o.unref)(i.A),{activeKey:r.value,"onUpdate:activeKey":t[0]||(t[0]=e=>r.value=e),size:"small",centered:""},{default:(0,o.withCtx)((()=>[(0,o.createVNode)((0,o.unref)(a.A),{key:"1"},{tab:(0,o.withCtx)((()=>[(0,o.createVNode)((0,o.unref)(s.A)),y])),_:1}),(0,o.createVNode)((0,o.unref)(a.A),{key:"2"},{tab:(0,o.withCtx)((()=>[(0,o.createVNode)((0,o.unref)(l.A)),b])),_:1})])),_:1},8,["activeKey"])]),"1"===r.value?((0,o.openBlock)(),(0,o.createBlock)(u.A,{key:0,dataSource:e.dataSource,onChange:x},null,8,["dataSource"])):(0,o.createCommentVNode)("",!0),"2"===r.value?((0,o.openBlock)(),(0,o.createBlock)((0,o.unref)(c.O),{key:1,columns:_,formModel:n,onChange:w},null,8,["formModel"])):(0,o.createCommentVNode)("",!0)]))}}),x=n(23165);const w=(0,x.A)(_,[["__scopeId","data-v-1343366f"]]);var O=w;r.A.Config=O,r.A.install=e=>(e.component("FmDashboardBasicPie",r.A),e);var S=r.A},63854:function(e,t,n){"use strict";n.d(t,{B:function(){return i},T:function(){return l}});var r=n(50527),o=n(83848);const i={width:{type:Number,default:400},height:{type:Number,default:260},dataSource:r.Ex,title:{type:Object},legend:{type:Object},backgroundColor:{type:String},grid:{type:Object},tooltip:{type:Object},series:{type:Array},color:{type:Object}},a=[];a["pie"]={top:70,startAngle:0,endAngle:360,radius:["0%","75%"]};const s=(0,r.iN)({title:{text:"饼图标题"},grid:{show:!1},xAxis:{show:!1},yAxis:{show:!1},series:a}),l={container:{props:{width:400,height:260}},props:{dataSource:{sourceType:o.o.STATIC,data:{series:[{type:"pie",name:"系列1",data:[{value:335,name:"直接访问"},{value:310,name:"邮件营销"},{value:234,name:"联盟广告"},{value:135,name:"视频广告"}]}]},url:location.origin+"/mock/api/get/example/pie",method:"POST",params:{},headers:{},refreshTime:0,dataProcess:"\n (res) => {\n // 取出列表\n const data = res.data;\n\n // 系列数据\n const series = [\n { type: 'pie', name: '价格', data: data.map(item => item.price) },\n ];\n\n // 返回图表数据\n return { series };\n }\n "},...s}}},83848:function(e,t,n){"use strict";var r;n.d(t,{o:function(){return r}}),function(e){e[e["STATIC"]=0]="STATIC",e[e["API"]=1]="API"}(r||(r={}))},80344:function(e,t,n){"use strict";n.d(t,{f:function(){return i}});var r=n(45340),o=n(83067);const i={title:{label:"标题",prop:"title",type:"group",children:[{label:" ",prop:"title.show",type:"checkboxGroup",fieldProps:{options:[{label:"标题可见",value:!0}]},defaultValue:[],format:(e,t)=>{e.value["title.show"]=!!t?.length},valueToForm:e=>e?[!0]:[]},{type:"dependency",label:"",prop:"",name:["title.show"],children:e=>e["title.show"].length?[{label:"文本",prop:"title.text",type:"input",defaultValue:"图表标题"},{label:"位置",prop:"title.left",type:"position",defaultValue:"center"},{label:"样式",prop:"title.textStyle",type:"fontStyle",defaultValue:{color:"#ffffffff",size:18,bold:!0,italic:!1},format:(e,t)=>{e.value["title.textStyle"]={color:t.color,fontSize:t.size,fontWeight:t.bold?"bold":"normal",fontStyle:t.italic?"italic":"normal"}},valueToForm:(e,t)=>({color:(0,o.A)(t,"title.textStyle.color","#FFFFFF"),size:(0,o.A)(t,"title.textStyle.size",16),bold:"bold"===(0,o.A)(t,"title.textStyle.fontWeight"),italic:"italic"===(0,o.A)(t,"title.textStyle.fontStyle")})},{label:"背景",prop:"",type:"divider"},{label:"填充",prop:"title.backgroundColor",type:"backgroundSelect",fieldProps:{filterOptions:["image"]},defaultValue:{type:"color",color:"#FFFFFF00"},format:(e,t)=>{e.value["title.backgroundColor"]="color"===t?.type?t.color:"none"},valueToForm:e=>e&&"none"!==e?{type:"color",color:e.color}:{type:"none",color:"#000000ff"}},{label:"圆角",prop:"title.borderRadius",type:"inputNumber",fieldProps:{addonAfter:"px"},defaultValue:0}]:[]}]},legend:{label:"图例",prop:"legend",type:"group",children:[{label:" ",prop:"legend.show",type:"checkboxGroup",fieldProps:{options:[{label:"图例可见",value:!0}]},defaultValue:[!0],format:(e,t)=>{e.value["legend.show"]=!!t?.length},valueToForm:e=>e?[!0]:[]},{type:"dependency",label:"",prop:"",name:["legend.show"],children:e=>e["legend.show"].length?[{label:"位置",prop:"legend.position",type:"position",fieldProps:{type:"round"},defaultValue:"top",format:(e,t)=>{switch(["left","right"].includes(t)?e.value["legend.orient"]="vertical":e.value["legend.orient"]="horizontal",t){case"bottom":e.value["legend.top"]="auto",e.value["legend.right"]="auto",e.value["legend.bottom"]=8,e.value["legend.left"]="center";break;case"left":e.value["legend.bottom"]="auto",e.value["legend.right"]="auto",e.value["legend.left"]=8,e.value["legend.top"]="center";break;case"right":e.value["legend.bottom"]="auto",e.value["legend.left"]="auto",e.value["legend.right"]=8,e.value["legend.top"]="center";break;default:e.value["legend.bottom"]="auto",e.value["legend.right"]="auto",e.value["legend.top"]=32,e.value["legend.left"]="center"}},valueToForm:(e,t)=>"vertical"===(0,o.A)(t,"legend.orient")?"top"===e?"top":"bottom"===e?"bottom":"left":8===(0,o.A)(t,"legend.bottom")&&"center"===(0,o.A)(t,"legend.left")?"bottom":"top"},{label:"样式",prop:"legend.textStyle",type:"fontStyle",defaultValue:{color:"#000000ff",size:12,bold:!1,italic:!1},format:(e,t)=>{e.value["legend.textStyle"]={color:t.color,fontSize:t.size,fontWeight:t.bold?"bold":"normal",fontStyle:t.italic?"italic":"normal"}},valueToForm:(e,t)=>({color:(0,o.A)(t,"legend.textStyle.color","#000000ff"),size:(0,o.A)(t,"legend.textStyle.fontSize",12),bold:"bold"===(0,o.A)(t,"legend.textStyle.fontWeight"),italic:"italic"===(0,o.A)(t,"legend.textStyle.fontStyle")})},{label:"边框",prop:"",type:"divider"},{label:"线宽",prop:"legend.borderWidth",type:"inputNumber",fieldProps:{addonAfter:"px"},defaultValue:0},{label:"颜色",prop:"legend.borderColor",type:"colorSelect",defaultValue:"#ccc"},{label:"圆角",prop:"legend.borderRadius",type:"inputNumber",fieldProps:{addonAfter:"px"},defaultValue:0},{label:"背景",prop:"",type:"divider"},{label:"背景",prop:"legend.backgroundColor",type:"backgroundSelect",fieldProps:{filterOptions:["image"]},defaultValue:{type:"color",color:"#fff"},format:(e,t)=>{e.value["legend.backgroundColor"]="color"===t?.type?t.color:"none"},valueToForm:e=>e&&"none"!==e?{type:"color",color:e.color}:{type:"none"}},{label:"阴影",prop:"legend.shadowBlur",type:"radioGroup",fieldProps:{options:[{label:"开启",value:!0},{label:"关闭",value:!1}]},defaultValue:!1,format:(e,t)=>{t?(e.value["legend.shadowBlur"]=10,e.value["legend.shadowColor"]=e.value["legend.backgroundColor"]||"#000000ff",e.value["legend.shadowOffsetX"]=3,e.value["legend.shadowOffsetY"]=3):(e.value["legend.shadowBlur"]=0,e.value["legend.shadowColor"]="transparent",e.value["legend.shadowOffsetX"]=0,e.value["legend.shadowOffsetY"]=0)},valueToForm:e=>!!e}]:[]}]},series:{label:"系列",prop:"series",type:"group",children:[{label:"配色",prop:"color",type:"colorScheme",defaultValue:r.xT[0].color}]},xAxis:{label:"X 轴",prop:"xAxis",type:"group",children:[{label:"类型",prop:"xAxis.type",type:"select",fieldProps:{options:[{label:"类目坐标轴",value:"category"},{label:"数值坐标轴",value:"value"},{label:"时间坐标轴",value:"time"}]},defaultValue:"category"},{label:" ",prop:"xAxis.showName",type:"checkboxGroup",fieldProps:{options:[{label:"显示轴标题",value:!0}]},defaultValue:[!0],format:(e,t)=>{t?.length?(e.value["xAxis.showName"]=!0,e.value["xAxis.name"]="X轴标题",e.value["xAxis.nameGap"]=25):(e.value["xAxis.showName"]=!1,e.value["xAxis.name"]="",e.value["xAxis.nameGap"]=15,e.value["xAxis.nameGap"]=15)},valueToForm:e=>e?[!0]:[]},{label:"",prop:"",type:"dependency",name:["xAxis.showName"],children:e=>e["xAxis.showName"].length?[{label:"标题内容",prop:"xAxis.name",type:"input",defaultValue:"X 轴标题",format:(e,t)=>{e.value["xAxis.showName"]&&(e.value["xAxis.name"]=t,e.value["xAxis.nameGap"]=25)},valueToForm:e=>e||"X 轴标题"},{label:"标题位置",prop:"xAxis.nameLocation",type:"position",defaultValue:"center",format:(e,t)=>{const n={left:"start",center:"middle",right:"end"};e.value["xAxis.nameLocation"]=t?n[t]:"middle"},valueToForm:e=>{const t={start:"left",middle:"center",end:"right"};return t[e]||"center"}},{label:"标题样式",prop:"xAxis.nameTextStyle",type:"fontStyle",defaultValue:{color:"#000000ff",size:12,bold:!1,italic:!1},format:(e,t)=>{e.value["xAxis.nameTextStyle"]={color:t.color,fontSize:t.size,fontWeight:t.bold?"bold":"normal",fontStyle:t.italic?"italic":"normal"}},valueToForm:(e,t)=>({color:e?.color||"#000000ff",size:e?.fontSize||12,bold:"bold"===e?.fontWeight||!1,italic:"italic"===e?.fontStyle||!1})}]:[]},{label:"轴线",prop:"",type:"divider"},{label:"线宽",prop:"xAxis.axisLine.lineStyle.width",type:"inputNumber",fieldProps:{addonAfter:"px"},defaultValue:1},{label:"颜色",prop:"xAxis.axisLine.lineStyle.color",type:"colorSelect",defaultValue:"#ccc"},{label:"刻度",prop:"",type:"divider"},{label:" ",prop:"xAxis.axisTick.show",type:"checkboxGroup",fieldProps:{options:[{label:"显示刻度",value:!0}]},defaultValue:[!0],format:(e,t)=>{e.value["xAxis.axisTick.show"]=!!t?.length},valueToForm:e=>e?[!0]:[]},{label:"",prop:"",type:"dependency",name:["xAxis.axisTick.show"],children:e=>e["xAxis.axisTick.show"].length?[{label:"刻度宽度",prop:"xAxis.axisTick.lineStyle.width",type:"inputNumber",fieldProps:{addonAfter:"px"},defaultValue:5},{label:"刻度颜色",prop:"xAxis.axisTick.lineStyle.color",type:"colorSelect",defaultValue:"#ccc"}]:[]},{label:"标签",prop:"",type:"divider"},{label:" ",prop:"xAxis.axisLabel.show",type:"checkboxGroup",fieldProps:{options:[{label:"显示标签",value:!0}]},defaultValue:[!0],format:(e,t)=>{e.value["xAxis.axisLabel.show"]=!!t?.length},valueToForm:e=>e?[!0]:[]},{label:"",prop:"",type:"dependency",name:["xAxis.axisLabel.show"],children:e=>e["xAxis.axisLabel.show"].length?[{label:"样式",prop:"xAxis.axisLabel",type:"fontStyle",defaultValue:{color:"#000000ff",size:12,bold:!1,italic:!1},format:(e,t)=>{e.value["xAxis.axisLabel.color"]=t?.color,e.value["xAxis.axisLabel.fontSize"]=t.size,e.value["xAxis.axisLabel.fontWeight"]=t.bold?"bold":"normal",e.value["xAxis.axisLabel.fontStyle"]=t.italic?"italic":"normal"},valueToForm:(e,t)=>({color:(0,o.A)(t,"xAxis.axisLabel.color","#000000ff"),size:(0,o.A)(t,"xAxis.axisLabel.fontSize",12),bold:"bold"===(0,o.A)(t,"xAxis.axisLabel.fontWeight"),italic:"italic"===(0,o.A)(t,"xAxis.axisLabel.fontStyle")})}]:[]}]},yAxis:{label:"Y 轴",prop:"yAxis",type:"group",children:[{label:" ",prop:"yAxis.showName",type:"checkboxGroup",fieldProps:{options:[{label:"显示轴标题",value:!0}]},defaultValue:[],format:(e,t)=>{t?.length?(e.value["yAxis.showName"]=!0,e.value["yAxis.name"]="Y轴标题",e.value["yAxis.nameGap"]=25):(e.value["yAxis.showName"]=!1,e.value["yAxis.name"]="",e.value["yAxis.nameGap"]=15)},valueToForm:e=>e?[!0]:[]},{label:"",prop:"",type:"dependency",name:["yAxis.showName"],children:e=>e["yAxis.showName"].length?[{label:"标题内容",prop:"yAxis.name",type:"input",defaultValue:"Y 轴标题",format:(e,t)=>{e.value["yAxis.showName"]?(e.value["yAxis.name"]=t,e.value["yAxis.nameGap"]=25):(e.value["yAxis.name"]="",e.value["yAxis.nameGap"]=15)},valueToForm:e=>e||"Y 轴标题"},{label:"标题位置",prop:"yAxis.nameLocation",type:"position",defaultValue:"center",format:(e,t)=>{const n={left:"start",center:"middle",right:"end"};e.value["yAxis.nameLocation"]=t?n[t]:"middle"},valueToForm:e=>{const t={start:"left",middle:"center",end:"right"};return t[e]||"center "}},{label:"标题样式",prop:"yAxis.nameTextStyle",type:"fontStyle",defaultValue:{color:"#FFFFFFFF",size:12,bold:!1,italic:!1},format:(e,t)=>{e.value["yAxis.nameTextStyle"]={color:t.color,fontSize:t.size,fontWeight:t.bold?"bold":"normal",fontStyle:t.italic?"italic":"normal"}},valueToForm:e=>({color:e?.color||"#000000ff",size:e?.fontSize||12,bold:"bold"===e?.fontWeight||!1,italic:"italic"===e?.fontStyle||!1})}]:[]},{label:"轴线",prop:"",type:"divider"},{label:" ",prop:"yAxis.axisLine.show",type:"checkboxGroup",fieldProps:{options:[{label:"显示轴线",value:!0}]},defaultValue:[!0],format:(e,t)=>{e.value["yAxis.axisLine.show"]=!!t?.length},valueToForm:e=>e?[!0]:[]},{label:"",prop:"",type:"dependency",name:["yAxis.axisLine.show"],children:e=>e["yAxis.axisLine.show"].length?[{label:"线宽",prop:"yAxis.axisLine.lineStyle.width",type:"inputNumber",fieldProps:{addonAfter:"px"},defaultValue:1},{label:"颜色",prop:"yAxis.axisLine.lineStyle.color",type:"colorSelect",defaultValue:"#ccc"}]:[]},{label:"刻度",prop:"",type:"divider"},{label:" ",prop:"yAxis.axisTick.show",type:"checkboxGroup",fieldProps:{options:[{label:"显示刻度",value:!0}]},defaultValue:[!0],format:(e,t)=>{e.value["yAxis.axisTick.show"]=!!t?.length},valueToForm:e=>e?[!0]:[]},{label:"",prop:"",type:"dependency",name:["yAxis.axisTick.show"],children:e=>e["yAxis.axisTick.show"].length?[{label:"刻度长度",prop:"yAxis.axisTick.lineStyle.width",type:"inputNumber",fieldProps:{addonAfter:"px"},defaultValue:5},{label:"刻度颜色",prop:"yAxis.axisTick.lineStyle.color",type:"colorSelect",defaultValue:"#ccc"}]:[]},{label:"标签",prop:"",type:"divider"},{label:" ",prop:"yAxis.axisLabel.show",type:"checkboxGroup",fieldProps:{options:[{label:"显示标签",value:!0}]},defaultValue:[!0],format:(e,t)=>{e.value["yAxis.axisLabel.show"]=!!t?.length},valueToForm:e=>e?[!0]:[]},{label:"",prop:"",type:"dependency",name:["yAxis.axisLabel.show"],children:e=>e["yAxis.axisLabel.show"].length?[{label:"样式",prop:"yAxis.axisLabel",type:"fontStyle",defaultValue:{color:"#000000ff",size:12,bold:!1,italic:!1},format:(e,t)=>{e.value["yAxis.axisLabel.color"]=t?.color,e.value["yAxis.axisLabel.fontSize"]=t.size,e.value["yAxis.axisLabel.fontWeight"]=t.bold?"bold":"normal",e.value["yAxis.axisLabel.fontStyle"]=t.italic?"italic":"normal"},valueToForm:(e,t)=>({color:(0,o.A)(t,"yAxis.axisLabel.color","#000000ff"),size:(0,o.A)(t,"yAxis.axisLabel.fontSize",12),bold:"bold"===(0,o.A)(t,"yAxis.axisLabel.fontWeight"),italic:"italic"===(0,o.A)(t,"yAxis.axisLabel.fontStyle")})},{label:"旋转角度",prop:"yAxis.axisLabel.rotate",type:"inputNumber",fieldProps:{addonAfter:"°",min:-90,max:90,step:1}}]:[]}]},tooltip:{label:"提示",prop:"tooltip",type:"group",children:[{label:" ",prop:"tooltip.show",type:"checkboxGroup",fieldProps:{options:[{label:"提示可见",value:!0}]},defaultValue:[!0],format:(e,t)=>{e.value["tooltip.show"]=!!t?.length},valueToForm:e=>e?[!0]:[]},{label:"",prop:"",type:"dependency",name:["tooltip.show"],children:e=>e["tooltip.show"].length?[{label:"文本",prop:"tooltip.formatter",type:"checkboxGroup",fieldProps:{options:[{label:"分类名",value:"b"},{label:"系列名",value:"a"},{label:"数值",value:"c"}]},defaultValue:["b"],format:(e,t)=>{e.value["tooltip.formatter"]=t.map((e=>`{${e}}`)).join(" ")},valueToForm:(e,t)=>(0,o.A)(t,"tooltip.formatter")?.replace(/\{|\}/g,"")?.split(" ")},{label:"样式",prop:"tooltip.textStyle",type:"fontStyle",defaultValue:{color:"#000000ff",size:12,bold:!1,italic:!1},format:(e,t)=>{e.value["tooltip.textStyle"]={color:t.color,fontSize:t.size,fontWeight:t.bold?"bold":"normal",fontStyle:t.italic?"italic":"normal"}},valueToForm:(e,t)=>({color:(0,o.A)(t,"tooltip.textStyle.color","#000000ff"),size:(0,o.A)(t,"tooltip.textStyle.fontSize",12),bold:"bold"===(0,o.A)(t,"tooltip.textStyle.fontWeight"),italic:"italic"===(0,o.A)(t,"tooltip.textStyle.fontStyle")})},{label:"边框",prop:"",type:"divider"},{label:"线宽",prop:"tooltip.borderWidth",type:"inputNumber",fieldProps:{addonAfter:"px"},defaultValue:1},{label:"颜色",prop:"tooltip.borderColor",type:"colorSelect",defaultValue:"#ccc"},{label:"圆角",prop:"tooltip.borderRadius",type:"inputNumber",fieldProps:{addonAfter:"px"},defaultValue:4},{label:"背景",prop:"",type:"divider"},{label:"填充",prop:"tooltip.backgroundColor",type:"backgroundSelect",fieldProps:{filterOptions:["image"]},defaultValue:{type:"color",color:"#fff"},format:(e,t)=>{e.value["tooltip.backgroundColor"]="color"===t?.type?t.color:"none"},valueToForm:e=>e&&"none"!==e?{type:"color",color:e}:{type:"none"}},{label:"阴影",prop:"tooltip.extraCssText",type:"radioGroup",fieldProps:{options:[{label:"开启",value:!0},{label:"关闭",value:!1}]},defaultValue:!1,format:(e,t)=>{e.value["tooltip.extraCssText"]=t?"box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);":""},valueToForm:(e,t)=>!!(0,o.A)(t,"tooltip.extraCssText")}]:[]}]},label:{label:"标签",prop:"label",type:"group",children:[{label:" ",prop:"label.show",type:"checkboxGroup",fieldProps:{options:[{label:"标签可见",value:!0}]},defaultValue:[],format:(e,t)=>{e.value["label.show"]=!!t?.length},valueToForm:e=>e?[!0]:[]},{label:"",prop:"",type:"dependency",name:["label.show"],children:e=>e["label.show"].length?[{label:"文本",prop:"label.formatter",type:"checkboxGroup",fieldProps:{options:[{label:"分类名",value:"b"},{label:"系列名",value:"a"},{label:"数值",value:"c"}]},defaultValue:["a"],format:(e,t)=>{e.value["label.formatter"]=`{${t}}`},valueToForm:(e,t)=>(0,o.A)(t,"label.formatter")?.replace(/\{|\}/g,"")?.split(" ")},{label:"样式",prop:"label.fontStyle",type:"fontStyle",defaultValue:{color:"#000000ff",size:12,bold:!1,italic:!1},format:(e,t)=>{e.value["label.color"]=t?.color,e.value["label.fontSize"]=t.size,e.value["label.fontWeight"]=t.bold?"bold":"normal",e.value["label.fontStyle"]=t.italic?"italic":"normal"},valueToForm:(e,t)=>({color:(0,o.A)(t,"label.color","#000000ff"),size:(0,o.A)(t,"label.fontSize",12),bold:"bold"===(0,o.A)(t,"label.fontWeight"),italic:"italic"===(0,o.A)(t,"label.fontStyle")})},{label:"布局",prop:"",type:"divider"},{label:"位置",prop:"label.position",type:"radioGroup",fieldProps:{options:[{label:"顶部",value:"top"},{label:"左侧",value:"left"},{label:"右侧",value:"right"},{label:"底部",value:"bottom"},{label:"内部",value:"inside"},{label:"内部左侧",value:"insideLeft"},{label:"内部右侧",value:"insideRight"},{label:"内部顶部",value:"insideTop"},{label:"内部底部",value:"insideBottom"}]},defaultValue:"top"},{label:"文本方向",prop:"label.rotate",type:"radioGroup",fieldProps:{options:[{label:"水平",value:"horizontal"},{label:"垂直",value:"vertical"}]},defaultValue:"horizontal",format:(e,t)=>{e.value["label.rotate"]="horizontal"===t?0:90},valueToForm:e=>0===e?"horizontal":"vertical"},{label:"边框",prop:"",type:"divider"},{label:"线宽",prop:"label.borderWidth",type:"inputNumber",fieldProps:{addonAfter:"px"},defaultValue:0},{label:"颜色",prop:"label.borderColor",type:"colorSelect",defaultValue:"#ccc"},{label:"圆角",prop:"label.borderRadius",type:"inputNumber",fieldProps:{addonAfter:"px"},defaultValue:0}]:[]}]}}},45340:function(e,t,n){"use strict";n.d(t,{kw:function(){return o},xT:function(){return r}});const r=[{name:"清新",color:["#00a8e1","#99cc00","#e30039","#fcd300","#800080"]},{name:"复古",color:["#FFA69E","#FAE3D9","#B8F2E6","#56E39F","#3A837D"]},{name:"商务",color:["#194f97","#555555","#bd6b08","#00686b","#c82d31"]},{name:"经典",color:["#002c53","#ffa510","#0c84c6","#ffffff","#f74d4d"]},{name:"怀旧",color:["#3b6291","#943c39","#779043","#624c7c","#388498"]}],o={color:r[0].color,title:{show:!0,left:"center",top:8,textStyle:{color:"#FFFFFFFF",fontSize:16,fontWeight:"normal"}},legend:{show:!0,textStyle:{color:"#FFFFFFFF"},top:32},grid:{bottom:34,right:20,left:50,top:60},xAxis:{type:"category",name:"",nameLocation:"middle",nameTruncate:{ellipsis:"...",maxWidth:80},nameTextStyle:{color:"#FFFFFFFF",fontSize:12,fontWeight:"normal",fontStyle:"normal"},axisLabel:{show:!0,color:"#9fadbf",fontSize:12,fontWeight:"normal",fontStyle:"normal"},axisLine:{show:!0,lineStyle:{width:1}},axisTick:{show:!0,lineStyle:{width:1,color:"#ccc"}}},yAxis:{splitLine:{show:!0,lineStyle:{type:"dashed",color:"#36485f"}},type:"category",name:"",nameLocation:"middle",nameTruncate:{ellipsis:"...",maxWidth:80},nameTextStyle:{color:"#FFFFFFFF",fontSize:12,fontWeight:"normal",fontStyle:"normal"},axisLabel:{show:!0,color:"#9fadbf",fontSize:12,fontWeight:"normal",fontStyle:"normal",rotate:0},axisLine:{show:!1,lineStyle:{width:1,color:"#ccc"}},axisTick:{show:!1,lineStyle:{width:1,color:"#ccc"}}},tooltip:{show:!0,trigger:"axis",formatter:"{b} {c}",axisPointer:{type:"line"},textStyle:{color:"#000000FF",fontSize:12,fontWeight:"normal",fontStyle:"normal"},padding:10,borderWidth:1,borderColor:"#ccc",borderRadius:4,backgroundColor:"#FFFFFFFF",extraCssText:""}}},52885:function(e,t,n){"use strict";n.d(t,{u:function(){return _e}});var r=n(9274),o=n(25727),i=n(98389);const a=(e,{manual:t,ready:n=!0,refreshDeps:o=[],refreshDepsAction:i})=>{const a=(0,r.ref)(!1);return(0,r.watchEffect)((()=>{t||!0===e.options.refreshDeps||(a.value=(0,r.unref)(n))})),o instanceof Array?(0,r.watch)([a,...o],(([n])=>{n&&!t&&n&&(i?i():e.refresh())}),{deep:!0,immediate:!1}):(0,r.watch)(a,(n=>{!t&&n&&(i?i():e.refresh())})),{name:"autoRunPlugin",onBefore:()=>{if(!(0,r.unref)(n))return{stopNow:!0}}}};a.onInit=({ready:e=!0,manual:t})=>({loading:!t&&(0,r.unref)(e)});const s=new Map,l=(e,t,n)=>{const r=s.get(e);let o;(null==r?void 0:r.timer)&&clearTimeout(r.timer),t>-1&&(o=setTimeout((()=>{s.delete(e)}),t)),s.set(e,{...n,timer:o})},u=e=>s.get(e),c=new Map,d=e=>c.get(e),h=(e,t)=>{c.set(e,t),t.then((t=>(c.delete(e),t))).catch((t=>{throw c.delete(e),t}))};n(30381);const p={},f=[],g=(e,t)=>{p[e]&&(p[e].forEach((e=>e(t))),f.forEach((n=>n({type:e,data:t}))))},m=(e,t)=>(p[e]||(p[e]=[]),p[e].push(t),function(){const n=p[e].indexOf(t);p[e].splice(n,1)}),v=(e,{cacheKey:t,cacheTime:n=3e5,staleTime:o=0,setCache:i,getCache:a})=>{const s=(0,r.ref)(),c=(0,r.ref)(),p=(e,t)=>{i?i(t):l(e,n,t),g(e,t.data)},f=(e,t=[])=>a?a(t):u(e);return(0,r.watchEffect)((()=>{if(!t)return;const n=f(t);n&&Object.hasOwnProperty.call(n,"data")&&(e.state.data=n.data,e.state.params=n.params,(-1===o||(new Date).getTime()-n.time<=o)&&(e.state.loading=!1)),s.value=m(t,(t=>{e.setState({data:t})}))})),(0,r.onScopeDispose)((()=>{var e;null==(e=s.value)||e.call(s)})),t?{name:"cachePlugin",onBefore:e=>{const n=f(t,e);return n&&Object.hasOwnProperty.call(n,"data")?-1===o||(new Date).getTime()-n.time<=o?{loading:!1,data:null==n?void 0:n.data,returnNow:!0}:{data:null==n?void 0:n.data}:{}},onRequest:(e,n)=>{let r=d(t);return r&&r!==c.value||(r=e(...n),c.value=r,h(t,r)),{servicePromise:r}},onSuccess:(n,r)=>{var o;t&&(null==(o=s.value)||o.call(s),p(t,{data:n,params:r,time:(new Date).getTime()}),s.value=m(t,(t=>{e.setState({data:t})})))},onMutate:n=>{var r;t&&(null==(r=s.value)||r.call(s),p(t,{data:n,params:e.state.params,time:(new Date).getTime()}),s.value=m(t,(t=>{e.setState({data:t})})))}}:{}};var y=n(15529),b=n.n(y);const _=(e,{debounceWait:t,debounceLeading:n,debounceTrailing:o,debounceMaxWait:i})=>{const a=(0,r.ref)(),s=(0,r.computed)((()=>{const e={},t=(0,r.unref)(n),a=(0,r.unref)(o),s=(0,r.unref)(i);return void 0!==t&&(e.leading=t),void 0!==a&&(e.trailing=a),void 0!==s&&(e.maxWait=s),e}));return(0,r.watchEffect)((n=>{if((0,r.unref)(t)){const o=e.runAsync.bind(e);a.value=b()((e=>{e()}),(0,r.unref)(t),s.value),e.runAsync=(...e)=>new Promise(((t,n)=>{var r;null==(r=a.value)||r.call(a,(()=>{o(...e).then(t).catch(n)}))})),n((()=>{var t;null==(t=a.value)||t.cancel(),e.runAsync=o}))}})),(0,r.unref)(t)?{name:"debouncePlugin",onCancel:()=>{var e;null==(e=a.value)||e.cancel()}}:{}};var x=Object.defineProperty,w=(e,t,n)=>t in e?x(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,O=(e,t,n)=>(w(e,"symbol"!==typeof t?t+"":t,n),n);class S{constructor(){O(this,"table",{}),O(this,"hashTable",{})}insert(e){const t=Symbol(e);return this.table[e]=!0,this.hashTable[t]=e,t}find(e){return this.hashTable[e]}}new S;var A=Object.defineProperty,k=(e,t,n)=>t in e?A(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,C=(e,t,n)=>(k(e,"symbol"!==typeof t?t+"":t,n),n);class M{constructor(){C(this,"requestInstances",new Map),C(this,"listeners",[])}emit(e){this.listeners.forEach((t=>t(e)))}subscribe(e){return this.listeners.push(e),()=>{const t=this.listeners.indexOf(e);this.listeners.splice(t,1)}}insert(e,t){this.requestInstances.set(e,{...t}),this.emit({key:e,...t})}update(e,t){this.has(e)&&this.requestInstances.set(e,{...this.requestInstances.get(e),...t})}has(e){return this.requestInstances.has(e)}reset(e){if(this.requestInstances.has(e)){const t=this.requestInstances.get(e);this.requestInstances.clear(),this.insert(e,t)}else this.requestInstances.clear()}getAll(){return this.requestInstances}}new M;const T=(e,{loadingDelay:t})=>{const n=(0,r.ref)(),o=()=>{n.value&&(clearTimeout((0,r.unref)(n.value)),n.value=void 0)};return{name:"loadingDelayPlugin",onFinally:()=>{o();const i=(0,r.unref)(t);i&&(e.setState({loading:!0}),n.value=setTimeout((()=>{e.setState({loading:!1})}),i))},onError:()=>{o()}}};function P(){return!("undefined"===typeof window||!window.document||!window.document.createElement)}const I=!("undefined"===typeof window||!window.document||!window.document.createElement);function $(){return!P()||"hidden"!==document.visibilityState}const E=[];function D(e){return E.push(e),function(){const t=E.indexOf(e);E.splice(t,1)}}if(P()){const e=()=>{if($())for(let e=0;e<E.length;e++){const t=E[e];t()}};window.addEventListener("visibilitychange",e,!1)}const R=(e,{pollingInterval:t,pollingWhenHidden:n=!0,pollingErrorRetryCount:o=-1})=>{let i;const a=(0,r.ref)(),s=(0,r.ref)(0),l=()=>{var e;i&&clearTimeout(i),null==(e=a.value)||e.call(a)};return(0,r.watchEffect)((()=>{(0,r.unref)(t)||l()})),(0,r.unref)(t)?{name:"pollingPlugin",onBefore:()=>{l()},onError:()=>{s.value+=1},onSuccess:()=>{s.value=0},onFinally:()=>{-1===o||-1!==o&&s.value<=o?i=setTimeout((()=>{n||$()?e.refresh():a.value=D((()=>{e.refresh()}))}),(0,r.unref)(t)):s.value=0},onCancel:()=>{l()}}:{}};function N(e,t){let n=!1;return(...r)=>{n||(n=!0,e(...r),setTimeout((()=>{n=!1}),t))}}function L(){return!P()||"undefined"===typeof navigator.onLine||navigator.onLine}const z=[];function V(e){return z.push(e),function(){const t=z.indexOf(e);t>-1&&z.splice(t,1)}}if(I){const e=()=>{if($()&&L())for(let e=0;e<z.length;e++){const t=z[e];t()}};window.addEventListener("visibilitychange",e,!1),window.addEventListener("focus",e,!1)}const B=(e,{refreshOnWindowFocus:t,focusTimespan:n=5e3})=>{const o=(0,r.ref)(),i=()=>{var e;null==(e=o.value)||e.call(o)};return(0,r.watchEffect)((a=>{if((0,r.unref)(t)){const t=N(e.refresh.bind(e),(0,r.unref)(n));o.value=V((()=>{t()}))}a((()=>{i()}))})),(0,r.onScopeDispose)((()=>{i()})),{name:"refreshOnWindowFocusPlugin"}},j=(e,{retryInterval:t,retryCount:n})=>{const o=(0,r.ref)(),i=(0,r.ref)(0),a=(0,r.ref)(!1);return n?{name:"retryPlugin",onBefore:()=>{a.value||(i.value=0),a.value=!1,o.value&&clearTimeout(o.value)},onSuccess:()=>{i.value=0},onError:()=>{if(i.value+=1,-1===n||i.value<=n){const n=null!=t?t:Math.min(1e3*2**i.value,3e4);o.value=setTimeout((()=>{a.value=!0,e.refresh()}),n)}else i.value=0},onCancel:()=>{i.value=0,o.value&&clearTimeout(o.value)}}:{}};var Q=n(80434),F=n.n(Q);const W=(e,{throttleWait:t,throttleLeading:n,throttleTrailing:o})=>{const i=(0,r.computed)((()=>{const e={};return void 0!==(0,r.unref)(n)&&(e.leading=(0,r.unref)(n)),void 0!==(0,r.unref)(o)&&(e.trailing=(0,r.unref)(o)),e})),a=(0,r.computed)((()=>F()((e=>{e()}),(0,r.unref)(t),i.value)));return(0,r.watchEffect)((n=>{if((0,r.unref)(t)){const t=e.runAsync.bind(e);e.runAsync=(...e)=>new Promise(((n,r)=>{var o;null==(o=a.value)||o.call(a,(()=>{t(...e).then(n).catch(r)}))})),n((()=>{var n;e.runAsync=t,null==(n=a.value)||n.cancel()}))}})),(0,r.unref)(t)?{name:"throttlePlugin",onCancel:()=>{var e;null==(e=a.value)||e.cancel()}}:{}},H=e=>"function"===typeof e,Z=e=>"boolean"===typeof e;var G=Object.defineProperty,X=(e,t,n)=>t in e?G(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,U=(e,t,n)=>(X(e,"symbol"!==typeof t?t+"":t,n),n);class Y{constructor(e,t,n,r={}){U(this,"pluginImpls"),U(this,"count",0),U(this,"state",{loading:!1,params:void 0,data:void 0,error:void 0}),U(this,"previousValidData"),this.serviceRef=e,this.options=t,this.setUpdateData=n,this.initState=r,this.state={...this.state,loading:!t.manual,...r}}setState(e={}){this.state={...this.state,...e},this.setUpdateData(this.state)}setData(e,t){console.warn("Please use 'setFetchState' instead of 'setData'"),t instanceof Array?t.forEach((t=>{this.state[t]=e,this.setUpdateData(e,t)})):(this.state[t]=e,this.setUpdateData(e,t))}setFetchState(e,t){t instanceof Array?t.forEach((t=>{this.state[t]=e,this.setUpdateData(e,t)})):(this.state[t]=e,this.setUpdateData(e,t))}runPluginHandler(e,...t){var n,r,o;const i=null==(o=null!=(r=null==(n=this.pluginImpls)?void 0:n.map((n=>{var r;return null==(r=n[e])?void 0:r.call(n,...t)})))?r:[])?void 0:o.filter(Boolean);return Object.assign({},...i)}async runAsync(...e){var t,n,r,o,i,a,s,l,u,c,d;this.count+=1;const h=this.count,{stopNow:p=!1,returnNow:f=!1,...g}=this.runPluginHandler("onBefore",e);if(p)return new Promise((()=>{}));if(this.setState({loading:!0,params:e,...g}),f)return Promise.resolve(g.data);try{null==(n=(t=this.options).onBefore)||n.call(t,e)}catch(m){return this.setState({error:m,loading:!1}),null==(o=(r=this.options).onError)||o.call(r,m,e),this.runPluginHandler("onError",m,e),new Promise((()=>{}))}try{let{servicePromise:t}=this.runPluginHandler("onRequest",this.serviceRef.value,e);const n=t=>{var n,r,o,i;if(h!==this.count)return new Promise((()=>{}));const a=this.options.formatResult?this.options.formatResult(t):t;return this.setState({data:a,error:void 0,loading:!1}),null==(r=(n=this.options).onSuccess)||r.call(n,a,e),this.runPluginHandler("onSuccess",a,e),this.previousValidData=a,null==(i=(o=this.options).onFinally)||i.call(o,e,a,void 0),h===this.count&&this.runPluginHandler("onFinally",e,a,void 0),a};t||(t=this.serviceRef.value(...e));const r=await t;return n(r)}catch(m){if(h!==this.count)return new Promise((()=>{}));throw this.setState({error:m,loading:!1}),null==(a=(i=this.options).onError)||a.call(i,m,e),this.runPluginHandler("onError",m,e),(H(null==(s=this.options)?void 0:s.rollbackOnError)&&(null==(l=this.options)?void 0:l.rollbackOnError(e))||Z(null==(u=this.options)?void 0:u.rollbackOnError)&&this.options.rollbackOnError)&&this.setState({data:this.previousValidData}),null==(d=(c=this.options).onFinally)||d.call(c,e,void 0,m),h===this.count&&this.runPluginHandler("onFinally",e,void 0,m),m}}run(...e){this.runAsync(...e).catch((e=>{this.options.onError||console.error(e)}))}cancel(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel")}refresh(){this.run(...this.state.params||[])}refreshAsync(){return this.runAsync(...this.state.params||[])}mutate(e){const t=H(e)?e(this.state.data):e;this.runPluginHandler("onMutate",t),this.setState({data:t})}}const q=Symbol("USEREQUEST_GLOBAL_OPTIONS_PROVIDE_KEY");function K(e){const t=Object.keys(e);return 4===t.filter((e=>["data","loading","params","error"].includes(e))).length}function J(e,t={},n=[]){const o=(0,r.inject)(q,{}),{initialData:i,manual:a=!1,ready:s=!0,...l}={...null!=o?o:{},...null!=t?t:{}},u={manual:a,ready:s,initialData:i,...l},c=(0,r.ref)(e),d=(0,r.reactive)({data:i,loading:!1,params:void 0,error:void 0}),h=(e,t)=>{t?d[t]=e:K(e)&&(d.data=e.data,d.loading=e.loading,d.error=e.error,d.params=e.params)},p=n.map((e=>{var t;return null==(t=null==e?void 0:e.onInit)?void 0:t.call(e,u)})).filter(Boolean),f=new Y(c,u,h,Object.assign({},...p,d));f.options=u,f.pluginImpls=n.map((e=>e(f,u)));const g=(0,r.computed)((()=>(0,r.isRef)(s)?s.value:s));if((0,r.watchEffect)((()=>{if(!a){const e=f.state.params||t.defaultParams||[];g.value&&!0===f.options.refreshDeps&&c.value&&f.run(...e)}})),!a&&!0!==f.options.refreshDeps){const e=f.state.params||t.defaultParams||[];(0,r.unref)(s)&&f.run(...e)}return(0,r.onScopeDispose)((()=>{f.cancel()})),{...(0,r.toRefs)(d),cancel:f.cancel.bind(f),refresh:f.refresh.bind(f),refreshAsync:f.refreshAsync.bind(f),run:f.run.bind(f),runAsync:f.runAsync.bind(f),mutate:f.mutate.bind(f)}}const ee=(e,t)=>function(n,r={},o=[]){let i=e;const a=t||[];for(let e=a.length;e--;)i=a[e](i);return i(n,r,o)};function te(e,t,n){var r;const o=null==(r=[null,_,T,R,B,W,a,v,j])?void 0:r.filter(Boolean);return ee(J,null==t?void 0:t.use)(e,t,[...n||[],...o])}
  2. /*! js-cookie v3.0.5 | MIT */
  3. function ne(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var re={read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function oe(e,t){function n(n,r,o){if("undefined"!==typeof document){o=ne({},t,o),"number"===typeof o.expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),n=encodeURIComponent(n).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var i="";for(var a in o)o[a]&&(i+="; "+a,!0!==o[a]&&(i+="="+o[a].split(";")[0]));return document.cookie=n+"="+e.write(r,n)+i}}function r(t){if("undefined"!==typeof document&&(!arguments.length||t)){for(var n=document.cookie?document.cookie.split("; "):[],r={},o=0;o<n.length;o++){var i=n[o].split("="),a=i.slice(1).join("=");try{var s=decodeURIComponent(i[0]);if(r[s]=e.read(a,s),t===s)break}catch(l){}}return t?r[t]:r}}return Object.create({set:n,get:r,remove:function(e,t){n(e,"",ne({},t,{expires:-1}))},withAttributes:function(e){return oe(this.converter,ne({},this.attributes,e))},withConverter:function(e){return oe(ne({},this.converter,e),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}oe(re,{path:"/"});const ie=!("undefined"===typeof window||!window.document||!window.document.createElement);function ae(e,t){var n,o;if(!ie)return;if(!e)return t;let i;return i="function"===typeof e?e():(0,r.isRef)(e)?null!=(o=null==(n=e.value)?void 0:n.$el)?o:e.value:e,i}function se(e,t){if(e===t)return!0;for(let n=0;n<e.length;n++)if(!Object.is(e[n],t[n]))return!1;return!0}const le=e=>{const t=(t,n,o)=>{const i=(0,r.ref)(!1),a=(0,r.ref)([]),s=(0,r.ref)([]),l=(0,r.ref)();e((()=>{var e;const r=Array.isArray(o)?o:[o],u=r.map((e=>ae(e)));if(!i.value)return i.value=!0,a.value=u,s.value=n,void(l.value=t());u.length===a.value.length&&se(u,a.value)&&se(n,s.value)||(null==(e=l.value)||e.call(l),a.value=u,s.value=n,l.value=t())})),(0,r.onUnmounted)((()=>{var e;null==(e=l.value)||e.call(l),i.value=!1}))};return t};le(r.watchEffect);function ue(e){return"function"===typeof e}function ce(e){function t(t,n){let o;try{o=e()}catch(c){console.error(c)}const i=e=>(null==n?void 0:n.serializer)?null==n?void 0:n.serializer(e):JSON.stringify(e),a=e=>(null==n?void 0:n.deserializer)?null==n?void 0:n.deserializer(e):JSON.parse(e);function s(){try{const e=null==o?void 0:o.getItem((0,r.unref)(t));if(e)return a(e)}catch(e){console.error(e)}return ue(null==n?void 0:n.defaultValue)?null==n?void 0:n.defaultValue():null==n?void 0:n.defaultValue}const l=(0,r.ref)(s());(0,r.watchEffect)((()=>{t&&(l.value=s())}));const u=e=>{if("undefined"===typeof e)l.value=void 0,null==o||o.removeItem((0,r.unref)(t));else if(ue(e)){const a=e(l.value);try{l.value=a,null==o||o.setItem((0,r.unref)(t),i(a))}catch(n){console.error(n)}}else try{l.value=e,null==o||o.setItem((0,r.unref)(t),i(e))}catch(n){console.error(n)}};return[(0,r.readonly)(l),u]}return t}ce((()=>ie?localStorage:void 0));var de=n(52723),he=n.n(de),pe=Object.defineProperty,fe=(e,t,n)=>t in e?pe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ge=(e,t,n)=>(fe(e,"symbol"!==typeof t?t+"":t,n),n);class me{constructor(){ge(this,"subscriptions",new Map),ge(this,"emitEffectCache",new Map),ge(this,"useSubscription",((e,t)=>{const n=(0,r.ref)();(0,r.watchEffect)((r=>{var o,i;function a(e){n.value&&n.value(e)}n.value=t;const s=null!=(i=null==(o=this.subscriptions)?void 0:o.get(e))?i:[];s.push(a),this.subscriptions.set(e,s),this.emitEffect(e),r((()=>{this.subscriptions.delete(e)}))}))})),ge(this,"emit",((e,...t)=>{if("string"!==typeof e&&"number"!==typeof e)throw new TypeError("event must be string or number !");{const n=this.subscriptions.get(e);null==n||n.forEach((n=>{null==n||n({params:he()(t),event:e})})),this.emitEffectCache.set(e,{params:he()(t),event:e})}})),ge(this,"emitEffect",(e=>{const t=this.emitEffectCache.get(e),n=this.subscriptions.get(e);t&&(null==n||n.forEach((e=>{null==e||e({...t})})))})),ge(this,"removeListener",(e=>{this.subscriptions.delete(e)})),ge(this,"clear",(()=>{this.subscriptions.clear()})),this.clear()}}new me;n(9008);n(86608);ce((()=>ie?sessionStorage:void 0));n(85194),n(27092),n(68925),n(31796),n(21467),n(22064),n(92114);n(74920);var ve=n(83848),ye=n(33163),be=n(50527);const _e=e=>{const t=e.dataSource||{},n=(0,r.ref)(),a=(0,r.ref)(),s=(0,r.ref)(t?.data?.series),l=(0,r.computed)((()=>async()=>await fetch(e.dataSource.url,{method:e.dataSource.method}).then((e=>e.json())))),{run:u,refresh:c,cancel:d,data:h,loading:p}=te(l.value,{defaultParams:e.dataSource.params,manual:!0,pollingInterval:1e3*(e.dataSource?.refreshTime||0),onError:t=>{console.error(t),ye.Ay.error(e.dataSource.url+"请求失败")}});e.dataSource.sourceType===ve.o.API&&u(),(0,r.watch)((()=>h.value),(async t=>{if(t&&e.dataSource.sourceType===ve.o.API){let r=t;e.dataSource.dataProcess&&(r=await(0,be.O4)(e.dataSource.dataProcess,JSON.stringify(t))),n.value=r.xAxis||{data:r.xData},a.value=r.yAxis||{data:r.yData},s.value=r.series}}),{deep:!0}),(0,r.watch)((()=>[e.dataSource.sourceType,e.dataSource.method]),(()=>{if(e.dataSource.sourceType===ve.o.API)c();else{d();const t=e.dataSource||{},{xData:r,yData:o,series:i}=t?.data||{};r&&(n.value={data:r}),o&&(a.value={data:o}),i.value=i}}),{deep:!0});const f=(0,r.computed)((()=>{const t=(0,o.A)(e,["width","height","dataSource"]),r=t?.label||{},l=(0,i.A)({xAxis:n.value,yAxis:a.value,series:s.value?.map((e=>{const n=t.series?.[e.type]||{};return{...r,...e,...n}}))},t);return console.log("option result:",l),l}));return{options:f,loading:p}}},50527:function(e,t,n){"use strict";n.d(t,{Ex:function(){return s},O4:function(){return l},iN:function(){return a}});n(60726),n(82765),n(13312);var r=n(98389),o=n(45340),i=n(83848);function a(e){return(0,r.A)(e,o.kw)}const s={type:Object,default:()=>({sourceType:i.o.STATIC,data:[],url:"",method:"GET",params:{},headers:{},refreshTime:0,dataProcess:()=>[]})},l=(e,t)=>new Promise(((n,r)=>{const o=new Blob([`\n self.onmessage = function(e) {\n self.postMessage((${e}).call(null, e.data));\n }\n `],{type:"application/javascript"}),i=new Worker(URL.createObjectURL(o));i.postMessage(JSON.parse(t)),i.onmessage=e=>{i.terminate(),n(e.data)},i.onerror=e=>{i.terminate(),r(e)}}))},74112:function(e,t,n){"use strict";n.d(t,{O:function(){return cp}});var r=n(9274),o=(n(30381),n(69751)),i=n(47960),a=n(16155),s=n(87051),l=n(66041),u=n(5530);const c=()=>({prefixCls:String,activeKey:(0,l.tK)([Array,Number,String]),defaultActiveKey:(0,l.tK)([Array,Number,String]),accordion:(0,l.HE)(),destroyInactivePanel:(0,l.HE)(),bordered:(0,l.HE)(),expandIcon:(0,l.Fg)(),openAnimation:u.A.object,expandIconPosition:(0,l.WO)(),collapsible:(0,l.WO)(),ghost:(0,l.HE)(),onChange:(0,l.Fg)(),"onUpdate:activeKey":(0,l.Fg)()}),d=()=>({openAnimation:u.A.object,prefixCls:String,header:u.A.any,headerClass:String,showArrow:(0,l.HE)(),isActive:(0,l.HE)(),destroyInactivePanel:(0,l.HE)(),disabled:(0,l.HE)(),accordion:(0,l.HE)(),forceRender:(0,l.HE)(),expandIcon:(0,l.Fg)(),extra:u.A.any,panelKey:(0,l.tK)(),collapsible:(0,l.WO)(),role:String,onItemClick:(0,l.Fg)()});var h=n(92389),p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},f=p,g=n(29847);function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){v(e,t,n[t])}))}return e}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=function(e,t){var n=m({},e,t.attrs);return(0,r.createVNode)(g.A,m({},n,{icon:f}),null)};y.displayName="RightOutlined",y.inheritAttrs=!1;var b=y,_=n(32480),x=n(13389),w=n(3551),O=n(33063),S=n(98657),A=n(86049),k=n(94471),C=n(96704),M=n(69729);const T=e=>{const{componentCls:t,collapseContentBg:n,padding:r,collapseContentPaddingHorizontal:o,collapseHeaderBg:i,collapseHeaderPadding:a,collapsePanelBorderRadius:s,lineWidth:l,lineType:u,colorBorder:c,colorText:d,colorTextHeading:h,colorTextDisabled:p,fontSize:f,lineHeight:g,marginSM:m,paddingSM:v,motionDurationSlow:y,fontSizeIcon:b}=e,_=`${l}px ${u} ${c}`;return{[t]:(0,S.A)((0,S.A)({},(0,M.dF)(e)),{backgroundColor:i,border:_,borderBottom:0,borderRadius:`${s}px`,["&-rtl"]:{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:_,["&:last-child"]:{[`\n &,\n & > ${t}-header`]:{borderRadius:`0 0 ${s}px ${s}px`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:a,color:h,lineHeight:g,cursor:"pointer",transition:`all ${y}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:f*g,display:"flex",alignItems:"center",paddingInlineEnd:m},[`${t}-arrow`]:(0,S.A)((0,S.A)({},(0,M.Nk)()),{fontSize:b,svg:{transition:`transform ${y}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-header-collapsible-only`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"},[`${t}-expand-icon`]:{cursor:"pointer"}},[`${t}-icon-collapsible-only`]:{cursor:"default",[`${t}-expand-icon`]:{cursor:"pointer"}},[`&${t}-no-arrow`]:{[`> ${t}-header`]:{paddingInlineStart:v}}},[`${t}-content`]:{color:d,backgroundColor:n,borderTop:_,[`& > ${t}-content-box`]:{padding:`${r}px ${o}px`},["&-hidden"]:{display:"none"}},[`${t}-item:last-child`]:{[`> ${t}-content`]:{borderRadius:`0 0 ${s}px ${s}px`}},[`& ${t}-item-disabled > ${t}-header`]:{["\n &,\n & > .arrow\n "]:{color:p,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:m}}}}})}},P=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow svg`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},I=e=>{const{componentCls:t,collapseHeaderBg:n,paddingXXS:r,colorBorder:o}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${o}`},[`\n > ${t}-item:last-child,\n > ${t}-item:last-child ${t}-header\n `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},$=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}};var E=(0,k.A)("Collapse",(e=>{const t=(0,C.h1)(e,{collapseContentBg:e.colorBgContainer,collapseHeaderBg:e.colorFillAlter,collapseHeaderPadding:`${e.paddingSM}px ${e.padding}px`,collapsePanelBorderRadius:e.borderRadiusLG,collapseContentPaddingHorizontal:16});return[T(t),I(t),$(t),P(t),(0,A.A)(t)]}));function D(e){let t=e;if(!Array.isArray(t)){const e=typeof t;t="number"===e||"string"===e?[t]:[]}return t.map((e=>String(e)))}var R=(0,r.defineComponent)({compatConfig:{MODE:3},name:"ACollapse",inheritAttrs:!1,props:(0,i.A)(c(),{accordion:!1,destroyInactivePanel:!1,bordered:!0,expandIconPosition:"start"}),slots:Object,setup(e,t){let{attrs:n,slots:i,emit:l}=t;const u=(0,r.ref)(D((0,_.A)([e.activeKey,e.defaultActiveKey])));(0,r.watch)((()=>e.activeKey),(()=>{u.value=D(e.activeKey)}),{deep:!0});const{prefixCls:c,direction:d,rootPrefixCls:p}=(0,w.A)("collapse",e),[f,g]=E(c),m=(0,r.computed)((()=>{const{expandIconPosition:t}=e;return void 0!==t?t:"rtl"===d.value?"end":"start"})),v=t=>{const{expandIcon:n=i.expandIcon}=e,o=n?n(t):(0,r.createVNode)(b,{rotate:t.isActive?90:void 0},null);return(0,r.createVNode)("div",{class:[`${c.value}-expand-icon`,g.value],onClick:()=>["header","icon"].includes(e.collapsible)&&S(t.panelKey)},[(0,a.zO)(Array.isArray(n)?o[0]:o)?(0,s.Ob)(o,{class:`${c.value}-arrow`},!1):o])},y=t=>{void 0===e.activeKey&&(u.value=t);const n=e.accordion?t[0]:t;l("update:activeKey",n),l("change",n)},S=t=>{let n=u.value;if(e.accordion)n=n[0]===t?[]:[t];else{n=[...n];const e=n.indexOf(t),r=e>-1;r?n.splice(e,1):n.push(t)}y(n)},A=(t,n)=>{var r,o,i;if((0,a.sG)(t))return;const l=u.value,{accordion:d,destroyInactivePanel:h,collapsible:f,openAnimation:g}=e,m=g||(0,O.A)(`${p.value}-motion-collapse`),y=String(null!==(r=t.key)&&void 0!==r?r:n),{header:b=(null===(i=null===(o=t.children)||void 0===o?void 0:o.header)||void 0===i?void 0:i.call(o)),headerClass:_,collapsible:x,disabled:w}=t.props||{};let A=!1;A=d?l[0]===y:l.indexOf(y)>-1;let k=null!==x&&void 0!==x?x:f;(w||""===w)&&(k="disabled");const C={key:y,panelKey:y,header:b,headerClass:_,isActive:A,prefixCls:c.value,destroyInactivePanel:h,openAnimation:m,accordion:d,onItemClick:"disabled"===k?null:S,expandIcon:v,collapsible:k};return(0,s.Ob)(t,C)},k=()=>{var e;return(0,a.MI)(null===(e=i.default)||void 0===e?void 0:e.call(i)).map(A)};return()=>{const{accordion:t,bordered:i,ghost:a}=e,s=(0,x.A)(c.value,{[`${c.value}-borderless`]:!i,[`${c.value}-icon-position-${m.value}`]:!0,[`${c.value}-rtl`]:"rtl"===d.value,[`${c.value}-ghost`]:!!a,[n.class]:!!n.class},g.value);return f((0,r.createVNode)("div",(0,o.A)((0,o.A)({class:s},(0,h.xc)(n)),{},{style:n.style,role:t?"tablist":null}),[k()]))}}}),N=(0,r.defineComponent)({compatConfig:{MODE:3},name:"PanelContent",props:d(),setup(e,t){let{slots:n}=t;const o=(0,r.shallowRef)(!1);return(0,r.watchEffect)((()=>{(e.isActive||e.forceRender)&&(o.value=!0)})),()=>{var t;if(!o.value)return null;const{prefixCls:i,isActive:a,role:s}=e;return(0,r.createVNode)("div",{class:(0,x.A)(`${i}-content`,{[`${i}-content-active`]:a,[`${i}-content-inactive`]:!a}),role:s},[(0,r.createVNode)("div",{class:`${i}-content-box`},[null===(t=n.default)||void 0===t?void 0:t.call(n)])])}}}),L=n(41038),z=n(37205),V=(0,r.defineComponent)({compatConfig:{MODE:3},name:"ACollapsePanel",inheritAttrs:!1,props:(0,i.A)(d(),{showArrow:!0,isActive:!1,onItemClick(){},headerClass:"",forceRender:!1}),slots:Object,setup(e,t){let{slots:n,emit:i,attrs:a}=t;(0,z.A)(void 0===e.disabled,"Collapse.Panel",'`disabled` is deprecated. Please use `collapsible="disabled"` instead.');const{prefixCls:s}=(0,w.A)("collapse",e),l=()=>{i("itemClick",e.panelKey)},u=e=>{"Enter"!==e.key&&13!==e.keyCode&&13!==e.which||l()};return()=>{var t,i;const{header:c=(null===(t=n.header)||void 0===t?void 0:t.call(n)),headerClass:d,isActive:h,showArrow:p,destroyInactivePanel:f,accordion:g,forceRender:m,openAnimation:v,expandIcon:y=n.expandIcon,extra:b=(null===(i=n.extra)||void 0===i?void 0:i.call(n)),collapsible:_}=e,w="disabled"===_,O=s.value,A=(0,x.A)(`${O}-header`,{[d]:d,[`${O}-header-collapsible-only`]:"header"===_,[`${O}-icon-collapsible-only`]:"icon"===_}),k=(0,x.A)({[`${O}-item`]:!0,[`${O}-item-active`]:h,[`${O}-item-disabled`]:w,[`${O}-no-arrow`]:!p,[`${a.class}`]:!!a.class});let C=(0,r.createVNode)("i",{class:"arrow"},null);p&&"function"===typeof y&&(C=y(e));const M=(0,r.withDirectives)((0,r.createVNode)(N,{prefixCls:O,isActive:h,forceRender:m,role:g?"tabpanel":null},{default:n.default}),[[r.vShow,h]]),T=(0,S.A)({appear:!1,css:!1},v);return(0,r.createVNode)("div",(0,o.A)((0,o.A)({},a),{},{class:k}),[(0,r.createVNode)("div",{class:A,onClick:()=>!["header","icon"].includes(_)&&l(),role:g?"tab":"button",tabindex:w?-1:0,"aria-expanded":h,onKeypress:u},[p&&C,(0,r.createVNode)("span",{onClick:()=>"header"===_&&l(),class:`${O}-header-text`},[c]),b&&(0,r.createVNode)("div",{class:`${O}-extra`},[b])]),(0,r.createVNode)(L.Ay,T,{default:()=>[!f||h?M:null]})])}}});R.Panel=V,R.install=function(e){return e.component(R.name,R),e.component(V.name,V),e};var B=R,j=n(41145),Q=n(5068);const F=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o}=e;return{[t]:(0,S.A)((0,S.A)({},(0,M.dF)(e)),{borderBlockStart:`${o}px solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",margin:`0 ${e.dividerVerticalGutterMargin}px`,verticalAlign:"middle",borderTop:0,borderInlineStart:`${o}px solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${o}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:"5%"},"&::after":{width:"95%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:"95%"},"&::after":{width:"5%"}},[`${t}-inner-text`]:{display:"inline-block",padding:"0 1em"},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${o}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}};var W=(0,k.A)("Divider",(e=>{const t=(0,C.h1)(e,{dividerVerticalGutterMargin:e.marginXS,dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG});return[F(t)]}),{sizePaddingEdgeHorizontal:0});const H=()=>({prefixCls:String,type:{type:String,default:"horizontal"},dashed:{type:Boolean,default:!1},orientation:{type:String,default:"center"},plain:{type:Boolean,default:!1},orientationMargin:[String,Number]}),Z=(0,r.defineComponent)({name:"ADivider",inheritAttrs:!1,compatConfig:{MODE:3},props:H(),setup(e,t){let{slots:n,attrs:i}=t;const{prefixCls:s,direction:l}=(0,w.A)("divider",e),[u,c]=W(s),d=(0,r.computed)((()=>"left"===e.orientation&&null!=e.orientationMargin)),h=(0,r.computed)((()=>"right"===e.orientation&&null!=e.orientationMargin)),p=(0,r.computed)((()=>{const{type:t,dashed:n,plain:r}=e,o=s.value;return{[o]:!0,[c.value]:!!c.value,[`${o}-${t}`]:!0,[`${o}-dashed`]:!!n,[`${o}-plain`]:!!r,[`${o}-rtl`]:"rtl"===l.value,[`${o}-no-default-orientation-margin-left`]:d.value,[`${o}-no-default-orientation-margin-right`]:h.value}})),f=(0,r.computed)((()=>{const t="number"===typeof e.orientationMargin?`${e.orientationMargin}px`:e.orientationMargin;return(0,S.A)((0,S.A)({},d.value&&{marginLeft:t}),h.value&&{marginRight:t})})),g=(0,r.computed)((()=>e.orientation.length>0?"-"+e.orientation:e.orientation));return()=>{var e;const t=(0,a.MI)(null===(e=n.default)||void 0===e?void 0:e.call(n));return u((0,r.createVNode)("div",(0,o.A)((0,o.A)({},i),{},{class:[p.value,t.length?`${s.value}-with-text ${s.value}-with-text${g.value}`:"",i.class],role:"separator"}),[t.length?(0,r.createVNode)("span",{class:`${s.value}-inner-text`,style:f.value},[t]):null]))}}});var G=(0,l.GU)(Z),X=n(58412),U=n(83436),Y=n(26347),q=n(6003),K=n(24275),J="[object Number]";function ee(e){return"number"==typeof e||(0,K.A)(e)&&(0,q.A)(e)==J}var te=ee,ne=n(59662),re=n(68740),oe=n(1592),ie=n(94379),ae=n(74220),se=n(5347),le=n(52002),ue=n(38624);function ce(e){const t=(0,r.ref)(null),n=(0,r.reactive)((0,S.A)({},e)),o=(0,r.ref)([]),i=e=>{null===t.value&&(o.value=[],t.value=(0,ue.A)((()=>{let e;o.value.forEach((t=>{e=(0,S.A)((0,S.A)({},e),t)})),(0,S.A)(n,e),t.value=null}))),o.value.push(e)};return(0,r.onMounted)((()=>{t.value&&ue.A.cancel(t.value)})),[n,i]}function de(e,t,n,r){const o=t+n,i=(n-r)/2;if(n>r){if(t>0)return{[e]:i};if(t<0&&o<r)return{[e]:-i}}else if(t<0||o>r)return{[e]:t<0?i:-i};return{}}function he(e,t,n,r){const{width:o,height:i}=(0,ne.XV)();let a=null;return e<=o&&t<=i?a={x:0,y:0}:(e>o||t>i)&&(a=(0,S.A)((0,S.A)({},de("x",n,e,o)),de("y",r,t,i))),a}var pe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const fe=Symbol("previewGroupContext"),ge={provide:e=>{(0,r.provide)(fe,e)},inject:()=>(0,r.inject)(fe,{isPreviewGroup:(0,r.shallowRef)(!1),previewUrls:(0,r.computed)((()=>new Map)),setPreviewUrls:()=>{},current:(0,r.ref)(null),setCurrent:()=>{},setShowPreview:()=>{},setMousePosition:()=>{},registerImage:null,rootClassName:""})},me=()=>({previewPrefixCls:String,preview:{type:[Boolean,Object],default:!0},icons:{type:Object,default:()=>({})}}),ve=(0,r.defineComponent)({compatConfig:{MODE:3},name:"PreviewGroup",inheritAttrs:!1,props:me(),setup(e,t){let{slots:n}=t;const i=(0,r.computed)((()=>{const t={visible:void 0,onVisibleChange:()=>{},getContainer:void 0,current:0};return"object"===typeof e.preview?Ae(e.preview,t):t})),a=(0,r.reactive)(new Map),s=(0,r.ref)(),l=(0,r.computed)((()=>i.value.visible)),u=(0,r.computed)((()=>i.value.getContainer)),c=(e,t)=>{var n,r;null===(r=(n=i.value).onVisibleChange)||void 0===r||r.call(n,e,t)},[d,h]=(0,re.A)(!!l.value,{value:l,onChange:c}),p=(0,r.ref)(null),f=(0,r.computed)((()=>void 0!==l.value)),g=(0,r.computed)((()=>Array.from(a.keys()))),m=(0,r.computed)((()=>g.value[i.value.current])),v=(0,r.computed)((()=>new Map(Array.from(a).filter((e=>{let[,{canPreview:t}]=e;return!!t})).map((e=>{let[t,{url:n}]=e;return[t,n]}))))),y=function(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];a.set(e,{url:t,canPreview:n})},b=e=>{s.value=e},_=e=>{p.value=e},x=function(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const r=()=>{a.delete(e)};return a.set(e,{url:t,canPreview:n}),r},w=e=>{null===e||void 0===e||e.stopPropagation(),h(!1),_(null)};return(0,r.watch)(m,(e=>{b(e)}),{immediate:!0,flush:"post"}),(0,r.watchEffect)((()=>{d.value&&f.value&&b(m.value)}),{flush:"post"}),ge.provide({isPreviewGroup:(0,r.shallowRef)(!0),previewUrls:v,setPreviewUrls:y,current:s,setCurrent:b,setShowPreview:h,setMousePosition:_,registerImage:x}),()=>{const t=pe(i.value,[]);return(0,r.createVNode)(r.Fragment,null,[n.default&&n.default(),(0,r.createVNode)(we,(0,o.A)((0,o.A)({},t),{},{"ria-hidden":!d.value,visible:d.value,prefixCls:e.previewPrefixCls,onClose:w,mousePosition:p.value,src:v.value.get(s.value),icons:e.icons,getContainer:u.value}),null)])}}});var ye=ve;const be={x:0,y:0},_e=(0,S.A)((0,S.A)({},(0,ie.j)()),{src:String,alt:String,rootClassName:String,icons:{type:Object,default:()=>({})}}),xe=(0,r.defineComponent)({compatConfig:{MODE:3},name:"Preview",inheritAttrs:!1,props:_e,emits:["close","afterClose"],setup(e,t){let{emit:n,attrs:i}=t;const{rotateLeft:a,rotateRight:s,zoomIn:l,zoomOut:u,close:c,left:d,right:h,flipX:p,flipY:f}=(0,r.reactive)(e.icons),g=(0,r.shallowRef)(1),m=(0,r.shallowRef)(0),v=(0,r.reactive)({x:1,y:1}),[y,b]=ce(be),_=()=>n("close"),w=(0,r.shallowRef)(),O=(0,r.reactive)({originX:0,originY:0,deltaX:0,deltaY:0}),A=(0,r.shallowRef)(!1),k=ge.inject(),{previewUrls:C,current:M,isPreviewGroup:T,setCurrent:P}=k,I=(0,r.computed)((()=>C.value.size)),$=(0,r.computed)((()=>Array.from(C.value.keys()))),E=(0,r.computed)((()=>$.value.indexOf(M.value))),D=(0,r.computed)((()=>T.value?C.value.get(M.value):e.src)),R=(0,r.computed)((()=>T.value&&I.value>1)),N=(0,r.shallowRef)({wheelDirection:0}),L=()=>{g.value=1,m.value=0,v.x=1,v.y=1,b(be),n("afterClose")},z=e=>{e?g.value+=.5:g.value++,b(be)},V=e=>{g.value>1&&(e?g.value-=.5:g.value--),b(be)},B=()=>{m.value+=90},j=()=>{m.value-=90},Q=()=>{v.x=-v.x},F=()=>{v.y=-v.y},W=e=>{e.preventDefault(),e.stopPropagation(),E.value>0&&P($.value[E.value-1])},H=e=>{e.preventDefault(),e.stopPropagation(),E.value<I.value-1&&P($.value[E.value+1])},Z=(0,x.A)({[`${e.prefixCls}-moving`]:A.value}),G=`${e.prefixCls}-operations-operation`,X=`${e.prefixCls}-operations-icon`,U=[{icon:c,onClick:_,type:"close"},{icon:l,onClick:()=>z(),type:"zoomIn"},{icon:u,onClick:()=>V(),type:"zoomOut",disabled:(0,r.computed)((()=>1===g.value))},{icon:s,onClick:B,type:"rotateRight"},{icon:a,onClick:j,type:"rotateLeft"},{icon:p,onClick:Q,type:"flipX"},{icon:f,onClick:F,type:"flipY"}],Y=()=>{if(e.visible&&A.value){const e=w.value.offsetWidth*g.value,t=w.value.offsetHeight*g.value,{left:n,top:r}=(0,ne.A3)(w.value),o=m.value%180!==0;A.value=!1;const i=he(o?t:e,o?e:t,n,r);i&&b((0,S.A)({},i))}},q=e=>{0===e.button&&(e.preventDefault(),e.stopPropagation(),O.deltaX=e.pageX-y.x,O.deltaY=e.pageY-y.y,O.originX=y.x,O.originY=y.y,A.value=!0)},K=t=>{e.visible&&A.value&&b({x:t.pageX-O.deltaX,y:t.pageY-O.deltaY})},J=t=>{if(!e.visible)return;t.preventDefault();const n=t.deltaY;N.value={wheelDirection:n}},ee=t=>{e.visible&&R.value&&(t.preventDefault(),t.keyCode===se.A.LEFT?E.value>0&&P($.value[E.value-1]):t.keyCode===se.A.RIGHT&&E.value<I.value-1&&P($.value[E.value+1]))},te=()=>{e.visible&&(1!==g.value&&(g.value=1),y.x===be.x&&y.y===be.y||b(be))};let re=()=>{};return(0,r.onMounted)((()=>{(0,r.watch)([()=>e.visible,A],(()=>{let e,t;re();const n=(0,ae.A)(window,"mouseup",Y,!1),r=(0,ae.A)(window,"mousemove",K,!1),o=(0,ae.A)(window,"wheel",J,{passive:!1}),i=(0,ae.A)(window,"keydown",ee,!1);try{window.top!==window.self&&(e=(0,ae.A)(window.top,"mouseup",Y,!1),t=(0,ae.A)(window.top,"mousemove",K,!1))}catch(a){(0,le.$e)(!1,`[vc-image] ${a}`)}re=()=>{n.remove(),r.remove(),o.remove(),i.remove(),e&&e.remove(),t&&t.remove()}}),{flush:"post",immediate:!0}),(0,r.watch)([N],(()=>{const{wheelDirection:e}=N.value;e>0?V(!0):e<0&&z(!0)}))})),(0,r.onUnmounted)((()=>{re()})),()=>{const{visible:t,prefixCls:n,rootClassName:a}=e;return(0,r.createVNode)(oe.A,(0,o.A)((0,o.A)({},i),{},{transitionName:e.transitionName,maskTransitionName:e.maskTransitionName,closable:!1,keyboard:!0,prefixCls:n,onClose:_,afterClose:L,visible:t,wrapClassName:Z,rootClassName:a,getContainer:e.getContainer}),{default:()=>[(0,r.createVNode)("div",{class:[`${e.prefixCls}-operations-wrapper`,a]},[(0,r.createVNode)("ul",{class:`${e.prefixCls}-operations`},[U.map((t=>{let{icon:n,onClick:o,type:i,disabled:a}=t;return(0,r.createVNode)("li",{class:(0,x.A)(G,{[`${e.prefixCls}-operations-operation-disabled`]:a&&(null===a||void 0===a?void 0:a.value)}),onClick:o,key:i},[(0,r.cloneVNode)(n,{class:X})])}))])]),(0,r.createVNode)("div",{class:`${e.prefixCls}-img-wrapper`,style:{transform:`translate3d(${y.x}px, ${y.y}px, 0)`}},[(0,r.createVNode)("img",{onMousedown:q,onDblclick:te,ref:w,class:`${e.prefixCls}-img`,src:D.value,alt:e.alt,style:{transform:`scale3d(${v.x*g.value}, ${v.y*g.value}, 1) rotate(${m.value}deg)`}},null)]),R.value&&(0,r.createVNode)("div",{class:(0,x.A)(`${e.prefixCls}-switch-left`,{[`${e.prefixCls}-switch-left-disabled`]:E.value<=0}),onClick:W},[d]),R.value&&(0,r.createVNode)("div",{class:(0,x.A)(`${e.prefixCls}-switch-right`,{[`${e.prefixCls}-switch-right-disabled`]:E.value>=I.value-1}),onClick:H},[h])]})}}});var we=xe,Oe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Se=()=>({src:String,wrapperClassName:String,wrapperStyle:{type:Object,default:void 0},rootClassName:String,prefixCls:String,previewPrefixCls:String,previewMask:{type:[Boolean,Function],default:void 0},placeholder:u.A.any,fallback:String,preview:{type:[Boolean,Object],default:!0},onClick:{type:Function},onError:{type:Function}}),Ae=(e,t)=>{const n=(0,S.A)({},e);return Object.keys(t).forEach((r=>{void 0===e[r]&&(n[r]=t[r])})),n};let ke=0;const Ce=(0,r.defineComponent)({compatConfig:{MODE:3},name:"VcImage",inheritAttrs:!1,props:Se(),emits:["click","error"],setup(e,t){let{attrs:n,slots:i,emit:a}=t;const s=(0,r.computed)((()=>e.prefixCls)),l=(0,r.computed)((()=>`${s.value}-preview`)),u=(0,r.computed)((()=>{const t={visible:void 0,onVisibleChange:()=>{},getContainer:void 0};return"object"===typeof e.preview?Ae(e.preview,t):t})),c=(0,r.computed)((()=>{var t;return null!==(t=u.value.src)&&void 0!==t?t:e.src})),d=(0,r.computed)((()=>e.placeholder&&!0!==e.placeholder||i.placeholder)),h=(0,r.computed)((()=>u.value.visible)),p=(0,r.computed)((()=>u.value.getContainer)),f=(0,r.computed)((()=>void 0!==h.value)),g=(e,t)=>{var n,r;null===(r=(n=u.value).onVisibleChange)||void 0===r||r.call(n,e,t)},[m,v]=(0,re.A)(!!h.value,{value:h,onChange:g}),y=(0,r.ref)(d.value?"loading":"normal");(0,r.watch)((()=>e.src),(()=>{y.value=d.value?"loading":"normal"}));const b=(0,r.ref)(null),_=(0,r.computed)((()=>"error"===y.value)),w=ge.inject(),{isPreviewGroup:O,setCurrent:A,setShowPreview:k,setMousePosition:C,registerImage:M}=w,T=(0,r.ref)(ke++),P=(0,r.computed)((()=>e.preview&&!_.value)),I=()=>{y.value="normal"},$=e=>{y.value="error",a("error",e)},E=e=>{if(!f.value){const{left:t,top:n}=(0,ne.A3)(e.target);O.value?(A(T.value),C({x:t,y:n})):b.value={x:t,y:n}}O.value?k(!0):v(!0),a("click",e)},D=()=>{v(!1),f.value||(b.value=null)},R=(0,r.ref)(null);(0,r.watch)((()=>R),(()=>{"loading"===y.value&&R.value.complete&&(R.value.naturalWidth||R.value.naturalHeight)&&I()}));let N=()=>{};(0,r.onMounted)((()=>{(0,r.watch)([c,P],(()=>{if(N(),!O.value)return()=>{};N=M(T.value,c.value,P.value),P.value||N()}),{flush:"post",immediate:!0})})),(0,r.onUnmounted)((()=>{N()}));const L=e=>te(e)?e+"px":e;return()=>{const{prefixCls:t,wrapperClassName:s,fallback:d,src:h,placeholder:f,wrapperStyle:g,rootClassName:v}=e,{width:w,height:A,crossorigin:k,decoding:C,alt:M,sizes:T,srcset:N,usemap:z,class:V,style:B}=n,j=u.value,{icons:Q,maskClassName:F}=j,W=Oe(j,["icons","maskClassName"]),H=(0,x.A)(t,s,v,{[`${t}-error`]:_.value}),Z=_.value&&d?d:c.value,G={crossorigin:k,decoding:C,alt:M,sizes:T,srcset:N,usemap:z,width:w,height:A,class:(0,x.A)(`${t}-img`,{[`${t}-img-placeholder`]:!0===f},V),style:(0,S.A)({height:L(A)},B)};return(0,r.createVNode)(r.Fragment,null,[(0,r.createVNode)("div",{class:H,onClick:P.value?E:e=>{a("click",e)},style:(0,S.A)({width:L(w),height:L(A)},g)},[(0,r.createVNode)("img",(0,o.A)((0,o.A)((0,o.A)({},G),_.value&&d?{src:d}:{onLoad:I,onError:$,src:h}),{},{ref:R}),null),"loading"===y.value&&(0,r.createVNode)("div",{"aria-hidden":"true",class:`${t}-placeholder`},[f||i.placeholder&&i.placeholder()]),i.previewMask&&P.value&&(0,r.createVNode)("div",{class:[`${t}-mask`,F]},[i.previewMask()])]),!O.value&&P.value&&(0,r.createVNode)(we,(0,o.A)((0,o.A)({},W),{},{"aria-hidden":!m.value,visible:m.value,prefixCls:l.value,onClose:D,mousePosition:b.value,src:Z,alt:M,getContainer:p.value,icons:Q,rootClassName:v}),null)])}}});Ce.PreviewGroup=ye;var Me=Ce,Te=Me,Pe=n(24619),Ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},$e=Ie;function Ee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){De(e,t,n[t])}))}return e}function De(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Re=function(e,t){var n=Ee({},e,t.attrs);return(0,r.createVNode)(g.A,Ee({},n,{icon:$e}),null)};Re.displayName="RotateLeftOutlined",Re.inheritAttrs=!1;var Ne=Re,Le={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},ze=Le;function Ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Be(e,t,n[t])}))}return e}function Be(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var je=function(e,t){var n=Ve({},e,t.attrs);return(0,r.createVNode)(g.A,Ve({},n,{icon:ze}),null)};je.displayName="RotateRightOutlined",je.inheritAttrs=!1;var Qe=je,Fe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},We=Fe;function He(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Ze(e,t,n[t])}))}return e}function Ze(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ge=function(e,t){var n=He({},e,t.attrs);return(0,r.createVNode)(g.A,He({},n,{icon:We}),null)};Ge.displayName="ZoomInOutlined",Ge.inheritAttrs=!1;var Xe=Ge,Ue={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},Ye=Ue;function qe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Ke(e,t,n[t])}))}return e}function Ke(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Je=function(e,t){var n=qe({},e,t.attrs);return(0,r.createVNode)(g.A,qe({},n,{icon:Ye}),null)};Je.displayName="ZoomOutOutlined",Je.inheritAttrs=!1;var et=Je,tt=n(23273),nt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},rt=nt;function ot(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){it(e,t,n[t])}))}return e}function it(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var at=function(e,t){var n=ot({},e,t.attrs);return(0,r.createVNode)(g.A,ot({},n,{icon:rt}),null)};at.displayName="LeftOutlined",at.inheritAttrs=!1;var st=at,lt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},ut=lt;function ct(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){dt(e,t,n[t])}))}return e}function dt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ht=function(e,t){var n=ct({},e,t.attrs);return(0,r.createVNode)(g.A,ct({},n,{icon:ut}),null)};ht.displayName="SwapOutlined",ht.inheritAttrs=!1;var pt=ht,ft=n(78089),gt=n(54183),mt=n(41781),vt=n(7672);const yt=e=>({position:e||"absolute",inset:0}),bt=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:r,marginXXS:o,prefixCls:i}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:"#fff",background:new ft.q("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${i}-mask-info`]:(0,S.A)((0,S.A)({},M.L9),{padding:`0 ${r}px`,[t]:{marginInlineEnd:o,svg:{verticalAlign:"baseline"}}})}},_t=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:r,previewOperationColorDisabled:o,motionDurationSlow:i}=e,a=new ft.q(n).setAlpha(.1),s=a.clone().setAlpha(.2);return{[`${t}-operations`]:(0,S.A)((0,S.A)({},(0,M.dF)(e)),{display:"flex",flexDirection:"row-reverse",alignItems:"center",color:e.previewOperationColor,listStyle:"none",background:a.toRgbString(),pointerEvents:"auto","&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${i}`,userSelect:"none","&:hover":{background:s.toRgbString()},"&-disabled":{color:o,pointerEvents:"none"},"&:last-of-type":{marginInlineStart:0}},"&-progress":{position:"absolute",left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%)"},"&-icon":{fontSize:e.previewOperationSize}})}},xt=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:r,previewCls:o,zIndexPopup:i,motionDurationSlow:a}=e,s=new ft.q(t).setAlpha(.1),l=s.clone().setAlpha(.2);return{[`${o}-switch-left, ${o}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:i+1,display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:-e.imagePreviewSwitchSize/2,color:e.previewOperationColor,background:s.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${a}`,pointerEvents:"auto",userSelect:"none","&:hover":{background:l.toRgbString()},["&-disabled"]:{"&, &:hover":{color:r,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${o}-switch-left`]:{insetInlineStart:e.marginSM},[`${o}-switch-right`]:{insetInlineEnd:e.marginSM}}},wt=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:r,componentCls:o}=e;return[{[`${o}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:(0,S.A)((0,S.A)({},yt()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"100%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${r} ${t} 0s`,userSelect:"none",pointerEvents:"auto","&-wrapper":(0,S.A)((0,S.A)({},yt()),{transition:`transform ${r} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${o}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${o}-preview-operations-wrapper`]:{position:"fixed",insetBlockStart:0,insetInlineEnd:0,zIndex:e.zIndexPopup+1,width:"100%"},"&":[_t(e),xt(e)]}]},Ot=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:(0,S.A)({},bt(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:(0,S.A)({},yt())}}},St=e=>{const{previewCls:t}=e;return{[`${t}-root`]:(0,mt.aB)(e,"zoom"),["&"]:(0,vt.p9)(e,!0)}};var At=(0,k.A)("Image",(e=>{const t=`${e.componentCls}-preview`,n=(0,C.h1)(e,{previewCls:t,modalMaskBg:new ft.q("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[Ot(n),wt(n),(0,gt.D)((0,C.h1)(n,{componentCls:t})),St(n)]}),(e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new ft.q(e.colorTextLightSolid).toRgbString(),previewOperationColorDisabled:new ft.q(e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:1.5*e.fontSizeIcon})));const kt={rotateLeft:(0,r.createVNode)(Ne,null,null),rotateRight:(0,r.createVNode)(Qe,null,null),zoomIn:(0,r.createVNode)(Xe,null,null),zoomOut:(0,r.createVNode)(et,null,null),close:(0,r.createVNode)(tt.A,null,null),left:(0,r.createVNode)(st,null,null),right:(0,r.createVNode)(b,null,null),flipX:(0,r.createVNode)(pt,null,null),flipY:(0,r.createVNode)(pt,{rotate:90},null)},Ct=()=>({previewPrefixCls:String,preview:(0,l.ds)()}),Mt=(0,r.defineComponent)({compatConfig:{MODE:3},name:"AImagePreviewGroup",inheritAttrs:!1,props:Ct(),setup(e,t){let{attrs:n,slots:i}=t;const{prefixCls:a,rootPrefixCls:s}=(0,w.A)("image",e),l=(0,r.computed)((()=>`${a.value}-preview`)),[u,c]=At(a),d=(0,r.computed)((()=>{const{preview:t}=e;if(!1===t)return t;const n="object"===typeof t?t:{};return(0,S.A)((0,S.A)({},n),{rootClassName:c.value,transitionName:(0,L.by)(s.value,"zoom",n.transitionName),maskTransitionName:(0,L.by)(s.value,"fade",n.maskTransitionName)})}));return()=>u((0,r.createVNode)(ye,(0,o.A)((0,o.A)({},(0,S.A)((0,S.A)({},n),e)),{},{preview:d.value,icons:kt,previewPrefixCls:l.value}),i))}});var Tt=Mt,Pt=n(34631);const It=(0,r.defineComponent)({name:"AImage",inheritAttrs:!1,props:Se(),setup(e,t){let{slots:n,attrs:i}=t;const{prefixCls:a,rootPrefixCls:s,configProvider:l}=(0,w.A)("image",e),[u,c]=At(a),d=(0,r.computed)((()=>{const{preview:t}=e;if(!1===t)return t;const n="object"===typeof t?t:{};return(0,S.A)((0,S.A)({icons:kt},n),{transitionName:(0,L.by)(s.value,"zoom",n.transitionName),maskTransitionName:(0,L.by)(s.value,"fade",n.maskTransitionName)})}));return()=>{var t,s;const h=(null===(s=null===(t=l.locale)||void 0===t?void 0:t.value)||void 0===s?void 0:s.Image)||Pe.A.Image,p=()=>(0,r.createVNode)("div",{class:`${a.value}-mask-info`},[(0,r.createVNode)(Pt.A,null,null),null===h||void 0===h?void 0:h.preview]),{previewMask:f=n.previewMask||p}=e;return u((0,r.createVNode)(Te,(0,o.A)((0,o.A)({},(0,S.A)((0,S.A)((0,S.A)({},i),e),{prefixCls:a.value})),{},{preview:d.value,rootClassName:(0,x.A)(e.rootClassName,c.value)}),(0,S.A)((0,S.A)({},n),{previewMask:"function"===typeof f?f:null})))}}});It.PreviewGroup=Tt,It.install=function(e){return e.component(It.name,It),e.component(It.PreviewGroup.name,It.PreviewGroup),e};var $t=It,Et=n(44942),Dt=n(18765),Rt=n(35162),Nt=n(99415);const Lt=()=>({name:String,prefixCls:String,options:(0,l.MY)([]),disabled:Boolean,id:String}),zt=()=>(0,S.A)((0,S.A)({},Lt()),{defaultValue:(0,l.MY)(),value:(0,l.MY)(),onChange:(0,l.Fg)(),"onUpdate:value":(0,l.Fg)()}),Vt=()=>({prefixCls:String,defaultChecked:(0,l.HE)(),checked:(0,l.HE)(),disabled:(0,l.HE)(),isGroup:(0,l.HE)(),value:u.A.any,name:String,id:String,indeterminate:(0,l.HE)(),type:(0,l.WO)("checkbox"),autofocus:(0,l.HE)(),onChange:(0,l.Fg)(),"onUpdate:checked":(0,l.Fg)(),onClick:(0,l.Fg)(),skipGroup:(0,l.HE)(!1)}),Bt=()=>(0,S.A)((0,S.A)({},Vt()),{indeterminate:(0,l.HE)(!1)}),jt=Symbol("CheckboxGroupContext");var Qt=n(97732);const Ft=new Qt.A("antCheckboxEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),Wt=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:(0,S.A)((0,S.A)({},(0,M.dF)(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:(0,S.A)((0,S.A)({},(0,M.dF)(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:(0,S.A)((0,S.A)({},(0,M.dF)(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:(0,S.A)({},(0,M.jk)(e))},[`${t}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.checkboxSize/14*5,height:e.checkboxSize/14*8,border:`${e.lineWidthBold}px solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[t]:{"&-indeterminate":{[`${t}-inner`]:{"&:after":{top:"50%",insetInlineStart:"50%",width:e.fontSizeLG/2,height:e.fontSizeLG/2,backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${n}:hover ${t}:after`]:{visibility:"visible"},[`\n ${n}:not(${n}-disabled),\n ${t}:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}},"&:after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderRadius:e.borderRadiusSM,visibility:"hidden",border:`${e.lineWidthBold}px solid ${e.colorPrimary}`,animationName:Ft,animationDuration:e.motionDurationSlow,animationTimingFunction:"ease-in-out",animationFillMode:"backwards",content:'""',transition:`all ${e.motionDurationSlow}`}},[`\n ${n}-checked:not(${n}-disabled),\n ${t}-checked:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}:after`]:{borderColor:e.colorPrimaryHover}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function Ht(e,t){const n=(0,C.h1)(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[Wt(n)]}var Zt=(0,k.A)("Checkbox",((e,t)=>{let{prefixCls:n}=t;return[Ht(n,e)]})),Gt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},Xt=(0,r.defineComponent)({compatConfig:{MODE:3},name:"ACheckbox",inheritAttrs:!1,__ANT_CHECKBOX:!0,props:Bt(),setup(e,t){let{emit:n,attrs:i,slots:s,expose:l}=t;const u=(0,Rt.db)(),c=Rt.$W.useInject(),{prefixCls:d,direction:h,disabled:p}=(0,w.A)("checkbox",e),f=(0,Nt.p)(),[g,m]=Zt(d),v=(0,r.inject)(jt,void 0),y=Symbol("checkboxUniId"),b=(0,r.computed)((()=>(null===v||void 0===v?void 0:v.disabled.value)||p.value));(0,r.watchEffect)((()=>{!e.skipGroup&&v&&v.registerValue(y,e.value)})),(0,r.onBeforeUnmount)((()=>{v&&v.cancelValue(y)})),(0,r.onMounted)((()=>{(0,Dt.Ay)(!(void 0===e.checked&&!v&&void 0!==e.value),"Checkbox","`value` is not validate prop, do you mean `checked`?")}));const _=e=>{const t=e.target.checked;n("update:checked",t),n("change",e),u.onFieldChange()},O=(0,r.ref)(),A=()=>{var e;null===(e=O.value)||void 0===e||e.focus()},k=()=>{var e;null===(e=O.value)||void 0===e||e.blur()};return l({focus:A,blur:k}),()=>{var t;const l=(0,a.MI)(null===(t=s.default)||void 0===t?void 0:t.call(s)),{indeterminate:p,skipGroup:y,id:w=u.id.value}=e,A=Gt(e,["indeterminate","skipGroup","id"]),{onMouseenter:k,onMouseleave:C,onInput:M,class:T,style:P}=i,I=Gt(i,["onMouseenter","onMouseleave","onInput","class","style"]),$=(0,S.A)((0,S.A)((0,S.A)((0,S.A)({},A),{id:w,prefixCls:d.value}),I),{disabled:b.value});v&&!y?($.onChange=function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];n("change",...r),v.toggleOption({label:l,value:e.value})},$.name=v.name.value,$.checked=v.mergedValue.value.includes(e.value),$.disabled=b.value||f.value,$.indeterminate=p):$.onChange=_;const E=(0,x.A)({[`${d.value}-wrapper`]:!0,[`${d.value}-rtl`]:"rtl"===h.value,[`${d.value}-wrapper-checked`]:$.checked,[`${d.value}-wrapper-disabled`]:$.disabled,[`${d.value}-wrapper-in-form-item`]:c.isFormItemInput},T,m.value),D=(0,x.A)({[`${d.value}-indeterminate`]:p},m.value),R=p?"mixed":void 0;return g((0,r.createVNode)("label",{class:E,style:P,onMouseenter:k,onMouseleave:C},[(0,r.createVNode)(Et.A,(0,o.A)((0,o.A)({"aria-checked":R},$),{},{class:D,ref:O}),null),l.length?(0,r.createVNode)("span",null,[l]):null]))}}}),Ut=(0,r.defineComponent)({compatConfig:{MODE:3},name:"ACheckboxGroup",inheritAttrs:!1,props:zt(),setup(e,t){let{slots:n,attrs:i,emit:a,expose:s}=t;const l=(0,Rt.db)(),{prefixCls:u,direction:c}=(0,w.A)("checkbox",e),d=(0,r.computed)((()=>`${u.value}-group`)),[h,p]=Zt(d),f=(0,r.ref)((void 0===e.value?e.defaultValue:e.value)||[]);(0,r.watch)((()=>e.value),(()=>{f.value=e.value||[]}));const g=(0,r.computed)((()=>e.options.map((e=>"string"===typeof e||"number"===typeof e?{label:e,value:e}:e)))),m=(0,r.ref)(Symbol()),v=(0,r.ref)(new Map),y=e=>{v.value.delete(e),m.value=Symbol()},b=(e,t)=>{v.value.set(e,t),m.value=Symbol()},_=(0,r.ref)(new Map);(0,r.watch)(m,(()=>{const e=new Map;for(const t of v.value.values())e.set(t,!0);_.value=e}));const x=t=>{const n=f.value.indexOf(t.value),r=[...f.value];-1===n?r.push(t.value):r.splice(n,1),void 0===e.value&&(f.value=r);const o=r.filter((e=>_.value.has(e))).sort(((e,t)=>{const n=g.value.findIndex((t=>t.value===e)),r=g.value.findIndex((e=>e.value===t));return n-r}));a("update:value",o),a("change",o),l.onFieldChange()};return(0,r.provide)(jt,{cancelValue:y,registerValue:b,toggleOption:x,mergedValue:f,name:(0,r.computed)((()=>e.name)),disabled:(0,r.computed)((()=>e.disabled))}),s({mergedValue:f}),()=>{var t;const{id:a=l.id.value}=e;let s=null;return g.value&&g.value.length>0&&(s=g.value.map((t=>{var o;return(0,r.createVNode)(Xt,{prefixCls:u.value,key:t.value.toString(),disabled:"disabled"in t?t.disabled:e.disabled,indeterminate:t.indeterminate,value:t.value,checked:-1!==f.value.indexOf(t.value),onChange:t.onChange,class:`${d.value}-item`},{default:()=>[void 0!==n.label?null===(o=n.label)||void 0===o?void 0:o.call(n,t):t.label]})}))),h((0,r.createVNode)("div",(0,o.A)((0,o.A)({},i),{},{class:[d.value,{[`${d.value}-rtl`]:"rtl"===c.value},i.class,p.value],id:a}),[s||(null===(t=n.default)||void 0===t?void 0:t.call(n))]))}}}),Yt=n(45776),qt=n(15240),Kt=n(9139),Jt=n(7649),en=n(58554);n(85194),n(27092),n(68925),n(31796),n(21467),n(22064),n(92114);function tn(e){var t=-1,n=null==e?0:e.length,r={};while(++t<n){var o=e[t];r[o[0]]=o[1]}return r}var nn=tn;const rn=()=>{},on=(Object.assign,Object.prototype.hasOwnProperty),an=(e,t)=>on.call(e,t),sn=Array.isArray,ln=e=>"function"===typeof e,un=e=>"string"===typeof e,cn=e=>null!==e&&"object"===typeof e,dn=(Object.prototype.toString,e=>{const t=Object.create(null);return n=>{const r=t[n];return r||(t[n]=e(n))}}),hn=/-(\w)/g,pn=(dn((e=>e.replace(hn,((e,t)=>t?t.toUpperCase():"")))),/\B([A-Z])/g),fn=(dn((e=>e.replace(pn,"-$1").toLowerCase())),dn((e=>e.charAt(0).toUpperCase()+e.slice(1))));dn((e=>{const t=e?`on${fn(e)}`:"";return t}));const gn="__epPropKey",mn=e=>e,vn=e=>cn(e)&&!!e[gn],yn=(e,t)=>{if(!cn(e)||vn(e))return e;const{values:n,required:o,default:i,type:a,validator:s}=e,l=n||s?o=>{let a=!1,l=[];if(n&&(l=Array.from(n),an(e,"default")&&l.push(i),a||(a=l.includes(o))),s&&(a||(a=s(o))),!a&&l.length>0){const e=[...new Set(l)].map((e=>JSON.stringify(e))).join(", ");(0,r.warn)(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${e}], got value ${JSON.stringify(o)}.`)}return a}:void 0,u={type:a,required:!!o,validator:l,[gn]:!0};return an(e,"default")&&(u.default=i),u},bn=e=>nn(Object.entries(e).map((([e,t])=>[e,yn(t,e)]))),_n=bn({size:{type:mn([Number,String])},color:{type:String}});var xn=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n};const wn="el",On="is-",Sn=(e,t,n,r,o)=>{let i=`${e}-${t}`;return n&&(i+=`-${n}`),r&&(i+=`__${r}`),o&&(i+=`--${o}`),i},An=Symbol("namespaceContextKey"),kn=e=>{const t=e||((0,r.getCurrentInstance)()?(0,r.inject)(An,(0,r.ref)(wn)):(0,r.ref)(wn)),n=(0,r.computed)((()=>(0,r.unref)(t)||wn));return n},Cn=(e,t)=>{const n=kn(t),r=(t="")=>Sn(n.value,e,t,"",""),o=t=>t?Sn(n.value,e,"",t,""):"",i=t=>t?Sn(n.value,e,"","",t):"",a=(t,r)=>t&&r?Sn(n.value,e,t,r,""):"",s=(t,r)=>t&&r?Sn(n.value,e,"",t,r):"",l=(t,r)=>t&&r?Sn(n.value,e,t,"",r):"",u=(t,r,o)=>t&&r&&o?Sn(n.value,e,t,r,o):"",c=(e,...t)=>{const n=!(t.length>=1)||t[0];return e&&n?`${On}${e}`:""},d=e=>{const t={};for(const r in e)e[r]&&(t[`--${n.value}-${r}`]=e[r]);return t},h=t=>{const r={};for(const o in t)t[o]&&(r[`--${n.value}-${e}-${o}`]=t[o]);return r},p=e=>`--${n.value}-${e}`,f=t=>`--${n.value}-${e}-${t}`;return{namespace:n,b:r,e:o,m:i,be:a,em:s,bm:l,bem:u,is:c,cssVar:d,cssVarName:p,cssVarBlock:h,cssVarBlockName:f}};function Mn(e){return null==e}var Tn=Mn;const Pn=e=>void 0===e,In=e=>"boolean"===typeof e,$n=e=>"number"===typeof e,En=e=>"undefined"!==typeof Element&&e instanceof Element,Dn=e=>Tn(e),Rn=e=>!!un(e)&&!Number.isNaN(Number(e));Error;function Nn(e,t){0}const Ln="utils/dom/style";function zn(e,t="px"){return e?$n(e)||Rn(e)?`${e}${t}`:un(e)?e:void Nn(Ln,"binding value must be a string or number"):""}const Vn=(0,r.defineComponent)({name:"ElIcon",inheritAttrs:!1}),Bn=(0,r.defineComponent)({...Vn,props:_n,setup(e){const t=e,n=Cn("icon"),o=(0,r.computed)((()=>{const{size:e,color:n}=t;return e||n?{fontSize:Pn(e)?void 0:zn(e),"--color":n}:{}}));return(e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("i",(0,r.mergeProps)({class:(0,r.unref)(n).b(),style:(0,r.unref)(o)},e.$attrs),[(0,r.renderSlot)(e.$slots,"default")],16))}});var jn=xn(Bn,[["__file","icon.vue"]]);const Qn=(e,t)=>{if(e.install=n=>{for(const r of[e,...Object.values(null!=t?t:{})])n.component(r.name,r)},t)for(const[n,r]of Object.entries(t))e[n]=r;return e},Fn=e=>(e.install=rn,e),Wn=Qn(jn),Hn=Symbol("buttonGroupContextKey"),Zn=({from:e,replacement:t,scope:n,version:o,ref:i,type:a="API"},s)=>{(0,r.watch)((()=>(0,r.unref)(s)),(r=>{r&&Nn(n,`[${a}] ${e} is about to be deprecated in version ${o}, please use ${t} instead.\nFor more detail, please visit: ${i}\n`)}),{immediate:!0})},Gn=Symbol(),Xn=(0,r.ref)();function Un(e,t=void 0){const n=(0,r.getCurrentInstance)()?(0,r.inject)(Gn,Xn):Xn;return e?(0,r.computed)((()=>{var r,o;return null!=(o=null==(r=n.value)?void 0:r[e])?o:t})):n}const Yn=Symbol("formContextKey"),qn=Symbol("formItemContextKey");var Kn,Jn=n(57352);Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;const er="undefined"!==typeof window,tr=(Object.prototype.toString,e=>"string"===typeof e),nr=()=>{},rr=er&&(null==(Kn=null==window?void 0:window.navigator)?void 0:Kn.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function or(e){return"function"===typeof e?e():(0,Jn.unref)(e)}Jn.isVue3,Jn.isVue3,Jn.isVue3;function ir(e){return e}function ar(e){return!!(0,Jn.getCurrentScope)()&&((0,Jn.onScopeDispose)(e),!0)}Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;function sr(e,t=!0){(0,Jn.getCurrentInstance)()?(0,Jn.onMounted)(e):t?e():(0,Jn.nextTick)(e)}Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;const lr={prefix:Math.floor(1e4*Math.random()),current:0},ur=Symbol("elIdInjection"),cr=()=>(0,r.getCurrentInstance)()?(0,r.inject)(ur,lr):lr,dr=e=>{const t=cr();er||t!==lr||Nn("IdInjection","Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed\nusage: app.provide(ID_INJECTION_KEY, {\n prefix: number,\n current: number,\n})");const n=kn(),o=(0,r.computed)((()=>(0,r.unref)(e)||`${n.value}-id-${t.prefix}-${t.current++}`));return o},hr=()=>{const e=(0,r.inject)(Yn,void 0),t=(0,r.inject)(qn,void 0);return{form:e,formItem:t}},pr=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:o})=>{n||(n=(0,r.ref)(!1)),o||(o=(0,r.ref)(!1));const i=(0,r.ref)();let a;const s=(0,r.computed)((()=>{var n;return!!(!e.label&&!e.ariaLabel&&t&&t.inputIds&&(null==(n=t.inputIds)?void 0:n.length)<=1)}));return(0,r.onMounted)((()=>{a=(0,r.watch)([(0,r.toRef)(e,"id"),n],(([e,n])=>{const r=null!=e?e:n?void 0:dr().value;r!==i.value&&((null==t?void 0:t.removeInputId)&&(i.value&&t.removeInputId(i.value),(null==o?void 0:o.value)||n||!r||t.addInputId(r)),i.value=r)}),{immediate:!0})})),(0,r.onUnmounted)((()=>{a&&a(),(null==t?void 0:t.removeInputId)&&i.value&&t.removeInputId(i.value)})),{isLabeledByFormItem:s,inputId:i}},fr=e=>{const t=(0,r.getCurrentInstance)();return(0,r.computed)((()=>{var n,r;return null==(r=null==(n=null==t?void 0:t.proxy)?void 0:n.$props)?void 0:r[e]}))},gr=["","default","small","large"],mr=yn({type:String,values:gr,required:!1}),vr=Symbol("size"),yr=()=>{const e=(0,r.inject)(vr,{});return(0,r.computed)((()=>(0,r.unref)(e.size)||""))},br=(e,t={})=>{const n=(0,r.ref)(void 0),o=t.prop?n:fr("size"),i=t.global?n:yr(),a=t.form?{size:void 0}:(0,r.inject)(Yn,void 0),s=t.formItem?{size:void 0}:(0,r.inject)(qn,void 0);return(0,r.computed)((()=>o.value||(0,r.unref)(e)||(null==s?void 0:s.size)||(null==a?void 0:a.size)||i.value||""))},_r=e=>{const t=fr("disabled"),n=(0,r.inject)(Yn,void 0);return(0,r.computed)((()=>t.value||(0,r.unref)(e)||(null==n?void 0:n.disabled)||!1))},xr=(e,t)=>{Zn({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},(0,r.computed)((()=>"text"===e.type)));const n=(0,r.inject)(Hn,void 0),o=Un("button"),{form:i}=hr(),a=br((0,r.computed)((()=>null==n?void 0:n.size))),s=_r(),l=(0,r.ref)(),u=(0,r.useSlots)(),c=(0,r.computed)((()=>e.type||(null==n?void 0:n.type)||"")),d=(0,r.computed)((()=>{var t,n,r;return null!=(r=null!=(n=e.autoInsertSpace)?n:null==(t=o.value)?void 0:t.autoInsertSpace)&&r})),h=(0,r.computed)((()=>"button"===e.tag?{ariaDisabled:s.value||e.loading,disabled:s.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{})),p=(0,r.computed)((()=>{var e;const t=null==(e=u.default)?void 0:e.call(u);if(d.value&&1===(null==t?void 0:t.length)){const e=t[0];if((null==e?void 0:e.type)===r.Text){const t=e.children;return/^\p{Unified_Ideograph}{2}$/u.test(t.trim())}}return!1})),f=n=>{"reset"===e.nativeType&&(null==i||i.resetFields()),t("click",n)};return{_disabled:s,_size:a,_type:c,_ref:l,_props:h,shouldAddSpace:p,handleClick:f}};
  4. /*! Element Plus Icons Vue v2.3.1 */
  5. var wr=(0,r.defineComponent)({name:"ArrowDown",__name:"arrow-down",setup(e){return(e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,r.createElementVNode)("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"})]))}}),Or=wr,Sr=(0,r.defineComponent)({name:"CircleCheck",__name:"circle-check",setup(e){return(e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,r.createElementVNode)("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),(0,r.createElementVNode)("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"})]))}}),Ar=Sr,kr=(0,r.defineComponent)({name:"CircleClose",__name:"circle-close",setup(e){return(e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,r.createElementVNode)("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),(0,r.createElementVNode)("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),Cr=kr,Mr=(0,r.defineComponent)({name:"Close",__name:"close",setup(e){return(e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,r.createElementVNode)("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),Tr=Mr,Pr=(0,r.defineComponent)({name:"Hide",__name:"hide",setup(e){return(e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,r.createElementVNode)("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"}),(0,r.createElementVNode)("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"})]))}}),Ir=Pr,$r=(0,r.defineComponent)({name:"Loading",__name:"loading",setup(e){return(e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,r.createElementVNode)("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"})]))}}),Er=$r,Dr=(0,r.defineComponent)({name:"View",__name:"view",setup(e){return(e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,r.createElementVNode)("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),Rr=Dr;const Nr=mn([String,Object,Function]),Lr={validating:Er,success:Ar,error:Cr},zr=["default","primary","success","warning","info","danger","text",""],Vr=["button","submit","reset"],Br=bn({size:mr,disabled:Boolean,type:{type:String,values:zr,default:""},icon:{type:Nr},nativeType:{type:String,values:Vr,default:"button"},loading:Boolean,loadingIcon:{type:Nr,default:()=>Er},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:mn([String,Object]),default:"button"}}),jr={click:e=>e instanceof MouseEvent};function Qr(e,t=20){return e.mix("#141414",t).toString()}function Fr(e){const t=_r(),n=Cn("button");return(0,r.computed)((()=>{let r={};const o=e.color;if(o){const i=new ft.q(o),a=e.dark?i.tint(20).toString():Qr(i,20);if(e.plain)r=n.cssVarBlock({"bg-color":e.dark?Qr(i,90):i.tint(90).toString(),"text-color":o,"border-color":e.dark?Qr(i,50):i.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":o,"hover-border-color":o,"active-bg-color":a,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":a}),t.value&&(r[n.cssVarBlockName("disabled-bg-color")]=e.dark?Qr(i,90):i.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=e.dark?Qr(i,50):i.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=e.dark?Qr(i,80):i.tint(80).toString());else{const s=e.dark?Qr(i,30):i.tint(30).toString(),l=i.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(r=n.cssVarBlock({"bg-color":o,"text-color":l,"border-color":o,"hover-bg-color":s,"hover-text-color":l,"hover-border-color":s,"active-bg-color":a,"active-border-color":a}),t.value){const t=e.dark?Qr(i,50):i.tint(50).toString();r[n.cssVarBlockName("disabled-bg-color")]=t,r[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,r[n.cssVarBlockName("disabled-border-color")]=t}}}return r}))}const Wr=(0,r.defineComponent)({name:"ElButton"}),Hr=(0,r.defineComponent)({...Wr,props:Br,emits:jr,setup(e,{expose:t,emit:n}){const o=e,i=Fr(o),a=Cn("button"),{_ref:s,_size:l,_type:u,_disabled:c,_props:d,shouldAddSpace:h,handleClick:p}=xr(o,n),f=(0,r.computed)((()=>[a.b(),a.m(u.value),a.m(l.value),a.is("disabled",c.value),a.is("loading",o.loading),a.is("plain",o.plain),a.is("round",o.round),a.is("circle",o.circle),a.is("text",o.text),a.is("link",o.link),a.is("has-bg",o.bg)]));return t({ref:s,size:l,type:u,disabled:c,shouldAddSpace:h}),(e,t)=>((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.tag),(0,r.mergeProps)({ref_key:"_ref",ref:s},(0,r.unref)(d),{class:(0,r.unref)(f),style:(0,r.unref)(i),onClick:(0,r.unref)(p)}),{default:(0,r.withCtx)((()=>[e.loading?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},[e.$slots.loading?(0,r.renderSlot)(e.$slots,"loading",{key:0}):((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(Wn),{key:1,class:(0,r.normalizeClass)((0,r.unref)(a).is("loading"))},{default:(0,r.withCtx)((()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.loadingIcon)))])),_:1},8,["class"]))],64)):e.icon||e.$slots.icon?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(Wn),{key:1},{default:(0,r.withCtx)((()=>[e.icon?((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.icon),{key:0})):(0,r.renderSlot)(e.$slots,"icon",{key:1})])),_:3})):(0,r.createCommentVNode)("v-if",!0),e.$slots.default?((0,r.openBlock)(),(0,r.createElementBlock)("span",{key:2,class:(0,r.normalizeClass)({[(0,r.unref)(a).em("text","expand")]:(0,r.unref)(h)})},[(0,r.renderSlot)(e.$slots,"default")],2)):(0,r.createCommentVNode)("v-if",!0)])),_:3},16,["class","style","onClick"]))}});var Zr=xn(Hr,[["__file","button.vue"]]);const Gr={size:Br.size,type:Br.type},Xr=(0,r.defineComponent)({name:"ElButtonGroup"}),Ur=(0,r.defineComponent)({...Xr,props:Gr,setup(e){const t=e;(0,r.provide)(Hn,(0,r.reactive)({size:(0,r.toRef)(t,"size"),type:(0,r.toRef)(t,"type")}));const n=Cn("button");return(e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(`${(0,r.unref)(n).b("group")}`)},[(0,r.renderSlot)(e.$slots,"default")],2))}});var Yr=xn(Ur,[["__file","button-group.vue"]]);const qr=Qn(Zr,{ButtonGroup:Yr}),Kr=(Fn(Yr),Symbol("popper")),Jr=Symbol("popperContent"),eo=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],to=bn({role:{type:String,values:eo,default:"tooltip"}}),no=(0,r.defineComponent)({name:"ElPopper",inheritAttrs:!1}),ro=(0,r.defineComponent)({...no,props:to,setup(e,{expose:t}){const n=e,o=(0,r.ref)(),i=(0,r.ref)(),a=(0,r.ref)(),s=(0,r.ref)(),l=(0,r.computed)((()=>n.role)),u={triggerRef:o,popperInstanceRef:i,contentRef:a,referenceRef:s,role:l};return t(u),(0,r.provide)(Kr,u),(e,t)=>(0,r.renderSlot)(e.$slots,"default")}});var oo=xn(ro,[["__file","popper.vue"]]);const io=Qn(oo),ao=Symbol("elTooltip");function so(){let e;const t=(t,r)=>{n(),e=window.setTimeout(t,r)},n=()=>window.clearTimeout(e);return ar((()=>n())),{registerTimeout:t,cancelTimeout:n}}const lo=bn({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),uo=({showAfter:e,hideAfter:t,autoClose:n,open:o,close:i})=>{const{registerTimeout:a}=so(),{registerTimeout:s,cancelTimeout:l}=so(),u=t=>{a((()=>{o(t);const e=(0,r.unref)(n);$n(e)&&e>0&&s((()=>{i(t)}),e)}),(0,r.unref)(e))},c=e=>{l(),a((()=>{i(e)}),(0,r.unref)(t))};return{onOpen:u,onClose:c}};var co="top",ho="bottom",po="right",fo="left",go="auto",mo=[co,ho,po,fo],vo="start",yo="end",bo="clippingParents",_o="viewport",xo="popper",wo="reference",Oo=mo.reduce((function(e,t){return e.concat([t+"-"+vo,t+"-"+yo])}),[]),So=[].concat(mo,[go]).reduce((function(e,t){return e.concat([t,t+"-"+vo,t+"-"+yo])}),[]),Ao="beforeRead",ko="read",Co="afterRead",Mo="beforeMain",To="main",Po="afterMain",Io="beforeWrite",$o="write",Eo="afterWrite",Do=[Ao,ko,Co,Mo,To,Po,Io,$o,Eo];function Ro(e){return e?(e.nodeName||"").toLowerCase():null}function No(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Lo(e){var t=No(e).Element;return e instanceof t||e instanceof Element}function zo(e){var t=No(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Vo(e){if("undefined"==typeof ShadowRoot)return!1;var t=No(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Bo(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];!zo(o)||!Ro(o)||(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))}function jo(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]),a=i.reduce((function(e,t){return e[t]="",e}),{});!zo(r)||!Ro(r)||(Object.assign(r.style,a),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}}var Qo={name:"applyStyles",enabled:!0,phase:"write",fn:Bo,effect:jo,requires:["computeStyles"]};function Fo(e){return e.split("-")[0]}var Wo=Math.max,Ho=Math.min,Zo=Math.round;function Go(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(zo(e)&&t){var i=e.offsetHeight,a=e.offsetWidth;a>0&&(r=Zo(n.width)/a||1),i>0&&(o=Zo(n.height)/i||1)}return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function Xo(e){var t=Go(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Uo(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Vo(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Yo(e){return No(e).getComputedStyle(e)}function qo(e){return["table","td","th"].indexOf(Ro(e))>=0}function Ko(e){return((Lo(e)?e.ownerDocument:e.document)||window.document).documentElement}function Jo(e){return"html"===Ro(e)?e:e.assignedSlot||e.parentNode||(Vo(e)?e.host:null)||Ko(e)}function ei(e){return zo(e)&&"fixed"!==Yo(e).position?e.offsetParent:null}function ti(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox"),n=-1!==navigator.userAgent.indexOf("Trident");if(n&&zo(e)){var r=Yo(e);if("fixed"===r.position)return null}var o=Jo(e);for(Vo(o)&&(o=o.host);zo(o)&&["html","body"].indexOf(Ro(o))<0;){var i=Yo(o);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return o;o=o.parentNode}return null}function ni(e){for(var t=No(e),n=ei(e);n&&qo(n)&&"static"===Yo(n).position;)n=ei(n);return n&&("html"===Ro(n)||"body"===Ro(n)&&"static"===Yo(n).position)?t:n||ti(e)||t}function ri(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function oi(e,t,n){return Wo(e,Ho(t,n))}function ii(e,t,n){var r=oi(e,t,n);return r>n?n:r}function ai(){return{top:0,right:0,bottom:0,left:0}}function si(e){return Object.assign({},ai(),e)}function li(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var ui=function(e,t){return e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e,si("number"!=typeof e?e:li(e,mo))};function ci(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Fo(n.placement),l=ri(s),u=[fo,po].indexOf(s)>=0,c=u?"height":"width";if(i&&a){var d=ui(o.padding,n),h=Xo(i),p="y"===l?co:fo,f="y"===l?ho:po,g=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],m=a[l]-n.rects.reference[l],v=ni(i),y=v?"y"===l?v.clientHeight||0:v.clientWidth||0:0,b=g/2-m/2,_=d[p],x=y-h[c]-d[f],w=y/2-h[c]/2+b,O=oi(_,w,x),S=l;n.modifiersData[r]=(t={},t[S]=O,t.centerOffset=O-w,t)}}function di(e){var t=e.state,n=e.options,r=n.element,o=void 0===r?"[data-popper-arrow]":r;null!=o&&("string"==typeof o&&(o=t.elements.popper.querySelector(o),!o)||!Uo(t.elements.popper,o)||(t.elements.arrow=o))}var hi={name:"arrow",enabled:!0,phase:"main",fn:ci,effect:di,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function pi(e){return e.split("-")[1]}var fi={top:"auto",right:"auto",bottom:"auto",left:"auto"};function gi(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:Zo(t*o)/o||0,y:Zo(n*o)/o||0}}function mi(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,h=a.x,p=void 0===h?0:h,f=a.y,g=void 0===f?0:f,m="function"==typeof c?c({x:p,y:g}):{x:p,y:g};p=m.x,g=m.y;var v=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),b=fo,_=co,x=window;if(u){var w=ni(n),O="clientHeight",S="clientWidth";if(w===No(n)&&(w=Ko(n),"static"!==Yo(w).position&&"absolute"===s&&(O="scrollHeight",S="scrollWidth")),o===co||(o===fo||o===po)&&i===yo){_=ho;var A=d&&w===x&&x.visualViewport?x.visualViewport.height:w[O];g-=A-r.height,g*=l?1:-1}if(o===fo||(o===co||o===ho)&&i===yo){b=po;var k=d&&w===x&&x.visualViewport?x.visualViewport.width:w[S];p-=k-r.width,p*=l?1:-1}}var C,M=Object.assign({position:s},u&&fi),T=!0===c?gi({x:p,y:g}):{x:p,y:g};return p=T.x,g=T.y,l?Object.assign({},M,(C={},C[_]=y?"0":"",C[b]=v?"0":"",C.transform=(x.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",C)):Object.assign({},M,(t={},t[_]=y?g+"px":"",t[b]=v?p+"px":"",t.transform="",t))}function vi(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,l=void 0===s||s,u={placement:Fo(t.placement),variation:pi(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,mi(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,mi(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var yi={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:vi,data:{}},bi={passive:!0};function _i(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,s=void 0===a||a,l=No(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach((function(e){e.addEventListener("scroll",n.update,bi)})),s&&l.addEventListener("resize",n.update,bi),function(){i&&u.forEach((function(e){e.removeEventListener("scroll",n.update,bi)})),s&&l.removeEventListener("resize",n.update,bi)}}var xi={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:_i,data:{}},wi={left:"right",right:"left",bottom:"top",top:"bottom"};function Oi(e){return e.replace(/left|right|bottom|top/g,(function(e){return wi[e]}))}var Si={start:"end",end:"start"};function Ai(e){return e.replace(/start|end/g,(function(e){return Si[e]}))}function ki(e){var t=No(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Ci(e){return Go(Ko(e)).left+ki(e).scrollLeft}function Mi(e){var t=No(e),n=Ko(e),r=t.visualViewport,o=n.clientWidth,i=n.clientHeight,a=0,s=0;return r&&(o=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,s=r.offsetTop)),{width:o,height:i,x:a+Ci(e),y:s}}function Ti(e){var t,n=Ko(e),r=ki(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=Wo(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Wo(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+Ci(e),l=-r.scrollTop;return"rtl"===Yo(o||n).direction&&(s+=Wo(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}function Pi(e){var t=Yo(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Ii(e){return["html","body","#document"].indexOf(Ro(e))>=0?e.ownerDocument.body:zo(e)&&Pi(e)?e:Ii(Jo(e))}function $i(e,t){var n;void 0===t&&(t=[]);var r=Ii(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=No(r),a=o?[i].concat(i.visualViewport||[],Pi(r)?r:[]):r,s=t.concat(a);return o?s:s.concat($i(Jo(a)))}function Ei(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Di(e){var t=Go(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function Ri(e,t){return t===_o?Ei(Mi(e)):Lo(t)?Di(t):Ei(Ti(Ko(e)))}function Ni(e){var t=$i(Jo(e)),n=["absolute","fixed"].indexOf(Yo(e).position)>=0,r=n&&zo(e)?ni(e):e;return Lo(r)?t.filter((function(e){return Lo(e)&&Uo(e,r)&&"body"!==Ro(e)})):[]}function Li(e,t,n){var r="clippingParents"===t?Ni(e):[].concat(t),o=[].concat(r,[n]),i=o[0],a=o.reduce((function(t,n){var r=Ri(e,n);return t.top=Wo(r.top,t.top),t.right=Ho(r.right,t.right),t.bottom=Ho(r.bottom,t.bottom),t.left=Wo(r.left,t.left),t}),Ri(e,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function zi(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?Fo(o):null,a=o?pi(o):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(i){case co:t={x:s,y:n.y-r.height};break;case ho:t={x:s,y:n.y+n.height};break;case po:t={x:n.x+n.width,y:l};break;case fo:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var u=i?ri(i):null;if(null!=u){var c="y"===u?"height":"width";switch(a){case vo:t[u]=t[u]-(n[c]/2-r[c]/2);break;case yo:t[u]=t[u]+(n[c]/2-r[c]/2);break}}return t}function Vi(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.boundary,a=void 0===i?bo:i,s=n.rootBoundary,l=void 0===s?_o:s,u=n.elementContext,c=void 0===u?xo:u,d=n.altBoundary,h=void 0!==d&&d,p=n.padding,f=void 0===p?0:p,g=si("number"!=typeof f?f:li(f,mo)),m=c===xo?wo:xo,v=e.rects.popper,y=e.elements[h?m:c],b=Li(Lo(y)?y:y.contextElement||Ko(e.elements.popper),a,l),_=Go(e.elements.reference),x=zi({reference:_,element:v,strategy:"absolute",placement:o}),w=Ei(Object.assign({},v,x)),O=c===xo?w:_,S={top:b.top-O.top+g.top,bottom:O.bottom-b.bottom+g.bottom,left:b.left-O.left+g.left,right:O.right-b.right+g.right},A=e.modifiersData.offset;if(c===xo&&A){var k=A[o];Object.keys(S).forEach((function(e){var t=[po,ho].indexOf(e)>=0?1:-1,n=[co,ho].indexOf(e)>=0?"y":"x";S[e]+=k[n]*t}))}return S}function Bi(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=void 0===l?So:l,c=pi(r),d=c?s?Oo:Oo.filter((function(e){return pi(e)===c})):mo,h=d.filter((function(e){return u.indexOf(e)>=0}));0===h.length&&(h=d);var p=h.reduce((function(t,n){return t[n]=Vi(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[Fo(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}function ji(e){if(Fo(e)===go)return[];var t=Oi(e);return[Ai(e),t,Ai(t)]}function Qi(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,h=n.altBoundary,p=n.flipVariations,f=void 0===p||p,g=n.allowedAutoPlacements,m=t.options.placement,v=Fo(m),y=v===m,b=l||(y||!f?[Oi(m)]:ji(m)),_=[m].concat(b).reduce((function(e,n){return e.concat(Fo(n)===go?Bi(t,{placement:n,boundary:c,rootBoundary:d,padding:u,flipVariations:f,allowedAutoPlacements:g}):n)}),[]),x=t.rects.reference,w=t.rects.popper,O=new Map,S=!0,A=_[0],k=0;k<_.length;k++){var C=_[k],M=Fo(C),T=pi(C)===vo,P=[co,ho].indexOf(M)>=0,I=P?"width":"height",$=Vi(t,{placement:C,boundary:c,rootBoundary:d,altBoundary:h,padding:u}),E=P?T?po:fo:T?ho:co;x[I]>w[I]&&(E=Oi(E));var D=Oi(E),R=[];if(i&&R.push($[M]<=0),s&&R.push($[E]<=0,$[D]<=0),R.every((function(e){return e}))){A=C,S=!1;break}O.set(C,R)}if(S)for(var N=f?3:1,L=function(e){var t=_.find((function(t){var n=O.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return A=t,"break"},z=N;z>0;z--){var V=L(z);if("break"===V)break}t.placement!==A&&(t.modifiersData[r]._skip=!0,t.placement=A,t.reset=!0)}}var Fi={name:"flip",enabled:!0,phase:"main",fn:Qi,requiresIfExists:["offset"],data:{_skip:!1}};function Wi(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Hi(e){return[co,po,ho,fo].some((function(t){return e[t]>=0}))}function Zi(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Vi(t,{elementContext:"reference"}),s=Vi(t,{altBoundary:!0}),l=Wi(a,r),u=Wi(s,o,i),c=Hi(l),d=Hi(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}var Gi={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Zi};function Xi(e,t,n){var r=Fo(e),o=[fo,co].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[fo,po].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function Ui(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=So.reduce((function(e,n){return e[n]=Xi(n,t.rects,i),e}),{}),s=a[t.placement],l=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}var Yi={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Ui};function qi(e){var t=e.state,n=e.name;t.modifiersData[n]=zi({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var Ki={name:"popperOffsets",enabled:!0,phase:"read",fn:qi,data:{}};function Ji(e){return"x"===e?"y":"x"}function ea(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,h=n.tether,p=void 0===h||h,f=n.tetherOffset,g=void 0===f?0:f,m=Vi(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),v=Fo(t.placement),y=pi(t.placement),b=!y,_=ri(v),x=Ji(_),w=t.modifiersData.popperOffsets,O=t.rects.reference,S=t.rects.popper,A="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,k="number"==typeof A?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),C=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(w){if(i){var T,P="y"===_?co:fo,I="y"===_?ho:po,$="y"===_?"height":"width",E=w[_],D=E+m[P],R=E-m[I],N=p?-S[$]/2:0,L=y===vo?O[$]:S[$],z=y===vo?-S[$]:-O[$],V=t.elements.arrow,B=p&&V?Xo(V):{width:0,height:0},j=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ai(),Q=j[P],F=j[I],W=oi(0,O[$],B[$]),H=b?O[$]/2-N-W-Q-k.mainAxis:L-W-Q-k.mainAxis,Z=b?-O[$]/2+N+W+F+k.mainAxis:z+W+F+k.mainAxis,G=t.elements.arrow&&ni(t.elements.arrow),X=G?"y"===_?G.clientTop||0:G.clientLeft||0:0,U=null!=(T=null==C?void 0:C[_])?T:0,Y=E+H-U-X,q=E+Z-U,K=oi(p?Ho(D,Y):D,E,p?Wo(R,q):R);w[_]=K,M[_]=K-E}if(s){var J,ee="x"===_?co:fo,te="x"===_?ho:po,ne=w[x],re="y"===x?"height":"width",oe=ne+m[ee],ie=ne-m[te],ae=-1!==[co,fo].indexOf(v),se=null!=(J=null==C?void 0:C[x])?J:0,le=ae?oe:ne-O[re]-S[re]-se+k.altAxis,ue=ae?ne+O[re]+S[re]-se-k.altAxis:ie,ce=p&&ae?ii(le,ne,ue):oi(p?le:oe,ne,p?ue:ie);w[x]=ce,M[x]=ce-ne}t.modifiersData[r]=M}}var ta={name:"preventOverflow",enabled:!0,phase:"main",fn:ea,requiresIfExists:["offset"]};function na(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function ra(e){return e!==No(e)&&zo(e)?na(e):ki(e)}function oa(e){var t=e.getBoundingClientRect(),n=Zo(t.width)/e.offsetWidth||1,r=Zo(t.height)/e.offsetHeight||1;return 1!==n||1!==r}function ia(e,t,n){void 0===n&&(n=!1);var r=zo(t),o=zo(t)&&oa(t),i=Ko(t),a=Go(e,o),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==Ro(t)||Pi(i))&&(s=ra(t)),zo(t)?(l=Go(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=Ci(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function aa(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name);var i=[].concat(e.requires||[],e.requiresIfExists||[]);i.forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}function sa(e){var t=aa(e);return Do.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}function la(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}function ua(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}var ca={placement:"bottom",modifiers:[],strategy:"absolute"};function da(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function ha(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?ca:o;return function(e,t,n){void 0===n&&(n=i);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},ca,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],s=!1,l={state:o,setOptions:function(n){var a="function"==typeof n?n(o.options):n;c(),o.options=Object.assign({},i,o.options,a),o.scrollParents={reference:Lo(e)?$i(e):e.contextElement?$i(e.contextElement):[],popper:$i(t)};var s=sa(ua([].concat(r,o.options.modifiers)));return o.orderedModifiers=s.filter((function(e){return e.enabled})),u(),l.update()},forceUpdate:function(){if(!s){var e=o.elements,t=e.reference,n=e.popper;if(da(t,n)){o.rects={reference:ia(t,ni(n),"fixed"===o.options.strategy),popper:Xo(n)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((function(e){return o.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<o.orderedModifiers.length;r++)if(!0!==o.reset){var i=o.orderedModifiers[r],a=i.fn,u=i.options,c=void 0===u?{}:u,d=i.name;"function"==typeof a&&(o=a({state:o,options:c,name:d,instance:l})||o)}else o.reset=!1,r=-1}}},update:la((function(){return new Promise((function(e){l.forceUpdate(),e(o)}))})),destroy:function(){c(),s=!0}};if(!da(e,t))return l;function u(){o.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,i=e.effect;if("function"==typeof i){var s=i({state:o,name:t,instance:l,options:r}),u=function(){};a.push(s||u)}}))}function c(){a.forEach((function(e){return e()})),a=[]}return l.setOptions(n).then((function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)})),l}}ha();var pa=[xi,Ki,yi,Qo],fa=(ha({defaultModifiers:pa}),[xi,Ki,yi,Qo,Yi,Fi,ta,hi,Gi]),ga=ha({defaultModifiers:fa}),ma=n(50422);const va=bn({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),ya=e=>(0,ma.A)(va,e),ba=["fixed","absolute"],_a=bn({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:mn(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:So,default:"bottom"},popperOptions:{type:mn(Object),default:()=>({})},strategy:{type:String,values:ba,default:"absolute"}}),xa=bn({..._a,id:String,style:{type:mn([String,Array,Object])},className:{type:mn([String,Array,Object])},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:mn([String,Array,Object])},popperStyle:{type:mn([String,Array,Object])},referenceEl:{type:mn(Object)},triggerTargetEl:{type:mn(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...ya(["ariaLabel"])}),wa={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},Oa=bn({...lo,...xa,appendTo:{type:mn([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,visible:{type:mn(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...ya(["ariaLabel"])}),Sa=bn({virtualRef:{type:mn(Object)},virtualTriggering:Boolean,onMouseenter:{type:mn(Function)},onMouseleave:{type:mn(Function)},onClick:{type:mn(Function)},onKeydown:{type:mn(Function)},onFocus:{type:mn(Function)},onBlur:{type:mn(Function)},onContextmenu:{type:mn(Function)},id:String,open:Boolean}),Aa={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},ka=bn({...Sa,disabled:Boolean,trigger:{type:mn([String,Array]),default:"hover"},triggerKeys:{type:mn(Array),default:()=>[Aa.enter,Aa.space]}}),Ca=yn({type:mn(Boolean),default:null}),Ma=yn({type:mn(Function)}),Ta=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,o=[t],i={[e]:Ca,[n]:Ma},a=({indicator:o,toggleReason:i,shouldHideWhenRouteChanges:a,shouldProceed:s,onShow:l,onHide:u})=>{const c=(0,r.getCurrentInstance)(),{emit:d}=c,h=c.props,p=(0,r.computed)((()=>ln(h[n]))),f=(0,r.computed)((()=>null===h[e])),g=e=>{!0!==o.value&&(o.value=!0,i&&(i.value=e),ln(l)&&l(e))},m=e=>{!1!==o.value&&(o.value=!1,i&&(i.value=e),ln(u)&&u(e))},v=e=>{if(!0===h.disabled||ln(s)&&!s())return;const n=p.value&&er;n&&d(t,!0),!f.value&&n||g(e)},y=e=>{if(!0===h.disabled||!er)return;const n=p.value&&er;n&&d(t,!1),!f.value&&n||m(e)},b=e=>{In(e)&&(h.disabled&&e?p.value&&d(t,!1):o.value!==e&&(e?g():m()))},_=()=>{o.value?y():v()};return(0,r.watch)((()=>h[e]),b),a&&void 0!==c.appContext.config.globalProperties.$route&&(0,r.watch)((()=>({...c.proxy.$route})),(()=>{a.value&&o.value&&y()})),(0,r.onMounted)((()=>{b(h[e])})),{hide:y,show:v,toggle:_,hasUpdateHandler:p}};return{useModelToggle:a,useModelToggleProps:i,useModelToggleEmits:o}},{useModelToggle:Pa,useModelToggleProps:Ia,useModelToggleEmits:$a}=Ta("modelValue"),Ea=bn({arrowOffset:{type:Number,default:5}}),{useModelToggleProps:Da,useModelToggleEmits:Ra,useModelToggle:Na}=Ta("visible"),La=bn({...to,...Da,...Oa,...ka,...Ea,showArrow:{type:Boolean,default:!0}}),za=[...Ra,"before-show","before-hide","show","hide","open","close"],Va=(e,t)=>sn(e)?e.includes(t):e===t,Ba=(e,t,n)=>o=>{Va((0,r.unref)(e),t)&&n(o)},ja=(e,t,{checkForDefaultPrevented:n=!0}={})=>{const r=r=>{const o=null==e?void 0:e(r);if(!1===n||!o)return null==t?void 0:t(r)};return r};n(57836),n(39109),n(34381),n(9878),n(46801),n(66462),n(28360),n(60726),n(82765),n(13312);function Qa(e){var t;const n=or(e);return null!=(t=null==n?void 0:n.$el)?t:n}const Fa=er?window:void 0;er&&window.document,er&&window.navigator,er&&window.location;function Wa(...e){let t,n,r,o;if(tr(e[0])||Array.isArray(e[0])?([n,r,o]=e,t=Fa):[t,n,r,o]=e,!t)return nr;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const i=[],a=()=>{i.forEach((e=>e())),i.length=0},s=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),l=(0,Jn.watch)((()=>[Qa(t),or(o)]),(([e,t])=>{a(),e&&i.push(...n.flatMap((n=>r.map((r=>s(e,n,r,t))))))}),{immediate:!0,flush:"post"}),u=()=>{l(),a()};return ar(u),u}let Ha=!1;function Za(e,t,n={}){const{window:r=Fa,ignore:o=[],capture:i=!0,detectIframe:a=!1}=n;if(!r)return;rr&&!Ha&&(Ha=!0,Array.from(r.document.body.children).forEach((e=>e.addEventListener("click",nr))));let s=!0;const l=e=>o.some((t=>{if("string"===typeof t)return Array.from(r.document.querySelectorAll(t)).some((t=>t===e.target||e.composedPath().includes(t)));{const n=Qa(t);return n&&(e.target===n||e.composedPath().includes(n))}})),u=n=>{const r=Qa(e);r&&r!==n.target&&!n.composedPath().includes(r)&&(0===n.detail&&(s=!l(n)),s?t(n):s=!0)},c=[Wa(r,"click",u,{passive:!0,capture:i}),Wa(r,"pointerdown",(t=>{const n=Qa(e);n&&(s=!t.composedPath().includes(n)&&!l(t))}),{passive:!0}),a&&Wa(r,"blur",(n=>{var o;const i=Qa(e);"IFRAME"!==(null==(o=r.document.activeElement)?void 0:o.tagName)||(null==i?void 0:i.contains(r.document.activeElement))||t(n)}))].filter(Boolean),d=()=>c.forEach((e=>e()));return d}Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;function Ga(e,t=!1){const n=(0,Jn.ref)(),r=()=>n.value=Boolean(e());return r(),sr(r,t),n}Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;const Xa="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{},Ua="__vueuse_ssr_handlers__";Xa[Ua]=Xa[Ua]||{};Xa[Ua];Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var Ya=Object.getOwnPropertySymbols,qa=Object.prototype.hasOwnProperty,Ka=Object.prototype.propertyIsEnumerable,Ja=(e,t)=>{var n={};for(var r in e)qa.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Ya)for(var r of Ya(e))t.indexOf(r)<0&&Ka.call(e,r)&&(n[r]=e[r]);return n};function es(e,t,n={}){const r=n,{window:o=Fa}=r,i=Ja(r,["window"]);let a;const s=Ga((()=>o&&"ResizeObserver"in o)),l=()=>{a&&(a.disconnect(),a=void 0)},u=(0,Jn.watch)((()=>Qa(e)),(e=>{l(),s.value&&o&&e&&(a=new ResizeObserver(t),a.observe(e,i))}),{immediate:!0,flush:"post"}),c=()=>{l(),u()};return ar(c),{isSupported:s,stop:c}}Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;new Map;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var ts;(function(e){e["UP"]="UP",e["RIGHT"]="RIGHT",e["DOWN"]="DOWN",e["LEFT"]="LEFT",e["NONE"]="NONE"})(ts||(ts={}));Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var ns=Object.defineProperty,rs=Object.getOwnPropertySymbols,os=Object.prototype.hasOwnProperty,is=Object.prototype.propertyIsEnumerable,as=(e,t,n)=>t in e?ns(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ss=(e,t)=>{for(var n in t||(t={}))os.call(t,n)&&as(e,n,t[n]);if(rs)for(var n of rs(t))is.call(t,n)&&as(e,n,t[n]);return e};const ls={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};ss({linear:ir},ls);const us=Symbol("elForwardRef"),cs=e=>{const t=t=>{e.value=t};(0,r.provide)(us,{setForwardRef:t})},ds=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),hs="ElOnlyChild",ps=(0,r.defineComponent)({name:hs,setup(e,{slots:t,attrs:n}){var o;const i=(0,r.inject)(us),a=ds(null!=(o=null==i?void 0:i.setForwardRef)?o:rn);return()=>{var e;const o=null==(e=t.default)?void 0:e.call(t,n);if(!o)return null;if(o.length>1)return Nn(hs,"requires exact only one valid child."),null;const i=fs(o);return i?(0,r.withDirectives)((0,r.cloneVNode)(i,n),[[a]]):(Nn(hs,"no valid child node found"),null)}}});function fs(e){if(!e)return null;const t=e;for(const n of t){if(cn(n))switch(n.type){case r.Comment:continue;case r.Text:case"svg":return gs(n);case r.Fragment:return fs(n.children);default:return n}return gs(n)}return null}function gs(e){const t=Cn("only-child");return(0,r.createVNode)("span",{class:t.e("content")},[e])}const ms=(0,r.defineComponent)({name:"ElPopperTrigger",inheritAttrs:!1}),vs=(0,r.defineComponent)({...ms,props:Sa,setup(e,{expose:t}){const n=e,{role:o,triggerRef:i}=(0,r.inject)(Kr,void 0);cs(i);const a=(0,r.computed)((()=>l.value?n.id:void 0)),s=(0,r.computed)((()=>{if(o&&"tooltip"===o.value)return n.open&&n.id?n.id:void 0})),l=(0,r.computed)((()=>{if(o&&"tooltip"!==o.value)return o.value})),u=(0,r.computed)((()=>l.value?`${n.open}`:void 0));let c;return(0,r.onMounted)((()=>{(0,r.watch)((()=>n.virtualRef),(e=>{e&&(i.value=Qa(e))}),{immediate:!0}),(0,r.watch)(i,((e,t)=>{null==c||c(),c=void 0,En(e)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach((r=>{var o;const i=n[r];i&&(e.addEventListener(r.slice(2).toLowerCase(),i),null==(o=null==t?void 0:t.removeEventListener)||o.call(t,r.slice(2).toLowerCase(),i))})),c=(0,r.watch)([a,s,l,u],(t=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(((n,r)=>{Tn(t[r])?e.removeAttribute(n):e.setAttribute(n,t[r])}))}),{immediate:!0})),En(t)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((e=>t.removeAttribute(e)))}),{immediate:!0})})),(0,r.onBeforeUnmount)((()=>{null==c||c(),c=void 0})),t({triggerRef:i}),(e,t)=>e.virtualTriggering?(0,r.createCommentVNode)("v-if",!0):((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(ps),(0,r.mergeProps)({key:0},e.$attrs,{"aria-controls":(0,r.unref)(a),"aria-describedby":(0,r.unref)(s),"aria-expanded":(0,r.unref)(u),"aria-haspopup":(0,r.unref)(l)}),{default:(0,r.withCtx)((()=>[(0,r.renderSlot)(e.$slots,"default")])),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var ys=xn(vs,[["__file","trigger.vue"]]);const bs=(0,r.defineComponent)({name:"ElTooltipTrigger"}),_s=(0,r.defineComponent)({...bs,props:ka,setup(e,{expose:t}){const n=e,o=Cn("tooltip"),{controlled:i,id:a,open:s,onOpen:l,onClose:u,onToggle:c}=(0,r.inject)(ao,void 0),d=(0,r.ref)(null),h=()=>{if((0,r.unref)(i)||n.disabled)return!0},p=(0,r.toRef)(n,"trigger"),f=ja(h,Ba(p,"hover",l)),g=ja(h,Ba(p,"hover",u)),m=ja(h,Ba(p,"click",(e=>{0===e.button&&c(e)}))),v=ja(h,Ba(p,"focus",l)),y=ja(h,Ba(p,"focus",u)),b=ja(h,Ba(p,"contextmenu",(e=>{e.preventDefault(),c(e)}))),_=ja(h,(e=>{const{code:t}=e;n.triggerKeys.includes(t)&&(e.preventDefault(),c(e))}));return t({triggerRef:d}),(e,t)=>((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(ys),{id:(0,r.unref)(a),"virtual-ref":e.virtualRef,open:(0,r.unref)(s),"virtual-triggering":e.virtualTriggering,class:(0,r.normalizeClass)((0,r.unref)(o).e("trigger")),onBlur:(0,r.unref)(y),onClick:(0,r.unref)(m),onContextmenu:(0,r.unref)(b),onFocus:(0,r.unref)(v),onMouseenter:(0,r.unref)(f),onMouseleave:(0,r.unref)(g),onKeydown:(0,r.unref)(_)},{default:(0,r.withCtx)((()=>[(0,r.renderSlot)(e.$slots,"default")])),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var xs=xn(_s,[["__file","trigger.vue"]]);let ws;const Os=()=>{const e=kn(),t=cr(),n=(0,r.computed)((()=>`${e.value}-popper-container-${t.prefix}`)),o=(0,r.computed)((()=>`#${n.value}`));return{id:n,selector:o}},Ss=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},As=()=>{const{id:e,selector:t}=Os();return(0,r.onBeforeMount)((()=>{er&&(ws||document.body.querySelector(t.value)||(ws=Ss(e.value)))})),{id:e,selector:t}},ks=(e,t)=>{const n=(0,r.ref)(!1),o=(0,r.ref)(),i=()=>{t("focus")},a=e=>{var n;"pointer"!==(null==(n=e.detail)?void 0:n.focusReason)&&(o.value="first",t("blur"))},s=t=>{e.visible&&!n.value&&(t.target&&(o.value=t.target),n.value=!0)},l=t=>{e.trapping||("pointer"===t.detail.focusReason&&t.preventDefault(),n.value=!1)},u=()=>{n.value=!1,t("close")};return{focusStartRef:o,trapped:n,onFocusAfterReleased:a,onFocusAfterTrapped:i,onFocusInTrap:s,onFocusoutPrevented:l,onReleaseRequested:u}};function Cs(e){return void 0===e}var Ms=Cs;const Ts=(e,t=[])=>{const{placement:n,strategy:r,popperOptions:o}=e,i={placement:n,strategy:r,...o,modifiers:[...Is(e),...t]};return $s(i,null==o?void 0:o.modifiers),i},Ps=e=>{if(er)return Qa(e)};function Is(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:r}=e;return[{name:"offset",options:{offset:[0,null!=t?t:12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:r}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function $s(e,t){t&&(e.modifiers=[...e.modifiers,...null!=t?t:[]])}const Es=(e,t,n={})=>{const o={name:"updateState",enabled:!0,phase:"write",fn:({state:e})=>{const t=Ds(e);Object.assign(s.value,t)},requires:["computeStyles"]},i=(0,r.computed)((()=>{const{onFirstUpdate:e,placement:t,strategy:i,modifiers:a}=(0,r.unref)(n);return{onFirstUpdate:e,placement:t||"bottom",strategy:i||"absolute",modifiers:[...a||[],o,{name:"applyStyles",enabled:!1}]}})),a=(0,r.shallowRef)(),s=(0,r.ref)({styles:{popper:{position:(0,r.unref)(i).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=()=>{a.value&&(a.value.destroy(),a.value=void 0)};return(0,r.watch)(i,(e=>{const t=(0,r.unref)(a);t&&t.setOptions(e)}),{deep:!0}),(0,r.watch)([e,t],(([e,t])=>{l(),e&&t&&(a.value=ga(e,t,(0,r.unref)(i)))})),(0,r.onBeforeUnmount)((()=>{l()})),{state:(0,r.computed)((()=>{var e;return{...(null==(e=(0,r.unref)(a))?void 0:e.state)||{}}})),styles:(0,r.computed)((()=>(0,r.unref)(s).styles)),attributes:(0,r.computed)((()=>(0,r.unref)(s).attributes)),update:()=>{var e;return null==(e=(0,r.unref)(a))?void 0:e.update()},forceUpdate:()=>{var e;return null==(e=(0,r.unref)(a))?void 0:e.forceUpdate()},instanceRef:(0,r.computed)((()=>(0,r.unref)(a)))}};function Ds(e){const t=Object.keys(e.elements),n=nn(t.map((t=>[t,e.styles[t]||{}]))),r=nn(t.map((t=>[t,e.attributes[t]])));return{styles:n,attributes:r}}const Rs=0,Ns=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:o,role:i}=(0,r.inject)(Kr,void 0),a=(0,r.ref)(),s=(0,r.ref)(),l=(0,r.computed)((()=>({name:"eventListeners",enabled:!!e.visible}))),u=(0,r.computed)((()=>{var e;const t=(0,r.unref)(a),n=null!=(e=(0,r.unref)(s))?e:Rs;return{name:"arrow",enabled:!Ms(t),options:{element:t,padding:n}}})),c=(0,r.computed)((()=>({onFirstUpdate:()=>{g()},...Ts(e,[(0,r.unref)(u),(0,r.unref)(l)])}))),d=(0,r.computed)((()=>Ps(e.referenceEl)||(0,r.unref)(o))),{attributes:h,state:p,styles:f,update:g,forceUpdate:m,instanceRef:v}=Es(d,n,c);return(0,r.watch)(v,(e=>t.value=e)),(0,r.onMounted)((()=>{(0,r.watch)((()=>{var e;return null==(e=(0,r.unref)(d))?void 0:e.getBoundingClientRect()}),(()=>{g()}))})),{attributes:h,arrowRef:a,contentRef:n,instanceRef:v,state:p,styles:f,role:i,forceUpdate:m,update:g}},Ls={current:0},zs=(0,r.ref)(0),Vs=2e3,Bs=Symbol("elZIndexContextKey"),js=Symbol("zIndexContextKey"),Qs=e=>{const t=(0,r.getCurrentInstance)()?(0,r.inject)(Bs,Ls):Ls,n=e||((0,r.getCurrentInstance)()?(0,r.inject)(js,void 0):void 0),o=(0,r.computed)((()=>{const e=(0,r.unref)(n);return $n(e)?e:Vs})),i=(0,r.computed)((()=>o.value+zs.value)),a=()=>(t.current++,zs.value=t.current,i.value);return er||(0,r.inject)(Bs)||Nn("ZIndexInjection","Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed\nusage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })"),{initialZIndex:o,currentZIndex:i,nextZIndex:a}},Fs=(e,{attributes:t,styles:n,role:o})=>{const{nextZIndex:i}=Qs(),a=Cn("popper"),s=(0,r.computed)((()=>(0,r.unref)(t).popper)),l=(0,r.ref)($n(e.zIndex)?e.zIndex:i()),u=(0,r.computed)((()=>[a.b(),a.is("pure",e.pure),a.is(e.effect),e.popperClass])),c=(0,r.computed)((()=>[{zIndex:(0,r.unref)(l)},(0,r.unref)(n).popper,e.popperStyle||{}])),d=(0,r.computed)((()=>"dialog"===o.value?"false":void 0)),h=(0,r.computed)((()=>(0,r.unref)(n).arrow||{})),p=()=>{l.value=$n(e.zIndex)?e.zIndex:i()};return{ariaModal:d,arrowStyle:h,contentAttrs:s,contentClass:u,contentStyle:c,contentZIndex:l,updateZIndex:p}},Ws="focus-trap.focus-after-trapped",Hs="focus-trap.focus-after-released",Zs="focus-trap.focusout-prevented",Gs={cancelable:!0,bubbles:!1},Xs={cancelable:!0,bubbles:!1},Us="focusAfterTrapped",Ys="focusAfterReleased",qs=Symbol("elFocusTrap"),Ks=(0,r.ref)(),Js=(0,r.ref)(0),el=(0,r.ref)(0);let tl=0;const nl=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0||e===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});while(n.nextNode())t.push(n.currentNode);return t},rl=(e,t)=>{for(const n of e)if(!ol(n,t))return n},ol=(e,t)=>{if("hidden"===getComputedStyle(e).visibility)return!0;while(e){if(t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1},il=e=>{const t=nl(e),n=rl(t,e),r=rl(t.reverse(),e);return[n,r]},al=e=>e instanceof HTMLInputElement&&"select"in e,sl=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),el.value=window.performance.now(),e!==n&&al(e)&&t&&e.select()}};function ll(e,t){const n=[...e],r=e.indexOf(t);return-1!==r&&n.splice(r,1),n}const ul=()=>{let e=[];const t=t=>{const n=e[0];n&&t!==n&&n.pause(),e=ll(e,t),e.unshift(t)},n=t=>{var n,r;e=ll(e,t),null==(r=null==(n=e[0])?void 0:n.resume)||r.call(n)};return{push:t,remove:n}},cl=(e,t=!1)=>{const n=document.activeElement;for(const r of e)if(sl(r,t),document.activeElement!==n)return},dl=ul(),hl=()=>Js.value>el.value,pl=()=>{Ks.value="pointer",Js.value=window.performance.now()},fl=()=>{Ks.value="keyboard",Js.value=window.performance.now()},gl=()=>((0,r.onMounted)((()=>{0===tl&&(document.addEventListener("mousedown",pl),document.addEventListener("touchstart",pl),document.addEventListener("keydown",fl)),tl++})),(0,r.onBeforeUnmount)((()=>{tl--,tl<=0&&(document.removeEventListener("mousedown",pl),document.removeEventListener("touchstart",pl),document.removeEventListener("keydown",fl))})),{focusReason:Ks,lastUserFocusTimestamp:Js,lastAutomatedFocusTimestamp:el}),ml=e=>new CustomEvent(Zs,{...Xs,detail:e});let vl=[];const yl=e=>{const t=e;t.key===Aa.esc&&vl.forEach((e=>e(t)))},bl=e=>{(0,r.onMounted)((()=>{0===vl.length&&document.addEventListener("keydown",yl),er&&vl.push(e)})),(0,r.onBeforeUnmount)((()=>{vl=vl.filter((t=>t!==e)),0===vl.length&&er&&document.removeEventListener("keydown",yl)}))},_l=(0,r.defineComponent)({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[Us,Ys,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=(0,r.ref)();let o,i;const{focusReason:a}=gl();bl((n=>{e.trapped&&!s.paused&&t("release-requested",n)}));const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},l=n=>{if(!e.loop&&!e.trapped)return;if(s.paused)return;const{key:r,altKey:o,ctrlKey:i,metaKey:l,currentTarget:u,shiftKey:c}=n,{loop:d}=e,h=r===Aa.tab&&!o&&!i&&!l,p=document.activeElement;if(h&&p){const e=u,[r,o]=il(e),i=r&&o;if(i)if(c||p!==o){if(c&&[r,e].includes(p)){const e=ml({focusReason:a.value});t("focusout-prevented",e),e.defaultPrevented||(n.preventDefault(),d&&sl(o,!0))}}else{const e=ml({focusReason:a.value});t("focusout-prevented",e),e.defaultPrevented||(n.preventDefault(),d&&sl(r,!0))}else if(p===e){const e=ml({focusReason:a.value});t("focusout-prevented",e),e.defaultPrevented||n.preventDefault()}}};(0,r.provide)(qs,{focusTrapRef:n,onKeydown:l}),(0,r.watch)((()=>e.focusTrapEl),(e=>{e&&(n.value=e)}),{immediate:!0}),(0,r.watch)([n],(([e],[t])=>{e&&(e.addEventListener("keydown",l),e.addEventListener("focusin",d),e.addEventListener("focusout",h)),t&&(t.removeEventListener("keydown",l),t.removeEventListener("focusin",d),t.removeEventListener("focusout",h))}));const u=e=>{t(Us,e)},c=e=>t(Ys,e),d=a=>{const l=(0,r.unref)(n);if(!l)return;const u=a.target,c=a.relatedTarget,d=u&&l.contains(u);if(!e.trapped){const e=c&&l.contains(c);e||(o=c)}d&&t("focusin",a),s.paused||e.trapped&&(d?i=u:sl(i,!0))},h=o=>{const l=(0,r.unref)(n);if(!s.paused&&l)if(e.trapped){const n=o.relatedTarget;Tn(n)||l.contains(n)||setTimeout((()=>{if(!s.paused&&e.trapped){const e=ml({focusReason:a.value});t("focusout-prevented",e),e.defaultPrevented||sl(i,!0)}}),0)}else{const e=o.target,n=e&&l.contains(e);n||t("focusout",o)}};async function p(){await(0,r.nextTick)();const t=(0,r.unref)(n);if(t){dl.push(s);const n=t.contains(document.activeElement)?o:document.activeElement;o=n;const i=t.contains(n);if(!i){const o=new Event(Ws,Gs);t.addEventListener(Ws,u),t.dispatchEvent(o),o.defaultPrevented||(0,r.nextTick)((()=>{let r=e.focusStartEl;un(r)||(sl(r),document.activeElement!==r&&(r="first")),"first"===r&&cl(nl(t),!0),document.activeElement!==n&&"container"!==r||sl(t)}))}}}function f(){const e=(0,r.unref)(n);if(e){e.removeEventListener(Ws,u);const t=new CustomEvent(Hs,{...Gs,detail:{focusReason:a.value}});e.addEventListener(Hs,c),e.dispatchEvent(t),t.defaultPrevented||"keyboard"!=a.value&&hl()&&!e.contains(document.activeElement)||sl(null!=o?o:document.body),e.removeEventListener(Hs,c),dl.remove(s)}}return(0,r.onMounted)((()=>{e.trapped&&p(),(0,r.watch)((()=>e.trapped),(e=>{e?p():f()}))})),(0,r.onBeforeUnmount)((()=>{e.trapped&&f()})),{onKeydown:l}}});function xl(e,t,n,o,i,a){return(0,r.renderSlot)(e.$slots,"default",{handleKeydown:e.onKeydown})}var wl=xn(_l,[["render",xl],["__file","focus-trap.vue"]]);const Ol=(0,r.defineComponent)({name:"ElPopperContent"}),Sl=(0,r.defineComponent)({...Ol,props:xa,emits:wa,setup(e,{expose:t,emit:n}){const o=e,{focusStartRef:i,trapped:a,onFocusAfterReleased:s,onFocusAfterTrapped:l,onFocusInTrap:u,onFocusoutPrevented:c,onReleaseRequested:d}=ks(o,n),{attributes:h,arrowRef:p,contentRef:f,styles:g,instanceRef:m,role:v,update:y}=Ns(o),{ariaModal:b,arrowStyle:_,contentAttrs:x,contentClass:w,contentStyle:O,updateZIndex:S}=Fs(o,{styles:g,attributes:h,role:v}),A=(0,r.inject)(qn,void 0),k=(0,r.ref)();let C;(0,r.provide)(Jr,{arrowStyle:_,arrowRef:p,arrowOffset:k}),A&&(0,r.provide)(qn,{...A,addInputId:rn,removeInputId:rn});const M=(e=!0)=>{y(),e&&S()},T=()=>{M(!1),o.visible&&o.focusOnShow?a.value=!0:!1===o.visible&&(a.value=!1)};return(0,r.onMounted)((()=>{(0,r.watch)((()=>o.triggerTargetEl),((e,t)=>{null==C||C(),C=void 0;const n=(0,r.unref)(e||f.value),i=(0,r.unref)(t||f.value);En(n)&&(C=(0,r.watch)([v,()=>o.ariaLabel,b,()=>o.id],(e=>{["role","aria-label","aria-modal","id"].forEach(((t,r)=>{Tn(e[r])?n.removeAttribute(t):n.setAttribute(t,e[r])}))}),{immediate:!0})),i!==n&&En(i)&&["role","aria-label","aria-modal","id"].forEach((e=>{i.removeAttribute(e)}))}),{immediate:!0}),(0,r.watch)((()=>o.visible),T,{immediate:!0})})),(0,r.onBeforeUnmount)((()=>{null==C||C(),C=void 0})),t({popperContentRef:f,popperInstanceRef:m,updatePopper:M,contentStyle:O}),(e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",(0,r.mergeProps)({ref_key:"contentRef",ref:f},(0,r.unref)(x),{style:(0,r.unref)(O),class:(0,r.unref)(w),tabindex:"-1",onMouseenter:t[0]||(t[0]=t=>e.$emit("mouseenter",t)),onMouseleave:t[1]||(t[1]=t=>e.$emit("mouseleave",t))}),[(0,r.createVNode)((0,r.unref)(wl),{trapped:(0,r.unref)(a),"trap-on-focus-in":!0,"focus-trap-el":(0,r.unref)(f),"focus-start-el":(0,r.unref)(i),onFocusAfterTrapped:(0,r.unref)(l),onFocusAfterReleased:(0,r.unref)(s),onFocusin:(0,r.unref)(u),onFocusoutPrevented:(0,r.unref)(c),onReleaseRequested:(0,r.unref)(d)},{default:(0,r.withCtx)((()=>[(0,r.renderSlot)(e.$slots,"default")])),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var Al=xn(Sl,[["__file","content.vue"]]);const kl=(0,r.defineComponent)({name:"ElTooltipContent",inheritAttrs:!1}),Cl=(0,r.defineComponent)({...kl,props:Oa,setup(e,{expose:t}){const n=e,{selector:o}=Os(),i=Cn("tooltip"),a=(0,r.ref)(null),s=(0,r.ref)(!1),{controlled:l,id:u,open:c,trigger:d,onClose:h,onOpen:p,onShow:f,onHide:g,onBeforeShow:m,onBeforeHide:v}=(0,r.inject)(ao,void 0),y=(0,r.computed)((()=>n.transition||`${i.namespace.value}-fade-in-linear`)),b=(0,r.computed)((()=>n.persistent));(0,r.onBeforeUnmount)((()=>{s.value=!0}));const _=(0,r.computed)((()=>!!(0,r.unref)(b)||(0,r.unref)(c))),x=(0,r.computed)((()=>!n.disabled&&(0,r.unref)(c))),w=(0,r.computed)((()=>n.appendTo||o.value)),O=(0,r.computed)((()=>{var e;return null!=(e=n.style)?e:{}})),S=(0,r.computed)((()=>!(0,r.unref)(c))),A=()=>{g()},k=()=>{if((0,r.unref)(l))return!0},C=ja(k,(()=>{n.enterable&&"hover"===(0,r.unref)(d)&&p()})),M=ja(k,(()=>{"hover"===(0,r.unref)(d)&&h()})),T=()=>{var e,t;null==(t=null==(e=a.value)?void 0:e.updatePopper)||t.call(e),null==m||m()},P=()=>{null==v||v()},I=()=>{f(),E=Za((0,r.computed)((()=>{var e;return null==(e=a.value)?void 0:e.popperContentRef})),(()=>{if((0,r.unref)(l))return;const e=(0,r.unref)(d);"hover"!==e&&h()}))},$=()=>{n.virtualTriggering||h()};let E;return(0,r.watch)((()=>(0,r.unref)(c)),(e=>{e||null==E||E()}),{flush:"post"}),(0,r.watch)((()=>n.content),(()=>{var e,t;null==(t=null==(e=a.value)?void 0:e.updatePopper)||t.call(e)})),t({contentRef:a}),(e,t)=>((0,r.openBlock)(),(0,r.createBlock)(r.Teleport,{disabled:!e.teleported,to:(0,r.unref)(w)},[(0,r.createVNode)(r.Transition,{name:(0,r.unref)(y),onAfterLeave:A,onBeforeEnter:T,onAfterEnter:I,onBeforeLeave:P},{default:(0,r.withCtx)((()=>[(0,r.unref)(_)?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(Al),(0,r.mergeProps)({key:0,id:(0,r.unref)(u),ref_key:"contentRef",ref:a},e.$attrs,{"aria-label":e.ariaLabel,"aria-hidden":(0,r.unref)(S),"boundaries-padding":e.boundariesPadding,"fallback-placements":e.fallbackPlacements,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,placement:e.placement,"popper-options":e.popperOptions,strategy:e.strategy,effect:e.effect,enterable:e.enterable,pure:e.pure,"popper-class":e.popperClass,"popper-style":[e.popperStyle,(0,r.unref)(O)],"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,visible:(0,r.unref)(x),"z-index":e.zIndex,onMouseenter:(0,r.unref)(C),onMouseleave:(0,r.unref)(M),onBlur:$,onClose:(0,r.unref)(h)}),{default:(0,r.withCtx)((()=>[s.value?(0,r.createCommentVNode)("v-if",!0):(0,r.renderSlot)(e.$slots,"default",{key:0})])),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[r.vShow,(0,r.unref)(x)]]):(0,r.createCommentVNode)("v-if",!0)])),_:3},8,["name"])],8,["disabled","to"]))}});var Ml=xn(Cl,[["__file","content.vue"]]);const Tl=(0,r.defineComponent)({name:"ElPopperArrow",inheritAttrs:!1}),Pl=(0,r.defineComponent)({...Tl,props:Ea,setup(e,{expose:t}){const n=e,o=Cn("popper"),{arrowOffset:i,arrowRef:a,arrowStyle:s}=(0,r.inject)(Jr,void 0);return(0,r.watch)((()=>n.arrowOffset),(e=>{i.value=e})),(0,r.onBeforeUnmount)((()=>{a.value=void 0})),t({arrowRef:a}),(e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("span",{ref_key:"arrowRef",ref:a,class:(0,r.normalizeClass)((0,r.unref)(o).e("arrow")),style:(0,r.normalizeStyle)((0,r.unref)(s)),"data-popper-arrow":""},null,6))}});var Il=xn(Pl,[["__file","arrow.vue"]]);const $l=["innerHTML"],El={key:1},Dl=(0,r.defineComponent)({name:"ElTooltip"}),Rl=(0,r.defineComponent)({...Dl,props:La,emits:za,setup(e,{expose:t,emit:n}){const o=e;As();const i=dr(),a=(0,r.ref)(),s=(0,r.ref)(),l=()=>{var e;const t=(0,r.unref)(a);t&&(null==(e=t.popperInstanceRef)||e.update())},u=(0,r.ref)(!1),c=(0,r.ref)(),{show:d,hide:h,hasUpdateHandler:p}=Na({indicator:u,toggleReason:c}),{onOpen:f,onClose:g}=uo({showAfter:(0,r.toRef)(o,"showAfter"),hideAfter:(0,r.toRef)(o,"hideAfter"),autoClose:(0,r.toRef)(o,"autoClose"),open:d,close:h}),m=(0,r.computed)((()=>In(o.visible)&&!p.value));(0,r.provide)(ao,{controlled:m,id:i,open:(0,r.readonly)(u),trigger:(0,r.toRef)(o,"trigger"),onOpen:e=>{f(e)},onClose:e=>{g(e)},onToggle:e=>{(0,r.unref)(u)?g(e):f(e)},onShow:()=>{n("show",c.value)},onHide:()=>{n("hide",c.value)},onBeforeShow:()=>{n("before-show",c.value)},onBeforeHide:()=>{n("before-hide",c.value)},updatePopper:l}),(0,r.watch)((()=>o.disabled),(e=>{e&&u.value&&(u.value=!1)}));const v=e=>{var t,n;const r=null==(n=null==(t=s.value)?void 0:t.contentRef)?void 0:n.popperContentRef,o=(null==e?void 0:e.relatedTarget)||document.activeElement;return r&&r.contains(o)};return(0,r.onDeactivated)((()=>u.value&&h())),t({popperRef:a,contentRef:s,isFocusInsideContent:v,updatePopper:l,onOpen:f,onClose:g,hide:h}),(e,t)=>((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(io),{ref_key:"popperRef",ref:a,role:e.role},{default:(0,r.withCtx)((()=>[(0,r.createVNode)(xs,{disabled:e.disabled,trigger:e.trigger,"trigger-keys":e.triggerKeys,"virtual-ref":e.virtualRef,"virtual-triggering":e.virtualTriggering},{default:(0,r.withCtx)((()=>[e.$slots.default?(0,r.renderSlot)(e.$slots,"default",{key:0}):(0,r.createCommentVNode)("v-if",!0)])),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),(0,r.createVNode)(Ml,{ref_key:"contentRef",ref:s,"aria-label":e.ariaLabel,"boundaries-padding":e.boundariesPadding,content:e.content,disabled:e.disabled,effect:e.effect,enterable:e.enterable,"fallback-placements":e.fallbackPlacements,"hide-after":e.hideAfter,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,persistent:e.persistent,"popper-class":e.popperClass,"popper-style":e.popperStyle,placement:e.placement,"popper-options":e.popperOptions,pure:e.pure,"raw-content":e.rawContent,"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,"show-after":e.showAfter,strategy:e.strategy,teleported:e.teleported,transition:e.transition,"virtual-triggering":e.virtualTriggering,"z-index":e.zIndex,"append-to":e.appendTo},{default:(0,r.withCtx)((()=>[(0,r.renderSlot)(e.$slots,"content",{},(()=>[e.rawContent?((0,r.openBlock)(),(0,r.createElementBlock)("span",{key:0,innerHTML:e.content},null,8,$l)):((0,r.openBlock)(),(0,r.createElementBlock)("span",El,(0,r.toDisplayString)(e.content),1))])),e.showArrow?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(Il),{key:0,"arrow-offset":e.arrowOffset},null,8,["arrow-offset"])):(0,r.createCommentVNode)("v-if",!0)])),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])])),_:3},8,["role"]))}});var Nl=xn(Rl,[["__file","tooltip.vue"]]);const Ll=Qn(Nl),zl=()=>er&&/firefox/i.test(window.navigator.userAgent);let Vl;const Bl=`\n height:0 !important;\n visibility:hidden !important;\n ${zl()?"":"overflow:hidden !important;"}\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n`,jl=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function Ql(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),o=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width")),i=jl.map((e=>`${e}:${t.getPropertyValue(e)}`)).join(";");return{contextStyle:i,paddingSize:r,borderSize:o,boxSizing:n}}function Fl(e,t=1,n){var r;Vl||(Vl=document.createElement("textarea"),document.body.appendChild(Vl));const{paddingSize:o,borderSize:i,boxSizing:a,contextStyle:s}=Ql(e);Vl.setAttribute("style",`${s};${Bl}`),Vl.value=e.value||e.placeholder||"";let l=Vl.scrollHeight;const u={};"border-box"===a?l+=i:"content-box"===a&&(l-=o),Vl.value="";const c=Vl.scrollHeight-o;if($n(t)){let e=c*t;"border-box"===a&&(e=e+o+i),l=Math.max(e,l),u.minHeight=`${e}px`}if($n(n)){let e=c*n;"border-box"===a&&(e=e+o+i),l=Math.min(e,l)}return u.height=`${l}px`,null==(r=Vl.parentNode)||r.removeChild(Vl),Vl=void 0,u}const Wl=e=>e,Hl="update:modelValue",Zl="change",Gl=bn({id:{type:String,default:void 0},size:mr,disabled:Boolean,modelValue:{type:mn([String,Number,Object]),default:""},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:mn([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:Nr},prefixIcon:{type:Nr},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:mn([Object,Array,String]),default:()=>Wl({})},autofocus:{type:Boolean,default:!1},...ya(["ariaLabel"])}),Xl={[Hl]:e=>un(e),input:e=>un(e),change:e=>un(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},Ul=["class","style"],Yl=/^on[A-Z]/,ql=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,o=(0,r.computed)((()=>((null==n?void 0:n.value)||[]).concat(Ul))),i=(0,r.getCurrentInstance)();return i?(0,r.computed)((()=>{var e;return nn(Object.entries(null==(e=i.proxy)?void 0:e.$attrs).filter((([e])=>!o.value.includes(e)&&!(t&&Yl.test(e)))))})):(Nn("use-attrs","getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function"),(0,r.computed)((()=>({}))))};function Kl(e,{afterFocus:t,beforeBlur:n,afterBlur:o}={}){const i=(0,r.getCurrentInstance)(),{emit:a}=i,s=(0,r.shallowRef)(),l=(0,r.ref)(!1),u=e=>{l.value||(l.value=!0,a("focus",e),null==t||t())},c=e=>{var t;const r=!!ln(n)&&n(e);r||e.relatedTarget&&(null==(t=s.value)?void 0:t.contains(e.relatedTarget))||(l.value=!1,a("blur",e),null==o||o())},d=()=>{var t;null==(t=e.value)||t.focus()};return(0,r.watch)(s,(e=>{e&&e.setAttribute("tabindex","-1")})),Wa(s,"click",d),{wrapperRef:s,isFocused:l,handleFocus:u,handleBlur:c}}function Jl(e){const t=(0,r.ref)();function n(){if(void 0==e.value)return;const{selectionStart:n,selectionEnd:r,value:o}=e.value;if(null==n||null==r)return;const i=o.slice(0,Math.max(0,n)),a=o.slice(Math.max(0,r));t.value={selectionStart:n,selectionEnd:r,value:o,beforeTxt:i,afterTxt:a}}function o(){if(void 0==e.value||void 0==t.value)return;const{value:n}=e.value,{beforeTxt:r,afterTxt:o,selectionStart:i}=t.value;if(void 0==r||void 0==o||void 0==i)return;let a=n.length;if(n.endsWith(o))a=n.length-o.length;else if(n.startsWith(r))a=r.length;else{const e=r[i-1],t=n.indexOf(e,i-1);-1!==t&&(a=t+1)}e.value.setSelectionRange(a,a)}return[n,o]}const eu=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),tu=["role"],nu=["id","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus"],ru=["id","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus"],ou=(0,r.defineComponent)({name:"ElInput",inheritAttrs:!1}),iu=(0,r.defineComponent)({...ou,props:Gl,emits:Xl,setup(e,{expose:t,emit:n}){const o=e,i=(0,r.useAttrs)(),a=(0,r.useSlots)(),s=(0,r.computed)((()=>{const e={};return"combobox"===o.containerRole&&(e["aria-haspopup"]=i["aria-haspopup"],e["aria-owns"]=i["aria-owns"],e["aria-expanded"]=i["aria-expanded"]),e})),l=(0,r.computed)((()=>["textarea"===o.type?v.b():m.b(),m.m(f.value),m.is("disabled",g.value),m.is("exceed",j.value),{[m.b("group")]:a.prepend||a.append,[m.m("prefix")]:a.prefix||o.prefixIcon,[m.m("suffix")]:a.suffix||o.suffixIcon||o.clearable||o.showPassword,[m.bm("suffix","password-clear")]:L.value&&z.value,[m.b("hidden")]:"hidden"===o.type},i.class])),u=(0,r.computed)((()=>[m.e("wrapper"),m.is("focus",C.value)])),c=ql({excludeKeys:(0,r.computed)((()=>Object.keys(s.value)))}),{form:d,formItem:h}=hr(),{inputId:p}=pr(o,{formItemContext:h}),f=br(),g=_r(),m=Cn("input"),v=Cn("textarea"),y=(0,r.shallowRef)(),b=(0,r.shallowRef)(),_=(0,r.ref)(!1),x=(0,r.ref)(!1),w=(0,r.ref)(!1),O=(0,r.ref)(),S=(0,r.shallowRef)(o.inputStyle),A=(0,r.computed)((()=>y.value||b.value)),{wrapperRef:k,isFocused:C,handleFocus:M,handleBlur:T}=Kl(A,{afterBlur(){var e;o.validateEvent&&(null==(e=null==h?void 0:h.validate)||e.call(h,"blur").catch((e=>Nn(e))))}}),P=(0,r.computed)((()=>{var e;return null!=(e=null==d?void 0:d.statusIcon)&&e})),I=(0,r.computed)((()=>(null==h?void 0:h.validateState)||"")),$=(0,r.computed)((()=>I.value&&Lr[I.value])),E=(0,r.computed)((()=>w.value?Rr:Ir)),D=(0,r.computed)((()=>[i.style])),R=(0,r.computed)((()=>[o.inputStyle,S.value,{resize:o.resize}])),N=(0,r.computed)((()=>Tn(o.modelValue)?"":String(o.modelValue))),L=(0,r.computed)((()=>o.clearable&&!g.value&&!o.readonly&&!!N.value&&(C.value||_.value))),z=(0,r.computed)((()=>o.showPassword&&!g.value&&!o.readonly&&!!N.value&&(!!N.value||C.value))),V=(0,r.computed)((()=>o.showWordLimit&&!!o.maxlength&&("text"===o.type||"textarea"===o.type)&&!g.value&&!o.readonly&&!o.showPassword)),B=(0,r.computed)((()=>N.value.length)),j=(0,r.computed)((()=>!!V.value&&B.value>Number(o.maxlength))),Q=(0,r.computed)((()=>!!a.suffix||!!o.suffixIcon||L.value||o.showPassword||V.value||!!I.value&&P.value)),[F,W]=Jl(y);es(b,(e=>{if(G(),!V.value||"both"!==o.resize)return;const t=e[0],{width:n}=t.contentRect;O.value={right:`calc(100% - ${n+15+6}px)`}}));const H=()=>{const{type:e,autosize:t}=o;if(er&&"textarea"===e&&b.value)if(t){const e=cn(t)?t.minRows:void 0,n=cn(t)?t.maxRows:void 0,o=Fl(b.value,e,n);S.value={overflowY:"hidden",...o},(0,r.nextTick)((()=>{b.value.offsetHeight,S.value=o}))}else S.value={minHeight:Fl(b.value).minHeight}},Z=e=>{let t=!1;return()=>{var n;if(t||!o.autosize)return;const r=null===(null==(n=b.value)?void 0:n.offsetParent);r||(e(),t=!0)}},G=Z(H),X=()=>{const e=A.value,t=o.formatter?o.formatter(N.value):N.value;e&&e.value!==t&&(e.value=t)},U=async e=>{F();let{value:t}=e.target;o.formatter&&(t=o.parser?o.parser(t):t),x.value||(t!==N.value?(n(Hl,t),n("input",t),await(0,r.nextTick)(),X(),W()):X())},Y=e=>{n("change",e.target.value)},q=e=>{n("compositionstart",e),x.value=!0},K=e=>{var t;n("compositionupdate",e);const r=null==(t=e.target)?void 0:t.value,o=r[r.length-1]||"";x.value=!eu(o)},J=e=>{n("compositionend",e),x.value&&(x.value=!1,U(e))},ee=()=>{w.value=!w.value,te()},te=async()=>{var e;await(0,r.nextTick)(),null==(e=A.value)||e.focus()},ne=()=>{var e;return null==(e=A.value)?void 0:e.blur()},re=e=>{_.value=!1,n("mouseleave",e)},oe=e=>{_.value=!0,n("mouseenter",e)},ie=e=>{n("keydown",e)},ae=()=>{var e;null==(e=A.value)||e.select()},se=()=>{n(Hl,""),n("change",""),n("clear"),n("input","")};return(0,r.watch)((()=>o.modelValue),(()=>{var e;(0,r.nextTick)((()=>H())),o.validateEvent&&(null==(e=null==h?void 0:h.validate)||e.call(h,"change").catch((e=>Nn(e))))})),(0,r.watch)(N,(()=>X())),(0,r.watch)((()=>o.type),(async()=>{await(0,r.nextTick)(),X(),H()})),(0,r.onMounted)((()=>{!o.formatter&&o.parser&&Nn("ElInput","If you set the parser, you also need to set the formatter."),X(),(0,r.nextTick)(H)})),Zn({from:"label",replacement:"aria-label",version:"2.8.0",scope:"el-input",ref:"https://element-plus.org/en-US/component/input.html"},(0,r.computed)((()=>!!o.label))),t({input:y,textarea:b,ref:A,textareaStyle:R,autosize:(0,r.toRef)(o,"autosize"),focus:te,blur:ne,select:ae,clear:se,resizeTextarea:H}),(e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",(0,r.mergeProps)((0,r.unref)(s),{class:[(0,r.unref)(l),{[(0,r.unref)(m).bm("group","append")]:e.$slots.append,[(0,r.unref)(m).bm("group","prepend")]:e.$slots.prepend}],style:(0,r.unref)(D),role:e.containerRole,onMouseenter:oe,onMouseleave:re}),[(0,r.createCommentVNode)(" input "),"textarea"!==e.type?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},[(0,r.createCommentVNode)(" prepend slot "),e.$slots.prepend?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:(0,r.normalizeClass)((0,r.unref)(m).be("group","prepend"))},[(0,r.renderSlot)(e.$slots,"prepend")],2)):(0,r.createCommentVNode)("v-if",!0),(0,r.createElementVNode)("div",{ref_key:"wrapperRef",ref:k,class:(0,r.normalizeClass)((0,r.unref)(u))},[(0,r.createCommentVNode)(" prefix slot "),e.$slots.prefix||e.prefixIcon?((0,r.openBlock)(),(0,r.createElementBlock)("span",{key:0,class:(0,r.normalizeClass)((0,r.unref)(m).e("prefix"))},[(0,r.createElementVNode)("span",{class:(0,r.normalizeClass)((0,r.unref)(m).e("prefix-inner"))},[(0,r.renderSlot)(e.$slots,"prefix"),e.prefixIcon?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(Wn),{key:0,class:(0,r.normalizeClass)((0,r.unref)(m).e("icon"))},{default:(0,r.withCtx)((()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.prefixIcon)))])),_:1},8,["class"])):(0,r.createCommentVNode)("v-if",!0)],2)],2)):(0,r.createCommentVNode)("v-if",!0),(0,r.createElementVNode)("input",(0,r.mergeProps)({id:(0,r.unref)(p),ref_key:"input",ref:y,class:(0,r.unref)(m).e("inner")},(0,r.unref)(c),{minlength:e.minlength,maxlength:e.maxlength,type:e.showPassword?w.value?"text":"password":e.type,disabled:(0,r.unref)(g),readonly:e.readonly,autocomplete:e.autocomplete,tabindex:e.tabindex,"aria-label":e.label||e.ariaLabel,placeholder:e.placeholder,style:e.inputStyle,form:e.form,autofocus:e.autofocus,onCompositionstart:q,onCompositionupdate:K,onCompositionend:J,onInput:U,onFocus:t[0]||(t[0]=(...e)=>(0,r.unref)(M)&&(0,r.unref)(M)(...e)),onBlur:t[1]||(t[1]=(...e)=>(0,r.unref)(T)&&(0,r.unref)(T)(...e)),onChange:Y,onKeydown:ie}),null,16,nu),(0,r.createCommentVNode)(" suffix slot "),(0,r.unref)(Q)?((0,r.openBlock)(),(0,r.createElementBlock)("span",{key:1,class:(0,r.normalizeClass)((0,r.unref)(m).e("suffix"))},[(0,r.createElementVNode)("span",{class:(0,r.normalizeClass)((0,r.unref)(m).e("suffix-inner"))},[(0,r.unref)(L)&&(0,r.unref)(z)&&(0,r.unref)(V)?(0,r.createCommentVNode)("v-if",!0):((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},[(0,r.renderSlot)(e.$slots,"suffix"),e.suffixIcon?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(Wn),{key:0,class:(0,r.normalizeClass)((0,r.unref)(m).e("icon"))},{default:(0,r.withCtx)((()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.suffixIcon)))])),_:1},8,["class"])):(0,r.createCommentVNode)("v-if",!0)],64)),(0,r.unref)(L)?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(Wn),{key:1,class:(0,r.normalizeClass)([(0,r.unref)(m).e("icon"),(0,r.unref)(m).e("clear")]),onMousedown:(0,r.withModifiers)((0,r.unref)(rn),["prevent"]),onClick:se},{default:(0,r.withCtx)((()=>[(0,r.createVNode)((0,r.unref)(Cr))])),_:1},8,["class","onMousedown"])):(0,r.createCommentVNode)("v-if",!0),(0,r.unref)(z)?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(Wn),{key:2,class:(0,r.normalizeClass)([(0,r.unref)(m).e("icon"),(0,r.unref)(m).e("password")]),onClick:ee},{default:(0,r.withCtx)((()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)((0,r.unref)(E))))])),_:1},8,["class"])):(0,r.createCommentVNode)("v-if",!0),(0,r.unref)(V)?((0,r.openBlock)(),(0,r.createElementBlock)("span",{key:3,class:(0,r.normalizeClass)((0,r.unref)(m).e("count"))},[(0,r.createElementVNode)("span",{class:(0,r.normalizeClass)((0,r.unref)(m).e("count-inner"))},(0,r.toDisplayString)((0,r.unref)(B))+" / "+(0,r.toDisplayString)(e.maxlength),3)],2)):(0,r.createCommentVNode)("v-if",!0),(0,r.unref)(I)&&(0,r.unref)($)&&(0,r.unref)(P)?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(Wn),{key:4,class:(0,r.normalizeClass)([(0,r.unref)(m).e("icon"),(0,r.unref)(m).e("validateIcon"),(0,r.unref)(m).is("loading","validating"===(0,r.unref)(I))])},{default:(0,r.withCtx)((()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)((0,r.unref)($))))])),_:1},8,["class"])):(0,r.createCommentVNode)("v-if",!0)],2)],2)):(0,r.createCommentVNode)("v-if",!0)],2),(0,r.createCommentVNode)(" append slot "),e.$slots.append?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:1,class:(0,r.normalizeClass)((0,r.unref)(m).be("group","append"))},[(0,r.renderSlot)(e.$slots,"append")],2)):(0,r.createCommentVNode)("v-if",!0)],64)):((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[(0,r.createCommentVNode)(" textarea "),(0,r.createElementVNode)("textarea",(0,r.mergeProps)({id:(0,r.unref)(p),ref_key:"textarea",ref:b,class:[(0,r.unref)(v).e("inner"),(0,r.unref)(m).is("focus",(0,r.unref)(C))]},(0,r.unref)(c),{minlength:e.minlength,maxlength:e.maxlength,tabindex:e.tabindex,disabled:(0,r.unref)(g),readonly:e.readonly,autocomplete:e.autocomplete,style:(0,r.unref)(R),"aria-label":e.label||e.ariaLabel,placeholder:e.placeholder,form:e.form,autofocus:e.autofocus,onCompositionstart:q,onCompositionupdate:K,onCompositionend:J,onInput:U,onFocus:t[2]||(t[2]=(...e)=>(0,r.unref)(M)&&(0,r.unref)(M)(...e)),onBlur:t[3]||(t[3]=(...e)=>(0,r.unref)(T)&&(0,r.unref)(T)(...e)),onChange:Y,onKeydown:ie}),null,16,ru),(0,r.unref)(V)?((0,r.openBlock)(),(0,r.createElementBlock)("span",{key:0,style:(0,r.normalizeStyle)(O.value),class:(0,r.normalizeClass)((0,r.unref)(m).e("count"))},(0,r.toDisplayString)((0,r.unref)(B))+" / "+(0,r.toDisplayString)(e.maxlength),7)):(0,r.createCommentVNode)("v-if",!0)],64))],16,tu))}});var au=xn(iu,[["__file","input.vue"]]);const su=Qn(au),lu=bn({color:{type:mn(Object),required:!0},vertical:{type:Boolean,default:!1}});let uu=!1;function cu(e,t){if(!er)return;const n=function(e){var n;null==(n=t.drag)||n.call(t,e)},r=function(e){var o;document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",r),document.removeEventListener("touchmove",n),document.removeEventListener("touchend",r),document.onselectstart=null,document.ondragstart=null,uu=!1,null==(o=t.end)||o.call(t,e)},o=function(e){var o;uu||(e.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",n),document.addEventListener("mouseup",r),document.addEventListener("touchmove",n),document.addEventListener("touchend",r),uu=!0,null==(o=t.start)||o.call(t,e))};e.addEventListener("mousedown",o),e.addEventListener("touchstart",o)}const du=e=>{let t,n;return"touchend"===e.type?(n=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(n=e.touches[0].clientY,t=e.touches[0].clientX):(n=e.clientY,t=e.clientX),{clientX:t,clientY:n}},hu=e=>{const t=(0,r.getCurrentInstance)(),n=(0,r.shallowRef)(),o=(0,r.shallowRef)();function i(e){const t=e.target;t!==n.value&&a(e)}function a(r){if(!o.value||!n.value)return;const i=t.vnode.el,a=i.getBoundingClientRect(),{clientX:s,clientY:l}=du(r);if(e.vertical){let t=l-a.top;t=Math.max(n.value.offsetHeight/2,t),t=Math.min(t,a.height-n.value.offsetHeight/2),e.color.set("alpha",Math.round((t-n.value.offsetHeight/2)/(a.height-n.value.offsetHeight)*100))}else{let t=s-a.left;t=Math.max(n.value.offsetWidth/2,t),t=Math.min(t,a.width-n.value.offsetWidth/2),e.color.set("alpha",Math.round((t-n.value.offsetWidth/2)/(a.width-n.value.offsetWidth)*100))}}return{thumb:n,bar:o,handleDrag:a,handleClick:i}},pu=(e,{bar:t,thumb:n,handleDrag:o})=>{const i=(0,r.getCurrentInstance)(),a=Cn("color-alpha-slider"),s=(0,r.ref)(0),l=(0,r.ref)(0),u=(0,r.ref)();function c(){if(!n.value)return 0;if(e.vertical)return 0;const t=i.vnode.el,r=e.color.get("alpha");return t?Math.round(r*(t.offsetWidth-n.value.offsetWidth/2)/100):0}function d(){if(!n.value)return 0;const t=i.vnode.el;if(!e.vertical)return 0;const r=e.color.get("alpha");return t?Math.round(r*(t.offsetHeight-n.value.offsetHeight/2)/100):0}function h(){if(e.color&&e.color.value){const{r:t,g:n,b:r}=e.color.toRgb();return`linear-gradient(to right, rgba(${t}, ${n}, ${r}, 0) 0%, rgba(${t}, ${n}, ${r}, 1) 100%)`}return""}function p(){s.value=c(),l.value=d(),u.value=h()}(0,r.onMounted)((()=>{if(!t.value||!n.value)return;const e={drag:e=>{o(e)},end:e=>{o(e)}};cu(t.value,e),cu(n.value,e),p()})),(0,r.watch)((()=>e.color.get("alpha")),(()=>p())),(0,r.watch)((()=>e.color.value),(()=>p()));const f=(0,r.computed)((()=>[a.b(),a.is("vertical",e.vertical)])),g=(0,r.computed)((()=>a.e("bar"))),m=(0,r.computed)((()=>a.e("thumb"))),v=(0,r.computed)((()=>({background:u.value}))),y=(0,r.computed)((()=>({left:zn(s.value),top:zn(l.value)})));return{rootKls:f,barKls:g,barStyle:v,thumbKls:m,thumbStyle:y,update:p}},fu="ElColorAlphaSlider",gu=(0,r.defineComponent)({name:fu}),mu=(0,r.defineComponent)({...gu,props:lu,setup(e,{expose:t}){const n=e,{bar:o,thumb:i,handleDrag:a,handleClick:s}=hu(n),{rootKls:l,barKls:u,barStyle:c,thumbKls:d,thumbStyle:h,update:p}=pu(n,{bar:o,thumb:i,handleDrag:a});return t({update:p,bar:o,thumb:i}),(e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)((0,r.unref)(l))},[(0,r.createElementVNode)("div",{ref_key:"bar",ref:o,class:(0,r.normalizeClass)((0,r.unref)(u)),style:(0,r.normalizeStyle)((0,r.unref)(c)),onClick:t[0]||(t[0]=(...e)=>(0,r.unref)(s)&&(0,r.unref)(s)(...e))},null,6),(0,r.createElementVNode)("div",{ref_key:"thumb",ref:i,class:(0,r.normalizeClass)((0,r.unref)(d)),style:(0,r.normalizeStyle)((0,r.unref)(h))},null,6)],2))}});var vu=xn(mu,[["__file","alpha-slider.vue"]]);const yu=(0,r.defineComponent)({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(e){const t=Cn("color-hue-slider"),n=(0,r.getCurrentInstance)(),o=(0,r.ref)(),i=(0,r.ref)(),a=(0,r.ref)(0),s=(0,r.ref)(0),l=(0,r.computed)((()=>e.color.get("hue")));function u(e){const t=e.target;t!==o.value&&c(e)}function c(t){if(!i.value||!o.value)return;const r=n.vnode.el,a=r.getBoundingClientRect(),{clientX:s,clientY:l}=du(t);let u;if(e.vertical){let e=l-a.top;e=Math.min(e,a.height-o.value.offsetHeight/2),e=Math.max(o.value.offsetHeight/2,e),u=Math.round((e-o.value.offsetHeight/2)/(a.height-o.value.offsetHeight)*360)}else{let e=s-a.left;e=Math.min(e,a.width-o.value.offsetWidth/2),e=Math.max(o.value.offsetWidth/2,e),u=Math.round((e-o.value.offsetWidth/2)/(a.width-o.value.offsetWidth)*360)}e.color.set("hue",u)}function d(){if(!o.value)return 0;const t=n.vnode.el;if(e.vertical)return 0;const r=e.color.get("hue");return t?Math.round(r*(t.offsetWidth-o.value.offsetWidth/2)/360):0}function h(){if(!o.value)return 0;const t=n.vnode.el;if(!e.vertical)return 0;const r=e.color.get("hue");return t?Math.round(r*(t.offsetHeight-o.value.offsetHeight/2)/360):0}function p(){a.value=d(),s.value=h()}return(0,r.watch)((()=>l.value),(()=>{p()})),(0,r.onMounted)((()=>{if(!i.value||!o.value)return;const e={drag:e=>{c(e)},end:e=>{c(e)}};cu(i.value,e),cu(o.value,e),p()})),{bar:i,thumb:o,thumbLeft:a,thumbTop:s,hueValue:l,handleClick:u,update:p,ns:t}}});function bu(e,t,n,o,i,a){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)([e.ns.b(),e.ns.is("vertical",e.vertical)])},[(0,r.createElementVNode)("div",{ref:"bar",class:(0,r.normalizeClass)(e.ns.e("bar")),onClick:t[0]||(t[0]=(...t)=>e.handleClick&&e.handleClick(...t))},null,2),(0,r.createElementVNode)("div",{ref:"thumb",class:(0,r.normalizeClass)(e.ns.e("thumb")),style:(0,r.normalizeStyle)({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,6)],2)}var _u=xn(yu,[["render",bu],["__file","hue-slider.vue"]]);const xu=bn({modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:mr,popperClass:{type:String,default:""},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},teleported:Oa.teleported,predefine:{type:mn(Array)},validateEvent:{type:Boolean,default:!0},...ya(["ariaLabel"])}),wu={[Hl]:e=>un(e)||Tn(e),[Zl]:e=>un(e)||Tn(e),activeChange:e=>un(e)||Tn(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},Ou=Symbol("colorPickerContextKey"),Su=function(e,t,n){return[e,t*n/((e=(2-t)*n)<1?e:2-e)||0,e/2]},Au=function(e){return"string"===typeof e&&e.includes(".")&&1===Number.parseFloat(e)},ku=function(e){return"string"===typeof e&&e.includes("%")},Cu=function(e,t){Au(e)&&(e="100%");const n=ku(e);return e=Math.min(t,Math.max(0,Number.parseFloat(`${e}`))),n&&(e=Number.parseInt(""+e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/Number.parseFloat(t)},Mu={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},Tu=e=>{e=Math.min(Math.round(e),255);const t=Math.floor(e/16),n=e%16;return`${Mu[t]||t}${Mu[n]||n}`},Pu=function({r:e,g:t,b:n}){return Number.isNaN(+e)||Number.isNaN(+t)||Number.isNaN(+n)?"":`#${Tu(e)}${Tu(t)}${Tu(n)}`},Iu={A:10,B:11,C:12,D:13,E:14,F:15},$u=function(e){return 2===e.length?16*(Iu[e[0].toUpperCase()]||+e[0])+(Iu[e[1].toUpperCase()]||+e[1]):Iu[e[1].toUpperCase()]||+e[1]},Eu=function(e,t,n){t/=100,n/=100;let r=t;const o=Math.max(n,.01);n*=2,t*=n<=1?n:2-n,r*=o<=1?o:2-o;const i=(n+t)/2,a=0===n?2*r/(o+r):2*t/(n+t);return{h:e,s:100*a,v:100*i}},Du=(e,t,n)=>{e=Cu(e,255),t=Cu(t,255),n=Cu(n,255);const r=Math.max(e,t,n),o=Math.min(e,t,n);let i;const a=r,s=r-o,l=0===r?0:s/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/s+(t<n?6:0);break;case t:i=(n-e)/s+2;break;case n:i=(e-t)/s+4;break}i/=6}return{h:360*i,s:100*l,v:100*a}},Ru=function(e,t,n){e=6*Cu(e,360),t=Cu(t,100),n=Cu(n,100);const r=Math.floor(e),o=e-r,i=n*(1-t),a=n*(1-o*t),s=n*(1-(1-o)*t),l=r%6,u=[n,a,i,i,s,n][l],c=[s,n,n,a,i,i][l],d=[i,i,s,n,n,a][l];return{r:Math.round(255*u),g:Math.round(255*c),b:Math.round(255*d)}};class Nu{constructor(e={}){this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this.enableAlpha=!1,this.format="hex",this.value="";for(const t in e)an(e,t)&&(this[t]=e[t]);e.value?this.fromString(e.value):this.doOnChange()}set(e,t){if(1!==arguments.length||"object"!==typeof e)this[`_${e}`]=t,this.doOnChange();else for(const n in e)an(e,n)&&this.set(n,e[n])}get(e){return"alpha"===e?Math.floor(this[`_${e}`]):this[`_${e}`]}toRgb(){return Ru(this._hue,this._saturation,this._value)}fromString(e){if(!e)return this._hue=0,this._saturation=100,this._value=100,void this.doOnChange();const t=(e,t,n)=>{this._hue=Math.max(0,Math.min(360,e)),this._saturation=Math.max(0,Math.min(100,t)),this._value=Math.max(0,Math.min(100,n)),this.doOnChange()};if(e.includes("hsl")){const n=e.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter((e=>""!==e)).map(((e,t)=>t>2?Number.parseFloat(e):Number.parseInt(e,10)));if(4===n.length?this._alpha=100*Number.parseFloat(n[3]):3===n.length&&(this._alpha=100),n.length>=3){const{h:e,s:r,v:o}=Eu(n[0],n[1],n[2]);t(e,r,o)}}else if(e.includes("hsv")){const n=e.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter((e=>""!==e)).map(((e,t)=>t>2?Number.parseFloat(e):Number.parseInt(e,10)));4===n.length?this._alpha=100*Number.parseFloat(n[3]):3===n.length&&(this._alpha=100),n.length>=3&&t(n[0],n[1],n[2])}else if(e.includes("rgb")){const n=e.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter((e=>""!==e)).map(((e,t)=>t>2?Number.parseFloat(e):Number.parseInt(e,10)));if(4===n.length?this._alpha=100*Number.parseFloat(n[3]):3===n.length&&(this._alpha=100),n.length>=3){const{h:e,s:r,v:o}=Du(n[0],n[1],n[2]);t(e,r,o)}}else if(e.includes("#")){const n=e.replace("#","").trim();if(!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(n))return;let r,o,i;3===n.length?(r=$u(n[0]+n[0]),o=$u(n[1]+n[1]),i=$u(n[2]+n[2])):6!==n.length&&8!==n.length||(r=$u(n.slice(0,2)),o=$u(n.slice(2,4)),i=$u(n.slice(4,6))),8===n.length?this._alpha=$u(n.slice(6))/255*100:3!==n.length&&6!==n.length||(this._alpha=100);const{h:a,s:s,v:l}=Du(r,o,i);t(a,s,l)}}compare(e){return Math.abs(e._hue-this._hue)<2&&Math.abs(e._saturation-this._saturation)<1&&Math.abs(e._value-this._value)<1&&Math.abs(e._alpha-this._alpha)<1}doOnChange(){const{_hue:e,_saturation:t,_value:n,_alpha:r,format:o}=this;if(this.enableAlpha)switch(o){case"hsl":{const r=Su(e,t/100,n/100);this.value=`hsla(${e}, ${Math.round(100*r[1])}%, ${Math.round(100*r[2])}%, ${this.get("alpha")/100})`;break}case"hsv":this.value=`hsva(${e}, ${Math.round(t)}%, ${Math.round(n)}%, ${this.get("alpha")/100})`;break;case"hex":this.value=`${Pu(Ru(e,t,n))}${Tu(255*r/100)}`;break;default:{const{r:r,g:o,b:i}=Ru(e,t,n);this.value=`rgba(${r}, ${o}, ${i}, ${this.get("alpha")/100})`}}else switch(o){case"hsl":{const r=Su(e,t/100,n/100);this.value=`hsl(${e}, ${Math.round(100*r[1])}%, ${Math.round(100*r[2])}%)`;break}case"hsv":this.value=`hsv(${e}, ${Math.round(t)}%, ${Math.round(n)}%)`;break;case"rgb":{const{r:r,g:o,b:i}=Ru(e,t,n);this.value=`rgb(${r}, ${o}, ${i})`;break}default:this.value=Pu(Ru(e,t,n))}}}const Lu=(0,r.defineComponent)({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0},enableAlpha:{type:Boolean,required:!0}},setup(e){const t=Cn("color-predefine"),{currentColor:n}=(0,r.inject)(Ou),o=(0,r.ref)(a(e.colors,e.color));function i(t){e.color.fromString(e.colors[t])}function a(t,n){return t.map((t=>{const r=new Nu;return r.enableAlpha=e.enableAlpha,r.format="rgba",r.fromString(t),r.selected=r.value===n.value,r}))}return(0,r.watch)((()=>n.value),(e=>{const t=new Nu;t.fromString(e),o.value.forEach((e=>{e.selected=t.compare(e)}))})),(0,r.watchEffect)((()=>{o.value=a(e.colors,e.color)})),{rgbaColors:o,handleSelect:i,ns:t}}}),zu=["onClick"];function Vu(e,t,n,o,i,a){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(e.ns.b())},[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(e.ns.e("colors"))},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.rgbaColors,((t,n)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:e.colors[n],class:(0,r.normalizeClass)([e.ns.e("color-selector"),e.ns.is("alpha",t._alpha<100),{selected:t.selected}]),onClick:t=>e.handleSelect(n)},[(0,r.createElementVNode)("div",{style:(0,r.normalizeStyle)({backgroundColor:t.value})},null,4)],10,zu)))),128))],2)],2)}var Bu=xn(Lu,[["render",Vu],["__file","predefine.vue"]]);const ju=(0,r.defineComponent)({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(e){const t=Cn("color-svpanel"),n=(0,r.getCurrentInstance)(),o=(0,r.ref)(0),i=(0,r.ref)(0),a=(0,r.ref)("hsl(0, 100%, 50%)"),s=(0,r.computed)((()=>{const t=e.color.get("hue"),n=e.color.get("value");return{hue:t,value:n}}));function l(){const t=e.color.get("saturation"),r=e.color.get("value"),s=n.vnode.el,{clientWidth:l,clientHeight:u}=s;i.value=t*l/100,o.value=(100-r)*u/100,a.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}function u(t){const r=n.vnode.el,a=r.getBoundingClientRect(),{clientX:s,clientY:l}=du(t);let u=s-a.left,c=l-a.top;u=Math.max(0,u),u=Math.min(u,a.width),c=Math.max(0,c),c=Math.min(c,a.height),i.value=u,o.value=c,e.color.set({saturation:u/a.width*100,value:100-c/a.height*100})}return(0,r.watch)((()=>s.value),(()=>{l()})),(0,r.onMounted)((()=>{cu(n.vnode.el,{drag:e=>{u(e)},end:e=>{u(e)}}),l()})),{cursorTop:o,cursorLeft:i,background:a,colorValue:s,handleDrag:u,update:l,ns:t}}}),Qu=(0,r.createElementVNode)("div",null,null,-1),Fu=[Qu];function Wu(e,t,n,o,i,a){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(e.ns.b()),style:(0,r.normalizeStyle)({backgroundColor:e.background})},[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(e.ns.e("white"))},null,2),(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(e.ns.e("black"))},null,2),(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(e.ns.e("cursor")),style:(0,r.normalizeStyle)({top:e.cursorTop+"px",left:e.cursorLeft+"px"})},Fu,6)],6)}var Hu=xn(ju,[["render",Wu],["__file","sv-panel.vue"]]),Zu=n(83067),Gu={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tour:{next:"Next",previous:"Previous",finish:"Finish"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const Xu=e=>(t,n)=>Uu(t,n,(0,r.unref)(e)),Uu=(e,t,n)=>(0,Zu.A)(n,e,e).replace(/\{(\w+)\}/g,((e,n)=>{var r;return`${null!=(r=null==t?void 0:t[n])?r:`{${n}}`}`})),Yu=e=>{const t=(0,r.computed)((()=>(0,r.unref)(e).name)),n=(0,r.isRef)(e)?e:(0,r.ref)(e);return{lang:t,locale:n,t:Xu(e)}},qu=Symbol("localeContextKey"),Ku=e=>{const t=e||(0,r.inject)(qu,(0,r.ref)());return Yu((0,r.computed)((()=>t.value||Gu)))},Ju=new Map;let ec;function tc(e,t){let n=[];return Array.isArray(t.arg)?n=t.arg:En(t.arg)&&n.push(t.arg),function(r,o){const i=t.instance.popperRef,a=r.target,s=null==o?void 0:o.target,l=!t||!t.instance,u=!a||!s,c=e.contains(a)||e.contains(s),d=e===a,h=n.length&&n.some((e=>null==e?void 0:e.contains(a)))||n.length&&n.includes(s),p=i&&(i.contains(a)||i.contains(s));l||u||c||d||h||p||t.value(r,o)}}er&&(document.addEventListener("mousedown",(e=>ec=e)),document.addEventListener("mouseup",(e=>{for(const t of Ju.values())for(const{documentHandler:n}of t)n(e,ec)})));const nc={beforeMount(e,t){Ju.has(e)||Ju.set(e,[]),Ju.get(e).push({documentHandler:tc(e,t),bindingFn:t.value})},updated(e,t){Ju.has(e)||Ju.set(e,[]);const n=Ju.get(e),r=n.findIndex((e=>e.bindingFn===t.oldValue)),o={documentHandler:tc(e,t),bindingFn:t.value};r>=0?n.splice(r,1,o):n.push(o)},unmounted(e){Ju.delete(e)}},rc=["onKeydown"],oc=["id","aria-label","aria-labelledby","aria-description","aria-disabled","tabindex"],ic=(0,r.defineComponent)({name:"ElColorPicker"}),ac=(0,r.defineComponent)({...ic,props:xu,emits:wu,setup(e,{expose:t,emit:n}){const o=e,{t:i}=Ku(),a=Cn("color"),{formItem:s}=hr(),l=br(),u=_r(),{inputId:c,isLabeledByFormItem:d}=pr(o,{formItemContext:s}),h=(0,r.ref)(),p=(0,r.ref)(),f=(0,r.ref)(),g=(0,r.ref)(),m=(0,r.ref)(),v=(0,r.ref)(),{isFocused:y,handleFocus:b,handleBlur:_}=Kl(m,{beforeBlur(e){var t;return null==(t=g.value)?void 0:t.isFocusInsideContent(e)},afterBlur(){E(!1),L()}}),x=e=>{if(u.value)return Z();b(e)};let w=!0;const O=(0,r.reactive)(new Nu({enableAlpha:o.showAlpha,format:o.colorFormat||"",value:o.modelValue})),S=(0,r.ref)(!1),A=(0,r.ref)(!1),k=(0,r.ref)(""),C=(0,r.computed)((()=>o.modelValue||A.value?$(O,o.showAlpha):"transparent")),M=(0,r.computed)((()=>o.modelValue||A.value?O.value:"")),T=(0,r.computed)((()=>d.value?void 0:o.label||o.ariaLabel||i("el.colorpicker.defaultLabel")));Zn({from:"label",replacement:"aria-label",version:"2.8.0",scope:"el-color-picker",ref:"https://element-plus.org/en-US/component/color-picker.html"},(0,r.computed)((()=>!!o.label)));const P=(0,r.computed)((()=>d.value?null==s?void 0:s.labelId:void 0)),I=(0,r.computed)((()=>[a.b("picker"),a.is("disabled",u.value),a.bm("picker",l.value),a.is("focused",y.value)]));function $(e,t){if(!(e instanceof Nu))throw new TypeError("color should be instance of _color Class");const{r:n,g:r,b:o}=e.toRgb();return t?`rgba(${n}, ${r}, ${o}, ${e.get("alpha")/100})`:`rgb(${n}, ${r}, ${o})`}function E(e){S.value=e}const D=(0,en.A)(E,100,{leading:!0});function R(){u.value||E(!0)}function N(){D(!1),L()}function L(){(0,r.nextTick)((()=>{o.modelValue?O.fromString(o.modelValue):(O.value="",(0,r.nextTick)((()=>{A.value=!1})))}))}function z(){u.value||D(!S.value)}function V(){O.fromString(k.value)}function B(){const e=O.value;n(Hl,e),n("change",e),o.validateEvent&&(null==s||s.validate("change").catch((e=>Nn(e)))),D(!1),(0,r.nextTick)((()=>{const e=new Nu({enableAlpha:o.showAlpha,format:o.colorFormat||"",value:o.modelValue});O.compare(e)||L()}))}function j(){D(!1),n(Hl,null),n("change",null),null!==o.modelValue&&o.validateEvent&&(null==s||s.validate("change").catch((e=>Nn(e)))),L()}function Q(e){if(S.value&&(N(),y.value)){const t=new FocusEvent("focus",e);_(t)}}function F(e){e.preventDefault(),e.stopPropagation(),E(!1),L()}function W(e){switch(e.code){case Aa.enter:case Aa.space:e.preventDefault(),e.stopPropagation(),R(),v.value.focus();break;case Aa.esc:F(e);break}}function H(){m.value.focus()}function Z(){m.value.blur()}return(0,r.onMounted)((()=>{o.modelValue&&(k.value=M.value)})),(0,r.watch)((()=>o.modelValue),(e=>{e?e&&e!==O.value&&(w=!1,O.fromString(e)):A.value=!1})),(0,r.watch)((()=>M.value),(e=>{k.value=e,w&&n("activeChange",e),w=!0})),(0,r.watch)((()=>O.value),(()=>{o.modelValue||A.value||(A.value=!0)})),(0,r.watch)((()=>S.value),(()=>{(0,r.nextTick)((()=>{var e,t,n;null==(e=h.value)||e.update(),null==(t=p.value)||t.update(),null==(n=f.value)||n.update()}))})),(0,r.provide)(Ou,{currentColor:M}),t({color:O,show:R,hide:N,focus:H,blur:Z}),(e,t)=>((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(Ll),{ref_key:"popper",ref:g,visible:S.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[(0,r.unref)(a).be("picker","panel"),(0,r.unref)(a).b("dropdown"),e.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",teleported:e.teleported,transition:`${(0,r.unref)(a).namespace.value}-zoom-in-top`,persistent:"",onHide:t[2]||(t[2]=e=>E(!1))},{content:(0,r.withCtx)((()=>[(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("div",{onKeydown:(0,r.withKeys)(F,["esc"])},[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)((0,r.unref)(a).be("dropdown","main-wrapper"))},[(0,r.createVNode)(_u,{ref_key:"hue",ref:h,class:"hue-slider",color:(0,r.unref)(O),vertical:""},null,8,["color"]),(0,r.createVNode)(Hu,{ref_key:"sv",ref:p,color:(0,r.unref)(O)},null,8,["color"])],2),e.showAlpha?((0,r.openBlock)(),(0,r.createBlock)(vu,{key:0,ref_key:"alpha",ref:f,color:(0,r.unref)(O)},null,8,["color"])):(0,r.createCommentVNode)("v-if",!0),e.predefine?((0,r.openBlock)(),(0,r.createBlock)(Bu,{key:1,ref:"predefine","enable-alpha":e.showAlpha,color:(0,r.unref)(O),colors:e.predefine},null,8,["enable-alpha","color","colors"])):(0,r.createCommentVNode)("v-if",!0),(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)((0,r.unref)(a).be("dropdown","btns"))},[(0,r.createElementVNode)("span",{class:(0,r.normalizeClass)((0,r.unref)(a).be("dropdown","value"))},[(0,r.createVNode)((0,r.unref)(su),{ref_key:"inputRef",ref:v,modelValue:k.value,"onUpdate:modelValue":t[0]||(t[0]=e=>k.value=e),"validate-event":!1,size:"small",onKeyup:(0,r.withKeys)(V,["enter"]),onBlur:V},null,8,["modelValue","onKeyup"])],2),(0,r.createVNode)((0,r.unref)(qr),{class:(0,r.normalizeClass)((0,r.unref)(a).be("dropdown","link-btn")),text:"",size:"small",onClick:j},{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)((0,r.toDisplayString)((0,r.unref)(i)("el.colorpicker.clear")),1)])),_:1},8,["class"]),(0,r.createVNode)((0,r.unref)(qr),{plain:"",size:"small",class:(0,r.normalizeClass)((0,r.unref)(a).be("dropdown","btn")),onClick:B},{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)((0,r.toDisplayString)((0,r.unref)(i)("el.colorpicker.confirm")),1)])),_:1},8,["class"])],2)],40,rc)),[[(0,r.unref)(nc),Q]])])),default:(0,r.withCtx)((()=>[(0,r.createElementVNode)("div",(0,r.mergeProps)({id:(0,r.unref)(c),ref_key:"triggerRef",ref:m},e.$attrs,{class:(0,r.unref)(I),role:"button","aria-label":(0,r.unref)(T),"aria-labelledby":(0,r.unref)(P),"aria-description":(0,r.unref)(i)("el.colorpicker.description",{color:e.modelValue||""}),"aria-disabled":(0,r.unref)(u),tabindex:(0,r.unref)(u)?-1:e.tabindex,onKeydown:W,onFocus:x,onBlur:t[1]||(t[1]=(...e)=>(0,r.unref)(_)&&(0,r.unref)(_)(...e))}),[(0,r.unref)(u)?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:(0,r.normalizeClass)((0,r.unref)(a).be("picker","mask"))},null,2)):(0,r.createCommentVNode)("v-if",!0),(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)((0,r.unref)(a).be("picker","trigger")),onClick:z},[(0,r.createElementVNode)("span",{class:(0,r.normalizeClass)([(0,r.unref)(a).be("picker","color"),(0,r.unref)(a).is("alpha",e.showAlpha)])},[(0,r.createElementVNode)("span",{class:(0,r.normalizeClass)((0,r.unref)(a).be("picker","color-inner")),style:(0,r.normalizeStyle)({backgroundColor:(0,r.unref)(C)})},[(0,r.withDirectives)((0,r.createVNode)((0,r.unref)(Wn),{class:(0,r.normalizeClass)([(0,r.unref)(a).be("picker","icon"),(0,r.unref)(a).is("icon-arrow-down")])},{default:(0,r.withCtx)((()=>[(0,r.createVNode)((0,r.unref)(Or))])),_:1},8,["class"]),[[r.vShow,e.modelValue||A.value]]),(0,r.withDirectives)((0,r.createVNode)((0,r.unref)(Wn),{class:(0,r.normalizeClass)([(0,r.unref)(a).be("picker","empty"),(0,r.unref)(a).is("icon-close")])},{default:(0,r.withCtx)((()=>[(0,r.createVNode)((0,r.unref)(Tr))])),_:1},8,["class"]),[[r.vShow,!e.modelValue&&!A.value]])],6)],2)],2)],16,oc)])),_:1},8,["visible","popper-class","teleported","transition"]))}});var sc=xn(ac,[["__file","color-picker.vue"]]);const lc=Qn(sc),uc=bn({modelValue:{type:[String,Number,Boolean],default:void 0},size:mr,disabled:Boolean,label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),cc=bn({...uc,border:Boolean}),dc={[Hl]:e=>un(e)||$n(e)||In(e),[Zl]:e=>un(e)||$n(e)||In(e)},hc=Symbol("radioGroupKey"),pc=(e,t)=>{const n=(0,r.ref)(),o=(0,r.inject)(hc,void 0),i=(0,r.computed)((()=>!!o)),a=(0,r.computed)((()=>Dn(e.value)?e.label:e.value)),s=(0,r.computed)({get(){return i.value?o.modelValue:e.modelValue},set(r){i.value?o.changeEvent(r):t&&t(Hl,r),n.value.checked=e.modelValue===a.value}}),l=br((0,r.computed)((()=>null==o?void 0:o.size))),u=_r((0,r.computed)((()=>null==o?void 0:o.disabled))),c=(0,r.ref)(!1),d=(0,r.computed)((()=>u.value||i.value&&s.value!==a.value?-1:0));return Zn({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-radio",ref:"https://element-plus.org/en-US/component/radio.html"},(0,r.computed)((()=>i.value&&Dn(e.value)))),{radioRef:n,isGroup:i,radioGroup:o,focus:c,size:l,disabled:u,tabIndex:d,modelValue:s,actualValue:a}},fc=["value","name","disabled"],gc=(0,r.defineComponent)({name:"ElRadio"}),mc=(0,r.defineComponent)({...gc,props:cc,emits:dc,setup(e,{emit:t}){const n=e,o=Cn("radio"),{radioRef:i,radioGroup:a,focus:s,size:l,disabled:u,modelValue:c,actualValue:d}=pc(n,t);function h(){(0,r.nextTick)((()=>t("change",c.value)))}return(e,t)=>{var n;return(0,r.openBlock)(),(0,r.createElementBlock)("label",{class:(0,r.normalizeClass)([(0,r.unref)(o).b(),(0,r.unref)(o).is("disabled",(0,r.unref)(u)),(0,r.unref)(o).is("focus",(0,r.unref)(s)),(0,r.unref)(o).is("bordered",e.border),(0,r.unref)(o).is("checked",(0,r.unref)(c)===(0,r.unref)(d)),(0,r.unref)(o).m((0,r.unref)(l))])},[(0,r.createElementVNode)("span",{class:(0,r.normalizeClass)([(0,r.unref)(o).e("input"),(0,r.unref)(o).is("disabled",(0,r.unref)(u)),(0,r.unref)(o).is("checked",(0,r.unref)(c)===(0,r.unref)(d))])},[(0,r.withDirectives)((0,r.createElementVNode)("input",{ref_key:"radioRef",ref:i,"onUpdate:modelValue":t[0]||(t[0]=e=>(0,r.isRef)(c)?c.value=e:null),class:(0,r.normalizeClass)((0,r.unref)(o).e("original")),value:(0,r.unref)(d),name:e.name||(null==(n=(0,r.unref)(a))?void 0:n.name),disabled:(0,r.unref)(u),type:"radio",onFocus:t[1]||(t[1]=e=>s.value=!0),onBlur:t[2]||(t[2]=e=>s.value=!1),onChange:h,onClick:t[3]||(t[3]=(0,r.withModifiers)((()=>{}),["stop"]))},null,42,fc),[[r.vModelRadio,(0,r.unref)(c)]]),(0,r.createElementVNode)("span",{class:(0,r.normalizeClass)((0,r.unref)(o).e("inner"))},null,2)],2),(0,r.createElementVNode)("span",{class:(0,r.normalizeClass)((0,r.unref)(o).e("label")),onKeydown:t[4]||(t[4]=(0,r.withModifiers)((()=>{}),["stop"]))},[(0,r.renderSlot)(e.$slots,"default",{},(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.label),1)]))],34)],2)}}});var vc=xn(mc,[["__file","radio.vue"]]);const yc=bn({...uc}),bc=["value","name","disabled"],_c=(0,r.defineComponent)({name:"ElRadioButton"}),xc=(0,r.defineComponent)({..._c,props:yc,setup(e){const t=e,n=Cn("radio"),{radioRef:o,focus:i,size:a,disabled:s,modelValue:l,radioGroup:u,actualValue:c}=pc(t),d=(0,r.computed)((()=>({backgroundColor:(null==u?void 0:u.fill)||"",borderColor:(null==u?void 0:u.fill)||"",boxShadow:(null==u?void 0:u.fill)?`-1px 0 0 0 ${u.fill}`:"",color:(null==u?void 0:u.textColor)||""})));return(e,t)=>{var h;return(0,r.openBlock)(),(0,r.createElementBlock)("label",{class:(0,r.normalizeClass)([(0,r.unref)(n).b("button"),(0,r.unref)(n).is("active",(0,r.unref)(l)===(0,r.unref)(c)),(0,r.unref)(n).is("disabled",(0,r.unref)(s)),(0,r.unref)(n).is("focus",(0,r.unref)(i)),(0,r.unref)(n).bm("button",(0,r.unref)(a))])},[(0,r.withDirectives)((0,r.createElementVNode)("input",{ref_key:"radioRef",ref:o,"onUpdate:modelValue":t[0]||(t[0]=e=>(0,r.isRef)(l)?l.value=e:null),class:(0,r.normalizeClass)((0,r.unref)(n).be("button","original-radio")),value:(0,r.unref)(c),type:"radio",name:e.name||(null==(h=(0,r.unref)(u))?void 0:h.name),disabled:(0,r.unref)(s),onFocus:t[1]||(t[1]=e=>i.value=!0),onBlur:t[2]||(t[2]=e=>i.value=!1),onClick:t[3]||(t[3]=(0,r.withModifiers)((()=>{}),["stop"]))},null,42,bc),[[r.vModelRadio,(0,r.unref)(l)]]),(0,r.createElementVNode)("span",{class:(0,r.normalizeClass)((0,r.unref)(n).be("button","inner")),style:(0,r.normalizeStyle)((0,r.unref)(l)===(0,r.unref)(c)?(0,r.unref)(d):{}),onKeydown:t[4]||(t[4]=(0,r.withModifiers)((()=>{}),["stop"]))},[(0,r.renderSlot)(e.$slots,"default",{},(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.label),1)]))],38)],2)}}});var wc=xn(xc,[["__file","radio-button.vue"]]);const Oc=bn({id:{type:String,default:void 0},size:mr,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:void 0},fill:{type:String,default:""},label:{type:String,default:void 0},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0},...ya(["ariaLabel"])}),Sc=dc,Ac=["id","aria-label","aria-labelledby"],kc=(0,r.defineComponent)({name:"ElRadioGroup"}),Cc=(0,r.defineComponent)({...kc,props:Oc,emits:Sc,setup(e,{emit:t}){const n=e,o=Cn("radio"),i=dr(),a=(0,r.ref)(),{formItem:s}=hr(),{inputId:l,isLabeledByFormItem:u}=pr(n,{formItemContext:s}),c=e=>{t(Hl,e),(0,r.nextTick)((()=>t("change",e)))};(0,r.onMounted)((()=>{const e=a.value.querySelectorAll("[type=radio]"),t=e[0];!Array.from(e).some((e=>e.checked))&&t&&(t.tabIndex=0)}));const d=(0,r.computed)((()=>n.name||i.value));return(0,r.provide)(hc,(0,r.reactive)({...(0,r.toRefs)(n),changeEvent:c,name:d})),(0,r.watch)((()=>n.modelValue),(()=>{n.validateEvent&&(null==s||s.validate("change").catch((e=>Nn(e))))})),Zn({from:"label",replacement:"aria-label",version:"2.8.0",scope:"el-radio-group",ref:"https://element-plus.org/en-US/component/radio.html"},(0,r.computed)((()=>!!n.label))),(e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{id:(0,r.unref)(l),ref_key:"radioGroupRef",ref:a,class:(0,r.normalizeClass)((0,r.unref)(o).b("group")),role:"radiogroup","aria-label":(0,r.unref)(u)?void 0:e.label||e.ariaLabel||"radio-group","aria-labelledby":(0,r.unref)(u)?(0,r.unref)(s).labelId:void 0},[(0,r.renderSlot)(e.$slots,"default")],10,Ac))}});var Mc=xn(Cc,[["__file","radio-group.vue"]]);Qn(vc,{RadioButton:wc,RadioGroup:Mc});const Tc=Fn(Mc),Pc=Fn(wc),Ic=e=>((0,r.pushScopeId)("data-v-687adf22"),e=e(),(0,r.popScopeId)(),e),$c={key:0,class:"color-box"},Ec={class:"img-preview"},Dc=Ic((()=>(0,r.createElementVNode)("div",{class:"img-empty"},"未选择",-1))),Rc=Ic((()=>(0,r.createElementVNode)("div",{class:"img-tip"},"选择素材",-1)));var Nc=(0,r.defineComponent)({__name:"BackgroundSelect",props:{value:{default:()=>({type:"none",color:"",image:"",fillType:""})},filterOptions:{}},emits:["update:value"],setup(e,{emit:t}){const n=e,o=t,i=(0,r.ref)(n.value),a=[{label:"无",value:"none"},{label:"颜色",value:"color"},{label:"图片",value:"image"}],s=(0,r.computed)((()=>n.filterOptions?a.filter((e=>!n.filterOptions?.includes(e.value))):a));(0,r.watch)((()=>i.value),(()=>{o("update:value",i.value)}),{deep:!0});const l=e=>{"color"!==e||i.value.color||(i.value.color="#0B074BFF")};return(e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createVNode)((0,r.unref)(U.Ay),{value:i.value.type,"onUpdate:value":t[0]||(t[0]=e=>i.value.type=e),style:{width:"100%"},options:s.value,onChange:l},null,8,["value","options"]),"color"===i.value.type?((0,r.openBlock)(),(0,r.createElementBlock)("div",$c,[(0,r.createVNode)((0,r.unref)(lc),{modelValue:i.value.color,"onUpdate:modelValue":t[1]||(t[1]=e=>i.value.color=e),"color-format":"hex","show-alpha":"",size:"small"},null,8,["modelValue"]),(0,r.createVNode)((0,r.unref)(su),{modelValue:i.value.color,"onUpdate:modelValue":t[2]||(t[2]=e=>i.value.color=e),size:"small"},null,8,["modelValue"])])):"image"===i.value.type?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[(0,r.createElementVNode)("div",Ec,[Dc,(0,r.createVNode)((0,r.unref)($t),{src:i.value.image},null,8,["src"]),Rc]),(0,r.createVNode)((0,r.unref)(Tc),{modelValue:i.value.fillType,"onUpdate:modelValue":t[3]||(t[3]=e=>i.value.fillType=e)},{default:(0,r.withCtx)((()=>[(0,r.createVNode)((0,r.unref)(Pc),{value:"cover"},{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)("填充")])),_:1}),(0,r.createVNode)((0,r.unref)(Pc),{value:"contain"},{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)("适应")])),_:1}),(0,r.createVNode)((0,r.unref)(Pc),{value:"stretch"},{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)("拉伸")])),_:1})])),_:1},8,["modelValue"])],64)):(0,r.createCommentVNode)("",!0)],64))}}),Lc=n(23165);const zc=(0,Lc.A)(Nc,[["__scopeId","data-v-687adf22"]]);var Vc=zc;const Bc={key:0,class:"color-box"};var jc=(0,r.defineComponent)({__name:"ColorSelect",props:{value:{}},emits:["update:value"],setup(e,{emit:t}){const n=t,o=e,i=(0,r.ref)(o.value?.length<=9||!o.value?"pure":"gradient"),a=(0,r.ref)(o.value),s=(0,r.ref)(o.value?.length>=9?o.value.slice(22).replace(")","").split(","):["#4ba9ff","#fff"]);return(0,r.watch)((()=>[i.value,a.value,s.value]),(()=>{"pure"===i.value?a.value=a.value.length>9?"#FFFFFFFF":a.value:a.value=`linear-gradient(90deg, ${s.value.join(",")})`,n("update:value",a.value)}),{deep:!0}),(e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createVNode)((0,r.unref)(Tc),{modelValue:i.value,"onUpdate:modelValue":t[0]||(t[0]=e=>i.value=e),size:"small",style:{width:"100%"}},{default:(0,r.withCtx)((()=>[(0,r.createVNode)((0,r.unref)(Pc),{value:"pure"},{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)("单色")])),_:1}),(0,r.createVNode)((0,r.unref)(Pc),{value:"gradient"},{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)("渐变色")])),_:1})])),_:1},8,["modelValue"]),"pure"===i.value?((0,r.openBlock)(),(0,r.createElementBlock)("div",Bc,[(0,r.createVNode)((0,r.unref)(lc),{modelValue:a.value,"onUpdate:modelValue":t[1]||(t[1]=e=>a.value=e),"color-format":"hex","show-alpha":"",size:"small"},null,8,["modelValue"]),(0,r.createVNode)((0,r.unref)(su),{modelValue:a.value,"onUpdate:modelValue":t[2]||(t[2]=e=>a.value=e),size:"small"},null,8,["modelValue"])])):"gradient"===i.value?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:1,class:"gradient-box",style:(0,r.normalizeStyle)({background:a.value})},[(0,r.createVNode)((0,r.unref)(lc),{modelValue:s.value[0],"onUpdate:modelValue":t[3]||(t[3]=e=>s.value[0]=e),"color-format":"hex","show-alpha":"",size:"small"},null,8,["modelValue"]),(0,r.createVNode)((0,r.unref)(lc),{modelValue:s.value[1],"onUpdate:modelValue":t[4]||(t[4]=e=>s.value[1]=e),"color-format":"hex","show-alpha":"",size:"small"},null,8,["modelValue"])],4)):(0,r.createCommentVNode)("",!0)],64))}});const Qc=(0,Lc.A)(jc,[["__scopeId","data-v-524244b4"]]);var Fc=Qc,Wc=n(78282),Hc=n(45340);const Zc={class:"color-list"};var Gc=(0,r.defineComponent)({__name:"ColorScheme",props:{value:{type:Array,default:()=>[]}},emits:["update:value"],setup(e,{emit:t}){const n=t,o=(0,r.ref)(Hc.xT[0].color.join(",")),i=e=>{"custom"===e||n("update:value",e.split(","))},a=()=>{console.log("add color...")};return(t,n)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createVNode)((0,r.unref)(U.Ay),{value:o.value,"onUpdate:value":n[0]||(n[0]=e=>o.value=e),size:"small",style:{width:"100%"},onChange:i},{default:(0,r.withCtx)((()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)((0,r.unref)(Hc.xT),(e=>((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(U.OQ),{key:e.name,value:e.color.join(",")},{default:(0,r.withCtx)((()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.color.slice(0,5),(e=>((0,r.openBlock)(),(0,r.createElementBlock)("span",{class:"color-block",key:e,style:(0,r.normalizeStyle)({background:e})},null,4)))),128)),(0,r.createTextVNode)(" "+(0,r.toDisplayString)(e.name),1)])),_:2},1032,["value"])))),128)),(0,r.createVNode)((0,r.unref)(U.OQ),{value:"custom"},{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)("自定义组合")])),_:1})])),_:1},8,["value"]),(0,r.createElementVNode)("div",Zc,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.value,((e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("span",{class:"color-block",key:t,style:(0,r.normalizeStyle)({background:e})},null,4)))),128)),(0,r.createElementVNode)("span",{class:"color-block cus-btn",onClick:a},[(0,r.createVNode)((0,r.unref)(Wc.A))])])]))}});const Xc=(0,Lc.A)(Gc,[["__scopeId","data-v-0f7ff908"]]);var Uc=Xc,Yc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M120 230h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0 424h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm784 140H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-424H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"align-left",theme:"outlined"},qc=Yc;function Kc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Jc(e,t,n[t])}))}return e}function Jc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ed=function(e,t){var n=Kc({},e,t.attrs);return(0,r.createVNode)(g.A,Kc({},n,{icon:qc}),null)};ed.displayName="AlignLeftOutlined",ed.inheritAttrs=!1;var td=ed,nd={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M264 230h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H264c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm496 424c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H264c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496zm144 140H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-424H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"align-center",theme:"outlined"},rd=nd;function od(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){id(e,t,n[t])}))}return e}function id(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ad=function(e,t){var n=od({},e,t.attrs);return(0,r.createVNode)(g.A,od({},n,{icon:rd}),null)};ad.displayName="AlignCenterOutlined",ad.inheritAttrs=!1;var sd=ad,ld={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 158H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 424H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 212H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-424H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"align-right",theme:"outlined"},ud=ld;function cd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){dd(e,t,n[t])}))}return e}function dd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hd=function(e,t){var n=cd({},e,t.attrs);return(0,r.createVNode)(g.A,cd({},n,{icon:ud}),null)};hd.displayName="AlignRightOutlined",hd.inheritAttrs=!1;var pd=hd,fd={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 144H152c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM208 310h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 498h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 166h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm166-166h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm166 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332-498h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"border-top",theme:"outlined"},gd=fd;function md(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){vd(e,t,n[t])}))}return e}function vd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yd=function(e,t){var n=md({},e,t.attrs);return(0,r.createVNode)(g.A,md({},n,{icon:gd}),null)};yd.displayName="BorderTopOutlined",yd.inheritAttrs=!1;var bd=yd,_d={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 808H152c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-720-94h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0-498h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0 332h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0-166h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm166 166h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0-332h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm332 0h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0 332h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm222-72h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-388 72h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm388-404h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-388 72h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm388 426h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-388 72h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm388-404h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-388 72h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8z"}}]},name:"border-bottom",theme:"outlined"},xd=_d;function wd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Od(e,t,n[t])}))}return e}function Od(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Sd=function(e,t){var n=wd({},e,t.attrs);return(0,r.createVNode)(g.A,wd({},n,{icon:xd}),null)};Sd.displayName="BorderBottomOutlined",Sd.inheritAttrs=!1;var Ad=Sd,kd={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M208 144h-56c-4.4 0-8 3.6-8 8v720c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V152c0-4.4-3.6-8-8-8zm166 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm498 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm166 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM540 310h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 166h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM374 808h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"border-left",theme:"outlined"},Cd=kd;function Md(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Td(e,t,n[t])}))}return e}function Td(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Pd=function(e,t){var n=Md({},e,t.attrs);return(0,r.createVNode)(g.A,Md({},n,{icon:Cd}),null)};Pd.displayName="BorderLeftOutlined",Pd.inheritAttrs=!1;var Id=Pd,$d={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 144h-56c-4.4 0-8 3.6-8 8v720c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V152c0-4.4-3.6-8-8-8zm-166 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-498 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-166 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm166 166h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 166h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM208 808h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm498 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM374 808h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"border-right",theme:"outlined"},Ed=$d;function Dd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Rd(e,t,n[t])}))}return e}function Rd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Nd=function(e,t){var n=Dd({},e,t.attrs);return(0,r.createVNode)(g.A,Dd({},n,{icon:Ed}),null)};Nd.displayName="BorderRightOutlined",Nd.inheritAttrs=!1;var Ld=Nd;const zd={class:"position"};var Vd=(0,r.defineComponent)({__name:"Position",props:{value:{},type:{default:"line"}},emits:["update:value"],setup(e){return(e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",zd,["line"===e.type?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(Yt.A),{key:0,value:e.value,onChange:t[0]||(t[0]=t=>e.$emit("update:value",t.target.value))},{default:(0,r.withCtx)((()=>[(0,r.createVNode)((0,r.unref)(qt.A),{value:"left"},{default:(0,r.withCtx)((()=>[(0,r.createVNode)((0,r.unref)(td))])),_:1}),(0,r.createVNode)((0,r.unref)(qt.A),{value:"center"},{default:(0,r.withCtx)((()=>[(0,r.createVNode)((0,r.unref)(sd))])),_:1}),(0,r.createVNode)((0,r.unref)(qt.A),{value:"right"},{default:(0,r.withCtx)((()=>[(0,r.createVNode)((0,r.unref)(pd))])),_:1})])),_:1},8,["value"])):"round"===e.type?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(Yt.A),{key:1,value:e.value,onChange:t[1]||(t[1]=t=>e.$emit("update:value",t.target.value))},{default:(0,r.withCtx)((()=>[(0,r.createVNode)((0,r.unref)(qt.A),{value:"top"},{default:(0,r.withCtx)((()=>[(0,r.createVNode)((0,r.unref)(bd))])),_:1}),(0,r.createVNode)((0,r.unref)(qt.A),{value:"bottom"},{default:(0,r.withCtx)((()=>[(0,r.createVNode)((0,r.unref)(Ad))])),_:1}),(0,r.createVNode)((0,r.unref)(qt.A),{value:"left"},{default:(0,r.withCtx)((()=>[(0,r.createVNode)((0,r.unref)(Id))])),_:1}),(0,r.createVNode)((0,r.unref)(qt.A),{value:"right"},{default:(0,r.withCtx)((()=>[(0,r.createVNode)((0,r.unref)(Ld))])),_:1})])),_:1},8,["value"])):(0,r.createCommentVNode)("",!0)]))}});const Bd=(0,Lc.A)(Vd,[["__scopeId","data-v-03ca26d6"]]);var jd=Bd,Qd={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 816H120c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-80c0-4.4-3.6-8-8-8zm-650.3-80h85c4.2 0 8-2.7 9.3-6.8l53.7-166h219.2l53.2 166c1.3 4 5 6.8 9.3 6.8h89.1c1.1 0 2.2-.2 3.2-.5a9.7 9.7 0 006-12.4L573.6 118.6a9.9 9.9 0 00-9.2-6.6H462.1c-4.2 0-7.9 2.6-9.2 6.6L244.5 723.1c-.4 1-.5 2.1-.5 3.2-.1 5.3 4.3 9.7 9.7 9.7zm255.9-516.1h4.1l83.8 263.8H424.9l84.7-263.8z"}}]},name:"font-colors",theme:"outlined"},Fd=Qd;function Wd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Hd(e,t,n[t])}))}return e}function Hd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Zd=function(e,t){var n=Wd({},e,t.attrs);return(0,r.createVNode)(g.A,Wd({},n,{icon:Fd}),null)};Zd.displayName="FontColorsOutlined",Zd.inheritAttrs=!1;var Gd=Zd,Xd={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M697.8 481.4c33.6-35 54.2-82.3 54.2-134.3v-10.2C752 229.3 663.9 142 555.3 142H259.4c-15.1 0-27.4 12.3-27.4 27.4v679.1c0 16.3 13.2 29.5 29.5 29.5h318.7c117 0 211.8-94.2 211.8-210.5v-11c0-73-37.4-137.3-94.2-175.1zM328 238h224.7c57.1 0 103.3 44.4 103.3 99.3v9.5c0 54.8-46.3 99.3-103.3 99.3H328V238zm366.6 429.4c0 62.9-51.7 113.9-115.5 113.9H328V542.7h251.1c63.8 0 115.5 51 115.5 113.9v10.8z"}}]},name:"bold",theme:"outlined"},Ud=Xd;function Yd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){qd(e,t,n[t])}))}return e}function qd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Kd=function(e,t){var n=Yd({},e,t.attrs);return(0,r.createVNode)(g.A,Yd({},n,{icon:Ud}),null)};Kd.displayName="BoldOutlined",Kd.inheritAttrs=!1;var Jd=Kd,eh={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M798 160H366c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h181.2l-156 544H229c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h432c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8H474.4l156-544H798c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"italic",theme:"outlined"},th=eh;function nh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){rh(e,t,n[t])}))}return e}function rh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var oh=function(e,t){var n=nh({},e,t.attrs);return(0,r.createVNode)(g.A,nh({},n,{icon:th}),null)};oh.displayName="ItalicOutlined",oh.inheritAttrs=!1;var ih=oh,ah=n(18918);const sh={class:"font-style"},lh={class:"cus-btn"};var uh=(0,r.defineComponent)({__name:"FontStyle",props:{value:{}},emits:["update:value"],setup(e,{emit:t}){const n=e,o=t,i=(0,r.ref)(n.value?.bold),a=(0,r.ref)(n.value?.italic),s=(0,r.ref)(n.value?.size),l=(0,r.ref)(n.value?.color),u=(0,r.ref)(),c=()=>{o("update:value",{size:s.value,bold:i.value,italic:a.value,color:l.value})},d=()=>{i.value=!i.value,c()},h=()=>{a.value=!a.value,c()},p=e=>{l.value=e,c()},f=e=>{s.value=e,c()},g=()=>{u.value?.show()};return(e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",sh,[(0,r.createVNode)((0,r.unref)(ah.A),{size:"small",onClick:g},{default:(0,r.withCtx)((()=>[(0,r.createElementVNode)("span",lh,[(0,r.createVNode)((0,r.unref)(Gd)),(0,r.createElementVNode)("div",{class:"color-block",style:(0,r.normalizeStyle)({background:l.value})},null,4),(0,r.createVNode)((0,r.unref)(lc),{ref_key:"colorPckerRef",ref:u,style:{width:"0",height:"0",opacity:"0"},value:l.value,"onUpdate:value":t[0]||(t[0]=e=>l.value=e),onChange:p},null,8,["value"])])])),_:1}),(0,r.createVNode)((0,r.unref)(ah.A),{size:"small",onClick:d},{default:(0,r.withCtx)((()=>[(0,r.createElementVNode)("span",{class:(0,r.normalizeClass)(["cus-btn",{"active-btn":i.value}])},[(0,r.createVNode)((0,r.unref)(Jd))],2)])),_:1}),(0,r.createVNode)((0,r.unref)(ah.A),{size:"small",onClick:h},{default:(0,r.withCtx)((()=>[(0,r.createElementVNode)("span",{class:(0,r.normalizeClass)(["cus-btn",{"active-btn":a.value}])},[(0,r.createVNode)((0,r.unref)(ih))],2)])),_:1}),(0,r.createVNode)((0,r.unref)(Y.A),{size:"small",value:s.value,min:12,step:1,precision:0,style:{width:"80px"},onChange:f},{addonAfter:(0,r.withCtx)((()=>[(0,r.createTextVNode)("px")])),_:1},8,["value"])]))}});const ch=(0,Lc.A)(uh,[["__scopeId","data-v-2d08298c"]]);var dh=ch,hh=n(207);const ph=(e,t)=>{let{attrs:n}=t;const{included:o,vertical:i,style:a,class:s}=n;let{length:l,offset:u,reverse:c}=n;l<0&&(c=!c,l=Math.abs(l),u=100-u);const d=i?{[c?"top":"bottom"]:`${u}%`,[c?"bottom":"top"]:"auto",height:`${l}%`}:{[c?"right":"left"]:`${u}%`,[c?"left":"right"]:"auto",width:`${l}%`},h=(0,S.A)((0,S.A)({},a),d);return o?(0,r.createVNode)("div",{class:s,style:h},null):null};ph.inheritAttrs=!1;var fh=ph;const gh=(e,t,n,r,o,i)=>{(0,Dt.Ay)(!n||r>0,"Slider","`Slider[step]` should be a positive number in order to make Slider[dots] work.");const a=Object.keys(t).map(parseFloat).sort(((e,t)=>e-t));if(n&&r)for(let s=o;s<=i;s+=r)-1===a.indexOf(s)&&a.push(s);return a},mh=(e,t)=>{let{attrs:n}=t;const{prefixCls:o,vertical:i,reverse:a,marks:s,dots:l,step:u,included:c,lowerBound:d,upperBound:h,max:p,min:f,dotStyle:g,activeDotStyle:m}=n,v=p-f,y=gh(i,s,l,u,f,p).map((e=>{const t=Math.abs(e-f)/v*100+"%",n=!c&&e===h||c&&e<=h&&e>=d;let s=i?(0,S.A)((0,S.A)({},g),{[a?"top":"bottom"]:t}):(0,S.A)((0,S.A)({},g),{[a?"right":"left"]:t});n&&(s=(0,S.A)((0,S.A)({},s),m));const l=(0,x.A)({[`${o}-dot`]:!0,[`${o}-dot-active`]:n,[`${o}-dot-reverse`]:a});return(0,r.createVNode)("span",{class:l,style:s,key:e},null)}));return(0,r.createVNode)("div",{class:`${o}-step`},[y])};mh.inheritAttrs=!1;var vh=mh,yh=n(36476);const bh=(e,t)=>{let{attrs:n,slots:i}=t;const{class:s,vertical:l,reverse:u,marks:c,included:d,upperBound:h,lowerBound:p,max:f,min:g,onClickLabel:m}=n,v=Object.keys(c),y=i.mark,b=f-g,_=v.map(parseFloat).sort(((e,t)=>e-t)).map((e=>{const t="function"===typeof c[e]?c[e]():c[e],n="object"===typeof t&&!(0,a.zO)(t);let i=n?t.label:t;if(!i&&0!==i)return null;y&&(i=y({point:e,label:i}));const f=!d&&e===h||d&&e<=h&&e>=p,v=(0,x.A)({[`${s}-text`]:!0,[`${s}-text-active`]:f}),_={marginBottom:"-50%",[u?"top":"bottom"]:(e-g)/b*100+"%"},w={transform:`translateX(${u?"50%":"-50%"})`,msTransform:`translateX(${u?"50%":"-50%"})`,[u?"right":"left"]:(e-g)/b*100+"%"},O=l?_:w,A=n?(0,S.A)((0,S.A)({},O),t.style):O,k={[yh.A?"onTouchstartPassive":"onTouchstart"]:t=>m(t,e)};return(0,r.createVNode)("span",(0,o.A)({class:v,style:A,key:e,onMousedown:t=>m(t,e)},k),[i])}));return(0,r.createVNode)("div",{class:s},[_])};bh.inheritAttrs=!1;var _h=bh,xh=(0,r.defineComponent)({compatConfig:{MODE:3},name:"Handle",inheritAttrs:!1,props:{prefixCls:String,vertical:{type:Boolean,default:void 0},offset:Number,disabled:{type:Boolean,default:void 0},min:Number,max:Number,value:Number,tabindex:u.A.oneOfType([u.A.number,u.A.string]),reverse:{type:Boolean,default:void 0},ariaLabel:String,ariaLabelledBy:String,ariaValueTextFormatter:Function,onMouseenter:{type:Function},onMouseleave:{type:Function},onMousedown:{type:Function}},setup(e,t){let{attrs:n,emit:i,expose:a}=t;const s=(0,r.shallowRef)(!1),l=(0,r.shallowRef)(),u=()=>{document.activeElement===l.value&&(s.value=!0)},c=e=>{s.value=!1,i("blur",e)},d=()=>{s.value=!1},h=()=>{var e;null===(e=l.value)||void 0===e||e.focus()},p=()=>{var e;null===(e=l.value)||void 0===e||e.blur()},f=()=>{s.value=!0,h()},g=e=>{e.preventDefault(),h(),i("mousedown",e)};a({focus:h,blur:p,clickFocus:f,ref:l});let m=null;(0,r.onMounted)((()=>{m=(0,ae.A)(document,"mouseup",u)})),(0,r.onBeforeUnmount)((()=>{null===m||void 0===m||m.remove()}));const v=(0,r.computed)((()=>{const{vertical:t,offset:n,reverse:r}=e;return t?{[r?"top":"bottom"]:`${n}%`,[r?"bottom":"top"]:"auto",transform:r?null:"translateY(+50%)"}:{[r?"right":"left"]:`${n}%`,[r?"left":"right"]:"auto",transform:`translateX(${r?"+":"-"}50%)`}}));return()=>{const{prefixCls:t,disabled:i,min:a,max:u,value:h,tabindex:p,ariaLabel:f,ariaLabelledBy:m,ariaValueTextFormatter:y,onMouseenter:b,onMouseleave:_}=e,w=(0,x.A)(n.class,{[`${t}-handle-click-focused`]:s.value}),O={"aria-valuemin":a,"aria-valuemax":u,"aria-valuenow":h,"aria-disabled":!!i},A=[n.style,v.value];let k,C=p||0;(i||null===p)&&(C=null),y&&(k=y(h));const M=(0,S.A)((0,S.A)((0,S.A)((0,S.A)({},n),{role:"slider",tabindex:C}),O),{class:w,onBlur:c,onKeydown:d,onMousedown:g,onMouseenter:b,onMouseleave:_,ref:l,style:A});return(0,r.createVNode)("div",(0,o.A)((0,o.A)({},M),{},{"aria-label":f,"aria-labelledby":m,"aria-valuetext":k}),null)}}});function wh(e,t){try{return Object.keys(t).some((n=>e.target===t[n].ref))}catch(n){return!1}}function Oh(e,t){let{min:n,max:r}=t;return e<n||e>r}function Sh(e){return e.touches.length>1||"touchend"===e.type.toLowerCase()&&e.touches.length>0}function Ah(e,t){let{marks:n,step:r,min:o,max:i}=t;const a=Object.keys(n).map(parseFloat);if(null!==r){const t=Math.pow(10,kh(r)),n=Math.floor((i*t-o*t)/(r*t)),s=Math.min((e-o)/r,n),l=Math.round(s)*r+o;a.push(l)}const s=a.map((t=>Math.abs(e-t)));return a[s.indexOf(Math.min(...s))]}function kh(e){const t=e.toString();let n=0;return t.indexOf(".")>=0&&(n=t.length-t.indexOf(".")-1),n}function Ch(e,t){let n=1;return window.visualViewport&&(n=+(window.visualViewport.width/document.body.getBoundingClientRect().width).toFixed(2)),(e?t.clientY:t.pageX)/n}function Mh(e,t){let n=1;return window.visualViewport&&(n=+(window.visualViewport.width/document.body.getBoundingClientRect().width).toFixed(2)),(e?t.touches[0].clientY:t.touches[0].pageX)/n}function Th(e,t){const n=t.getBoundingClientRect();return e?n.top+.5*n.height:window.scrollX+n.left+.5*n.width}function Ph(e,t){let{max:n,min:r}=t;return e<=r?r:e>=n?n:e}function Ih(e,t){const{step:n}=t,r=isFinite(Ah(e,t))?Ah(e,t):0;return null===n?r:parseFloat(r.toFixed(kh(n)))}function $h(e){e.stopPropagation(),e.preventDefault()}function Eh(e,t,n){const r={increase:(e,t)=>e+t,decrease:(e,t)=>e-t},o=r[e](Object.keys(n.marks).indexOf(JSON.stringify(t)),1),i=Object.keys(n.marks)[o];return n.step?r[e](t,n.step):Object.keys(n.marks).length&&n.marks[i]?n.marks[i]:t}function Dh(e,t,n){const r="increase",o="decrease";let i=r;switch(e.keyCode){case se.A.UP:i=t&&n?o:r;break;case se.A.RIGHT:i=!t&&n?o:r;break;case se.A.DOWN:i=t&&n?r:o;break;case se.A.LEFT:i=!t&&n?r:o;break;case se.A.END:return(e,t)=>t.max;case se.A.HOME:return(e,t)=>t.min;case se.A.PAGE_UP:return(e,t)=>e+2*t.step;case se.A.PAGE_DOWN:return(e,t)=>e-2*t.step;default:return}return(e,t)=>Eh(i,e,t)}var Rh=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Nh(){}function Lh(e){const t={id:String,min:Number,max:Number,step:Number,marks:u.A.object,included:{type:Boolean,default:void 0},prefixCls:String,disabled:{type:Boolean,default:void 0},handle:Function,dots:{type:Boolean,default:void 0},vertical:{type:Boolean,default:void 0},reverse:{type:Boolean,default:void 0},minimumTrackStyle:u.A.object,maximumTrackStyle:u.A.object,handleStyle:u.A.oneOfType([u.A.object,u.A.arrayOf(u.A.object)]),trackStyle:u.A.oneOfType([u.A.object,u.A.arrayOf(u.A.object)]),railStyle:u.A.object,dotStyle:u.A.object,activeDotStyle:u.A.object,autofocus:{type:Boolean,default:void 0},draggableTrack:{type:Boolean,default:void 0}};return(0,r.defineComponent)({compatConfig:{MODE:3},name:"CreateSlider",mixins:[hh.A,e],inheritAttrs:!1,props:(0,i.A)(t,{prefixCls:"rc-slider",min:0,max:100,step:1,marks:{},included:!0,disabled:!1,dots:!1,vertical:!1,reverse:!1,trackStyle:[{}],handleStyle:[{}],railStyle:{},dotStyle:{},activeDotStyle:{}}),emits:["change","blur","focus"],data(){const{step:e,max:t,min:n}=this,r=!isFinite(t-n)||(t-n)%e===0;return(0,Dt.Ay)(!e||Math.floor(e)!==e||r,`Slider[max] - Slider[min] (${t-n}) should be a multiple of Slider[step] (${e})`),this.handlesRefs={},{}},mounted(){this.$nextTick((()=>{this.document=this.sliderRef&&this.sliderRef.ownerDocument;const{autofocus:e,disabled:t}=this;e&&!t&&this.focus()}))},beforeUnmount(){this.$nextTick((()=>{this.removeDocumentEvents()}))},methods:{defaultHandle(e){var{index:t,directives:n,className:o,style:i}=e,a=Rh(e,["index","directives","className","style"]);if(delete a.dragging,null===a.value)return null;const s=(0,S.A)((0,S.A)({},a),{class:o,style:i,key:t});return(0,r.createVNode)(xh,s,null)},onDown(e,t){let n=t;const{draggableTrack:r,vertical:o}=this.$props,{bounds:i}=this.$data,a=r&&this.positionGetValue&&this.positionGetValue(n)||[],s=wh(e,this.handlesRefs);if(this.dragTrack=r&&i.length>=2&&!s&&!a.map(((e,t)=>{const n=!!t||e>=i[t];return t===a.length-1?e<=i[t]:n})).some((e=>!e)),this.dragTrack)this.dragOffset=n,this.startBounds=[...i];else{if(s){const t=Th(o,e.target);this.dragOffset=n-t,n=t}else this.dragOffset=0;this.onStart(n)}},onMouseDown(e){if(0!==e.button)return;this.removeDocumentEvents();const t=this.$props.vertical,n=Ch(t,e);this.onDown(e,n),this.addDocumentMouseEvents()},onTouchStart(e){if(Sh(e))return;const t=this.vertical,n=Mh(t,e);this.onDown(e,n),this.addDocumentTouchEvents(),$h(e)},onFocus(e){const{vertical:t}=this;if(wh(e,this.handlesRefs)&&!this.dragTrack){const n=Th(t,e.target);this.dragOffset=0,this.onStart(n),$h(e),this.$emit("focus",e)}},onBlur(e){this.dragTrack||this.onEnd(),this.$emit("blur",e)},onMouseUp(){this.handlesRefs[this.prevMovedHandleIndex]&&this.handlesRefs[this.prevMovedHandleIndex].clickFocus()},onMouseMove(e){if(!this.sliderRef)return void this.onEnd();const t=Ch(this.vertical,e);this.onMove(e,t-this.dragOffset,this.dragTrack,this.startBounds)},onTouchMove(e){if(Sh(e)||!this.sliderRef)return void this.onEnd();const t=Mh(this.vertical,e);this.onMove(e,t-this.dragOffset,this.dragTrack,this.startBounds)},onKeyDown(e){this.sliderRef&&wh(e,this.handlesRefs)&&this.onKeyboard(e)},onClickMarkLabel(e,t){e.stopPropagation(),this.onChange({sValue:t}),this.setState({sValue:t},(()=>this.onEnd(!0)))},getSliderStart(){const e=this.sliderRef,{vertical:t,reverse:n}=this,r=e.getBoundingClientRect();return t?n?r.bottom:r.top:window.scrollX+(n?r.right:r.left)},getSliderLength(){const e=this.sliderRef;if(!e)return 0;const t=e.getBoundingClientRect();return this.vertical?t.height:t.width},addDocumentTouchEvents(){this.onTouchMoveListener=(0,ae.A)(this.document,"touchmove",this.onTouchMove),this.onTouchUpListener=(0,ae.A)(this.document,"touchend",this.onEnd)},addDocumentMouseEvents(){this.onMouseMoveListener=(0,ae.A)(this.document,"mousemove",this.onMouseMove),this.onMouseUpListener=(0,ae.A)(this.document,"mouseup",this.onEnd)},removeDocumentEvents(){this.onTouchMoveListener&&this.onTouchMoveListener.remove(),this.onTouchUpListener&&this.onTouchUpListener.remove(),this.onMouseMoveListener&&this.onMouseMoveListener.remove(),this.onMouseUpListener&&this.onMouseUpListener.remove()},focus(){var e;this.$props.disabled||null===(e=this.handlesRefs[0])||void 0===e||e.focus()},blur(){this.$props.disabled||Object.keys(this.handlesRefs).forEach((e=>{var t,n;null===(n=null===(t=this.handlesRefs[e])||void 0===t?void 0:t.blur)||void 0===n||n.call(t)}))},calcValue(e){const{vertical:t,min:n,max:r}=this,o=Math.abs(Math.max(e,0)/this.getSliderLength()),i=t?(1-o)*(r-n)+n:o*(r-n)+n;return i},calcValueByPos(e){const t=this.reverse?-1:1,n=t*(e-this.getSliderStart()),r=this.trimAlignValue(this.calcValue(n));return r},calcOffset(e){const{min:t,max:n}=this,r=(e-t)/(n-t);return Math.max(0,100*r)},saveSlider(e){this.sliderRef=e},saveHandle(e,t){this.handlesRefs[e]=t}},render(){const{prefixCls:e,marks:t,dots:n,step:i,included:s,disabled:l,vertical:u,reverse:c,min:d,max:h,maximumTrackStyle:p,railStyle:f,dotStyle:g,activeDotStyle:m,id:v}=this,{class:y,style:b}=this.$attrs,{tracks:_,handles:w}=this.renderSlider(),O=(0,x.A)(e,y,{[`${e}-with-marks`]:Object.keys(t).length,[`${e}-disabled`]:l,[`${e}-vertical`]:u,[`${e}-horizontal`]:!u}),A={vertical:u,marks:t,included:s,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:h,min:d,reverse:c,class:`${e}-mark`,onClickLabel:l?Nh:this.onClickMarkLabel},k={[yh.A?"onTouchstartPassive":"onTouchstart"]:l?Nh:this.onTouchStart};return(0,r.createVNode)("div",(0,o.A)((0,o.A)({id:v,ref:this.saveSlider,tabindex:"-1",class:O},k),{},{onMousedown:l?Nh:this.onMouseDown,onMouseup:l?Nh:this.onMouseUp,onKeydown:l?Nh:this.onKeyDown,onFocus:l?Nh:this.onFocus,onBlur:l?Nh:this.onBlur,style:b}),[(0,r.createVNode)("div",{class:`${e}-rail`,style:(0,S.A)((0,S.A)({},p),f)},null),_,(0,r.createVNode)(vh,{prefixCls:e,vertical:u,reverse:c,marks:t,dots:n,step:i,included:s,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:h,min:d,dotStyle:g,activeDotStyle:m},null),w,(0,r.createVNode)(_h,A,{mark:this.$slots.mark}),(0,a.$c)(this)])}})}const zh=(0,r.defineComponent)({compatConfig:{MODE:3},name:"Slider",mixins:[hh.A],inheritAttrs:!1,props:{defaultValue:Number,value:Number,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},tabindex:u.A.oneOfType([u.A.number,u.A.string]),reverse:{type:Boolean,default:void 0},min:Number,max:Number,ariaLabelForHandle:String,ariaLabelledByForHandle:String,ariaValueTextFormatterForHandle:String,startPoint:Number},emits:["beforeChange","afterChange","change"],data(){const e=void 0!==this.defaultValue?this.defaultValue:this.min,t=void 0!==this.value?this.value:e;return{sValue:this.trimAlignValue(t),dragging:!1}},watch:{value:{handler(e){this.setChangeValue(e)},deep:!0},min(){const{sValue:e}=this;this.setChangeValue(e)},max(){const{sValue:e}=this;this.setChangeValue(e)}},methods:{setChangeValue(e){const t=void 0!==e?e:this.sValue,n=this.trimAlignValue(t,this.$props);n!==this.sValue&&(this.setState({sValue:n}),Oh(t,this.$props)&&this.$emit("change",n))},onChange(e){const t=!(0,a.cK)(this,"value"),n=e.sValue>this.max?(0,S.A)((0,S.A)({},e),{sValue:this.max}):e;t&&this.setState(n);const r=n.sValue;this.$emit("change",r)},onStart(e){this.setState({dragging:!0});const{sValue:t}=this;this.$emit("beforeChange",t);const n=this.calcValueByPos(e);this.startValue=n,this.startPosition=e,n!==t&&(this.prevMovedHandleIndex=0,this.onChange({sValue:n}))},onEnd(e){const{dragging:t}=this;this.removeDocumentEvents(),(t||e)&&this.$emit("afterChange",this.sValue),this.setState({dragging:!1})},onMove(e,t){$h(e);const{sValue:n}=this,r=this.calcValueByPos(t);r!==n&&this.onChange({sValue:r})},onKeyboard(e){const{reverse:t,vertical:n}=this.$props,r=Dh(e,n,t);if(r){$h(e);const{sValue:t}=this,n=r(t,this.$props),o=this.trimAlignValue(n);if(o===t)return;this.onChange({sValue:o}),this.$emit("afterChange",o),this.onEnd()}},getLowerBound(){const e=this.$props.startPoint||this.$props.min;return this.$data.sValue>e?e:this.$data.sValue},getUpperBound(){return this.$data.sValue<this.$props.startPoint?this.$props.startPoint:this.$data.sValue},trimAlignValue(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null===e)return null;const n=(0,S.A)((0,S.A)({},this.$props),t),r=Ph(e,n);return Ih(r,n)},getTrack(e){let{prefixCls:t,reverse:n,vertical:o,included:i,minimumTrackStyle:a,mergedTrackStyle:s,length:l,offset:u}=e;return(0,r.createVNode)(fh,{class:`${t}-track`,vertical:o,included:i,offset:u,reverse:n,length:l,style:(0,S.A)((0,S.A)({},a),s)},null)},renderSlider(){const{prefixCls:e,vertical:t,included:n,disabled:r,minimumTrackStyle:o,trackStyle:i,handleStyle:a,tabindex:s,ariaLabelForHandle:l,ariaLabelledByForHandle:u,ariaValueTextFormatterForHandle:c,min:d,max:h,startPoint:p,reverse:f,handle:g,defaultHandle:m}=this,v=g||m,{sValue:y,dragging:b}=this,_=this.calcOffset(y),x=v({class:`${e}-handle`,prefixCls:e,vertical:t,offset:_,value:y,dragging:b,disabled:r,min:d,max:h,reverse:f,index:0,tabindex:s,ariaLabel:l,ariaLabelledBy:u,ariaValueTextFormatter:c,style:a[0]||a,ref:e=>this.saveHandle(0,e),onFocus:this.onFocus,onBlur:this.onBlur}),w=void 0!==p?this.calcOffset(p):0,O=i[0]||i;return{tracks:this.getTrack({prefixCls:e,reverse:f,vertical:t,included:n,offset:w,minimumTrackStyle:o,mergedTrackStyle:O,length:_-w}),handles:x}}}});var Vh=Lh(zh);const Bh=e=>{let{value:t,handle:n,bounds:r,props:o}=e;const{allowCross:i,pushable:a}=o,s=Number(a),l=Ph(t,o);let u=l;return i||null==n||void 0===r||(n>0&&l<=r[n-1]+s&&(u=r[n-1]+s),n<r.length-1&&l>=r[n+1]-s&&(u=r[n+1]-s)),Ih(u,o)},jh={defaultValue:u.A.arrayOf(u.A.number),value:u.A.arrayOf(u.A.number),count:Number,pushable:(0,u.t)(u.A.oneOfType([u.A.looseBool,u.A.number])),allowCross:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},reverse:{type:Boolean,default:void 0},tabindex:u.A.arrayOf(u.A.number),prefixCls:String,min:Number,max:Number,autofocus:{type:Boolean,default:void 0},ariaLabelGroupForHandles:Array,ariaLabelledByGroupForHandles:Array,ariaValueTextFormatterGroupForHandles:Array,draggableTrack:{type:Boolean,default:void 0}},Qh=(0,r.defineComponent)({compatConfig:{MODE:3},name:"Range",mixins:[hh.A],inheritAttrs:!1,props:(0,i.A)(jh,{count:1,allowCross:!0,pushable:!1,tabindex:[],draggableTrack:!1,ariaLabelGroupForHandles:[],ariaLabelledByGroupForHandles:[],ariaValueTextFormatterGroupForHandles:[]}),emits:["beforeChange","afterChange","change"],displayName:"Range",data(){const{count:e,min:t,max:n}=this,r=Array(...Array(e+1)).map((()=>t)),o=(0,a.cK)(this,"defaultValue")?this.defaultValue:r;let{value:i}=this;void 0===i&&(i=o);const s=i.map(((e,t)=>Bh({value:e,handle:t,props:this.$props}))),l=s[0]===n?0:s.length-1;return{sHandle:null,recent:l,bounds:s}},watch:{value:{handler(e){const{bounds:t}=this;this.setChangeValue(e||t)},deep:!0},min(){const{value:e}=this;this.setChangeValue(e||this.bounds)},max(){const{value:e}=this;this.setChangeValue(e||this.bounds)}},methods:{setChangeValue(e){const{bounds:t}=this;let n=e.map(((e,n)=>Bh({value:e,handle:n,bounds:t,props:this.$props})));if(t.length===n.length){if(n.every(((e,n)=>e===t[n])))return null}else n=e.map(((e,t)=>Bh({value:e,handle:t,props:this.$props})));if(this.setState({bounds:n}),e.some((e=>Oh(e,this.$props)))){const t=e.map((e=>Ph(e,this.$props)));this.$emit("change",t)}},onChange(e){const t=!(0,a.cK)(this,"value");if(t)this.setState(e);else{const t={};["sHandle","recent"].forEach((n=>{void 0!==e[n]&&(t[n]=e[n])})),Object.keys(t).length&&this.setState(t)}const n=(0,S.A)((0,S.A)({},this.$data),e),r=n.bounds;this.$emit("change",r)},positionGetValue(e){const t=this.getValue(),n=this.calcValueByPos(e),r=this.getClosestBound(n),o=this.getBoundNeedMoving(n,r),i=t[o];if(n===i)return null;const a=[...t];return a[o]=n,a},onStart(e){const{bounds:t}=this;this.$emit("beforeChange",t);const n=this.calcValueByPos(e);this.startValue=n,this.startPosition=e;const r=this.getClosestBound(n);this.prevMovedHandleIndex=this.getBoundNeedMoving(n,r),this.setState({sHandle:this.prevMovedHandleIndex,recent:this.prevMovedHandleIndex});const o=t[this.prevMovedHandleIndex];if(n===o)return;const i=[...t];i[this.prevMovedHandleIndex]=n,this.onChange({bounds:i})},onEnd(e){const{sHandle:t}=this;this.removeDocumentEvents(),t||(this.dragTrack=!1),(null!==t||e)&&this.$emit("afterChange",this.bounds),this.setState({sHandle:null})},onMove(e,t,n,r){$h(e);const{$data:o,$props:i}=this,a=i.max||100,s=i.min||0;if(n){let e=i.vertical?-t:t;e=i.reverse?-e:e;const n=a-Math.max(...r),l=s-Math.min(...r),u=Math.min(Math.max(e/(this.getSliderLength()/100),l),n),c=r.map((e=>Math.floor(Math.max(Math.min(e+u,a),s))));return void(o.bounds.map(((e,t)=>e===c[t])).some((e=>!e))&&this.onChange({bounds:c}))}const{bounds:l,sHandle:u}=this,c=this.calcValueByPos(t),d=l[u];c!==d&&this.moveTo(c)},onKeyboard(e){const{reverse:t,vertical:n}=this.$props,r=Dh(e,n,t);if(r){$h(e);const{bounds:t,sHandle:n}=this,o=t[null===n?this.recent:n],i=r(o,this.$props),a=Bh({value:i,handle:n,bounds:t,props:this.$props});if(a===o)return;const s=!0;this.moveTo(a,s)}},getClosestBound(e){const{bounds:t}=this;let n=0;for(let r=1;r<t.length-1;r+=1)e>=t[r]&&(n=r);return Math.abs(t[n+1]-e)<Math.abs(t[n]-e)&&(n+=1),n},getBoundNeedMoving(e,t){const{bounds:n,recent:r}=this;let o=t;const i=n[t+1]===n[t];return i&&n[r]===n[t]&&(o=r),i&&e!==n[t+1]&&(o=e<n[t+1]?t:t+1),o},getLowerBound(){return this.bounds[0]},getUpperBound(){const{bounds:e}=this;return e[e.length-1]},getPoints(){const{marks:e,step:t,min:n,max:r}=this,o=this.internalPointsCache;if(!o||o.marks!==e||o.step!==t){const o=(0,S.A)({},e);if(null!==t)for(let e=n;e<=r;e+=t)o[e]=e;const i=Object.keys(o).map(parseFloat);i.sort(((e,t)=>e-t)),this.internalPointsCache={marks:e,step:t,points:i}}return this.internalPointsCache.points},moveTo(e,t){const n=[...this.bounds],{sHandle:r,recent:o}=this,i=null===r?o:r;n[i]=e;let a=i;!1!==this.$props.pushable?this.pushSurroundingHandles(n,a):this.$props.allowCross&&(n.sort(((e,t)=>e-t)),a=n.indexOf(e)),this.onChange({recent:a,sHandle:a,bounds:n}),t&&(this.$emit("afterChange",n),this.setState({},(()=>{this.handlesRefs[a].focus()})),this.onEnd())},pushSurroundingHandles(e,t){const n=e[t],{pushable:r}=this,o=Number(r);let i=0;if(e[t+1]-n<o&&(i=1),n-e[t-1]<o&&(i=-1),0===i)return;const a=t+i,s=i*(e[a]-n);this.pushHandle(e,a,i,o-s)||(e[t]=e[a]-i*o)},pushHandle(e,t,n,r){const o=e[t];let i=e[t];while(n*(i-o)<r){if(!this.pushHandleOnePoint(e,t,n))return e[t]=o,!1;i=e[t]}return!0},pushHandleOnePoint(e,t,n){const r=this.getPoints(),o=r.indexOf(e[t]),i=o+n;if(i>=r.length||i<0)return!1;const a=t+n,s=r[i],{pushable:l}=this,u=Number(l),c=n*(e[a]-s);return!!this.pushHandle(e,a,n,u-c)&&(e[t]=s,!0)},trimAlignValue(e){const{sHandle:t,bounds:n}=this;return Bh({value:e,handle:t,bounds:n,props:this.$props})},ensureValueNotConflict(e,t,n){let{allowCross:r,pushable:o}=n;const i=this.$data||{},{bounds:a}=i;if(e=void 0===e?i.sHandle:e,o=Number(o),!r&&null!=e&&void 0!==a){if(e>0&&t<=a[e-1]+o)return a[e-1]+o;if(e<a.length-1&&t>=a[e+1]-o)return a[e+1]-o}return t},getTrack(e){let{bounds:t,prefixCls:n,reverse:o,vertical:i,included:a,offsets:s,trackStyle:l}=e;return t.slice(0,-1).map(((e,t)=>{const u=t+1,c=(0,x.A)({[`${n}-track`]:!0,[`${n}-track-${u}`]:!0});return(0,r.createVNode)(fh,{class:c,vertical:i,reverse:o,included:a,offset:s[u-1],length:s[u]-s[u-1],style:l[t],key:u},null)}))},renderSlider(){const{sHandle:e,bounds:t,prefixCls:n,vertical:r,included:o,disabled:i,min:a,max:s,reverse:l,handle:u,defaultHandle:c,trackStyle:d,handleStyle:h,tabindex:p,ariaLabelGroupForHandles:f,ariaLabelledByGroupForHandles:g,ariaValueTextFormatterGroupForHandles:m}=this,v=u||c,y=t.map((e=>this.calcOffset(e))),b=`${n}-handle`,_=t.map(((t,o)=>{let u=p[o]||0;(i||null===p[o])&&(u=null);const c=e===o;return v({class:(0,x.A)({[b]:!0,[`${b}-${o+1}`]:!0,[`${b}-dragging`]:c}),prefixCls:n,vertical:r,dragging:c,offset:y[o],value:t,index:o,tabindex:u,min:a,max:s,reverse:l,disabled:i,style:h[o],ref:e=>this.saveHandle(o,e),onFocus:this.onFocus,onBlur:this.onBlur,ariaLabel:f[o],ariaLabelledBy:g[o],ariaValueTextFormatter:m[o]})}));return{tracks:this.getTrack({bounds:t,prefixCls:n,reverse:l,vertical:r,included:o,offsets:y,trackStyle:d}),handles:_}}}});var Fh=Lh(Qh),Wh=n(32988),Hh=(0,r.defineComponent)({compatConfig:{MODE:3},name:"SliderTooltip",inheritAttrs:!1,props:(0,Wh.yV)(),setup(e,t){let{attrs:n,slots:i}=t;const a=(0,r.ref)(null),s=(0,r.ref)(null);function l(){ue.A.cancel(s.value),s.value=null}function u(){s.value=(0,ue.A)((()=>{var e;null===(e=a.value)||void 0===e||e.forcePopupAlign(),s.value=null}))}const c=()=>{l(),e.open&&u()};return(0,r.watch)([()=>e.open,()=>e.title],(()=>{c()}),{flush:"post",immediate:!0}),(0,r.onActivated)((()=>{c()})),(0,r.onBeforeUnmount)((()=>{l()})),()=>(0,r.createVNode)(Kt.A,(0,o.A)((0,o.A)({ref:a},e),n),i)}});const Zh=e=>{const{componentCls:t,controlSize:n,dotSize:r,marginFull:o,marginPart:i,colorFillContentHover:a}=e;return{[t]:(0,S.A)((0,S.A)({},(0,M.dF)(e)),{position:"relative",height:n,margin:`${i}px ${o}px`,padding:0,cursor:"pointer",touchAction:"none",["&-vertical"]:{margin:`${o}px ${i}px`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.colorFillTertiary,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},[`${t}-track`]:{position:"absolute",backgroundColor:e.colorPrimaryBorder,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},"&:hover":{[`${t}-rail`]:{backgroundColor:e.colorFillSecondary},[`${t}-track`]:{backgroundColor:e.colorPrimaryBorderHover},[`${t}-dot`]:{borderColor:a},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.colorPrimary}},[`${t}-handle`]:{position:"absolute",width:e.handleSize,height:e.handleSize,outline:"none",[`${t}-dragging`]:{zIndex:1},"&::before":{content:'""',position:"absolute",insetInlineStart:-e.handleLineWidth,insetBlockStart:-e.handleLineWidth,width:e.handleSize+2*e.handleLineWidth,height:e.handleSize+2*e.handleLineWidth,backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:e.handleSize,height:e.handleSize,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.colorPrimaryBorder}`,borderRadius:"50%",cursor:"pointer",transition:`\n inset-inline-start ${e.motionDurationMid},\n inset-block-start ${e.motionDurationMid},\n width ${e.motionDurationMid},\n height ${e.motionDurationMid},\n box-shadow ${e.motionDurationMid}\n `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:-((e.handleSizeHover-e.handleSize)/2+e.handleLineWidthHover),insetBlockStart:-((e.handleSizeHover-e.handleSize)/2+e.handleLineWidthHover),width:e.handleSizeHover+2*e.handleLineWidthHover,height:e.handleSizeHover+2*e.handleLineWidthHover},"&::after":{boxShadow:`0 0 0 ${e.handleLineWidthHover}px ${e.colorPrimary}`,width:e.handleSizeHover,height:e.handleSizeHover,insetInlineStart:(e.handleSize-e.handleSizeHover)/2,insetBlockStart:(e.handleSize-e.handleSizeHover)/2}}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:r,height:r,backgroundColor:e.colorBgElevated,border:`${e.handleLineWidth}px solid ${e.colorBorderSecondary}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,"&-active":{borderColor:e.colorPrimaryBorder}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.colorFillSecondary} !important`},[`${t}-track`]:{backgroundColor:`${e.colorTextDisabled} !important`},[`\n ${t}-dot\n `]:{backgroundColor:e.colorBgElevated,borderColor:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:e.handleSize,height:e.handleSize,boxShadow:`0 0 0 ${e.handleLineWidth}px ${new ft.q(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString()}`,insetInlineStart:0,insetBlockStart:0},[`\n ${t}-mark-text,\n ${t}-dot\n `]:{cursor:"not-allowed !important"}}})}},Gh=(e,t)=>{const{componentCls:n,railSize:r,handleSize:o,dotSize:i}=e,a=t?"paddingBlock":"paddingInline",s=t?"width":"height",l=t?"height":"width",u=t?"insetBlockStart":"insetInlineStart",c=t?"top":"insetInlineStart";return{[a]:r,[l]:3*r,[`${n}-rail`]:{[s]:"100%",[l]:r},[`${n}-track`]:{[l]:r},[`${n}-handle`]:{[u]:(3*r-o)/2},[`${n}-mark`]:{insetInlineStart:0,top:0,[c]:o,[s]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[c]:r,[s]:"100%",[l]:r},[`${n}-dot`]:{position:"absolute",[u]:(r-i)/2}}},Xh=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:(0,S.A)((0,S.A)({},Gh(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},Uh=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:(0,S.A)((0,S.A)({},Gh(e,!1)),{height:"100%"})}};var Yh=(0,k.A)("Slider",(e=>{const t=(0,C.h1)(e,{marginPart:(e.controlHeight-e.controlSize)/2,marginFull:e.controlSize/2,marginPartWithMark:e.controlHeightLG-e.controlSize});return[Zh(t),Xh(t),Uh(t)]}),(e=>{const t=1,n=e.controlHeightLG/4,r=e.controlHeightSM/2,o=e.lineWidth+t,i=e.lineWidth+3*t;return{controlSize:n,railSize:4,handleSize:n,handleSizeHover:r,dotSize:8,handleLineWidth:o,handleLineWidthHover:i}})),qh=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Kh=e=>"number"===typeof e?e.toString():"",Jh=()=>({id:String,prefixCls:String,tooltipPrefixCls:String,range:(0,l.tK)([Boolean,Object]),reverse:(0,l.HE)(),min:Number,max:Number,step:(0,l.tK)([Object,Number]),marks:(0,l.ge)(),dots:(0,l.HE)(),value:(0,l.tK)([Array,Number]),defaultValue:(0,l.tK)([Array,Number]),included:(0,l.HE)(),disabled:(0,l.HE)(),vertical:(0,l.HE)(),tipFormatter:(0,l.tK)([Function,Object],(()=>Kh)),tooltipOpen:(0,l.HE)(),tooltipVisible:(0,l.HE)(),tooltipPlacement:(0,l.WO)(),getTooltipPopupContainer:(0,l.Fg)(),autofocus:(0,l.HE)(),handleStyle:(0,l.tK)([Array,Object]),trackStyle:(0,l.tK)([Array,Object]),onChange:(0,l.Fg)(),onAfterChange:(0,l.Fg)(),onFocus:(0,l.Fg)(),onBlur:(0,l.Fg)(),"onUpdate:value":(0,l.Fg)()}),ep=(0,r.defineComponent)({compatConfig:{MODE:3},name:"ASlider",inheritAttrs:!1,props:Jh(),slots:Object,setup(e,t){let{attrs:n,slots:i,emit:a,expose:s}=t;const{prefixCls:l,rootPrefixCls:u,direction:c,getPopupContainer:d,configProvider:h}=(0,w.A)("slider",e),[p,f]=Yh(l),g=(0,Rt.db)(),m=(0,r.ref)(),v=(0,r.ref)({}),y=(e,t)=>{v.value[e]=t},b=(0,r.computed)((()=>e.tooltipPlacement?e.tooltipPlacement:e.vertical?"rtl"===c.value?"left":"right":"top")),_=()=>{var e;null===(e=m.value)||void 0===e||e.focus()},O=()=>{var e;null===(e=m.value)||void 0===e||e.blur()},S=e=>{a("update:value",e),a("change",e),g.onFieldChange()},A=e=>{a("blur",e)};s({focus:_,blur:O});const k=t=>{var{tooltipPrefixCls:n}=t,i=t.info,{value:a,dragging:s,index:c}=i,h=qh(i,["value","dragging","index"]);const{tipFormatter:p,tooltipOpen:f=e.tooltipVisible,getTooltipPopupContainer:g}=e,m=!!p&&(v.value[c]||s),_=f||void 0===f&&m;return(0,r.createVNode)(Hh,{prefixCls:n,title:p?p(a):"",open:_,placement:b.value,transitionName:`${u.value}-zoom-down`,key:c,overlayClassName:`${l.value}-tooltip`,getPopupContainer:g||(null===d||void 0===d?void 0:d.value)},{default:()=>[(0,r.createVNode)(xh,(0,o.A)((0,o.A)({},h),{},{value:a,onMouseenter:()=>y(c,!0),onMouseleave:()=>y(c,!1)}),null)]})};return()=>{const{tooltipPrefixCls:t,range:a,id:s=g.id.value}=e,u=qh(e,["tooltipPrefixCls","range","id"]),d=h.getPrefixCls("tooltip",t),v=(0,x.A)(n.class,{[`${l.value}-rtl`]:"rtl"===c.value},f.value);let y;return"rtl"!==c.value||u.vertical||(u.reverse=!u.reverse),"object"===typeof a&&(y=a.draggableTrack),p(a?(0,r.createVNode)(Fh,(0,o.A)((0,o.A)((0,o.A)({},n),u),{},{step:u.step,draggableTrack:y,class:v,ref:m,handle:e=>k({tooltipPrefixCls:d,prefixCls:l.value,info:e}),prefixCls:l.value,onChange:S,onBlur:A}),{mark:i.mark}):(0,r.createVNode)(Vh,(0,o.A)((0,o.A)((0,o.A)({},n),u),{},{id:s,step:u.step,class:v,ref:m,handle:e=>k({tooltipPrefixCls:d,prefixCls:l.value,info:e}),prefixCls:l.value,onChange:S,onBlur:A}),{mark:i.mark}))}}});var tp=(0,l.GU)(ep);const np={class:"cus-slider"};var rp=(0,r.defineComponent)({__name:"CusSlider",props:{value:{}},emits:["update:value"],setup(e){return(e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",np,[(0,r.createVNode)((0,r.unref)(tp),{value:e.value,onChange:t[0]||(t[0]=t=>e.$emit("update:value",t)),"tip-formatter":e=>`${e}%`},null,8,["value","tip-formatter"]),(0,r.createVNode)((0,r.unref)(Y.A),{value:e.value,onChange:t[1]||(t[1]=t=>e.$emit("update:value",t)),"addon-after":"%"},null,8,["value"])]))}});const op=(0,Lc.A)(rp,[["__scopeId","data-v-3b37e222"]]);var ip=op,ap=(0,r.defineComponent)({__name:"CusFormItem",props:{item:{},modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=t,i=(0,r.ref)(n.modelValue);return(0,r.watch)((()=>i.value),(()=>{o("update:modelValue",i.value)}),{deep:!0}),(e,t)=>((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(Q.A),{label:"divider"!==e.item.type?e.item.label:"",name:e.item.prop,rules:e.item.rules},{default:(0,r.withCtx)((()=>["divider"===e.item.type?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(G),{key:0,style:{margin:"0"}},{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.item.label),1)])),_:1})):"input"===e.item.type?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(X.Ay),(0,r.mergeProps)({key:1,value:i.value,"onUpdate:value":t[0]||(t[0]=e=>i.value=e)},e.item?.fieldProps),null,16,["value"])):"select"===e.item.type?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(U.Ay),(0,r.mergeProps)({key:2,value:i.value,"onUpdate:value":t[1]||(t[1]=e=>i.value=e)},e.item?.fieldProps),null,16,["value"])):"inputNumber"===e.item.type?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(Y.A),(0,r.mergeProps)({key:3,value:i.value,"onUpdate:value":t[2]||(t[2]=e=>i.value=e)},e.item?.fieldProps,{style:{width:"100%"}}),null,16,["value"])):"image"===e.item.type?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)($t),(0,r.mergeProps)({key:4,value:i.value,"onUpdate:value":t[3]||(t[3]=e=>i.value=e)},e.item?.fieldProps),null,16,["value"])):"checkboxGroup"===e.item.type?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(Ut),(0,r.mergeProps)({key:5,value:i.value,"onUpdate:value":t[4]||(t[4]=e=>i.value=e)},e.item?.fieldProps),null,16,["value"])):"backgroundSelect"===e.item.type?((0,r.openBlock)(),(0,r.createBlock)(Vc,(0,r.mergeProps)({key:6,value:i.value,"onUpdate:value":t[5]||(t[5]=e=>i.value=e)},e.item?.fieldProps),null,16,["value"])):"colorSelect"===e.item.type?((0,r.openBlock)(),(0,r.createBlock)(Fc,(0,r.mergeProps)({key:7,value:i.value,"onUpdate:value":t[6]||(t[6]=e=>i.value=e)},e.item?.fieldProps),null,16,["value"])):"colorScheme"===e.item.type?((0,r.openBlock)(),(0,r.createBlock)(Uc,(0,r.mergeProps)({key:8,value:i.value,"onUpdate:value":t[7]||(t[7]=e=>i.value=e)},e.item?.fieldProps),null,16,["value"])):"radioGroup"===e.item.type?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(Yt.A),(0,r.mergeProps)({key:9,value:i.value,"onUpdate:value":t[8]||(t[8]=e=>i.value=e),size:"small"},e.item?.fieldProps),null,16,["value"])):"radioGroupButton"===e.item.type?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(Yt.A),{key:10,value:i.value,"onUpdate:value":t[9]||(t[9]=e=>i.value=e),size:"small"},{default:(0,r.withCtx)((()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.item.fieldProps.options,(e=>((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(qt.A),{key:e.value,value:e.value},{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.label),1)])),_:2},1032,["value"])))),128))])),_:1},8,["value"])):"position"===e.item.type?((0,r.openBlock)(),(0,r.createBlock)(jd,(0,r.mergeProps)({key:11,value:i.value,"onUpdate:value":t[10]||(t[10]=e=>i.value=e)},e.item?.fieldProps),null,16,["value"])):"fontStyle"===e.item.type?((0,r.openBlock)(),(0,r.createBlock)(dh,(0,r.mergeProps)({key:12,value:i.value,"onUpdate:value":t[11]||(t[11]=e=>i.value=e)},e.item?.fieldProps),null,16,["value"])):"slider"===e.item.type?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(Rt.Ay),{key:13},{default:(0,r.withCtx)((()=>[(0,r.createVNode)(ip,(0,r.mergeProps)({value:i.value,"onUpdate:value":t[12]||(t[12]=e=>i.value=e)},e.item?.fieldProps),null,16,["value"])])),_:1})):(0,r.createCommentVNode)("",!0),e.item.tip?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(Kt.A),{key:14,title:e.item.tip},{default:(0,r.withCtx)((()=>[(0,r.createVNode)((0,r.unref)(Jt.A),{style:{color:"#666"}})])),_:1},8,["title"])):(0,r.createCommentVNode)("",!0)])),_:1},8,["label","name","rules"]))}});const sp=(0,Lc.A)(ap,[["__scopeId","data-v-126a756e"]]);var lp=sp;function up(e){return"function"===typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!(0,r.isVNode)(e)}var cp=(0,r.defineComponent)({props:{columns:{type:Array,default:()=>[]},formModel:{type:Object,default:()=>({})}},emits:["change"],setup(e,{emit:t}){const n=(0,r.ref)({}),o=(0,r.ref)(),i=(0,r.ref)({}),a=(0,r.computed)((()=>e.columns.map((e=>({...e,rules:e?.rules||[]}))))),s=t=>{t?.forEach((t=>{if("group"===t.type)s(t.children);else if("dependency"===t.type){const e=t.children?.((0,ma.A)(n.value,t.name||[]),n);s(e)}else{if("divider"===t.type)return;const r=(0,Zu.A)(e.formModel,t.prop);n.value[t.prop]=t?.valueToForm?t.valueToForm(r,e.formModel):r??t.defaultValue,t.format?t.format(i,n.value[t.prop]):i.value[t.prop]=r??t.defaultValue}}))},l=(e,r)=>{n.value[r.prop]=e,r.format?r.format(i,e):i.value[r.prop]=e,t("change",i.value)},u=e=>{switch(e.type){case"dependency":{const t=e.children?.((0,ma.A)(n.value,e.name||[]),n);return s(t),d(t)}case"group":return c(e);default:return(0,r.createVNode)(lp,{key:e.prop,item:e,modelValue:n.value[e.prop],"onUpdate:modelValue":t=>{l(t,e)}},null)}},c=e=>(0,r.createVNode)(B,{style:{borderRadius:0}},{default:()=>[(0,r.createVNode)(V,{style:{borderRadius:0},key:e.prop,header:e.label},{default:()=>[e.children?.map((e=>u(e)))]})]}),d=e=>e.map((e=>{switch(e.type){case"group":return c(e);default:return u(e)}}));return(0,r.watch)((()=>a.value),(e=>{e&&s(e)}),{immediate:!0}),()=>{let e;return(0,r.createVNode)(j.Ay,{model:n,colon:!1,"label-col":{span:8},ref:o,layout:"horizontal",size:"small"},up(e=d(a.value))?e:{default:()=>[e]})}}})},96653:function(e,t,n){"use strict";n.r(t),n.d(t,{Config:function(){return p},default:function(){return f},defaultPropsValue:function(){return i},titleProps:function(){return o}});var r=n(9274);const o={text:{type:String,required:!0},width:{type:Number},height:{type:Number},fontSize:{type:Number},fontWeight:{type:[Number,String]},color:{type:String},backgroundColor:{type:String},textAlign:{type:String},direction:{type:String}},i={container:{style:{background:{type:"none"}},props:{width:300,height:80}},props:{text:"标题内容",fontSize:24,color:"#fff",fontWeight:"bold",textAlign:"left",direction:"horizontal"}};function a(e){const t={};for(const n in e)if("object"===typeof e[n])switch(n){case"background":"none"===e[n].type&&(t[n]="none"),"color"===e[n].type&&(t[n]=e[n].color),"image"===e[n].type&&(t[n+"-image"]=`url(${e[n].image}) no-repeat center center`,t[n+"-size"]=e[n].fillType);break;case"border":"none"===e[n].type?t[n]="none":t[n]=`${e[n].width}px ${e[n].type} ${e[n].color}`;break;case"borderRadius":"all"===e[n].type?t[n]=`${e[n].value}${e[n].unit}`:t[n]=`${e[n].topLeft}${e[n].unit} ${e[n].topRight}${e[n].unit} ${e[n].bottomLeft}${e[n].unit} ${e[n].bottomRight}${e[n].unit}`;break;case"boxShadow":e[n].enabled&&(t[n]=`${e[n].offsetX}px ${e[n].offsetY}px ${e[n].blurRadius}px ${e[n].spreadRadius}px ${e[n].color} ${e[n].inset?"inset":""}`);break;case"backdropFilter":e[n].enabled&&(t[n]=`blur(${e[n].blur}px)`);break}else"number"===typeof e[n]?t[n]=e[n]+"px":"string"===typeof e[n]&&(t[n]=e[n]);return t}var s=(0,r.defineComponent)({__name:"index",props:o,setup(e){const t=e,n=(0,r.computed)((()=>{const e=a(t),n={};return e.color.length>9&&(n.backgroundImage=e.color,n.webkitBackgroundClip="text",n.webkitTextFillColor="transparent"),{...n,...e,width:"100%",height:"100%",lineHeight:t.height+"px"}}));return(e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{class:"cus-title",style:(0,r.normalizeStyle)(n.value)},(0,r.toDisplayString)(e.text),5))}});const l=s;var u=l,c=n(74112),d=(0,r.defineComponent)({__name:"Config",props:o,emits:["change"],setup(e,{emit:t}){const n=e,o=t,i=(0,r.computed)((()=>[{label:"内容",prop:"text",type:"input",defaultValue:n.text},{label:"字体",prop:"fontSize",type:"inputNumber",defaultValue:n.fontSize},{label:"颜色",prop:"color",type:"colorSelect",defaultValue:n.color},{label:"对齐",prop:"textAlign",type:"radioGroup",defaultValue:n.textAlign,fieldProps:{options:[{label:"左对齐",value:"left"},{label:"居中",value:"center"},{label:"右对齐",value:"right"}]}}])),a=e=>{o("change",e)};return(e,t)=>((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(c.O),(0,r.mergeProps)({columns:i.value},e.$attrs,{onChange:a}),null,16,["columns"]))}});const h=d;var p=h;u.Config=p,u.install=e=>(e.component("FmDashboardTitle",u),e);var f=u},30185:function(e,t,n){"use strict";n.d(t,{cM:function(){return b},z1:function(){return O}});n(30381);var r=n(68525),o=n(74655),i=2,a=.16,s=.05,l=.05,u=.15,c=5,d=4,h=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function p(e){var t=e.r,n=e.g,o=e.b,i=(0,r.wE)(t,n,o);return{h:360*i.h,s:i.s,v:i.v}}function f(e){var t=e.r,n=e.g,o=e.b;return"#".concat((0,r.Ob)(t,n,o,!1))}function g(e,t,n){var r=n/100,o={r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b};return o}function m(e,t,n){var r;return r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-i*t:Math.round(e.h)+i*t:n?Math.round(e.h)+i*t:Math.round(e.h)-i*t,r<0?r+=360:r>=360&&(r-=360),r}function v(e,t,n){return 0===e.h&&0===e.s?e.s:(r=n?e.s-a*t:t===d?e.s+a:e.s+s*t,r>1&&(r=1),n&&t===c&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function y(e,t,n){var r;return r=n?e.v+l*t:e.v-u*t,r>1&&(r=1),Number(r.toFixed(2))}function b(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=(0,o.RO)(e),i=c;i>0;i-=1){var a=p(r),s=f((0,o.RO)({h:m(a,i,!0),s:v(a,i,!0),v:y(a,i,!0)}));n.push(s)}n.push(f(r));for(var l=1;l<=d;l+=1){var u=p(r),b=f((0,o.RO)({h:m(u,l),s:v(u,l),v:y(u,l)}));n.push(b)}return"dark"===t.theme?h.map((function(e){var r=e.index,i=e.opacity,a=f(g((0,o.RO)(t.backgroundColor||"#141414"),(0,o.RO)(n[r]),100*i));return a})):n}var _={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},x={},w={};Object.keys(_).forEach((function(e){x[e]=b(_[e]),x[e].primary=x[e][5],w[e]=b(_[e],{theme:"dark",backgroundColor:"#141414"}),w[e].primary=w[e][5]}));x.red,x.volcano,x.gold,x.orange,x.yellow,x.lime,x.green,x.cyan;var O=x.blue;x.geekblue,x.purple,x.magenta,x.grey},29847:function(e,t,n){"use strict";n.d(t,{A:function(){return ce}});n(30381);var r=n(9274),o=n(30185),i=Symbol("iconContext"),a=function(){return(0,r.inject)(i,{prefixCls:(0,r.ref)("anticon"),rootClassName:(0,r.ref)(""),csp:(0,r.ref)()})};function s(){return!("undefined"===typeof window||!window.document||!window.document.createElement)}function l(e,t){return!!e&&(!!e.contains&&e.contains(t))}var u="data-vc-order",c="vc-icon-key",d=new Map;function h(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):c}function p(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function f(e){return"queue"===e?"prependQueue":e?"prepend":"append"}function g(e){return Array.from((d.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!s())return null;var n=t.csp,r=t.prepend,o=document.createElement("style");o.setAttribute(u,f(r)),n&&n.nonce&&(o.nonce=n.nonce),o.innerHTML=e;var i=p(t),a=i.firstChild;if(r){if("queue"===r){var l=g(i).filter((function(e){return["prepend","prependQueue"].includes(e.getAttribute(u))}));if(l.length)return i.insertBefore(o,l[l.length-1].nextSibling),o}i.insertBefore(o,a)}else i.appendChild(o);return o}function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=p(t);return g(n).find((function(n){return n.getAttribute(h(t))===e}))}function y(e,t){var n=d.get(e);if(!n||!l(document,n)){var r=m("",t),o=r.parentNode;d.set(e,o),e.removeChild(r)}}function b(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=p(n);y(r,n);var o=v(t,n);if(o)return n.csp&&n.csp.nonce&&o.nonce!==n.csp.nonce&&(o.nonce=n.csp.nonce),o.innerHTML!==e&&(o.innerHTML=e),o;var i=m(e,n);return i.setAttribute(h(n),t),i}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){x(e,t,n[t])}))}return e}function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(e,t){0}function O(e,t){w(e,"[@ant-design/icons-vue] ".concat(t))}function S(e){return"object"===typeof e&&"string"===typeof e.name&&"string"===typeof e.theme&&("object"===typeof e.icon||"function"===typeof e.icon)}function A(e,t,n){return n?(0,r.h)(e.tag,_({key:t},n,e.attrs),(e.children||[]).map((function(n,r){return A(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))):(0,r.h)(e.tag,_({key:t},e.attrs),(e.children||[]).map((function(n,r){return A(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function k(e){return(0,o.cM)(e)[0]}function C(e){return e?Array.isArray(e)?e:[e]:[]}var M="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";function T(e){return e&&e.getRootNode&&e.getRootNode()}function P(e){return!!s()&&T(e)instanceof ShadowRoot}function I(e){return P(e)?T(e):null}var $=function(){var e=a(),t=e.prefixCls,n=e.csp,o=(0,r.getCurrentInstance)(),i=M;t&&(i=i.replace(/anticon/g,t.value)),(0,r.nextTick)((function(){if(s()){var e=o.vnode.el,t=I(e);b(i,"@ant-design-vue-icons",{prepend:!0,csp:n.value,attachTo:t})}}))},E=["icon","primaryColor","secondaryColor"];function D(e,t){if(null==e)return{};var n,r,o=R(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function R(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function N(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){L(e,t,n[t])}))}return e}function L(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var z=(0,r.reactive)({primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1});function V(e){var t=e.primaryColor,n=e.secondaryColor;z.primaryColor=t,z.secondaryColor=n||k(t),z.calculated=!!n}function B(){return N({},z)}var j=function(e,t){var n=N({},e,t.attrs),r=n.icon,o=n.primaryColor,i=n.secondaryColor,a=D(n,E),s=z;if(o&&(s={primaryColor:o,secondaryColor:i||k(o)}),O(S(r),"icon should be icon definiton, but got ".concat(r)),!S(r))return null;var l=r;return l&&"function"===typeof l.icon&&(l=N({},l,{icon:l.icon(s.primaryColor,s.secondaryColor)})),A(l.icon,"svg-".concat(l.name),N({},a,{"data-icon":l.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};j.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String},j.inheritAttrs=!1,j.displayName="IconBase",j.getTwoToneColors=B,j.setTwoToneColors=V;var Q=j;function F(e,t){return X(e)||G(e,t)||H(e,t)||W()}function W(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function H(e,t){if(e){if("string"===typeof e)return Z(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Z(e,t):void 0}}function Z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function G(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done);a=!0)if(i.push(r.value),t&&i.length===t)break}catch(l){s=!0,o=l}finally{try{a||null==n["return"]||n["return"]()}finally{if(s)throw o}}return i}}function X(e){if(Array.isArray(e))return e}function U(e){var t=C(e),n=F(t,2),r=n[0],o=n[1];return Q.setTwoToneColors({primaryColor:r,secondaryColor:o})}function Y(){var e=Q.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var q=(0,r.defineComponent)({name:"InsertStyles",setup:function(){return $(),function(){return null}}}),K=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function J(e,t){return oe(e)||re(e,t)||te(e,t)||ee()}function ee(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function te(e,t){if(e){if("string"===typeof e)return ne(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ne(e,t):void 0}}function ne(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function re(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done);a=!0)if(i.push(r.value),t&&i.length===t)break}catch(l){s=!0,o=l}finally{try{a||null==n["return"]||n["return"]()}finally{if(s)throw o}}return i}}function oe(e){if(Array.isArray(e))return e}function ie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ae(e,t,n[t])}))}return e}function ae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function se(e,t){if(null==e)return{};var n,r,o=le(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function le(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}U(o.z1.primary);var ue=function(e,t){var n,o=ie({},e,t.attrs),i=o["class"],s=o.icon,l=o.spin,u=o.rotate,c=o.tabindex,d=o.twoToneColor,h=o.onClick,p=se(o,K),f=a(),g=f.prefixCls,m=f.rootClassName,v=(n={},ae(n,m.value,!!m.value),ae(n,g.value,!0),ae(n,"".concat(g.value,"-").concat(s.name),Boolean(s.name)),ae(n,"".concat(g.value,"-spin"),!!l||"loading"===s.name),n),y=c;void 0===y&&h&&(y=-1);var b=u?{msTransform:"rotate(".concat(u,"deg)"),transform:"rotate(".concat(u,"deg)")}:void 0,_=C(d),x=J(_,2),w=x[0],O=x[1];return(0,r.createVNode)("span",ie({role:"img","aria-label":s.name},p,{onClick:h,class:[v,i],tabindex:y}),[(0,r.createVNode)(Q,{icon:s,primaryColor:w,secondaryColor:O,style:b},null),(0,r.createVNode)(q,null,null)])};ue.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:[String,Array]},ue.displayName="AntdIcon",ue.inheritAttrs=!1,ue.getTwoToneColor=Y,ue.setTwoToneColor=U;var ce=ue},46299:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var r=n(9274),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"},i=o,a=n(29847);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){l(e,t,n[t])}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=function(e,t){var n=s({},e,t.attrs);return(0,r.createVNode)(a.A,s({},n,{icon:i}),null)};u.displayName="CheckCircleFilled",u.inheritAttrs=!1;var c=u},82339:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var r=n(9274),o={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},i=o,a=n(29847);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){l(e,t,n[t])}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=function(e,t){var n=s({},e,t.attrs);return(0,r.createVNode)(a.A,s({},n,{icon:i}),null)};u.displayName="CloseCircleFilled",u.inheritAttrs=!1;var c=u},23273:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var r=n(9274),o={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},i=o,a=n(29847);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){l(e,t,n[t])}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=function(e,t){var n=s({},e,t.attrs);return(0,r.createVNode)(a.A,s({},n,{icon:i}),null)};u.displayName="CloseOutlined",u.inheritAttrs=!1;var c=u},87781:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var r=n(9274),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-600 72h560v208H232V136zm560 480H232V408h560v208zm0 272H232V680h560v208zM304 240a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"database",theme:"outlined"},i=o,a=n(29847);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){l(e,t,n[t])}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=function(e,t){var n=s({},e,t.attrs);return(0,r.createVNode)(a.A,s({},n,{icon:i}),null)};u.displayName="DatabaseOutlined",u.inheritAttrs=!1;var c=u},27577:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var r=n(9274),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},i=o,a=n(29847);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){l(e,t,n[t])}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=function(e,t){var n=s({},e,t.attrs);return(0,r.createVNode)(a.A,s({},n,{icon:i}),null)};u.displayName="DownOutlined",u.inheritAttrs=!1;var c=u},51911:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var r=n(9274),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},i=o,a=n(29847);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){l(e,t,n[t])}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=function(e,t){var n=s({},e,t.attrs);return(0,r.createVNode)(a.A,s({},n,{icon:i}),null)};u.displayName="ExclamationCircleFilled",u.inheritAttrs=!1;var c=u},34631:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var r=n(9274),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},i=o,a=n(29847);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){l(e,t,n[t])}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=function(e,t){var n=s({},e,t.attrs);return(0,r.createVNode)(a.A,s({},n,{icon:i}),null)};u.displayName="EyeOutlined",u.inheritAttrs=!1;var c=u},33684:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var r=n(9274),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},i=o,a=n(29847);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){l(e,t,n[t])}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=function(e,t){var n=s({},e,t.attrs);return(0,r.createVNode)(a.A,s({},n,{icon:i}),null)};u.displayName="InfoCircleFilled",u.inheritAttrs=!1;var c=u},7649:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var r=n(9274),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"},i=o,a=n(29847);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){l(e,t,n[t])}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=function(e,t){var n=s({},e,t.attrs);return(0,r.createVNode)(a.A,s({},n,{icon:i}),null)};u.displayName="InfoCircleOutlined",u.inheritAttrs=!1;var c=u},2167:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var r=n(9274),o={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},i=o,a=n(29847);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){l(e,t,n[t])}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=function(e,t){var n=s({},e,t.attrs);return(0,r.createVNode)(a.A,s({},n,{icon:i}),null)};u.displayName="LoadingOutlined",u.inheritAttrs=!1;var c=u},78282:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var r=n(9274),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},i=o,a=n(29847);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){l(e,t,n[t])}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=function(e,t){var n=s({},e,t.attrs);return(0,r.createVNode)(a.A,s({},n,{icon:i}),null)};u.displayName="PlusOutlined",u.inheritAttrs=!1;var c=u},82205:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var r=n(9274),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},i=o,a=n(29847);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){l(e,t,n[t])}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=function(e,t){var n=s({},e,t.attrs);return(0,r.createVNode)(a.A,s({},n,{icon:i}),null)};u.displayName="SearchOutlined",u.inheritAttrs=!1;var c=u},93648:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var r=n(9274),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M870 126H663.8c-17.4 0-32.9 11.9-37 29.3C614.3 208.1 567 246 512 246s-102.3-37.9-114.8-90.7a37.93 37.93 0 00-37-29.3H154a44 44 0 00-44 44v252a44 44 0 0044 44h75v388a44 44 0 0044 44h478a44 44 0 0044-44V466h75a44 44 0 0044-44V170a44 44 0 00-44-44zm-28 268H723v432H301V394H182V198h153.3c28.2 71.2 97.5 120 176.7 120s148.5-48.8 176.7-120H842v196z"}}]},name:"skin",theme:"outlined"},i=o,a=n(29847);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){l(e,t,n[t])}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=function(e,t){var n=s({},e,t.attrs);return(0,r.createVNode)(a.A,s({},n,{icon:i}),null)};u.displayName="SkinOutlined",u.inheritAttrs=!1;var c=u},68525:function(e,t,n){"use strict";n.d(t,{H:function(){return d},K6:function(){return i},Me:function(){return u},Ob:function(){return c},YL:function(){return s},_:function(){return o},g8:function(){return f},n6:function(){return p},oS:function(){return g},wE:function(){return l}});var r=n(98897);function o(e,t,n){return{r:255*(0,r.Cg)(e,255),g:255*(0,r.Cg)(t,255),b:255*(0,r.Cg)(n,255)}}function i(e,t,n){e=(0,r.Cg)(e,255),t=(0,r.Cg)(t,255),n=(0,r.Cg)(n,255);var o=Math.max(e,t,n),i=Math.min(e,t,n),a=0,s=0,l=(o+i)/2;if(o===i)s=0,a=0;else{var u=o-i;switch(s=l>.5?u/(2-o-i):u/(o+i),o){case e:a=(t-n)/u+(t<n?6:0);break;case t:a=(n-e)/u+2;break;case n:a=(e-t)/u+4;break;default:break}a/=6}return{h:a,s:s,l:l}}function a(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function s(e,t,n){var o,i,s;if(e=(0,r.Cg)(e,360),t=(0,r.Cg)(t,100),n=(0,r.Cg)(n,100),0===t)i=n,s=n,o=n;else{var l=n<.5?n*(1+t):n+t-n*t,u=2*n-l;o=a(u,l,e+1/3),i=a(u,l,e),s=a(u,l,e-1/3)}return{r:255*o,g:255*i,b:255*s}}function l(e,t,n){e=(0,r.Cg)(e,255),t=(0,r.Cg)(t,255),n=(0,r.Cg)(n,255);var o=Math.max(e,t,n),i=Math.min(e,t,n),a=0,s=o,l=o-i,u=0===o?0:l/o;if(o===i)a=0;else{switch(o){case e:a=(t-n)/l+(t<n?6:0);break;case t:a=(n-e)/l+2;break;case n:a=(e-t)/l+4;break;default:break}a/=6}return{h:a,s:u,v:s}}function u(e,t,n){e=6*(0,r.Cg)(e,360),t=(0,r.Cg)(t,100),n=(0,r.Cg)(n,100);var o=Math.floor(e),i=e-o,a=n*(1-t),s=n*(1-i*t),l=n*(1-(1-i)*t),u=o%6,c=[n,s,a,a,l,n][u],d=[l,n,n,s,a,a][u],h=[a,a,l,n,n,s][u];return{r:255*c,g:255*d,b:255*h}}function c(e,t,n,o){var i=[(0,r.wl)(Math.round(e).toString(16)),(0,r.wl)(Math.round(t).toString(16)),(0,r.wl)(Math.round(n).toString(16))];return o&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function d(e,t,n,o,i){var a=[(0,r.wl)(Math.round(e).toString(16)),(0,r.wl)(Math.round(t).toString(16)),(0,r.wl)(Math.round(n).toString(16)),(0,r.wl)(h(o))];return i&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function h(e){return Math.round(255*parseFloat(e)).toString(16)}function p(e){return f(e)/255}function f(e){return parseInt(e,16)}function g(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}},10577:function(e,t,n){"use strict";n.d(t,{D:function(){return r}});var r={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}},74655:function(e,t,n){"use strict";n.d(t,{RO:function(){return a}});var r=n(68525),o=n(10577),i=n(98897);function a(e){var t={r:0,g:0,b:0},n=1,o=null,a=null,s=null,l=!1,u=!1;return"string"===typeof e&&(e=p(e)),"object"===typeof e&&(f(e.r)&&f(e.g)&&f(e.b)?(t=(0,r._)(e.r,e.g,e.b),l=!0,u="%"===String(e.r).substr(-1)?"prgb":"rgb"):f(e.h)&&f(e.s)&&f(e.v)?(o=(0,i.Px)(e.s),a=(0,i.Px)(e.v),t=(0,r.Me)(e.h,o,a),l=!0,u="hsv"):f(e.h)&&f(e.s)&&f(e.l)&&(o=(0,i.Px)(e.s),s=(0,i.Px)(e.l),t=(0,r.YL)(e.h,o,s),l=!0,u="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=(0,i.TV)(n),{ok:l,format:e.format||u,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var s="[-\\+]?\\d+%?",l="[-\\+]?\\d*\\.\\d+%?",u="(?:".concat(l,")|(?:").concat(s,")"),c="[\\s|\\(]+(".concat(u,")[,|\\s]+(").concat(u,")[,|\\s]+(").concat(u,")\\s*\\)?"),d="[\\s|\\(]+(".concat(u,")[,|\\s]+(").concat(u,")[,|\\s]+(").concat(u,")[,|\\s]+(").concat(u,")\\s*\\)?"),h={CSS_UNIT:new RegExp(u),rgb:new RegExp("rgb"+c),rgba:new RegExp("rgba"+d),hsl:new RegExp("hsl"+c),hsla:new RegExp("hsla"+d),hsv:new RegExp("hsv"+c),hsva:new RegExp("hsva"+d),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function p(e){if(e=e.trim().toLowerCase(),0===e.length)return!1;var t=!1;if(o.D[e])e=o.D[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=h.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=h.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=h.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=h.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=h.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=h.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=h.hex8.exec(e),n?{r:(0,r.g8)(n[1]),g:(0,r.g8)(n[2]),b:(0,r.g8)(n[3]),a:(0,r.n6)(n[4]),format:t?"name":"hex8"}:(n=h.hex6.exec(e),n?{r:(0,r.g8)(n[1]),g:(0,r.g8)(n[2]),b:(0,r.g8)(n[3]),format:t?"name":"hex"}:(n=h.hex4.exec(e),n?{r:(0,r.g8)(n[1]+n[1]),g:(0,r.g8)(n[2]+n[2]),b:(0,r.g8)(n[3]+n[3]),a:(0,r.n6)(n[4]+n[4]),format:t?"name":"hex8"}:(n=h.hex3.exec(e),!!n&&{r:(0,r.g8)(n[1]+n[1]),g:(0,r.g8)(n[2]+n[2]),b:(0,r.g8)(n[3]+n[3]),format:t?"name":"hex"})))))))))}function f(e){return Boolean(h.CSS_UNIT.exec(String(e)))}},78089:function(e,t,n){"use strict";n.d(t,{q:function(){return s}});n(30381);var r=n(68525),o=n(10577),i=n(74655),a=n(98897),s=function(){function e(t,n){var o;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"===typeof t&&(t=(0,r.oS)(t)),this.originalInput=t;var a=(0,i.RO)(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(o=n.format)&&void 0!==o?o:a.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e,t,n,r=this.toRgb(),o=r.r/255,i=r.g/255,a=r.b/255;return e=o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4),t=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4),n=a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4),.2126*e+.7152*t+.0722*n},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=(0,a.TV)(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var e=this.toHsl().s;return 0===e},e.prototype.toHsv=function(){var e=(0,r.wE)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=(0,r.wE)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=(0,r.K6)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=(0,r.K6)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),(0,r.Ob)(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),(0,r.H)(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*(0,a.Cg)(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*(0,a.Cg)(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+(0,r.Ob)(this.r,this.g,this.b,!1),t=0,n=Object.entries(o.D);t<n.length;t++){var i=n[t],a=i[0],s=i[1];if(e===s)return a}return!1},e.prototype.toString=function(e){var t=Boolean(e);e=null!==e&&void 0!==e?e:this.format;var n=!1,r=this.a<1&&this.a>=0,o=!t&&r&&(e.startsWith("hex")||"name"===e);return o?"name"===e&&0===this.a?this.toName():this.toRgbString():("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=(0,a.J$)(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=(0,a.J$)(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=(0,a.J$)(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=(0,a.J$)(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100,a={r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a};return new e(a)},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],s=1/t;while(t--)a.push(new e({h:r,s:o,v:i})),i=(i+s)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;a<t;a++)o.push(new e({h:(r+a*i)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}()},98897:function(e,t,n){"use strict";function r(e,t){i(e)&&(e="100%");var n=a(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t)),e)}function o(e){return Math.min(1,Math.max(0,e))}function i(e){return"string"===typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)}function a(e){return"string"===typeof e&&-1!==e.indexOf("%")}function s(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function l(e){return e<=1?"".concat(100*Number(e),"%"):e}function u(e){return 1===e.length?"0"+e:String(e)}n.d(t,{Cg:function(){return r},J$:function(){return o},Px:function(){return l},TV:function(){return s},wl:function(){return u}})},5141:function(e,t,n){"use strict";function r(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24,t=1540483477*(65535&t)+(59797*(t>>>16)<<16),t^=t>>>24,n=1540483477*(65535&t)+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n^=255&e.charCodeAt(r),n=1540483477*(65535&n)+(59797*(n>>>16)<<16)}return n^=n>>>13,n=1540483477*(65535&n)+(59797*(n>>>16)<<16),((n^n>>>15)>>>0).toString(36)}n.d(t,{A:function(){return r}})},91949:function(e,t,n){"use strict";n.d(t,{A:function(){return h}});var r=n(69751),o=n(9274),i=n(5530),a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const s=(0,o.defineComponent)({compatConfig:{MODE:3},props:{disabled:i.A.looseBool,type:i.A.string,value:i.A.any,tag:{type:String,default:"input"},size:i.A.string,onChange:Function,onInput:Function,onBlur:Function,onFocus:Function,onKeydown:Function,onCompositionstart:Function,onCompositionend:Function,onKeyup:Function,onPaste:Function,onMousedown:Function},emits:["change","input","blur","keydown","focus","compositionstart","compositionend","keyup","paste","mousedown"],setup(e,t){let{expose:n}=t;const i=(0,o.shallowRef)(null),s=()=>{i.value&&i.value.focus()},l=()=>{i.value&&i.value.blur()},u=(e,t,n)=>{var r;null===(r=i.value)||void 0===r||r.setSelectionRange(e,t,n)},c=()=>{var e;null===(e=i.value)||void 0===e||e.select()};return n({focus:s,blur:l,input:i,setSelectionRange:u,select:c,getSelectionStart:()=>{var e;return null===(e=i.value)||void 0===e?void 0:e.selectionStart},getSelectionEnd:()=>{var e;return null===(e=i.value)||void 0===e?void 0:e.selectionEnd},getScrollTop:()=>{var e;return null===(e=i.value)||void 0===e?void 0:e.scrollTop}}),()=>{const{tag:t,value:n}=e,s=a(e,["tag","value"]);return(0,o.createVNode)(t,(0,r.A)((0,r.A)({},s),{},{ref:i,value:n}),null)}}});var l=s,u=n(59662),c=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const d=(0,o.defineComponent)({compatConfig:{MODE:3},inheritAttrs:!1,props:{disabled:i.A.looseBool,type:i.A.string,value:i.A.any,lazy:i.A.bool.def(!0),tag:{type:String,default:"input"},size:i.A.string,style:i.A.oneOfType([String,Object]),class:i.A.string},emits:["change","input","blur","keydown","focus","compositionstart","compositionend","keyup","paste","mousedown"],setup(e,t){let{emit:n,attrs:i,expose:a}=t;const s=(0,o.shallowRef)(null),d=(0,o.ref)(),h=(0,o.ref)(!1);(0,o.watch)([()=>e.value,h],(()=>{h.value||(d.value=e.value)}),{immediate:!0});const p=e=>{n("change",e)},f=e=>{h.value=!0,e.target.composing=!0,n("compositionstart",e)},g=e=>{h.value=!1,e.target.composing=!1,n("compositionend",e);const t=document.createEvent("HTMLEvents");t.initEvent("input",!0,!0),e.target.dispatchEvent(t),p(e)},m=t=>{h.value&&e.lazy?d.value=t.target.value:n("input",t)},v=e=>{n("blur",e)},y=e=>{n("focus",e)},b=()=>{s.value&&s.value.focus()},_=()=>{s.value&&s.value.blur()},x=e=>{n("keydown",e)},w=e=>{n("keyup",e)},O=(e,t,n)=>{var r;null===(r=s.value)||void 0===r||r.setSelectionRange(e,t,n)},S=()=>{var e;null===(e=s.value)||void 0===e||e.select()};a({focus:b,blur:_,input:(0,o.computed)((()=>{var e;return null===(e=s.value)||void 0===e?void 0:e.input})),setSelectionRange:O,select:S,getSelectionStart:()=>{var e;return null===(e=s.value)||void 0===e?void 0:e.getSelectionStart()},getSelectionEnd:()=>{var e;return null===(e=s.value)||void 0===e?void 0:e.getSelectionEnd()},getScrollTop:()=>{var e;return null===(e=s.value)||void 0===e?void 0:e.getScrollTop()}});const A=e=>{n("mousedown",e)},k=e=>{n("paste",e)},C=(0,o.computed)((()=>e.style&&"string"!==typeof e.style?(0,u.Xf)(e.style):e.style));return()=>{const{style:t,lazy:n}=e,a=c(e,["style","lazy"]);return(0,o.createVNode)(l,(0,r.A)((0,r.A)((0,r.A)({},a),i),{},{style:C.value,onInput:m,onChange:p,onBlur:v,onFocus:y,ref:s,value:d.value,onCompositionstart:f,onCompositionend:g,onKeyup:w,onKeydown:x,onPaste:k,onMousedown:A}),null)}}});var h=d},207:function(e,t,n){"use strict";var r=n(98657),o=n(9274),i=n(16155);t.A={methods:{setState(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n="function"===typeof e?e(this.$data,this.$props):e;if(this.getDerivedStateFromProps){const e=this.getDerivedStateFromProps((0,i.Oq)(this),(0,r.A)((0,r.A)({},this.$data),n));if(null===e)return;n=(0,r.A)((0,r.A)({},n),e||{})}(0,r.A)(this.$data,n),this._.isMounted&&this.$forceUpdate(),(0,o.nextTick)((()=>{t&&t()}))},__emit(){const e=[].slice.call(arguments,0);let t=e[0];t=`on${t[0].toUpperCase()}${t.substring(1)}`;const n=this.$props[t]||this.$attrs[t];if(e.length&&n)if(Array.isArray(n))for(let r=0,o=n.length;r<o;r++)n[r](...e.slice(1));else n(...e.slice(1))}}}},5347:function(e,t){"use strict";const n={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){const{keyCode:t}=e;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=n.F1&&t<=n.F12)return!1;switch(t){case n.ALT:case n.CAPS_LOCK:case n.CONTEXT_MENU:case n.CTRL:case n.DOWN:case n.END:case n.ESC:case n.HOME:case n.INSERT:case n.LEFT:case n.MAC_FF_META:case n.META:case n.NUMLOCK:case n.NUM_CENTER:case n.PAGE_DOWN:case n.PAGE_UP:case n.PAUSE:case n.PRINT_SCREEN:case n.RIGHT:case n.SHIFT:case n.UP:case n.WIN_KEY:case n.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=n.ZERO&&e<=n.NINE)return!0;if(e>=n.NUM_ZERO&&e<=n.NUM_MULTIPLY)return!0;if(e>=n.A&&e<=n.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case n.SPACE:case n.QUESTION_MARK:case n.NUM_PLUS:case n.NUM_MINUS:case n.NUM_PERIOD:case n.NUM_DIVISION:case n.SEMICOLON:case n.DASH:case n.EQUALS:case n.COMMA:case n.PERIOD:case n.SLASH:case n.APOSTROPHE:case n.SINGLE_QUOTE:case n.OPEN_SQUARE_BRACKET:case n.BACKSLASH:case n.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};t.A=n},68955:function(e,t,n){"use strict";var r=n(9274),o=n(5530),i=n(42845);t.A=(0,r.defineComponent)({compatConfig:{MODE:3},name:"Portal",inheritAttrs:!1,props:{getContainer:o.A.func.isRequired,didUpdate:Function},setup(e,t){let n,{slots:o}=t,a=!0;const{shouldRender:s}=(0,i.v)();function l(){s.value&&(n=e.getContainer())}(0,r.onBeforeMount)((()=>{a=!1,l()})),(0,r.onMounted)((()=>{n||l()}));const u=(0,r.watch)(s,(()=>{s.value&&!n&&(n=e.getContainer()),n&&u()}));return(0,r.onUpdated)((()=>{(0,r.nextTick)((()=>{var t;s.value&&(null===(t=e.didUpdate)||void 0===t||t.call(e,e))}))})),()=>{var e;return s.value?a?null===(e=o.default)||void 0===e?void 0:e.call(o):n?(0,r.createVNode)(r.Teleport,{to:n},o):null:null}}})},5956:function(e,t,n){"use strict";n.d(t,{A:function(){return b}});var r=n(9274),o=n(5530),i=n(68955),a=n(58590),s=n(38624),l=n(66041),u=n(92337);let c;function d(e){if("undefined"===typeof document)return 0;if(e||void 0===c){const e=document.createElement("div");e.style.width="100%",e.style.height="200px";const t=document.createElement("div"),n=t.style;n.position="absolute",n.top="0",n.left="0",n.pointerEvents="none",n.visibility="hidden",n.width="200px",n.height="150px",n.overflow="hidden",t.appendChild(e),document.body.appendChild(t);const r=e.offsetWidth;t.style.overflow="scroll";let o=e.offsetWidth;r===o&&(o=t.clientWidth),document.body.removeChild(t),c=r-o}return c}const h=`vc-util-locker-${Date.now()}`;let p=0;function f(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}function g(e){const t=(0,r.computed)((()=>!!e&&!!e.value));p+=1;const n=`${h}_${p}`;(0,r.watchEffect)((e=>{if((0,a.A)()){if(t.value){const e=d(),t=f();(0,u.BD)(`\nhtml body {\n overflow-y: hidden;\n ${t?`width: calc(100% - ${e}px);`:""}\n}`,n)}else(0,u.m6)(n);e((()=>{(0,u.m6)(n)}))}}),{flush:"post"})}let m=0;const v=(0,a.A)();const y=e=>{if(!v)return null;if(e){if("string"===typeof e)return document.querySelectorAll(e)[0];if("function"===typeof e)return e();if("object"===typeof e&&e instanceof window.HTMLElement)return e}return document.body};var b=(0,r.defineComponent)({compatConfig:{MODE:3},name:"PortalWrapper",inheritAttrs:!1,props:{wrapperClassName:String,forceRender:{type:Boolean,default:void 0},getContainer:o.A.any,visible:{type:Boolean,default:void 0},autoLock:(0,l.HE)(),didUpdate:Function},setup(e,t){let{slots:n}=t;const o=(0,r.shallowRef)(),l=(0,r.shallowRef)(),u=(0,r.shallowRef)(),c=(0,r.shallowRef)(1),d=(0,a.A)()&&document.createElement("div"),h=()=>{var e,t;o.value===d&&(null===(t=null===(e=o.value)||void 0===e?void 0:e.parentNode)||void 0===t||t.removeChild(o.value)),o.value=null};let p=null;const f=function(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return!(t||o.value&&!o.value.parentNode)||(p=y(e.getContainer),!!p&&(p.appendChild(o.value),!0))},b=()=>v?(o.value||(o.value=d,f(!0)),_(),o.value):null,_=()=>{const{wrapperClassName:t}=e;o.value&&t&&t!==o.value.className&&(o.value.className=t)};return(0,r.onUpdated)((()=>{_(),f()})),g((0,r.computed)((()=>e.autoLock&&e.visible&&(0,a.A)()&&(o.value===document.body||o.value===d)))),(0,r.onMounted)((()=>{let t=!1;(0,r.watch)([()=>e.visible,()=>e.getContainer],((n,r)=>{let[o,i]=n,[a,s]=r;if(v&&(p=y(e.getContainer),p===document.body&&(o&&!a?m+=1:t&&(m-=1))),t){const e="function"===typeof i&&"function"===typeof s;(e?i.toString()!==s.toString():i!==s)&&h()}t=!0}),{immediate:!0,flush:"post"}),(0,r.nextTick)((()=>{f()||(u.value=(0,s.A)((()=>{c.value+=1})))}))})),(0,r.onBeforeUnmount)((()=>{const{visible:t}=e;v&&p===document.body&&(m=t&&m?m-1:m),h(),s.A.cancel(u.value)})),()=>{const{forceRender:t,visible:o}=e;let a=null;const s={getOpenCount:()=>m,getContainer:b};return c.value&&(t||o||l.value)&&(a=(0,r.createVNode)(i.A,{getContainer:b,ref:l,didUpdate:e.didUpdate},{default:()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n,s)}})),a}}})},58590:function(e,t){"use strict";function n(){return!("undefined"===typeof window||!window.document||!window.document.createElement)}t.A=n},13389:function(e,t,n){"use strict";n(30381);var r=n(92389);function o(){const e=[];for(let t=0;t<arguments.length;t++){const n=t<0||arguments.length<=t?void 0:arguments[t];if(n)if((0,r.Kg)(n))e.push(n);else if((0,r.cy)(n))for(let t=0;t<n.length;t++){const r=o(n[t]);r&&e.push(r)}else if((0,r.Gv)(n))for(const t in n)n[t]&&e.push(t)}return e.join(" ")}t.A=o},33063:function(e,t,n){"use strict";n.d(t,{A:function(){return l}});var r=n(9274);function o(e,t){if(e.classList)return e.classList.contains(t);const n=e.className;return` ${n} `.indexOf(` ${t} `)>-1}function i(e,t){e.classList?e.classList.add(t):o(e,t)||(e.className=`${e.className} ${t}`)}function a(e,t){if(e.classList)e.classList.remove(t);else if(o(e,t)){const n=e.className;e.className=` ${n} `.replace(` ${t} `," ")}}const s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ant-motion-collapse",t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return{name:e,appear:t,css:!0,onBeforeEnter:t=>{t.style.height="0px",t.style.opacity="0",i(t,e)},onEnter:e=>{(0,r.nextTick)((()=>{e.style.height=`${e.scrollHeight}px`,e.style.opacity="1"}))},onAfterEnter:t=>{t&&(a(t,e),t.style.height=null,t.style.opacity=null)},onBeforeLeave:t=>{i(t,e),t.style.height=`${t.offsetHeight}px`,t.style.opacity=null},onLeave:e=>{setTimeout((()=>{e.style.height="0px",e.style.opacity="0"}))},onAfterLeave:t=>{t&&(a(t,e),t.style&&(t.style.height=null,t.style.opacity=null))}}};var l=s},2126:function(e,t,n){"use strict";var r=n(98657),o=n(9274);function i(e){const t=Symbol("contextKey"),n=(e,n)=>{const i=(0,o.reactive)({});return(0,o.provide)(t,i),(0,o.watchEffect)((()=>{(0,r.A)(i,e,n||{})})),i},i=()=>(0,o.inject)(t,e)||{};return{useProvide:n,useInject:i}}t.A=i},97732:function(e,t){"use strict";class n{constructor(e,t){this._keyframe=!0,this.name=e,this.style=t}getName(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?`${e}-${this.name}`:this.name}}t.A=n},13877:function(e,t,n){"use strict";n.d(t,{aH:function(){return c},Oc:function(){return u},oi:function(){return d},K6:function(){return m}});var r=n(98657),o=n(9274);const i="%";class a{constructor(e){this.cache=new Map,this.instanceId=e}get(e){return this.cache.get(Array.isArray(e)?e.join(i):e)||null}update(e,t){const n=Array.isArray(e)?e.join(i):e,r=this.cache.get(n),o=t(r);null===o?this.cache.delete(n):this.cache.set(n,o)}}var s=a,l=n(66041);const u="data-token-hash",c="data-css-hash",d="__cssinjs_instance__";function h(){const e=Math.random().toString(12).slice(2);if("undefined"!==typeof document&&document.head&&document.body){const t=document.body.querySelectorAll(`style[${c}]`)||[],{firstChild:n}=document.head;Array.from(t).forEach((t=>{t[d]=t[d]||e,t[d]===e&&document.head.insertBefore(t,n)}));const r={};Array.from(document.querySelectorAll(`style[${c}]`)).forEach((t=>{var n;const o=t.getAttribute(c);r[o]?t[d]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[o]=!0}))}return new s(e)}const p=Symbol("StyleContextKey"),f=()=>{var e,t,n;const r=(0,o.getCurrentInstance)();let i;if(r&&r.appContext){const o=null===(n=null===(t=null===(e=r.appContext)||void 0===e?void 0:e.config)||void 0===t?void 0:t.globalProperties)||void 0===n?void 0:n.__ANTDV_CSSINJS_CACHE__;o?i=o:(i=h(),r.appContext.config.globalProperties&&(r.appContext.config.globalProperties.__ANTDV_CSSINJS_CACHE__=i))}else i=h();return i},g={cache:h(),defaultCache:!0,hashPriority:"low"},m=()=>{const e=f();return(0,o.inject)(p,(0,o.shallowRef)((0,r.A)((0,r.A)({},g),{cache:e})))},v=e=>{const t=m(),n=(0,o.shallowRef)((0,r.A)((0,r.A)({},g),{cache:h()}));return(0,o.watch)([()=>(0,o.unref)(e),t],(()=>{const i=(0,r.A)({},t.value),a=(0,o.unref)(e);Object.keys(a).forEach((e=>{const t=a[e];void 0!==a[e]&&(i[e]=t)}));const{cache:s}=a;i.cache=i.cache||h(),i.defaultCache=!s&&t.value.defaultCache,n.value=i}),{immediate:!0}),(0,o.provide)(p,n),n},y=()=>({autoClear:(0,l.HE)(),mock:(0,l.WO)(),cache:(0,l.ge)(),defaultCache:(0,l.HE)(),hashPriority:(0,l.WO)(),container:(0,l.tK)(),ssrInline:(0,l.HE)(),transformers:(0,l.MY)(),linters:(0,l.MY)()});(0,l.GU)((0,o.defineComponent)({name:"AStyleProvider",inheritAttrs:!1,props:y(),setup(e,t){let{slots:n}=t;return v(e),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}}))},3165:function(e,t,n){"use strict";n.d(t,{A:function(){return s}});var r=n(13877);function o(){return!1}var i=o;var a=n(9274);function s(e,t,n,o){const s=(0,r.K6)(),l=(0,a.shallowRef)(""),u=(0,a.shallowRef)();(0,a.watchEffect)((()=>{l.value=[e,...t.value].join("%")}));i();const c=e=>{s.value.cache.update(e,(e=>{const[t=0,n]=e||[],r=t-1;return 0===r?(null===o||void 0===o||o(n,!1),null):[t-1,n]}))};return(0,a.watch)(l,((e,t)=>{t&&c(t),s.value.cache.update(e,(e=>{const[t=0,r]=e||[];let o=r;const i=o||n();return[t+1,i]})),u.value=s.value.cache.get(l.value)[1]}),{immediate:!0}),(0,a.onBeforeUnmount)((()=>{c(l.value)})),u}},13234:function(e,t,n){"use strict";n.d(t,{Ay:function(){return be}});n(30381),n(85194),n(27092),n(68925),n(31796),n(21467),n(22064),n(92114);var r=n(98657),o=n(5141),i={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},a="comm",s="rule",l="decl",u="@import",c="@keyframes",d="@layer",h=Math.abs,p=String.fromCharCode;Object.assign;function f(e){return e.trim()}function g(e,t,n){return e.replace(t,n)}function m(e,t,n){return e.indexOf(t,n)}function v(e,t){return 0|e.charCodeAt(t)}function y(e,t,n){return e.slice(t,n)}function b(e){return e.length}function _(e){return e.length}function x(e,t){return t.push(e),e}function w(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function O(e,t,n,r){switch(e.type){case d:if(e.children.length)break;case u:case l:return e.return=e.return||e.value;case a:return"";case c:return e.return=e.value+"{"+w(e.children,r)+"}";case s:if(!b(e.value=e.props.join(",")))return""}return b(n=w(e.children,r))?e.return=e.value+"{"+n+"}":""}var S=1,A=1,k=0,C=0,M=0,T="";function P(e,t,n,r,o,i,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:S,column:A,length:a,return:"",siblings:s}}function I(){return M}function $(){return M=C>0?v(T,--C):0,A--,10===M&&(A=1,S--),M}function E(){return M=C<k?v(T,C++):0,A++,10===M&&(A=1,S++),M}function D(){return v(T,C)}function R(){return C}function N(e,t){return y(T,e,t)}function L(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function z(e){return S=A=1,k=b(T=e),C=0,[]}function V(e){return T="",e}function B(e){return f(N(C-1,F(91===e?e+2:40===e?e+1:e)))}function j(e){while(M=D()){if(!(M<33))break;E()}return L(e)>2||L(M)>3?"":" "}function Q(e,t){while(--t&&E())if(M<48||M>102||M>57&&M<65||M>70&&M<97)break;return N(e,R()+(t<6&&32==D()&&32==E()))}function F(e){while(E())switch(M){case e:return C;case 34:case 39:34!==e&&39!==e&&F(M);break;case 40:41===e&&F(e);break;case 92:E();break}return C}function W(e,t){while(E()){if(e+M===57)break;if(e+M===84&&47===D())break}return"/*"+N(t,C-1)+"*"+p(47===e?e:E())}function H(e){while(!L(D()))E();return N(e,C)}function Z(e){return V(G("",null,null,null,[""],e=z(e),0,[0],e))}function G(e,t,n,r,o,i,a,s,l){var u=0,c=0,d=a,f=0,y=0,_=0,w=1,O=1,S=1,A=0,k="",C=o,M=i,T=r,P=k;while(O)switch(_=A,A=E()){case 40:if(108!=_&&58==v(P,d-1)){-1!=m(P+=g(B(A),"&","&\f"),"&\f",h(u?s[u-1]:0))&&(S=-1);break}case 34:case 39:case 91:P+=B(A);break;case 9:case 10:case 13:case 32:P+=j(_);break;case 92:P+=Q(R()-1,7);continue;case 47:switch(D()){case 42:case 47:x(U(W(E(),R()),t,n,l),l);break;default:P+="/"}break;case 123*w:s[u++]=b(P)*S;case 125*w:case 59:case 0:switch(A){case 0:case 125:O=0;case 59+c:-1==S&&(P=g(P,/\f/g,"")),y>0&&b(P)-d&&x(y>32?Y(P+";",r,n,d-1,l):Y(g(P," ","")+";",r,n,d-2,l),l);break;case 59:P+=";";default:if(x(T=X(P,t,n,u,c,o,s,k,C=[],M=[],d,i),i),123===A)if(0===c)G(P,t,T,T,C,i,d,s,M);else switch(99===f&&110===v(P,3)?100:f){case 100:case 108:case 109:case 115:G(e,T,T,r&&x(X(e,T,T,0,0,o,s,k,o,C=[],d,M),M),o,M,d,s,r?C:M);break;default:G(P,T,T,T,[""],M,0,s,M)}}u=c=y=0,w=S=1,k=P="",d=a;break;case 58:d=1+b(P),y=_;default:if(w<1)if(123==A)--w;else if(125==A&&0==w++&&125==$())continue;switch(P+=p(A),A*w){case 38:S=c>0?1:(P+="\f",-1);break;case 44:s[u++]=(b(P)-1)*S,S=1;break;case 64:45===D()&&(P+=B(E())),f=D(),c=d=b(k=P+=H(R())),A++;break;case 45:45===_&&2==b(P)&&(w=0)}}return i}function X(e,t,n,r,o,i,a,l,u,c,d,p){for(var m=o-1,v=0===o?i:[""],b=_(v),x=0,w=0,O=0;x<r;++x)for(var S=0,A=y(e,m+1,m=h(w=a[x])),k=e;S<b;++S)(k=f(w>0?v[S]+" "+A:g(A,/&\f/g,v[S])))&&(u[O++]=k);return P(e,t,n,0===o?s:l,u,c,d,p)}function U(e,t,n,r){return P(e,t,n,a,p(I()),y(e,2,-2),0,r)}function Y(e,t,n,r,o){return P(e,t,n,l,y(e,0,r),y(e,r+1,-1),r,o)}var q=n(13877),K=n(33621),J=n(3165),ee=n(92337),te=n(9274),ne=n(58590);const re="data-ant-cssinjs-cache-path",oe="_FILE_STYLE__";let ie,ae=!0;function se(){var e;if(!ie&&(ie={},(0,ne.A)())){const t=document.createElement("div");t.className=re,t.style.position="fixed",t.style.visibility="hidden",t.style.top="-9999px",document.body.appendChild(t);let n=getComputedStyle(t).content||"";n=n.replace(/^"/,"").replace(/"$/,""),n.split(";").forEach((e=>{const[t,n]=e.split(":");ie[t]=n}));const r=document.querySelector(`style[${re}]`);r&&(ae=!1,null===(e=r.parentNode)||void 0===e||e.removeChild(r)),document.body.removeChild(t)}}function le(e){return se(),!!ie[e]}function ue(e){const t=ie[e];let n=null;if(t&&(0,ne.A)())if(ae)n=oe;else{const t=document.querySelector(`style[${q.aH}="${ie[e]}"]`);t?n=t.innerHTML:delete ie[e]}return[n,t]}const ce=(0,ne.A)(),de="_skip_check_",he="_multi_value_";function pe(e){const t=w(Z(e),O);return t.replace(/\{%%%\:[^;];}/g,";")}function fe(e){return"object"===typeof e&&e&&(de in e||he in e)}function ge(e,t,n){if(!t)return e;const r=`.${t}`,o="low"===n?`:where(${r})`:r,i=e.split(",").map((e=>{var t;const n=e.trim().split(/\s+/);let r=n[0]||"";const i=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return r=`${i}${o}${r.slice(i.length)}`,[r,...n.slice(1)].join(" ")}));return i.join(",")}const me=new Set,ve=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{root:n,injectHash:o,parentSelectors:a}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]};const{hashId:s,layer:l,path:u,hashPriority:c,transformers:d=[],linters:h=[]}=t;let p="",f={};function g(e){const n=e.getName(s);if(!f[n]){const[r]=ve(e.style,t,{root:!1,parentSelectors:a});f[n]=`@keyframes ${e.getName(s)}${r}`}}function m(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.forEach((e=>{Array.isArray(e)?m(e,t):e&&t.push(e)})),t}const v=m(Array.isArray(e)?e:[e]);if(v.forEach((e=>{const l="string"!==typeof e||n?e:{};if("string"===typeof l)p+=`${l}\n`;else if(l._keyframe)g(l);else{const e=d.reduce(((e,t)=>{var n;return(null===(n=null===t||void 0===t?void 0:t.visit)||void 0===n?void 0:n.call(t,e))||e}),l);Object.keys(e).forEach((l=>{var u;const d=e[l];if("object"!==typeof d||!d||"animationName"===l&&d._keyframe||fe(d)){function h(e,t){const n=e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`));let r=t;i[e]||"number"!==typeof r||0===r||(r=`${r}px`),"animationName"===e&&(null===t||void 0===t?void 0:t._keyframe)&&(g(t),r=t.getName(s)),p+=`${n}:${r};`}const m=null!==(u=null===d||void 0===d?void 0:d.value)&&void 0!==u?u:d;"object"===typeof d&&(null===d||void 0===d?void 0:d[he])&&Array.isArray(m)?m.forEach((e=>{h(l,e)})):h(l,m)}else{let v=!1,y=l.trim(),b=!1;(n||o)&&s?y.startsWith("@")?v=!0:y=ge(l,s,c):!n||s||"&"!==y&&""!==y||(y="",b=!0);const[_,x]=ve(d,t,{root:b,injectHash:v,parentSelectors:[...a,y]});f=(0,r.A)((0,r.A)({},f),x),p+=`${y}${_}`}}))}})),n){if(l&&(0,K.V8)()){const e=l.split(","),t=e[e.length-1].trim();p=`@layer ${t} {${p}}`,e.length>1&&(p=`@layer ${l}{%%%:%}${p}`)}}else p=`{${p}}`;return[p,f]};function ye(e,t){return(0,o.A)(`${e.join("%")}${t}`)}function be(e,t){const n=(0,q.K6)(),r=(0,te.computed)((()=>e.value.token._tokenKey)),o=(0,te.computed)((()=>[r.value,...e.value.path]));let i=ce;return(0,J.A)("style",o,(()=>{const{path:a,hashId:s,layer:l,nonce:u,clientOnly:c,order:d=0}=e.value,h=o.value.join("|");if(le(h)){const[e,t]=ue(h);if(e)return[e,r.value,t,{},c,d]}const p=t(),{hashPriority:f,container:g,transformers:m,linters:v,cache:y}=n.value,[b,_]=ve(p,{hashId:s,hashPriority:f,layer:l,path:a.join("-"),transformers:m,linters:v}),x=pe(b),w=ye(o.value,x);if(i){const e={mark:q.aH,prepend:"queue",attachTo:g,priority:d},t="function"===typeof u?u():u;t&&(e.csp={nonce:t});const n=(0,ee.BD)(x,w,e);n[q.oi]=y.instanceId,n.setAttribute(q.Oc,r.value),Object.keys(_).forEach((e=>{me.has(e)||(me.add(e),(0,ee.BD)(pe(_[e]),`_effect-${e}`,{mark:q.aH,prepend:"queue",attachTo:g}))}))}return[x,r.value,w,_,c,d]}),((e,t)=>{let[,,r]=e;(t||n.value.autoClear)&&ce&&(0,ee.m6)(r,{mark:q.aH})})),e=>e}},55902:function(e,t,n){"use strict";n.d(t,{A:function(){return i}});var r=n(18765);let o=0;class i{constructor(e){this.derivatives=Array.isArray(e)?e:[e],this.id=o,0===e.length&&(0,r.Ay)(e.length>0,"[Ant Design Vue CSS-in-JS] Theme should have at least one derivative function."),o+=1}getDerivativeToken(e){return this.derivatives.reduce(((t,n)=>n(e,t)),void 0)}}},40730:function(e,t,n){"use strict";n.d(t,{A:function(){return s}});n(30381);function r(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}class o{constructor(){this.cache=new Map,this.keys=[],this.cacheCallTimes=0}size(){return this.keys.length}internalGet(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n={map:this.cache};return e.forEach((e=>{var t;n=n?null===(t=null===n||void 0===n?void 0:n.map)||void 0===t?void 0:t.get(e):void 0})),(null===n||void 0===n?void 0:n.value)&&t&&(n.value[1]=this.cacheCallTimes++),null===n||void 0===n?void 0:n.value}get(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}has(e){return!!this.internalGet(e)}set(e,t){if(!this.has(e)){if(this.size()+1>o.MAX_CACHE_SIZE+o.MAX_CACHE_OFFSET){const[e]=this.keys.reduce(((e,t)=>{const[,n]=e;return this.internalGet(t)[1]<n?[t,this.internalGet(t)[1]]:e}),[this.keys[0],this.cacheCallTimes]);this.delete(e)}this.keys.push(e)}let n=this.cache;e.forEach(((r,o)=>{if(o===e.length-1)n.set(r,{value:[t,this.cacheCallTimes++]});else{const e=n.get(r);e?e.map||(e.map=new Map):n.set(r,{map:new Map}),n=n.get(r).map}}))}deleteByPath(e,t){var n;const r=e.get(t[0]);if(1===t.length)return r.map?e.set(t[0],{map:r.map}):e.delete(t[0]),null===(n=r.value)||void 0===n?void 0:n[0];const o=this.deleteByPath(r.map,t.slice(1));return r.map&&0!==r.map.size||r.value||e.delete(t[0]),o}delete(e){if(this.has(e))return this.keys=this.keys.filter((t=>!r(t,e))),this.deleteByPath(this.cache,e)}}o.MAX_CACHE_SIZE=20,o.MAX_CACHE_OFFSET=5;var i=n(55902);const a=new o;function s(e){const t=Array.isArray(e)?e:[e];return a.has(t)||a.set(t,new i.A(t)),a.get(t)}},33621:function(e,t,n){"use strict";n.d(t,{V8:function(){return f},g2:function(){return l},zw:function(){return u}});var r=n(5141),o=n(92337),i=n(58590),a=n(55902);const s=new WeakMap;function l(e){let t=s.get(e)||"";return t||(Object.keys(e).forEach((n=>{const r=e[n];t+=n,r instanceof a.A?t+=r.id:t+=r&&"object"===typeof r?l(r):r})),s.set(e,t)),t}function u(e,t){return(0,r.A)(`${t}_${l(e)}`)}const c=`random-${Date.now()}-${Math.random()}`.replace(/\./g,""),d="_bAmBoO_";function h(e,t,n){var r,a;if((0,i.A)()){(0,o.BD)(e,c);const i=document.createElement("div");i.style.position="fixed",i.style.left="0",i.style.top="0",null===t||void 0===t||t(i),document.body.appendChild(i);const s=n?n(i):null===(r=getComputedStyle(i).content)||void 0===r?void 0:r.includes(d);return null===(a=i.parentNode)||void 0===a||a.removeChild(i),(0,o.m6)(c),s}return!1}let p;function f(){return void 0===p&&(p=h(`@layer ${c} { .${c} { content: "${d}"!important; } }`,(e=>{e.className=c}))),p}},32480:function(e,t){"use strict";function n(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];for(let t=0,n=e.length;t<n;t++)if(void 0!==e[t])return e[t]}t.A=n},68740:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var r=n(9274);function o(e,t){const{defaultValue:n,value:o=(0,r.ref)()}=t||{};let i="function"===typeof e?e():e;void 0!==o.value&&(i=(0,r.unref)(o)),void 0!==n&&(i="function"===typeof n?n():n);const a=(0,r.ref)(i),s=(0,r.ref)(i);function l(e){const n=s.value;a.value=e,(0,r.toRaw)(s.value)!==e&&t.onChange&&t.onChange(e,n)}return(0,r.watchEffect)((()=>{let e=void 0!==o.value?o.value:a.value;t.postState&&(e=t.postState(e)),s.value=e})),(0,r.watch)(o,(()=>{a.value=o.value})),[s,l]}},6340:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var r=n(9274);function o(e){const t="function"===typeof e?e():e,n=(0,r.ref)(t);function o(e){n.value=e}return[n,o]}},95915:function(e,t){"use strict";const n=e=>void 0!==e&&null!==e&&""!==e;t.A=n},21244:function(e,t,n){"use strict";var r=n(98657);function o(e,t){const n=(0,r.A)({},e);for(let r=0;r<t.length;r+=1){const e=t[r];delete n[e]}return n}t.A=o},21330:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var r=n(98657);const o="accept acceptcharset accesskey action allowfullscreen allowtransparency\nalt async autocomplete autofocus autoplay capture cellpadding cellspacing challenge\ncharset checked classid classname colspan cols content contenteditable contextmenu\ncontrols coords crossorigin data datetime default defer dir disabled download draggable\nenctype form formaction formenctype formmethod formnovalidate formtarget frameborder\nheaders height hidden high href hreflang htmlfor for httpequiv icon id inputmode integrity\nis keyparams keytype kind label lang list loop low manifest marginheight marginwidth max maxlength media\nmediagroup method min minlength multiple muted name novalidate nonce open\noptimum pattern placeholder poster preload radiogroup readonly rel required\nreversed role rowspan rows sandbox scope scoped scrolling seamless selected\nshape size sizes span spellcheck src srcdoc srclang srcset start step style\nsummary tabindex target title type usemap value width wmode wrap",i="onCopy onCut onPaste onCompositionend onCompositionstart onCompositionupdate onKeydown\n onKeypress onKeyup onFocus onBlur onChange onInput onSubmit onClick onContextmenu onDoubleclick onDblclick\n onDrag onDragend onDragenter onDragexit onDragleave onDragover onDragstart onDrop onMousedown\n onMouseenter onMouseleave onMousemove onMouseout onMouseover onMouseup onSelect onTouchcancel\n onTouchend onTouchmove onTouchstart onTouchstartPassive onTouchmovePassive onScroll onWheel onAbort onCanplay onCanplaythrough\n onDurationchange onEmptied onEncrypted onEnded onError onLoadeddata onLoadedmetadata\n onLoadstart onPause onPlay onPlaying onProgress onRatechange onSeeked onSeeking onStalled onSuspend onTimeupdate onVolumechange onWaiting onLoad onError",a=`${o} ${i}`.split(/[\s\n]+/),s="aria-",l="data-";function u(e,t){return 0===e.indexOf(t)}function c(e){let t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:(0,r.A)({},n);const o={};return Object.keys(e).forEach((n=>{(t.aria&&("role"===n||u(n,s))||t.data&&u(n,l)||t.attr&&(a.includes(n)||a.includes(n.toLowerCase())))&&(o[n]=e[n])})),o}},16155:function(e,t,n){"use strict";n.d(t,{$c:function(){return h},Gk:function(){return _},MI:function(){return d},Oq:function(){return f},Py:function(){return c},QQ:function(){return g},cK:function(){return u},gd:function(){return v},kQ:function(){return m},oK:function(){return p},rU:function(){return w},sG:function(){return b},zO:function(){return x},zv:function(){return y}});n(30381);var r=n(98657),o=n(9274),i=n(92389),a=n(95915);const s=e=>{const t=Object.keys(e),n={},r={},o={};for(let a=0,s=t.length;a<s;a++){const s=t[a];(0,i.Mp)(s)?(n[s[2].toLowerCase()+s.slice(3)]=e[s],r[s]=e[s]):o[s]=e[s]}return{onEvents:r,events:n,extraAttrs:o}},l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n={},r=/;(?![^(]*\))/g,o=/:(.+)/;return"object"===typeof e?e:(e.split(r).forEach((function(e){if(e){const r=e.split(o);if(r.length>1){const e=t?(0,i.PT)(r[0].trim()):r[0].trim();n[e]=r[1].trim()}}})),n)},u=(e,t)=>void 0!==e[t],c=Symbol("skipFlatten"),d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=Array.isArray(e)?e:[e],r=[];return n.forEach((e=>{Array.isArray(e)?r.push(...d(e,t)):e&&e.type===o.Fragment?e.key===c?r.push(e):r.push(...d(e.children,t)):e&&(0,o.isVNode)(e)?t&&!b(e)?r.push(e):t||r.push(e):(0,a.A)(e)&&r.push(e)})),r},h=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if((0,o.isVNode)(e))return e.type===o.Fragment?"default"===t?d(e.children):[]:e.children&&e.children[t]?d(e.children[t](n)):[];{const r=e.$slots[t]&&e.$slots[t](n);return d(r)}},p=e=>{var t;let n=(null===(t=null===e||void 0===e?void 0:e.vnode)||void 0===t?void 0:t.el)||e&&(e.$el||e);while(n&&!n.tagName)n=n.nextSibling;return n},f=e=>{const t={};if(e.$&&e.$.vnode){const n=e.$.vnode.props||{};Object.keys(e.$props).forEach((r=>{const o=e.$props[r],a=(0,i.Tg)(r);(void 0!==o||a in n)&&(t[r]=o)}))}else if((0,o.isVNode)(e)&&"object"===typeof e.type){const n=e.props||{},r={};Object.keys(n).forEach((e=>{r[(0,i.PT)(e)]=n[e]}));const o=e.type.props||{};Object.keys(o).forEach((e=>{const n=(0,i.rQ)(o,r,e,r[e]);(void 0!==n||e in r)&&(t[e]=n)}))}return t},g=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e.$){const o=e[n];if(void 0!==o)return"function"===typeof o&&i?o(r):o;t=e.$slots[n],t=i&&t?t(r):t}else if((0,o.isVNode)(e)){const a=e.props&&e.props[n];if(void 0!==a&&null!==e.props)return"function"===typeof a&&i?a(r):a;e.type===o.Fragment?t=e.children:e.children&&e.children[n]&&(t=e.children[n],t=i&&t?t(r):t)}return Array.isArray(t)&&(t=d(t),t=1===t.length?t[0]:t,t=0===t.length?void 0:t),t};function m(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n={};return n=e.$?(0,r.A)((0,r.A)({},n),e.$attrs):(0,r.A)((0,r.A)({},n),e.props),s(n)[t?"onEvents":"events"]}function v(e,t){const n=((0,o.isVNode)(e)?e.props:e.$attrs)||{};let r=n.style||{};if("string"===typeof r)r=l(r,t);else if(t&&r){const e={};return Object.keys(r).forEach((t=>e[(0,i.PT)(t)]=r[t])),e}return r}function y(e){return 1===e.length&&e[0].type===o.Fragment}function b(e){return e&&(e.type===o.Comment||e.type===o.Fragment&&0===e.children.length||e.type===o.Text&&""===e.children.trim())}function _(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t=[];return e.forEach((e=>{Array.isArray(e)?t.push(...e):(null===e||void 0===e?void 0:e.type)===o.Fragment?t.push(..._(e.children)):t.push(e)})),t.filter((e=>!b(e)))}function x(e){return Array.isArray(e)&&1===e.length&&(e=e[0]),e&&e.__v_isVNode&&"symbol"!==typeof e.type}function w(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"default";var r,o;return null!==(r=t[n])&&void 0!==r?r:null===(o=e[n])||void 0===o?void 0:o.call(e)}},47960:function(e,t,n){"use strict";var r=n(98657);const o=(e,t)=>{const n=(0,r.A)({},e);return Object.keys(t).forEach((e=>{const r=n[e];if(!r)throw new Error(`not have ${e} prop`);r.type||r.default?r.default=t[e]:r.def?r.def(t[e]):n[e]={type:r,default:t[e]}})),n};t.A=o},38624:function(e,t,n){"use strict";n.d(t,{A:function(){return l}});let r=e=>setTimeout(e,16),o=e=>clearTimeout(e);"undefined"!==typeof window&&"requestAnimationFrame"in window&&(r=e=>window.requestAnimationFrame(e),o=e=>window.cancelAnimationFrame(e));let i=0;const a=new Map;function s(e){a.delete(e)}function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;i+=1;const n=i;function o(t){if(0===t)s(n),e();else{const e=r((()=>{o(t-1)}));a.set(n,e)}}return o(t),n}l.cancel=e=>{const t=a.get(e);return s(t),o(t)}},64854:function(e,t,n){"use strict";n.d(t,{L:function(){return o},v:function(){return i}});var r=n(13389);function o(e,t,n){return(0,r.A)({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}const i=(e,t)=>t||e},97369:function(e,t,n){"use strict";n.d(t,{Pu:function(){return a},qz:function(){return o}});var r=n(58590);const o=()=>(0,r.A)()&&window.document.documentElement;let i;const a=()=>{if(!o())return!1;if(void 0!==i)return i;const e=document.createElement("div");return e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e),i=1===e.scrollHeight,document.body.removeChild(e),i}},36476:function(e,t){"use strict";let n=!1;try{const e=Object.defineProperty({},"passive",{get(){n=!0}});window.addEventListener("testPassive",null,e),window.removeEventListener("testPassive",null,e)}catch(r){}t.A=n},41038:function(e,t,n){"use strict";n.d(t,{TL:function(){return a},by:function(){return u},ce:function(){return s},zg:function(){return l}});var r=n(98657),o=n(9274),i=n(66041);(0,i.PV)("bottomLeft","bottomRight","topLeft","topRight");const a=e=>void 0===e||"topLeft"!==e&&"topRight"!==e?"slide-up":"slide-down",s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=e?(0,r.A)({name:e,appear:!0,enterFromClass:`${e}-enter ${e}-enter-prepare ${e}-enter-start`,enterActiveClass:`${e}-enter ${e}-enter-prepare`,enterToClass:`${e}-enter ${e}-enter-active`,leaveFromClass:` ${e}-leave`,leaveActiveClass:`${e}-leave ${e}-leave-active`,leaveToClass:`${e}-leave ${e}-leave-active`},t):(0,r.A)({css:!1},t);return n},l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=e?(0,r.A)({name:e,appear:!0,appearActiveClass:`${e}`,appearToClass:`${e}-appear ${e}-appear-active`,enterFromClass:`${e}-appear ${e}-enter ${e}-appear-prepare ${e}-enter-prepare`,enterActiveClass:`${e}`,enterToClass:`${e}-enter ${e}-appear ${e}-appear-active ${e}-enter-active`,leaveActiveClass:`${e} ${e}-leave`,leaveToClass:`${e}-leave-active`},t):(0,r.A)({css:!1},t);return n},u=(e,t,n)=>void 0!==n?n:`${e}-${t}`;t.Ay=o.Transition},66041:function(e,t,n){"use strict";n.d(t,{$q:function(){return i},Fg:function(){return l},GU:function(){return o},HE:function(){return s},MY:function(){return c},PV:function(){return r},WO:function(){return d},ds:function(){return u},ge:function(){return a},tK:function(){return h}});const r=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t},o=e=>{const t=e;return t.install=function(n){n.component(t.displayName||t.name,e)},e};function i(){return{type:[Function,Array]}}function a(e){return{type:Object,default:e}}function s(e){return{type:Boolean,default:e}}function l(e){return{type:Function,default:e}}function u(e,t){const n={validator:()=>!0,default:e};return n}function c(e){return{type:Array,default:e}}function d(e){return{type:String,default:e}}function h(e,t){return e?{type:e,default:t}:u(t)}},92389:function(e,t,n){"use strict";n.d(t,{BM:function(){return b},Ew:function(){return _},Gv:function(){return a},Kg:function(){return i},Mp:function(){return l},PT:function(){return d},Tg:function(){return p},cl:function(){return y},cy:function(){return o},rQ:function(){return m},xc:function(){return v}});const r=e=>"function"===typeof e,o=(Symbol("controlDefaultValue"),Array.isArray),i=e=>"string"===typeof e,a=e=>null!==e&&"object"===typeof e,s=/^on[^a-z]/,l=e=>s.test(e),u=e=>{const t=Object.create(null);return n=>{const r=t[n];return r||(t[n]=e(n))}},c=/-(\w)/g,d=u((e=>e.replace(c,((e,t)=>t?t.toUpperCase():"")))),h=/\B([A-Z])/g,p=u((e=>e.replace(h,"-$1").toLowerCase())),f=(u((e=>e.charAt(0).toUpperCase()+e.slice(1))),Object.prototype.hasOwnProperty),g=(e,t)=>f.call(e,t);function m(e,t,n,o){const i=e[n];if(null!=i){const e=g(i,"default");if(e&&void 0===o){const e=i.default;o=i.type!==Function&&r(e)?e():e}i.type===Boolean&&(g(t,n)||e?""===o&&(o=!0):o=!1)}return o}function v(e){return Object.keys(e).reduce(((t,n)=>((n.startsWith("data-")||n.startsWith("aria-"))&&(t[n]=e[n]),t)),{})}function y(e){return"number"===typeof e?`${e}px`:e}function b(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return"function"===typeof e?e(t):null!==e&&void 0!==e?e:n}function _(e){let t;const n=new Promise((n=>{t=e((()=>{n(!0)}))})),r=()=>{null===t||void 0===t||t()};return r.then=(e,t)=>n.then(e,t),r.promise=n,r}},87051:function(e,t,n){"use strict";n.d(t,{OJ:function(){return l},Ob:function(){return s}});var r=n(98657),o=n(16155),i=n(9274),a=n(18765);function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],s=arguments.length>3&&void 0!==arguments[3]&&arguments[3],l=e;if(Array.isArray(e)&&(l=(0,o.Gk)(e)[0]),!l)return null;const u=(0,i.cloneVNode)(l,t,s);return u.props=n?(0,r.A)((0,r.A)({},u.props),t):u.props,(0,a.Ay)("object"!==typeof u.props.class,"class must be string"),u}function l(e,t,n){(0,i.render)((0,i.cloneVNode)(e,(0,r.A)({},t)),n)}},5530:function(e,t,n){"use strict";n.d(t,{A:function(){return U},t:function(){return X}});n(30381);function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function s(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}function l(e){return 1==(null!=(t=e)&&"object"==typeof t&&!1===Array.isArray(t))&&"[object Object]"===Object.prototype.toString.call(e);var t}var u=Object.prototype,c=u.toString,d=u.hasOwnProperty,h=/^\s*function (\w+)/;function p(e){var t,n=null!==(t=null==e?void 0:e.type)&&void 0!==t?t:e;if(n){var r=n.toString().match(h);return r?r[1]:""}return""}var f=function(e){var t,n;return!1!==l(e)&&"function"==typeof(t=e.constructor)&&!1!==l(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf")},g=function(e){return e},m=g,v=function(e,t){return d.call(e,t)},y=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},b=Array.isArray||function(e){return"[object Array]"===c.call(e)},_=function(e){return"[object Function]"===c.call(e)},x=function(e){return f(e)&&v(e,"_vueTypes_name")},w=function(e){return f(e)&&(v(e,"type")||["_vueTypes_name","validator","default","required"].some((function(t){return v(e,t)})))};function O(e,t){return Object.defineProperty(e.bind(t),"__original",{value:e})}function S(e,t,n){var r;void 0===n&&(n=!1);var o=!0,i="";r=f(e)?e:{type:e};var a=x(r)?r._vueTypes_name+" - ":"";if(w(r)&&null!==r.type){if(void 0===r.type||!0===r.type)return o;if(!r.required&&void 0===t)return o;b(r.type)?(o=r.type.some((function(e){return!0===S(e,t,!0)})),i=r.type.map((function(e){return p(e)})).join(" or ")):o="Array"===(i=p(r))?b(t):"Object"===i?f(t):"String"===i||"Number"===i||"Boolean"===i||"Function"===i?function(e){if(null==e)return"";var t=e.constructor.toString().match(h);return t?t[1]:""}(t)===i:t instanceof r.type}if(!o){var s=a+'value "'+t+'" should be of type "'+i+'"';return!1===n?(m(s),!1):s}if(v(r,"validator")&&_(r.validator)){var l=m,u=[];if(m=function(e){u.push(e)},o=r.validator(t),m=l,!o){var c=(u.length>1?"* ":"")+u.join("\n* ");return u.length=0,!1===n?(m(c),o):c}}return o}function A(e,t){var n=Object.defineProperties(t,{_vueTypes_name:{value:e,writable:!0},isRequired:{get:function(){return this.required=!0,this}},def:{value:function(e){return void 0!==e||this.default?_(e)||!0===S(this,e,!0)?(this.default=b(e)?function(){return[].concat(e)}:f(e)?function(){return Object.assign({},e)}:e,this):(m(this._vueTypes_name+' - invalid default value: "'+e+'"'),this):this}}}),r=n.validator;return _(r)&&(n.validator=O(r,n)),n}function k(e,t){var n=A(e,t);return Object.defineProperty(n,"validate",{value:function(e){return _(this.validator)&&m(this._vueTypes_name+" - calling .validate() will overwrite the current custom validator function. Validator info:\n"+JSON.stringify(this)),this.validator=O(e,this),this}})}function C(e,t,n){var r,o,i=(r=t,o={},Object.getOwnPropertyNames(r).forEach((function(e){o[e]=Object.getOwnPropertyDescriptor(r,e)})),Object.defineProperties({},o));if(i._vueTypes_name=e,!f(n))return i;var a,l,u=n.validator,c=s(n,["validator"]);if(_(u)){var d=i.validator;d&&(d=null!==(l=(a=d).__original)&&void 0!==l?l:a),i.validator=O(d?function(e){return d.call(this,e)&&u.call(this,e)}:u,i)}return Object.assign(i,c)}function M(e){return e.replace(/^(?!\s*$)/gm," ")}var T=function(){return k("any",{})},P=function(){return k("function",{type:Function})},I=function(){return k("boolean",{type:Boolean})},$=function(){return k("string",{type:String})},E=function(){return k("number",{type:Number})},D=function(){return k("array",{type:Array})},R=function(){return k("object",{type:Object})},N=function(){return A("integer",{type:Number,validator:function(e){return y(e)}})},L=function(){return A("symbol",{validator:function(e){return"symbol"==typeof e}})};function z(e,t){if(void 0===t&&(t="custom validation failed"),"function"!=typeof e)throw new TypeError("[VueTypes error]: You must provide a function as argument");return A(e.name||"<<anonymous function>>",{validator:function(n){var r=e(n);return r||m(this._vueTypes_name+" - "+t),r}})}function V(e){if(!b(e))throw new TypeError("[VueTypes error]: You must provide an array as argument.");var t='oneOf - value should be one of "'+e.join('", "')+'".',n=e.reduce((function(e,t){if(null!=t){var n=t.constructor;-1===e.indexOf(n)&&e.push(n)}return e}),[]);return A("oneOf",{type:n.length>0?n:void 0,validator:function(n){var r=-1!==e.indexOf(n);return r||m(t),r}})}function B(e){if(!b(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");for(var t=!1,n=[],r=0;r<e.length;r+=1){var o=e[r];if(w(o)){if(x(o)&&"oneOf"===o._vueTypes_name){n=n.concat(o.type);continue}if(_(o.validator)&&(t=!0),!0!==o.type&&o.type){n=n.concat(o.type);continue}}n.push(o)}return n=n.filter((function(e,t){return n.indexOf(e)===t})),A("oneOfType",t?{type:n,validator:function(t){var n=[],r=e.some((function(e){var r=S(x(e)&&"oneOf"===e._vueTypes_name?e.type||null:e,t,!0);return"string"==typeof r&&n.push(r),!0===r}));return r||m("oneOfType - provided value does not match any of the "+n.length+" passed-in validators:\n"+M(n.join("\n"))),r}}:{type:n})}function j(e){return A("arrayOf",{type:Array,validator:function(t){var n,r=t.every((function(t){return!0===(n=S(e,t,!0))}));return r||m("arrayOf - value validation error:\n"+M(n)),r}})}function Q(e){return A("instanceOf",{type:e})}function F(e){return A("objectOf",{type:Object,validator:function(t){var n,r=Object.keys(t).every((function(r){return!0===(n=S(e,t[r],!0))}));return r||m("objectOf - value validation error:\n"+M(n)),r}})}function W(e){var t=Object.keys(e),n=t.filter((function(t){var n;return!!(null===(n=e[t])||void 0===n?void 0:n.required)})),r=A("shape",{type:Object,validator:function(r){var o=this;if(!f(r))return!1;var i=Object.keys(r);if(n.length>0&&n.some((function(e){return-1===i.indexOf(e)}))){var a=n.filter((function(e){return-1===i.indexOf(e)}));return m(1===a.length?'shape - required property "'+a[0]+'" is not defined.':'shape - required properties "'+a.join('", "')+'" are not defined.'),!1}return i.every((function(n){if(-1===t.indexOf(n))return!0===o._vueTypes_isLoose||(m('shape - shape definition does not include a "'+n+'" property. Allowed keys: "'+t.join('", "')+'".'),!1);var i=S(e[n],r[n],!0);return"string"==typeof i&&m('shape - "'+n+'" property validation error:\n '+M(i)),!0===i}))}});return Object.defineProperty(r,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(r,"loose",{get:function(){return this._vueTypes_isLoose=!0,this}}),r}var H=function(){function e(){}return e.extend=function(e){var t=this;if(b(e))return e.forEach((function(e){return t.extend(e)})),this;var n=e.name,r=e.validate,o=void 0!==r&&r,i=e.getter,a=void 0!==i&&i,l=s(e,["name","validate","getter"]);if(v(this,n))throw new TypeError('[VueTypes error]: Type "'+n+'" already defined');var u,c=l.type;return x(c)?(delete l.type,Object.defineProperty(this,n,a?{get:function(){return C(n,c,l)}}:{value:function(){var e,t=C(n,c,l);return t.validator&&(t.validator=(e=t.validator).bind.apply(e,[t].concat([].slice.call(arguments)))),t}})):(u=a?{get:function(){var e=Object.assign({},l);return o?k(n,e):A(n,e)},enumerable:!0}:{value:function(){var e,t,r=Object.assign({},l);return e=o?k(n,r):A(n,r),r.validator&&(e.validator=(t=r.validator).bind.apply(t,[e].concat([].slice.call(arguments)))),e},enumerable:!0},Object.defineProperty(this,n,u))},o(e,null,[{key:"any",get:function(){return T()}},{key:"func",get:function(){return P().def(this.defaults.func)}},{key:"bool",get:function(){return I().def(this.defaults.bool)}},{key:"string",get:function(){return $().def(this.defaults.string)}},{key:"number",get:function(){return E().def(this.defaults.number)}},{key:"array",get:function(){return D().def(this.defaults.array)}},{key:"object",get:function(){return R().def(this.defaults.object)}},{key:"integer",get:function(){return N().def(this.defaults.integer)}},{key:"symbol",get:function(){return L()}}]),e}();function Z(e){var t;return void 0===e&&(e={func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0}),(t=function(t){function n(){return t.apply(this,arguments)||this}return a(n,t),o(n,null,[{key:"sensibleDefaults",get:function(){return i({},this.defaults)},set:function(t){this.defaults=!1!==t?i({},!0!==t?t:e):{}}}]),n}(H)).defaults=i({},e),t}H.defaults={},H.custom=z,H.oneOf=V,H.instanceOf=Q,H.oneOfType=B,H.arrayOf=j,H.objectOf=F,H.shape=W,H.utils={validate:function(e,t){return!0===S(t,e,!0)},toType:function(e,t,n){return void 0===n&&(n=!1),n?k(e,t):A(e,t)}};(function(e){function t(){return e.apply(this,arguments)||this}a(t,e)})(Z());const G=Z({func:void 0,bool:void 0,string:void 0,number:void 0,array:void 0,object:void 0,integer:void 0});function X(e){return e.default=void 0,e}G.extend([{name:"looseBool",getter:!0,type:Boolean,default:void 0},{name:"style",getter:!0,type:[String,Object],default:void 0},{name:"VueNode",getter:!0,type:null}]);var U=G},18765:function(e,t,n){"use strict";function r(){}let o=r;t.Ay=o},85545:function(e,t,n){"use strict";n.d(t,{DU:function(){return i}});var r=n(5530),o=n(66041);function i(e){return"danger"===e?{danger:!0}:{type:e}}const a=()=>({prefixCls:String,type:String,htmlType:{type:String,default:"button"},shape:{type:String},size:{type:String},loading:{type:[Boolean,Object],default:()=>!1},disabled:{type:Boolean,default:void 0},ghost:{type:Boolean,default:void 0},block:{type:Boolean,default:void 0},danger:{type:Boolean,default:void 0},icon:r.A.any,href:String,target:String,title:String,onClick:(0,o.$q)(),onMousedown:(0,o.$q)()});t.Ay=a},18918:function(e,t,n){"use strict";n.d(t,{A:function(){return we}});var r=n(69751),o=n(98657),i=n(9274),a=n(3551),s=n(27987),l=n(13389),u=n(16155),c=n(94471);const d=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0}}}}};var h=(0,c.A)("Wave",(e=>[d(e)])),p=n(6340),f=n(66041);function g(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!(t&&t[1]&&t[2]&&t[3])||!(t[1]===t[2]&&t[2]===t[3])}function m(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&g(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}function v(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return m(t)?t:m(n)?n:m(r)?r:null}var y=n(38624);function b(e){return Number.isNaN(e)?0:e}const _=(0,i.defineComponent)({props:{target:(0,f.ge)(),className:String},setup(e){const t=(0,i.shallowRef)(null),[n,r]=(0,p.A)(null),[o,a]=(0,p.A)([]),[s,l]=(0,p.A)(0),[u,c]=(0,p.A)(0),[d,h]=(0,p.A)(0),[f,g]=(0,p.A)(0),[m,_]=(0,p.A)(!1);function x(){const{target:t}=e,n=getComputedStyle(t);r(v(t));const o="static"===n.position,{borderLeftWidth:i,borderTopWidth:s}=n;l(o?t.offsetLeft:b(-parseFloat(i))),c(o?t.offsetTop:b(-parseFloat(s))),h(t.offsetWidth),g(t.offsetHeight);const{borderTopLeftRadius:u,borderTopRightRadius:d,borderBottomLeftRadius:p,borderBottomRightRadius:f}=n;a([u,d,f,p].map((e=>b(parseFloat(e)))))}let w,O,S;const A=()=>{clearTimeout(S),y.A.cancel(O),null===w||void 0===w||w.disconnect()},k=()=>{var e;const n=null===(e=t.value)||void 0===e?void 0:e.parentElement;n&&((0,i.render)(null,n),n.parentElement&&n.parentElement.removeChild(n))};(0,i.onMounted)((()=>{A(),S=setTimeout((()=>{k()}),5e3);const{target:t}=e;t&&(O=(0,y.A)((()=>{x(),_(!0)})),"undefined"!==typeof ResizeObserver&&(w=new ResizeObserver(x),w.observe(t)))})),(0,i.onBeforeUnmount)((()=>{A()}));const C=e=>{"opacity"===e.propertyName&&k()};return()=>{if(!m.value)return null;const r={left:`${s.value}px`,top:`${u.value}px`,width:`${d.value}px`,height:`${f.value}px`,borderRadius:o.value.map((e=>`${e}px`)).join(" ")};return n&&(r["--wave-color"]=n.value),(0,i.createVNode)(i.Transition,{appear:!0,name:"wave-motion",appearFromClass:"wave-motion-appear",appearActiveClass:"wave-motion-appear",appearToClass:"wave-motion-appear wave-motion-appear-active"},{default:()=>[(0,i.createVNode)("div",{ref:t,class:e.className,style:r,onTransitionend:C},null)]})}}});function x(e,t){const n=document.createElement("div");n.style.position="absolute",n.style.left="0px",n.style.top="0px",null===e||void 0===e||e.insertBefore(n,null===e||void 0===e?void 0:e.firstChild),(0,i.render)((0,i.createVNode)(_,{target:e,className:t},null),n)}var w=x;function O(e,t,n){function r(){var r;const o=(0,u.oK)(e);!(null===(r=null===n||void 0===n?void 0:n.value)||void 0===r?void 0:r.disabled)&&o&&w(o,t.value)}return r}var S=(0,i.defineComponent)({compatConfig:{MODE:3},name:"Wave",props:{disabled:Boolean},setup(e,t){let{slots:n}=t;const r=(0,i.getCurrentInstance)(),{prefixCls:o,wave:c}=(0,a.A)("wave",e),[,d]=h(o),p=O(r,(0,i.computed)((()=>(0,l.A)(o.value,d.value))),c);let f;const g=()=>{const e=(0,u.oK)(r);e.removeEventListener("click",f,!0)};return(0,i.onMounted)((()=>{(0,i.watch)((()=>e.disabled),(()=>{g(),(0,i.nextTick)((()=>{const t=(0,u.oK)(r);null===t||void 0===t||t.removeEventListener("click",f,!0),t&&1===t.nodeType&&!e.disabled&&(f=e=>{"INPUT"===e.target.tagName||!(0,s.A)(e.target)||!t.getAttribute||t.getAttribute("disabled")||t.disabled||t.className.includes("disabled")||t.className.includes("-leave")||p()},t.addEventListener("click",f,!0))}))}),{immediate:!0,flush:"post"})})),(0,i.onBeforeUnmount)((()=>{g()})),()=>{var e;const t=null===(e=n.default)||void 0===e?void 0:e.call(n)[0];return t}}}),A=n(85545),k=n(47960),C=n(99415),M=n(37205),T=n(2167),P=n(41038);const I=e=>{e&&(e.style.width="0px",e.style.opacity="0",e.style.transform="scale(0)")},$=e=>{(0,i.nextTick)((()=>{e&&(e.style.width=`${e.scrollWidth}px`,e.style.opacity="1",e.style.transform="scale(1)")}))},E=e=>{e&&e.style&&(e.style.width=null,e.style.opacity=null,e.style.transform=null)};var D=(0,i.defineComponent)({compatConfig:{MODE:3},name:"LoadingIcon",props:{prefixCls:String,loading:[Boolean,Object],existIcon:Boolean},setup(e){return()=>{const{existIcon:t,prefixCls:n,loading:r}=e;if(t)return(0,i.createVNode)("span",{class:`${n}-loading-icon`},[(0,i.createVNode)(T.A,null,null)]);const o=!!r;return(0,i.createVNode)(P.Ay,{name:`${n}-loading-icon-motion`,onBeforeEnter:I,onEnter:$,onAfterEnter:E,onBeforeLeave:$,onLeave:e=>{setTimeout((()=>{I(e)}))},onAfterLeave:E},{default:()=>[o?(0,i.createVNode)("span",{class:`${n}-loading-icon`},[(0,i.createVNode)(T.A,null,null)]):null]})}}}),R=n(96704);const N=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),L=e=>{const{componentCls:t,fontSize:n,lineWidth:r,colorPrimaryHover:o,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-r,[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,["&:hover,\n &:focus,\n &:active"]:{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},N(`${t}-primary`,o),N(`${t}-danger`,i)]}};var z=L,V=n(69729),B=n(31222);function j(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function Q(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function F(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:(0,o.A)((0,o.A)({},j(e,t)),Q(e.componentCls,t))}}const W=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:400,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:e.lineHeight,color:e.colorText,"> span":{display:"inline-block"},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},"> a":{color:"currentColor"},"&:not(:disabled)":(0,o.A)({},(0,V.K8)(e)),[`&-icon-only${t}-compact-item`]:{flex:"none"},[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:e.lineWidth,height:`calc(100% + ${2*e.lineWidth}px)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:`calc(100% + ${2*e.lineWidth}px)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},H=(e,t)=>({"&:not(:disabled)":{"&:hover":e,"&:active":t}}),Z=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),G=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),X=e=>({cursor:"not-allowed",borderColor:e.colorBorder,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),U=(e,t,n,r,i,a,s)=>({[`&${e}-background-ghost`]:(0,o.A)((0,o.A)({color:t||void 0,backgroundColor:"transparent",borderColor:n||void 0,boxShadow:"none"},H((0,o.A)({backgroundColor:"transparent"},a),(0,o.A)({backgroundColor:"transparent"},s))),{"&:disabled":{cursor:"not-allowed",color:r||void 0,borderColor:i||void 0}})}),Y=e=>({"&:disabled":(0,o.A)({},X(e))}),q=e=>(0,o.A)({},Y(e)),K=e=>({"&:disabled":{cursor:"not-allowed",color:e.colorTextDisabled}}),J=e=>(0,o.A)((0,o.A)((0,o.A)((0,o.A)((0,o.A)({},q(e)),{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`}),H({color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),U(e.componentCls,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:(0,o.A)((0,o.A)((0,o.A)({color:e.colorError,borderColor:e.colorError},H({color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),U(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),Y(e))}),ee=e=>(0,o.A)((0,o.A)((0,o.A)((0,o.A)((0,o.A)({},q(e)),{color:e.colorTextLightSolid,backgroundColor:e.colorPrimary,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`}),H({color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),U(e.componentCls,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:(0,o.A)((0,o.A)((0,o.A)({backgroundColor:e.colorError,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`},H({backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),U(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Y(e))}),te=e=>(0,o.A)((0,o.A)({},J(e)),{borderStyle:"dashed"}),ne=e=>(0,o.A)((0,o.A)((0,o.A)({color:e.colorLink},H({color:e.colorLinkHover},{color:e.colorLinkActive})),K(e)),{[`&${e.componentCls}-dangerous`]:(0,o.A)((0,o.A)({color:e.colorError},H({color:e.colorErrorHover},{color:e.colorErrorActive})),K(e))}),re=e=>(0,o.A)((0,o.A)((0,o.A)({},H({color:e.colorText,backgroundColor:e.colorBgTextHover},{color:e.colorText,backgroundColor:e.colorBgTextActive})),K(e)),{[`&${e.componentCls}-dangerous`]:(0,o.A)((0,o.A)({color:e.colorError},K(e)),H({color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),oe=e=>(0,o.A)((0,o.A)({},X(e)),{[`&${e.componentCls}:hover`]:(0,o.A)({},X(e))}),ie=e=>{const{componentCls:t}=e;return{[`${t}-default`]:J(e),[`${t}-primary`]:ee(e),[`${t}-dashed`]:te(e),[`${t}-link`]:ne(e),[`${t}-text`]:re(e),[`${t}-disabled`]:oe(e)}},ae=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{componentCls:n,iconCls:r,controlHeight:o,fontSize:i,lineHeight:a,lineWidth:s,borderRadius:l,buttonPaddingHorizontal:u}=e,c=Math.max(0,(o-i*a)/2-s),d=u-s,h=`${n}-icon-only`;return[{[`${n}${t}`]:{fontSize:i,height:o,padding:`${c}px ${d}px`,borderRadius:l,[`&${h}`]:{width:o,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},"> span":{transform:"scale(1.143)"}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`&:not(${h}) ${n}-loading-icon > ${r}`]:{marginInlineEnd:e.marginXS}}},{[`${n}${n}-circle${t}`]:Z(e)},{[`${n}${n}-round${t}`]:G(e)}]},se=e=>ae(e),le=e=>{const t=(0,R.h1)(e,{controlHeight:e.controlHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:8,borderRadius:e.borderRadiusSM});return ae(t,`${e.componentCls}-sm`)},ue=e=>{const t=(0,R.h1)(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG});return ae(t,`${e.componentCls}-lg`)},ce=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}};var de=(0,c.A)("Button",(e=>{const{controlTmpOutline:t,paddingContentHorizontal:n}=e,r=(0,R.h1)(e,{colorOutlineDefault:t,buttonPaddingHorizontal:n});return[W(r),le(r),se(r),ue(r),ce(r),ie(r),z(r),(0,B.G)(e,{focus:!1}),F(e)]})),he=n(70213),pe=n(2126);const fe=()=>({prefixCls:String,size:{type:String}}),ge=(0,pe.A)();var me=(0,i.defineComponent)({compatConfig:{MODE:3},name:"AButtonGroup",props:fe(),setup(e,t){let{slots:n}=t;const{prefixCls:r,direction:o}=(0,a.A)("btn-group",e),[,,s]=(0,he.rd)();ge.useProvide((0,i.reactive)({size:(0,i.computed)((()=>e.size))}));const l=(0,i.computed)((()=>{const{size:t}=e;let n="";switch(t){case"large":n="lg";break;case"small":n="sm";break;case"middle":case void 0:break;default:(0,M.A)(!t,"Button.Group","Invalid prop `size`.")}return{[`${r.value}`]:!0,[`${r.value}-${n}`]:n,[`${r.value}-rtl`]:"rtl"===o.value,[s.value]:!0}}));return()=>{var e;return(0,i.createVNode)("div",{class:l.value},[(0,u.MI)(null===(e=n.default)||void 0===e?void 0:e.call(n))])}}}),ve=n(45507);const ye=/^[\u4e00-\u9fa5]{2}$/,be=ye.test.bind(ye);function _e(e){return"text"===e||"link"===e}var xe=(0,i.defineComponent)({compatConfig:{MODE:3},name:"AButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:(0,k.A)((0,A.Ay)(),{type:"default"}),slots:Object,setup(e,t){let{slots:n,attrs:s,emit:l,expose:c}=t;const{prefixCls:d,autoInsertSpaceInButton:h,direction:p,size:f}=(0,a.A)("btn",e),[g,m]=de(d),v=ge.useInject(),y=(0,C.p)(),b=(0,i.computed)((()=>{var t;return null!==(t=e.disabled)&&void 0!==t?t:y.value})),_=(0,i.shallowRef)(null),x=(0,i.shallowRef)(void 0);let w=!1;const O=(0,i.shallowRef)(!1),A=(0,i.shallowRef)(!1),k=(0,i.computed)((()=>!1!==h.value)),{compactSize:T,compactItemClassnames:P}=(0,ve.RQ)(d,p),I=(0,i.computed)((()=>"object"===typeof e.loading&&e.loading.delay?e.loading.delay||!0:!!e.loading));(0,i.watch)(I,(e=>{clearTimeout(x.value),"number"===typeof I.value?x.value=setTimeout((()=>{O.value=e}),I.value):O.value=e}),{immediate:!0});const $=(0,i.computed)((()=>{const{type:t,shape:n="default",ghost:r,block:o,danger:i}=e,a=d.value,s={large:"lg",small:"sm",middle:void 0},l=T.value||(null===v||void 0===v?void 0:v.size)||f.value,u=l&&s[l]||"";return[P.value,{[m.value]:!0,[`${a}`]:!0,[`${a}-${n}`]:"default"!==n&&n,[`${a}-${t}`]:t,[`${a}-${u}`]:u,[`${a}-loading`]:O.value,[`${a}-background-ghost`]:r&&!_e(t),[`${a}-two-chinese-chars`]:A.value&&k.value,[`${a}-block`]:o,[`${a}-dangerous`]:!!i,[`${a}-rtl`]:"rtl"===p.value}]})),E=()=>{const e=_.value;if(!e||!1===h.value)return;const t=e.textContent;w&&be(t)?A.value||(A.value=!0):A.value&&(A.value=!1)},R=e=>{O.value||b.value?e.preventDefault():l("click",e)},N=e=>{l("mousedown",e)},L=(e,t)=>{const n=t?" ":"";if(e.type===i.Text){let t=e.children.trim();return be(t)&&(t=t.split("").join(n)),(0,i.createVNode)("span",null,[t])}return e};(0,i.watchEffect)((()=>{(0,M.A)(!(e.ghost&&_e(e.type)),"Button","`link` or `text` button can't be a `ghost` button.")})),(0,i.onMounted)(E),(0,i.onUpdated)(E),(0,i.onBeforeUnmount)((()=>{x.value&&clearTimeout(x.value)}));const z=()=>{var e;null===(e=_.value)||void 0===e||e.focus()},V=()=>{var e;null===(e=_.value)||void 0===e||e.blur()};return c({focus:z,blur:V}),()=>{var t,a;const{icon:l=(null===(t=n.icon)||void 0===t?void 0:t.call(n))}=e,c=(0,u.MI)(null===(a=n.default)||void 0===a?void 0:a.call(n));w=1===c.length&&!l&&!_e(e.type);const{type:h,htmlType:p,href:f,title:m,target:v}=e,y=O.value?"loading":l,x=(0,o.A)((0,o.A)({},s),{title:m,disabled:b.value,class:[$.value,s.class,{[`${d.value}-icon-only`]:0===c.length&&!!y}],onClick:R,onMousedown:N});b.value||delete x.disabled;const A=l&&!O.value?l:(0,i.createVNode)(D,{existIcon:!!l,prefixCls:d.value,loading:!!O.value},null),C=c.map((e=>L(e,w&&k.value)));if(void 0!==f)return g((0,i.createVNode)("a",(0,r.A)((0,r.A)({},x),{},{href:f,target:v,ref:_}),[A,C]));let M=(0,i.createVNode)("button",(0,r.A)((0,r.A)({},x),{},{ref:_,type:p}),[A,C]);if(!_e(h)){const e=function(){return M}();M=(0,i.createVNode)(S,{ref:"wave",disabled:!!O.value},{default:()=>[e]})}return g(M)}}});xe.Group=me,xe.install=function(e){return e.component(xe.name,xe),e.component(me.name,me),e};var we=xe},99415:function(e,t,n){"use strict";n.d(t,{Z:function(){return a},p:function(){return i}});var r=n(9274);const o=Symbol("DisabledContextKey"),i=()=>(0,r.inject)(o,(0,r.ref)(void 0)),a=e=>{const t=i();return(0,r.provide)(o,(0,r.computed)((()=>{var n;return null!==(n=e.value)&&void 0!==n?n:t.value}))),e}},82448:function(e,t,n){"use strict";n.d(t,{A:function(){return a},E:function(){return i}});var r=n(9274);const o=Symbol("SizeContextKey"),i=()=>(0,r.inject)(o,(0,r.ref)(void 0)),a=e=>{const t=i();return(0,r.provide)(o,(0,r.computed)((()=>e.value||t.value))),e}},90551:function(e,t,n){"use strict";n.d(t,{AR:function(){return s},GY:function(){return p},M7:function(){return l},OQ:function(){return h},VG:function(){return d},pM:function(){return i},yA:function(){return u},zL:function(){return c}});var r=n(9274),o=n(66041);const i="anticon",a=Symbol("GlobalFormContextKey"),s=e=>{(0,r.provide)(a,e)},l=()=>(0,r.inject)(a,{validateMessages:(0,r.computed)((()=>{}))}),u=(Symbol("GlobalConfigContextKey"),()=>({iconPrefixCls:String,getTargetContainer:{type:Function},getPopupContainer:{type:Function},prefixCls:String,getPrefixCls:{type:Function},renderEmpty:{type:Function},transformCellText:{type:Function},csp:(0,o.ge)(),input:(0,o.ge)(),autoInsertSpaceInButton:{type:Boolean,default:void 0},locale:(0,o.ge)(),pageHeader:(0,o.ge)(),componentSize:{type:String},componentDisabled:{type:Boolean,default:void 0},direction:{type:String,default:"ltr"},space:(0,o.ge)(),virtual:{type:Boolean,default:void 0},dropdownMatchSelectWidth:{type:[Number,Boolean],default:!0},form:(0,o.ge)(),pagination:(0,o.ge)(),theme:(0,o.ge)(),select:(0,o.ge)(),wave:(0,o.ge)()})),c=Symbol("configProvider"),d={getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:(0,r.computed)((()=>i)),getPopupContainer:(0,r.computed)((()=>()=>document.body)),direction:(0,r.computed)((()=>"ltr"))},h=()=>(0,r.inject)(c,d),p=e=>(0,r.provide)(c,e)},3551:function(e,t,n){"use strict";var r=n(98657),o=n(9274),i=n(90551),a=n(99415),s=n(40493),l=n(82448);t.A=(e,t)=>{const n=(0,l.E)(),u=(0,a.p)(),c=(0,o.inject)(i.zL,(0,r.A)((0,r.A)({},i.VG),{renderEmpty:e=>(0,o.h)(s.x,{componentName:e})})),d=(0,o.computed)((()=>c.getPrefixCls(e,t.prefixCls))),h=(0,o.computed)((()=>{var e,n;return null!==(e=t.direction)&&void 0!==e?e:null===(n=c.direction)||void 0===n?void 0:n.value})),p=(0,o.computed)((()=>{var e;return null!==(e=t.iconPrefixCls)&&void 0!==e?e:c.iconPrefixCls.value})),f=(0,o.computed)((()=>c.getPrefixCls())),g=(0,o.computed)((()=>{var e;return null===(e=c.autoInsertSpaceInButton)||void 0===e?void 0:e.value})),m=c.renderEmpty,v=c.space,y=c.pageHeader,b=c.form,_=(0,o.computed)((()=>{var e,n;return null!==(e=t.getTargetContainer)&&void 0!==e?e:null===(n=c.getTargetContainer)||void 0===n?void 0:n.value})),x=(0,o.computed)((()=>{var e,n,r;return null!==(n=null!==(e=t.getContainer)&&void 0!==e?e:t.getPopupContainer)&&void 0!==n?n:null===(r=c.getPopupContainer)||void 0===r?void 0:r.value})),w=(0,o.computed)((()=>{var e,n;return null!==(e=t.dropdownMatchSelectWidth)&&void 0!==e?e:null===(n=c.dropdownMatchSelectWidth)||void 0===n?void 0:n.value})),O=(0,o.computed)((()=>{var e;return(void 0===t.virtual?!1!==(null===(e=c.virtual)||void 0===e?void 0:e.value):!1!==t.virtual)&&!1!==w.value})),S=(0,o.computed)((()=>t.size||n.value)),A=(0,o.computed)((()=>{var e,n,r;return null!==(e=t.autocomplete)&&void 0!==e?e:null===(r=null===(n=c.input)||void 0===n?void 0:n.value)||void 0===r?void 0:r.autocomplete})),k=(0,o.computed)((()=>{var e;return null!==(e=t.disabled)&&void 0!==e?e:u.value})),C=(0,o.computed)((()=>{var e;return null!==(e=t.csp)&&void 0!==e?e:c.csp})),M=(0,o.computed)((()=>{var e,n;return null!==(e=t.wave)&&void 0!==e?e:null===(n=c.wave)||void 0===n?void 0:n.value}));return{configProvider:c,prefixCls:d,direction:h,size:S,getTargetContainer:_,getPopupContainer:x,space:v,pageHeader:y,form:b,autoInsertSpaceInButton:g,renderEmpty:m,virtual:O,dropdownMatchSelectWidth:w,rootPrefixCls:f,getPrefixCls:c.getPrefixCls,autocomplete:A,csp:C,iconPrefixCls:p,disabled:k,select:c.select,wave:M}}},95835:function(e,t,n){"use strict";n.d(t,{Ay:function(){return ot},cr:function(){return nt},Vm:function(){return Je}});var r=n(98657),o=n(9274),i=n(40493),a=n(19559),s=n(18765),l=n(66041);const u="internalMark",c=(0,o.defineComponent)({compatConfig:{MODE:3},name:"ALocaleProvider",props:{locale:{type:Object},ANT_MARK__:String},setup(e,t){let{slots:n}=t;(0,s.Ay)(e.ANT_MARK__===u,"LocaleProvider","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead");const i=(0,o.reactive)({antLocale:(0,r.A)((0,r.A)({},e.locale),{exist:!0}),ANT_MARK__:u});return(0,o.provide)("localeData",i),(0,o.watch)((()=>e.locale),(e=>{(0,a.L)(e&&e.Modal),i.antLocale=(0,r.A)((0,r.A)({},e),{exist:!0})}),{immediate:!0}),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}});c.install=function(e){return e.component(c.name,c),e};var d=(0,l.GU)(c),h=d,p=n(97605),f=n(33163),g=n(31716),m={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"},v=m,y=n(29847);function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){_(e,t,n[t])}))}return e}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var x=function(e,t){var n=b({},e,t.attrs);return(0,o.createVNode)(y.A,b({},n,{icon:v}),null)};x.displayName="CheckCircleOutlined",x.inheritAttrs=!1;var w=x,O=n(7649),S={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"},A=S;function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){C(e,t,n[t])}))}return e}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var M=function(e,t){var n=k({},e,t.attrs);return(0,o.createVNode)(y.A,k({},n,{icon:A}),null)};M.displayName="CloseCircleOutlined",M.inheritAttrs=!1;var T=M,P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},I=P;function $(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){E(e,t,n[t])}))}return e}function E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var D=function(e,t){var n=$({},e,t.attrs);return(0,o.createVNode)(y.A,$({},n,{icon:I}),null)};D.displayName="ExclamationCircleOutlined",D.inheritAttrs=!1;var R=D,N=n(23273),L=n(92389),z=n(13389),V=n(97732),B=n(94471),j=n(96704);const Q=e=>{const{componentCls:t,width:n,notificationMarginEdge:r}=e,o=new V.A("antNotificationTopFadeIn",{"0%":{marginTop:"-100%",opacity:0},"100%":{marginTop:0,opacity:1}}),i=new V.A("antNotificationBottomFadeIn",{"0%":{marginBottom:"-100%",opacity:0},"100%":{marginBottom:0,opacity:1}}),a=new V.A("antNotificationLeftFadeIn",{"0%":{right:{_skip_check_:!0,value:n},opacity:0},"100%":{right:{_skip_check_:!0,value:0},opacity:1}});return{[`&${t}-top, &${t}-bottom`]:{marginInline:0},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:o}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginInlineEnd:0,marginInlineStart:r,[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}}}};var F=Q,W=n(69729);const H=e=>{const{iconCls:t,componentCls:n,boxShadowSecondary:o,fontSizeLG:i,notificationMarginBottom:a,borderRadiusLG:s,colorSuccess:l,colorInfo:u,colorWarning:c,colorError:d,colorTextHeading:h,notificationBg:p,notificationPadding:f,notificationMarginEdge:g,motionDurationMid:m,motionEaseInOut:v,fontSize:y,lineHeight:b,width:_,notificationIconSize:x}=e,w=`${n}-notice`,O=new V.A("antNotificationFadeIn",{"0%":{left:{_skip_check_:!0,value:_},opacity:0},"100%":{left:{_skip_check_:!0,value:0},opacity:1}}),S=new V.A("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:a,opacity:1},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[n]:(0,r.A)((0,r.A)((0,r.A)((0,r.A)({},(0,W.dF)(e)),{position:"fixed",zIndex:e.zIndexPopup,marginInlineEnd:g,[`${n}-hook-holder`]:{position:"relative"},[`&${n}-top, &${n}-bottom`]:{[`${n}-notice`]:{marginInline:"auto auto"}},[`&${n}-topLeft, &${n}-bottomLeft`]:{[`${n}-notice`]:{marginInlineEnd:"auto",marginInlineStart:0}},[`${n}-fade-enter, ${n}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:v,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${n}-fade-leave`]:{animationTimingFunction:v,animationFillMode:"both",animationDuration:m,animationPlayState:"paused"},[`${n}-fade-enter${n}-fade-enter-active, ${n}-fade-appear${n}-fade-appear-active`]:{animationName:O,animationPlayState:"running"},[`${n}-fade-leave${n}-fade-leave-active`]:{animationName:S,animationPlayState:"running"}}),F(e)),{"&-rtl":{direction:"rtl",[`${n}-notice-btn`]:{float:"left"}}})},{[w]:{position:"relative",width:_,maxWidth:`calc(100vw - ${2*g}px)`,marginBottom:a,marginInlineStart:"auto",padding:f,overflow:"hidden",lineHeight:b,wordWrap:"break-word",background:p,borderRadius:s,boxShadow:o,[`${n}-close-icon`]:{fontSize:y,cursor:"pointer"},[`${w}-message`]:{marginBottom:e.marginXS,color:h,fontSize:i,lineHeight:e.lineHeightLG},[`${w}-description`]:{fontSize:y},[`&${w}-closable ${w}-message`]:{paddingInlineEnd:e.paddingLG},[`${w}-with-icon ${w}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.marginSM+x,fontSize:i},[`${w}-with-icon ${w}-description`]:{marginInlineStart:e.marginSM+x,fontSize:y},[`${w}-icon`]:{position:"absolute",fontSize:x,lineHeight:0,[`&-success${t}`]:{color:l},[`&-info${t}`]:{color:u},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:d}},[`${w}-close`]:{position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.wireframe?"transparent":e.colorFillContent}},[`${w}-btn`]:{float:"right",marginTop:e.marginSM}}},{[`${w}-pure-panel`]:{margin:0}}]};var Z=(0,B.A)("Notification",(e=>{const t=e.paddingMD,n=e.paddingLG,r=(0,j.h1)(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`,notificationMarginBottom:e.margin,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationIconSize:e.fontSizeLG*e.lineHeightLG,notificationCloseButtonSize:.55*e.controlHeightLG});return[H(r)]}),(e=>({zIndexPopup:e.zIndexPopupBase+50,width:384}))),G=n(69751),X=n(39375),U=n(3551),Y=n(36657),q=n(2167),K=n(51911),J=n(82339),ee=n(46299),te=n(33684);function ne(e,t){return t||(0,o.createVNode)("span",{class:`${e}-close-x`},[(0,o.createVNode)(N.A,{class:`${e}-close-icon`},null)])}(0,o.createVNode)(te.A,null,null),(0,o.createVNode)(ee.A,null,null),(0,o.createVNode)(J.A,null,null),(0,o.createVNode)(K.A,null,null),(0,o.createVNode)(q.A,null,null);const re={success:ee.A,info:te.A,error:J.A,warning:K.A};function oe(e){let{prefixCls:t,icon:n,type:r,message:i,description:a,btn:s}=e,l=null;if(n)l=(0,o.createVNode)("span",{class:`${t}-icon`},[(0,L.BM)(n)]);else if(r){const e=re[r];l=(0,o.createVNode)(e,{class:`${t}-icon ${t}-icon-${r}`},null)}return(0,o.createVNode)("div",{class:(0,z.A)({[`${t}-with-icon`]:l}),role:"alert"},[l,(0,o.createVNode)("div",{class:`${t}-message`},[i]),(0,o.createVNode)("div",{class:`${t}-description`},[a]),s&&(0,o.createVNode)("div",{class:`${t}-btn`},[s])])}(0,o.defineComponent)({name:"PurePanel",inheritAttrs:!1,props:["prefixCls","icon","type","message","description","btn","closeIcon"],setup(e){const{getPrefixCls:t}=(0,U.A)("notification",e),n=(0,o.computed)((()=>e.prefixCls||t("notification"))),r=(0,o.computed)((()=>`${n.value}-notice`)),[,i]=Z(n);return()=>(0,o.createVNode)(Y.A,(0,G.A)((0,G.A)({},e),{},{prefixCls:n.value,class:(0,z.A)(i.value,`${r.value}-pure-panel`),noticeKey:"pure",duration:null,closable:e.closable,closeIcon:ne(n.value,e.closeIcon)}),{default:()=>[(0,o.createVNode)(oe,{prefixCls:r.value,icon:e.icon,type:e.type,message:e.message,description:e.description,btn:e.btn},null)]})}});function ie(e,t,n){let r;switch(t="number"===typeof t?`${t}px`:t,n="number"===typeof n?`${n}px`:n,e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n};break}return r}function ae(e){return{name:`${e}-fade`}}var se=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const le=24,ue=4.5,ce=(0,o.defineComponent)({name:"Holder",inheritAttrs:!1,props:["prefixCls","class","type","icon","content","onAllRemoved"],setup(e,t){let{expose:n}=t;const{getPrefixCls:i,getPopupContainer:a}=(0,U.A)("notification",e),s=(0,o.computed)((()=>e.prefixCls||i("notification"))),l=t=>{var n,r;return ie(t,null!==(n=e.top)&&void 0!==n?n:le,null!==(r=e.bottom)&&void 0!==r?r:le)},[,u]=Z(s),c=()=>(0,z.A)(u.value,{[`${s.value}-rtl`]:e.rtl}),d=()=>ae(s.value),[h,p]=(0,X.A)({prefixCls:s.value,getStyles:l,getClassName:c,motion:d,closable:!0,closeIcon:ne(s.value),duration:ue,getContainer:()=>{var t,n;return(null===(t=e.getPopupContainer)||void 0===t?void 0:t.call(e))||(null===(n=a.value)||void 0===n?void 0:n.call(a))||document.body},maxCount:e.maxCount,hashId:u.value,onAllRemoved:e.onAllRemoved});return n((0,r.A)((0,r.A)({},h),{prefixCls:s.value,hashId:u})),p}});function de(e){const t=(0,o.shallowRef)(null),n=Symbol("notificationHolderKey"),i=e=>{if(!t.value)return;const{open:n,prefixCls:i,hashId:a}=t.value,s=`${i}-notice`,{message:l,description:u,icon:c,type:d,btn:h,class:p}=e,f=se(e,["message","description","icon","type","btn","class"]);return n((0,r.A)((0,r.A)({placement:"topRight"},f),{content:()=>(0,o.createVNode)(oe,{prefixCls:s,icon:"function"===typeof c?c():c,type:d,message:"function"===typeof l?l():l,description:"function"===typeof u?u():u,btn:"function"===typeof h?h():h},null),class:(0,z.A)(d&&`${s}-${d}`,a,p)}))},a=e=>{var n,r;void 0!==e?null===(n=t.value)||void 0===n||n.close(e):null===(r=t.value)||void 0===r||r.destroy()},s={open:i,destroy:a},l=["success","info","warning","error"];return l.forEach((e=>{s[e]=t=>i((0,r.A)((0,r.A)({},t),{type:e}))})),[s,()=>(0,o.createVNode)(ce,(0,G.A)((0,G.A)({key:n},e),{},{ref:t}),null)]}function he(e){return de(e)}const pe={};let fe,ge=4.5,me="24px",ve="24px",ye="",be="topRight",_e=()=>document.body,xe=null,we=!1;function Oe(e){const{duration:t,placement:n,bottom:r,top:o,getContainer:i,closeIcon:a,prefixCls:s}=e;void 0!==s&&(ye=s),void 0!==t&&(ge=t),void 0!==n&&(be=n),void 0!==r&&(ve="number"===typeof r?`${r}px`:r),void 0!==o&&(me="number"===typeof o?`${o}px`:o),void 0!==i&&(_e=i),void 0!==a&&(xe=a),void 0!==e.rtl&&(we=e.rtl),void 0!==e.maxCount&&(fe=e.maxCount)}function Se(e,t){let{prefixCls:n,placement:r=be,getContainer:i=_e,top:a,bottom:s,closeIcon:l=xe,appContext:u}=e;const{getPrefixCls:c}=nt(),d=c("notification",n||ye),h=`${d}-${r}-${we}`,p=pe[h];if(p)return void Promise.resolve(p).then((e=>{t(e)}));const f=(0,z.A)(`${d}-${r}`,{[`${d}-rtl`]:!0===we});g.A.newInstance({name:"notification",prefixCls:n||ye,useStyle:Z,class:f,style:ie(r,null!==a&&void 0!==a?a:me,null!==s&&void 0!==s?s:ve),appContext:u,getContainer:i,closeIcon:e=>{let{prefixCls:t}=e;const n=(0,o.createVNode)("span",{class:`${t}-close-x`},[(0,L.BM)(l,{},(0,o.createVNode)(N.A,{class:`${t}-close-icon`},null))]);return n},maxCount:fe,hasTransitionName:!0},(e=>{pe[h]=e,t(e)}))}const Ae={success:w,info:O.A,error:T,warning:R};function ke(e){const{icon:t,type:n,description:r,message:i,btn:a}=e,s=void 0===e.duration?ge:e.duration;Se(e,(l=>{l.notice({content:e=>{let{prefixCls:s}=e;const l=`${s}-notice`;let u=null;if(t)u=()=>(0,o.createVNode)("span",{class:`${l}-icon`},[(0,L.BM)(t)]);else if(n){const e=Ae[n];u=()=>(0,o.createVNode)(e,{class:`${l}-icon ${l}-icon-${n}`},null)}return(0,o.createVNode)("div",{class:u?`${l}-with-icon`:""},[u&&u(),(0,o.createVNode)("div",{class:`${l}-message`},[!r&&u?(0,o.createVNode)("span",{class:`${l}-message-single-line-auto-margin`},null):null,(0,L.BM)(i)]),(0,o.createVNode)("div",{class:`${l}-description`},[(0,L.BM)(r)]),a?(0,o.createVNode)("span",{class:`${l}-btn`},[(0,L.BM)(a)]):null])},duration:s,closable:!0,onClose:e.onClose,onClick:e.onClick,key:e.key,style:e.style||{},class:e.class})}))}const Ce={open:ke,close(e){Object.keys(pe).forEach((t=>Promise.resolve(pe[t]).then((t=>{t.removeNotice(e)}))))},config:Oe,destroy(){Object.keys(pe).forEach((e=>{Promise.resolve(pe[e]).then((e=>{e.destroy()})),delete pe[e]}))}},Me=["success","info","warning","error"];Me.forEach((e=>{Ce[e]=t=>Ce.open((0,r.A)((0,r.A)({},t),{type:e}))})),Ce.warn=Ce.warning,Ce.useNotification=he;var Te=Ce,Pe=n(78089),Ie=n(30185),$e=n(92337),Ee=n(58590);const De=`-ant-${Date.now()}-${Math.random()}`;function Re(e,t){const n={},r=(e,t)=>{let n=e.clone();return n=(null===t||void 0===t?void 0:t(n))||n,n.toRgbString()},o=(e,t)=>{const o=new Pe.q(e),i=(0,Ie.cM)(o.toRgbString());n[`${t}-color`]=r(o),n[`${t}-color-disabled`]=i[1],n[`${t}-color-hover`]=i[4],n[`${t}-color-active`]=i[6],n[`${t}-color-outline`]=o.clone().setAlpha(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=i[0],n[`${t}-color-deprecated-border`]=i[2]};if(t.primaryColor){o(t.primaryColor,"primary");const e=new Pe.q(t.primaryColor),i=(0,Ie.cM)(e.toRgbString());i.forEach(((e,t)=>{n[`primary-${t+1}`]=e})),n["primary-color-deprecated-l-35"]=r(e,(e=>e.lighten(35))),n["primary-color-deprecated-l-20"]=r(e,(e=>e.lighten(20))),n["primary-color-deprecated-t-20"]=r(e,(e=>e.tint(20))),n["primary-color-deprecated-t-50"]=r(e,(e=>e.tint(50))),n["primary-color-deprecated-f-12"]=r(e,(e=>e.setAlpha(.12*e.getAlpha())));const a=new Pe.q(i[0]);n["primary-color-active-deprecated-f-30"]=r(a,(e=>e.setAlpha(.3*e.getAlpha()))),n["primary-color-active-deprecated-d-02"]=r(a,(e=>e.darken(2)))}t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info");const i=Object.keys(n).map((t=>`--${e}-${t}: ${n[t]};`));return`\n :root {\n ${i.join("\n")}\n }\n `.trim()}function Ne(e,t){const n=Re(e,t);(0,Ee.A)()?(0,$e.BD)(n,`${De}-dynamic-theme`):(0,s.Ay)(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}var Le=n(24619),ze=n(13234),Ve=n(70213);const Be=e=>{const[t,n]=(0,Ve.rd)();return(0,ze.Ay)((0,o.computed)((()=>({theme:t.value,token:n.value,hashId:"",path:["ant-design-icons",e.value]}))),(()=>[{[`.${e.value}`]:(0,r.A)((0,r.A)({},(0,W.Nk)()),{[`.${e.value} .${e.value}-icon`]:{display:"block"}})}]))};var je=Be;function Qe(e,t){const n=(0,o.computed)((()=>(null===e||void 0===e?void 0:e.value)||{})),i=(0,o.computed)((()=>!1!==n.value.inherit&&(null===t||void 0===t?void 0:t.value)?t.value:Ve.sb)),a=(0,o.computed)((()=>{if(!(null===e||void 0===e?void 0:e.value))return null===t||void 0===t?void 0:t.value;const o=(0,r.A)({},i.value.components);return Object.keys(e.value.components||{}).forEach((t=>{o[t]=(0,r.A)((0,r.A)({},o[t]),e.value.components[t])})),(0,r.A)((0,r.A)((0,r.A)({},i.value),n.value),{token:(0,r.A)((0,r.A)({},i.value.token),n.value.token),components:o})}));return a}var Fe=n(34643),We=n(90551),He=n(82448),Ze=n(99415),Ge=n(40730),Xe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Ue="ant";function Ye(){return Je.prefixCls||Ue}function qe(){return Je.iconPrefixCls||We.pM}const Ke=(0,o.reactive)({}),Je=(0,o.reactive)({});let et;(0,o.watchEffect)((()=>{(0,r.A)(Je,Ke),Je.prefixCls=Ye(),Je.iconPrefixCls=qe(),Je.getPrefixCls=(e,t)=>t||(e?`${Je.prefixCls}-${e}`:Je.prefixCls),Je.getRootPrefixCls=()=>Je.prefixCls?Je.prefixCls:Ye()}));const tt=e=>{et&&et(),et=(0,o.watchEffect)((()=>{(0,r.A)(Ke,(0,o.reactive)(e)),(0,r.A)(Je,(0,o.reactive)(e))})),e.theme&&Ne(Ye(),e.theme)},nt=()=>({getPrefixCls:(e,t)=>t||(e?`${Ye()}-${e}`:Ye()),getIconPrefixCls:qe,getRootPrefixCls:()=>Je.prefixCls?Je.prefixCls:Ye()}),rt=(0,o.defineComponent)({compatConfig:{MODE:3},name:"AConfigProvider",inheritAttrs:!1,props:(0,We.yA)(),setup(e,t){let{slots:n}=t;const a=(0,We.OQ)(),s=(t,n)=>{const{prefixCls:r="ant"}=e;if(n)return n;const o=r||a.getPrefixCls("");return t?`${o}-${t}`:o},l=(0,o.computed)((()=>e.iconPrefixCls||a.iconPrefixCls.value||We.pM)),c=(0,o.computed)((()=>l.value!==a.iconPrefixCls.value)),d=(0,o.computed)((()=>{var t;return e.csp||(null===(t=a.csp)||void 0===t?void 0:t.value)})),g=je(l),m=Qe((0,o.computed)((()=>e.theme)),(0,o.computed)((()=>{var e;return null===(e=a.theme)||void 0===e?void 0:e.value}))),v=t=>{const r=e.renderEmpty||n.renderEmpty||a.renderEmpty||i.A;return r(t)},y=(0,o.computed)((()=>{var t,n;return null!==(t=e.autoInsertSpaceInButton)&&void 0!==t?t:null===(n=a.autoInsertSpaceInButton)||void 0===n?void 0:n.value})),b=(0,o.computed)((()=>{var t;return e.locale||(null===(t=a.locale)||void 0===t?void 0:t.value)}));(0,o.watch)(b,(()=>{Ke.locale=b.value}),{immediate:!0});const _=(0,o.computed)((()=>{var t;return e.direction||(null===(t=a.direction)||void 0===t?void 0:t.value)})),x=(0,o.computed)((()=>{var t,n;return null!==(t=e.space)&&void 0!==t?t:null===(n=a.space)||void 0===n?void 0:n.value})),w=(0,o.computed)((()=>{var t,n;return null!==(t=e.virtual)&&void 0!==t?t:null===(n=a.virtual)||void 0===n?void 0:n.value})),O=(0,o.computed)((()=>{var t,n;return null!==(t=e.dropdownMatchSelectWidth)&&void 0!==t?t:null===(n=a.dropdownMatchSelectWidth)||void 0===n?void 0:n.value})),S=(0,o.computed)((()=>{var t;return void 0!==e.getTargetContainer?e.getTargetContainer:null===(t=a.getTargetContainer)||void 0===t?void 0:t.value})),A=(0,o.computed)((()=>{var t;return void 0!==e.getPopupContainer?e.getPopupContainer:null===(t=a.getPopupContainer)||void 0===t?void 0:t.value})),k=(0,o.computed)((()=>{var t;return void 0!==e.pageHeader?e.pageHeader:null===(t=a.pageHeader)||void 0===t?void 0:t.value})),C=(0,o.computed)((()=>{var t;return void 0!==e.input?e.input:null===(t=a.input)||void 0===t?void 0:t.value})),M=(0,o.computed)((()=>{var t;return void 0!==e.pagination?e.pagination:null===(t=a.pagination)||void 0===t?void 0:t.value})),T=(0,o.computed)((()=>{var t;return void 0!==e.form?e.form:null===(t=a.form)||void 0===t?void 0:t.value})),P=(0,o.computed)((()=>{var t;return void 0!==e.select?e.select:null===(t=a.select)||void 0===t?void 0:t.value})),I=(0,o.computed)((()=>e.componentSize)),$=(0,o.computed)((()=>e.componentDisabled)),E=(0,o.computed)((()=>{var t,n;return null!==(t=e.wave)&&void 0!==t?t:null===(n=a.wave)||void 0===n?void 0:n.value})),D={csp:d,autoInsertSpaceInButton:y,locale:b,direction:_,space:x,virtual:w,dropdownMatchSelectWidth:O,getPrefixCls:s,iconPrefixCls:l,theme:(0,o.computed)((()=>{var e,t;return null!==(e=m.value)&&void 0!==e?e:null===(t=a.theme)||void 0===t?void 0:t.value})),renderEmpty:v,getTargetContainer:S,getPopupContainer:A,pageHeader:k,input:C,pagination:M,form:T,select:P,componentSize:I,componentDisabled:$,transformCellText:(0,o.computed)((()=>e.transformCellText)),wave:E},R=(0,o.computed)((()=>{const e=m.value||{},{algorithm:t,token:n}=e,o=Xe(e,["algorithm","token"]),i=t&&(!Array.isArray(t)||t.length>0)?(0,Ge.A)(t):void 0;return(0,r.A)((0,r.A)({},o),{theme:i,token:(0,r.A)((0,r.A)({},Fe.A),n)})})),N=(0,o.computed)((()=>{var t,n;let o={};return b.value&&(o=(null===(t=b.value.Form)||void 0===t?void 0:t.defaultValidateMessages)||(null===(n=Le.A.Form)||void 0===n?void 0:n.defaultValidateMessages)||{}),e.form&&e.form.validateMessages&&(o=(0,r.A)((0,r.A)({},o),e.form.validateMessages)),o}));(0,We.GY)(D),(0,We.AR)({validateMessages:N}),(0,He.A)(I),(0,Ze.Z)($);const L=t=>{var r,i;let a=c.value?g(null===(r=n.default)||void 0===r?void 0:r.call(n)):null===(i=n.default)||void 0===i?void 0:i.call(n);if(e.theme){const e=function(){return a}();a=(0,o.createVNode)(Ve.n5,{value:R.value},{default:()=>[e]})}return(0,o.createVNode)(h,{locale:b.value||t,ANT_MARK__:u},{default:()=>[a]})};return(0,o.watchEffect)((()=>{_.value&&(f.Ay.config({rtl:"rtl"===_.value}),Te.config({rtl:"rtl"===_.value}))})),()=>(0,o.createVNode)(p.A,{children:(e,t,n)=>L(n)},null)}});rt.config=tt,rt.install=function(e){e.component(rt.name,rt)};var ot=rt},40493:function(e,t,n){"use strict";n.d(t,{x:function(){return C},A:function(){return T}});var r=n(9274),o=n(69751),i=n(98657),a=n(13389),s=n(97605),l=n(70213),u=n(78089);const c=(0,r.defineComponent)({compatConfig:{MODE:3},setup(){const[,e]=(0,l.rd)(),t=(0,r.computed)((()=>{const t=new u.q(e.value.colorBgBase);return t.toHsl().l<.5?{opacity:.65}:{}}));return()=>(0,r.createVNode)("svg",{style:t.value,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},[(0,r.createVNode)("g",{fill:"none","fill-rule":"evenodd"},[(0,r.createVNode)("g",{transform:"translate(24 31.67)"},[(0,r.createVNode)("ellipse",{"fill-opacity":".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"},null),(0,r.createVNode)("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"},null),(0,r.createVNode)("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"},null),(0,r.createVNode)("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"},null),(0,r.createVNode)("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"},null)]),(0,r.createVNode)("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"},null),(0,r.createVNode)("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},[(0,r.createVNode)("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"},null),(0,r.createVNode)("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"},null)])])])}});c.PRESENTED_IMAGE_DEFAULT=!0;var d=c;const h=(0,r.defineComponent)({compatConfig:{MODE:3},setup(){const[,e]=(0,l.rd)(),t=(0,r.computed)((()=>{const{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:o}=e.value;return{borderColor:new u.q(t).onBackground(o).toHexString(),shadowColor:new u.q(n).onBackground(o).toHexString(),contentColor:new u.q(r).onBackground(o).toHexString()}}));return()=>(0,r.createVNode)("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},[(0,r.createVNode)("g",{transform:"translate(0 1)",fill:"none","fill-rule":"evenodd"},[(0,r.createVNode)("ellipse",{fill:t.value.shadowColor,cx:"32",cy:"33",rx:"32",ry:"7"},null),(0,r.createVNode)("g",{"fill-rule":"nonzero",stroke:t.value.borderColor},[(0,r.createVNode)("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"},null),(0,r.createVNode)("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:t.value.contentColor},null)])])])}});h.PRESENTED_IMAGE_SIMPLE=!0;var p=h,f=n(16155),g=n(66041),m=n(3551),v=n(94471),y=n(96704);const b=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:r,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{height:"100%",margin:"auto"}},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}};var _=(0,v.A)("Empty",(e=>{const{componentCls:t,controlHeightLG:n}=e,r=(0,y.h1)(e,{emptyImgCls:`${t}-img`,emptyImgHeight:2.5*n,emptyImgHeightMD:n,emptyImgHeightSM:.875*n});return[b(r)]})),x=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const w=(0,r.createVNode)(d,null,null),O=(0,r.createVNode)(p,null,null),S=()=>({prefixCls:String,imageStyle:(0,g.ge)(),image:(0,g.ds)(),description:(0,g.ds)()}),A=(0,r.defineComponent)({name:"AEmpty",compatConfig:{MODE:3},inheritAttrs:!1,props:S(),setup(e,t){let{slots:n={},attrs:l}=t;const{direction:u,prefixCls:c}=(0,m.A)("empty",e),[d,h]=_(c);return()=>{var t,p;const g=c.value,m=(0,i.A)((0,i.A)({},e),l),{image:v=(null===(t=n.image)||void 0===t?void 0:t.call(n))||w,description:y=(null===(p=n.description)||void 0===p?void 0:p.call(n))||void 0,imageStyle:b,class:_=""}=m,S=x(m,["image","description","imageStyle","class"]);return d((0,r.createVNode)(s.A,{componentName:"Empty",children:e=>{const t="undefined"!==typeof y?y:e.description,i="string"===typeof t?t:"empty";let s=null;return s="string"===typeof v?(0,r.createVNode)("img",{alt:i,src:v},null):v,(0,r.createVNode)("div",(0,o.A)({class:(0,a.A)(g,_,h.value,{[`${g}-normal`]:v===O,[`${g}-rtl`]:"rtl"===u.value})},S),[(0,r.createVNode)("div",{class:`${g}-image`,style:b},[s]),t&&(0,r.createVNode)("p",{class:`${g}-description`},[t]),n.default&&(0,r.createVNode)("div",{class:`${g}-footer`},[(0,f.Gk)(n.default())])])}},null))}}});A.PRESENTED_IMAGE_DEFAULT=w,A.PRESENTED_IMAGE_SIMPLE=O;var k=(0,g.GU)(A);const C=e=>{const{prefixCls:t}=(0,m.A)("empty",e),n=e=>{switch(e){case"Table":case"List":return(0,r.createVNode)(k,{image:k.PRESENTED_IMAGE_SIMPLE},null);case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return(0,r.createVNode)(k,{image:k.PRESENTED_IMAGE_SIMPLE,class:`${t.value}-small`},null);default:return(0,r.createVNode)(k,null,null)}};return n(e.componentName)};function M(e){return(0,r.createVNode)(C,{componentName:e},null)}var T=M},5068:function(e,t,n){"use strict";n.d(t,{A:function(){return gt}});var r=n(69751),o=n(98657),i=n(9274),a=n(2167),s=n(82339),l=n(46299),u=n(51911),c=n(4908),d=n(5530),h=n(13389),p=n(70213);const f=["xxxl","xxl","xl","lg","md","sm","xs"],g=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`,xxxl:`{min-width: ${e.screenXXXL}px}`});function m(){const[,e]=(0,p.rd)();return(0,i.computed)((()=>{const t=g(e.value),n=new Map;let r=-1,i={};return{matchHandlers:{},dispatch(e){return i=e,n.forEach((e=>e(i))),n.size>=1},subscribe(e){return n.size||this.register(),r+=1,n.set(r,e),e(i),r},unsubscribe(e){n.delete(e),n.size||this.unregister()},unregister(){Object.keys(t).forEach((e=>{const n=t[e],r=this.matchHandlers[n];null===r||void 0===r||r.mql.removeListener(null===r||void 0===r?void 0:r.listener)})),n.clear()},register(){Object.keys(t).forEach((e=>{const n=t[e],r=t=>{let{matches:n}=t;this.dispatch((0,o.A)((0,o.A)({},i),{[e]:n}))},a=window.matchMedia(n);a.addListener(r),this.matchHandlers[n]={mql:a,listener:r},r(a)}))},responsiveMap:t}}))}var v=n(3551),y=n(97369),b=()=>{const e=(0,i.shallowRef)(!1);return(0,i.onMounted)((()=>{e.value=(0,y.Pu)()})),e};const _=Symbol("rowContextKey"),x=e=>{(0,i.provide)(_,e)},w=()=>(0,i.inject)(_,{gutter:(0,i.computed)((()=>{})),wrap:(0,i.computed)((()=>{})),supportFlexGap:(0,i.computed)((()=>{}))});var O=x,S=n(94471),A=n(96704);const k=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around ":{justifyContent:"space-around"},"&-space-evenly ":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},C=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},M=(e,t)=>{const{componentCls:n,gridColumns:r}=e,o={};for(let i=r;i>=0;i--)0===i?(o[`${n}${t}-${i}`]={display:"none"},o[`${n}-push-${i}`]={insetInlineStart:"auto"},o[`${n}-pull-${i}`]={insetInlineEnd:"auto"},o[`${n}${t}-push-${i}`]={insetInlineStart:"auto"},o[`${n}${t}-pull-${i}`]={insetInlineEnd:"auto"},o[`${n}${t}-offset-${i}`]={marginInlineEnd:0},o[`${n}${t}-order-${i}`]={order:0}):(o[`${n}${t}-${i}`]={display:"block",flex:`0 0 ${i/r*100}%`,maxWidth:i/r*100+"%"},o[`${n}${t}-push-${i}`]={insetInlineStart:i/r*100+"%"},o[`${n}${t}-pull-${i}`]={insetInlineEnd:i/r*100+"%"},o[`${n}${t}-offset-${i}`]={marginInlineStart:i/r*100+"%"},o[`${n}${t}-order-${i}`]={order:i});return o},T=(e,t)=>M(e,t),P=(e,t,n)=>({[`@media (min-width: ${t}px)`]:(0,o.A)({},T(e,n))}),I=(0,S.A)("Grid",(e=>[k(e)])),$=(0,S.A)("Grid",(e=>{const t=(0,A.h1)(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[C(t),T(t,""),T(t,"-xs"),Object.keys(n).map((e=>P(t,n[e],e))).reduce(((e,t)=>(0,o.A)((0,o.A)({},e),t)),{})]}));var E=n(66041);const D=()=>({align:(0,E.tK)([String,Object]),justify:(0,E.tK)([String,Object]),prefixCls:String,gutter:(0,E.tK)([Number,Array,Object],0),wrap:{type:Boolean,default:void 0}}),R=(0,i.defineComponent)({compatConfig:{MODE:3},name:"ARow",inheritAttrs:!1,props:D(),setup(e,t){let{slots:n,attrs:a}=t;const{prefixCls:s,direction:l}=(0,v.A)("row",e),[u,c]=I(s);let d;const p=m(),g=(0,i.ref)({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),y=(0,i.ref)({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),_=t=>(0,i.computed)((()=>{if("string"===typeof e[t])return e[t];if("object"!==typeof e[t])return"";for(let n=0;n<f.length;n++){const r=f[n];if(!y.value[r])continue;const o=e[t][r];if(void 0!==o)return o}return""})),x=_("align"),w=_("justify"),S=b();(0,i.onMounted)((()=>{d=p.value.subscribe((t=>{y.value=t;const n=e.gutter||0;(!Array.isArray(n)&&"object"===typeof n||Array.isArray(n)&&("object"===typeof n[0]||"object"===typeof n[1]))&&(g.value=t)}))})),(0,i.onBeforeUnmount)((()=>{p.value.unsubscribe(d)}));const A=(0,i.computed)((()=>{const t=[void 0,void 0],{gutter:n=0}=e,r=Array.isArray(n)?n:[n,void 0];return r.forEach(((e,n)=>{if("object"===typeof e)for(let r=0;r<f.length;r++){const o=f[r];if(g.value[o]&&void 0!==e[o]){t[n]=e[o];break}}else t[n]=e})),t}));O({gutter:A,supportFlexGap:S,wrap:(0,i.computed)((()=>e.wrap))});const k=(0,i.computed)((()=>(0,h.A)(s.value,{[`${s.value}-no-wrap`]:!1===e.wrap,[`${s.value}-${w.value}`]:w.value,[`${s.value}-${x.value}`]:x.value,[`${s.value}-rtl`]:"rtl"===l.value},a.class,c.value))),C=(0,i.computed)((()=>{const e=A.value,t={},n=null!=e[0]&&e[0]>0?e[0]/-2+"px":void 0,r=null!=e[1]&&e[1]>0?e[1]/-2+"px":void 0;return n&&(t.marginLeft=n,t.marginRight=n),S.value?t.rowGap=`${e[1]}px`:r&&(t.marginTop=r,t.marginBottom=r),t}));return()=>{var e;return u((0,i.createVNode)("div",(0,r.A)((0,r.A)({},a),{},{class:k.value,style:(0,o.A)((0,o.A)({},C.value),a.style)}),[null===(e=n.default)||void 0===e?void 0:e.call(n)]))}}});var N=R,L=n(16155),z=n(92423),V=n(13798),B=n(3778),j=n(52002),Q=n(74381),F=n(13796),W=1,H=2;function Z(e,t,n,r){var o=n.length,i=o,a=!r;if(null==e)return!i;e=Object(e);while(o--){var s=n[o];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}while(++o<i){s=n[o];var l=s[0],u=e[l],c=s[1];if(a&&s[2]){if(void 0===u&&!(l in e))return!1}else{var d=new Q.A;if(r)var h=r(u,c,l,e,t,d);if(!(void 0===h?(0,F.A)(c,u,W|H,r,d):h))return!1}}return!0}var G=Z,X=n(48508);function U(e){return e===e&&!(0,X.A)(e)}var Y=U,q=n(99915);function K(e){var t=(0,q.A)(e),n=t.length;while(n--){var r=t[n],o=e[r];t[n]=[r,o,Y(o)]}return t}var J=K;function ee(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}var te=ee;function ne(e){var t=J(e);return 1==t.length&&t[0][2]?te(t[0][0],t[0][1]):function(n){return n===e||G(n,e,t)}}var re=ne,oe=n(83067),ie=n(92324),ae=n(50259),se=n(65864),le=1,ue=2;function ce(e,t){return(0,ae.A)(e)&&Y(t)?te((0,se.A)(e),t):function(n){var r=(0,oe.A)(n,e);return void 0===r&&r===t?(0,ie.A)(n,e):(0,F.A)(t,r,le|ue)}}var de=ce,he=n(14101),pe=n(9670);function fe(e){return function(t){return null==t?void 0:t[e]}}var ge=fe,me=n(13267);function ve(e){return function(t){return(0,me.A)(t,e)}}var ye=ve;function be(e){return(0,ae.A)(e)?ge((0,se.A)(e)):ye(e)}var _e=be;function xe(e){return"function"==typeof e?e:null==e?he.A:"object"==typeof e?(0,pe.A)(e)?de(e[0],e[1]):re(e):_e(e)}var we=xe,Oe=n(58977);function Se(e){return function(t,n,r){var o=Object(t);if(!(0,Oe.A)(t)){var i=we(n,3);t=(0,q.A)(t),n=function(e){return i(o[e],e,o)}}var a=e(t,n,r);return a>-1?o[i?t[a]:a]:void 0}}var Ae=Se,ke=n(44690),Ce=n(98704),Me=1/0,Te=17976931348623157e292;function Pe(e){if(!e)return 0===e?e:0;if(e=(0,Ce.A)(e),e===Me||e===-Me){var t=e<0?-1:1;return t*Te}return e===e?e:0}var Ie=Pe;function $e(e){var t=Ie(e),n=t%1;return t===t?n?t-n:t:0}var Ee=$e,De=Math.max;function Re(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:Ee(n);return o<0&&(o=De(r+o,0)),(0,ke.A)(e,we(t,3),o)}var Ne=Re,Le=Ae(Ne),ze=Le,Ve=n(31825);n(30381);function Be(e){return"number"===typeof e?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const je=()=>({span:[String,Number],order:[String,Number],offset:[String,Number],push:[String,Number],pull:[String,Number],xs:{type:[String,Number,Object],default:void 0},sm:{type:[String,Number,Object],default:void 0},md:{type:[String,Number,Object],default:void 0},lg:{type:[String,Number,Object],default:void 0},xl:{type:[String,Number,Object],default:void 0},xxl:{type:[String,Number,Object],default:void 0},prefixCls:String,flex:[String,Number]}),Qe=["xs","sm","md","lg","xl","xxl"];var Fe=(0,i.defineComponent)({compatConfig:{MODE:3},name:"ACol",inheritAttrs:!1,props:je(),setup(e,t){let{slots:n,attrs:a}=t;const{gutter:s,supportFlexGap:l,wrap:u}=w(),{prefixCls:c,direction:d}=(0,v.A)("col",e),[p,f]=$(c),g=(0,i.computed)((()=>{const{span:t,order:n,offset:r,push:i,pull:s}=e,l=c.value;let u={};return Qe.forEach((t=>{let n={};const r=e[t];"number"===typeof r?n.span=r:"object"===typeof r&&(n=r||{}),u=(0,o.A)((0,o.A)({},u),{[`${l}-${t}-${n.span}`]:void 0!==n.span,[`${l}-${t}-order-${n.order}`]:n.order||0===n.order,[`${l}-${t}-offset-${n.offset}`]:n.offset||0===n.offset,[`${l}-${t}-push-${n.push}`]:n.push||0===n.push,[`${l}-${t}-pull-${n.pull}`]:n.pull||0===n.pull,[`${l}-rtl`]:"rtl"===d.value})})),(0,h.A)(l,{[`${l}-${t}`]:void 0!==t,[`${l}-order-${n}`]:n,[`${l}-offset-${r}`]:r,[`${l}-push-${i}`]:i,[`${l}-pull-${s}`]:s},u,a.class,f.value)})),m=(0,i.computed)((()=>{const{flex:t}=e,n=s.value,r={};if(n&&n[0]>0){const e=n[0]/2+"px";r.paddingLeft=e,r.paddingRight=e}if(n&&n[1]>0&&!l.value){const e=n[1]/2+"px";r.paddingTop=e,r.paddingBottom=e}return t&&(r.flex=Be(t),!1!==u.value||r.minWidth||(r.minWidth=0)),r}));return()=>{var e;return p((0,i.createVNode)("div",(0,r.A)((0,r.A)({},a),{},{class:g.value,style:[m.value,a.style]}),[null===(e=n.default)||void 0===e?void 0:e.call(n)]))}}}),We=n(53775),He=n(24619),Ze=n(9139),Ge={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},Xe=Ge,Ue=n(29847);function Ye(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){qe(e,t,n[t])}))}return e}function qe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ke=function(e,t){var n=Ye({},e,t.attrs);return(0,i.createVNode)(Ue.A,Ye({},n,{icon:Xe}),null)};Ke.displayName="QuestionCircleOutlined",Ke.inheritAttrs=!1;var Je=Ke;const et=(e,t)=>{let{slots:n,emit:a,attrs:s}=t;var l,u,c,d,p;const{prefixCls:f,htmlFor:g,labelCol:m,labelAlign:v,colon:y,required:b,requiredMark:_}=(0,o.A)((0,o.A)({},e),s),[x]=(0,We.n)("Form"),w=null!==(l=e.label)&&void 0!==l?l:null===(u=n.label)||void 0===u?void 0:u.call(n);if(!w)return null;const{vertical:O,labelAlign:S,labelCol:A,labelWrap:k,colon:C}=(0,Ve.nS)(),M=m||(null===A||void 0===A?void 0:A.value)||{},T=v||(null===S||void 0===S?void 0:S.value),P=`${f}-item-label`,I=(0,h.A)(P,"left"===T&&`${P}-left`,M.class,{[`${P}-wrap`]:!!k.value});let $=w;const E=!0===y||!1!==(null===C||void 0===C?void 0:C.value)&&!1!==y,D=E&&!O.value;if(D&&"string"===typeof w&&""!==w.trim()&&($=w.replace(/[:|:]\s*$/,"")),e.tooltip||n.tooltip){const t=(0,i.createVNode)("span",{class:`${f}-item-tooltip`},[(0,i.createVNode)(Ze.A,{title:e.tooltip},{default:()=>[(0,i.createVNode)(Je,null,null)]})]);$=(0,i.createVNode)(i.Fragment,null,[$,n.tooltip?null===(c=n.tooltip)||void 0===c?void 0:c.call(n,{class:`${f}-item-tooltip`}):t])}"optional"!==_||b||($=(0,i.createVNode)(i.Fragment,null,[$,(0,i.createVNode)("span",{class:`${f}-item-optional`},[(null===(d=x.value)||void 0===d?void 0:d.optional)||(null===(p=He.A.Form)||void 0===p?void 0:p.optional)])]));const R=(0,h.A)({[`${f}-item-required`]:b,[`${f}-item-required-mark-optional`]:"optional"===_,[`${f}-item-no-colon`]:!E});return(0,i.createVNode)(Fe,(0,r.A)((0,r.A)({},M),{},{class:I}),{default:()=>[(0,i.createVNode)("label",{for:g,class:R,title:"string"===typeof w?w:"",onClick:e=>a("click",e)},[$])]})};et.displayName="FormItemLabel",et.inheritAttrs=!1;var tt=et,nt=n(41038),rt=n(33063),ot=n(327),it=(0,i.defineComponent)({compatConfig:{MODE:3},name:"ErrorList",inheritAttrs:!1,props:["errors","help","onErrorVisibleChanged","helpStatus","warnings"],setup(e,t){let{attrs:n}=t;const{prefixCls:o,status:a}=(0,Ve.K)(),s=(0,i.computed)((()=>`${o.value}-item-explain`)),l=(0,i.computed)((()=>!(!e.errors||!e.errors.length))),u=(0,i.ref)(a.value),[,c]=(0,ot.A)(o);return(0,i.watch)([l,a],(()=>{l.value&&(u.value=a.value)})),()=>{var t,a;const l=(0,rt.A)(`${o.value}-show-help-item`),d=(0,nt.zg)(`${o.value}-show-help-item`,l);return d.role="alert",d.class=[c.value,s.value,n.class,`${o.value}-show-help`],(0,i.createVNode)(i.Transition,(0,r.A)((0,r.A)({},(0,nt.ce)(`${o.value}-show-help`)),{},{onAfterEnter:()=>e.onErrorVisibleChanged(!0),onAfterLeave:()=>e.onErrorVisibleChanged(!1)}),{default:()=>[(0,i.withDirectives)((0,i.createVNode)(i.TransitionGroup,(0,r.A)((0,r.A)({},d),{},{tag:"div"}),{default:()=>[null===(a=e.errors)||void 0===a?void 0:a.map(((e,t)=>(0,i.createVNode)("div",{key:t,class:u.value?`${s.value}-${u.value}`:""},[e])))]}),[[i.vShow,!!(null===(t=e.errors)||void 0===t?void 0:t.length)]])]})}}});const at=(0,i.defineComponent)({compatConfig:{MODE:3},slots:Object,inheritAttrs:!1,props:["prefixCls","errors","hasFeedback","onDomErrorVisibleChange","wrapperCol","help","extra","status","marginBottom","onErrorVisibleChanged"],setup(e,t){let{slots:n}=t;const a=(0,Ve.nS)(),{wrapperCol:s}=a,l=(0,o.A)({},a);return delete l.labelCol,delete l.wrapperCol,(0,Ve.Tc)(l),(0,Ve.ol)({prefixCls:(0,i.computed)((()=>e.prefixCls)),status:(0,i.computed)((()=>e.status))}),()=>{var t,o,a;const{prefixCls:l,wrapperCol:u,marginBottom:c,onErrorVisibleChanged:d,help:p=(null===(t=n.help)||void 0===t?void 0:t.call(n)),errors:f=(0,L.Gk)(null===(o=n.errors)||void 0===o?void 0:o.call(n)),extra:g=(null===(a=n.extra)||void 0===a?void 0:a.call(n))}=e,m=`${l}-item`,v=u||(null===s||void 0===s?void 0:s.value)||{},y=(0,h.A)(`${m}-control`,v.class);return(0,i.createVNode)(Fe,(0,r.A)((0,r.A)({},v),{},{class:y}),{default:()=>{var e;return(0,i.createVNode)(i.Fragment,null,[(0,i.createVNode)("div",{class:`${m}-control-input`},[(0,i.createVNode)("div",{class:`${m}-control-input-content`},[null===(e=n.default)||void 0===e?void 0:e.call(n)])]),null!==c||f.length?(0,i.createVNode)("div",{style:{display:"flex",flexWrap:"nowrap"}},[(0,i.createVNode)(it,{errors:f,help:p,class:`${m}-explain-connected`,onErrorVisibleChanged:d},null),!!c&&(0,i.createVNode)("div",{style:{width:0,height:`${c}px`}},null)]):null,g?(0,i.createVNode)("div",{class:`${m}-extra`},[g]):null])}})}}});var st=at,lt=n(35162);function ut(e){const t=(0,i.shallowRef)(e.value.slice());let n=null;return(0,i.watchEffect)((()=>{clearTimeout(n),n=setTimeout((()=>{t.value=e.value}),e.value.length?0:10)})),t}(0,E.PV)("success","warning","error","validating","");const ct={success:l.A,warning:u.A,error:s.A,validating:a.A};function dt(e,t,n){let r=e;const o=t;let i=0;try{for(let e=o.length;i<e-1;++i){if(!r&&!n)break;const e=o[i];if(!(e in r)){if(n)throw Error("please transfer a valid name path to form item!");break}r=r[e]}if(n&&!r)throw Error("please transfer a valid name path to form item!")}catch(a){console.error("please transfer a valid name path to form item!")}return{o:r,k:o[i],v:r?r[o[i]]:void 0}}const ht=()=>({htmlFor:String,prefixCls:String,label:d.A.any,help:d.A.any,extra:d.A.any,labelCol:{type:Object},wrapperCol:{type:Object},hasFeedback:{type:Boolean,default:!1},colon:{type:Boolean,default:void 0},labelAlign:String,prop:{type:[String,Number,Array]},name:{type:[String,Number,Array]},rules:[Array,Object],autoLink:{type:Boolean,default:!0},required:{type:Boolean,default:void 0},validateFirst:{type:Boolean,default:void 0},validateStatus:d.A.oneOf((0,E.PV)("","success","warning","error","validating")),validateTrigger:{type:[String,Array]},messageVariables:{type:Object},hidden:Boolean,noStyle:Boolean,tooltip:String});let pt=0;const ft="form_item";var gt=(0,i.defineComponent)({compatConfig:{MODE:3},name:"AFormItem",inheritAttrs:!1,__ANT_NEW_FORM_ITEM:!0,props:ht(),slots:Object,setup(e,t){let{slots:n,attrs:a,expose:s}=t;(0,j.$e)(void 0===e.prop,"`prop` is deprecated. Please use `name` instead.");const l="form-item-"+ ++pt,{prefixCls:u}=(0,v.A)("form",e),[d,p]=(0,ot.A)(u),f=(0,i.shallowRef)(),g=(0,Ve.nS)(),m=(0,i.computed)((()=>e.name||e.prop)),y=(0,i.shallowRef)([]),b=(0,i.shallowRef)(!1),_=(0,i.shallowRef)(),x=(0,i.computed)((()=>{const e=m.value;return(0,V.XK)(e)})),w=(0,i.computed)((()=>{if(x.value.length){const e=g.name.value,t=x.value.join("_");return e?`${e}_${t}`:`${ft}_${t}`}})),O=()=>{const e=g.model.value;return e&&m.value?dt(e,x.value,!0).v:void 0},S=(0,i.computed)((()=>O())),A=(0,i.shallowRef)((0,c.A)(S.value)),k=(0,i.computed)((()=>{let t=void 0!==e.validateTrigger?e.validateTrigger:g.validateTrigger.value;return t=void 0===t?"change":t,(0,B.$)(t)})),C=(0,i.computed)((()=>{let t=g.rules.value;const n=e.rules,r=void 0!==e.required?{required:!!e.required,trigger:k.value}:[],o=dt(t,x.value);t=t?o.o[o.k]||o.v:[];const i=[].concat(n||t||[]);return ze(i,(e=>e.required))?i:i.concat(r)})),M=(0,i.computed)((()=>{const t=C.value;let n=!1;return t&&t.length&&t.every((e=>!e.required||(n=!0,!1))),n||e.required})),T=(0,i.shallowRef)();(0,i.watchEffect)((()=>{T.value=e.validateStatus}));const P=(0,i.computed)((()=>{let t={};return"string"===typeof e.label?t.label=e.label:e.name&&(t.label=String(e.name)),e.messageVariables&&(t=(0,o.A)((0,o.A)({},t),e.messageVariables)),t})),I=t=>{if(0===x.value.length)return;const{validateFirst:n=!1}=e,{triggerName:r}=t||{};let a=C.value;if(r&&(a=a.filter((e=>{const{trigger:t}=e;if(!t&&!k.value.length)return!0;const n=(0,B.$)(t||k.value);return n.includes(r)}))),!a.length)return Promise.resolve();const s=(0,z.W)(x.value,S.value,a,(0,o.A)({validateMessages:g.validateMessages.value},t),n,P.value);return T.value="validating",y.value=[],s.catch((e=>e)).then((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if("validating"===T.value){const t=e.filter((e=>e&&e.errors.length));T.value=t.length?"error":"success",y.value=t.map((e=>e.errors)),g.onValidate(m.value,!y.value.length,y.value.length?(0,i.toRaw)(y.value[0]):null)}})),s},$=()=>{I({triggerName:"blur"})},E=()=>{b.value?b.value=!1:I({triggerName:"change"})},D=()=>{T.value=e.validateStatus,b.value=!1,y.value=[]},R=()=>{var t;T.value=e.validateStatus,b.value=!0,y.value=[];const n=g.model.value||{},r=S.value,o=dt(n,x.value,!0);Array.isArray(r)?o.o[o.k]=[].concat(null!==(t=A.value)&&void 0!==t?t:[]):o.o[o.k]=A.value,(0,i.nextTick)((()=>{b.value=!1}))},Q=(0,i.computed)((()=>void 0===e.htmlFor?w.value:e.htmlFor)),F=()=>{const e=Q.value;if(!e||!_.value)return;const t=_.value.$el.querySelector(`[id="${e}"]`);t&&t.focus&&t.focus()};s({onFieldBlur:$,onFieldChange:E,clearValidate:D,resetField:R}),(0,lt.dJ)({id:w,onFieldBlur:()=>{e.autoLink&&$()},onFieldChange:()=>{e.autoLink&&E()},clearValidate:D},(0,i.computed)((()=>!!(e.autoLink&&g.model.value&&m.value))));let W=!1;(0,i.watch)(m,(e=>{e?W||(W=!0,g.addField(l,{fieldValue:S,fieldId:w,fieldName:m,resetField:R,clearValidate:D,namePath:x,validateRules:I,rules:C})):(W=!1,g.removeField(l))}),{immediate:!0}),(0,i.onBeforeUnmount)((()=>{g.removeField(l)}));const H=ut(y),Z=(0,i.computed)((()=>void 0!==e.validateStatus?e.validateStatus:H.value.length?"error":T.value)),G=(0,i.computed)((()=>({[`${u.value}-item`]:!0,[p.value]:!0,[`${u.value}-item-has-feedback`]:Z.value&&e.hasFeedback,[`${u.value}-item-has-success`]:"success"===Z.value,[`${u.value}-item-has-warning`]:"warning"===Z.value,[`${u.value}-item-has-error`]:"error"===Z.value,[`${u.value}-item-is-validating`]:"validating"===Z.value,[`${u.value}-item-hidden`]:e.hidden}))),X=(0,i.reactive)({});lt.$W.useProvide(X),(0,i.watchEffect)((()=>{let t;if(e.hasFeedback){const e=Z.value&&ct[Z.value];t=e?(0,i.createVNode)("span",{class:(0,h.A)(`${u.value}-item-feedback-icon`,`${u.value}-item-feedback-icon-${Z.value}`)},[(0,i.createVNode)(e,null,null)]):null}(0,o.A)(X,{status:Z.value,hasFeedback:e.hasFeedback,feedbackIcon:t,isFormItemInput:!0})}));const U=(0,i.shallowRef)(null),Y=(0,i.shallowRef)(!1),q=()=>{if(f.value){const e=getComputedStyle(f.value);U.value=parseInt(e.marginBottom,10)}};(0,i.onMounted)((()=>{(0,i.watch)(Y,(()=>{Y.value&&q()}),{flush:"post",immediate:!0})}));const K=e=>{e||(U.value=null)};return()=>{var t,o;if(e.noStyle)return null===(t=n.default)||void 0===t?void 0:t.call(n);const s=null!==(o=e.help)&&void 0!==o?o:n.help?(0,L.Gk)(n.help()):null,l=!!(void 0!==s&&null!==s&&Array.isArray(s)&&s.length||H.value.length);return Y.value=l,d((0,i.createVNode)("div",{class:[G.value,l?`${u.value}-item-with-help`:"",a.class],ref:f},[(0,i.createVNode)(N,(0,r.A)((0,r.A)({},a),{},{class:`${u.value}-item-row`,key:"row"}),{default:()=>{var t,o;return(0,i.createVNode)(i.Fragment,null,[(0,i.createVNode)(tt,(0,r.A)((0,r.A)({},e),{},{htmlFor:Q.value,required:M.value,requiredMark:g.requiredMark.value,prefixCls:u.value,onClick:F,label:e.label}),{label:n.label,tooltip:n.tooltip}),(0,i.createVNode)(st,(0,r.A)((0,r.A)({},e),{},{errors:void 0!==s&&null!==s?(0,B.$)(s):H.value,marginBottom:U.value,prefixCls:u.value,status:Z.value,ref:_,help:s,extra:null!==(t=e.extra)&&void 0!==t?t:null===(o=n.extra)||void 0===o?void 0:o.call(n),onErrorVisibleChanged:K}),{default:n.default})])}}),!!U.value&&(0,i.createVNode)("div",{class:`${u.value}-margin-offset`,style:{marginBottom:`-${U.value}px`}},null)]))}}})},35162:function(e,t,n){"use strict";n.d(t,{$W:function(){return d},dJ:function(){return s},db:function(){return c},yx:function(){return h}});var r=n(9274),o=n(2126);const i=Symbol("ContextProps"),a=Symbol("InternalContextProps"),s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,r.computed)((()=>!0));const n=(0,r.ref)(new Map),o=(e,t)=>{n.value.set(e,t),n.value=new Map(n.value)},s=e=>{n.value.delete(e),n.value=new Map(n.value)};(0,r.getCurrentInstance)();(0,r.watch)([t,n],(()=>{0})),(0,r.provide)(i,e),(0,r.provide)(a,{addFormItemField:o,removeFormItemField:s})},l={id:(0,r.computed)((()=>{})),onFieldBlur:()=>{},onFieldChange:()=>{},clearValidate:()=>{}},u={addFormItemField:()=>{},removeFormItemField:()=>{}},c=()=>{const e=(0,r.inject)(a,u),t=Symbol("FormItemFieldKey"),n=(0,r.getCurrentInstance)();return e.addFormItemField(t,n.type),(0,r.onBeforeUnmount)((()=>{e.removeFormItemField(t)})),(0,r.provide)(a,u),(0,r.provide)(i,l),(0,r.inject)(i,l)};t.Ay=(0,r.defineComponent)({compatConfig:{MODE:3},name:"AFormItemRest",setup(e,t){let{slots:n}=t;return(0,r.provide)(a,u),(0,r.provide)(i,l),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}});const d=(0,o.A)({}),h=(0,r.defineComponent)({name:"NoFormStatus",setup(e,t){let{slots:n}=t;return d.useProvide({}),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}})},31825:function(e,t,n){"use strict";n.d(t,{K:function(){return c},Tc:function(){return a},nS:function(){return s},ol:function(){return u}});var r=n(9274),o=n(30246);const i=Symbol("formContextKey"),a=e=>{(0,r.provide)(i,e)},s=()=>(0,r.inject)(i,{name:(0,r.computed)((()=>{})),labelAlign:(0,r.computed)((()=>"right")),vertical:(0,r.computed)((()=>!1)),addField:(e,t)=>{},removeField:e=>{},model:(0,r.computed)((()=>{})),rules:(0,r.computed)((()=>{})),colon:(0,r.computed)((()=>{})),labelWrap:(0,r.computed)((()=>{})),labelCol:(0,r.computed)((()=>{})),requiredMark:(0,r.computed)((()=>!1)),validateTrigger:(0,r.computed)((()=>{})),onValidate:()=>{},validateMessages:(0,r.computed)((()=>o.y))}),l=Symbol("formItemPrefixContextKey"),u=e=>{(0,r.provide)(l,e)},c=()=>(0,r.inject)(l,{prefixCls:(0,r.computed)((()=>""))})},41145:function(e,t,n){"use strict";n.d(t,{Ay:function(){return le}});n(30381);var r=n(69751),o=n(98657),i=n(9274),a=n(5530),s=n(13389),l=n(18765),u=n(5068),c=n(13798),d=n(30246);function h(e){let t=!1,n=e.length;const r=[];return e.length?new Promise(((o,i)=>{e.forEach(((e,a)=>{e.catch((e=>(t=!0,e))).then((e=>{n-=1,r[a]=e,n>0||(t&&i(r),o(r))}))}))})):Promise.resolve([])}var p=n(3778),f=n(71415);function g(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function m(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function v(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return m(n.overflowY,t)||m(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function y(e,t,n,r,o,i,a,s){return i<e&&a>t||i>e&&a<t?0:i<=e&&s<=n||a>=t&&s>=n?i-e-r:a>t&&s<n||i<e&&s>n?a-t+o:0}var b=function(e,t){var n=window,r=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,s=t.skipOverflowHiddenElements,l="function"==typeof a?a:function(e){return e!==a};if(!g(e))throw new TypeError("Invalid target");for(var u,c,d=document.scrollingElement||document.documentElement,h=[],p=e;g(p)&&l(p);){if((p=null==(c=(u=p).parentElement)?u.getRootNode().host||null:c)===d){h.push(p);break}null!=p&&p===document.body&&v(p)&&!v(document.documentElement)||null!=p&&v(p,s)&&h.push(p)}for(var f=n.visualViewport?n.visualViewport.width:innerWidth,m=n.visualViewport?n.visualViewport.height:innerHeight,b=window.scrollX||pageXOffset,_=window.scrollY||pageYOffset,x=e.getBoundingClientRect(),w=x.height,O=x.width,S=x.top,A=x.right,k=x.bottom,C=x.left,M="start"===o||"nearest"===o?S:"end"===o?k:S+w/2,T="center"===i?C+O/2:"end"===i?A:C,P=[],I=0;I<h.length;I++){var $=h[I],E=$.getBoundingClientRect(),D=E.height,R=E.width,N=E.top,L=E.right,z=E.bottom,V=E.left;if("if-needed"===r&&S>=0&&C>=0&&k<=m&&A<=f&&S>=N&&k<=z&&C>=V&&A<=L)return P;var B=getComputedStyle($),j=parseInt(B.borderLeftWidth,10),Q=parseInt(B.borderTopWidth,10),F=parseInt(B.borderRightWidth,10),W=parseInt(B.borderBottomWidth,10),H=0,Z=0,G="offsetWidth"in $?$.offsetWidth-$.clientWidth-j-F:0,X="offsetHeight"in $?$.offsetHeight-$.clientHeight-Q-W:0,U="offsetWidth"in $?0===$.offsetWidth?0:R/$.offsetWidth:0,Y="offsetHeight"in $?0===$.offsetHeight?0:D/$.offsetHeight:0;if(d===$)H="start"===o?M:"end"===o?M-m:"nearest"===o?y(_,_+m,m,Q,W,_+M,_+M+w,w):M-m/2,Z="start"===i?T:"center"===i?T-f/2:"end"===i?T-f:y(b,b+f,f,j,F,b+T,b+T+O,O),H=Math.max(0,H+_),Z=Math.max(0,Z+b);else{H="start"===o?M-N-Q:"end"===o?M-z+W+X:"nearest"===o?y(N,z,D,Q,W+X,M,M+w,w):M-(N+D/2)+X/2,Z="start"===i?T-V-j:"center"===i?T-(V+R/2)+G/2:"end"===i?T-L+F+G:y(V,L,R,j,F+G,T,T+O,O);var q=$.scrollLeft,K=$.scrollTop;M+=K-(H=Math.max(0,Math.min(K+H/Y,$.scrollHeight-D/Y+X))),T+=q-(Z=Math.max(0,Math.min(q+Z/U,$.scrollWidth-R/U+G)))}P.push({el:$,top:H,left:Z})}return P};function _(e){return e===Object(e)&&0!==Object.keys(e).length}function x(e,t){void 0===t&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach((function(e){var r=e.el,o=e.top,i=e.left;r.scroll&&n?r.scroll({top:o,left:i,behavior:t}):(r.scrollTop=o,r.scrollLeft=i)}))}function w(e){return!1===e?{block:"end",inline:"nearest"}:_(e)?e:{block:"start",inline:"nearest"}}function O(e,t){var n=e.isConnected||e.ownerDocument.documentElement.contains(e);if(_(t)&&"function"===typeof t.behavior)return t.behavior(n?b(e,t):[]);if(n){var r=w(t);return x(b(e,r),r.behavior)}}var S=O,A=n(47960),k=n(66041),C=n(3551),M=n(31825),T=n(4908),P=n(24871),I=n(51845),$=n(3960),E=n(31044),D=n(27716),R=n(86864),N=Math.min;function L(e,t,n){var r=n?E.A:$.A,o=e[0].length,i=e.length,a=i,s=Array(i),l=1/0,u=[];while(a--){var c=e[a];a&&t&&(c=(0,P.A)(c,(0,D.A)(t))),l=N(c.length,l),s[a]=!n&&(t||o>=120&&c.length>=120)?new I.A(a&&c):void 0}c=e[0];var d=-1,h=s[0];e:while(++d<o&&u.length<l){var p=c[d],f=t?t(p):p;if(p=n||0!==p?p:0,!(h?(0,R.A)(h,f):r(u,f,n))){a=i;while(--a){var g=s[a];if(!(g?(0,R.A)(g,f):r(e[a],f,n)))continue e}h&&h.push(f),u.push(p)}}return u}var z=L,V=n(96953),B=n(74478);function j(e){return(0,B.A)(e)?e:[]}var Q=j,F=(0,V.A)((function(e){var t=(0,P.A)(e,Q);return t.length&&t[0]===e[0]?z(t):[]})),W=F,H=n(58554),Z=n(25727),G=n(92423);function X(e){let t=!1;return e&&e.length&&e.every((e=>!e.required||(t=!0,!1))),t}function U(e){return void 0===e||null===e?[]:Array.isArray(e)?e:[e]}function Y(e,t,n){let r=e;t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,"");const o=t.split(".");let i=0;for(let a=o.length;i<a-1;++i){if(!r&&!n)break;const e=o[i];if(!(e in r)){if(n)throw new Error("please transfer a valid name path to validate!");break}r=r[e]}return{o:r,k:o[i],v:r?r[o[i]]:null,isValid:r&&o[i]in r}}function q(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,i.ref)({}),n=arguments.length>2?arguments[2]:void 0;const r=(0,T.A)((0,i.unref)(e)),a=(0,i.reactive)({}),s=(0,i.shallowRef)([]),l=n=>{(0,o.A)((0,i.unref)(e),(0,o.A)((0,o.A)({},(0,T.A)(r)),n)),(0,i.nextTick)((()=>{Object.keys(a).forEach((e=>{a[e]={autoLink:!1,required:X((0,i.unref)(t)[e])}}))}))},u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return t.length?e.filter((e=>{const n=U(e.trigger||"change");return W(n,t).length})):e};let c=null;const p=function(n){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0;const a=[],s={};for(let c=0;c<n.length;c++){const l=n[c],d=Y((0,i.unref)(e),l,o);if(!d.isValid)continue;s[l]=d.v;const h=u((0,i.unref)(t)[l],U(r&&r.trigger));h.length&&a.push(g(l,d.v,h,r||{}).then((()=>({name:l,errors:[],warnings:[]}))).catch((e=>{const t=[],n=[];return e.forEach((e=>{let{rule:{warningOnly:r},errors:o}=e;r?n.push(...o):t.push(...o)})),t.length?Promise.reject({name:l,errors:t,warnings:n}):{name:l,errors:t,warnings:n}})))}const l=h(a);c=l;const d=l.then((()=>c===l?Promise.resolve(s):Promise.reject([]))).catch((e=>{const t=e.filter((e=>e&&e.errors.length));return t.length?Promise.reject({values:s,errorFields:t,outOfDate:c!==l}):Promise.resolve(s)}));return d.catch((e=>e)),d},g=function(e,t,r){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const l=(0,G.W)([e],t,r,(0,o.A)({validateMessages:d.y},s),!!s.validateFirst);return a[e]?(a[e].validateStatus="validating",l.catch((e=>e)).then((function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];var r;if("validating"===a[e].validateStatus){const o=t.filter((e=>e&&e.errors.length));a[e].validateStatus=o.length?"error":"success",a[e].help=o.length?o.map((e=>e.errors)):null,null===(r=null===n||void 0===n?void 0:n.onValidate)||void 0===r||r.call(n,e,!o.length,o.length?(0,i.toRaw)(a[e].help[0]):null)}})),l):l.catch((e=>e))},m=(e,t)=>{let n=[],r=!0;e?n=Array.isArray(e)?e:[e]:(r=!1,n=s.value);const o=p(n,t||{},r);return o.catch((e=>e)),o},v=e=>{let t=[];t=e?Array.isArray(e)?e:[e]:s.value,t.forEach((e=>{a[e]&&(0,o.A)(a[e],{validateStatus:"",help:null})}))},y=e=>{const t={autoLink:!1},n=[],r=Array.isArray(e)?e:[e];for(let o=0;o<r.length;o++){const e=r[o];"error"===(null===e||void 0===e?void 0:e.validateStatus)&&(t.validateStatus="error",e.help&&n.push(e.help)),t.required=t.required||(null===e||void 0===e?void 0:e.required)}return t.help=n,t};let b=r,_=!0;const x=e=>{const t=[];s.value.forEach((r=>{const o=Y(e,r,!1),i=Y(b,r,!1),a=_&&(null===n||void 0===n?void 0:n.immediate)&&o.isValid;!a&&(0,f.A)(o.v,i.v)||t.push(r)})),m(t,{trigger:"change"}),_=!1,b=(0,T.A)((0,i.toRaw)(e))},w=null===n||void 0===n?void 0:n.debounce;let O=!0;return(0,i.watch)(t,(()=>{s.value=t?Object.keys((0,i.unref)(t)):[],!O&&n&&n.validateOnRuleChange&&m(),O=!1}),{deep:!0,immediate:!0}),(0,i.watch)(s,(()=>{const e={};s.value.forEach((n=>{e[n]=(0,o.A)({},a[n],{autoLink:!1,required:X((0,i.unref)(t)[n])}),delete a[n]}));for(const t in a)Object.prototype.hasOwnProperty.call(a,t)&&delete a[t];(0,o.A)(a,e)}),{immediate:!0}),(0,i.watch)(e,w&&w.wait?(0,H.A)(x,w.wait,(0,Z.A)(w,["wait"])):x,{immediate:n&&!!n.immediate,deep:!0}),{modelRef:e,rulesRef:t,initialModel:r,validateInfos:a,resetFields:l,validate:m,validateField:g,mergeValidateInfo:y,clearValidate:v}}var K=q,J=n(90551),ee=n(327),te=n(82448),ne=n(99415);const re=()=>({layout:a.A.oneOf((0,k.PV)("horizontal","inline","vertical")),labelCol:(0,k.ge)(),wrapperCol:(0,k.ge)(),colon:(0,k.HE)(),labelAlign:(0,k.WO)(),labelWrap:(0,k.HE)(),prefixCls:String,requiredMark:(0,k.tK)([String,Boolean]),hideRequiredMark:(0,k.HE)(),model:a.A.object,rules:(0,k.ge)(),validateMessages:(0,k.ge)(),validateOnRuleChange:(0,k.HE)(),scrollToFirstError:(0,k.ds)(),onSubmit:(0,k.Fg)(),name:String,validateTrigger:(0,k.tK)([String,Array]),size:(0,k.WO)(),disabled:(0,k.HE)(),onValuesChange:(0,k.Fg)(),onFieldsChange:(0,k.Fg)(),onFinish:(0,k.Fg)(),onFinishFailed:(0,k.Fg)(),onValidate:(0,k.Fg)()});function oe(e,t){return(0,f.A)((0,p.$)(e),(0,p.$)(t))}const ie=(0,i.defineComponent)({compatConfig:{MODE:3},name:"AForm",inheritAttrs:!1,props:(0,A.A)(re(),{layout:"horizontal",hideRequiredMark:!1,colon:!0}),Item:u.A,useForm:K,setup(e,t){let{emit:n,slots:a,expose:u,attrs:f}=t;const{prefixCls:g,direction:m,form:v,size:y,disabled:b}=(0,C.A)("form",e),_=(0,i.computed)((()=>""===e.requiredMark||e.requiredMark)),x=(0,i.computed)((()=>{var t;return void 0!==_.value?_.value:v&&void 0!==(null===(t=v.value)||void 0===t?void 0:t.requiredMark)?v.value.requiredMark:!e.hideRequiredMark}));(0,te.A)(y),(0,ne.Z)(b);const w=(0,i.computed)((()=>{var t,n;return null!==(t=e.colon)&&void 0!==t?t:null===(n=v.value)||void 0===n?void 0:n.colon})),{validateMessages:O}=(0,J.M7)(),A=(0,i.computed)((()=>(0,o.A)((0,o.A)((0,o.A)({},d.y),O.value),e.validateMessages))),[k,T]=(0,ee.A)(g),P=(0,i.computed)((()=>(0,s.A)(g.value,{[`${g.value}-${e.layout}`]:!0,[`${g.value}-hide-required-mark`]:!1===x.value,[`${g.value}-rtl`]:"rtl"===m.value,[`${g.value}-${y.value}`]:y.value},T.value))),I=(0,i.ref)(),$={},E=(e,t)=>{$[e]=t},D=e=>{delete $[e]},R=e=>{const t=!!e,n=t?(0,p.$)(e).map(c.XK):[];return t?Object.values($).filter((e=>n.findIndex((t=>oe(t,e.fieldName.value)))>-1)):Object.values($)},N=t=>{e.model?R(t).forEach((e=>{e.resetField()})):(0,l.Ay)(!1,"Form","model is required for resetFields to work.")},L=e=>{R(e).forEach((e=>{e.clearValidate()}))},z=t=>{const{scrollToFirstError:r}=e;if(n("finishFailed",t),r&&t.errorFields.length){let e={};"object"===typeof r&&(e=r),B(t.errorFields[0].name,e)}},V=function(){return F(...arguments)},B=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=R(e?[e]:void 0);if(n.length){const e=n[0].fieldId.value,r=e?document.getElementById(e):null;r&&S(r,(0,o.A)({scrollMode:"if-needed",block:"nearest"},t))}},j=function(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!0===t){const t=[];return Object.values($).forEach((e=>{let{namePath:n}=e;t.push(n.value)})),(0,c.fm)(e.model,t)}return(0,c.fm)(e.model,t)},Q=(t,n)=>{if((0,l.Ay)(!(t instanceof Function),"Form","validateFields/validateField/validate not support callback, please use promise instead"),!e.model)return(0,l.Ay)(!1,"Form","model is required for validateFields to work."),Promise.reject("Form `model` is required for validateFields to work.");const r=!!t,i=r?(0,p.$)(t).map(c.XK):[],a=[];Object.values($).forEach((e=>{var t;if(r||i.push(e.namePath.value),!(null===(t=e.rules)||void 0===t?void 0:t.value.length))return;const s=e.namePath.value;if(!r||(0,c.Ah)(i,s)){const t=e.validateRules((0,o.A)({validateMessages:A.value},n));a.push(t.then((()=>({name:s,errors:[],warnings:[]}))).catch((e=>{const t=[],n=[];return e.forEach((e=>{let{rule:{warningOnly:r},errors:o}=e;r?n.push(...o):t.push(...o)})),t.length?Promise.reject({name:s,errors:t,warnings:n}):{name:s,errors:t,warnings:n}})))}}));const s=h(a);I.value=s;const u=s.then((()=>I.value===s?Promise.resolve(j(i)):Promise.reject([]))).catch((e=>{const t=e.filter((e=>e&&e.errors.length));return Promise.reject({values:j(i),errorFields:t,outOfDate:I.value!==s})}));return u.catch((e=>e)),u},F=function(){return Q(...arguments)},W=t=>{if(t.preventDefault(),t.stopPropagation(),n("submit",t),e.model){const e=Q();e.then((e=>{n("finish",e)})).catch((e=>{z(e)}))}};return u({resetFields:N,clearValidate:L,validateFields:Q,getFieldsValue:j,validate:V,scrollToField:B}),(0,M.Tc)({model:(0,i.computed)((()=>e.model)),name:(0,i.computed)((()=>e.name)),labelAlign:(0,i.computed)((()=>e.labelAlign)),labelCol:(0,i.computed)((()=>e.labelCol)),labelWrap:(0,i.computed)((()=>e.labelWrap)),wrapperCol:(0,i.computed)((()=>e.wrapperCol)),vertical:(0,i.computed)((()=>"vertical"===e.layout)),colon:w,requiredMark:x,validateTrigger:(0,i.computed)((()=>e.validateTrigger)),rules:(0,i.computed)((()=>e.rules)),addField:E,removeField:D,onValidate:(e,t,r)=>{n("validate",e,t,r)},validateMessages:A}),(0,i.watch)((()=>e.rules),(()=>{e.validateOnRuleChange&&Q()})),()=>{var e;return k((0,i.createVNode)("form",(0,r.A)((0,r.A)({},f),{},{onSubmit:W,class:[P.value,f.class]}),[null===(e=a.default)||void 0===e?void 0:e.call(a)]))}}});var ae=ie,se=n(35162);ae.useInjectFormItemContext=se.db,ae.ItemRest=se.Ay,ae.install=function(e){return e.component(ae.name,ae),e.component(ae.Item.name,ae.Item),e.component(se.Ay.name,se.Ay),e};var le=ae},327:function(e,t,n){"use strict";n.d(t,{A:function(){return _}});var r=n(98657),o=n(41781),i=n(86049),a=n(94471),s=n(96704),l=n(69729);const u=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut},\n opacity ${e.motionDurationSlow} ${e.motionEaseInOut},\n transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,["&-active"]:{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}};var c=u;const d=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},label:{fontSize:e.fontSize},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},["input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus"]:{outline:0,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),h=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},p=e=>{const{componentCls:t}=e;return{[e.componentCls]:(0,r.A)((0,r.A)((0,r.A)({},(0,l.dF)(e)),d(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":(0,r.A)({},h(e,e.controlHeightSM)),"&-large":(0,r.A)({},h(e,e.controlHeightLG))})}},f=e=>{const{formItemCls:t,iconCls:n,componentCls:i,rootPrefixCls:a}=e;return{[t]:(0,r.A)((0,r.A)({},(0,l.dF)(e)),{marginBottom:e.marginLG,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,\n &-hidden.${a}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{display:"inline-block",flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${e.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:e.controlHeight,color:e.colorTextHeading,fontSize:e.fontSize,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:e.colorError,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${i}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${i}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:e.marginXXS/2,marginInlineEnd:e.marginXS},[`&${t}-no-colon::after`]:{content:'" "'}}},[`${t}-control`]:{display:"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${a}-col-'"]):not([class*="' ${a}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:o.nF,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},g=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label.${r}-col-24 + ${n}-control`]:{minWidth:"unset"}}}},m=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",flexWrap:"nowrap",marginInlineEnd:e.margin,marginBottom:0,"&-with-help":{marginBottom:e.marginLG},[`> ${n}-label,\n > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},v=e=>({margin:0,padding:`0 0 ${e.paddingXS}px`,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{display:"none"}}}),y=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${n} ${n}-label`]:v(e),[t]:{[n]:{flexWrap:"wrap",[`${n}-label,\n ${n}-control`]:{flex:"0 0 100%",maxWidth:"100%"}}}}},b=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${t}-vertical`]:{[n]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${t}-item-control`]:{width:"100%"}}},[`${t}-vertical ${n}-label,\n .${r}-col-24${n}-label,\n .${r}-col-xl-24${n}-label`]:v(e),[`@media (max-width: ${e.screenXSMax}px)`]:[y(e),{[t]:{[`.${r}-col-xs-24${n}-label`]:v(e)}}],[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{[`.${r}-col-sm-24${n}-label`]:v(e)}},[`@media (max-width: ${e.screenMDMax}px)`]:{[t]:{[`.${r}-col-md-24${n}-label`]:v(e)}},[`@media (max-width: ${e.screenLGMax}px)`]:{[t]:{[`.${r}-col-lg-24${n}-label`]:v(e)}}}};var _=(0,a.A)("Form",((e,t)=>{let{rootPrefixCls:n}=t;const r=(0,s.h1)(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:n});return[p(r),f(r),c(r),g(r),m(r),b(r),(0,i.A)(r),o.nF]}))},30246:function(e,t,n){"use strict";n.d(t,{y:function(){return o}});const r="'${name}' is not a valid ${type}",o={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:r,method:r,array:r,object:r,number:r,date:r,boolean:r,integer:r,float:r,regexp:r,email:r,url:r,hex:r},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}}},3778:function(e,t,n){"use strict";function r(e){return void 0===e||null===e?[]:Array.isArray(e)?e:[e]}n.d(t,{$:function(){return r}})},92423:function(e,t,n){"use strict";n.d(t,{W:function(){return fe}});var r=n(98657);n(30381);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,s(e,t)}function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}function l(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function u(e,t,n){return u=l()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=Function.bind.apply(e,r),i=new o;return n&&s(i,n.prototype),i},u.apply(null,arguments)}function c(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function d(e){var t="function"===typeof Map?new Map:void 0;return d=function(e){if(null===e||!c(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return u(e,arguments,a(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),s(n,e)},d(e)}var h=/%[sdj%]/g,p=function(){};function f(e){if(!e||!e.length)return null;var t={};return e.forEach((function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)})),t}function g(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i=n.length;if("function"===typeof e)return e.apply(null,n);if("string"===typeof e){var a=e.replace(h,(function(e){if("%%"===e)return"%";if(o>=i)return e;switch(e){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch(t){return"[Circular]"}break;default:return e}}));return a}return e}function m(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}function v(e,t){return void 0===e||null===e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!m(t)||"string"!==typeof e||e))}function y(e,t,n){var r=[],o=0,i=e.length;function a(e){r.push.apply(r,e||[]),o++,o===i&&n(r)}e.forEach((function(e){t(e,a)}))}function b(e,t,n){var r=0,o=e.length;function i(a){if(a&&a.length)n(a);else{var s=r;r+=1,s<o?t(e[s],i):n([])}}i([])}function _(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,e[n]||[])})),t}var x=function(e){function t(t,n){var r;return r=e.call(this,"Async Validation Error")||this,r.errors=t,r.fields=n,r}return i(t,e),t}(d(Error));function w(e,t,n,r,o){if(t.first){var i=new Promise((function(t,i){var a=function(e){return r(e),e.length?i(new x(e,f(e))):t(o)},s=_(e);b(s,n,a)}));return i["catch"]((function(e){return e})),i}var a=!0===t.firstFields?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,u=0,c=[],d=new Promise((function(t,i){var d=function(e){if(c.push.apply(c,e),u++,u===l)return r(c),c.length?i(new x(c,f(c))):t(o)};s.length||(r(c),t(o)),s.forEach((function(t){var r=e[t];-1!==a.indexOf(t)?b(r,n,d):y(r,n,d)}))}));return d["catch"]((function(e){return e})),d}function O(e){return!(!e||void 0===e.message)}function S(e,t){for(var n=e,r=0;r<t.length;r++){if(void 0==n)return n;n=n[t[r]]}return n}function A(e,t){return function(n){var r;return r=e.fullFields?S(t,e.fullFields):t[n.field||e.fullField],O(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:"function"===typeof n?n():n,fieldValue:r,field:n.field||e.fullField}}}function k(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"===typeof r&&"object"===typeof e[n]?e[n]=o({},e[n],r):e[n]=r}return e}var C,M=function(e,t,n,r,o,i){!e.required||n.hasOwnProperty(e.field)&&!v(t,i||e.type)||r.push(g(o.messages.required,e.fullField))},T=function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(g(o.messages.whitespace,e.fullField))},P=function(){if(C)return C;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=("\n(?:\n(?:"+r+":){7}(?:"+r+"|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:"+r+":){6}(?:"+n+"|:"+r+"|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:"+r+":){5}(?::"+n+"|(?::"+r+"){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:"+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+"){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:"+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+"){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:"+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+"){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:"+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+"){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::"+r+"){0,5}:"+n+"|(?::"+r+"){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),i=new RegExp("(?:^"+n+"$)|(?:^"+o+"$)"),a=new RegExp("^"+n+"$"),s=new RegExp("^"+o+"$"),l=function(e){return e&&e.exact?i:new RegExp("(?:"+t(e)+n+t(e)+")|(?:"+t(e)+o+t(e)+")","g")};l.v4=function(e){return e&&e.exact?a:new RegExp(""+t(e)+n+t(e),"g")},l.v6=function(e){return e&&e.exact?s:new RegExp(""+t(e)+o+t(e),"g")};var u="(?:(?:[a-z]+:)?//)",c="(?:\\S+(?::\\S*)?@)?",d=l.v4().source,h=l.v6().source,p="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",f="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",g="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",m="(?::\\d{2,5})?",v='(?:[/?#][^\\s"]*)?',y="(?:"+u+"|www\\.)"+c+"(?:localhost|"+d+"|"+h+"|"+p+f+g+")"+m+v;return C=new RegExp("(?:^"+y+"$)","i"),C},I={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},$={integer:function(e){return $.number(e)&&parseInt(e,10)===e},float:function(e){return $.number(e)&&!$.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(t){return!1}},date:function(e){return"function"===typeof e.getTime&&"function"===typeof e.getMonth&&"function"===typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"===typeof e},object:function(e){return"object"===typeof e&&!$.array(e)},method:function(e){return"function"===typeof e},email:function(e){return"string"===typeof e&&e.length<=320&&!!e.match(I.email)},url:function(e){return"string"===typeof e&&e.length<=2048&&!!e.match(P())},hex:function(e){return"string"===typeof e&&!!e.match(I.hex)}},E=function(e,t,n,r,o){if(e.required&&void 0===t)M(e,t,n,r,o);else{var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],a=e.type;i.indexOf(a)>-1?$[a](t)||r.push(g(o.messages.types[a],e.fullField,e.type)):a&&typeof t!==e.type&&r.push(g(o.messages.types[a],e.fullField,e.type))}},D=function(e,t,n,r,o){var i="number"===typeof e.len,a="number"===typeof e.min,s="number"===typeof e.max,l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=t,c=null,d="number"===typeof t,h="string"===typeof t,p=Array.isArray(t);if(d?c="number":h?c="string":p&&(c="array"),!c)return!1;p&&(u=t.length),h&&(u=t.replace(l,"_").length),i?u!==e.len&&r.push(g(o.messages[c].len,e.fullField,e.len)):a&&!s&&u<e.min?r.push(g(o.messages[c].min,e.fullField,e.min)):s&&!a&&u>e.max?r.push(g(o.messages[c].max,e.fullField,e.max)):a&&s&&(u<e.min||u>e.max)&&r.push(g(o.messages[c].range,e.fullField,e.min,e.max))},R="enum",N=function(e,t,n,r,o){e[R]=Array.isArray(e[R])?e[R]:[],-1===e[R].indexOf(t)&&r.push(g(o.messages[R],e.fullField,e[R].join(", ")))},L=function(e,t,n,r,o){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(g(o.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"===typeof e.pattern){var i=new RegExp(e.pattern);i.test(t)||r.push(g(o.messages.pattern.mismatch,e.fullField,t,e.pattern))}},z={required:M,whitespace:T,type:E,range:D,enum:N,pattern:L},V=function(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(v(t,"string")&&!e.required)return n();z.required(e,t,r,i,o,"string"),v(t,"string")||(z.type(e,t,r,i,o),z.range(e,t,r,i,o),z.pattern(e,t,r,i,o),!0===e.whitespace&&z.whitespace(e,t,r,i,o))}n(i)},B=function(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(v(t)&&!e.required)return n();z.required(e,t,r,i,o),void 0!==t&&z.type(e,t,r,i,o)}n(i)},j=function(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(""===t&&(t=void 0),v(t)&&!e.required)return n();z.required(e,t,r,i,o),void 0!==t&&(z.type(e,t,r,i,o),z.range(e,t,r,i,o))}n(i)},Q=function(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(v(t)&&!e.required)return n();z.required(e,t,r,i,o),void 0!==t&&z.type(e,t,r,i,o)}n(i)},F=function(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(v(t)&&!e.required)return n();z.required(e,t,r,i,o),v(t)||z.type(e,t,r,i,o)}n(i)},W=function(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(v(t)&&!e.required)return n();z.required(e,t,r,i,o),void 0!==t&&(z.type(e,t,r,i,o),z.range(e,t,r,i,o))}n(i)},H=function(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(v(t)&&!e.required)return n();z.required(e,t,r,i,o),void 0!==t&&(z.type(e,t,r,i,o),z.range(e,t,r,i,o))}n(i)},Z=function(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if((void 0===t||null===t)&&!e.required)return n();z.required(e,t,r,i,o,"array"),void 0!==t&&null!==t&&(z.type(e,t,r,i,o),z.range(e,t,r,i,o))}n(i)},G=function(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(v(t)&&!e.required)return n();z.required(e,t,r,i,o),void 0!==t&&z.type(e,t,r,i,o)}n(i)},X="enum",U=function(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(v(t)&&!e.required)return n();z.required(e,t,r,i,o),void 0!==t&&z[X](e,t,r,i,o)}n(i)},Y=function(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(v(t,"string")&&!e.required)return n();z.required(e,t,r,i,o),v(t,"string")||z.pattern(e,t,r,i,o)}n(i)},q=function(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(v(t,"date")&&!e.required)return n();var s;if(z.required(e,t,r,i,o),!v(t,"date"))s=t instanceof Date?t:new Date(t),z.type(e,s,r,i,o),s&&z.range(e,s.getTime(),r,i,o)}n(i)},K=function(e,t,n,r,o){var i=[],a=Array.isArray(t)?"array":typeof t;z.required(e,t,r,i,o,a),n(i)},J=function(e,t,n,r,o){var i=e.type,a=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(v(t,i)&&!e.required)return n();z.required(e,t,r,a,o,i),v(t,i)||z.type(e,t,r,a,o)}n(a)},ee=function(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(v(t)&&!e.required)return n();z.required(e,t,r,i,o)}n(i)},te={string:V,method:B,number:j,boolean:Q,regexp:F,integer:W,float:H,array:Z,object:G,enum:U,pattern:Y,date:q,url:J,hex:J,email:J,required:K,any:ee};function ne(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var re=ne(),oe=function(){function e(e){this.rules=null,this._messages=re,this.define(e)}var t=e.prototype;return t.define=function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==typeof e||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach((function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]}))},t.messages=function(e){return e&&(this._messages=k(ne(),e)),this._messages},t.validate=function(t,n,r){var i=this;void 0===n&&(n={}),void 0===r&&(r=function(){});var a=t,s=n,l=r;if("function"===typeof s&&(l=s,s={}),!this.rules||0===Object.keys(this.rules).length)return l&&l(null,a),Promise.resolve(a);function u(e){var t=[],n={};function r(e){var n;Array.isArray(e)?t=(n=t).concat.apply(n,e):t.push(e)}for(var o=0;o<e.length;o++)r(e[o]);t.length?(n=f(t),l(t,n)):l(null,a)}if(s.messages){var c=this.messages();c===re&&(c=ne()),k(c,s.messages),s.messages=c}else s.messages=this.messages();var d={},h=s.keys||Object.keys(this.rules);h.forEach((function(e){var n=i.rules[e],r=a[e];n.forEach((function(n){var s=n;"function"===typeof s.transform&&(a===t&&(a=o({},a)),r=a[e]=s.transform(r)),s="function"===typeof s?{validator:s}:o({},s),s.validator=i.getValidationMethod(s),s.validator&&(s.field=e,s.fullField=s.fullField||e,s.type=i.getType(s),d[e]=d[e]||[],d[e].push({rule:s,value:r,source:a,field:e}))}))}));var p={};return w(d,s,(function(t,n){var r,i=t.rule,l=("object"===i.type||"array"===i.type)&&("object"===typeof i.fields||"object"===typeof i.defaultField);function u(e,t){return o({},t,{fullField:i.fullField+"."+e,fullFields:i.fullFields?[].concat(i.fullFields,[e]):[e]})}function c(r){void 0===r&&(r=[]);var c=Array.isArray(r)?r:[r];!s.suppressWarning&&c.length&&e.warning("async-validator:",c),c.length&&void 0!==i.message&&(c=[].concat(i.message));var d=c.map(A(i,a));if(s.first&&d.length)return p[i.field]=1,n(d);if(l){if(i.required&&!t.value)return void 0!==i.message?d=[].concat(i.message).map(A(i,a)):s.error&&(d=[s.error(i,g(s.messages.required,i.field))]),n(d);var h={};i.defaultField&&Object.keys(t.value).map((function(e){h[e]=i.defaultField})),h=o({},h,t.rule.fields);var f={};Object.keys(h).forEach((function(e){var t=h[e],n=Array.isArray(t)?t:[t];f[e]=n.map(u.bind(null,e))}));var m=new e(f);m.messages(s.messages),t.rule.options&&(t.rule.options.messages=s.messages,t.rule.options.error=s.error),m.validate(t.value,t.rule.options||s,(function(e){var t=[];d&&d.length&&t.push.apply(t,d),e&&e.length&&t.push.apply(t,e),n(t.length?t:null)}))}else n(d)}if(l=l&&(i.required||!i.required&&t.value),i.field=t.field,i.asyncValidator)r=i.asyncValidator(i,t.value,c,t.source,s);else if(i.validator){try{r=i.validator(i,t.value,c,t.source,s)}catch(d){null==console.error||console.error(d),s.suppressValidatorError||setTimeout((function(){throw d}),0),c(d.message)}!0===r?c():!1===r?c("function"===typeof i.message?i.message(i.fullField||i.field):i.message||(i.fullField||i.field)+" fails"):r instanceof Array?c(r):r instanceof Error&&c(r.message)}r&&r.then&&r.then((function(){return c()}),(function(e){return c(e)}))}),(function(e){u(e)}),a)},t.getType=function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!==typeof e.validator&&e.type&&!te.hasOwnProperty(e.type))throw new Error(g("Unknown rule type %s",e.type));return e.type||"string"},t.getValidationMethod=function(e){if("function"===typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?te.required:te[this.getType(e)]||void 0},e}();oe.register=function(e,t){if("function"!==typeof t)throw new Error("Cannot register a validator by type, validator is not a function");te[e]=t},oe.warning=p,oe.messages=re,oe.validators=te;var ie=n(9274),ae=n(52002),se=n(13798),le=n(30246),ue=n(16155),ce=function(e,t,n,r){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function a(e){try{l(r.next(e))}catch(t){i(t)}}function s(e){try{l(r["throw"](e))}catch(t){i(t)}}function l(e){e.done?n(e.value):o(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())}))};const de=oe;function he(e,t){return e.replace(/\$\{\w+\}/g,(e=>{const n=e.slice(2,-1);return t[n]}))}function pe(e,t,n,o,i){return ce(this,void 0,void 0,(function*(){const a=(0,r.A)({},n);delete a.ruleIndex,delete a.trigger;let s=null;a&&"array"===a.type&&a.defaultField&&(s=a.defaultField,delete a.defaultField);const l=new de({[e]:[a]}),u=(0,se.VI)({},le.y,o.validateMessages);l.messages(u);let c=[];try{yield Promise.resolve(l.validate({[e]:t},(0,r.A)({},o)))}catch(p){p.errors?c=p.errors.map(((e,t)=>{let{message:n}=e;return(0,ue.zO)(n)?(0,ie.cloneVNode)(n,{key:`error_${t}`}):n})):(console.error(p),c=[u.default()])}if(!c.length&&s){const n=yield Promise.all(t.map(((t,n)=>pe(`${e}.${n}`,t,s,o,i))));return n.reduce(((e,t)=>[...e,...t]),[])}const d=(0,r.A)((0,r.A)((0,r.A)({},n),{name:e,enum:(n.enum||[]).join(", ")}),i),h=c.map((e=>"string"===typeof e?he(e,d):e));return h}))}function fe(e,t,n,o,i,a){const s=e.join("."),l=n.map(((e,t)=>{const n=e.validator,o=(0,r.A)((0,r.A)({},e),{ruleIndex:t});return n&&(o.validator=(e,t,r)=>{let o=!1;const i=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Promise.resolve().then((()=>{(0,ae.$e)(!o,"Your validator function has already return a promise. `callback` will be ignored."),o||r(...t)}))},a=n(e,t,i);o=a&&"function"===typeof a.then&&"function"===typeof a.catch,(0,ae.$e)(o,"`callback` is deprecated. Please return a promise instead."),o&&a.then((()=>{r()})).catch((e=>{r(e||" ")}))}),o})).sort(((e,t)=>{let{warningOnly:n,ruleIndex:r}=e,{warningOnly:o,ruleIndex:i}=t;return!!n===!!o?r-i:n?1:-1}));let u;if(!0===i)u=new Promise(((e,n)=>ce(this,void 0,void 0,(function*(){for(let e=0;e<l.length;e+=1){const r=l[e],i=yield pe(s,t,r,o,a);if(i.length)return void n([{errors:i,rule:r}])}e([])}))));else{const e=l.map((e=>pe(s,t,e,o,a).then((t=>({errors:t,rule:e})))));u=(i?me(e):ge(e)).then((e=>Promise.reject(e)))}return u.catch((e=>e)),u}function ge(e){return ce(this,void 0,void 0,(function*(){return Promise.all(e).then((e=>{const t=[].concat(...e);return t}))}))}function me(e){return ce(this,void 0,void 0,(function*(){let t=0;return new Promise((n=>{e.forEach((r=>{r.then((r=>{r.errors.length&&n([r]),t+=1,t===e.length&&n([])}))}))}))}))}},13798:function(e,t,n){"use strict";n.d(t,{fm:function(){return g},Ah:function(){return d},XK:function(){return l},VI:function(){return f}});var r=n(98657),o=n(3778);function i(e,t){let n=e;for(let r=0;r<t.length;r+=1){if(null===n||void 0===n)return;n=n[t[r]]}return n}function a(e,t,n,o){if(!t.length)return n;const[i,...s]=t;let l;return l=e||"number"!==typeof i?Array.isArray(e)?[...e]:(0,r.A)({},e):[],o&&void 0===n&&1===s.length?delete l[i][s[0]]:l[i]=a(l[i],s,n,o),l}function s(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!i(e,t.slice(0,-1))?e:a(e,t,n,r)}function l(e){return(0,o.$)(e)}function u(e,t){const n=i(e,t);return n}function c(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const o=s(e,t,n,r);return o}function d(e,t){return e&&e.some((e=>m(e,t)))}function h(e){return"object"===typeof e&&null!==e&&Object.getPrototypeOf(e)===Object.prototype}function p(e,t){const n=Array.isArray(e)?[...e]:(0,r.A)({},e);return t?(Object.keys(t).forEach((e=>{const r=n[e],o=t[e],i=h(r)&&h(o);n[e]=i?p(r,o||{}):o})),n):n}function f(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.reduce(((e,t)=>p(e,t)),e)}function g(e,t){let n={};return t.forEach((t=>{const r=u(e,t);n=c(n,t,r)})),n}function m(e,t){return!(!e||!t||e.length!==t.length)&&e.every(((e,n)=>t[n]===e))}},26347:function(e,t,n){"use strict";n.d(t,{A:function(){return se}});var r=n(69751),o=n(98657),i=n(9274),a=n(13389),s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},l=s,u=n(29847);function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){d(e,t,n[t])}))}return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=function(e,t){var n=c({},e,t.attrs);return(0,i.createVNode)(u.A,c({},n,{icon:l}),null)};h.displayName="UpOutlined",h.inheritAttrs=!1;var p=h,f=n(27577);function g(){return"function"===typeof BigInt}function m(e){let t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t=`0${t}`);const r=t||"0",o=r.split("."),i=o[0]||"0",a=o[1]||"0";"0"===i&&"0"===a&&(n=!1);const s=n?"-":"";return{negative:n,negativeStr:s,trimStr:r,integerStr:i,decimalStr:a,fullStr:`${s}${r}`}}function v(e){const t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function y(e){const t=String(e);if(v(e)){let e=Number(t.slice(t.indexOf("e-")+2));const n=t.match(/\.(\d+)/);return(null===n||void 0===n?void 0:n[1])&&(e+=n[1].length),e}return t.includes(".")&&_(t)?t.length-t.indexOf(".")-1:0}function b(e){let t=String(e);if(v(e)){if(e>Number.MAX_SAFE_INTEGER)return String(g()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(g()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(y(t))}return m(t).fullStr}function _(e){return"number"===typeof e?!Number.isNaN(e):!!e&&(/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e))}function x(e){return!e&&0!==e&&!Number.isNaN(e)||!String(e).trim()}class w{constructor(e){this.origin="",x(e)?this.empty=!0:(this.origin=String(e),this.number=Number(e))}negate(){return new w(-this.toNumber())}add(e){if(this.isInvalidate())return new w(e);const t=Number(e);if(Number.isNaN(t))return this;const n=this.number+t;if(n>Number.MAX_SAFE_INTEGER)return new w(Number.MAX_SAFE_INTEGER);if(n<Number.MIN_SAFE_INTEGER)return new w(Number.MIN_SAFE_INTEGER);const r=Math.max(y(this.number),y(t));return new w(n.toFixed(r))}isEmpty(){return this.empty}isNaN(){return Number.isNaN(this.number)}isInvalidate(){return this.isEmpty()||this.isNaN()}equals(e){return this.toNumber()===(null===e||void 0===e?void 0:e.toNumber())}lessEquals(e){return this.add(e.negate().toString()).toNumber()<=0}toNumber(){return this.number}toString(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return e?this.isInvalidate()?"":b(this.number):this.origin}}class O{constructor(e){if(this.origin="",x(e))return void(this.empty=!0);if(this.origin=String(e),"-"===e||Number.isNaN(e))return void(this.nan=!0);let t=e;if(v(t)&&(t=Number(t)),t="string"===typeof t?t:b(t),_(t)){const e=m(t);this.negative=e.negative;const n=e.trimStr.split(".");this.integer=BigInt(n[0]);const r=n[1]||"0";this.decimal=BigInt(r),this.decimalLen=r.length}else this.nan=!0}getMark(){return this.negative?"-":""}getIntegerStr(){return this.integer.toString()}getDecimalStr(){return this.decimal.toString().padStart(this.decimalLen,"0")}alignDecimal(e){const t=`${this.getMark()}${this.getIntegerStr()}${this.getDecimalStr().padEnd(e,"0")}`;return BigInt(t)}negate(){const e=new O(this.toString());return e.negative=!e.negative,e}add(e){if(this.isInvalidate())return new O(e);const t=new O(e);if(t.isInvalidate())return this;const n=Math.max(this.getDecimalStr().length,t.getDecimalStr().length),r=this.alignDecimal(n),o=t.alignDecimal(n),i=(r+o).toString(),{negativeStr:a,trimStr:s}=m(i),l=`${a}${s.padStart(n+1,"0")}`;return new O(`${l.slice(0,-n)}.${l.slice(-n)}`)}isEmpty(){return this.empty}isNaN(){return this.nan}isInvalidate(){return this.isEmpty()||this.isNaN()}equals(e){return this.toString()===(null===e||void 0===e?void 0:e.toString())}lessEquals(e){return this.add(e.negate().toString()).toNumber()<=0}toNumber(){return this.isNaN()?NaN:Number(this.toString())}toString(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return e?this.isInvalidate()?"":m(`${this.getMark()}${this.getIntegerStr()}.${this.getDecimalStr()}`).fullStr:this.origin}}function S(e){return g()?new O(e):new w(e)}function A(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(""===e)return"";const{negativeStr:o,integerStr:i,decimalStr:a}=m(e),s=`${t}${a}`,l=`${o}${i}`;if(n>=0){const i=Number(a[n]);if(i>=5&&!r){const a=S(e).add(`${o}0.${"0".repeat(n)}${10-i}`);return A(a.toString(),t,n,r)}return 0===n?l:`${l}${t}${a.padEnd(n,"0").slice(0,n)}`}return".0"===s?l:`${l}${s}`}var k=n(72510),C=n(66041);const M=200,T=600;var P=(0,i.defineComponent)({compatConfig:{MODE:3},name:"StepHandler",inheritAttrs:!1,props:{prefixCls:String,upDisabled:Boolean,downDisabled:Boolean,onStep:(0,C.Fg)()},slots:Object,setup(e,t){let{slots:n,emit:o}=t;const s=(0,i.ref)(),l=(e,t)=>{function n(){o("step",t),s.value=setTimeout(n,M)}e.preventDefault(),o("step",t),s.value=setTimeout(n,T)},u=()=>{clearTimeout(s.value)};return(0,i.onBeforeUnmount)((()=>{u()})),()=>{if((0,k.A)())return null;const{prefixCls:t,upDisabled:o,downDisabled:s}=e,c=`${t}-handler`,d=(0,a.A)(c,`${c}-up`,{[`${c}-up-disabled`]:o}),h=(0,a.A)(c,`${c}-down`,{[`${c}-down-disabled`]:s}),p={unselectable:"on",role:"button",onMouseup:u,onMouseleave:u},{upNode:f,downNode:g}=n;return(0,i.createVNode)("div",{class:`${c}-wrap`},[(0,i.createVNode)("span",(0,r.A)((0,r.A)({},p),{},{onMousedown:e=>{l(e,!0)},"aria-label":"Increase Value","aria-disabled":o,class:d}),[(null===f||void 0===f?void 0:f())||(0,i.createVNode)("span",{unselectable:"on",class:`${t}-handler-up-inner`},null)]),(0,i.createVNode)("span",(0,r.A)((0,r.A)({},p),{},{onMousedown:e=>{l(e,!1)},"aria-label":"Decrease Value","aria-disabled":s,class:h}),[(null===g||void 0===g?void 0:g())||(0,i.createVNode)("span",{unselectable:"on",class:`${t}-handler-down-inner`},null)])])}}}),I=n(52002);function $(e,t){const n=(0,i.ref)(null);function r(){try{const{selectionStart:t,selectionEnd:r,value:o}=e.value,i=o.substring(0,t),a=o.substring(r);n.value={start:t,end:r,value:o,beforeTxt:i,afterTxt:a}}catch(t){}}function o(){if(e.value&&n.value&&t.value)try{const{value:t}=e.value,{beforeTxt:r,afterTxt:o,start:i}=n.value;let a=t.length;if(t.endsWith(o))a=t.length-n.value.afterTxt.length;else if(t.startsWith(r))a=r.length;else{const e=r[i-1],n=t.indexOf(e,i-1);-1!==n&&(a=n+1)}e.value.setSelectionRange(a,a)}catch(r){(0,I.$e)(!1,`Something warning of cursor restore. Please fire issue about this: ${r.message}`)}}return[r,o]}var E=n(38624),D=()=>{const e=(0,i.shallowRef)(0),t=()=>{E.A.cancel(e.value)};return(0,i.onBeforeUnmount)((()=>{t()})),n=>{t(),e.value=(0,E.A)((()=>{n()}))}},R=n(5347),N=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const L=(e,t)=>e||t.isEmpty()?t.toString():t.toNumber(),z=e=>{const t=S(e);return t.isInvalidate()?null:t},V=()=>({stringMode:(0,C.HE)(),defaultValue:(0,C.tK)([String,Number]),value:(0,C.tK)([String,Number]),prefixCls:(0,C.WO)(),min:(0,C.tK)([String,Number]),max:(0,C.tK)([String,Number]),step:(0,C.tK)([String,Number],1),tabindex:Number,controls:(0,C.HE)(!0),readonly:(0,C.HE)(),disabled:(0,C.HE)(),autofocus:(0,C.HE)(),keyboard:(0,C.HE)(!0),parser:(0,C.Fg)(),formatter:(0,C.Fg)(),precision:Number,decimalSeparator:String,onInput:(0,C.Fg)(),onChange:(0,C.Fg)(),onPressEnter:(0,C.Fg)(),onStep:(0,C.Fg)(),onBlur:(0,C.Fg)(),onFocus:(0,C.Fg)()});var B=(0,i.defineComponent)({compatConfig:{MODE:3},name:"InnerInputNumber",inheritAttrs:!1,props:(0,o.A)((0,o.A)({},V()),{lazy:Boolean}),slots:Object,setup(e,t){let{attrs:n,slots:s,emit:l,expose:u}=t;const c=(0,i.shallowRef)(),d=(0,i.shallowRef)(!1),h=(0,i.shallowRef)(!1),p=(0,i.shallowRef)(!1),f=(0,i.shallowRef)(S(e.value));function g(t){void 0===e.value&&(f.value=t)}const m=(t,n)=>{if(!n)return e.precision>=0?e.precision:Math.max(y(t),y(e.step))},v=t=>{const n=String(t);if(e.parser)return e.parser(n);let r=n;return e.decimalSeparator&&(r=r.replace(e.decimalSeparator,".")),r.replace(/[^\w.-]+/g,"")},x=(0,i.shallowRef)(""),w=(t,n)=>{if(e.formatter)return e.formatter(t,{userTyping:n,input:String(x.value)});let r="number"===typeof t?b(t):t;if(!n){const t=m(r,n);if(_(r)&&(e.decimalSeparator||t>=0)){const n=e.decimalSeparator||".";r=A(r,n,t)}}return r},O=(()=>{const t=e.value;return f.value.isInvalidate()&&["string","number"].includes(typeof t)?Number.isNaN(t)?"":t:w(f.value.toString(),!1)})();function k(e,t){x.value=w(e.isInvalidate()?e.toString(!1):e.toString(!t),t)}x.value=O;const C=(0,i.computed)((()=>z(e.max))),M=(0,i.computed)((()=>z(e.min))),T=(0,i.computed)((()=>!(!C.value||!f.value||f.value.isInvalidate())&&C.value.lessEquals(f.value))),I=(0,i.computed)((()=>!(!M.value||!f.value||f.value.isInvalidate())&&f.value.lessEquals(M.value))),[E,V]=$(c,d),B=e=>C.value&&!e.lessEquals(C.value)?C.value:M.value&&!M.value.lessEquals(e)?M.value:null,j=e=>!B(e),Q=(t,n)=>{var r;let o=t,i=j(o)||o.isEmpty();if(o.isEmpty()||n||(o=B(o)||o,i=!0),!e.readonly&&!e.disabled&&i){const t=o.toString(),i=m(t,n);return i>=0&&(o=S(A(t,".",i))),o.equals(f.value)||(g(o),null===(r=e.onChange)||void 0===r||r.call(e,o.isEmpty()?null:L(e.stringMode,o)),void 0===e.value&&k(o,n)),o}return f.value},F=D(),W=t=>{var n;if(E(),x.value=t,!p.value){const e=v(t),n=S(e);n.isNaN()||Q(n,!0)}null===(n=e.onInput)||void 0===n||n.call(e,t),F((()=>{let n=t;e.parser||(n=t.replace(/。/g,".")),n!==t&&W(n)}))},H=()=>{p.value=!0},Z=()=>{p.value=!1,W(c.value.value)},G=e=>{W(e.target.value)},X=t=>{var n,r;if(t&&T.value||!t&&I.value)return;h.value=!1;let o=S(e.step);t||(o=o.negate());const i=(f.value||S(0)).add(o.toString()),a=Q(i,!1);null===(n=e.onStep)||void 0===n||n.call(e,L(e.stringMode,a),{offset:e.step,type:t?"up":"down"}),null===(r=c.value)||void 0===r||r.focus()},U=t=>{const n=S(v(x.value));let r=n;r=n.isNaN()?f.value:Q(n,t),void 0!==e.value?k(f.value,!1):r.isNaN()||k(r,!1)},Y=t=>{var n;const{which:r}=t;h.value=!0,r===R.A.ENTER&&(p.value||(h.value=!1),U(!1),null===(n=e.onPressEnter)||void 0===n||n.call(e,t)),!1!==e.keyboard&&!p.value&&[R.A.UP,R.A.DOWN].includes(r)&&(X(R.A.UP===r),t.preventDefault())},q=()=>{h.value=!1},K=e=>{U(!1),d.value=!1,h.value=!1,l("blur",e)};return(0,i.watch)((()=>e.precision),(()=>{f.value.isInvalidate()||k(f.value,!1)}),{flush:"post"}),(0,i.watch)((()=>e.value),(()=>{const t=S(e.value);f.value=t;const n=S(v(x.value));t.equals(n)&&h.value&&!e.formatter||k(t,h.value)}),{flush:"post"}),(0,i.watch)(x,(()=>{e.formatter&&V()}),{flush:"post"}),(0,i.watch)((()=>e.disabled),(e=>{e&&(d.value=!1)})),u({focus:()=>{var e;null===(e=c.value)||void 0===e||e.focus()},blur:()=>{var e;null===(e=c.value)||void 0===e||e.blur()}}),()=>{const t=(0,o.A)((0,o.A)({},n),e),{prefixCls:u="rc-input-number",min:h,max:p,step:g=1,defaultValue:m,value:v,disabled:y,readonly:b,keyboard:_,controls:w=!0,autofocus:O,stringMode:S,parser:A,formatter:k,precision:C,decimalSeparator:M,onChange:$,onInput:E,onPressEnter:D,onStep:R,lazy:L,class:z,style:V}=t,B=N(t,["prefixCls","min","max","step","defaultValue","value","disabled","readonly","keyboard","controls","autofocus","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","lazy","class","style"]),{upHandler:Q,downHandler:F}=s,W=`${u}-input`,U={};return L?U.onChange=G:U.onInput=G,(0,i.createVNode)("div",{class:(0,a.A)(u,z,{[`${u}-focused`]:d.value,[`${u}-disabled`]:y,[`${u}-readonly`]:b,[`${u}-not-a-number`]:f.value.isNaN(),[`${u}-out-of-range`]:!f.value.isInvalidate()&&!j(f.value)}),style:V,onKeydown:Y,onKeyup:q},[w&&(0,i.createVNode)(P,{prefixCls:u,upDisabled:T.value,downDisabled:I.value,onStep:X},{upNode:Q,downNode:F}),(0,i.createVNode)("div",{class:`${W}-wrap`},[(0,i.createVNode)("input",(0,r.A)((0,r.A)((0,r.A)({autofocus:O,autocomplete:"off",role:"spinbutton","aria-valuemin":h,"aria-valuemax":p,"aria-valuenow":f.value.isInvalidate()?null:f.value.toString(),step:g},B),{},{ref:c,class:W,value:x.value,disabled:y,readonly:b,onFocus:e=>{d.value=!0,l("focus",e)}},U),{},{onBlur:K,onCompositionstart:H,onCompositionend:Z}),null)])])}}}),j=n(35162),Q=n(3551),F=n(87051),W=n(21244),H=n(5530);function Z(e){return void 0!==e&&null!==e}var G=n(64854),X=n(81802),U=n(94471),Y=n(69729),q=n(31222);const K=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorBorder:i,borderRadius:a,fontSizeLG:s,controlHeightLG:l,controlHeightSM:u,colorError:c,inputPaddingHorizontalSM:d,colorTextDescription:h,motionDurationMid:p,colorPrimary:f,controlHeight:g,inputPaddingHorizontal:m,colorBgContainer:v,colorTextDisabled:y,borderRadiusSM:b,borderRadiusLG:_,controlWidth:x,handleVisible:w}=e;return[{[t]:(0,o.A)((0,o.A)((0,o.A)((0,o.A)({},(0,Y.dF)(e)),(0,X.wj)(e)),(0,X.EB)(e,t)),{display:"inline-block",width:x,margin:0,padding:0,border:`${n}px ${r} ${i}`,borderRadius:a,"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:s,borderRadius:_,[`input${t}-input`]:{height:l-2*n}},"&-sm":{padding:0,borderRadius:b,[`input${t}-input`]:{height:u-2*n,padding:`0 ${d}px`}},"&:hover":(0,o.A)({},(0,X.Q)(e)),"&-focused":(0,o.A)({},(0,X.Ut)(e)),"&-disabled":(0,o.A)((0,o.A)({},(0,X.eT)(e)),{[`${t}-input`]:{cursor:"not-allowed"}}),"&-out-of-range":{input:{color:c}},"&-group":(0,o.A)((0,o.A)((0,o.A)({},(0,Y.dF)(e)),(0,X.XM)(e)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:_}},"&-sm":{[`${t}-group-addon`]:{borderRadius:b}}}}),[t]:{"&-input":(0,o.A)((0,o.A)({width:"100%",height:g-2*n,padding:`0 ${m}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:a,outline:0,transition:`all ${p} linear`,appearance:"textfield",color:e.colorText,fontSize:"inherit",verticalAlign:"top"},(0,X.j_)(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:{[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{opacity:1},[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleWidth,height:"100%",background:v,borderStartStartRadius:0,borderStartEndRadius:a,borderEndEndRadius:a,borderEndStartRadius:0,opacity:!0===w?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${p} linear ${p}`,[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:h,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${n}px ${r} ${i}`,transition:`all ${p} linear`,"&:active":{background:e.colorFillAlter},"&:hover":{height:"60%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{color:f}},"&-up-inner, &-down-inner":(0,o.A)((0,o.A)({},(0,Y.Nk)()),{color:h,transition:`all ${p} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:a},[`${t}-handler-down`]:{borderBlockStart:`${n}px ${r} ${i}`,borderEndEndRadius:a},"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"}},[`\n ${t}-handler-up-disabled,\n ${t}-handler-down-disabled\n `]:{cursor:"not-allowed"},[`\n ${t}-handler-up-disabled:hover &-handler-up-inner,\n ${t}-handler-down-disabled:hover &-handler-down-inner\n `]:{color:y}}},{[`${t}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${t}-handler-down`]:{borderBlockStartWidth:0}}}]},J=e=>{const{componentCls:t,inputPaddingHorizontal:n,inputAffixPadding:r,controlWidth:i,borderRadiusLG:a,borderRadiusSM:s}=e;return{[`${t}-affix-wrapper`]:(0,o.A)((0,o.A)((0,o.A)({},(0,X.wj)(e)),(0,X.EB)(e,`${t}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:i,padding:0,paddingInlineStart:n,"&-lg":{borderRadius:a},"&-sm":{borderRadius:s},[`&:not(${t}-affix-wrapper-disabled):hover`]:(0,o.A)((0,o.A)({},(0,X.Q)(e)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},[`input${t}-input`]:{padding:0},"&::before":{width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:r},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:n,marginInlineStart:r}}})}};var ee=(0,U.A)("InputNumber",(e=>{const t=(0,X.C5)(e);return[K(t),J(t),(0,q.G)(t)]}),(e=>({controlWidth:90,handleWidth:e.controlHeightSM-2*e.lineWidth,handleFontSize:e.fontSize/2,handleVisible:"auto"}))),te=n(45507),ne=n(99415),re=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const oe=V(),ie=()=>(0,o.A)((0,o.A)({},oe),{size:(0,C.WO)(),bordered:(0,C.HE)(!0),placeholder:String,name:String,id:String,type:String,addonBefore:H.A.any,addonAfter:H.A.any,prefix:H.A.any,"onUpdate:value":oe.onChange,valueModifiers:Object,status:(0,C.WO)()}),ae=(0,i.defineComponent)({compatConfig:{MODE:3},name:"AInputNumber",inheritAttrs:!1,props:ie(),slots:Object,setup(e,t){let{emit:n,expose:s,attrs:l,slots:u}=t;var c;const d=(0,j.db)(),h=j.$W.useInject(),g=(0,i.computed)((()=>(0,G.v)(h.status,e.status))),{prefixCls:m,size:v,direction:y,disabled:b}=(0,Q.A)("input-number",e),{compactSize:_,compactItemClassnames:x}=(0,te.RQ)(m,y),w=(0,ne.p)(),O=(0,i.computed)((()=>{var e;return null!==(e=b.value)&&void 0!==e?e:w.value})),[S,A]=ee(m),k=(0,i.computed)((()=>_.value||v.value)),C=(0,i.shallowRef)(null!==(c=e.value)&&void 0!==c?c:e.defaultValue),M=(0,i.shallowRef)(!1);(0,i.watch)((()=>e.value),(()=>{C.value=e.value}));const T=(0,i.shallowRef)(null),P=()=>{var e;null===(e=T.value)||void 0===e||e.focus()},I=()=>{var e;null===(e=T.value)||void 0===e||e.blur()};s({focus:P,blur:I});const $=t=>{void 0===e.value&&(C.value=t),n("update:value",t),n("change",t),d.onFieldChange()},E=e=>{M.value=!1,n("blur",e),d.onFieldBlur()},D=e=>{M.value=!0,n("focus",e)};return()=>{var t,n,s,c;const{hasFeedback:v,isFormItemInput:b,feedbackIcon:_}=h,w=null!==(t=e.id)&&void 0!==t?t:d.id.value,I=(0,o.A)((0,o.A)((0,o.A)({},l),e),{id:w,disabled:O.value}),{class:R,bordered:N,readonly:L,style:z,addonBefore:V=(null===(n=u.addonBefore)||void 0===n?void 0:n.call(u)),addonAfter:Q=(null===(s=u.addonAfter)||void 0===s?void 0:s.call(u)),prefix:H=(null===(c=u.prefix)||void 0===c?void 0:c.call(u)),valueModifiers:X={}}=I,U=re(I,["class","bordered","readonly","style","addonBefore","addonAfter","prefix","valueModifiers"]),Y=m.value,q=(0,a.A)({[`${Y}-lg`]:"large"===k.value,[`${Y}-sm`]:"small"===k.value,[`${Y}-rtl`]:"rtl"===y.value,[`${Y}-readonly`]:L,[`${Y}-borderless`]:!N,[`${Y}-in-form-item`]:b},(0,G.L)(Y,g.value),R,x.value,A.value);let K=(0,i.createVNode)(B,(0,r.A)((0,r.A)({},(0,W.A)(U,["size","defaultValue"])),{},{ref:T,lazy:!!X.lazy,value:C.value,class:q,prefixCls:Y,readonly:L,onChange:$,onBlur:E,onFocus:D}),{upHandler:u.upIcon?()=>(0,i.createVNode)("span",{class:`${Y}-handler-up-inner`},[u.upIcon()]):()=>(0,i.createVNode)(p,{class:`${Y}-handler-up-inner`},null),downHandler:u.downIcon?()=>(0,i.createVNode)("span",{class:`${Y}-handler-down-inner`},[u.downIcon()]):()=>(0,i.createVNode)(f.A,{class:`${Y}-handler-down-inner`},null)});const J=Z(V)||Z(Q),ee=Z(H);if(ee||v){const e=(0,a.A)(`${Y}-affix-wrapper`,(0,G.L)(`${Y}-affix-wrapper`,g.value,v),{[`${Y}-affix-wrapper-focused`]:M.value,[`${Y}-affix-wrapper-disabled`]:O.value,[`${Y}-affix-wrapper-sm`]:"small"===k.value,[`${Y}-affix-wrapper-lg`]:"large"===k.value,[`${Y}-affix-wrapper-rtl`]:"rtl"===y.value,[`${Y}-affix-wrapper-readonly`]:L,[`${Y}-affix-wrapper-borderless`]:!N,[`${R}`]:!J&&R},A.value);K=(0,i.createVNode)("div",{class:e,style:z,onClick:P},[ee&&(0,i.createVNode)("span",{class:`${Y}-prefix`},[H]),K,v&&(0,i.createVNode)("span",{class:`${Y}-suffix`},[_])])}if(J){const e=`${Y}-group`,t=`${e}-addon`,n=V?(0,i.createVNode)("div",{class:t},[V]):null,r=Q?(0,i.createVNode)("div",{class:t},[Q]):null,o=(0,a.A)(`${Y}-wrapper`,e,{[`${e}-rtl`]:"rtl"===y.value},A.value),s=(0,a.A)(`${Y}-group-wrapper`,{[`${Y}-group-wrapper-sm`]:"small"===k.value,[`${Y}-group-wrapper-lg`]:"large"===k.value,[`${Y}-group-wrapper-rtl`]:"rtl"===y.value},(0,G.L)(`${m}-group-wrapper`,g.value,v),R,A.value);K=(0,i.createVNode)("div",{class:s,style:z},[(0,i.createVNode)("div",{class:o},[n&&(0,i.createVNode)(te.K6,null,{default:()=>[(0,i.createVNode)(j.yx,null,{default:()=>[n]})]}),K,r&&(0,i.createVNode)(te.K6,null,{default:()=>[(0,i.createVNode)(j.yx,null,{default:()=>[r]})]})])])}return S((0,F.Ob)(K,{style:z}))}}});var se=(0,o.A)(ae,{install:e=>(e.component(ae.name,ae),e)})},58412:function(e,t,n){"use strict";n.d(t,{Ay:function(){return we}});n(30381);var r=n(69751),o=n(98657),i=n(9274),a=n(13389),s=n(35162),l=n(3551),u=n(64854),c=n(16155);const d=e=>void 0!==e&&null!==e&&(!Array.isArray(e)||(0,c.Gk)(e).length);function h(e){return d(e.prefix)||d(e.suffix)||d(e.allowClear)}function p(e){return d(e.addonBefore)||d(e.addonAfter)}function f(e){return"undefined"===typeof e||null===e?"":String(e)}function g(e,t,n,r){if(!n)return;const o=t;if("click"===t.type){Object.defineProperty(o,"target",{writable:!0}),Object.defineProperty(o,"currentTarget",{writable:!0});const t=e.cloneNode(!0);return o.target=t,o.currentTarget=t,t.value="",void n(o)}if(void 0!==r)return Object.defineProperty(o,"target",{writable:!0}),Object.defineProperty(o,"currentTarget",{writable:!0}),o.target=e,o.currentTarget=e,e.value=r,void n(o);n(o)}function m(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const t=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(t,t);break;default:e.setSelectionRange(0,t)}}}var v=n(21244),y=n(5530),b=n(66041);Symbol();const _=()=>({addonBefore:y.A.any,addonAfter:y.A.any,prefix:y.A.any,suffix:y.A.any,clearIcon:y.A.any,affixWrapperClassName:String,groupClassName:String,wrapperClassName:String,inputClassName:String,allowClear:{type:Boolean,default:void 0}}),x=()=>(0,o.A)((0,o.A)({},_()),{value:{type:[String,Number,Symbol],default:void 0},defaultValue:{type:[String,Number,Symbol],default:void 0},inputElement:y.A.any,prefixCls:String,disabled:{type:Boolean,default:void 0},focused:{type:Boolean,default:void 0},triggerFocus:Function,readonly:{type:Boolean,default:void 0},handleReset:Function,hidden:{type:Boolean,default:void 0}}),w=()=>(0,o.A)((0,o.A)({},x()),{id:String,placeholder:{type:[String,Number]},autocomplete:String,type:(0,b.WO)("text"),name:String,size:{type:String},autofocus:{type:Boolean,default:void 0},lazy:{type:Boolean,default:!0},maxlength:Number,loading:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},showCount:{type:[Boolean,Object]},htmlSize:Number,onPressEnter:Function,onKeydown:Function,onKeyup:Function,onFocus:Function,onBlur:Function,onChange:Function,onInput:Function,"onUpdate:value":Function,onCompositionstart:Function,onCompositionend:Function,valueModifiers:Object,hidden:{type:Boolean,default:void 0},status:String});var O=n(87051),S=(0,i.defineComponent)({name:"BaseInput",inheritAttrs:!1,props:x(),setup(e,t){let{slots:n,attrs:r}=t;const o=(0,i.ref)(),s=t=>{var n;if(null===(n=o.value)||void 0===n?void 0:n.contains(t.target)){const{triggerFocus:t}=e;null===t||void 0===t||t()}},l=()=>{var t;const{allowClear:r,value:o,disabled:s,readonly:l,handleReset:u,suffix:c=n.suffix,prefixCls:d}=e;if(!r)return null;const h=!s&&!l&&o,p=`${d}-clear-icon`,f=(null===(t=n.clearIcon)||void 0===t?void 0:t.call(n))||"*";return(0,i.createVNode)("span",{onClick:u,onMousedown:e=>e.preventDefault(),class:(0,a.A)({[`${p}-hidden`]:!h,[`${p}-has-suffix`]:!!c},p),role:"button",tabindex:-1},[f])};return()=>{var t,u;const{focused:c,value:d,disabled:f,allowClear:g,readonly:m,hidden:v,prefixCls:y,prefix:b=(null===(t=n.prefix)||void 0===t?void 0:t.call(n)),suffix:_=(null===(u=n.suffix)||void 0===u?void 0:u.call(n)),addonAfter:x=n.addonAfter,addonBefore:w=n.addonBefore,inputElement:S,affixWrapperClassName:A,wrapperClassName:k,groupClassName:C}=e;let M=(0,O.Ob)(S,{value:d,hidden:v});if(h({prefix:b,suffix:_,allowClear:g})){const e=`${y}-affix-wrapper`,t=(0,a.A)(e,{[`${e}-disabled`]:f,[`${e}-focused`]:c,[`${e}-readonly`]:m,[`${e}-input-with-clear-btn`]:_&&g&&d},!p({addonAfter:x,addonBefore:w})&&r.class,A),n=(_||g)&&(0,i.createVNode)("span",{class:`${y}-suffix`},[l(),_]);M=(0,i.createVNode)("span",{class:t,style:r.style,hidden:!p({addonAfter:x,addonBefore:w})&&v,onMousedown:s,ref:o},[b&&(0,i.createVNode)("span",{class:`${y}-prefix`},[b]),(0,O.Ob)(S,{style:null,value:d,hidden:null}),n])}if(p({addonAfter:x,addonBefore:w})){const e=`${y}-group`,t=`${e}-addon`,n=(0,a.A)(`${y}-wrapper`,e,k),o=(0,a.A)(`${y}-group-wrapper`,r.class,C);return(0,i.createVNode)("span",{class:o,style:r.style,hidden:v},[(0,i.createVNode)("span",{class:n},[w&&(0,i.createVNode)("span",{class:t},[w]),(0,O.Ob)(M,{style:null,hidden:null}),x&&(0,i.createVNode)("span",{class:t},[x])])])}return M}}}),A=n(91949),k=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},C=(0,i.defineComponent)({name:"VCInput",inheritAttrs:!1,props:w(),setup(e,t){let{slots:n,attrs:s,expose:l,emit:u}=t;const c=(0,i.shallowRef)(void 0===e.value?e.defaultValue:e.value),d=(0,i.shallowRef)(!1),y=(0,i.shallowRef)(),b=(0,i.shallowRef)();(0,i.watch)((()=>e.value),(()=>{c.value=e.value})),(0,i.watch)((()=>e.disabled),(()=>{e.disabled&&(d.value=!1)}));const _=e=>{y.value&&m(y.value.input,e)},x=()=>{var e;null===(e=y.value.input)||void 0===e||e.blur()},w=(e,t,n)=>{var r;null===(r=y.value.input)||void 0===r||r.setSelectionRange(e,t,n)},O=()=>{var e;null===(e=y.value.input)||void 0===e||e.select()};l({focus:_,blur:x,input:(0,i.computed)((()=>{var e;return null===(e=y.value.input)||void 0===e?void 0:e.input})),stateValue:c,setSelectionRange:w,select:O});const C=e=>{u("change",e)},M=(t,n)=>{c.value!==t&&(void 0===e.value?c.value=t:(0,i.nextTick)((()=>{var e;y.value.input.value!==c.value&&(null===(e=b.value)||void 0===e||e.$forceUpdate())})),(0,i.nextTick)((()=>{n&&n()})))},T=e=>{const{value:t}=e.target;if(c.value===t)return;const n=e.target.value;g(y.value.input,e,C),M(n)},P=e=>{13===e.keyCode&&u("pressEnter",e),u("keydown",e)},I=e=>{d.value=!0,u("focus",e)},$=e=>{d.value=!1,u("blur",e)},E=e=>{g(y.value.input,e,C),M("",(()=>{_()}))},D=()=>{var t,r;const{addonBefore:l=n.addonBefore,addonAfter:u=n.addonAfter,disabled:c,valueModifiers:d={},htmlSize:f,autocomplete:g,prefixCls:m,inputClassName:b,prefix:_=(null===(t=n.prefix)||void 0===t?void 0:t.call(n)),suffix:x=(null===(r=n.suffix)||void 0===r?void 0:r.call(n)),allowClear:w,type:O="text"}=e,S=(0,v.A)(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","bordered","htmlSize","lazy","showCount","valueModifiers","showCount","affixWrapperClassName","groupClassName","inputClassName","wrapperClassName"]),k=(0,o.A)((0,o.A)((0,o.A)({},S),s),{autocomplete:g,onChange:T,onInput:T,onFocus:I,onBlur:$,onKeydown:P,class:(0,a.A)(m,{[`${m}-disabled`]:c},b,!p({addonAfter:u,addonBefore:l})&&!h({prefix:_,suffix:x,allowClear:w})&&s.class),ref:y,key:"ant-input",size:f,type:O,lazy:e.lazy});d.lazy&&delete k.onInput,k.autofocus||delete k.autofocus;const C=(0,i.createVNode)(A.A,(0,v.A)(k,["size"]),null);return C},R=()=>{var t;const{maxlength:r,suffix:o=(null===(t=n.suffix)||void 0===t?void 0:t.call(n)),showCount:s,prefixCls:l}=e,u=Number(r)>0;if(o||s){const e=[...f(c.value)].length,t="object"===typeof s?s.formatter({count:e,maxlength:r}):`${e}${u?` / ${r}`:""}`;return(0,i.createVNode)(i.Fragment,null,[!!s&&(0,i.createVNode)("span",{class:(0,a.A)(`${l}-show-count-suffix`,{[`${l}-show-count-has-suffix`]:!!o})},[t]),o])}return null};return(0,i.onMounted)((()=>{0})),()=>{const{prefixCls:t,disabled:o}=e,a=k(e,["prefixCls","disabled"]);return(0,i.createVNode)(S,(0,r.A)((0,r.A)((0,r.A)({},a),s),{},{ref:b,prefixCls:t,inputElement:D(),handleReset:E,value:f(c.value),focused:d.value,triggerFocus:_,suffix:R(),disabled:o}),n)}}});Symbol();const M=()=>(0,v.A)(w(),["wrapperClassName","groupClassName","inputClassName","affixWrapperClassName"]);var T=M;const P=()=>(0,o.A)((0,o.A)({},(0,v.A)(M(),["prefix","addonBefore","addonAfter","suffix"])),{rows:Number,autosize:{type:[Boolean,Object],default:void 0},autoSize:{type:[Boolean,Object],default:void 0},onResize:{type:Function},onCompositionstart:(0,b.$q)(),onCompositionend:(0,b.$q)(),valueModifiers:Object});var I=n(82339),$=n(45507),E=n(81802),D=n(99415),R=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},N=(0,i.defineComponent)({compatConfig:{MODE:3},name:"AInput",inheritAttrs:!1,props:T(),setup(e,t){let{slots:n,attrs:c,expose:d,emit:p}=t;const f=(0,i.ref)(),g=(0,s.db)(),m=s.$W.useInject(),y=(0,i.computed)((()=>(0,u.v)(m.status,e.status))),{direction:b,prefixCls:_,size:x,autocomplete:w}=(0,l.A)("input",e),{compactSize:O,compactItemClassnames:S}=(0,$.RQ)(_,b),A=(0,i.computed)((()=>O.value||x.value)),[k,M]=(0,E.Ay)(_),T=(0,D.p)(),P=e=>{var t;null===(t=f.value)||void 0===t||t.focus(e)},N=()=>{var e;null===(e=f.value)||void 0===e||e.blur()},L=(e,t,n)=>{var r;null===(r=f.value)||void 0===r||r.setSelectionRange(e,t,n)},z=()=>{var e;null===(e=f.value)||void 0===e||e.select()};d({focus:P,blur:N,input:f,setSelectionRange:L,select:z});const V=(0,i.ref)([]),B=()=>{V.value.push(setTimeout((()=>{var e,t,n,r;(null===(e=f.value)||void 0===e?void 0:e.input)&&"password"===(null===(t=f.value)||void 0===t?void 0:t.input.getAttribute("type"))&&(null===(n=f.value)||void 0===n?void 0:n.input.hasAttribute("value"))&&(null===(r=f.value)||void 0===r||r.input.removeAttribute("value"))})))};(0,i.onMounted)((()=>{B()})),(0,i.onBeforeUpdate)((()=>{V.value.forEach((e=>clearTimeout(e)))})),(0,i.onBeforeUnmount)((()=>{V.value.forEach((e=>clearTimeout(e)))}));const j=e=>{B(),p("blur",e),g.onFieldBlur()},Q=e=>{B(),p("focus",e)},F=e=>{p("update:value",e.target.value),p("change",e),p("input",e),g.onFieldChange()};return()=>{var t,l,d,p,x,O;const{hasFeedback:P,feedbackIcon:E}=m,{allowClear:D,bordered:N=!0,prefix:L=(null===(t=n.prefix)||void 0===t?void 0:t.call(n)),suffix:z=(null===(l=n.suffix)||void 0===l?void 0:l.call(n)),addonAfter:V=(null===(d=n.addonAfter)||void 0===d?void 0:d.call(n)),addonBefore:B=(null===(p=n.addonBefore)||void 0===p?void 0:p.call(n)),id:W=(null===(x=g.id)||void 0===x?void 0:x.value)}=e,H=R(e,["allowClear","bordered","prefix","suffix","addonAfter","addonBefore","id"]),Z=(P||z)&&(0,i.createVNode)(i.Fragment,null,[z,P&&E]),G=_.value,X=h({prefix:L,suffix:z})||!!P,U=n.clearIcon||(()=>(0,i.createVNode)(I.A,null,null));return k((0,i.createVNode)(C,(0,r.A)((0,r.A)((0,r.A)({},c),(0,v.A)(H,["onUpdate:value","onChange","onInput"])),{},{onChange:F,id:W,disabled:null!==(O=e.disabled)&&void 0!==O?O:T.value,ref:f,prefixCls:G,autocomplete:w.value,onBlur:j,onFocus:Q,prefix:L,suffix:Z,allowClear:D,addonAfter:V&&(0,i.createVNode)($.K6,null,{default:()=>[(0,i.createVNode)(s.yx,null,{default:()=>[V]})]}),addonBefore:B&&(0,i.createVNode)($.K6,null,{default:()=>[(0,i.createVNode)(s.yx,null,{default:()=>[B]})]}),class:[c.class,S.value],inputClassName:(0,a.A)({[`${G}-sm`]:"small"===A.value,[`${G}-lg`]:"large"===A.value,[`${G}-rtl`]:"rtl"===b.value,[`${G}-borderless`]:!N},!X&&(0,u.L)(G,y.value),M.value),affixWrapperClassName:(0,a.A)({[`${G}-affix-wrapper-sm`]:"small"===A.value,[`${G}-affix-wrapper-lg`]:"large"===A.value,[`${G}-affix-wrapper-rtl`]:"rtl"===b.value,[`${G}-affix-wrapper-borderless`]:!N},(0,u.L)(`${G}-affix-wrapper`,y.value,P),M.value),wrapperClassName:(0,a.A)({[`${G}-group-rtl`]:"rtl"===b.value},M.value),groupClassName:(0,a.A)({[`${G}-group-wrapper-sm`]:"small"===A.value,[`${G}-group-wrapper-lg`]:"large"===A.value,[`${G}-group-wrapper-rtl`]:"rtl"===b.value},(0,u.L)(`${G}-group-wrapper`,y.value,P),M.value)}),(0,o.A)((0,o.A)({},n),{clearIcon:U})))}}}),L=(0,i.defineComponent)({compatConfig:{MODE:3},name:"AInputGroup",inheritAttrs:!1,props:{prefixCls:String,size:{type:String},compact:{type:Boolean,default:void 0}},setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:u,direction:c,getPrefixCls:d}=(0,l.A)("input-group",e),h=s.$W.useInject();s.$W.useProvide(h,{isFormItemInput:!1});const p=(0,i.computed)((()=>d("input"))),[f,g]=(0,E.Ay)(p),m=(0,i.computed)((()=>{const t=u.value;return{[`${t}`]:!0,[g.value]:!0,[`${t}-lg`]:"large"===e.size,[`${t}-sm`]:"small"===e.size,[`${t}-compact`]:e.compact,[`${t}-rtl`]:"rtl"===c.value}}));return()=>{var e;return f((0,i.createVNode)("span",(0,r.A)((0,r.A)({},o),{},{class:(0,a.A)(m.value,o.class)}),[null===(e=n.default)||void 0===e?void 0:e.call(n)]))}}}),z=n(82205),V=n(18918),B=n(77688),j=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},Q=(0,i.defineComponent)({compatConfig:{MODE:3},name:"AInputSearch",inheritAttrs:!1,props:(0,o.A)((0,o.A)({},T()),{inputPrefixCls:String,enterButton:y.A.any,onSearch:{type:Function}}),setup(e,t){let{slots:n,attrs:s,expose:u,emit:c}=t;const d=(0,i.shallowRef)(),h=(0,i.shallowRef)(!1),p=()=>{var e;null===(e=d.value)||void 0===e||e.focus()},f=()=>{var e;null===(e=d.value)||void 0===e||e.blur()};u({focus:p,blur:f});const g=e=>{c("update:value",e.target.value),e&&e.target&&"click"===e.type&&c("search",e.target.value,e),c("change",e)},m=e=>{var t;document.activeElement===(null===(t=d.value)||void 0===t?void 0:t.input)&&e.preventDefault()},y=e=>{var t,n;c("search",null===(n=null===(t=d.value)||void 0===t?void 0:t.input)||void 0===n?void 0:n.stateValue,e)},b=t=>{h.value||e.loading||y(t)},_=e=>{h.value=!0,c("compositionstart",e)},x=e=>{h.value=!1,c("compositionend",e)},{prefixCls:w,getPrefixCls:S,direction:A,size:k}=(0,l.A)("input-search",e),C=(0,i.computed)((()=>S("input",e.inputPrefixCls)));return()=>{var t,l,u,c;const{disabled:h,loading:p,addonAfter:f=(null===(t=n.addonAfter)||void 0===t?void 0:t.call(n)),suffix:S=(null===(l=n.suffix)||void 0===l?void 0:l.call(n))}=e,M=j(e,["disabled","loading","addonAfter","suffix"]);let{enterButton:T=null!==(c=null===(u=n.enterButton)||void 0===u?void 0:u.call(n))&&void 0!==c&&c}=e;T=T||""===T;const P="boolean"===typeof T?(0,i.createVNode)(z.A,null,null):null,I=`${w.value}-button`,$=Array.isArray(T)?T[0]:T;let E;const D=$.type&&(0,B.A)($.type)&&$.type.__ANT_BUTTON;if(D||"button"===$.tagName)E=(0,O.Ob)($,(0,o.A)({onMousedown:m,onClick:y,key:"enterButton"},D?{class:I,size:k.value}:{}),!1);else{const e=P&&!T;E=(0,i.createVNode)(V.A,{class:I,type:T?"primary":void 0,size:k.value,disabled:h,key:"enterButton",onMousedown:m,onClick:y,loading:p,icon:e?P:null},{default:()=>[e?null:P||T]})}f&&(E=[E,f]);const R=(0,a.A)(w.value,{[`${w.value}-rtl`]:"rtl"===A.value,[`${w.value}-${k.value}`]:!!k.value,[`${w.value}-with-button`]:!!T},s.class);return(0,i.createVNode)(N,(0,r.A)((0,r.A)((0,r.A)({ref:d},(0,v.A)(M,["onUpdate:value","onSearch","enterButton"])),s),{},{onPressEnter:b,onCompositionstart:_,onCompositionend:x,size:k.value,prefixCls:C.value,addonAfter:E,suffix:S,onChange:g,class:R,disabled:h}),n)}}});const F=e=>void 0!==e&&null!==e&&(!Array.isArray(e)||(0,c.Gk)(e).length);function W(e){return F(e.addonBefore)||F(e.addonAfter)}const H=["text","input"];var Z=(0,i.defineComponent)({compatConfig:{MODE:3},name:"ClearableLabeledInput",inheritAttrs:!1,props:{prefixCls:String,inputType:y.A.oneOf((0,b.PV)("text","input")),value:(0,b.ds)(),defaultValue:(0,b.ds)(),allowClear:{type:Boolean,default:void 0},element:(0,b.ds)(),handleReset:Function,disabled:{type:Boolean,default:void 0},direction:{type:String},size:{type:String},suffix:(0,b.ds)(),prefix:(0,b.ds)(),addonBefore:(0,b.ds)(),addonAfter:(0,b.ds)(),readonly:{type:Boolean,default:void 0},focused:{type:Boolean,default:void 0},bordered:{type:Boolean,default:!0},triggerFocus:{type:Function},hidden:Boolean,status:String,hashId:String},setup(e,t){let{slots:n,attrs:r}=t;const o=s.$W.useInject(),l=t=>{const{value:r,disabled:o,readonly:s,handleReset:l,suffix:u=n.suffix}=e,c=!o&&!s&&r,d=`${t}-clear-icon`;return(0,i.createVNode)(I.A,{onClick:l,onMousedown:e=>e.preventDefault(),class:(0,a.A)({[`${d}-hidden`]:!c,[`${d}-has-suffix`]:!!u},d),role:"button"},null)},c=(t,s)=>{const{value:c,allowClear:d,direction:h,bordered:p,hidden:f,status:g,addonAfter:m=n.addonAfter,addonBefore:v=n.addonBefore,hashId:y}=e,{status:b,hasFeedback:_}=o;if(!d)return(0,O.Ob)(s,{value:c,disabled:e.disabled});const x=(0,a.A)(`${t}-affix-wrapper`,`${t}-affix-wrapper-textarea-with-clear-btn`,(0,u.L)(`${t}-affix-wrapper`,(0,u.v)(b,g),_),{[`${t}-affix-wrapper-rtl`]:"rtl"===h,[`${t}-affix-wrapper-borderless`]:!p,[`${r.class}`]:!W({addonAfter:m,addonBefore:v})&&r.class},y);return(0,i.createVNode)("span",{class:x,style:r.style,hidden:f},[(0,O.Ob)(s,{style:null,value:c,disabled:e.disabled}),l(t)])};return()=>{var t;const{prefixCls:r,inputType:o,element:i=(null===(t=n.element)||void 0===t?void 0:t.call(n))}=e;return o===H[0]?c(r,i):null}}}),G=n(71555),X=n(38624),U=n(18765);const Y="\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n",q=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],K={};let J;function ee(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&K[n])return K[n];const r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=q.map((e=>`${e}:${r.getPropertyValue(e)}`)).join(";"),l={sizingStyle:s,paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(K[n]=l),l}function te(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;J||(J=document.createElement("textarea"),J.setAttribute("tab-index","-1"),J.setAttribute("aria-hidden","true"),document.body.appendChild(J)),e.getAttribute("wrap")?J.setAttribute("wrap",e.getAttribute("wrap")):J.removeAttribute("wrap");const{paddingSize:o,borderSize:i,boxSizing:a,sizingStyle:s}=ee(e,t);let l,u,c;J.setAttribute("style",`${s};${Y}`),J.value=e.value||e.placeholder||"";let d=J.scrollHeight;if("border-box"===a?d+=i:"content-box"===a&&(d-=o),null!==n||null!==r){J.value=" ";const e=J.scrollHeight-o;null!==n&&(l=e*n,"border-box"===a&&(l=l+o+i),d=Math.max(l,d)),null!==r&&(u=e*r,"border-box"===a&&(u=u+o+i),c=d>u?"":"hidden",d=Math.min(u,d))}const h={height:`${d}px`,overflowY:c,resize:"none"};return l&&(h.minHeight=`${l}px`),u&&(h.maxHeight=`${u}px`),h}const ne=0,re=1,oe=2,ie=(0,i.defineComponent)({compatConfig:{MODE:3},name:"ResizableTextArea",inheritAttrs:!1,props:P(),setup(e,t){let n,s,{attrs:l,emit:u,expose:c}=t;const d=(0,i.ref)(),h=(0,i.ref)({}),p=(0,i.ref)(oe);(0,i.onBeforeUnmount)((()=>{X.A.cancel(n),X.A.cancel(s)}));const f=()=>{try{if(d.value&&document.activeElement===d.value.input){const e=d.value.getSelectionStart(),t=d.value.getSelectionEnd(),n=d.value.getScrollTop();d.value.setSelectionRange(e,t),d.value.setScrollTop(n)}}catch(e){}},g=(0,i.ref)(),m=(0,i.ref)();(0,i.watchEffect)((()=>{const t=e.autoSize||e.autosize;t?(g.value=t.minRows,m.value=t.maxRows):(g.value=void 0,m.value=void 0)}));const y=(0,i.computed)((()=>!(!e.autoSize&&!e.autosize))),b=()=>{p.value=ne};(0,i.watch)([()=>e.value,g,m,y],(()=>{y.value&&b()}),{immediate:!0});const _=(0,i.ref)();(0,i.watch)([p,d],(()=>{if(d.value)if(p.value===ne)p.value=re;else if(p.value===re){const e=te(d.value.input,!1,g.value,m.value);p.value=oe,_.value=e}else f()}),{immediate:!0,flush:"post"});const x=(0,i.getCurrentInstance)(),w=(0,i.ref)(),O=()=>{X.A.cancel(w.value)},S=e=>{p.value===oe&&(u("resize",e),y.value&&(O(),w.value=(0,X.A)((()=>{b()}))))};(0,i.onBeforeUnmount)((()=>{O()}));const k=()=>{b()};c({resizeTextarea:k,textArea:(0,i.computed)((()=>{var e;return null===(e=d.value)||void 0===e?void 0:e.input})),instance:x}),(0,U.Ay)(void 0===e.autosize,"Input.TextArea","autosize is deprecated, please use autoSize instead.");const C=()=>{const{prefixCls:t,disabled:n}=e,s=(0,v.A)(e,["prefixCls","onPressEnter","autoSize","autosize","defaultValue","allowClear","type","maxlength","valueModifiers"]),u=(0,a.A)(t,l.class,{[`${t}-disabled`]:n}),c=y.value?_.value:null,f=[l.style,h.value,c],g=(0,o.A)((0,o.A)((0,o.A)({},s),l),{style:f,class:u});return p.value!==ne&&p.value!==re||f.push({overflowX:"hidden",overflowY:"hidden"}),g.autofocus||delete g.autofocus,0===g.rows&&delete g.rows,(0,i.createVNode)(G.A,{onResize:S,disabled:!y.value},{default:()=>[(0,i.createVNode)(A.A,(0,r.A)((0,r.A)({},g),{},{ref:d,tag:"textarea"}),null)]})};return()=>C()}});var ae=ie;function se(e,t){return[...e||""].slice(0,t).join("")}function le(e,t,n,r){let o=n;return e?o=se(n,r):[...t||""].length<n.length&&[...n||""].length>r&&(o=t),o}var ue=(0,i.defineComponent)({compatConfig:{MODE:3},name:"ATextarea",inheritAttrs:!1,props:P(),setup(e,t){let{attrs:n,expose:c,emit:d}=t;var h;const p=(0,s.db)(),y=s.$W.useInject(),b=(0,i.computed)((()=>(0,u.v)(y.status,e.status))),_=(0,i.shallowRef)(null!==(h=e.value)&&void 0!==h?h:e.defaultValue),x=(0,i.shallowRef)(),w=(0,i.shallowRef)(""),{prefixCls:O,size:S,direction:A}=(0,l.A)("input",e),[k,C]=(0,E.Ay)(O),M=(0,D.p)(),T=(0,i.computed)((()=>""===e.showCount||e.showCount||!1)),P=(0,i.computed)((()=>Number(e.maxlength)>0)),I=(0,i.shallowRef)(!1),$=(0,i.shallowRef)(),R=(0,i.shallowRef)(0),N=e=>{I.value=!0,$.value=w.value,R.value=e.currentTarget.selectionStart,d("compositionstart",e)},L=t=>{var n;I.value=!1;let r=t.currentTarget.value;if(P.value){const t=R.value>=e.maxlength+1||R.value===(null===(n=$.value)||void 0===n?void 0:n.length);r=le(t,$.value,r,e.maxlength)}r!==w.value&&(j(r),g(t.currentTarget,t,W,r)),d("compositionend",t)},z=(0,i.getCurrentInstance)();(0,i.watch)((()=>e.value),(()=>{var t;z.vnode.props,_.value=null!==(t=e.value)&&void 0!==t?t:""}));const V=e=>{var t;m(null===(t=x.value)||void 0===t?void 0:t.textArea,e)},B=()=>{var e,t;null===(t=null===(e=x.value)||void 0===e?void 0:e.textArea)||void 0===t||t.blur()},j=(t,n)=>{_.value!==t&&(void 0===e.value?_.value=t:(0,i.nextTick)((()=>{var e,t,n;x.value.textArea.value!==w.value&&(null===(n=null===(e=x.value)||void 0===e?void 0:(t=e.instance).update)||void 0===n||n.call(t))})),(0,i.nextTick)((()=>{n&&n()})))},Q=e=>{13===e.keyCode&&d("pressEnter",e),d("keydown",e)},F=t=>{const{onBlur:n}=e;null===n||void 0===n||n(t),p.onFieldBlur()},W=e=>{d("update:value",e.target.value),d("change",e),d("input",e),p.onFieldChange()},H=e=>{g(x.value.textArea,e,W),j("",(()=>{V()}))},G=t=>{let n=t.target.value;if(_.value!==n){if(P.value){const r=t.target,o=r.selectionStart>=e.maxlength+1||r.selectionStart===n.length||!r.selectionStart;n=le(o,w.value,n,e.maxlength)}g(t.currentTarget,t,W,n),j(n)}},X=()=>{var t,a;const{class:s}=n,{bordered:l=!0}=e,c=(0,o.A)((0,o.A)((0,o.A)({},(0,v.A)(e,["allowClear"])),n),{class:[{[`${O.value}-borderless`]:!l,[`${s}`]:s&&!T.value,[`${O.value}-sm`]:"small"===S.value,[`${O.value}-lg`]:"large"===S.value},(0,u.L)(O.value,b.value),C.value],disabled:M.value,showCount:null,prefixCls:O.value,onInput:G,onChange:G,onBlur:F,onKeydown:Q,onCompositionstart:N,onCompositionend:L});return(null===(t=e.valueModifiers)||void 0===t?void 0:t.lazy)&&delete c.onInput,(0,i.createVNode)(ae,(0,r.A)((0,r.A)({},c),{},{id:null!==(a=null===c||void 0===c?void 0:c.id)&&void 0!==a?a:p.id.value,ref:x,maxlength:e.maxlength,lazy:e.lazy}),null)};return c({focus:V,blur:B,resizableTextArea:x}),(0,i.watchEffect)((()=>{let t=f(_.value);I.value||!P.value||null!==e.value&&void 0!==e.value||(t=se(t,e.maxlength)),w.value=t})),()=>{var t;const{maxlength:s,bordered:l=!0,hidden:u}=e,{style:c,class:d}=n,h=(0,o.A)((0,o.A)((0,o.A)({},e),n),{prefixCls:O.value,inputType:"text",handleReset:H,direction:A.value,bordered:l,style:T.value?void 0:c,hashId:C.value,disabled:null!==(t=e.disabled)&&void 0!==t?t:M.value});let p=(0,i.createVNode)(Z,(0,r.A)((0,r.A)({},h),{},{value:w.value,status:e.status}),{element:X});if(T.value||y.hasFeedback){const e=[...w.value].length;let t="";t="object"===typeof T.value?T.value.formatter({value:w.value,count:e,maxlength:s}):`${e}${P.value?` / ${s}`:""}`,p=(0,i.createVNode)("div",{hidden:u,class:(0,a.A)(`${O.value}-textarea`,{[`${O.value}-textarea-rtl`]:"rtl"===A.value,[`${O.value}-textarea-show-count`]:T.value,[`${O.value}-textarea-in-form-item`]:y.isFormItemInput},`${O.value}-textarea-show-count`,d,C.value),style:c,"data-count":"object"!==typeof t?t:void 0},[p,y.hasFeedback&&(0,i.createVNode)("span",{class:`${O.value}-textarea-suffix`},[y.feedbackIcon])])}return k(p)}}}),ce=n(34631),de={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},he=de,pe=n(29847);function fe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ge(e,t,n[t])}))}return e}function ge(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var me=function(e,t){var n=fe({},e,t.attrs);return(0,i.createVNode)(pe.A,fe({},n,{icon:he}),null)};me.displayName="EyeInvisibleOutlined",me.inheritAttrs=!1;var ve=me,ye=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const be={click:"onClick",hover:"onMouseover"},_e=e=>e?(0,i.createVNode)(ce.A,null,null):(0,i.createVNode)(ve,null,null);var xe=(0,i.defineComponent)({compatConfig:{MODE:3},name:"AInputPassword",inheritAttrs:!1,props:(0,o.A)((0,o.A)({},T()),{prefixCls:String,inputPrefixCls:String,action:{type:String,default:"click"},visibilityToggle:{type:Boolean,default:!0},visible:{type:Boolean,default:void 0},"onUpdate:visible":Function,iconRender:Function}),setup(e,t){let{slots:n,attrs:s,expose:u,emit:d}=t;const h=(0,i.shallowRef)(!1),p=()=>{const{disabled:t}=e;t||(h.value=!h.value,d("update:visible",h.value))};(0,i.watchEffect)((()=>{void 0!==e.visible&&(h.value=!!e.visible)}));const f=(0,i.shallowRef)(),g=()=>{var e;null===(e=f.value)||void 0===e||e.focus()},m=()=>{var e;null===(e=f.value)||void 0===e||e.blur()};u({focus:g,blur:m});const y=t=>{const{action:r,iconRender:o=n.iconRender||_e}=e,a=be[r]||"",s=o(h.value),l={[a]:p,class:`${t}-icon`,key:"passwordIcon",onMousedown:e=>{e.preventDefault()},onMouseup:e=>{e.preventDefault()}};return(0,O.Ob)((0,c.zO)(s)?s:(0,i.createVNode)("span",null,[s]),l)},{prefixCls:b,getPrefixCls:_}=(0,l.A)("input-password",e),x=(0,i.computed)((()=>_("input",e.inputPrefixCls))),w=()=>{const{size:t,visibilityToggle:l}=e,u=ye(e,["size","visibilityToggle"]),c=l&&y(b.value),d=(0,a.A)(b.value,s.class,{[`${b.value}-${t}`]:!!t}),p=(0,o.A)((0,o.A)((0,o.A)({},(0,v.A)(u,["suffix","iconRender","action"])),s),{type:h.value?"text":"password",class:d,prefixCls:x.value,suffix:c});return t&&(p.size=t),(0,i.createVNode)(N,(0,r.A)({ref:f},p),n)};return()=>w()}});N.Group=L,N.Search=Q,N.TextArea=ue,N.Password=xe,N.install=function(e){return e.component(N.name,N),e.component(N.Group.name,N.Group),e.component(N.Search.name,N.Search),e.component(N.TextArea.name,N.TextArea),e.component(N.Password.name,N.Password),e};var we=N},81802:function(e,t,n){"use strict";n.d(t,{C5:function(){return w},EB:function(){return f},Q:function(){return u},Ut:function(){return c},XM:function(){return m},eT:function(){return d},j_:function(){return l},wj:function(){return g}});var r=n(98657),o=n(96704),i=n(94471),a=n(69729),s=n(31222);const l=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),u=e=>({borderColor:e.inputBorderHoverColor,borderInlineEndWidth:e.lineWidth}),c=e=>({borderColor:e.inputBorderHoverColor,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),d=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":(0,r.A)({},u((0,o.h1)(e,{inputBorderHoverColor:e.colorBorder})))}),h=e=>{const{inputPaddingVerticalLG:t,fontSizeLG:n,lineHeightLG:r,borderRadiusLG:o,inputPaddingHorizontalLG:i}=e;return{padding:`${t}px ${i}px`,fontSize:n,lineHeight:r,borderRadius:o}},p=e=>({padding:`${e.inputPaddingVerticalSM}px ${e.controlPaddingHorizontalSM-1}px`,borderRadius:e.borderRadiusSM}),f=(e,t)=>{const{componentCls:n,colorError:i,colorWarning:a,colorErrorOutline:s,colorWarningOutline:l,colorErrorBorderHover:u,colorWarningBorderHover:d}=e;return{[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:i,"&:hover":{borderColor:u},"&:focus, &-focused":(0,r.A)({},c((0,o.h1)(e,{inputBorderActiveColor:i,inputBorderHoverColor:i,controlOutline:s}))),[`${n}-prefix`]:{color:i}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:a,"&:hover":{borderColor:d},"&:focus, &-focused":(0,r.A)({},c((0,o.h1)(e,{inputBorderActiveColor:a,inputBorderHoverColor:a,controlOutline:l}))),[`${n}-prefix`]:{color:a}}}},g=e=>(0,r.A)((0,r.A)({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${e.inputPaddingVertical}px ${e.inputPaddingHorizontal}px`,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,backgroundColor:e.colorBgContainer,backgroundImage:"none",borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:e.colorBorder,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},l(e.colorTextPlaceholder)),{"&:hover":(0,r.A)({},u(e)),"&:focus, &-focused":(0,r.A)({},c(e)),"&-disabled, &[disabled]":(0,r.A)({},d(e)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":(0,r.A)({},h(e)),"&-sm":(0,r.A)({},p(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),m=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,["&[class*='col-']"]:{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:(0,r.A)({},h(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:(0,r.A)({},p(e)),[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{["&-addon, &-wrap"]:{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${e.inputPaddingHorizontal}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,textAlign:"center",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`-${e.inputPaddingVertical+1}px -${e.inputPaddingHorizontal}px`,[`&${n}-select-single:not(${n}-select-customize-input)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${e.lineWidth}px ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px -${e.inputPaddingHorizontal}px`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${t}`]:{float:"inline-start",width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:(0,r.A)((0,r.A)({display:"block"},(0,a.t6)()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`& > ${t}-affix-wrapper`]:{display:"inline-flex"},[`& > ${n}-picker-range`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-e.lineWidth,borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,\n & > ${n}-select-auto-complete ${t},\n & > ${n}-cascader-picker ${t},\n & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,\n & > ${n}-select:first-child > ${n}-select-selector,\n & > ${n}-select-auto-complete:first-child ${t},\n & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,\n & > ${n}-select:last-child > ${n}-select-selector,\n & > ${n}-cascader-picker:last-child ${t},\n & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:-e.lineWidth,[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}}),[`&&-sm ${n}-btn`]:{fontSize:e.fontSizeSM,height:e.controlHeightSM,lineHeight:"normal"},[`&&-lg ${n}-btn`]:{fontSize:e.fontSizeLG,height:e.controlHeightLG,lineHeight:"normal"},[`&&-lg ${n}-select-single ${n}-select-selector`]:{height:`${e.controlHeightLG}px`,[`${n}-select-selection-item, ${n}-select-selection-placeholder`]:{lineHeight:e.controlHeightLG-2+"px"},[`${n}-select-selection-search-input`]:{height:`${e.controlHeightLG}px`}},[`&&-sm ${n}-select-single ${n}-select-selector`]:{height:`${e.controlHeightSM}px`,[`${n}-select-selection-item, ${n}-select-selection-placeholder`]:{lineHeight:e.controlHeightSM-2+"px"},[`${n}-select-selection-search-input`]:{height:`${e.controlHeightSM}px`}}}},v=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:o}=e,i=16,s=(n-2*o-i)/2;return{[t]:(0,r.A)((0,r.A)((0,r.A)((0,r.A)({},(0,a.dF)(e)),g(e)),f(e,t)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:s,paddingBottom:s}}})}},y=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${e.inputAffixPadding}px`}},"&-textarea-with-clear-btn":{padding:"0 !important",border:"0 !important",[`${t}-clear-icon`]:{position:"absolute",insetBlockStart:e.paddingXS,insetInlineEnd:e.paddingXS,zIndex:1}}}},b=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:o,motionDurationSlow:i,colorIcon:a,colorIconHover:s,iconCls:l}=e;return{[`${t}-affix-wrapper`]:(0,r.A)((0,r.A)((0,r.A)((0,r.A)((0,r.A)({},g(e)),{display:"inline-flex",[`&:not(${t}-affix-wrapper-disabled):hover`]:(0,r.A)((0,r.A)({},u(e)),{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> input${t}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&:focus":{boxShadow:"none !important"}},"&::before":{width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:o},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),y(e)),{[`${l}${t}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${i}`,"&:hover":{color:s}}}),f(e,`${t}-affix-wrapper`))}},_=e=>{const{componentCls:t,colorError:n,colorSuccess:o,borderRadiusLG:i,borderRadiusSM:s}=e;return{[`${t}-group`]:(0,r.A)((0,r.A)((0,r.A)({},(0,a.dF)(e)),m(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:i}},"&-sm":{[`${t}-group-addon`]:{borderRadius:s}},"&-status-error":{[`${t}-group-addon`]:{color:n,borderColor:n}},"&-status-warning":{[`${t}-group-addon:last-child`]:{color:o,borderColor:o}}}})}},x=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.lineHeightLG-2e-4},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:-e.lineWidth,borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,\n > ${t},\n ${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}};function w(e){return(0,o.h1)(e,{inputAffixPadding:e.paddingXXS,inputPaddingVertical:Math.max(Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,3),inputPaddingVerticalLG:Math.ceil((e.controlHeightLG-e.fontSizeLG*e.lineHeightLG)/2*10)/10-e.lineWidth,inputPaddingVerticalSM:Math.max(Math.round((e.controlHeightSM-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,0),inputPaddingHorizontal:e.paddingSM-e.lineWidth,inputPaddingHorizontalSM:e.paddingXS-e.lineWidth,inputPaddingHorizontalLG:e.controlPaddingHorizontal-e.lineWidth,inputBorderHoverColor:e.colorPrimaryHover,inputBorderActiveColor:e.colorPrimaryHover})}const O=e=>{const{componentCls:t,inputPaddingHorizontal:n,paddingLG:r}=e,o=`${t}-textarea`;return{[o]:{position:"relative",[`${o}-suffix`]:{position:"absolute",top:0,insetInlineEnd:n,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto"},["&-status-error,\n &-status-warning,\n &-status-success,\n &-status-validating"]:{[`&${o}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:r}}},"&-show-count":{[`> ${t}`]:{height:"100%"},"&::after":{color:e.colorTextDescription,whiteSpace:"nowrap",content:"attr(data-count)",pointerEvents:"none",float:"right"}},"&-rtl":{"&::after":{float:"left"}}}}};t.Ay=(0,i.A)("Input",(e=>{const t=w(e);return[v(t),O(t),b(t),_(t),x(t),(0,s.G)(t)]}))},97605:function(e,t,n){"use strict";var r=n(53775);t.A=r.A},53775:function(e,t,n){"use strict";n.d(t,{n:function(){return a}});var r=n(98657),o=n(9274),i=n(24619);function a(e,t,n){const a=(0,o.inject)("localeData",{}),s=(0,o.computed)((()=>{const{antLocale:s}=a,l=(0,o.unref)(t)||i.A[e||"global"],u=e&&s?s[e]:{};return(0,r.A)((0,r.A)((0,r.A)({},"function"===typeof l?l():l),u||{}),(0,o.unref)(n)||{})}));return[s]}t.A=(0,o.defineComponent)({compatConfig:{MODE:3},name:"LocaleReceiver",props:{componentName:String,defaultLocale:{type:[Object,Function]},children:{type:Function}},setup(e,t){let{slots:n}=t;const a=(0,o.inject)("localeData",{}),s=(0,o.computed)((()=>{const{componentName:t="global",defaultLocale:n}=e,o=n||i.A[t||"global"],{antLocale:s}=a,l=t&&s?s[t]:{};return(0,r.A)((0,r.A)({},"function"===typeof o?o():o),l||{})})),l=(0,o.computed)((()=>{const{antLocale:e}=a,t=e&&e.locale;return e&&e.exist&&!t?i.A.locale:t}));return()=>{const t=e.children||n.default,{antLocale:r}=a;return null===t||void 0===t?void 0:t(s.value,l.value,r)}}})},24619:function(e,t,n){"use strict";n.d(t,{A:function(){return f}});var r={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages"},o=n(98657);const i={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"};var a=i;const s={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};var l=s;const u={lang:(0,o.A)({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},a),timePickerLocale:(0,o.A)({},l)};var c=u,d=c;const h="${label} is not a valid ${type}",p={locale:"en",Pagination:r,DatePicker:c,TimePicker:l,Calendar:d,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:h,method:h,array:h,object:h,number:h,date:h,boolean:h,integer:h,float:h,regexp:h,email:h,url:h,hex:h},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"}};var f=p},33163:function(e,t,n){"use strict";n.d(t,{Ay:function(){return ee}});var r=n(98657),o=n(9274),i=n(31716),a=n(2167),s=n(51911),l=n(82339),u=n(46299),c=n(33684),d=n(13389),h=n(97732),p=n(94471),f=n(96704),g=n(69729);const m=e=>{const{componentCls:t,iconCls:n,boxShadowSecondary:o,colorBgElevated:i,colorSuccess:a,colorError:s,colorWarning:l,colorInfo:u,fontSizeLG:c,motionEaseInOutCirc:d,motionDurationSlow:p,marginXS:f,paddingXS:m,borderRadiusLG:v,zIndexPopup:y,messageNoticeContentPadding:b}=e,_=new h.A("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:m,transform:"translateY(0)",opacity:1}}),x=new h.A("MessageMoveOut",{"0%":{maxHeight:e.height,padding:m,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}});return[{[t]:(0,r.A)((0,r.A)({},(0,g.dF)(e)),{position:"fixed",top:f,left:"50%",transform:"translateX(-50%)",width:"100%",pointerEvents:"none",zIndex:y,[`${t}-move-up`]:{animationFillMode:"forwards"},[`\n ${t}-move-up-appear,\n ${t}-move-up-enter\n `]:{animationName:_,animationDuration:p,animationPlayState:"paused",animationTimingFunction:d},[`\n ${t}-move-up-appear${t}-move-up-appear-active,\n ${t}-move-up-enter${t}-move-up-enter-active\n `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:x,animationDuration:p,animationPlayState:"paused",animationTimingFunction:d},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[`${t}-notice`]:{padding:m,textAlign:"center",[n]:{verticalAlign:"text-bottom",marginInlineEnd:f,fontSize:c},[`${t}-notice-content`]:{display:"inline-block",padding:b,background:i,borderRadius:v,boxShadow:o,pointerEvents:"all"},[`${t}-success ${n}`]:{color:a},[`${t}-error ${n}`]:{color:s},[`${t}-warning ${n}`]:{color:l},[`\n ${t}-info ${n},\n ${t}-loading ${n}`]:{color:u}}},{[`${t}-notice-pure-panel`]:{padding:0,textAlign:"start"}}]};var v=(0,p.A)("Message",(e=>{const t=(0,f.h1)(e,{messageNoticeContentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`});return[m(t)]}),(e=>({height:150,zIndexPopup:e.zIndexPopupBase+10}))),y=n(69751),b=n(39375),_=n(23273),x=n(36657),w=n(90551);const O={info:(0,o.createVNode)(c.A,null,null),success:(0,o.createVNode)(u.A,null,null),error:(0,o.createVNode)(l.A,null,null),warning:(0,o.createVNode)(s.A,null,null),loading:(0,o.createVNode)(a.A,null,null)},S=(0,o.defineComponent)({name:"PureContent",inheritAttrs:!1,props:["prefixCls","type","icon"],setup(e,t){let{slots:n}=t;return()=>{var t;return(0,o.createVNode)("div",{class:(0,d.A)(`${e.prefixCls}-custom-content`,`${e.prefixCls}-${e.type}`)},[e.icon||O[e.type],(0,o.createVNode)("span",null,[null===(t=n.default)||void 0===t?void 0:t.call(n)])])}}});(0,o.defineComponent)({name:"PurePanel",inheritAttrs:!1,props:["prefixCls","class","type","icon","content"],setup(e,t){let{slots:n,attrs:r}=t;var i;const{getPrefixCls:a}=(0,w.OQ)(),s=(0,o.computed)((()=>e.prefixCls||a("message"))),[,l]=v(s);return(0,o.createVNode)(x.A,(0,y.A)((0,y.A)({},r),{},{prefixCls:s.value,class:(0,d.A)(l.value,`${s.value}-notice-pure-panel`),noticeKey:"pure",duration:null}),{default:()=>[(0,o.createVNode)(S,{prefixCls:s.value,type:e.type,icon:e.icon},{default:()=>[null===(i=n.default)||void 0===i?void 0:i.call(n)]})]})}});var A=n(1684),k=n(92389),C=n(3551),M=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const T=8,P=3,I=(0,o.defineComponent)({name:"Holder",inheritAttrs:!1,props:["top","prefixCls","getContainer","maxCount","duration","rtl","transitionName","onAllRemoved"],setup(e,t){let{expose:n}=t;var i,a;const{getPrefixCls:s,getPopupContainer:l}=(0,C.A)("message",e),u=(0,o.computed)((()=>s("message",e.prefixCls))),[,c]=v(u),h=()=>{var t;const n=null!==(t=e.top)&&void 0!==t?t:T;return{left:"50%",transform:"translateX(-50%)",top:"number"===typeof n?`${n}px`:n}},p=()=>(0,d.A)(c.value,e.rtl?`${u.value}-rtl`:""),f=()=>{var t;return(0,A.V)({prefixCls:u.value,animation:null!==(t=e.animation)&&void 0!==t?t:"move-up",transitionName:e.transitionName})},g=(0,o.createVNode)("span",{class:`${u.value}-close-x`},[(0,o.createVNode)(_.A,{class:`${u.value}-close-icon`},null)]),[m,y]=(0,b.A)({getStyles:h,prefixCls:u.value,getClassName:p,motion:f,closable:!1,closeIcon:g,duration:null!==(i=e.duration)&&void 0!==i?i:P,getContainer:null!==(a=e.staticGetContainer)&&void 0!==a?a:l.value,maxCount:e.maxCount,onAllRemoved:e.onAllRemoved});return n((0,r.A)((0,r.A)({},m),{prefixCls:u,hashId:c})),y}});let $=0;function E(e){const t=(0,o.shallowRef)(null),n=Symbol("messageHolderKey"),i=e=>{var n;null===(n=t.value)||void 0===n||n.close(e)},a=e=>{if(!t.value){const e=()=>{};return e.then=()=>{},e}const{open:n,prefixCls:a,hashId:s}=t.value,l=`${a}-notice`,{content:u,icon:c,type:h,key:p,class:f,onClose:g}=e,m=M(e,["content","icon","type","key","class","onClose"]);let v=p;return void 0!==v&&null!==v||($+=1,v=`antd-message-${$}`),(0,k.Ew)((e=>(n((0,r.A)((0,r.A)({},m),{key:v,content:()=>(0,o.createVNode)(S,{prefixCls:a,type:h,icon:"function"===typeof c?c():c},{default:()=>["function"===typeof u?u():u]}),placement:"top",class:(0,d.A)(h&&`${l}-${h}`,s,f),onClose:()=>{null===g||void 0===g||g(),e()}})),()=>{i(v)})))},s=e=>{var n;void 0!==e?i(e):null===(n=t.value)||void 0===n||n.destroy()},l={open:a,destroy:s},u=["info","success","warning","error","loading"];return u.forEach((e=>{const t=(t,n,o)=>{let i,s,l;i=t&&"object"===typeof t&&"content"in t?t:{content:t},"function"===typeof n?l=n:(s=n,l=o);const u=(0,r.A)((0,r.A)({onClose:l,duration:s},i),{type:e});return a(u)};l[e]=t})),[l,()=>(0,o.createVNode)(I,(0,y.A)((0,y.A)({key:n},e),{},{ref:t}),null)]}function D(e){return E(e)}let R,N,L,z=3,V=1,B="",j="move-up",Q=!1,F=()=>document.body,W=!1;function H(){return V++}function Z(e){void 0!==e.top&&(R=e.top,N=null),void 0!==e.duration&&(z=e.duration),void 0!==e.prefixCls&&(B=e.prefixCls),void 0!==e.getContainer&&(F=e.getContainer,N=null),void 0!==e.transitionName&&(j=e.transitionName,N=null,Q=!0),void 0!==e.maxCount&&(L=e.maxCount,N=null),void 0!==e.rtl&&(W=e.rtl)}function G(e,t){N?t(N):i.A.newInstance({appContext:e.appContext,prefixCls:e.prefixCls||B,rootPrefixCls:e.rootPrefixCls,transitionName:j,hasTransitionName:Q,style:{top:R},getContainer:F||e.getPopupContainer,maxCount:L,name:"message",useStyle:v},(e=>{N?t(N):(N=e,t(e))}))}const X={info:c.A,success:u.A,error:l.A,warning:s.A,loading:a.A},U=Object.keys(X);function Y(e){const t=void 0!==e.duration?e.duration:z,n=e.key||H(),r=new Promise((r=>{const i=()=>("function"===typeof e.onClose&&e.onClose(),r(!0));G(e,(r=>{r.notice({key:n,duration:t,style:e.style||{},class:e.class,content:t=>{let{prefixCls:n}=t;const r=X[e.type],i=r?(0,o.createVNode)(r,null,null):"",a=(0,d.A)(`${n}-custom-content`,{[`${n}-${e.type}`]:e.type,[`${n}-rtl`]:!0===W});return(0,o.createVNode)("div",{class:a},["function"===typeof e.icon?e.icon():e.icon||i,(0,o.createVNode)("span",null,["function"===typeof e.content?e.content():e.content])])},onClose:i,onClick:e.onClick})}))})),i=()=>{N&&N.removeNotice(n)};return i.then=(e,t)=>r.then(e,t),i.promise=r,i}function q(e){return"[object Object]"===Object.prototype.toString.call(e)&&!!e.content}const K={open:Y,config:Z,destroy(e){if(N)if(e){const{removeNotice:t}=N;t(e)}else{const{destroy:e}=N;e(),N=null}}};function J(e,t){e[t]=(n,o,i)=>q(n)?e.open((0,r.A)((0,r.A)({},n),{type:t})):("function"===typeof o&&(i=o,o=void 0),e.open({content:n,duration:o,type:t,onClose:i}))}U.forEach((e=>J(K,e))),K.warn=K.warning,K.useMessage=D;var ee=K},19559:function(e,t,n){"use strict";n.d(t,{L:function(){return a},l:function(){return s}});var r=n(98657),o=n(24619);let i=(0,r.A)({},o.A.Modal);function a(e){i=e?(0,r.A)((0,r.A)({},i),e):(0,r.A)({},o.A.Modal)}function s(){return i}},54183:function(e,t,n){"use strict";n.d(t,{D:function(){return c}});var r=n(98657),o=n(7672),i=n(41781),a=n(94471),s=n(96704),l=n(69729);n(9274);function u(e){return{position:e,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0}}const c=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}${e.antCls}-zoom-enter, ${t}${e.antCls}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${e.antCls}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:(0,r.A)((0,r.A)({},u("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:(0,r.A)((0,r.A)({},u("fixed")),{overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:(0,o.p9)(e)}]},d=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap`]:{zIndex:e.zIndexPopupBase,position:"fixed",inset:0,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"},[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax})`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${e.marginXS} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:(0,r.A)((0,r.A)({},(0,l.dF)(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${2*e.margin}px)`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.modalHeadingColor,fontWeight:e.fontWeightStrong,fontSize:e.modalHeaderTitleFontSize,lineHeight:e.modalHeaderTitleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.modalContentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadowSecondary,pointerEvents:"auto",padding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`},[`${t}-close`]:(0,r.A)({position:"absolute",top:(e.modalHeaderCloseSize-e.modalCloseBtnSize)/2,insetInlineEnd:(e.modalHeaderCloseSize-e.modalCloseBtnSize)/2,zIndex:e.zIndexPopupBase+10,padding:0,color:e.modalCloseColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalConfirmIconSize,height:e.modalConfirmIconSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"block",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:`${e.modalCloseBtnSize}px`,textAlign:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalIconHoverColor,backgroundColor:e.wireframe?"transparent":e.colorFillContent,textDecoration:"none"},"&:active":{backgroundColor:e.wireframe?"transparent":e.colorFillContentHover}},(0,l.K8)(e)),[`${t}-header`]:{color:e.colorText,background:e.modalHeaderBg,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,marginBottom:e.marginXS},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word"},[`${t}-footer`]:{textAlign:"end",background:e.modalFooterBg,marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn:not(${e.antCls}-dropdown-trigger)`]:{marginBottom:0,marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,\n ${t}-body,\n ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},h=e=>{const{componentCls:t}=e,n=`${t}-confirm`;return{[n]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${n}-body-wrapper`]:(0,r.A)({},(0,l.t6)()),[`${n}-body`]:{display:"flex",flexWrap:"wrap",alignItems:"center",[`${n}-title`]:{flex:"0 0 100%",display:"block",overflow:"hidden",color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.modalHeaderTitleFontSize,lineHeight:e.modalHeaderTitleLineHeight,[`+ ${n}-content`]:{marginBlockStart:e.marginXS,flexBasis:"100%",maxWidth:`calc(100% - ${e.modalConfirmIconSize+e.marginSM}px)`}},[`${n}-content`]:{color:e.colorText,fontSize:e.fontSize},[`> ${e.iconCls}`]:{flex:"none",marginInlineEnd:e.marginSM,fontSize:e.modalConfirmIconSize,[`+ ${n}-title`]:{flex:1},[`+ ${n}-title + ${n}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.marginSM}}},[`${n}-btns`]:{textAlign:"end",marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${n}-error ${n}-body > ${e.iconCls}`]:{color:e.colorError},[`${n}-warning ${n}-body > ${e.iconCls},\n ${n}-confirm ${n}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${n}-info ${n}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${n}-success ${n}-body > ${e.iconCls}`]:{color:e.colorSuccess},[`${t}-zoom-leave ${t}-btns`]:{pointerEvents:"none"}}},p=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},f=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-confirm`;return{[t]:{[`${t}-content`]:{padding:0},[`${t}-header`]:{padding:e.modalHeaderPadding,borderBottom:`${e.modalHeaderBorderWidth}px ${e.modalHeaderBorderStyle} ${e.modalHeaderBorderColorSplit}`,marginBottom:0},[`${t}-body`]:{padding:e.modalBodyPadding},[`${t}-footer`]:{padding:`${e.modalFooterPaddingVertical}px ${e.modalFooterPaddingHorizontal}px`,borderTop:`${e.modalFooterBorderWidth}px ${e.modalFooterBorderStyle} ${e.modalFooterBorderColorSplit}`,borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`,marginTop:0}},[r]:{[`${n}-modal-body`]:{padding:`${2*e.padding}px ${2*e.padding}px ${e.paddingLG}px`},[`${r}-body`]:{[`> ${e.iconCls}`]:{marginInlineEnd:e.margin,[`+ ${r}-title + ${r}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.margin}}},[`${r}-btns`]:{marginTop:e.marginLG}}}};t.A=(0,a.A)("Modal",(e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5,o=(0,s.h1)(e,{modalBodyPadding:e.paddingLG,modalHeaderBg:e.colorBgElevated,modalHeaderPadding:`${t}px ${e.paddingLG}px`,modalHeaderBorderWidth:e.lineWidth,modalHeaderBorderStyle:e.lineType,modalHeaderTitleLineHeight:r,modalHeaderTitleFontSize:n,modalHeaderBorderColorSplit:e.colorSplit,modalHeaderCloseSize:r*n+2*t,modalContentBg:e.colorBgElevated,modalHeadingColor:e.colorTextHeading,modalCloseColor:e.colorTextDescription,modalFooterBg:"transparent",modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterPaddingVertical:e.paddingXS,modalFooterPaddingHorizontal:e.padding,modalFooterBorderWidth:e.lineWidth,modalConfirmTitleFontSize:e.fontSizeLG,modalIconHoverColor:e.colorIconHover,modalConfirmIconSize:e.fontSize*e.lineHeight,modalCloseBtnSize:.55*e.controlHeightLG});return[d(o),h(o),p(o),c(o),e.wireframe&&f(o),(0,i.aB)(o,"zoom")]}))},45776:function(e,t,n){"use strict";var r=n(69751),o=n(9274),i=n(13389),a=n(5530),s=n(46808),l=n(3551),u=n(66041),c=n(35162),d=n(20352),h=n(3277);const p=()=>({prefixCls:String,value:a.A.any,size:(0,u.WO)(),options:(0,u.MY)(),disabled:(0,u.HE)(),name:String,buttonStyle:(0,u.WO)("outline"),id:String,optionType:(0,u.WO)("default"),onChange:(0,u.Fg)(),"onUpdate:value":(0,u.Fg)()});t.A=(0,o.defineComponent)({compatConfig:{MODE:3},name:"ARadioGroup",inheritAttrs:!1,props:p(),setup(e,t){let{slots:n,emit:a,attrs:u}=t;const p=(0,c.db)(),{prefixCls:f,direction:g,size:m}=(0,l.A)("radio",e),[v,y]=(0,h.A)(f),b=(0,o.ref)(e.value),_=(0,o.ref)(!1);(0,o.watch)((()=>e.value),(e=>{b.value=e,_.value=!1}));const x=t=>{const n=b.value,{value:r}=t.target;"value"in e||(b.value=r),_.value||r===n||(_.value=!0,a("update:value",r),a("change",t),p.onFieldChange()),(0,o.nextTick)((()=>{_.value=!1}))};return(0,d.yz)({onChange:x,value:b,disabled:(0,o.computed)((()=>e.disabled)),name:(0,o.computed)((()=>e.name)),optionType:(0,o.computed)((()=>e.optionType))}),()=>{var t;const{options:a,buttonStyle:l,id:c=p.id.value}=e,d=`${f.value}-group`,h=(0,i.A)(d,`${d}-${l}`,{[`${d}-${m.value}`]:m.value,[`${d}-rtl`]:"rtl"===g.value},u.class,y.value);let _=null;return _=a&&a.length>0?a.map((t=>{if("string"===typeof t||"number"===typeof t)return(0,o.createVNode)(s.A,{key:t,prefixCls:f.value,disabled:e.disabled,value:t,checked:b.value===t},{default:()=>[t]});const{value:n,disabled:r,label:i}=t;return(0,o.createVNode)(s.A,{key:`radio-group-value-options-${n}`,prefixCls:f.value,disabled:r||e.disabled,value:n,checked:b.value===n},{default:()=>[i]})})):null===(t=n.default)||void 0===t?void 0:t.call(n),v((0,o.createVNode)("div",(0,r.A)((0,r.A)({},u),{},{class:h,id:c}),[_]))}}})},46808:function(e,t,n){"use strict";n.d(t,{q:function(){return v}});var r=n(69751),o=n(98657),i=n(9274),a=n(5530),s=n(44942),l=n(13389),u=n(3551),c=n(35162),d=n(21244),h=n(20352),p=n(66041),f=n(3277),g=n(99415),m=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const v=()=>({prefixCls:String,checked:(0,p.HE)(),disabled:(0,p.HE)(),isGroup:(0,p.HE)(),value:a.A.any,name:String,id:String,autofocus:(0,p.HE)(),onChange:(0,p.Fg)(),onFocus:(0,p.Fg)(),onBlur:(0,p.Fg)(),onClick:(0,p.Fg)(),"onUpdate:checked":(0,p.Fg)(),"onUpdate:value":(0,p.Fg)()});t.A=(0,i.defineComponent)({compatConfig:{MODE:3},name:"ARadio",inheritAttrs:!1,props:v(),setup(e,t){let{emit:n,expose:a,slots:p,attrs:v}=t;const y=(0,c.db)(),b=c.$W.useInject(),_=(0,h.c7)(),x=(0,h.yt)(),w=(0,g.p)(),O=(0,i.computed)((()=>{var e;return null!==(e=C.value)&&void 0!==e?e:w.value})),S=(0,i.ref)(),{prefixCls:A,direction:k,disabled:C}=(0,u.A)("radio",e),M=(0,i.computed)((()=>"button"===(null===x||void 0===x?void 0:x.optionType.value)||"button"===_?`${A.value}-button`:A.value)),T=(0,g.p)(),[P,I]=(0,f.A)(A),$=()=>{S.value.focus()},E=()=>{S.value.blur()};a({focus:$,blur:E});const D=e=>{const t=e.target.checked;n("update:checked",t),n("update:value",t),n("change",e),y.onFieldChange()},R=e=>{n("change",e),x&&x.onChange&&x.onChange(e)};return()=>{var t;const n=x,{prefixCls:a,id:u=y.id.value}=e,c=m(e,["prefixCls","id"]),h=(0,o.A)((0,o.A)({prefixCls:M.value,id:u},(0,d.A)(c,["onUpdate:checked","onUpdate:value"])),{disabled:null!==(t=C.value)&&void 0!==t?t:T.value});n?(h.name=n.name.value,h.onChange=R,h.checked=e.value===n.value.value,h.disabled=O.value||n.disabled.value):h.onChange=D;const f=(0,l.A)({[`${M.value}-wrapper`]:!0,[`${M.value}-wrapper-checked`]:h.checked,[`${M.value}-wrapper-disabled`]:h.disabled,[`${M.value}-wrapper-rtl`]:"rtl"===k.value,[`${M.value}-wrapper-in-form-item`]:b.isFormItemInput},v.class,I.value);return P((0,i.createVNode)("label",(0,r.A)((0,r.A)({},v),{},{class:f}),[(0,i.createVNode)(s.A,(0,r.A)((0,r.A)({},h),{},{type:"radio",ref:S}),null),p.default&&(0,i.createVNode)("span",null,[p.default()])]))}}})},15240:function(e,t,n){"use strict";var r=n(69751),o=n(9274),i=n(46808),a=n(3551),s=n(20352);t.A=(0,o.defineComponent)({compatConfig:{MODE:3},name:"ARadioButton",inheritAttrs:!1,props:(0,i.q)(),setup(e,t){let{slots:n,attrs:l}=t;const{prefixCls:u}=(0,a.A)("radio",e);return(0,s.kT)("button"),()=>{var t;return(0,o.createVNode)(i.A,(0,r.A)((0,r.A)((0,r.A)({},l),e),{},{prefixCls:u.value}),{default:()=>[null===(t=n.default)||void 0===t?void 0:t.call(n)]})}}})},20352:function(e,t,n){"use strict";n.d(t,{c7:function(){return u},kT:function(){return l},yt:function(){return a},yz:function(){return i}});var r=n(9274);const o=Symbol("radioGroupContextKey"),i=e=>{(0,r.provide)(o,e)},a=()=>(0,r.inject)(o,void 0),s=Symbol("radioOptionTypeContextKey"),l=e=>{(0,r.provide)(s,e)},u=()=>(0,r.inject)(s,void 0)},3277:function(e,t,n){"use strict";var r=n(98657),o=n(97732),i=n(94471),a=n(96704),s=n(69729);const l=new o.A("antRadioEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),u=e=>{const{componentCls:t,antCls:n}=e,o=`${t}-group`;return{[o]:(0,r.A)((0,r.A)({},(0,s.dF)(e)),{display:"inline-block",fontSize:0,[`&${o}-rtl`]:{direction:"rtl"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},c=e=>{const{componentCls:t,radioWrapperMarginRight:n,radioCheckedColor:o,radioSize:i,motionDurationSlow:a,motionDurationMid:u,motionEaseInOut:c,motionEaseInOutCirc:d,radioButtonBg:h,colorBorder:p,lineWidth:f,radioDotSize:g,colorBgContainerDisabled:m,colorTextDisabled:v,paddingXS:y,radioDotDisabledColor:b,lineType:_,radioDotDisabledSize:x,wireframe:w,colorWhite:O}=e,S=`${t}-inner`;return{[`${t}-wrapper`]:(0,r.A)((0,r.A)({},(0,s.dF)(e)),{position:"relative",display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${f}px ${_} ${o}`,borderRadius:"50%",visibility:"hidden",animationName:l,animationDuration:a,animationTimingFunction:c,animationFillMode:"both",content:'""'},[t]:(0,r.A)((0,r.A)({},(0,s.dF)(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center"}),[`${t}-wrapper:hover &,\n &:hover ${S}`]:{borderColor:o},[`${t}-input:focus-visible + ${S}`]:(0,r.A)({},(0,s.jk)(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:i,height:i,marginBlockStart:i/-2,marginInlineStart:i/-2,backgroundColor:w?o:O,borderBlockStart:0,borderInlineStart:0,borderRadius:i,transform:"scale(0)",opacity:0,transition:`all ${a} ${d}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:i,height:i,backgroundColor:h,borderColor:p,borderStyle:"solid",borderWidth:f,borderRadius:"50%",transition:`all ${u}`},[`${t}-input`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,insetBlockEnd:0,insetInlineStart:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[S]:{borderColor:o,backgroundColor:w?h:o,"&::after":{transform:`scale(${g/i})`,opacity:1,transition:`all ${a} ${d}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[S]:{backgroundColor:m,borderColor:p,cursor:"not-allowed","&::after":{backgroundColor:b}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:v,cursor:"not-allowed"},[`&${t}-checked`]:{[S]:{"&::after":{transform:`scale(${x/i})`}}}},[`span${t} + *`]:{paddingInlineStart:y,paddingInlineEnd:y}})}},d=e=>{const{radioButtonColor:t,controlHeight:n,componentCls:o,lineWidth:i,lineType:a,colorBorder:l,motionDurationSlow:u,motionDurationMid:c,radioButtonPaddingHorizontal:d,fontSize:h,radioButtonBg:p,fontSizeLG:f,controlHeightLG:g,controlHeightSM:m,paddingXS:v,borderRadius:y,borderRadiusSM:b,borderRadiusLG:_,radioCheckedColor:x,radioButtonCheckedBg:w,radioButtonHoverColor:O,radioButtonActiveColor:S,radioSolidCheckedColor:A,colorTextDisabled:k,colorBgContainerDisabled:C,radioDisabledButtonCheckedColor:M,radioDisabledButtonCheckedBg:T}=e;return{[`${o}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:d,paddingBlock:0,color:t,fontSize:h,lineHeight:n-2*i+"px",background:p,border:`${i}px ${a} ${l}`,borderBlockStartWidth:i+.02,borderInlineStartWidth:0,borderInlineEndWidth:i,cursor:"pointer",transition:[`color ${c}`,`background ${c}`,`border-color ${c}`,`box-shadow ${c}`].join(","),a:{color:t},[`> ${o}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-i,insetInlineStart:-i,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:i,paddingInline:0,backgroundColor:l,transition:`background-color ${u}`,content:'""'}},"&:first-child":{borderInlineStart:`${i}px ${a} ${l}`,borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y},"&:first-child:last-child":{borderRadius:y},[`${o}-group-large &`]:{height:g,fontSize:f,lineHeight:g-2*i+"px","&:first-child":{borderStartStartRadius:_,borderEndStartRadius:_},"&:last-child":{borderStartEndRadius:_,borderEndEndRadius:_}},[`${o}-group-small &`]:{height:m,paddingInline:v-i,paddingBlock:0,lineHeight:m-2*i+"px","&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},"&:hover":{position:"relative",color:x},"&:has(:focus-visible)":(0,r.A)({},(0,s.jk)(e)),[`${o}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${o}-button-wrapper-disabled)`]:{zIndex:1,color:x,background:w,borderColor:x,"&::before":{backgroundColor:x},"&:first-child":{borderColor:x},"&:hover":{color:O,borderColor:O,"&::before":{backgroundColor:O}},"&:active":{color:S,borderColor:S,"&::before":{backgroundColor:S}}},[`${o}-group-solid &-checked:not(${o}-button-wrapper-disabled)`]:{color:A,background:x,borderColor:x,"&:hover":{color:A,background:O,borderColor:O},"&:active":{color:A,background:S,borderColor:S}},"&-disabled":{color:k,backgroundColor:C,borderColor:l,cursor:"not-allowed","&:first-child, &:hover":{color:k,backgroundColor:C,borderColor:l}},[`&-disabled${o}-button-wrapper-checked`]:{color:M,backgroundColor:T,borderColor:l,boxShadow:"none"}}}};t.A=(0,i.A)("Radio",(e=>{const{padding:t,lineWidth:n,controlItemBgActiveDisabled:r,colorTextDisabled:o,colorBgContainer:i,fontSizeLG:s,controlOutline:l,colorPrimaryHover:h,colorPrimaryActive:p,colorText:f,colorPrimary:g,marginXS:m,controlOutlineWidth:v,colorTextLightSolid:y,wireframe:b}=e,_=`0 0 0 ${v}px ${l}`,x=_,w=s,O=4,S=w-2*O,A=b?S:w-2*(O+n),k=g,C=f,M=h,T=p,P=t-n,I=o,$=m,E=(0,a.h1)(e,{radioFocusShadow:_,radioButtonFocusShadow:x,radioSize:w,radioDotSize:A,radioDotDisabledSize:S,radioCheckedColor:k,radioDotDisabledColor:o,radioSolidCheckedColor:y,radioButtonBg:i,radioButtonCheckedBg:i,radioButtonColor:C,radioButtonHoverColor:M,radioButtonActiveColor:T,radioButtonPaddingHorizontal:P,radioDisabledButtonCheckedBg:r,radioDisabledButtonCheckedColor:I,radioWrapperMarginRight:$});return[u(E),c(E),d(E)]}))},83436:function(e,t,n){"use strict";n.d(t,{OQ:function(){return fn},Ay:function(){return gn}});var r=n(69751),o=n(98657),i=n(9274),a=n(13389),s=(n(30381),n(85194),n(27092),n(68925),n(31796),n(21467),n(22064),n(92114),n(52002));function l(e,t){const{key:n}=e;let r;return"value"in e&&({value:r}=e),null!==n&&void 0!==n?n:void 0!==r?r:`rc-index-key-${t}`}function u(e,t){const{label:n,value:r,options:o}=e||{};return{label:n||(t?"children":"label"),value:r||"value",options:o||"options"}}function c(e){let{fieldNames:t,childrenAsData:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=[],{label:o,value:i,options:a}=u(t,!1);function s(e,t){e.forEach((e=>{const u=e[o];if(t||!(a in e)){const n=e[i];r.push({key:l(e,r.length),groupOption:t,data:e,label:u,value:n})}else{let t=u;void 0===t&&n&&(t=e.label),r.push({key:l(e,r.length),group:!0,data:e,label:t}),s(e[a],!0)}}))}return s(e,!1),r}function d(e){const t=(0,o.A)({},e);return"props"in t||Object.defineProperty(t,"props",{get(){return(0,s.$e)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}function h(e,t){if(!t||!t.length)return null;let n=!1;function r(e,t){let[o,...i]=t;if(!o)return[e];const a=e.split(o);return n=n||a.length>1,a.reduce(((e,t)=>[...e,...r(t,i)]),[]).filter((e=>e))}const o=r(e,t);return n?o:null}var p=n(15928),f=n(5530),g=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const m=e=>{const t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}}}},v=(0,i.defineComponent)({name:"SelectTrigger",inheritAttrs:!1,props:{dropdownAlign:Object,visible:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},dropdownClassName:String,dropdownStyle:f.A.object,placement:String,empty:{type:Boolean,default:void 0},prefixCls:String,popupClassName:String,animation:String,transitionName:String,getPopupContainer:Function,dropdownRender:Function,containerWidth:Number,dropdownMatchSelectWidth:f.A.oneOfType([Number,Boolean]).def(!0),popupElement:f.A.any,direction:String,getTriggerDOMNode:Function,onPopupVisibleChange:Function,onPopupMouseEnter:Function,onPopupFocusin:Function,onPopupFocusout:Function},setup(e,t){let{slots:n,attrs:s,expose:l}=t;const u=(0,i.computed)((()=>{const{dropdownMatchSelectWidth:t}=e;return m(t)})),c=(0,i.ref)();return l({getPopupElement:()=>c.value}),()=>{const t=(0,o.A)((0,o.A)({},e),s),{empty:l=!1}=t,d=g(t,["empty"]),{visible:h,dropdownAlign:f,prefixCls:m,popupElement:v,dropdownClassName:y,dropdownStyle:b,direction:_="ltr",placement:x,dropdownMatchSelectWidth:w,containerWidth:O,dropdownRender:S,animation:A,transitionName:k,getPopupContainer:C,getTriggerDOMNode:M,onPopupVisibleChange:T,onPopupMouseEnter:P,onPopupFocusin:I,onPopupFocusout:$}=d,E=`${m}-dropdown`;let D=v;S&&(D=S({menuNode:v,props:e}));const R=A?`${E}-${A}`:k,N=(0,o.A)({minWidth:`${O}px`},b);return"number"===typeof w?N.width=`${w}px`:w&&(N.width=`${O}px`),(0,i.createVNode)(p.A,(0,r.A)((0,r.A)({},e),{},{showAction:T?["click"]:[],hideAction:T?["click"]:[],popupPlacement:x||("rtl"===_?"bottomRight":"bottomLeft"),builtinPlacements:u.value,prefixCls:E,popupTransitionName:R,popupAlign:f,popupVisible:h,getPopupContainer:C,popupClassName:(0,a.A)(y,{[`${E}-empty`]:l}),popupStyle:N,getTriggerDOMNode:M,onPopupVisibleChange:T}),{default:n.default,popup:()=>(0,i.createVNode)("div",{ref:c,onMouseenter:P,onFocusin:I,onFocusout:$},[D])})}}});var y=v,b=n(5347);const _=(e,t)=>{let{slots:n}=t;var r;const{class:o,customizeIcon:a,customizeIconProps:s,onMousedown:l,onClick:u}=e;let c;return c="function"===typeof a?a(s):(0,i.isVNode)(a)?(0,i.cloneVNode)(a):a,(0,i.createVNode)("span",{class:o,onMousedown:e=>{e.preventDefault(),l&&l(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:u,"aria-hidden":!0},[void 0!==c?c:(0,i.createVNode)("span",{class:o.split(/\s+/).map((e=>`${e}-icon`))},[null===(r=n.default)||void 0===r?void 0:r.call(n)])])};_.inheritAttrs=!1,_.displayName="TransBtn",_.props={class:String,customizeIcon:f.A.any,customizeIconProps:f.A.any,onMousedown:Function,onClick:Function};var x=_,w=n(87051),O=n(91949);const S={inputRef:f.A.any,prefixCls:String,id:String,inputElement:f.A.VueNode,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,editable:{type:Boolean,default:void 0},activeDescendantId:String,value:String,open:{type:Boolean,default:void 0},tabindex:f.A.oneOfType([f.A.number,f.A.string]),attrs:f.A.object,onKeydown:{type:Function},onMousedown:{type:Function},onChange:{type:Function},onPaste:{type:Function},onCompositionstart:{type:Function},onCompositionend:{type:Function},onFocus:{type:Function},onBlur:{type:Function}},A=(0,i.defineComponent)({compatConfig:{MODE:3},name:"SelectInput",inheritAttrs:!1,props:S,setup(e){let t=null;const n=(0,i.inject)("VCSelectContainerEvent");return()=>{var r;const{prefixCls:s,id:l,inputElement:u,disabled:c,tabindex:d,autofocus:h,autocomplete:p,editable:f,activeDescendantId:g,value:m,onKeydown:v,onMousedown:y,onChange:b,onPaste:_,onCompositionstart:x,onCompositionend:S,onFocus:A,onBlur:k,open:C,inputRef:M,attrs:T}=e;let P=u||(0,i.createVNode)(O.A,null,null);const I=P.props||{},{onKeydown:$,onInput:E,onFocus:D,onBlur:R,onMousedown:N,onCompositionstart:L,onCompositionend:z,style:V}=I;return P=(0,w.Ob)(P,(0,o.A)((0,o.A)((0,o.A)((0,o.A)((0,o.A)({type:"search"},I),{id:l,ref:M,disabled:c,tabindex:d,lazy:!1,autocomplete:p||"off",autofocus:h,class:(0,a.A)(`${s}-selection-search-input`,null===(r=null===P||void 0===P?void 0:P.props)||void 0===r?void 0:r.class),role:"combobox","aria-expanded":C,"aria-haspopup":"listbox","aria-owns":`${l}_list`,"aria-autocomplete":"list","aria-controls":`${l}_list`,"aria-activedescendant":g}),T),{value:f?m:"",readonly:!f,unselectable:f?null:"on",style:(0,o.A)((0,o.A)({},V),{opacity:f?null:0}),onKeydown:e=>{v(e),$&&$(e)},onMousedown:e=>{y(e),N&&N(e)},onInput:e=>{b(e),E&&E(e)},onCompositionstart(e){x(e),L&&L(e)},onCompositionend(e){S(e),z&&z(e)},onPaste:_,onFocus:function(){clearTimeout(t),D&&D(arguments.length<=0?void 0:arguments[0]),A&&A(arguments.length<=0?void 0:arguments[0]),null===n||void 0===n||n.focus(arguments.length<=0?void 0:arguments[0])},onBlur:function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];t=setTimeout((()=>{R&&R(r[0]),k&&k(r[0]),null===n||void 0===n||n.blur(r[0])}),100)}}),"textarea"===P.type?{}:{type:"search"}),!0,!0),P}}});var k=A,C=n(21330),M=n(6631);const T=Symbol("TreeSelectLegacyContextPropsKey");function P(){return(0,i.inject)(T,{})}const I={id:String,prefixCls:String,values:f.A.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:f.A.any,placeholder:f.A.any,disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:f.A.oneOfType([f.A.number,f.A.string]),compositionStatus:Boolean,removeIcon:f.A.any,choiceTransitionName:String,maxTagCount:f.A.oneOfType([f.A.number,f.A.string]),maxTagTextLength:Number,maxTagPlaceholder:f.A.any.def((()=>e=>`+ ${e.length} ...`)),tagRender:Function,onToggleOpen:{type:Function},onRemove:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},$=e=>{e.preventDefault(),e.stopPropagation()},E=(0,i.defineComponent)({name:"MultipleSelectSelector",inheritAttrs:!1,props:I,setup(e){const t=(0,i.shallowRef)(),n=(0,i.shallowRef)(0),r=(0,i.shallowRef)(!1),o=P(),s=(0,i.computed)((()=>`${e.prefixCls}-selection`)),l=(0,i.computed)((()=>e.open||"tags"===e.mode?e.searchValue:"")),u=(0,i.computed)((()=>"tags"===e.mode||e.showSearch&&(e.open||r.value))),c=(0,i.ref)("");function d(t,n,r,o,l){return(0,i.createVNode)("span",{class:(0,a.A)(`${s.value}-item`,{[`${s.value}-item-disabled`]:r}),title:"string"===typeof t||"number"===typeof t?t.toString():void 0},[(0,i.createVNode)("span",{class:`${s.value}-item-content`},[n]),o&&(0,i.createVNode)(x,{class:`${s.value}-item-remove`,onMousedown:$,onClick:l,customizeIcon:e.removeIcon},{default:()=>[(0,i.createTextVNode)("×")]})])}function h(t,n,r,a,s,l){var u;const c=t=>{$(t),e.onToggleOpen(!open)};let d=l;return o.keyEntities&&(d=(null===(u=o.keyEntities[t])||void 0===u?void 0:u.node)||{}),(0,i.createVNode)("span",{key:t,onMousedown:c},[e.tagRender({label:n,value:t,disabled:r,closable:a,onClose:s,option:d})])}function p(t){const{disabled:n,label:r,value:o,option:i}=t,a=!e.disabled&&!n;let s=r;if("number"===typeof e.maxTagTextLength&&("string"===typeof r||"number"===typeof r)){const t=String(s);t.length>e.maxTagTextLength&&(s=`${t.slice(0,e.maxTagTextLength)}...`)}const l=n=>{var r;n&&n.stopPropagation(),null===(r=e.onRemove)||void 0===r||r.call(e,t)};return"function"===typeof e.tagRender?h(o,s,n,a,l,i):d(r,s,n,a,l)}function f(t){const{maxTagPlaceholder:n=(e=>`+ ${e.length} ...`)}=e,r="function"===typeof n?n(t):n;return d(r,r,!1)}(0,i.watchEffect)((()=>{c.value=l.value})),(0,i.onMounted)((()=>{(0,i.watch)(c,(()=>{n.value=t.value.scrollWidth}),{flush:"post",immediate:!0})}));const g=t=>{const n=t.target.composing;c.value=t.target.value,n||e.onInputChange(t)};return()=>{const{id:o,prefixCls:a,values:d,open:h,inputRef:m,placeholder:v,disabled:y,autofocus:b,autocomplete:_,activeDescendantId:x,tabindex:w,compositionStatus:O,onInputPaste:S,onInputKeyDown:A,onInputMouseDown:T,onInputCompositionStart:P,onInputCompositionEnd:I}=e,$=(0,i.createVNode)("div",{class:`${s.value}-search`,style:{width:n.value+"px"},key:"input"},[(0,i.createVNode)(k,{inputRef:m,open:h,prefixCls:a,id:o,inputElement:null,disabled:y,autofocus:b,autocomplete:_,editable:u.value,activeDescendantId:x,value:c.value,onKeydown:A,onMousedown:T,onChange:g,onPaste:S,onCompositionstart:P,onCompositionend:I,tabindex:w,attrs:(0,C.A)(e,!0),onFocus:()=>r.value=!0,onBlur:()=>r.value=!1},null),(0,i.createVNode)("span",{ref:t,class:`${s.value}-search-mirror`,"aria-hidden":!0},[c.value,(0,i.createTextVNode)(" ")])]),E=(0,i.createVNode)(M.A,{prefixCls:`${s.value}-overflow`,data:d,renderItem:p,renderRest:f,suffix:$,itemKey:"key",maxCount:e.maxTagCount,key:"overflow"},null);return(0,i.createVNode)(i.Fragment,null,[E,!d.length&&!l.value&&!O&&(0,i.createVNode)("span",{class:`${s.value}-placeholder`},[v])])}}});var D=E;const R={inputElement:f.A.any,id:String,prefixCls:String,values:f.A.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:f.A.any,placeholder:f.A.any,compositionStatus:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:f.A.oneOfType([f.A.number,f.A.string]),activeValue:String,backfill:{type:Boolean,default:void 0},optionLabelRender:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},N=(0,i.defineComponent)({name:"SingleSelector",setup(e){const t=(0,i.shallowRef)(!1),n=(0,i.computed)((()=>"combobox"===e.mode)),r=(0,i.computed)((()=>n.value||e.showSearch)),o=(0,i.computed)((()=>{let r=e.searchValue||"";return n.value&&e.activeValue&&!t.value&&(r=e.activeValue),r})),a=P();(0,i.watch)([n,()=>e.activeValue],(()=>{n.value&&(t.value=!1)}),{immediate:!0});const s=(0,i.computed)((()=>!("combobox"!==e.mode&&!e.open&&!e.showSearch)&&(!!o.value||e.compositionStatus))),l=(0,i.computed)((()=>{const t=e.values[0];return!t||"string"!==typeof t.label&&"number"!==typeof t.label?void 0:t.label.toString()})),u=()=>{if(e.values[0])return null;const t=s.value?{visibility:"hidden"}:void 0;return(0,i.createVNode)("span",{class:`${e.prefixCls}-selection-placeholder`,style:t},[e.placeholder])},c=n=>{const r=n.target.composing;r||(t.value=!0,e.onInputChange(n))};return()=>{var t,d,h,p;const{inputElement:f,prefixCls:g,id:m,values:v,inputRef:y,disabled:b,autofocus:_,autocomplete:x,activeDescendantId:w,open:O,tabindex:S,optionLabelRender:A,onInputKeyDown:M,onInputMouseDown:T,onInputPaste:P,onInputCompositionStart:I,onInputCompositionEnd:$}=e,E=v[0];let D=null;if(E&&a.customSlots){const e=null!==(t=E.key)&&void 0!==t?t:E.value,n=(null===(d=a.keyEntities[e])||void 0===d?void 0:d.node)||{};D=a.customSlots[null===(h=n.slots)||void 0===h?void 0:h.title]||a.customSlots.title||E.label,"function"===typeof D&&(D=D(n))}else D=A&&E?A(E.option):null===E||void 0===E?void 0:E.label;return(0,i.createVNode)(i.Fragment,null,[(0,i.createVNode)("span",{class:`${g}-selection-search`},[(0,i.createVNode)(k,{inputRef:y,prefixCls:g,id:m,open:O,inputElement:f,disabled:b,autofocus:_,autocomplete:x,editable:r.value,activeDescendantId:w,value:o.value,onKeydown:M,onMousedown:T,onChange:c,onPaste:P,onCompositionstart:I,onCompositionend:$,tabindex:S,attrs:(0,C.A)(e,!0)},null)]),!n.value&&E&&!s.value&&(0,i.createVNode)("span",{class:`${g}-selection-item`,title:l.value},[(0,i.createVNode)(i.Fragment,{key:null!==(p=E.key)&&void 0!==p?p:E.value},[D])]),u()])}}});N.props=R,N.inheritAttrs=!1;var L=N;function z(e){return![b.A.ESC,b.A.SHIFT,b.A.BACKSPACE,b.A.TAB,b.A.WIN_KEY,b.A.ALT,b.A.META,b.A.WIN_KEY_RIGHT,b.A.CTRL,b.A.SEMICOLON,b.A.EQUALS,b.A.CAPS_LOCK,b.A.CONTEXT_MENU,b.A.F1,b.A.F2,b.A.F3,b.A.F4,b.A.F5,b.A.F6,b.A.F7,b.A.F8,b.A.F9,b.A.F10,b.A.F11,b.A.F12].includes(e)}function V(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,n=null;function r(r){(r||null===n)&&(n=r),clearTimeout(e),e=setTimeout((()=>{n=null}),t)}return(0,i.onBeforeUnmount)((()=>{clearTimeout(e)})),[()=>n,r]}function B(){const e=t=>{e.current=t};return e}var j=B;const Q=(0,i.defineComponent)({name:"Selector",inheritAttrs:!1,props:{id:String,prefixCls:String,showSearch:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},values:f.A.array,multiple:{type:Boolean,default:void 0},mode:String,searchValue:String,activeValue:String,inputElement:f.A.any,autofocus:{type:Boolean,default:void 0},activeDescendantId:String,tabindex:f.A.oneOfType([f.A.number,f.A.string]),disabled:{type:Boolean,default:void 0},placeholder:f.A.any,removeIcon:f.A.any,maxTagCount:f.A.oneOfType([f.A.number,f.A.string]),maxTagTextLength:Number,maxTagPlaceholder:f.A.any,tagRender:Function,optionLabelRender:Function,tokenWithEnter:{type:Boolean,default:void 0},choiceTransitionName:String,onToggleOpen:{type:Function},onSearch:Function,onSearchSubmit:Function,onRemove:Function,onInputKeyDown:{type:Function},domRef:Function},setup(e,t){let{expose:n}=t;const o=j(),a=(0,i.ref)(!1),[s,l]=V(0),u=t=>{const{which:n}=t;n!==b.A.UP&&n!==b.A.DOWN||t.preventDefault(),e.onInputKeyDown&&e.onInputKeyDown(t),n!==b.A.ENTER||"tags"!==e.mode||a.value||e.open||e.onSearchSubmit(t.target.value),z(n)&&e.onToggleOpen(!0)},c=()=>{l(!0)};let d=null;const h=t=>{!1!==e.onSearch(t,!0,a.value)&&e.onToggleOpen(!0)},p=()=>{a.value=!0},f=t=>{a.value=!1,"combobox"!==e.mode&&h(t.target.value)},g=t=>{let{target:{value:n}}=t;if(e.tokenWithEnter&&d&&/[\r\n]/.test(d)){const e=d.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");n=n.replace(e,d)}d=null,h(n)},m=e=>{const{clipboardData:t}=e,n=t.getData("text");d=n},v=e=>{let{target:t}=e;if(t!==o.current){const e=void 0!==document.body.style.msTouchAction;e?setTimeout((()=>{o.current.focus()})):o.current.focus()}},y=t=>{const n=s();t.target===o.current||n||t.preventDefault(),("combobox"===e.mode||e.showSearch&&n)&&e.open||(e.open&&e.onSearch("",!0,!1),e.onToggleOpen())};return n({focus:()=>{o.current.focus()},blur:()=>{o.current.blur()}}),()=>{const{prefixCls:t,domRef:n,mode:s}=e,l={inputRef:o,onInputKeyDown:u,onInputMouseDown:c,onInputChange:g,onInputPaste:m,compositionStatus:a.value,onInputCompositionStart:p,onInputCompositionEnd:f},d="multiple"===s||"tags"===s?(0,i.createVNode)(D,(0,r.A)((0,r.A)({},e),l),null):(0,i.createVNode)(L,(0,r.A)((0,r.A)({},e),l),null);return(0,i.createVNode)("div",{ref:n,class:`${t}-selector`,onClick:v,onMousedown:y},[d])}}});var F=Q;function W(e,t,n){function r(r){var o,i,a;let s=r.target;s.shadowRoot&&r.composed&&(s=r.composedPath()[0]||s);const l=[null===(o=e[0])||void 0===o?void 0:o.value,null===(a=null===(i=e[1])||void 0===i?void 0:i.value)||void 0===a?void 0:a.getPopupElement()];t.value&&l.every((e=>e&&!e.contains(s)&&e!==s))&&n(!1)}(0,i.onMounted)((()=>{window.addEventListener("mousedown",r)})),(0,i.onBeforeUnmount)((()=>{window.removeEventListener("mousedown",r)}))}function H(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;const t=(0,i.shallowRef)(!1);let n;const r=()=>{clearTimeout(n)};(0,i.onMounted)((()=>{r()}));const o=(o,i)=>{r(),n=setTimeout((()=>{t.value=o,i&&i()}),e)};return[t,o,r]}const Z=Symbol("BaseSelectContextKey");function G(e){return(0,i.provide)(Z,e)}function X(){return(0,i.inject)(Z,{})}var U=n(47960),Y=n(16155),q=n(72510);function K(e){if(!(0,i.isRef)(e))return(0,i.reactive)(e);const t=new Proxy({},{get(t,n,r){return Reflect.get(e.value,n,r)},set(t,n,r){return e.value[n]=r,!0},deleteProperty(t,n){return Reflect.deleteProperty(e.value,n)},has(t,n){return Reflect.has(e.value,n)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return(0,i.reactive)(t)}var J=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const ee=["value","onChange","removeIcon","placeholder","autofocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabindex","OptionList","notFoundContent"],te=()=>({prefixCls:String,id:String,omitDomProps:Array,displayValues:Array,onDisplayValuesChange:Function,activeValue:String,activeDescendantId:String,onActiveValueChange:Function,searchValue:String,onSearch:Function,onSearchSplit:Function,maxLength:Number,OptionList:f.A.any,emptyOptions:Boolean}),ne=()=>({showSearch:{type:Boolean,default:void 0},tagRender:{type:Function},optionLabelRender:{type:Function},direction:{type:String},tabindex:Number,autofocus:Boolean,notFoundContent:f.A.any,placeholder:f.A.any,onClear:Function,choiceTransitionName:String,mode:String,disabled:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:void 0},onDropdownVisibleChange:{type:Function},getInputElement:{type:Function},getRawInputElement:{type:Function},maxTagTextLength:Number,maxTagCount:{type:[String,Number]},maxTagPlaceholder:f.A.any,tokenSeparators:{type:Array},allowClear:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:void 0},inputIcon:f.A.any,clearIcon:f.A.any,removeIcon:f.A.any,animation:String,transitionName:String,dropdownStyle:{type:Object},dropdownClassName:String,dropdownMatchSelectWidth:{type:[Boolean,Number],default:void 0},dropdownRender:{type:Function},dropdownAlign:Object,placement:{type:String},getPopupContainer:{type:Function},showAction:{type:Array},onBlur:{type:Function},onFocus:{type:Function},onKeyup:Function,onKeydown:Function,onMousedown:Function,onPopupScroll:Function,onInputKeyDown:Function,onMouseenter:Function,onMouseleave:Function,onClick:Function}),re=()=>(0,o.A)((0,o.A)({},te()),ne());function oe(e){return"tags"===e||"multiple"===e}var ie=(0,i.defineComponent)({compatConfig:{MODE:3},name:"BaseSelect",inheritAttrs:!1,props:(0,U.A)(re(),{showAction:[],notFoundContent:"Not Found"}),setup(e,t){let{attrs:n,expose:s,slots:l}=t;const u=(0,i.computed)((()=>oe(e.mode))),c=(0,i.computed)((()=>void 0!==e.showSearch?e.showSearch:u.value||"combobox"===e.mode)),d=(0,i.shallowRef)(!1);(0,i.onMounted)((()=>{d.value=(0,q.A)()}));const p=P(),f=(0,i.shallowRef)(null),g=j(),m=(0,i.shallowRef)(null),v=(0,i.shallowRef)(null),_=(0,i.shallowRef)(null),O=(0,i.ref)(!1),[S,A,k]=H(),C=()=>{var e;null===(e=v.value)||void 0===e||e.focus()},M=()=>{var e;null===(e=v.value)||void 0===e||e.blur()};s({focus:C,blur:M,scrollTo:e=>{var t;return null===(t=_.value)||void 0===t?void 0:t.scrollTo(e)}});const T=(0,i.computed)((()=>{var t;if("combobox"!==e.mode)return e.searchValue;const n=null===(t=e.displayValues[0])||void 0===t?void 0:t.value;return"string"===typeof n||"number"===typeof n?String(n):""})),I=void 0!==e.open?e.open:e.defaultOpen,$=(0,i.shallowRef)(I),E=(0,i.shallowRef)(I),D=t=>{$.value=void 0!==e.open?e.open:t,E.value=$.value};(0,i.watch)((()=>e.open),(()=>{D(e.open)}));const R=(0,i.computed)((()=>!e.notFoundContent&&e.emptyOptions));(0,i.watchEffect)((()=>{E.value=$.value,(e.disabled||R.value&&E.value&&"combobox"===e.mode)&&(E.value=!1)}));const N=(0,i.computed)((()=>!R.value&&E.value)),L=t=>{const n=void 0!==t?t:!E.value;E.value===n||e.disabled||(D(n),e.onDropdownVisibleChange&&e.onDropdownVisibleChange(n))},z=(0,i.computed)((()=>(e.tokenSeparators||[]).some((e=>["\n","\r\n"].includes(e))))),B=(t,n,r)=>{var o,i;let a=!0,s=t;null===(o=e.onActiveValueChange)||void 0===o||o.call(e,null);const l=r?null:h(t,e.tokenSeparators);return"combobox"!==e.mode&&l&&(s="",null===(i=e.onSearchSplit)||void 0===i||i.call(e,l),L(!1),a=!1),e.onSearch&&T.value!==s&&e.onSearch(s,{source:n?"typing":"effect"}),a},Q=t=>{var n;t&&t.trim()&&(null===(n=e.onSearch)||void 0===n||n.call(e,t,{source:"submit"}))};(0,i.watch)(E,(()=>{E.value||u.value||"combobox"===e.mode||B("",!1,!1)}),{immediate:!0,flush:"post"}),(0,i.watch)((()=>e.disabled),(()=>{$.value&&e.disabled&&D(!1),e.disabled&&!O.value&&A(!1)}),{immediate:!0});const[Z,X]=V(),U=function(t){var n;const r=Z(),{which:o}=t;if(o===b.A.ENTER&&("combobox"!==e.mode&&t.preventDefault(),E.value||L(!0)),X(!!T.value),o===b.A.BACKSPACE&&!r&&u.value&&!T.value&&e.displayValues.length){const t=[...e.displayValues];let n=null;for(let e=t.length-1;e>=0;e-=1){const r=t[e];if(!r.disabled){t.splice(e,1),n=r;break}}n&&e.onDisplayValuesChange(t,{type:"remove",values:[n]})}for(var i=arguments.length,a=new Array(i>1?i-1:0),s=1;s<i;s++)a[s-1]=arguments[s];E.value&&_.value&&_.value.onKeydown(t,...a),null===(n=e.onKeydown)||void 0===n||n.call(e,t,...a)},te=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];E.value&&_.value&&_.value.onKeyup(t,...r),e.onKeyup&&e.onKeyup(t,...r)},ne=t=>{const n=e.displayValues.filter((e=>e!==t));e.onDisplayValuesChange(n,{type:"remove",values:[t]})},re=(0,i.shallowRef)(!1),ie=function(){A(!0),e.disabled||(e.onFocus&&!re.value&&e.onFocus(...arguments),e.showAction&&e.showAction.includes("focus")&&L(!0)),re.value=!0},ae=(0,i.ref)(!1),se=function(){if(ae.value)return;if(O.value=!0,A(!1,(()=>{re.value=!1,O.value=!1,L(!1)})),e.disabled)return;const t=T.value;t&&("tags"===e.mode?e.onSearch(t,{source:"submit"}):"multiple"===e.mode&&e.onSearch("",{source:"blur"})),e.onBlur&&e.onBlur(...arguments)},le=()=>{ae.value=!0},ue=()=>{ae.value=!1};(0,i.provide)("VCSelectContainerEvent",{focus:ie,blur:se});const ce=[];(0,i.onMounted)((()=>{ce.forEach((e=>clearTimeout(e))),ce.splice(0,ce.length)})),(0,i.onBeforeUnmount)((()=>{ce.forEach((e=>clearTimeout(e))),ce.splice(0,ce.length)}));const de=function(t){var n,r;const{target:o}=t,i=null===(n=m.value)||void 0===n?void 0:n.getPopupElement();if(i&&i.contains(o)){const e=setTimeout((()=>{var t;const n=ce.indexOf(e);-1!==n&&ce.splice(n,1),k(),d.value||i.contains(document.activeElement)||null===(t=v.value)||void 0===t||t.focus()}));ce.push(e)}for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];null===(r=e.onMousedown)||void 0===r||r.call(e,t,...s)},he=(0,i.shallowRef)(null),pe=()=>{};return(0,i.onMounted)((()=>{(0,i.watch)(N,(()=>{var e;if(N.value){const t=Math.ceil(null===(e=f.value)||void 0===e?void 0:e.offsetWidth);he.value===t||Number.isNaN(t)||(he.value=t)}}),{immediate:!0,flush:"post"})})),W([f,m],N,L),G(K((0,o.A)((0,o.A)({},(0,i.toRefs)(e)),{open:E,triggerOpen:N,showSearch:c,multiple:u,toggleOpen:L}))),()=>{const t=(0,o.A)((0,o.A)({},e),n),{prefixCls:s,id:d,open:h,defaultOpen:b,mode:O,showSearch:A,searchValue:k,onSearch:C,allowClear:M,clearIcon:P,showArrow:I,inputIcon:$,disabled:D,loading:R,getInputElement:V,getPopupContainer:j,placement:W,animation:H,transitionName:Z,dropdownStyle:G,dropdownClassName:X,dropdownMatchSelectWidth:q,dropdownRender:K,dropdownAlign:re,showAction:oe,direction:ie,tokenSeparators:ae,tagRender:se,optionLabelRender:ce,onPopupScroll:fe,onDropdownVisibleChange:ge,onFocus:me,onBlur:ve,onKeyup:ye,onKeydown:be,onMousedown:_e,onClear:xe,omitDomProps:we,getRawInputElement:Oe,displayValues:Se,onDisplayValuesChange:Ae,emptyOptions:ke,activeDescendantId:Ce,activeValue:Me,OptionList:Te}=t,Pe=J(t,["prefixCls","id","open","defaultOpen","mode","showSearch","searchValue","onSearch","allowClear","clearIcon","showArrow","inputIcon","disabled","loading","getInputElement","getPopupContainer","placement","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","showAction","direction","tokenSeparators","tagRender","optionLabelRender","onPopupScroll","onDropdownVisibleChange","onFocus","onBlur","onKeyup","onKeydown","onMousedown","onClear","omitDomProps","getRawInputElement","displayValues","onDisplayValuesChange","emptyOptions","activeDescendantId","activeValue","OptionList"]),Ie="combobox"===O&&V&&V()||null,$e="function"===typeof Oe&&Oe(),Ee=(0,o.A)({},Pe);let De;$e&&(De=e=>{L(e)}),ee.forEach((e=>{delete Ee[e]})),null===we||void 0===we||we.forEach((e=>{delete Ee[e]}));const Re=void 0!==I?I:R||!u.value&&"combobox"!==O;let Ne,Le;Re&&(Ne=(0,i.createVNode)(x,{class:(0,a.A)(`${s}-arrow`,{[`${s}-arrow-loading`]:R}),customizeIcon:$,customizeIconProps:{loading:R,searchValue:T.value,open:E.value,focused:S.value,showSearch:c.value}},null));const ze=()=>{null===xe||void 0===xe||xe(),Ae([],{type:"clear",values:Se}),B("",!1,!1)};!D&&M&&(Se.length||T.value)&&(Le=(0,i.createVNode)(x,{class:`${s}-clear`,onMousedown:ze,customizeIcon:P},{default:()=>[(0,i.createTextVNode)("×")]}));const Ve=(0,i.createVNode)(Te,{ref:_},(0,o.A)((0,o.A)({},p.customSlots),{option:l.option})),Be=(0,a.A)(s,n.class,{[`${s}-focused`]:S.value,[`${s}-multiple`]:u.value,[`${s}-single`]:!u.value,[`${s}-allow-clear`]:M,[`${s}-show-arrow`]:Re,[`${s}-disabled`]:D,[`${s}-loading`]:R,[`${s}-open`]:E.value,[`${s}-customize-input`]:Ie,[`${s}-show-search`]:c.value}),je=(0,i.createVNode)(y,{ref:m,disabled:D,prefixCls:s,visible:N.value,popupElement:Ve,containerWidth:he.value,animation:H,transitionName:Z,dropdownStyle:G,dropdownClassName:X,direction:ie,dropdownMatchSelectWidth:q,dropdownRender:K,dropdownAlign:re,placement:W,getPopupContainer:j,empty:ke,getTriggerDOMNode:()=>g.current,onPopupVisibleChange:De,onPopupMouseEnter:pe,onPopupFocusin:le,onPopupFocusout:ue},{default:()=>$e?(0,Y.zO)($e)&&(0,w.Ob)($e,{ref:g},!1,!0):(0,i.createVNode)(F,(0,r.A)((0,r.A)({},e),{},{domRef:g,prefixCls:s,inputElement:Ie,ref:v,id:d,showSearch:c.value,mode:O,activeDescendantId:Ce,tagRender:se,optionLabelRender:ce,values:Se,open:E.value,onToggleOpen:L,activeValue:Me,searchValue:T.value,onSearch:B,onSearchSubmit:Q,onRemove:ne,tokenWithEnter:z.value}),null)});let Qe;return Qe=$e?je:(0,i.createVNode)("div",(0,r.A)((0,r.A)({},Ee),{},{class:Be,ref:f,onMousedown:de,onKeydown:U,onKeyup:te}),[S.value&&!E.value&&(0,i.createVNode)("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},[`${Se.map((e=>{let{label:t,value:n}=e;return["number","string"].includes(typeof t)?t:n})).join(", ")}`]),je,Ne,Le]),Qe}}}),ae=n(71555);const se=(e,t)=>{let{height:n,offset:r,prefixCls:s,onInnerResize:l}=e,{slots:u}=t;var c;let d={},h={display:"flex",flexDirection:"column"};return void 0!==r&&(d={height:`${n}px`,position:"relative",overflow:"hidden"},h=(0,o.A)((0,o.A)({},h),{transform:`translateY(${r}px)`,position:"absolute",left:0,right:0,top:0})),(0,i.createVNode)("div",{style:d},[(0,i.createVNode)(ae.A,{onResize:e=>{let{offsetHeight:t}=e;t&&l&&l()}},{default:()=>[(0,i.createVNode)("div",{style:h,class:(0,a.A)({[`${s}-holder-inner`]:s})},[null===(c=u.default)||void 0===c?void 0:c.call(u)])]})])};se.displayName="Filter",se.inheritAttrs=!1,se.props={prefixCls:String,height:Number,offset:Number,onInnerResize:Function};var le=se;const ue=(e,t)=>{let{setRef:n}=e,{slots:r}=t;var o;const a=(0,Y.MI)(null===(o=r.default)||void 0===o?void 0:o.call(r));return a&&a.length?(0,i.cloneVNode)(a[0],{ref:n}):a};ue.props={setRef:{type:Function,default:()=>{}}};var ce=ue,de=n(38624),he=n(36476);const pe=20;function fe(e){return"touches"in e?e.touches[0].pageY:e.pageY}var ge=(0,i.defineComponent)({compatConfig:{MODE:3},name:"ScrollBar",inheritAttrs:!1,props:{prefixCls:String,scrollTop:Number,scrollHeight:Number,height:Number,count:Number,onScroll:{type:Function},onStartMove:{type:Function},onStopMove:{type:Function}},setup(){return{moveRaf:null,scrollbarRef:j(),thumbRef:j(),visibleTimeout:null,state:(0,i.reactive)({dragging:!1,pageY:null,startTop:null,visible:!1})}},watch:{scrollTop:{handler(){this.delayHidden()},flush:"post"}},mounted(){var e,t;null===(e=this.scrollbarRef.current)||void 0===e||e.addEventListener("touchstart",this.onScrollbarTouchStart,!!he.A&&{passive:!1}),null===(t=this.thumbRef.current)||void 0===t||t.addEventListener("touchstart",this.onMouseDown,!!he.A&&{passive:!1})},beforeUnmount(){this.removeEvents(),clearTimeout(this.visibleTimeout)},methods:{delayHidden(){clearTimeout(this.visibleTimeout),this.state.visible=!0,this.visibleTimeout=setTimeout((()=>{this.state.visible=!1}),2e3)},onScrollbarTouchStart(e){e.preventDefault()},onContainerMouseDown(e){e.stopPropagation(),e.preventDefault()},patchEvents(){window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("mouseup",this.onMouseUp),this.thumbRef.current.addEventListener("touchmove",this.onMouseMove,!!he.A&&{passive:!1}),this.thumbRef.current.addEventListener("touchend",this.onMouseUp)},removeEvents(){window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("mouseup",this.onMouseUp),this.scrollbarRef.current.removeEventListener("touchstart",this.onScrollbarTouchStart,!!he.A&&{passive:!1}),this.thumbRef.current&&(this.thumbRef.current.removeEventListener("touchstart",this.onMouseDown,!!he.A&&{passive:!1}),this.thumbRef.current.removeEventListener("touchmove",this.onMouseMove,!!he.A&&{passive:!1}),this.thumbRef.current.removeEventListener("touchend",this.onMouseUp)),de.A.cancel(this.moveRaf)},onMouseDown(e){const{onStartMove:t}=this.$props;(0,o.A)(this.state,{dragging:!0,pageY:fe(e),startTop:this.getTop()}),t(),this.patchEvents(),e.stopPropagation(),e.preventDefault()},onMouseMove(e){const{dragging:t,pageY:n,startTop:r}=this.state,{onScroll:o}=this.$props;if(de.A.cancel(this.moveRaf),t){const t=fe(e)-n,i=r+t,a=this.getEnableScrollRange(),s=this.getEnableHeightRange(),l=s?i/s:0,u=Math.ceil(l*a);this.moveRaf=(0,de.A)((()=>{o(u)}))}},onMouseUp(){const{onStopMove:e}=this.$props;this.state.dragging=!1,e(),this.removeEvents()},getSpinHeight(){const{height:e,scrollHeight:t}=this.$props;let n=e/t*100;return n=Math.max(n,pe),n=Math.min(n,e/2),Math.floor(n)},getEnableScrollRange(){const{scrollHeight:e,height:t}=this.$props;return e-t||0},getEnableHeightRange(){const{height:e}=this.$props,t=this.getSpinHeight();return e-t||0},getTop(){const{scrollTop:e}=this.$props,t=this.getEnableScrollRange(),n=this.getEnableHeightRange();if(0===e||0===t)return 0;const r=e/t;return r*n},showScroll(){const{height:e,scrollHeight:t}=this.$props;return t>e}},render(){const{dragging:e,visible:t}=this.state,{prefixCls:n}=this.$props,r=this.getSpinHeight()+"px",o=this.getTop()+"px",s=this.showScroll(),l=s&&t;return(0,i.createVNode)("div",{ref:this.scrollbarRef,class:(0,a.A)(`${n}-scrollbar`,{[`${n}-scrollbar-show`]:s}),style:{width:"8px",top:0,bottom:0,right:0,position:"absolute",display:l?void 0:"none"},onMousedown:this.onContainerMouseDown,onMousemove:this.delayHidden},[(0,i.createVNode)("div",{ref:this.thumbRef,class:(0,a.A)(`${n}-scrollbar-thumb`,{[`${n}-scrollbar-thumb-moving`]:e}),style:{width:"100%",height:r,top:o,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:"99px",cursor:"pointer",userSelect:"none"},onMousedown:this.onMouseDown},null)])}});function me(e,t,n,r){const o=new Map,a=new Map,s=(0,i.ref)(Symbol("update"));let l;function u(){de.A.cancel(l)}function c(){u(),l=(0,de.A)((()=>{o.forEach(((e,t)=>{if(e&&e.offsetParent){const{offsetHeight:n}=e;a.get(t)!==n&&(s.value=Symbol("update"),a.set(t,e.offsetHeight))}}))}))}function d(e,i){const a=t(e),s=o.get(a);i?(o.set(a,i.$el||i),c()):o.delete(a),!s!==!i&&(i?null===n||void 0===n||n(e):null===r||void 0===r||r(e))}return(0,i.watch)(e,(()=>{s.value=Symbol("update")})),(0,i.onUnmounted)((()=>{u()})),[d,c,a,s]}function ve(e,t,n,r,o,i,a,s){let l;return u=>{if(null===u||void 0===u)return void s();de.A.cancel(l);const c=t.value,d=r.itemHeight;if("number"===typeof u)a(u);else if(u&&"object"===typeof u){let t;const{align:r}=u;"index"in u?({index:t}=u):t=c.findIndex((e=>o(e)===u.key));const{offset:s=0}=u,h=(u,p)=>{if(u<0||!e.value)return;const f=e.value.clientHeight;let g=!1,m=p;if(f){const i=p||r;let l=0,u=0,h=0;const v=Math.min(c.length,t);for(let e=0;e<=v;e+=1){const r=o(c[e]);u=l;const i=n.get(r);h=u+(void 0===i?d:i),l=h,e===t&&void 0===i&&(g=!0)}const y=e.value.scrollTop;let b=null;switch(i){case"top":b=u-s;break;case"bottom":b=h-f+s;break;default:{const e=y+f;u<y?m="top":h>e&&(m="bottom")}}null!==b&&b!==y&&a(b)}l=(0,de.A)((()=>{g&&i(),h(u-1,m)}),2)};h(5)}}}const ye="object"===typeof navigator&&/Firefox/i.test(navigator.userAgent);var be=ye,_e=(e,t)=>{let n=!1,r=null;function o(){clearTimeout(r),n=!0,r=setTimeout((()=>{n=!1}),50)}return function(i){let a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const s=i<0&&e.value||i>0&&t.value;return a&&s?(clearTimeout(r),n=!1):s&&!n||o(),!n&&s}};function xe(e,t,n,r){let o=0,i=null,a=null,s=!1;const l=_e(t,n);function u(t){if(!e.value)return;de.A.cancel(i);const{deltaY:n}=t;o+=n,a=n,l(n)||(be||t.preventDefault(),i=(0,de.A)((()=>{const e=s?10:1;r(o*e),o=0})))}function c(t){e.value&&(s=t.detail===a)}return[u,c]}const we=14/15;function Oe(e,t,n){let r=!1,o=0,a=null,s=null;const l=()=>{a&&(a.removeEventListener("touchmove",u),a.removeEventListener("touchend",c))},u=e=>{if(r){const t=Math.ceil(e.touches[0].pageY);let r=o-t;o=t,n(r)&&e.preventDefault(),clearInterval(s),s=setInterval((()=>{r*=we,(!n(r,!0)||Math.abs(r)<=.1)&&clearInterval(s)}),16)}},c=()=>{r=!1,l()},d=e=>{l(),1!==e.touches.length||r||(r=!0,o=Math.ceil(e.touches[0].pageY),a=e.target,a.addEventListener("touchmove",u,{passive:!1}),a.addEventListener("touchend",c))},h=()=>{};(0,i.onMounted)((()=>{document.addEventListener("touchmove",h,{passive:!1}),(0,i.watch)(e,(e=>{t.value.removeEventListener("touchstart",d),l(),clearInterval(s),e&&t.value.addEventListener("touchstart",d,{passive:!1})}),{immediate:!0})})),(0,i.onBeforeUnmount)((()=>{document.removeEventListener("touchmove",h)}))}var Se=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Ae=[],ke={overflowY:"auto",overflowAnchor:"none"};function Ce(e,t,n,r,o,a){let{getKey:s}=a;return e.slice(t,n+1).map(((e,n)=>{const a=t+n,l=o(e,a,{}),u=s(e);return(0,i.createVNode)(ce,{key:u,setRef:t=>r(e,t)},{default:()=>[l]})}))}const Me=(0,i.defineComponent)({compatConfig:{MODE:3},name:"List",inheritAttrs:!1,props:{prefixCls:String,data:f.A.array,height:Number,itemHeight:Number,fullHeight:{type:Boolean,default:void 0},itemKey:{type:[String,Number,Function],required:!0},component:{type:[String,Object]},virtual:{type:Boolean,default:void 0},children:Function,onScroll:Function,onMousedown:Function,onMouseenter:Function,onVisibleChange:Function},setup(e,t){let{expose:n}=t;const r=(0,i.computed)((()=>{const{height:t,itemHeight:n,virtual:r}=e;return!(!1===r||!t||!n)})),a=(0,i.computed)((()=>{const{height:t,itemHeight:n,data:o}=e;return r.value&&o&&n*o.length>t})),s=(0,i.reactive)({scrollTop:0,scrollMoving:!1}),l=(0,i.computed)((()=>e.data||Ae)),u=(0,i.shallowRef)([]);(0,i.watch)(l,(()=>{u.value=(0,i.toRaw)(l.value).slice()}),{immediate:!0});const c=(0,i.shallowRef)((e=>{}));(0,i.watch)((()=>e.itemKey),(e=>{c.value="function"===typeof e?e:t=>null===t||void 0===t?void 0:t[e]}),{immediate:!0});const d=(0,i.shallowRef)(),h=(0,i.shallowRef)(),p=(0,i.shallowRef)(),f=e=>c.value(e),g={getKey:f};function m(e){let t;t="function"===typeof e?e(s.scrollTop):e;const n=S(t);d.value&&(d.value.scrollTop=n),s.scrollTop=n}const[v,y,b,_]=me(u,f,null,null),x=(0,i.reactive)({scrollHeight:void 0,start:0,end:0,offset:void 0}),w=(0,i.shallowRef)(0);(0,i.onMounted)((()=>{(0,i.nextTick)((()=>{var e;w.value=(null===(e=h.value)||void 0===e?void 0:e.offsetHeight)||0}))})),(0,i.onUpdated)((()=>{(0,i.nextTick)((()=>{var e;w.value=(null===(e=h.value)||void 0===e?void 0:e.offsetHeight)||0}))})),(0,i.watch)([r,u],(()=>{r.value||(0,o.A)(x,{scrollHeight:void 0,start:0,end:u.value.length-1,offset:void 0})}),{immediate:!0}),(0,i.watch)([r,u,w,a],(()=>{r.value&&!a.value&&(0,o.A)(x,{scrollHeight:w.value,start:0,end:u.value.length-1,offset:void 0}),d.value&&(s.scrollTop=d.value.scrollTop)}),{immediate:!0}),(0,i.watch)([a,r,()=>s.scrollTop,u,_,()=>e.height,w],(()=>{if(!r.value||!a.value)return;let t,n,i,l=0;const c=u.value.length,d=u.value,h=s.scrollTop,{itemHeight:p,height:g}=e,m=h+g;for(let e=0;e<c;e+=1){const r=d[e],o=f(r);let a=b.get(o);void 0===a&&(a=p);const s=l+a;void 0===t&&s>=h&&(t=e,n=l),void 0===i&&s>m&&(i=e),l=s}void 0===t&&(t=0,n=0,i=Math.ceil(g/p)),void 0===i&&(i=c-1),i=Math.min(i+1,c),(0,o.A)(x,{scrollHeight:l,start:t,end:i,offset:n})}),{immediate:!0});const O=(0,i.computed)((()=>x.scrollHeight-e.height));function S(e){let t=e;return Number.isNaN(O.value)||(t=Math.min(t,O.value)),t=Math.max(t,0),t}const A=(0,i.computed)((()=>s.scrollTop<=0)),k=(0,i.computed)((()=>s.scrollTop>=O.value)),C=_e(A,k);function M(e){const t=e;m(t)}function T(t){var n;const{scrollTop:r}=t.currentTarget;r!==s.scrollTop&&m(r),null===(n=e.onScroll)||void 0===n||n.call(e,t)}const[P,I]=xe(r,A,k,(e=>{m((t=>{const n=t+e;return n}))}));function $(e){r.value&&e.preventDefault()}Oe(r,d,((e,t)=>!C(e,t)&&(P({preventDefault(){},deltaY:e}),!0)));const E=()=>{d.value&&(d.value.removeEventListener("wheel",P,!!he.A&&{passive:!1}),d.value.removeEventListener("DOMMouseScroll",I),d.value.removeEventListener("MozMousePixelScroll",$))};(0,i.watchEffect)((()=>{(0,i.nextTick)((()=>{d.value&&(E(),d.value.addEventListener("wheel",P,!!he.A&&{passive:!1}),d.value.addEventListener("DOMMouseScroll",I),d.value.addEventListener("MozMousePixelScroll",$))}))})),(0,i.onBeforeUnmount)((()=>{E()}));const D=ve(d,u,b,e,f,y,m,(()=>{var e;null===(e=p.value)||void 0===e||e.delayHidden()}));n({scrollTo:D});const R=(0,i.computed)((()=>{let t=null;return e.height&&(t=(0,o.A)({[e.fullHeight?"height":"maxHeight"]:e.height+"px"},ke),r.value&&(t.overflowY="hidden",s.scrollMoving&&(t.pointerEvents="none"))),t}));(0,i.watch)([()=>x.start,()=>x.end,u],(()=>{if(e.onVisibleChange){const t=u.value.slice(x.start,x.end+1);e.onVisibleChange(t,u.value)}}),{flush:"post"});const N=()=>{var e;null===(e=p.value)||void 0===e||e.delayHidden()};return{state:s,mergedData:u,componentStyle:R,onFallbackScroll:T,onScrollBar:M,componentRef:d,useVirtual:r,calRes:x,collectHeight:y,setInstance:v,sharedConfig:g,scrollBarRef:p,fillerInnerRef:h,delayHideScrollBar:N}},render(){const e=(0,o.A)((0,o.A)({},this.$props),this.$attrs),{prefixCls:t="rc-virtual-list",height:n,itemHeight:s,fullHeight:l,data:u,itemKey:c,virtual:d,component:h="div",onScroll:p,children:f=this.$slots.default,style:g,class:m}=e,v=Se(e,["prefixCls","height","itemHeight","fullHeight","data","itemKey","virtual","component","onScroll","children","style","class"]),y=(0,a.A)(t,m),{scrollTop:b}=this.state,{scrollHeight:_,offset:x,start:w,end:O}=this.calRes,{componentStyle:S,onFallbackScroll:A,onScrollBar:k,useVirtual:C,collectHeight:M,sharedConfig:T,setInstance:P,mergedData:I,delayHideScrollBar:$}=this;return(0,i.createVNode)("div",(0,r.A)({style:(0,o.A)((0,o.A)({},g),{position:"relative"}),class:y},v),[(0,i.createVNode)(h,{class:`${t}-holder`,style:S,ref:"componentRef",onScroll:A,onMouseenter:$},{default:()=>[(0,i.createVNode)(le,{prefixCls:t,height:_,offset:x,onInnerResize:M,ref:"fillerInnerRef"},{default:()=>Ce(I,w,O,P,f,T)})]}),C&&(0,i.createVNode)(ge,{ref:"scrollBarRef",prefixCls:t,scrollTop:b,height:n,scrollHeight:_,count:I.length,onScroll:k,onStartMove:()=>{this.state.scrollMoving=!0},onStopMove:()=>{this.state.scrollMoving=!1}},null)])}});var Te=Me,Pe=Te;function Ie(e,t,n){const r=(0,i.ref)(e());return(0,i.watch)(t,((t,o)=>{n?n(t,o)&&(r.value=e()):r.value=e()})),r}function $e(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Ee=n(21244);const De=Symbol("SelectContextKey");function Re(e){return(0,i.provide)(De,e)}function Ne(){return(0,i.inject)(De,{})}var Le=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function ze(e){return"string"===typeof e||"number"===typeof e}const Ve=(0,i.defineComponent)({compatConfig:{MODE:3},name:"OptionList",inheritAttrs:!1,setup(e,t){let{expose:n,slots:o}=t;const s=X(),l=Ne(),u=(0,i.computed)((()=>`${s.prefixCls}-item`)),c=Ie((()=>l.flattenOptions),[()=>s.open,()=>l.flattenOptions],(e=>e[0])),d=j(),h=e=>{e.preventDefault()},p=e=>{d.current&&d.current.scrollTo("number"===typeof e?{index:e}:e)},f=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=c.value.length;for(let r=0;r<n;r+=1){const o=(e+r*t+n)%n,{group:i,data:a}=c.value[o];if(!i&&!a.disabled)return o}return-1},g=(0,i.reactive)({activeIndex:f(0)}),m=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];g.activeIndex=e;const n={source:t?"keyboard":"mouse"},r=c.value[e];r?l.onActiveValue(r.value,e,n):l.onActiveValue(null,-1,n)};(0,i.watch)([()=>c.value.length,()=>s.searchValue],(()=>{m(!1!==l.defaultActiveFirstOption?f(0):-1)}),{immediate:!0});const v=e=>l.rawValues.has(e)&&"combobox"!==s.mode;(0,i.watch)([()=>s.open,()=>s.searchValue],(()=>{if(!s.multiple&&s.open&&1===l.rawValues.size){const e=Array.from(l.rawValues)[0],t=(0,i.toRaw)(c.value).findIndex((t=>{let{data:n}=t;return n[l.fieldNames.value]===e}));-1!==t&&(m(t),(0,i.nextTick)((()=>{p(t)})))}s.open&&(0,i.nextTick)((()=>{var e;null===(e=d.current)||void 0===e||e.scrollTo(void 0)}))}),{immediate:!0,flush:"post"});const y=e=>{void 0!==e&&l.onSelect(e,{selected:!l.rawValues.has(e)}),s.multiple||s.toggleOpen(!1)},_=e=>"function"===typeof e.label?e.label():e.label;function w(e){const t=c.value[e];if(!t)return null;const n=t.data||{},{value:o}=n,{group:a}=t,l=(0,C.A)(n,!0),u=_(t);return t?(0,i.createVNode)("div",(0,r.A)((0,r.A)({"aria-label":"string"!==typeof u||a?null:u},l),{},{key:e,role:a?"presentation":"option",id:`${s.id}_list_${e}`,"aria-selected":v(o)}),[o]):null}const O=e=>{const{which:t,ctrlKey:n}=e;switch(t){case b.A.N:case b.A.P:case b.A.UP:case b.A.DOWN:{let e=0;if(t===b.A.UP?e=-1:t===b.A.DOWN?e=1:$e()&&n&&(t===b.A.N?e=1:t===b.A.P&&(e=-1)),0!==e){const t=f(g.activeIndex+e,e);p(t),m(t,!0)}break}case b.A.ENTER:{const t=c.value[g.activeIndex];t&&!t.data.disabled?y(t.value):y(void 0),s.open&&e.preventDefault();break}case b.A.ESC:s.toggleOpen(!1),s.open&&e.stopPropagation()}},S=()=>{},A=e=>{p(e)};return n({onKeydown:O,onKeyup:S,scrollTo:A}),()=>{const{id:e,notFoundContent:t,onPopupScroll:n}=s,{menuItemSelectedIcon:p,fieldNames:f,virtual:b,listHeight:O,listItemHeight:S}=l,A=o.option,{activeIndex:k}=g,C=Object.keys(f).map((e=>f[e]));return 0===c.value.length?(0,i.createVNode)("div",{role:"listbox",id:`${e}_list`,class:`${u.value}-empty`,onMousedown:h},[t]):(0,i.createVNode)(i.Fragment,null,[(0,i.createVNode)("div",{role:"listbox",id:`${e}_list`,style:{height:0,width:0,overflow:"hidden"}},[w(k-1),w(k),w(k+1)]),(0,i.createVNode)(Pe,{itemKey:"key",ref:d,data:c.value,height:O,itemHeight:S,fullHeight:!1,onMousedown:h,onScroll:n,virtual:b},{default:(e,t)=>{var n;const{group:o,groupOption:s,data:l,value:c}=e,{key:d}=l,h="function"===typeof e.label?e.label():e.label;if(o){const e=null!==(n=l.title)&&void 0!==n?n:ze(h)&&h;return(0,i.createVNode)("div",{class:(0,a.A)(u.value,`${u.value}-group`),title:e},[A?A(l):void 0!==h?h:d])}const{disabled:f,title:g,children:b,style:w,class:O,className:S}=l,M=Le(l,["disabled","title","children","style","class","className"]),T=(0,Ee.A)(M,C),P=v(c),I=`${u.value}-option`,$=(0,a.A)(u.value,I,O,S,{[`${I}-grouped`]:s,[`${I}-active`]:k===t&&!f,[`${I}-disabled`]:f,[`${I}-selected`]:P}),E=_(e),D=!p||"function"===typeof p||P,R="number"===typeof E?E:E||c;let N=ze(R)?R.toString():void 0;return void 0!==g&&(N=g),(0,i.createVNode)("div",(0,r.A)((0,r.A)({},T),{},{"aria-selected":P,class:$,title:N,onMousemove:e=>{M.onMousemove&&M.onMousemove(e),k===t||f||m(t)},onClick:e=>{f||y(c),M.onClick&&M.onClick(e)},style:w}),[(0,i.createVNode)("div",{class:`${I}-content`},[A?A(l):R]),(0,Y.zO)(p)||P,D&&(0,i.createVNode)(x,{class:`${u.value}-option-state`,customizeIcon:p,customizeIconProps:{isSelected:P}},{default:()=>[P?"✓":null]})])}})])}}});var Be=Ve,je=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Qe(e){const t=e,{key:n,children:r}=t,i=t.props,{value:a,disabled:s}=i,l=je(i,["value","disabled"]),u=null===r||void 0===r?void 0:r.default;return(0,o.A)({key:n,value:void 0!==a?a:n,children:u,disabled:s||""===s},l)}function Fe(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=(0,Y.MI)(e).map(((e,n)=>{var r;if(!(0,Y.zO)(e)||!e.type)return null;const{type:{isSelectOptGroup:i},key:a,children:s,props:l}=e;if(t||!i)return Qe(e);const u=s&&s.default?s.default():void 0,c=(null===l||void 0===l?void 0:l.label)||(null===(r=s.label)||void 0===r?void 0:r.call(s))||a;return(0,o.A)((0,o.A)({key:`__RC_SELECT_GRP__${null===a?n:String(a)}__`},l),{label:c,options:Fe(u||[])})})).filter((e=>e));return n}function We(e,t,n){const r=(0,i.shallowRef)(),o=(0,i.shallowRef)(),a=(0,i.shallowRef)(),s=(0,i.shallowRef)([]);return(0,i.watch)([e,t],(()=>{e.value?s.value=(0,i.toRaw)(e.value).slice():s.value=Fe(t.value)}),{immediate:!0,deep:!0}),(0,i.watchEffect)((()=>{const e=s.value,t=new Map,i=new Map,l=n.value;function u(e){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];for(let r=0;r<e.length;r+=1){const o=e[r];!o[l.options]||n?(t.set(o[l.value],o),i.set(o[l.label],o)):u(o[l.options],!0)}}u(e),r.value=e,o.value=t,a.value=i})),{options:r,valueOptions:o,labelOptions:a}}var He=n(58590);let Ze=0;const Ge=(0,He.A)();function Xe(){let e;return Ge?(e=Ze,Ze+=1):e="TEST_OR_SSR",e}function Ue(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,i.ref)("");const t=`rc_select_${Xe()}`;return e.value||t}function Ye(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}"undefined"!==typeof window&&window.document&&window.document.documentElement;function qe(e,t){return Ye(e).join("").toUpperCase().includes(t)}var Ke=(e,t,n,r,a)=>(0,i.computed)((()=>{const i=n.value,s=null===a||void 0===a?void 0:a.value,l=null===r||void 0===r?void 0:r.value;if(!i||!1===l)return e.value;const{options:u,label:c,value:h}=t.value,p=[],f="function"===typeof l,g=i.toUpperCase(),m=f?l:(e,t)=>s?qe(t[s],g):t[u]?qe(t["children"!==c?c:"label"],g):qe(t[h],g),v=f?e=>d(e):e=>e;return e.value.forEach((e=>{if(e[u]){const t=m(i,v(e));if(t)p.push(e);else{const t=e[u].filter((e=>m(i,v(e))));t.length&&p.push((0,o.A)((0,o.A)({},e),{[u]:t}))}}else m(i,v(e))&&p.push(e)})),p})),Je=(e,t)=>{const n=(0,i.shallowRef)({values:new Map,options:new Map}),r=(0,i.computed)((()=>{const{values:r,options:i}=n.value,a=e.value.map((e=>{var t;return void 0===e.label?(0,o.A)((0,o.A)({},e),{label:null===(t=r.get(e.value))||void 0===t?void 0:t.label}):e})),s=new Map,l=new Map;return a.forEach((e=>{s.set(e.value,e),l.set(e.value,t.value.get(e.value)||i.get(e.value))})),n.value.values=s,n.value.options=l,a})),a=e=>t.value.get(e)||n.value.options.get(e);return[r,a]},et=n(68740),tt=n(6340);const nt=["inputValue"];function rt(){return(0,o.A)((0,o.A)({},ne()),{prefixCls:String,id:String,backfill:{type:Boolean,default:void 0},fieldNames:Object,inputValue:String,searchValue:String,onSearch:Function,autoClearSearchValue:{type:Boolean,default:void 0},onSelect:Function,onDeselect:Function,filterOption:{type:[Boolean,Function],default:void 0},filterSort:Function,optionFilterProp:String,optionLabelProp:String,options:Array,defaultActiveFirstOption:{type:Boolean,default:void 0},virtual:{type:Boolean,default:void 0},listHeight:Number,listItemHeight:Number,menuItemSelectedIcon:f.A.any,mode:String,labelInValue:{type:Boolean,default:void 0},value:f.A.any,defaultValue:f.A.any,onChange:Function,children:Array})}function ot(e){return!e||"object"!==typeof e}var it=(0,i.defineComponent)({compatConfig:{MODE:3},name:"VcSelect",inheritAttrs:!1,props:(0,U.A)(rt(),{prefixCls:"vc-select",autoClearSearchValue:!0,listHeight:200,listItemHeight:20,dropdownMatchSelectWidth:!0}),setup(e,t){let{expose:n,attrs:a,slots:s}=t;const l=Ue((0,i.toRef)(e,"id")),h=(0,i.computed)((()=>oe(e.mode))),p=(0,i.computed)((()=>!(e.options||!e.children))),f=(0,i.computed)((()=>(void 0!==e.filterOption||"combobox"!==e.mode)&&e.filterOption)),g=(0,i.computed)((()=>u(e.fieldNames,p.value))),[m,v]=(0,et.A)("",{value:(0,i.computed)((()=>void 0!==e.searchValue?e.searchValue:e.inputValue)),postState:e=>e||""}),y=We((0,i.toRef)(e,"options"),(0,i.toRef)(e,"children"),g),{valueOptions:b,labelOptions:_,options:x}=y,w=t=>{const n=Ye(t);return n.map((t=>{var n,r;let o,i,a,s;ot(t)?o=t:(a=t.key,i=t.label,o=null!==(n=t.value)&&void 0!==n?n:a);const l=b.value.get(o);return l&&(void 0===i&&(i=null===l||void 0===l?void 0:l[e.optionLabelProp||g.value.label]),void 0===a&&(a=null!==(r=null===l||void 0===l?void 0:l.key)&&void 0!==r?r:o),s=null===l||void 0===l?void 0:l.disabled),{label:i,value:o,key:a,disabled:s,option:l}}))},[O,S]=(0,et.A)(e.defaultValue,{value:(0,i.toRef)(e,"value")}),A=(0,i.computed)((()=>{var t;const n=w(O.value);return"combobox"!==e.mode||(null===(t=n[0])||void 0===t?void 0:t.value)?n:[]})),[k,C]=Je(A,b),M=(0,i.computed)((()=>{if(!e.mode&&1===k.value.length){const e=k.value[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return k.value.map((e=>{var t;return(0,o.A)((0,o.A)({},e),{label:null!==(t="function"===typeof e.label?e.label():e.label)&&void 0!==t?t:e.value})}))})),T=(0,i.computed)((()=>new Set(k.value.map((e=>e.value)))));(0,i.watchEffect)((()=>{var t;if("combobox"===e.mode){const e=null===(t=k.value[0])||void 0===t?void 0:t.value;void 0!==e&&null!==e&&v(String(e))}}),{flush:"post"});const P=(e,t)=>{const n=null!==t&&void 0!==t?t:e;return{[g.value.value]:e,[g.value.label]:n}},I=(0,i.shallowRef)();(0,i.watchEffect)((()=>{if("tags"!==e.mode)return void(I.value=x.value);const t=x.value.slice(),n=e=>b.value.has(e);[...k.value].sort(((e,t)=>e.value<t.value?-1:1)).forEach((e=>{const r=e.value;n(r)||t.push(P(r,e.label))})),I.value=t}));const $=Ke(I,g,m,f,(0,i.toRef)(e,"optionFilterProp")),E=(0,i.computed)((()=>"tags"!==e.mode||!m.value||$.value.some((t=>t[e.optionFilterProp||"value"]===m.value))?$.value:[P(m.value),...$.value])),D=(0,i.computed)((()=>e.filterSort?[...E.value].sort(((t,n)=>e.filterSort(t,n))):E.value)),R=(0,i.computed)((()=>c(D.value,{fieldNames:g.value,childrenAsData:p.value}))),N=t=>{const n=w(t);if(S(n),e.onChange&&(n.length!==k.value.length||n.some(((e,t)=>{var n;return(null===(n=k.value[t])||void 0===n?void 0:n.value)!==(null===e||void 0===e?void 0:e.value)})))){const t=e.labelInValue?n.map((e=>(0,o.A)((0,o.A)({},e),{originLabel:e.label,label:"function"===typeof e.label?e.label():e.label}))):n.map((e=>e.value)),r=n.map((e=>d(C(e.value))));e.onChange(h.value?t:t[0],h.value?r:r[0])}},[L,z]=(0,tt.A)(null),[V,B]=(0,tt.A)(0),j=(0,i.computed)((()=>void 0!==e.defaultActiveFirstOption?e.defaultActiveFirstOption:"combobox"!==e.mode)),Q=function(t,n){let{source:r="keyboard"}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};B(n),e.backfill&&"combobox"===e.mode&&null!==t&&"keyboard"===r&&z(String(t))},F=(t,n)=>{const r=()=>{var n;const r=C(t),o=null===r||void 0===r?void 0:r[g.value.label];return[e.labelInValue?{label:"function"===typeof o?o():o,originLabel:o,value:t,key:null!==(n=null===r||void 0===r?void 0:r.key)&&void 0!==n?n:t}:t,d(r)]};if(n&&e.onSelect){const[t,n]=r();e.onSelect(t,n)}else if(!n&&e.onDeselect){const[t,n]=r();e.onDeselect(t,n)}},W=(t,n)=>{let r;const o=!h.value||n.selected;r=o?h.value?[...k.value,t]:[t]:k.value.filter((e=>e.value!==t)),N(r),F(t,o),"combobox"===e.mode?z(""):h.value&&!e.autoClearSearchValue||(v(""),z(""))},H=(e,t)=>{N(e),"remove"!==t.type&&"clear"!==t.type||t.values.forEach((e=>{F(e.value,!1)}))},Z=(t,n)=>{var r;if(v(t),z(null),"submit"!==n.source)"blur"!==n.source&&("combobox"===e.mode&&N(t),null===(r=e.onSearch)||void 0===r||r.call(e,t));else{const e=(t||"").trim();if(e){const t=Array.from(new Set([...T.value,e]));N(t),F(e,!0),v("")}}},G=t=>{let n=t;"tags"!==e.mode&&(n=t.map((e=>{const t=_.value.get(e);return null===t||void 0===t?void 0:t.value})).filter((e=>void 0!==e)));const r=Array.from(new Set([...T.value,...n]));N(r),r.forEach((e=>{F(e,!0)}))},X=(0,i.computed)((()=>!1!==e.virtual&&!1!==e.dropdownMatchSelectWidth));Re(K((0,o.A)((0,o.A)({},y),{flattenOptions:R,onActiveValue:Q,defaultActiveFirstOption:j,onSelect:W,menuItemSelectedIcon:(0,i.toRef)(e,"menuItemSelectedIcon"),rawValues:T,fieldNames:g,virtual:X,listHeight:(0,i.toRef)(e,"listHeight"),listItemHeight:(0,i.toRef)(e,"listItemHeight"),childrenAsData:p})));const U=(0,i.ref)();n({focus(){var e;null===(e=U.value)||void 0===e||e.focus()},blur(){var e;null===(e=U.value)||void 0===e||e.blur()},scrollTo(e){var t;null===(t=U.value)||void 0===t||t.scrollTo(e)}});const Y=(0,i.computed)((()=>(0,Ee.A)(e,["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"])));return()=>(0,i.createVNode)(ie,(0,r.A)((0,r.A)((0,r.A)({},Y.value),a),{},{id:l,prefixCls:e.prefixCls,ref:U,omitDomProps:nt,mode:e.mode,displayValues:M.value,onDisplayValuesChange:H,searchValue:m.value,onSearch:Z,onSearchSplit:G,dropdownMatchSelectWidth:e.dropdownMatchSelectWidth,OptionList:Be,emptyOptions:!R.value.length,activeValue:L.value,activeDescendantId:`${l}_list_${V.value}`}),s)}});const at=()=>null;at.isSelectOption=!0,at.displayName="ASelectOption";var st=at;const lt=()=>null;lt.isSelectOptGroup=!0,lt.displayName="ASelectOptGroup";var ut=lt,ct=it,dt=n(27577),ht=n(2167),pt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},ft=pt,gt=n(29847);function mt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){vt(e,t,n[t])}))}return e}function vt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yt=function(e,t){var n=mt({},e,t.attrs);return(0,i.createVNode)(gt.A,mt({},n,{icon:ft}),null)};yt.displayName="CheckOutlined",yt.inheritAttrs=!1;var bt=yt,_t=n(23273),xt=n(82339),wt=n(82205);function Ot(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{loading:n,multiple:r,prefixCls:o,hasFeedback:a,feedbackIcon:s,showArrow:l}=e,u=e.suffixIcon||t.suffixIcon&&t.suffixIcon(),c=e.clearIcon||t.clearIcon&&t.clearIcon(),d=e.menuItemSelectedIcon||t.menuItemSelectedIcon&&t.menuItemSelectedIcon(),h=e.removeIcon||t.removeIcon&&t.removeIcon(),p=null!==c&&void 0!==c?c:(0,i.createVNode)(xt.A,null,null),f=e=>(0,i.createVNode)(i.Fragment,null,[!1!==l&&e,a&&s]);let g=null;if(void 0!==u)g=f(u);else if(n)g=f((0,i.createVNode)(ht.A,{spin:!0},null));else{const e=`${o}-suffix`;g=t=>{let{open:n,showSearch:r}=t;return f(n&&r?(0,i.createVNode)(wt.A,{class:e},null):(0,i.createVNode)(dt.A,{class:e},null))}}let m=null;m=void 0!==d?d:r?(0,i.createVNode)(bt,null,null):null;let v=null;return v=void 0!==h?h:(0,i.createVNode)(_t.A,null,null),{clearIcon:p,suffixIcon:g,itemIcon:m,removeIcon:v}}var St=n(3551),At=n(40493),kt=n(35162),Ct=n(41038),Mt=n(64854),Tt=n(66041),Pt=n(45507),It=n(96704),$t=n(94471),Et=n(67177),Dt=n(97732),Rt=n(276);const Nt=new Dt.A("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Lt=new Dt.A("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),zt=new Dt.A("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Vt=new Dt.A("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Bt=new Dt.A("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),jt=new Dt.A("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Qt=new Dt.A("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Ft=new Dt.A("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),Wt={"move-up":{inKeyframes:Qt,outKeyframes:Ft},"move-down":{inKeyframes:Nt,outKeyframes:Lt},"move-left":{inKeyframes:zt,outKeyframes:Vt},"move-right":{inKeyframes:Bt,outKeyframes:jt}},Ht=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=Wt[t];return[(0,Rt.b)(r,o,i,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};var Zt=n(69729);const Gt=e=>{const{controlPaddingHorizontal:t}=e;return{position:"relative",display:"block",minHeight:e.controlHeight,padding:`${(e.controlHeight-e.fontSize*e.lineHeight)/2}px ${t}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,boxSizing:"border-box"}},Xt=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`;return[{[`${n}-dropdown`]:(0,o.A)((0,o.A)({},(0,Zt.dF)(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`\n &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-bottomLeft,\n &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-bottomLeft\n `]:{animationName:Et.ox},[`\n &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-topLeft,\n &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-topLeft\n `]:{animationName:Et.nP},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-bottomLeft`]:{animationName:Et.vR},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topLeft`]:{animationName:Et.YU},"&-hidden":{display:"none"},"&-empty":{color:e.colorTextDisabled},[`${r}-empty`]:(0,o.A)((0,o.A)({},Gt(e)),{color:e.colorTextDisabled}),[`${r}`]:(0,o.A)((0,o.A)({},Gt(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":(0,o.A)({flex:"auto"},Zt.L9),"&-state":{flex:"none"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.controlItemBgHover},[`&-selected:not(${r}-option-disabled)`]:{color:e.colorText,fontWeight:e.fontWeightStrong,backgroundColor:e.controlItemBgActive,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:2*e.controlPaddingHorizontal}}}),"&-rtl":{direction:"rtl"}})},(0,Et._j)(e,"slide-up"),(0,Et._j)(e,"slide-down"),Ht(e,"move-up"),Ht(e,"move-down")]};var Ut=Xt;const Yt=2;function qt(e){let{controlHeightSM:t,controlHeight:n,lineWidth:r}=e;const o=(n-t)/2-r,i=Math.ceil(o/2);return[o,i]}function Kt(e,t){const{componentCls:n,iconCls:r}=e,i=`${n}-selection-overflow`,a=e.controlHeightSM,[s]=qt(e),l=t?`${n}-${t}`:"";return{[`${n}-multiple${l}`]:{fontSize:e.fontSize,[i]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${s-Yt}px ${2*Yt}px`,borderRadius:e.borderRadius,[`${n}-show-search&`]:{cursor:"text"},[`${n}-disabled&`]:{background:e.colorBgContainerDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Yt}px 0`,lineHeight:`${a}px`,content:'"\\a0"'}},[`\n &${n}-show-arrow ${n}-selector,\n &${n}-allow-clear ${n}-selector\n `]:{paddingInlineEnd:e.fontSizeIcon+e.controlPaddingHorizontal},[`${n}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:a,marginTop:Yt,marginBottom:Yt,lineHeight:a-2*e.lineWidth+"px",background:e.colorFillSecondary,border:`${e.lineWidth}px solid ${e.colorSplit}`,borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,userSelect:"none",marginInlineEnd:2*Yt,paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS/2,[`${n}-disabled&`]:{color:e.colorTextDisabled,borderColor:e.colorBorder,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":(0,o.A)((0,o.A)({},(0,Zt.Nk)()),{display:"inline-block",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${i}-item + ${i}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.inputPaddingHorizontalBase-s,["\n &-input,\n &-mirror\n "]:{height:a,fontFamily:e.fontFamily,lineHeight:`${a}px`,transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}}function Jt(e){const{componentCls:t}=e,n=(0,It.h1)(e,{controlHeight:e.controlHeightSM,controlHeightSM:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),[,r]=qt(e);return[Kt(e),Kt(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInlineStart:e.controlPaddingHorizontalSM-e.lineWidth,insetInlineEnd:"auto"},[`${t}-selection-search`]:{marginInlineStart:r}}},Kt((0,It.h1)(e,{fontSize:e.fontSizeLG,controlHeight:e.controlHeightLG,controlHeightSM:e.controlHeight,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),"lg")]}function en(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:i}=e,a=e.controlHeight-2*e.lineWidth,s=Math.ceil(1.25*e.fontSize),l=t?`${n}-${t}`:"";return{[`${n}-single${l}`]:{fontSize:e.fontSize,[`${n}-selector`]:(0,o.A)((0,o.A)({},(0,Zt.dF)(e)),{display:"flex",borderRadius:i,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%"}},[`\n ${n}-selection-item,\n ${n}-selection-placeholder\n `]:{padding:0,lineHeight:`${a}px`,transition:`all ${e.motionDurationSlow}`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${a}px`}},[`${n}-selection-item`]:{position:"relative",userSelect:"none"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:after`,`${n}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`\n &${n}-show-arrow ${n}-selection-item,\n &${n}-show-arrow ${n}-selection-placeholder\n `]:{paddingInlineEnd:s},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:e.controlHeight,padding:`0 ${r}px`,[`${n}-selection-search-input`]:{height:a},"&:after":{lineHeight:`${a}px`}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${r}px`,"&:after":{display:"none"}}}}}}}function tn(e){const{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return[en(e),en((0,It.h1)(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${n}px`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:n+1.5*e.fontSize},[`\n &${t}-show-arrow ${t}-selection-item,\n &${t}-show-arrow ${t}-selection-placeholder\n `]:{paddingInlineEnd:1.5*e.fontSize}}}},en((0,It.h1)(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}var nn=n(31222);const rn=e=>{const{componentCls:t}=e;return{position:"relative",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${t}-disabled&`]:{color:e.colorTextDisabled,background:e.colorBgContainerDisabled,cursor:"not-allowed",[`${t}-multiple&`]:{background:e.colorBgContainerDisabled},input:{cursor:"not-allowed"}}}},on=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{componentCls:r,borderHoverColor:i,outlineColor:a,antCls:s}=t,l=n?{[`${r}-selector`]:{borderColor:i}}:{};return{[e]:{[`&:not(${r}-disabled):not(${r}-customize-input):not(${s}-pagination-size-changer)`]:(0,o.A)((0,o.A)({},l),{[`${r}-focused& ${r}-selector`]:{borderColor:i,boxShadow:`0 0 0 ${t.controlOutlineWidth}px ${a}`,borderInlineEndWidth:`${t.controlLineWidth}px !important`,outline:0},[`&:hover ${r}-selector`]:{borderColor:i,borderInlineEndWidth:`${t.controlLineWidth}px !important`}})}}},an=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},sn=e=>{const{componentCls:t,inputPaddingHorizontalBase:n,iconCls:r}=e;return{[t]:(0,o.A)((0,o.A)({},(0,Zt.dF)(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${t}-customize-input) ${t}-selector`]:(0,o.A)((0,o.A)({},rn(e)),an(e)),[`${t}-selection-item`]:(0,o.A)({flex:1,fontWeight:"normal"},Zt.L9),[`${t}-selection-placeholder`]:(0,o.A)((0,o.A)({},Zt.L9),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${t}-arrow`]:(0,o.A)((0,o.A)({},(0,Zt.Nk)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[r]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${t}-suffix)`]:{pointerEvents:"auto"}},[`${t}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:e.colorBgContainer,cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${t}-clear`]:{opacity:1}}}),[`${t}-has-feedback`]:{[`${t}-clear`]:{insetInlineEnd:n+e.fontSize+e.paddingXXS}}}},ln=e=>{const{componentCls:t}=e;return[{[t]:{[`&-borderless ${t}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${t}-in-form-item`]:{width:"100%"}}},sn(e),tn(e),Jt(e),Ut(e),{[`${t}-rtl`]:{direction:"rtl"}},on(t,(0,It.h1)(e,{borderHoverColor:e.colorPrimaryHover,outlineColor:e.controlOutline})),on(`${t}-status-error`,(0,It.h1)(e,{borderHoverColor:e.colorErrorHover,outlineColor:e.colorErrorOutline}),!0),on(`${t}-status-warning`,(0,It.h1)(e,{borderHoverColor:e.colorWarningHover,outlineColor:e.colorWarningOutline}),!0),(0,nn.G)(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]};var un=(0,$t.A)("Select",((e,t)=>{let{rootPrefixCls:n}=t;const r=(0,It.h1)(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1});return[ln(r)]}),(e=>({zIndexPopup:e.zIndexPopupBase+50}))),cn=n(99415);const dn=()=>(0,o.A)((0,o.A)({},(0,Ee.A)(rt(),["inputIcon","mode","getInputElement","getRawInputElement","backfill"])),{value:(0,Tt.tK)([Array,Object,String,Number]),defaultValue:(0,Tt.tK)([Array,Object,String,Number]),notFoundContent:f.A.any,suffixIcon:f.A.any,itemIcon:f.A.any,size:(0,Tt.WO)(),mode:(0,Tt.WO)(),bordered:(0,Tt.HE)(!0),transitionName:String,choiceTransitionName:(0,Tt.WO)(""),popupClassName:String,dropdownClassName:String,placement:(0,Tt.WO)(),status:(0,Tt.WO)(),"onUpdate:value":(0,Tt.Fg)()}),hn="SECRET_COMBOBOX_MODE_DO_NOT_USE",pn=(0,i.defineComponent)({compatConfig:{MODE:3},name:"ASelect",Option:st,OptGroup:ut,inheritAttrs:!1,props:(0,U.A)(dn(),{listHeight:256,listItemHeight:24}),SECRET_COMBOBOX_MODE_DO_NOT_USE:hn,slots:Object,setup(e,t){let{attrs:n,emit:s,slots:l,expose:u}=t;const c=(0,i.ref)(),d=(0,kt.db)(),h=kt.$W.useInject(),p=(0,i.computed)((()=>(0,Mt.v)(h.status,e.status))),f=()=>{var e;null===(e=c.value)||void 0===e||e.focus()},g=()=>{var e;null===(e=c.value)||void 0===e||e.blur()},m=e=>{var t;null===(t=c.value)||void 0===t||t.scrollTo(e)},v=(0,i.computed)((()=>{const{mode:t}=e;if("combobox"!==t)return t===hn?"combobox":t}));const{prefixCls:y,direction:b,configProvider:_,renderEmpty:x,size:w,getPrefixCls:O,getPopupContainer:S,disabled:A,select:k}=(0,St.A)("select",e),{compactSize:C,compactItemClassnames:M}=(0,Pt.RQ)(y,b),T=(0,i.computed)((()=>C.value||w.value)),P=(0,cn.p)(),I=(0,i.computed)((()=>{var e;return null!==(e=A.value)&&void 0!==e?e:P.value})),[$,E]=un(y),D=(0,i.computed)((()=>O())),R=(0,i.computed)((()=>void 0!==e.placement?e.placement:"rtl"===b.value?"bottomRight":"bottomLeft")),N=(0,i.computed)((()=>(0,Ct.by)(D.value,(0,Ct.TL)(R.value),e.transitionName))),L=(0,i.computed)((()=>(0,a.A)({[`${y.value}-lg`]:"large"===T.value,[`${y.value}-sm`]:"small"===T.value,[`${y.value}-rtl`]:"rtl"===b.value,[`${y.value}-borderless`]:!e.bordered,[`${y.value}-in-form-item`]:h.isFormItemInput},(0,Mt.L)(y.value,p.value,h.hasFeedback),M.value,E.value))),z=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];s("update:value",t[0]),s("change",...t),d.onFieldChange()},V=e=>{s("blur",e),d.onFieldBlur()};u({blur:g,focus:f,scrollTo:m});const B=(0,i.computed)((()=>"multiple"===v.value||"tags"===v.value)),j=(0,i.computed)((()=>void 0!==e.showArrow?e.showArrow:e.loading||!(B.value||"combobox"===v.value)));return()=>{var t,s,u,p;const{notFoundContent:f,listHeight:g=256,listItemHeight:m=24,popupClassName:w,dropdownClassName:O,virtual:A,dropdownMatchSelectWidth:C,id:M=d.id.value,placeholder:T=(null===(t=l.placeholder)||void 0===t?void 0:t.call(l)),showArrow:P}=e,{hasFeedback:D,feedbackIcon:R}=h,{}=_;let Q;Q=void 0!==f?f:l.notFoundContent?l.notFoundContent():"combobox"===v.value?null:(null===x||void 0===x?void 0:x("Select"))||(0,i.createVNode)(At.x,{componentName:"Select"},null);const{suffixIcon:F,itemIcon:W,removeIcon:H,clearIcon:Z}=Ot((0,o.A)((0,o.A)({},e),{multiple:B.value,prefixCls:y.value,hasFeedback:D,feedbackIcon:R,showArrow:j.value}),l),G=(0,Ee.A)(e,["prefixCls","suffixIcon","itemIcon","removeIcon","clearIcon","size","bordered","status"]),X=(0,a.A)(w||O,{[`${y.value}-dropdown-${b.value}`]:"rtl"===b.value},E.value);return $((0,i.createVNode)(ct,(0,r.A)((0,r.A)((0,r.A)({ref:c,virtual:A,dropdownMatchSelectWidth:C},G),n),{},{showSearch:null!==(s=e.showSearch)&&void 0!==s?s:null===(u=null===k||void 0===k?void 0:k.value)||void 0===u?void 0:u.showSearch,placeholder:T,listHeight:g,listItemHeight:m,mode:v.value,prefixCls:y.value,direction:b.value,inputIcon:F,menuItemSelectedIcon:W,removeIcon:H,clearIcon:Z,notFoundContent:Q,class:[L.value,n.class],getPopupContainer:null===S||void 0===S?void 0:S.value,dropdownClassName:X,onChange:z,onBlur:V,id:M,dropdownRender:G.dropdownRender||l.dropdownRender,transitionName:N.value,children:null===(p=l.default)||void 0===p?void 0:p.call(l),tagRender:e.tagRender||l.tagRender,optionLabelRender:l.optionLabel,maxTagPlaceholder:e.maxTagPlaceholder||l.maxTagPlaceholder,showArrow:D||P,disabled:I.value}),{option:l.option}))}}});pn.install=function(e){return e.component(pn.name,pn),e.component(pn.Option.displayName,pn.Option),e.component(pn.OptGroup.displayName,pn.OptGroup),e};const fn=pn.Option;pn.OptGroup;var gn=pn},45507:function(e,t,n){"use strict";n.d(t,{K6:function(){return E},RQ:function(){return $}});var r=n(69751),o=n(9274),i=n(13389),a=n(2126),s=n(3551),l=n(94471);const u=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}};var c=u;const d=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item`]:{"&:empty":{display:"none"}}}}};var h=(0,l.A)("Space",(e=>[d(e),c(e)])),p=n(5530),f=n(66041),g=n(56732),m=n(93588),v=n(12213),y=n(9670),b=n(58977),_=n(62652),x=n(74754),w=n(45261),O="[object Map]",S="[object Set]",A=Object.prototype,k=A.hasOwnProperty;function C(e){if(null==e)return!0;if((0,b.A)(e)&&((0,y.A)(e)||"string"==typeof e||"function"==typeof e.splice||(0,_.A)(e)||(0,w.A)(e)||(0,v.A)(e)))return!e.length;var t=(0,m.A)(e);if(t==O||t==S)return!e.size;if((0,x.A)(e))return!(0,g.A)(e).length;for(var n in e)if(k.call(e,n))return!1;return!0}var M=C,T=n(16155);const P=()=>({compactSize:String,compactDirection:p.A.oneOf((0,f.PV)("horizontal","vertical")).def("horizontal"),isFirstItem:(0,f.HE)(),isLastItem:(0,f.HE)()}),I=(0,a.A)(null),$=(e,t)=>{const n=I.useInject(),r=(0,o.computed)((()=>{if(!n||M(n))return"";const{compactDirection:r,isFirstItem:o,isLastItem:a}=n,s="vertical"===r?"-vertical-":"-";return(0,i.A)({[`${e.value}-compact${s}item`]:!0,[`${e.value}-compact${s}first-item`]:o,[`${e.value}-compact${s}last-item`]:a,[`${e.value}-compact${s}item-rtl`]:"rtl"===t.value})}));return{compactSize:(0,o.computed)((()=>null===n||void 0===n?void 0:n.compactSize)),compactDirection:(0,o.computed)((()=>null===n||void 0===n?void 0:n.compactDirection)),compactItemClassnames:r}},E=(0,o.defineComponent)({name:"NoCompactStyle",setup(e,t){let{slots:n}=t;return I.useProvide(null),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}}),D=()=>({prefixCls:String,size:{type:String},direction:p.A.oneOf((0,f.PV)("horizontal","vertical")).def("horizontal"),align:p.A.oneOf((0,f.PV)("start","end","center","baseline")),block:{type:Boolean,default:void 0}}),R=(0,o.defineComponent)({name:"CompactItem",props:P(),setup(e,t){let{slots:n}=t;return I.useProvide(e),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}});(0,o.defineComponent)({name:"ASpaceCompact",inheritAttrs:!1,props:D(),setup(e,t){let{attrs:n,slots:a}=t;const{prefixCls:l,direction:u}=(0,s.A)("space-compact",e),c=I.useInject(),[d,p]=h(l),f=(0,o.computed)((()=>(0,i.A)(l.value,p.value,{[`${l.value}-rtl`]:"rtl"===u.value,[`${l.value}-block`]:e.block,[`${l.value}-vertical`]:"vertical"===e.direction})));return()=>{var t;const i=(0,T.MI)((null===(t=a.default)||void 0===t?void 0:t.call(a))||[]);return 0===i.length?null:d((0,o.createVNode)("div",(0,r.A)((0,r.A)({},n),{},{class:[f.value,n.class]}),[i.map(((t,n)=>{var r;const a=t&&t.key||`${l.value}-item-${n}`,s=!c||M(c);return(0,o.createVNode)(R,{key:a,compactSize:null!==(r=e.size)&&void 0!==r?r:"middle",compactDirection:e.direction,isFirstItem:0===n&&(s||(null===c||void 0===c?void 0:c.isFirstItem)),isLastItem:n===i.length-1&&(s||(null===c||void 0===c?void 0:c.isLastItem))},{default:()=>[t]})}))]))}}})},31222:function(e,t,n){"use strict";n.d(t,{G:function(){return a}});var r=n(98657);function o(e,t,n){const{focusElCls:o,focus:i,borderElCls:a}=n,s=a?"> *":"",l=["hover",i?"focus":null,"active"].filter(Boolean).map((e=>`&:${e} ${s}`)).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":(0,r.A)((0,r.A)({[l]:{zIndex:2}},o?{[`&${o}`]:{zIndex:2}}:{}),{[`&[disabled] ${s}`]:{zIndex:0}})}}function i(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0};const{componentCls:n}=e,a=`${n}-compact`;return{[a]:(0,r.A)((0,r.A)({},o(e,a,t)),i(n,a,t))}}},69729:function(e,t,n){"use strict";n.d(t,{K8:function(){return d},L9:function(){return o},Nk:function(){return a},av:function(){return l},dF:function(){return i},jk:function(){return c},t6:function(){return s},vj:function(){return u}});var r=n(98657);const o={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},i=e=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:e.fontFamily}),a=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),s=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),l=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},["&:active,\n &:hover"]:{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),u=(e,t)=>{const{fontFamily:n,fontSize:r}=e,o=`[class^="${t}"], [class*=" ${t}"]`;return{[o]:{fontFamily:n,fontSize:r,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[o]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},c=e=>({outline:`${e.lineWidthBold}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),d=e=>({"&:focus-visible":(0,r.A)({},c(e))})},86049:function(e,t){"use strict";const n=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}});t.A=n},7672:function(e,t,n){"use strict";n.d(t,{p9:function(){return s}});var r=n(97732),o=n(276);const i=new r.A("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),a=new r.A("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),s=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{antCls:n}=e,r=`${n}-fade`,s=t?"&":"";return[(0,o.b)(r,i,a,e.motionDurationMid,t),{[`\n ${s}${r}-enter,\n ${s}${r}-appear\n `]:{opacity:0,animationTimingFunction:"linear"},[`${s}${r}-leave`]:{animationTimingFunction:"linear"}}]}},276:function(e,t,n){"use strict";n.d(t,{b:function(){return a}});var r=n(98657);const o=e=>({animationDuration:e,animationFillMode:"both"}),i=e=>({animationDuration:e,animationFillMode:"both"}),a=function(e,t,n,a){let s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const l=s?"&":"";return{[`\n ${l}${e}-enter,\n ${l}${e}-appear\n `]:(0,r.A)((0,r.A)({},o(a)),{animationPlayState:"paused"}),[`${l}${e}-leave`]:(0,r.A)((0,r.A)({},i(a)),{animationPlayState:"paused"}),[`\n ${l}${e}-enter${e}-enter-active,\n ${l}${e}-appear${e}-appear-active\n `]:{animationName:t,animationPlayState:"running"},[`${l}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}}},67177:function(e,t,n){"use strict";n.d(t,{YU:function(){return l},_j:function(){return f},nP:function(){return s},ox:function(){return i},vR:function(){return a}});var r=n(97732),o=n(276);const i=new r.A("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),a=new r.A("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),s=new r.A("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),l=new r.A("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),u=new r.A("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),c=new r.A("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),d=new r.A("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),h=new r.A("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),p={"slide-up":{inKeyframes:i,outKeyframes:a},"slide-down":{inKeyframes:s,outKeyframes:l},"slide-left":{inKeyframes:u,outKeyframes:c},"slide-right":{inKeyframes:d,outKeyframes:h}},f=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=p[t];return[(0,o.b)(r,i,a,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]}},41781:function(e,t,n){"use strict";n.d(t,{aB:function(){return y},nF:function(){return i}});var r=n(97732),o=n(276);const i=new r.A("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),a=new r.A("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),s=new r.A("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),l=new r.A("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),u=new r.A("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),c=new r.A("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),d=new r.A("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),h=new r.A("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),p=new r.A("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),f=new r.A("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),g=new r.A("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),m=new r.A("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),v={zoom:{inKeyframes:i,outKeyframes:a},"zoom-big":{inKeyframes:s,outKeyframes:l},"zoom-big-fast":{inKeyframes:s,outKeyframes:l},"zoom-left":{inKeyframes:d,outKeyframes:h},"zoom-right":{inKeyframes:p,outKeyframes:f},"zoom-up":{inKeyframes:u,outKeyframes:c},"zoom-down":{inKeyframes:g,outKeyframes:m}},y=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=v[t];return[(0,o.b)(r,i,a,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]}},59102:function(e,t,n){"use strict";n.d(t,{A:function(){return pn}});var r=n(69751),o=n(98657),i=n(9274),a=(n(30381),n(38624));function s(e){const t=(0,i.shallowRef)(),n=(0,i.shallowRef)(!1);function r(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];n.value||(a.A.cancel(t.value),t.value=(0,a.A)((()=>{e(...o)})))}return(0,i.onBeforeUnmount)((()=>{n.value=!0,a.A.cancel(t.value)})),r}function l(e){const t=(0,i.shallowRef)([]),n=(0,i.shallowRef)("function"===typeof e?e():e),r=s((()=>{let e=n.value;t.value.forEach((t=>{e=t(e)})),t.value=[],n.value=e}));function o(e){t.value.push(e),r()}return[n,o]}var u=n(5347),c=n(13389),d=(0,i.defineComponent)({compatConfig:{MODE:3},name:"TabNode",props:{id:{type:String},prefixCls:{type:String},tab:{type:Object},active:{type:Boolean},closable:{type:Boolean},editable:{type:Object},onClick:{type:Function},onResize:{type:Function},renderWrapper:{type:Function},removeAriaLabel:{type:String},onFocus:{type:Function}},emits:["click","resize","remove","focus"],setup(e,t){let{expose:n,attrs:r}=t;const o=(0,i.ref)();function a(t){var n;(null===(n=e.tab)||void 0===n?void 0:n.disabled)||e.onClick(t)}function s(t){var n;t.preventDefault(),t.stopPropagation(),e.editable.onEdit("remove",{key:null===(n=e.tab)||void 0===n?void 0:n.key,event:t})}n({domRef:o});const l=(0,i.computed)((()=>{var t;return e.editable&&!1!==e.closable&&!(null===(t=e.tab)||void 0===t?void 0:t.disabled)}));return()=>{var t;const{prefixCls:n,id:d,active:h,tab:{key:p,tab:f,disabled:g,closeIcon:m},renderWrapper:v,removeAriaLabel:y,editable:b,onFocus:_}=e,x=`${n}-tab`,w=(0,i.createVNode)("div",{key:p,ref:o,class:(0,c.A)(x,{[`${x}-with-remove`]:l.value,[`${x}-active`]:h,[`${x}-disabled`]:g}),style:r.style,onClick:a},[(0,i.createVNode)("div",{role:"tab","aria-selected":h,id:d&&`${d}-tab-${p}`,class:`${x}-btn`,"aria-controls":d&&`${d}-panel-${p}`,"aria-disabled":g,tabindex:g?null:0,onClick:e=>{e.stopPropagation(),a(e)},onKeydown:e=>{[u.A.SPACE,u.A.ENTER].includes(e.which)&&(e.preventDefault(),a(e))},onFocus:_},["function"===typeof f?f():f]),l.value&&(0,i.createVNode)("button",{type:"button","aria-label":y||"remove",tabindex:0,class:`${x}-remove`,onClick:e=>{e.stopPropagation(),s(e)}},[(null===m||void 0===m?void 0:m())||(null===(t=b.removeIcon)||void 0===t?void 0:t.call(b))||"×"])]);return v?v(w):w}}});const h={width:0,height:0,left:0,top:0};function p(e,t){const n=(0,i.ref)(new Map);return(0,i.watchEffect)((()=>{var r,i;const a=new Map,s=e.value,l=t.value.get(null===(r=s[0])||void 0===r?void 0:r.key)||h,u=l.left+l.width;for(let e=0;e<s.length;e+=1){const{key:n}=s[e];let r=t.value.get(n);r||(r=t.value.get(null===(i=s[e-1])||void 0===i?void 0:i.key)||h);const l=a.get(n)||(0,o.A)({},r);l.right=u-l.left-l.width,a.set(n,l)}n.value=new Map(a)})),n}function f(e,t,n,r){let o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;const i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;const s=Object.prototype.hasOwnProperty.bind(t);for(let l=0;l<i.length;l++){const a=i[l];if(!s(a))return!1;const u=e[a],c=t[a];if(o=n?n.call(r,u,c,a):void 0,!1===o||void 0===o&&u!==c)return!1}return!0}function g(e,t){return f((0,i.toRaw)(e),(0,i.toRaw)(t))}const m=Symbol("menuContextKey"),v=e=>{(0,i.provide)(m,e)},y=()=>(0,i.inject)(m),b=Symbol("ForceRenderKey"),_=e=>{(0,i.provide)(b,e)},x=()=>(0,i.inject)(b,!1),w=Symbol("menuFirstLevelContextKey"),O=e=>{(0,i.provide)(w,e)},S=()=>(0,i.inject)(w,!0),A=(0,i.defineComponent)({compatConfig:{MODE:3},name:"MenuContextProvider",inheritAttrs:!1,props:{mode:{type:String,default:void 0},overflowDisabled:{type:Boolean,default:void 0}},setup(e,t){let{slots:n}=t;const r=y(),a=(0,o.A)({},r);return void 0!==e.mode&&(a.mode=(0,i.toRef)(e,"mode")),void 0!==e.overflowDisabled&&(a.overflowDisabled=(0,i.toRef)(e,"overflowDisabled")),v(a),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}});var k=v,C=n(3551),M=n(37205),T=n(51845),P=n(3960),I=n(31044),$=n(86864),E=n(27216);function D(){}var R=D,N=n(46708),L=1/0,z=E.A&&1/(0,N.A)(new E.A([,-0]))[1]==L?function(e){return new E.A(e)}:R,V=z,B=200;function j(e,t,n){var r=-1,o=P.A,i=e.length,a=!0,s=[],l=s;if(n)a=!1,o=I.A;else if(i>=B){var u=t?null:V(e);if(u)return(0,N.A)(u);a=!1,o=$.A,l=new T.A}else l=t?[]:s;e:while(++r<i){var c=e[r],d=t?t(c):c;if(c=n||0!==c?c:0,a&&d===d){var h=l.length;while(h--)if(l[h]===d)continue e;t&&l.push(d),s.push(c)}else o(l,d,n)||(l!==s&&l.push(d),s.push(c))}return s}var Q=j;function F(e){return e&&e.length?Q(e):[]}var W=F;const H=Symbol("siderCollapsed");Symbol("siderHookProvider");var Z=n(16155),G=n(6631),X=n(5530);const U="$$__vc-menu-more__key",Y=Symbol("KeyPathContext"),q=()=>(0,i.inject)(Y,{parentEventKeys:(0,i.computed)((()=>[])),parentKeys:(0,i.computed)((()=>[])),parentInfo:{}}),K=(e,t,n)=>{const{parentEventKeys:r,parentKeys:o}=q(),a=(0,i.computed)((()=>[...r.value,e])),s=(0,i.computed)((()=>[...o.value,t]));return(0,i.provide)(Y,{parentEventKeys:a,parentKeys:s,parentInfo:n}),s},J=Symbol("measure"),ee=(0,i.defineComponent)({compatConfig:{MODE:3},setup(e,t){let{slots:n}=t;return(0,i.provide)(J,!0),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}}),te=()=>(0,i.inject)(J,!1);var ne=K,re=n(87051),oe=n(9139);function ie(e){const{mode:t,rtl:n,inlineIndent:r}=y();return(0,i.computed)((()=>"inline"!==t.value?null:n.value?{paddingRight:e.value*r.value+"px"}:{paddingLeft:e.value*r.value+"px"}))}var ae=n(66041);let se=0;const le=()=>({id:String,role:String,disabled:Boolean,danger:Boolean,title:{type:[String,Boolean],default:void 0},icon:X.A.any,onMouseenter:Function,onMouseleave:Function,onClick:Function,onKeydown:Function,onFocus:Function,originItemValue:(0,ae.ge)()});var ue=(0,i.defineComponent)({compatConfig:{MODE:3},name:"AMenuItem",inheritAttrs:!1,props:le(),slots:Object,setup(e,t){let{slots:n,emit:a,attrs:s}=t;const l=(0,i.getCurrentInstance)(),c=te(),d="symbol"===typeof l.vnode.key?String(l.vnode.key):l.vnode.key;(0,M.A)("symbol"!==typeof l.vnode.key,"MenuItem",`MenuItem \`:key="${String(d)}"\` not support Symbol type`);const h=`menu_item_${++se}_$$_${d}`,{parentEventKeys:p,parentKeys:f}=q(),{prefixCls:g,activeKeys:m,disabled:v,changeActiveKeys:b,rtl:_,inlineCollapsed:x,siderCollapsed:w,onItemClick:O,selectedKeys:A,registerMenuInfo:k,unRegisterMenuInfo:C}=y(),T=S(),P=(0,i.shallowRef)(!1),I=(0,i.computed)((()=>[...f.value,d])),$={eventKey:h,key:d,parentEventKeys:p,parentKeys:f,isLeaf:!0};k(h,$),(0,i.onBeforeUnmount)((()=>{C(h)})),(0,i.watch)(m,(()=>{P.value=!!m.value.find((e=>e===d))}),{immediate:!0});const E=(0,i.computed)((()=>v.value||e.disabled)),D=(0,i.computed)((()=>A.value.includes(d))),R=(0,i.computed)((()=>{const t=`${g.value}-item`;return{[`${t}`]:!0,[`${t}-danger`]:e.danger,[`${t}-active`]:P.value,[`${t}-selected`]:D.value,[`${t}-disabled`]:E.value}})),N=t=>({key:d,eventKey:h,keyPath:I.value,eventKeyPath:[...p.value,h],domEvent:t,item:(0,o.A)((0,o.A)({},e),s)}),L=e=>{if(E.value)return;const t=N(e);a("click",e),O(t)},z=e=>{E.value||(b(I.value),a("mouseenter",e))},V=e=>{E.value||(b([]),a("mouseleave",e))},B=e=>{if(a("keydown",e),e.which===u.A.ENTER){const t=N(e);a("click",e),O(t)}},j=e=>{b(I.value),a("focus",e)},Q=(e,t)=>{const n=(0,i.createVNode)("span",{class:`${g.value}-title-content`},[t]);return(!e||(0,Z.zO)(t)&&"span"===t.type)&&t&&x.value&&T&&"string"===typeof t?(0,i.createVNode)("div",{class:`${g.value}-inline-collapsed-noicon`},[t.charAt(0)]):n},F=ie((0,i.computed)((()=>I.value.length)));return()=>{var t,a,l,u,h;if(c)return null;const p=null!==(t=e.title)&&void 0!==t?t:null===(a=n.title)||void 0===a?void 0:a.call(n),f=(0,Z.MI)(null===(l=n.default)||void 0===l?void 0:l.call(n)),m=f.length;let v=p;"undefined"===typeof p?v=T&&m?f:"":!1===p&&(v="");const y={title:v};w.value||x.value||(y.title=null,y.open=!1);const b={};"option"===e.role&&(b["aria-selected"]=D.value);const O=null!==(u=e.icon)&&void 0!==u?u:null===(h=n.icon)||void 0===h?void 0:h.call(n,e);return(0,i.createVNode)(oe.A,(0,r.A)((0,r.A)({},y),{},{placement:_.value?"left":"right",overlayClassName:`${g.value}-inline-collapsed-tooltip`}),{default:()=>[(0,i.createVNode)(G.A.Item,(0,r.A)((0,r.A)((0,r.A)({component:"li"},s),{},{id:e.id,style:(0,o.A)((0,o.A)({},s.style||{}),F.value),class:[R.value,{[`${s.class}`]:!!s.class,[`${g.value}-item-only-child`]:1===(O?m+1:m)}],role:e.role||"menuitem",tabindex:e.disabled?null:-1,"data-menu-id":d,"aria-disabled":e.disabled},b),{},{onMouseenter:z,onMouseleave:V,onClick:L,onKeydown:B,onFocus:j,title:"string"===typeof p?p:void 0}),{default:()=>[(0,re.Ob)("function"===typeof O?O(e.originItemValue):O,{class:`${g.value}-item-icon`},!1),Q(O,f)]})]})}}}),ce=n(15928);const de={adjustX:1,adjustY:1},he={topLeft:{points:["bl","tl"],overflow:de,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:de,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:de,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:de,offset:[4,0]}},pe={topLeft:{points:["bl","tl"],overflow:de,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:de,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:de,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:de,offset:[4,0]}};var fe=n(41038);const ge={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};var me=(0,i.defineComponent)({compatConfig:{MODE:3},name:"PopupTrigger",inheritAttrs:!1,props:{prefixCls:String,mode:String,visible:Boolean,popupClassName:String,popupOffset:Array,disabled:Boolean,onVisibleChange:Function},slots:Object,emits:["visibleChange"],setup(e,t){let{slots:n,emit:r}=t;const s=(0,i.shallowRef)(!1),{getPopupContainer:l,rtl:u,subMenuOpenDelay:d,subMenuCloseDelay:h,builtinPlacements:p,triggerSubMenuAction:f,forceSubMenuRender:g,motion:m,defaultMotions:v,rootClassName:b}=y(),_=x(),w=(0,i.computed)((()=>u.value?(0,o.A)((0,o.A)({},pe),p.value):(0,o.A)((0,o.A)({},he),p.value))),O=(0,i.computed)((()=>ge[e.mode])),S=(0,i.shallowRef)();(0,i.watch)((()=>e.visible),(e=>{a.A.cancel(S.value),S.value=(0,a.A)((()=>{s.value=e}))}),{immediate:!0}),(0,i.onBeforeUnmount)((()=>{a.A.cancel(S.value)}));const A=e=>{r("visibleChange",e)},k=(0,i.computed)((()=>{var t,n;const r=m.value||(null===(t=v.value)||void 0===t?void 0:t[e.mode])||(null===(n=v.value)||void 0===n?void 0:n.other),o="function"===typeof r?r():r;return o?(0,fe.ce)(o.name,{css:!0}):void 0}));return()=>{const{prefixCls:t,popupClassName:r,mode:o,popupOffset:a,disabled:p}=e;return(0,i.createVNode)(ce.A,{prefixCls:t,popupClassName:(0,c.A)(`${t}-popup`,{[`${t}-rtl`]:u.value},r,b.value),stretch:"horizontal"===o?"minWidth":null,getPopupContainer:l.value,builtinPlacements:w.value,popupPlacement:O.value,popupVisible:s.value,popupAlign:a&&{offset:a},action:p?[]:[f.value],mouseEnterDelay:d.value,mouseLeaveDelay:h.value,onPopupVisibleChange:A,forceRender:_||g.value,popupAnimation:k.value},{popup:n.popup,default:n.default})}}});const ve=(e,t)=>{let{slots:n,attrs:o}=t;var a;const{prefixCls:s,mode:l}=y();return(0,i.createVNode)("ul",(0,r.A)((0,r.A)({},o),{},{class:(0,c.A)(s.value,`${s.value}-sub`,`${s.value}-${"inline"===l.value?"inline":"vertical"}`),"data-menu-list":!0}),[null===(a=n.default)||void 0===a?void 0:a.call(n)])};ve.displayName="SubMenuList";var ye=ve,be=(0,i.defineComponent)({compatConfig:{MODE:3},name:"InlineSubMenuList",inheritAttrs:!1,props:{id:String,open:Boolean,keyPath:Array},setup(e,t){let{slots:n}=t;const r=(0,i.computed)((()=>"inline")),{motion:a,mode:s,defaultMotions:l}=y(),u=(0,i.computed)((()=>s.value===r.value)),c=(0,i.ref)(!u.value),d=(0,i.computed)((()=>!!u.value&&e.open));(0,i.watch)(s,(()=>{u.value&&(c.value=!1)}),{flush:"post"});const h=(0,i.computed)((()=>{var t,n;const i=a.value||(null===(t=l.value)||void 0===t?void 0:t[r.value])||(null===(n=l.value)||void 0===n?void 0:n.other),s="function"===typeof i?i():i;return(0,o.A)((0,o.A)({},s),{appear:e.keyPath.length<=1})}));return()=>{var t;return c.value?null:(0,i.createVNode)(A,{mode:r.value},{default:()=>[(0,i.createVNode)(fe.Ay,h.value,{default:()=>[(0,i.withDirectives)((0,i.createVNode)(ye,{id:e.id},{default:()=>[null===(t=n.default)||void 0===t?void 0:t.call(n)]}),[[i.vShow,d.value]])]})]})}}}),_e=n(95915);let xe=0;const we=()=>({icon:X.A.any,title:X.A.any,disabled:Boolean,level:Number,popupClassName:String,popupOffset:Array,internalPopupClose:Boolean,eventKey:String,expandIcon:Function,theme:String,onMouseenter:Function,onMouseleave:Function,onTitleClick:Function,originItemValue:(0,ae.ge)()});var Oe=(0,i.defineComponent)({compatConfig:{MODE:3},name:"ASubMenu",inheritAttrs:!1,props:we(),slots:Object,setup(e,t){let{slots:n,attrs:a,emit:s}=t;var l,u;O(!1);const d=te(),h=(0,i.getCurrentInstance)(),p="symbol"===typeof h.vnode.key?String(h.vnode.key):h.vnode.key;(0,M.A)("symbol"!==typeof h.vnode.key,"SubMenu",`SubMenu \`:key="${String(p)}"\` not support Symbol type`);const f=(0,_e.A)(p)?p:`sub_menu_${++xe}_$$_not_set_key`,g=null!==(l=e.eventKey)&&void 0!==l?l:(0,_e.A)(p)?`sub_menu_${++xe}_$$_${p}`:f,{parentEventKeys:m,parentInfo:v,parentKeys:b}=q(),w=(0,i.computed)((()=>[...b.value,f])),S=(0,i.shallowRef)([]),k={eventKey:g,key:f,parentEventKeys:m,childrenEventKeys:S,parentKeys:b};null===(u=v.childrenEventKeys)||void 0===u||u.value.push(g),(0,i.onBeforeUnmount)((()=>{var e;v.childrenEventKeys&&(v.childrenEventKeys.value=null===(e=v.childrenEventKeys)||void 0===e?void 0:e.value.filter((e=>e!=g)))})),ne(g,f,k);const{prefixCls:C,activeKeys:T,disabled:P,changeActiveKeys:I,mode:$,inlineCollapsed:E,openKeys:D,overflowDisabled:R,onOpenChange:N,registerMenuInfo:L,unRegisterMenuInfo:z,selectedSubMenuKeys:V,expandIcon:B,theme:j}=y(),Q=void 0!==p&&null!==p,F=!d&&(x()||!Q);_(F),(d&&Q||!d&&!Q||F)&&(L(g,k),(0,i.onBeforeUnmount)((()=>{z(g)})));const W=(0,i.computed)((()=>`${C.value}-submenu`)),H=(0,i.computed)((()=>P.value||e.disabled)),X=(0,i.shallowRef)(),U=(0,i.shallowRef)(),Y=(0,i.computed)((()=>D.value.includes(f))),K=(0,i.computed)((()=>!R.value&&Y.value)),J=(0,i.computed)((()=>V.value.includes(f))),ee=(0,i.shallowRef)(!1);(0,i.watch)(T,(()=>{ee.value=!!T.value.find((e=>e===f))}),{immediate:!0});const oe=e=>{H.value||(s("titleClick",e,f),"inline"===$.value&&N(f,!Y.value))},ae=e=>{H.value||(I(w.value),s("mouseenter",e))},se=e=>{H.value||(I([]),s("mouseleave",e))},le=ie((0,i.computed)((()=>w.value.length))),ue=e=>{"inline"!==$.value&&N(f,e)},ce=()=>{I(w.value)},de=g&&`${g}-popup`,he=(0,i.computed)((()=>(0,c.A)(C.value,`${C.value}-${e.theme||j.value}`,e.popupClassName))),pe=(t,n)=>{if(!n)return E.value&&!b.value.length&&t&&"string"===typeof t?(0,i.createVNode)("div",{class:`${C.value}-inline-collapsed-noicon`},[t.charAt(0)]):(0,i.createVNode)("span",{class:`${C.value}-title-content`},[t]);const r=(0,Z.zO)(t)&&"span"===t.type;return(0,i.createVNode)(i.Fragment,null,[(0,re.Ob)("function"===typeof n?n(e.originItemValue):n,{class:`${C.value}-item-icon`},!1),r?t:(0,i.createVNode)("span",{class:`${C.value}-title-content`},[t])])},fe=(0,i.computed)((()=>"inline"!==$.value&&w.value.length>1?"vertical":$.value)),ge=(0,i.computed)((()=>"horizontal"===$.value?"vertical":$.value)),ve=(0,i.computed)((()=>"horizontal"===fe.value?"vertical":fe.value)),we=()=>{var t,r;const a=W.value,s=null!==(t=e.icon)&&void 0!==t?t:null===(r=n.icon)||void 0===r?void 0:r.call(n,e),l=e.expandIcon||n.expandIcon||B.value,u=pe((0,Z.rU)(n,e,"title"),s);return(0,i.createVNode)("div",{style:le.value,class:`${a}-title`,tabindex:H.value?null:-1,ref:X,title:"string"===typeof u?u:null,"data-menu-id":f,"aria-expanded":K.value,"aria-haspopup":!0,"aria-controls":de,"aria-disabled":H.value,onClick:oe,onFocus:ce},[u,"horizontal"!==$.value&&l?l((0,o.A)((0,o.A)({},e),{isOpen:K.value})):(0,i.createVNode)("i",{class:`${a}-arrow`},null)])};return()=>{var t;if(d)return Q?null===(t=n.default)||void 0===t?void 0:t.call(n):null;const o=W.value;let s=()=>null;if(R.value||"inline"===$.value)s=()=>(0,i.createVNode)(me,null,{default:we});else{const t="horizontal"===$.value?[0,8]:[10,0];s=()=>(0,i.createVNode)(me,{mode:fe.value,prefixCls:o,visible:!e.internalPopupClose&&K.value,popupClassName:he.value,popupOffset:e.popupOffset||t,disabled:H.value,onVisibleChange:ue},{default:()=>[we()],popup:()=>(0,i.createVNode)(A,{mode:ve.value},{default:()=>[(0,i.createVNode)(ye,{id:de,ref:U},{default:n.default})]})})}return(0,i.createVNode)(A,{mode:ge.value},{default:()=>[(0,i.createVNode)(G.A.Item,(0,r.A)((0,r.A)({component:"li"},a),{},{role:"none",class:(0,c.A)(o,`${o}-${$.value}`,a.class,{[`${o}-open`]:K.value,[`${o}-active`]:ee.value,[`${o}-selected`]:J.value,[`${o}-disabled`]:H.value}),onMouseenter:ae,onMouseleave:se,"data-submenu-id":f}),{default:()=>(0,i.createVNode)(i.Fragment,null,[s(),!R.value&&(0,i.createVNode)(be,{id:de,open:K.value,keyPath:w.value},{default:n.default})])})]})}}}),Se={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},Ae=Se,ke=n(29847);function Ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Me(e,t,n[t])}))}return e}function Me(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Te=function(e,t){var n=Ce({},e,t.attrs);return(0,i.createVNode)(ke.A,Ce({},n,{icon:Ae}),null)};Te.displayName="EllipsisOutlined",Te.inheritAttrs=!1;var Pe=Te,Ie=n(33063);const $e=()=>({title:X.A.any,originItemValue:(0,ae.ge)()});var Ee=(0,i.defineComponent)({compatConfig:{MODE:3},name:"AMenuItemGroup",inheritAttrs:!1,props:$e(),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:a}=y(),s=(0,i.computed)((()=>`${a.value}-item-group`)),l=te();return()=>{var t,a;return l?null===(t=n.default)||void 0===t?void 0:t.call(n):(0,i.createVNode)("li",(0,r.A)((0,r.A)({},o),{},{onClick:e=>e.stopPropagation(),class:s.value}),[(0,i.createVNode)("div",{title:"string"===typeof e.title?e.title:void 0,class:`${s.value}-title`},[(0,Z.rU)(n,e,"title")]),(0,i.createVNode)("ul",{class:`${s.value}-list`},[null===(a=n.default)||void 0===a?void 0:a.call(n)])])}}});const De=()=>({prefixCls:String,dashed:Boolean});var Re=(0,i.defineComponent)({compatConfig:{MODE:3},name:"AMenuDivider",props:De(),setup(e){const{prefixCls:t}=y(),n=(0,i.computed)((()=>({[`${t.value}-item-divider`]:!0,[`${t.value}-item-divider-dashed`]:!!e.dashed})));return()=>(0,i.createVNode)("li",{class:n.value},null)}}),Ne=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Le(e,t,n){return(e||[]).map(((e,o)=>{if(e&&"object"===typeof e){const a=e,{label:s,children:l,key:u,type:c}=a,d=Ne(a,["label","children","key","type"]),h=null!==u&&void 0!==u?u:`tmp-${o}`,p=n?n.parentKeys.slice():[],f=[],g={eventKey:h,key:h,parentEventKeys:(0,i.ref)(p),parentKeys:(0,i.ref)(p),childrenEventKeys:(0,i.ref)(f),isLeaf:!1};if(l||"group"===c){if("group"===c){const o=Le(l,t,n);return(0,i.createVNode)(Ee,(0,r.A)((0,r.A)({key:h},d),{},{title:s,originItemValue:e}),{default:()=>[o]})}t.set(h,g),n&&n.childrenEventKeys.push(h);const o=Le(l,t,{childrenEventKeys:f,parentKeys:[].concat(p,h)});return(0,i.createVNode)(Oe,(0,r.A)((0,r.A)({key:h},d),{},{title:s,originItemValue:e}),{default:()=>[o]})}return"divider"===c?(0,i.createVNode)(Re,(0,r.A)({key:h},d),null):(g.isLeaf=!0,t.set(h,g),(0,i.createVNode)(ue,(0,r.A)((0,r.A)({key:h},d),{},{originItemValue:e}),{default:()=>[s]}))}return null})).filter((e=>e))}function ze(e){const t=(0,i.shallowRef)([]),n=(0,i.shallowRef)(!1),r=(0,i.shallowRef)(new Map);return(0,i.watch)((()=>e.items),(()=>{const o=new Map;n.value=!1,e.items?(n.value=!0,t.value=Le(e.items,o)):t.value=void 0,r.value=o}),{immediate:!0,deep:!0}),{itemsNodes:t,store:r,hasItmes:n}}var Ve=n(78089),Be=n(86049),je=n(67177),Qe=n(41781),Fe=n(94471),We=n(96704);const He=e=>{const{componentCls:t,motionDurationSlow:n,menuHorizontalHeight:r,colorSplit:o,lineWidth:i,lineType:a,menuItemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:`${r}px`,border:0,borderBottom:`${i}px ${a} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${t}-item:hover,\n > ${t}-item-active,\n > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}};var Ze=He;const Ge=e=>{let{componentCls:t,menuArrowOffset:n}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,\n ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${n})`},"&::after":{transform:`rotate(45deg) translateY(${n})`}}}}};var Xe=Ge,Ue=n(69729);const Ye=e=>(0,o.A)({},(0,Ue.jk)(e)),qe=(e,t)=>{const{componentCls:n,colorItemText:r,colorItemTextSelected:i,colorGroupTitle:a,colorItemBg:s,colorSubItemBg:l,colorItemBgSelected:u,colorActiveBarHeight:c,colorActiveBarWidth:d,colorActiveBarBorderSize:h,motionDurationSlow:p,motionEaseInOut:f,motionEaseOut:g,menuItemPaddingInline:m,motionDurationMid:v,colorItemTextHover:y,lineType:b,colorSplit:_,colorItemTextDisabled:x,colorDangerItemText:w,colorDangerItemTextHover:O,colorDangerItemTextSelected:S,colorDangerItemBgActive:A,colorDangerItemBgSelected:k,colorItemBgHover:C,menuSubMenuBg:M,colorItemTextSelectedHorizontal:T,colorItemBgSelectedHorizontal:P}=e;return{[`${n}-${t}`]:{color:r,background:s,[`&${n}-root:focus-visible`]:(0,o.A)({},Ye(e)),[`${n}-item-group-title`]:{color:a},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:i}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${x} !important`},[`${n}-item:hover, ${n}-submenu-title:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:y}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:C},"&:active":{backgroundColor:u}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:C},"&:active":{backgroundColor:u}}},[`${n}-item-danger`]:{color:w,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:O}},[`&${n}-item:active`]:{background:A}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:i,[`&${n}-item-danger`]:{color:S},["a, a:hover"]:{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:u,[`&${n}-item-danger`]:{backgroundColor:k}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:(0,o.A)({},Ye(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:M},[`&${n}-popup > ${n}`]:{backgroundColor:s},[`&${n}-horizontal`]:(0,o.A)((0,o.A)({},"dark"===t?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:h,marginTop:-h,marginBottom:0,borderRadius:0,"&::after":{position:"absolute",insetInline:m,bottom:0,borderBottom:`${c}px solid transparent`,transition:`border-color ${p} ${f}`,content:'""'},["&:hover, &-active, &-open"]:{"&::after":{borderBottomWidth:c,borderBottomColor:T}},["&-selected"]:{color:T,backgroundColor:P,"&::after":{borderBottomWidth:c,borderBottomColor:T}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${h}px ${b} ${_}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item, ${n}-submenu-title`]:h&&d?{width:`calc(100% + ${h}px)`}:{},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${d}px solid ${i}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${v} ${g}`,`opacity ${v} ${g}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:S}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${v} ${f}`,`opacity ${v} ${f}`].join(",")}}}}}};var Ke=qe;const Je=e=>{const{componentCls:t,menuItemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:i,marginXS:a,marginXXS:s}=e,l=o+i+a;return{[`${t}-item`]:{position:"relative"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`,paddingInline:o,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:`calc(100% - ${2*r}px)`},[`${t}-submenu`]:{paddingBottom:.02},[`> ${t}-item,\n > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`},[`${t}-item-group-list ${t}-submenu-title,\n ${t}-submenu-title`]:{paddingInlineEnd:l}}},et=e=>{const{componentCls:t,iconCls:n,menuItemHeight:r,colorTextLightSolid:i,dropdownWidth:a,controlHeightLG:s,motionDurationMid:l,motionEaseOut:u,paddingXL:c,fontSizeSM:d,fontSizeLG:h,motionDurationSlow:p,paddingXS:f,boxShadowSecondary:g}=e,m={height:r,lineHeight:`${r}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{["&-inline, &-vertical"]:(0,o.A)({[`&${t}-root`]:{boxShadow:"none"}},Je(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:(0,o.A)((0,o.A)({},Je(e)),{boxShadow:g})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:a,maxHeight:`calc(100vh - ${2.5*s}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${p}`,`background ${p}`,`padding ${l} ${u}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:m,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:m}},{[`${t}-inline-collapsed`]:{width:2*r,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:h,textAlign:"center"}}},[`> ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,\n > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${d}px)`,textOverflow:"clip",[`\n ${t}-submenu-arrow,\n ${t}-submenu-expand-icon\n `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:h,lineHeight:`${r}px`,"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:i}},[`${t}-item-group-title`]:(0,o.A)((0,o.A)({},Ue.L9),{paddingInline:f})}}]};var tt=et;const nt=e=>{const{componentCls:t,fontSize:n,motionDurationSlow:r,motionDurationMid:i,motionEaseInOut:a,motionEaseOut:s,iconCls:l,controlHeightSM:u}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${r}`,`background ${r}`,`padding ${r} ${a}`].join(","),[`${t}-item-icon, ${l}`]:{minWidth:n,fontSize:n,transition:[`font-size ${i} ${s}`,`margin ${r} ${a}`,`color ${r}`].join(","),"+ span":{marginInlineStart:u-n,opacity:1,transition:[`opacity ${r} ${a}`,`margin ${r}`,`color ${r}`].join(",")}},[`${t}-item-icon`]:(0,o.A)({},(0,Ue.Nk)()),[`&${t}-item-only-child`]:{[`> ${l}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},rt=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:i,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{["&-expand-icon, &-arrow"]:{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:.6*i,height:.15*i,backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${a})`},"&::after":{transform:`rotate(-45deg) translateY(${a})`}}}}},ot=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:i,motionDurationMid:a,motionEaseInOut:s,lineHeight:l,paddingXS:u,padding:c,colorSplit:d,lineWidth:h,zIndexPopup:p,borderRadiusLG:f,radiusSubMenuItem:g,menuArrowSize:m,menuArrowOffset:v,lineType:y,menuPanelMaskInset:b}=e;return[{"":{[`${n}`]:(0,o.A)((0,o.A)({},(0,Ue.t6)()),{["&-hidden"]:{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:(0,o.A)((0,o.A)((0,o.A)((0,o.A)((0,o.A)((0,o.A)((0,o.A)({},(0,Ue.dF)(e)),(0,Ue.t6)()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${i} cubic-bezier(0.2, 0, 0, 1) 0s`,["ul, ol"]:{margin:0,padding:0,listStyle:"none"},["&-overflow"]:{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.radiusItem},[`${n}-item-group-title`]:{padding:`${u}px ${c}px`,fontSize:r,lineHeight:l,transition:`all ${i}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${i} ${s}`,`background ${i} ${s}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${i} ${s}`,`background ${i} ${s}`,`padding ${a} ${s}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${i} ${s}`,`padding ${i} ${s}`].join(",")},[`${n}-title-content`]:{transition:`color ${i}`},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:d,borderStyle:y,borderWidth:0,borderTopWidth:h,marginBlock:h,padding:0,"&-dashed":{borderStyle:"dashed"}}}),nt(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${2*r}px ${c}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:p,background:"transparent",borderRadius:f,boxShadow:"none",transformOrigin:"0 0","&::before":{position:"absolute",inset:`${b}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:b},[`> ${n}`]:(0,o.A)((0,o.A)((0,o.A)({borderRadius:f},nt(e)),rt(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:g},[`${n}-submenu-title::after`]:{transition:`transform ${i} ${s}`}})}}),rt(e)),{[`&-inline-collapsed ${n}-submenu-arrow,\n &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${v})`},"&::after":{transform:`rotate(45deg) translateX(-${v})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(-${.2*m}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${v})`},"&::before":{transform:`rotate(45deg) translateX(${v})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]};var it=(e,t)=>{const n=(0,Fe.A)("Menu",((e,n)=>{let{overrideComponentToken:r}=n;if(!1===(null===t||void 0===t?void 0:t.value))return[];const{colorBgElevated:i,colorPrimary:a,colorError:s,colorErrorHover:l,colorTextLightSolid:u}=e,{controlHeightLG:c,fontSize:d}=e,h=d/7*5,p=(0,We.h1)(e,{menuItemHeight:c,menuItemPaddingInline:e.margin,menuArrowSize:h,menuHorizontalHeight:1.15*c,menuArrowOffset:.25*h+"px",menuPanelMaskInset:-7,menuSubMenuBg:i}),f=new Ve.q(u).setAlpha(.65).toRgbString(),g=(0,We.h1)(p,{colorItemText:f,colorItemTextHover:u,colorGroupTitle:f,colorItemTextSelected:u,colorItemBg:"#001529",colorSubItemBg:"#000c17",colorItemBgActive:"transparent",colorItemBgSelected:a,colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemTextDisabled:new Ve.q(u).setAlpha(.25).toRgbString(),colorDangerItemText:s,colorDangerItemTextHover:l,colorDangerItemTextSelected:u,colorDangerItemBgActive:s,colorDangerItemBgSelected:s,menuSubMenuBg:"#001529",colorItemTextSelectedHorizontal:u,colorItemBgSelectedHorizontal:a},(0,o.A)({},r));return[ot(p),Ze(p),tt(p),Ke(p,"light"),Ke(g,"dark"),Xe(p),(0,Be.A)(p),(0,je._j)(p,"slide-up"),(0,je._j)(p,"slide-down"),(0,Qe.aB)(p,"zoom-big")]}),(e=>{const{colorPrimary:t,colorError:n,colorTextDisabled:r,colorErrorBg:o,colorText:i,colorTextDescription:a,colorBgContainer:s,colorFillAlter:l,colorFillContent:u,lineWidth:c,lineWidthBold:d,controlItemBgActive:h,colorBgTextHover:p}=e;return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,colorItemText:i,colorItemTextHover:i,colorItemTextHoverHorizontal:t,colorGroupTitle:a,colorItemTextSelected:t,colorItemTextSelectedHorizontal:t,colorItemBg:s,colorItemBgHover:p,colorItemBgActive:u,colorSubItemBg:l,colorItemBgSelected:h,colorItemBgSelectedHorizontal:"transparent",colorActiveBarWidth:0,colorActiveBarHeight:d,colorActiveBarBorderSize:c,colorItemTextDisabled:r,colorDangerItemText:n,colorDangerItemTextHover:n,colorDangerItemTextSelected:n,colorDangerItemBgActive:o,colorDangerItemBgSelected:o,itemMarginInline:e.marginXXS}}));return n(e)};const at=Symbol("OverrideContextKey"),st=()=>(0,i.inject)(at,void 0),lt=e=>{var t,n,r;const{prefixCls:o,mode:a,selectable:s,validator:l,onClick:u,expandIcon:c}=st()||{};(0,i.provide)(at,{prefixCls:(0,i.computed)((()=>{var t,n;return null!==(n=null===(t=e.prefixCls)||void 0===t?void 0:t.value)&&void 0!==n?n:null===o||void 0===o?void 0:o.value})),mode:(0,i.computed)((()=>{var t,n;return null!==(n=null===(t=e.mode)||void 0===t?void 0:t.value)&&void 0!==n?n:null===a||void 0===a?void 0:a.value})),selectable:(0,i.computed)((()=>{var t,n;return null!==(n=null===(t=e.selectable)||void 0===t?void 0:t.value)&&void 0!==n?n:null===s||void 0===s?void 0:s.value})),validator:null!==(t=e.validator)&&void 0!==t?t:l,onClick:null!==(n=e.onClick)&&void 0!==n?n:u,expandIcon:null!==(r=e.expandIcon)&&void 0!==r?r:null===c||void 0===c?void 0:c.value})},ut=()=>({id:String,prefixCls:String,items:Array,disabled:Boolean,inlineCollapsed:Boolean,disabledOverflow:Boolean,forceSubMenuRender:Boolean,openKeys:Array,selectedKeys:Array,activeKey:String,selectable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},tabindex:{type:[Number,String]},motion:Object,role:String,theme:{type:String,default:"light"},mode:{type:String,default:"vertical"},inlineIndent:{type:Number,default:24},subMenuOpenDelay:{type:Number,default:0},subMenuCloseDelay:{type:Number,default:.1},builtinPlacements:{type:Object},triggerSubMenuAction:{type:String,default:"hover"},getPopupContainer:Function,expandIcon:Function,onOpenChange:Function,onSelect:Function,onDeselect:Function,onClick:[Function,Array],onFocus:Function,onBlur:Function,onMousedown:Function,"onUpdate:openKeys":Function,"onUpdate:selectedKeys":Function,"onUpdate:activeKey":Function}),ct=[];var dt=(0,i.defineComponent)({compatConfig:{MODE:3},name:"AMenu",inheritAttrs:!1,props:ut(),slots:Object,setup(e,t){let{slots:n,emit:a,attrs:s}=t;const{direction:l,getPrefixCls:u}=(0,C.A)("menu",e),c=st(),d=(0,i.computed)((()=>{var t;return u("menu",e.prefixCls||(null===(t=null===c||void 0===c?void 0:c.prefixCls)||void 0===t?void 0:t.value))})),[h,p]=it(d,(0,i.computed)((()=>!c))),f=(0,i.shallowRef)(new Map),m=(0,i.inject)(H,(0,i.ref)(void 0)),v=(0,i.computed)((()=>void 0!==m.value?m.value:e.inlineCollapsed)),{itemsNodes:y}=ze(e),b=(0,i.shallowRef)(!1);(0,i.onMounted)((()=>{b.value=!0})),(0,i.watchEffect)((()=>{(0,M.A)(!(!0===e.inlineCollapsed&&"inline"!==e.mode),"Menu","`inlineCollapsed` should only be used when `mode` is inline."),(0,M.A)(!(void 0!==m.value&&!0===e.inlineCollapsed),"Menu","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead.")}));const _=(0,i.ref)([]),x=(0,i.ref)([]),w=(0,i.ref)({});(0,i.watch)(f,(()=>{const e={};for(const t of f.value.values())e[t.key]=t;w.value=e}),{flush:"post"}),(0,i.watchEffect)((()=>{if(void 0!==e.activeKey){let t=[];const n=e.activeKey?w.value[e.activeKey]:void 0;t=n&&void 0!==e.activeKey?W([].concat((0,i.unref)(n.parentKeys),e.activeKey)):[],g(_.value,t)||(_.value=t)}})),(0,i.watch)((()=>e.selectedKeys),(e=>{e&&(x.value=e.slice())}),{immediate:!0,deep:!0});const S=(0,i.ref)([]);(0,i.watch)([w,x],(()=>{let e=[];x.value.forEach((t=>{const n=w.value[t];n&&(e=e.concat((0,i.unref)(n.parentKeys)))})),e=W(e),g(S.value,e)||(S.value=e)}),{immediate:!0});const T=t=>{if(e.selectable){const{key:n}=t,r=x.value.includes(n);let i;i=e.multiple?r?x.value.filter((e=>e!==n)):[...x.value,n]:[n];const s=(0,o.A)((0,o.A)({},t),{selectedKeys:i});g(i,x.value)||(void 0===e.selectedKeys&&(x.value=i),a("update:selectedKeys",i),r&&e.multiple?a("deselect",s):a("select",s))}"inline"!==R.value&&!e.multiple&&P.value.length&&z(ct)},P=(0,i.ref)([]);let I;(0,i.watch)((()=>e.openKeys),(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:P.value;g(P.value,e)||(P.value=e.slice())}),{immediate:!0,deep:!0});const $=t=>{clearTimeout(I),I=setTimeout((()=>{void 0===e.activeKey&&(_.value=t),a("update:activeKey",t[t.length-1])}))},E=(0,i.computed)((()=>!!e.disabled)),D=(0,i.computed)((()=>"rtl"===l.value)),R=(0,i.ref)("vertical"),N=(0,i.shallowRef)(!1);(0,i.watchEffect)((()=>{var t;"inline"!==e.mode&&"vertical"!==e.mode||!v.value?(R.value=e.mode,N.value=!1):(R.value="vertical",N.value=v.value),(null===(t=null===c||void 0===c?void 0:c.mode)||void 0===t?void 0:t.value)&&(R.value=c.mode.value)}));const L=(0,i.computed)((()=>"inline"===R.value)),z=e=>{P.value=e,a("update:openKeys",e),a("openChange",e)},V=(0,i.ref)(P.value),B=(0,i.shallowRef)(!1);(0,i.watch)(P,(()=>{L.value&&(V.value=P.value)}),{immediate:!0}),(0,i.watch)(L,(()=>{B.value?L.value?P.value=V.value:z(ct):B.value=!0}),{immediate:!0});const j=(0,i.computed)((()=>({[`${d.value}`]:!0,[`${d.value}-root`]:!0,[`${d.value}-${R.value}`]:!0,[`${d.value}-inline-collapsed`]:N.value,[`${d.value}-rtl`]:D.value,[`${d.value}-${e.theme}`]:!0}))),Q=(0,i.computed)((()=>u())),F=(0,i.computed)((()=>({horizontal:{name:`${Q.value}-slide-up`},inline:(0,Ie.A)(`${Q.value}-motion-collapse`),other:{name:`${Q.value}-zoom-big`}})));O(!0);const X=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t=[],n=f.value;return e.forEach((e=>{const{key:r,childrenEventKeys:o}=n.get(e);t.push(r,...X((0,i.unref)(o)))})),t},Y=e=>{var t;a("click",e),T(e),null===(t=null===c||void 0===c?void 0:c.onClick)||void 0===t||t.call(c)},q=(e,t)=>{var n;const r=(null===(n=w.value[e])||void 0===n?void 0:n.childrenEventKeys)||[];let o=P.value.filter((t=>t!==e));if(t)o.push(e);else if("inline"!==R.value){const e=X((0,i.unref)(r));o=W(o.filter((t=>!e.includes(t))))}g(P,o)||z(o)},K=(e,t)=>{f.value.set(e,t),f.value=new Map(f.value)},J=e=>{f.value.delete(e),f.value=new Map(f.value)},te=(0,i.ref)(0),ne=(0,i.computed)((()=>{var t;return e.expandIcon||n.expandIcon||(null===(t=null===c||void 0===c?void 0:c.expandIcon)||void 0===t?void 0:t.value)?t=>{let r=e.expandIcon||n.expandIcon;return r="function"===typeof r?r(t):r,(0,re.Ob)(r,{class:`${d.value}-submenu-expand-icon`},!1)}:null}));k({prefixCls:d,activeKeys:_,openKeys:P,selectedKeys:x,changeActiveKeys:$,disabled:E,rtl:D,mode:R,inlineIndent:(0,i.computed)((()=>e.inlineIndent)),subMenuCloseDelay:(0,i.computed)((()=>e.subMenuCloseDelay)),subMenuOpenDelay:(0,i.computed)((()=>e.subMenuOpenDelay)),builtinPlacements:(0,i.computed)((()=>e.builtinPlacements)),triggerSubMenuAction:(0,i.computed)((()=>e.triggerSubMenuAction)),getPopupContainer:(0,i.computed)((()=>e.getPopupContainer)),inlineCollapsed:N,theme:(0,i.computed)((()=>e.theme)),siderCollapsed:m,defaultMotions:(0,i.computed)((()=>b.value?F.value:null)),motion:(0,i.computed)((()=>b.value?e.motion:null)),overflowDisabled:(0,i.shallowRef)(void 0),onOpenChange:q,onItemClick:Y,registerMenuInfo:K,unRegisterMenuInfo:J,selectedSubMenuKeys:S,expandIcon:ne,forceSubMenuRender:(0,i.computed)((()=>e.forceSubMenuRender)),rootClassName:p});const oe=()=>{var e;return y.value||(0,Z.MI)(null===(e=n.default)||void 0===e?void 0:e.call(n))};return()=>{var t;const o=oe(),a=te.value>=o.length-1||"horizontal"!==R.value||e.disabledOverflow,l=t=>"horizontal"!==R.value||e.disabledOverflow?t:t.map(((e,t)=>(0,i.createVNode)(A,{key:e.key,overflowDisabled:t>te.value},{default:()=>e}))),u=(null===(t=n.overflowedIndicator)||void 0===t?void 0:t.call(n))||(0,i.createVNode)(Pe,null,null);return h((0,i.createVNode)(G.A,(0,r.A)((0,r.A)({},s),{},{onMousedown:e.onMousedown,prefixCls:`${d.value}-overflow`,component:"ul",itemComponent:ue,class:[j.value,s.class,p.value],role:"menu",id:e.id,data:l(o),renderRawItem:e=>e,renderRawRest:e=>{const t=e.length,n=t?o.slice(-t):null;return(0,i.createVNode)(i.Fragment,null,[(0,i.createVNode)(Oe,{eventKey:U,key:U,title:u,disabled:a,internalPopupClose:0===t},{default:()=>n}),(0,i.createVNode)(ee,null,{default:()=>[(0,i.createVNode)(Oe,{eventKey:U,key:U,title:u,disabled:a,internalPopupClose:0===t},{default:()=>n})]})])},maxCount:"horizontal"!==R.value||e.disabledOverflow?G.A.INVALIDATE:G.A.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:e=>{te.value=e}}),{default:()=>[(0,i.createVNode)(i.Teleport,{to:"body"},{default:()=>[(0,i.createVNode)("div",{style:{display:"none"},"aria-hidden":!0},[(0,i.createVNode)(ee,null,{default:()=>[l(oe())]})])]})]}))}}});dt.install=function(e){return e.component(dt.name,dt),e.component(ue.name,ue),e.component(Oe.name,Oe),e.component(Re.name,Re),e.component(Ee.name,Ee),e},dt.Item=ue,dt.Divider=Re,dt.SubMenu=Oe,dt.ItemGroup=Ee;var ht=dt;const pt={adjustX:1,adjustY:1},ft=[0,0],gt={topLeft:{points:["bl","tl"],overflow:pt,offset:[0,-4],targetOffset:ft},topCenter:{points:["bc","tc"],overflow:pt,offset:[0,-4],targetOffset:ft},topRight:{points:["br","tr"],overflow:pt,offset:[0,-4],targetOffset:ft},bottomLeft:{points:["tl","bl"],overflow:pt,offset:[0,4],targetOffset:ft},bottomCenter:{points:["tc","bc"],overflow:pt,offset:[0,4],targetOffset:ft},bottomRight:{points:["tr","br"],overflow:pt,offset:[0,4],targetOffset:ft}};var mt=gt,vt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},yt=(0,i.defineComponent)({compatConfig:{MODE:3},props:{minOverlayWidthMatchTrigger:{type:Boolean,default:void 0},arrow:{type:Boolean,default:!1},prefixCls:X.A.string.def("rc-dropdown"),transitionName:String,overlayClassName:X.A.string.def(""),openClassName:String,animation:X.A.any,align:X.A.object,overlayStyle:{type:Object,default:void 0},placement:X.A.string.def("bottomLeft"),overlay:X.A.any,trigger:X.A.oneOfType([X.A.string,X.A.arrayOf(X.A.string)]).def("hover"),alignPoint:{type:Boolean,default:void 0},showAction:X.A.array,hideAction:X.A.array,getPopupContainer:Function,visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:!1},mouseEnterDelay:X.A.number.def(.15),mouseLeaveDelay:X.A.number.def(.1)},emits:["visibleChange","overlayClick"],setup(e,t){let{slots:n,emit:o,expose:a}=t;const s=(0,i.ref)(!!e.visible);(0,i.watch)((()=>e.visible),(e=>{void 0!==e&&(s.value=e)}));const l=(0,i.ref)();a({triggerRef:l});const u=t=>{void 0===e.visible&&(s.value=!1),o("overlayClick",t)},d=t=>{void 0===e.visible&&(s.value=t),o("visibleChange",t)},h=()=>{var t;const r=null===(t=n.overlay)||void 0===t?void 0:t.call(n),o={prefixCls:`${e.prefixCls}-menu`,onClick:u};return(0,i.createVNode)(i.Fragment,{key:Z.Py},[e.arrow&&(0,i.createVNode)("div",{class:`${e.prefixCls}-arrow`},null),(0,re.Ob)(r,o,!1)])},p=(0,i.computed)((()=>{const{minOverlayWidthMatchTrigger:t=!e.alignPoint}=e;return t})),f=()=>{var t;const r=null===(t=n.default)||void 0===t?void 0:t.call(n);return s.value&&r?(0,re.Ob)(r[0],{class:e.openClassName||`${e.prefixCls}-open`},!1):r},g=(0,i.computed)((()=>e.hideAction||-1===e.trigger.indexOf("contextmenu")?e.hideAction:["click"]));return()=>{const{prefixCls:t,arrow:n,showAction:o,overlayStyle:a,trigger:u,placement:m,align:v,getPopupContainer:y,transitionName:b,animation:_,overlayClassName:x}=e,w=vt(e,["prefixCls","arrow","showAction","overlayStyle","trigger","placement","align","getPopupContainer","transitionName","animation","overlayClassName"]);return(0,i.createVNode)(ce.A,(0,r.A)((0,r.A)({},w),{},{prefixCls:t,ref:l,popupClassName:(0,c.A)(x,{[`${t}-show-arrow`]:n}),popupStyle:a,builtinPlacements:mt,action:u,showAction:o,hideAction:g.value||[],popupPlacement:m,popupAlign:v,popupTransitionName:b,popupAnimation:_,popupVisible:s.value,stretch:p.value?"minWidth":"",onPopupVisibleChange:d,getPopupContainer:y}),{popup:h,default:f})}}}),bt=yt,_t=(0,i.defineComponent)({compatConfig:{MODE:3},name:"AddButton",inheritAttrs:!1,props:{prefixCls:String,editable:{type:Object},locale:{type:Object,default:void 0}},setup(e,t){let{expose:n,attrs:r}=t;const o=(0,i.ref)();return n({domRef:o}),()=>{const{prefixCls:t,editable:n,locale:a}=e;return n&&!1!==n.showAdd?(0,i.createVNode)("button",{ref:o,type:"button",class:`${t}-nav-add`,style:r.style,"aria-label":(null===a||void 0===a?void 0:a.addAriaLabel)||"Add tab",onClick:e=>{n.onEdit("add",{event:e})}},[n.addIcon?n.addIcon():"+"]):null}}}),xt=n(6340);const wt={prefixCls:{type:String},id:{type:String},tabs:{type:Object},rtl:{type:Boolean},tabBarGutter:{type:Number},activeKey:{type:[String,Number]},mobile:{type:Boolean},moreIcon:X.A.any,moreTransitionName:{type:String},editable:{type:Object},locale:{type:Object,default:void 0},removeAriaLabel:String,onTabClick:{type:Function},popupClassName:String,getPopupContainer:(0,ae.Fg)()};var Ot=(0,i.defineComponent)({compatConfig:{MODE:3},name:"OperationNode",inheritAttrs:!1,props:wt,emits:["tabClick"],slots:Object,setup(e,t){let{attrs:n,slots:r}=t;const[o,a]=(0,xt.A)(!1),[s,l]=(0,xt.A)(null),d=t=>{const n=e.tabs.filter((e=>!e.disabled));let r=n.findIndex((e=>e.key===s.value))||0;const o=n.length;for(let e=0;e<o;e+=1){r=(r+t+o)%o;const e=n[r];if(!e.disabled)return void l(e.key)}},h=t=>{const{which:n}=t;if(o.value)switch(n){case u.A.UP:d(-1),t.preventDefault();break;case u.A.DOWN:d(1),t.preventDefault();break;case u.A.ESC:a(!1);break;case u.A.SPACE:case u.A.ENTER:null!==s.value&&e.onTabClick(s.value,t);break}else[u.A.DOWN,u.A.SPACE,u.A.ENTER].includes(n)&&(a(!0),t.preventDefault())},p=(0,i.computed)((()=>`${e.id}-more-popup`)),f=(0,i.computed)((()=>null!==s.value?`${p.value}-${s.value}`:null)),g=(t,n)=>{t.preventDefault(),t.stopPropagation(),e.editable.onEdit("remove",{key:n,event:t})};return(0,i.onMounted)((()=>{(0,i.watch)(s,(()=>{const e=document.getElementById(f.value);e&&e.scrollIntoView&&e.scrollIntoView(!1)}),{flush:"post",immediate:!0})})),(0,i.watch)(o,(()=>{o.value||l(null)})),lt({}),()=>{var t;const{prefixCls:l,id:u,tabs:d,locale:m,mobile:v,moreIcon:y=(null===(t=r.moreIcon)||void 0===t?void 0:t.call(r))||(0,i.createVNode)(Pe,null,null),moreTransitionName:b,editable:_,tabBarGutter:x,rtl:w,onTabClick:O,popupClassName:S}=e;if(!d.length)return null;const A=`${l}-dropdown`,k=null===m||void 0===m?void 0:m.dropdownAriaLabel,C={[w?"marginRight":"marginLeft"]:x};d.length||(C.visibility="hidden",C.order=1);const M=(0,c.A)({[`${A}-rtl`]:w,[`${S}`]:!0}),T=v?null:(0,i.createVNode)(bt,{prefixCls:A,trigger:["hover"],visible:o.value,transitionName:b,onVisibleChange:a,overlayClassName:M,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:e.getPopupContainer},{overlay:()=>(0,i.createVNode)(ht,{onClick:e=>{let{key:t,domEvent:n}=e;O(t,n),a(!1)},id:p.value,tabindex:-1,role:"listbox","aria-activedescendant":f.value,selectedKeys:[s.value],"aria-label":void 0!==k?k:"expanded dropdown"},{default:()=>[d.map((t=>{var n,r;const o=_&&!1!==t.closable&&!t.disabled;return(0,i.createVNode)(ue,{key:t.key,id:`${p.value}-${t.key}`,role:"option","aria-controls":u&&`${u}-panel-${t.key}`,disabled:t.disabled},{default:()=>[(0,i.createVNode)("span",null,["function"===typeof t.tab?t.tab():t.tab]),o&&(0,i.createVNode)("button",{type:"button","aria-label":e.removeAriaLabel||"remove",tabindex:0,class:`${A}-menu-item-remove`,onClick:e=>{e.stopPropagation(),g(e,t.key)}},[(null===(n=t.closeIcon)||void 0===n?void 0:n.call(t))||(null===(r=_.removeIcon)||void 0===r?void 0:r.call(_))||"×"])]})}))]}),default:()=>(0,i.createVNode)("button",{type:"button",class:`${l}-nav-more`,style:C,tabindex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":p.value,id:`${u}-more`,"aria-expanded":o.value,onKeydown:h},[y])});return(0,i.createVNode)("div",{class:(0,c.A)(`${l}-nav-operations`,n.class),style:n.style},[T,(0,i.createVNode)(_t,{prefixCls:l,locale:m,editable:_},null)])}}});const St=Symbol("tabsContextKey"),At=e=>{(0,i.provide)(St,e)},kt=()=>(0,i.inject)(St,{tabs:(0,i.ref)([]),prefixCls:(0,i.ref)()});(0,i.defineComponent)({compatConfig:{MODE:3},name:"TabsContextProvider",inheritAttrs:!1,props:{tabs:{type:Object,default:void 0},prefixCls:{type:String,default:void 0}},setup(e,t){let{slots:n}=t;return At((0,i.toRefs)(e)),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}});const Ct=.1,Mt=.01,Tt=20,Pt=Math.pow(.995,Tt);function It(e,t){const[n,r]=(0,xt.A)(),[o,a]=(0,xt.A)(0),[s,l]=(0,xt.A)(0),[u,c]=(0,xt.A)(),d=(0,i.ref)();function h(e){const{screenX:t,screenY:n}=e.touches[0];r({x:t,y:n}),clearInterval(d.value)}function p(e){if(!n.value)return;e.preventDefault();const{screenX:i,screenY:s}=e.touches[0],u=i-n.value.x,d=s-n.value.y;t(u,d),r({x:i,y:s});const h=Date.now();l(h-o.value),a(h),c({x:u,y:d})}function f(){if(!n.value)return;const e=u.value;if(r(null),c(null),e){const n=e.x/s.value,r=e.y/s.value,o=Math.abs(n),i=Math.abs(r);if(Math.max(o,i)<Ct)return;let a=n,l=r;d.value=setInterval((()=>{Math.abs(a)<Mt&&Math.abs(l)<Mt?clearInterval(d.value):(a*=Pt,l*=Pt,t(a*Tt,l*Tt))}),Tt)}}const g=(0,i.ref)();function m(e){const{deltaX:n,deltaY:r}=e;let o=0;const i=Math.abs(n),a=Math.abs(r);i===a?o="x"===g.value?n:r:i>a?(o=n,g.value="x"):(o=r,g.value="y"),t(-o,-o)&&e.preventDefault()}const v=(0,i.ref)({onTouchStart:h,onTouchMove:p,onTouchEnd:f,onWheel:m});function y(e){v.value.onTouchStart(e)}function b(e){v.value.onTouchMove(e)}function _(e){v.value.onTouchEnd(e)}function x(e){v.value.onWheel(e)}(0,i.onMounted)((()=>{var t,n;document.addEventListener("touchmove",b,{passive:!1}),document.addEventListener("touchend",_,{passive:!1}),null===(t=e.value)||void 0===t||t.addEventListener("touchstart",y,{passive:!1}),null===(n=e.value)||void 0===n||n.addEventListener("wheel",x,{passive:!1})})),(0,i.onBeforeUnmount)((()=>{document.removeEventListener("touchmove",b),document.removeEventListener("touchend",_)}))}function $t(e,t){const n=(0,i.ref)(e);function r(e){const r="function"===typeof e?e(n.value):e;r!==n.value&&t(r,n.value),n.value=r}return[n,r]}var Et=n(71555),Dt=n(92389);const Rt=()=>{const e=(0,i.ref)(new Map),t=t=>n=>{e.value.set(t,n)};return(0,i.onBeforeUpdate)((()=>{e.value=new Map})),[t,e]};var Nt=Rt,Lt=n(50422);const zt={width:0,height:0,left:0,top:0,right:0},Vt=()=>({id:{type:String},tabPosition:{type:String},activeKey:{type:[String,Number]},rtl:{type:Boolean},animated:(0,ae.ge)(),editable:(0,ae.ge)(),moreIcon:X.A.any,moreTransitionName:{type:String},mobile:{type:Boolean},tabBarGutter:{type:Number},renderTabBar:{type:Function},locale:(0,ae.ge)(),popupClassName:String,getPopupContainer:(0,ae.Fg)(),onTabClick:{type:Function},onTabScroll:{type:Function}}),Bt=(e,t)=>{const{offsetWidth:n,offsetHeight:r,offsetTop:o,offsetLeft:i}=e,{width:a,height:s,x:l,y:u}=e.getBoundingClientRect();return Math.abs(a-n)<1?[a,s,l-t.x,u-t.y]:[n,r,i,o]};var jt=(0,i.defineComponent)({compatConfig:{MODE:3},name:"TabNavList",inheritAttrs:!1,props:Vt(),slots:Object,emits:["tabClick","tabScroll"],setup(e,t){let{attrs:n,slots:s}=t;const{tabs:u,prefixCls:h}=kt(),f=(0,i.shallowRef)(),g=(0,i.shallowRef)(),m=(0,i.shallowRef)(),v=(0,i.shallowRef)(),[y,b]=Nt(),_=(0,i.computed)((()=>"top"===e.tabPosition||"bottom"===e.tabPosition)),[x,w]=$t(0,((t,n)=>{_.value&&e.onTabScroll&&e.onTabScroll({direction:t>n?"left":"right"})})),[O,S]=$t(0,((t,n)=>{!_.value&&e.onTabScroll&&e.onTabScroll({direction:t>n?"top":"bottom"})})),[A,k]=(0,xt.A)(0),[C,M]=(0,xt.A)(0),[T,P]=(0,xt.A)(null),[I,$]=(0,xt.A)(null),[E,D]=(0,xt.A)(0),[R,N]=(0,xt.A)(0),[L,z]=l(new Map),V=p(u,L),B=(0,i.computed)((()=>`${h.value}-nav-operations-hidden`)),j=(0,i.shallowRef)(0),Q=(0,i.shallowRef)(0);(0,i.watchEffect)((()=>{_.value?e.rtl?(j.value=0,Q.value=Math.max(0,A.value-T.value)):(j.value=Math.min(0,T.value-A.value),Q.value=0):(j.value=Math.min(0,I.value-C.value),Q.value=0)}));const F=e=>e<j.value?j.value:e>Q.value?Q.value:e,W=(0,i.shallowRef)(),[H,Z]=(0,xt.A)(),G=()=>{Z(Date.now())},X=()=>{clearTimeout(W.value)},U=(e,t)=>{e((e=>{const n=F(e+t);return n}))};It(f,((e,t)=>{if(_.value){if(T.value>=A.value)return!1;U(w,e)}else{if(I.value>=C.value)return!1;U(S,t)}return X(),G(),!0})),(0,i.watch)(H,(()=>{X(),H.value&&(W.value=setTimeout((()=>{Z(0)}),100))}));const Y=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.activeKey;const n=V.value.get(t)||{width:0,height:0,left:0,right:0,top:0};if(_.value){let t=x.value;e.rtl?n.right<x.value?t=n.right:n.right+n.width>x.value+T.value&&(t=n.right+n.width-T.value):n.left<-x.value?t=-n.left:n.left+n.width>-x.value+T.value&&(t=-(n.left+n.width-T.value)),S(0),w(F(t))}else{let e=O.value;n.top<-O.value?e=-n.top:n.top+n.height>-O.value+I.value&&(e=-(n.top+n.height-I.value)),w(0),S(F(e))}},q=(0,i.shallowRef)(0),K=(0,i.shallowRef)(0);(0,i.watchEffect)((()=>{let t,n,r,o,i,a;const s=V.value;["top","bottom"].includes(e.tabPosition)?(t="width",o=T.value,i=A.value,a=E.value,n=e.rtl?"right":"left",r=Math.abs(x.value)):(t="height",o=I.value,i=A.value,a=R.value,n="top",r=-O.value);let l=o;i+a>o&&i<o&&(l=o-a);const c=u.value;if(!c.length)return[q.value,K.value]=[0,0];const d=c.length;let h=d;for(let e=0;e<d;e+=1){const o=s.get(c[e].key)||zt;if(o[n]+o[t]>r+l){h=e-1;break}}let p=0;for(let e=d-1;e>=0;e-=1){const t=s.get(c[e].key)||zt;if(t[n]<r){p=e+1;break}}return[q.value,K.value]=[p,h]}));const J=()=>{z((()=>{var e;const t=new Map,n=null===(e=g.value)||void 0===e?void 0:e.getBoundingClientRect();return u.value.forEach((e=>{let{key:r}=e;const o=b.value.get(r),i=(null===o||void 0===o?void 0:o.$el)||o;if(i){const[e,o,a,s]=Bt(i,n);t.set(r,{width:e,height:o,left:a,top:s})}})),t}))};(0,i.watch)((()=>u.value.map((e=>e.key)).join("%%")),(()=>{J()}),{flush:"post"});const ee=()=>{var e,t,n,r,o;const i=(null===(e=f.value)||void 0===e?void 0:e.offsetWidth)||0,a=(null===(t=f.value)||void 0===t?void 0:t.offsetHeight)||0,s=(null===(n=v.value)||void 0===n?void 0:n.$el)||{},l=s.offsetWidth||0,u=s.offsetHeight||0;P(i),$(a),D(l),N(u);const c=((null===(r=g.value)||void 0===r?void 0:r.offsetWidth)||0)-l,d=((null===(o=g.value)||void 0===o?void 0:o.offsetHeight)||0)-u;k(c),M(d),J()},te=(0,i.computed)((()=>[...u.value.slice(0,q.value),...u.value.slice(K.value+1)])),[ne,re]=(0,xt.A)(),oe=(0,i.computed)((()=>V.value.get(e.activeKey))),ie=(0,i.shallowRef)(),ae=()=>{a.A.cancel(ie.value)};(0,i.watch)([oe,_,()=>e.rtl],(()=>{const t={};oe.value&&(_.value?(e.rtl?t.right=(0,Dt.cl)(oe.value.right):t.left=(0,Dt.cl)(oe.value.left),t.width=(0,Dt.cl)(oe.value.width)):(t.top=(0,Dt.cl)(oe.value.top),t.height=(0,Dt.cl)(oe.value.height))),ae(),ie.value=(0,a.A)((()=>{re(t)}))})),(0,i.watch)([()=>e.activeKey,oe,V,_],(()=>{Y()}),{flush:"post"}),(0,i.watch)([()=>e.rtl,()=>e.tabBarGutter,()=>e.activeKey,()=>u.value],(()=>{ee()}),{flush:"post"});const se=e=>{let{position:t,prefixCls:n,extra:r}=e;if(!r)return null;const o=null===r||void 0===r?void 0:r({position:t});return o?(0,i.createVNode)("div",{class:`${n}-extra-content`},[o]):null};return(0,i.onBeforeUnmount)((()=>{X(),ae()})),()=>{const{id:t,animated:a,activeKey:l,rtl:p,editable:b,locale:w,tabPosition:S,tabBarGutter:k,onTabClick:M}=e,{class:P,style:$}=n,E=h.value,D=!!te.value.length,R=`${E}-nav-wrap`;let N,L,z,V;_.value?p?(L=x.value>0,N=x.value+T.value<A.value):(N=x.value<0,L=-x.value+T.value<A.value):(z=O.value<0,V=-O.value+I.value<C.value);const j={};"top"===S||"bottom"===S?j[p?"marginRight":"marginLeft"]="number"===typeof k?`${k}px`:k:j.marginTop="number"===typeof k?`${k}px`:k;const Q=u.value.map(((e,n)=>{const{key:r}=e;return(0,i.createVNode)(d,{id:t,prefixCls:E,key:r,tab:e,style:0===n?void 0:j,closable:e.closable,editable:b,active:r===l,removeAriaLabel:null===w||void 0===w?void 0:w.removeAriaLabel,ref:y(r),onClick:e=>{M(r,e)},onFocus:()=>{Y(r),G(),f.value&&(p||(f.value.scrollLeft=0),f.value.scrollTop=0)}},s)}));return(0,i.createVNode)("div",{role:"tablist",class:(0,c.A)(`${E}-nav`,P),style:$,onKeydown:()=>{G()}},[(0,i.createVNode)(se,{position:"left",prefixCls:E,extra:s.leftExtra},null),(0,i.createVNode)(Et.A,{onResize:ee},{default:()=>[(0,i.createVNode)("div",{class:(0,c.A)(R,{[`${R}-ping-left`]:N,[`${R}-ping-right`]:L,[`${R}-ping-top`]:z,[`${R}-ping-bottom`]:V}),ref:f},[(0,i.createVNode)(Et.A,{onResize:ee},{default:()=>[(0,i.createVNode)("div",{ref:g,class:`${E}-nav-list`,style:{transform:`translate(${x.value}px, ${O.value}px)`,transition:H.value?"none":void 0}},[Q,(0,i.createVNode)(_t,{ref:v,prefixCls:E,locale:w,editable:b,style:(0,o.A)((0,o.A)({},0===Q.length?void 0:j),{visibility:D?"hidden":null})},null),(0,i.createVNode)("div",{class:(0,c.A)(`${E}-ink-bar`,{[`${E}-ink-bar-animated`]:a.inkBar}),style:ne.value},null)])]})])]}),(0,i.createVNode)(Ot,(0,r.A)((0,r.A)({},e),{},{removeAriaLabel:null===w||void 0===w?void 0:w.removeAriaLabel,ref:m,prefixCls:E,tabs:te.value,class:!D&&B.value}),(0,Lt.A)(s,["moreIcon"])),(0,i.createVNode)(se,{position:"right",prefixCls:E,extra:s.rightExtra},null),(0,i.createVNode)(se,{position:"right",prefixCls:E,extra:s.tabBarExtraContent},null)])}}}),Qt=(0,i.defineComponent)({compatConfig:{MODE:3},name:"TabPanelList",inheritAttrs:!1,props:{activeKey:{type:[String,Number]},id:{type:String},rtl:{type:Boolean},animated:{type:Object,default:void 0},tabPosition:{type:String},destroyInactiveTabPane:{type:Boolean}},setup(e){const{tabs:t,prefixCls:n}=kt();return()=>{const{id:r,activeKey:o,animated:a,tabPosition:s,rtl:l,destroyInactiveTabPane:u}=e,c=a.tabPane,d=n.value,h=t.value.findIndex((e=>e.key===o));return(0,i.createVNode)("div",{class:`${d}-content-holder`},[(0,i.createVNode)("div",{class:[`${d}-content`,`${d}-content-${s}`,{[`${d}-content-animated`]:c}],style:h&&c?{[l?"marginRight":"marginLeft"]:`-${h}00%`}:null},[t.value.map((e=>(0,re.Ob)(e.node,{key:e.key,prefixCls:d,tabKey:e.key,id:r,animated:c,active:e.key===o,destroyInactiveTabPane:u})))])])}}}),Ft=n(47960),Wt=n(72510),Ht=n(68740),Zt=n(23273),Gt=n(78282),Xt=n(21244);const Ut=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[(0,je._j)(e,"slide-up"),(0,je._j)(e,"slide-down")]]};var Yt=Ut;const qt=e=>{const{componentCls:t,tabsCardHorizontalPadding:n,tabsCardHeadBackground:r,tabsCardGutter:o,colorSplit:i}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${e.lineWidth}px ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:e.colorPrimary,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:`${o}px`}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:`${o}px`}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadiusLG}px 0 0 ${e.borderRadiusLG}px`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},Kt=e=>{const{componentCls:t,tabsHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:(0,o.A)((0,o.A)({},(0,Ue.dF)(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${r}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":(0,o.A)((0,o.A)({},Ue.L9),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${e.paddingXXS}px ${e.paddingSM}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},Jt=e=>{const{componentCls:t,margin:n,colorSplit:r}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:`0 0 ${n}px 0`,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${e.lineWidth}px ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},\n right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,\n > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:`${n}px`,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:1.25*e.controlHeight,[`${t}-tab`]:{padding:`${e.paddingXS}px ${e.paddingLG}px`,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:`${e.margin}px 0 0 0`},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${e.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-e.lineWidth},borderRight:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},en=e=>{const{componentCls:t,padding:n}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXS}px 0`,fontSize:e.fontSize}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${n}px 0`,fontSize:e.fontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${1.5*e.paddingXXS}px ${n}px`}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${e.borderRadius}px ${e.borderRadius}px`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${e.borderRadius}px ${e.borderRadius}px 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadius}px ${e.borderRadius}px 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadius}px 0 0 ${e.borderRadius}px`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXS}px ${n}px ${1.5*e.paddingXXS}px`}}}}}},tn=e=>{const{componentCls:t,tabsActiveColor:n,tabsHoverColor:r,iconCls:i,tabsHorizontalGutter:a}=e,s=`${t}-tab`;return{[s]:{position:"relative",display:"inline-flex",alignItems:"center",padding:`${e.paddingSM}px 0`,fontSize:`${e.fontSize}px`,background:"transparent",border:0,outline:"none",cursor:"pointer","&-btn, &-remove":(0,o.A)({"&:focus:not(:focus-visible), &:active":{color:n}},(0,Ue.K8)(e)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-e.marginXXS},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${s}-active ${s}-btn`]:{color:e.colorPrimary,textShadow:e.tabsActiveTextShadow},[`&${s}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${s}-disabled ${s}-btn, &${s}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${s}-remove ${i}`]:{margin:0},[i]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${s} + ${s}`]:{margin:{_skip_check_:!0,value:`0 0 0 ${a}px`}}}},nn=e=>{const{componentCls:t,tabsHorizontalGutter:n,iconCls:r,tabsCardGutter:o}=e,i=`${t}-rtl`;return{[i]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:`0 0 0 ${n}px`},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${e.marginSM}px`}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${e.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${e.marginXXS}px`},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:`${o}px`},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},rn=e=>{const{componentCls:t,tabsCardHorizontalPadding:n,tabsCardHeight:r,tabsCardGutter:i,tabsHoverColor:a,tabsActiveColor:s,colorSplit:l}=e;return{[t]:(0,o.A)((0,o.A)((0,o.A)((0,o.A)({},(0,Ue.dF)(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:(0,o.A)({minWidth:`${r}px`,marginLeft:{_skip_check_:!0,value:`${i}px`},padding:`0 ${e.paddingXS}px`,background:"transparent",border:`${e.lineWidth}px ${e.lineType} ${l}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:a},"&:active, &:focus:not(:focus-visible)":{color:s}},(0,Ue.K8)(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.colorPrimary,pointerEvents:"none"}}),tn(e)),{[`${t}-content`]:{position:"relative",display:"flex",width:"100%",["&-animated"]:{transition:"margin 0.3s"}},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none",flex:"none",width:"100%"}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}};var on=(0,Fe.A)("Tabs",(e=>{const t=e.controlHeightLG,n=(0,We.h1)(e,{tabsHoverColor:e.colorPrimaryHover,tabsActiveColor:e.colorPrimaryActive,tabsCardHorizontalPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,tabsCardHeight:t,tabsCardGutter:e.marginXXS/2,tabsHorizontalGutter:32,tabsCardHeadBackground:e.colorFillAlter,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120});return[en(n),nn(n),Jt(n),Kt(n),qt(n),rn(n),Yt(n)]}),(e=>({zIndexPopup:e.zIndexPopupBase+50})));let an=0;const sn=()=>({prefixCls:{type:String},id:{type:String},popupClassName:String,getPopupContainer:(0,ae.Fg)(),activeKey:{type:[String,Number]},defaultActiveKey:{type:[String,Number]},direction:(0,ae.WO)(),animated:(0,ae.tK)([Boolean,Object]),renderTabBar:(0,ae.Fg)(),tabBarGutter:{type:Number},tabBarStyle:(0,ae.ge)(),tabPosition:(0,ae.WO)(),destroyInactiveTabPane:(0,ae.HE)(),hideAdd:Boolean,type:(0,ae.WO)(),size:(0,ae.WO)(),centered:Boolean,onEdit:(0,ae.Fg)(),onChange:(0,ae.Fg)(),onTabClick:(0,ae.Fg)(),onTabScroll:(0,ae.Fg)(),"onUpdate:activeKey":(0,ae.Fg)(),locale:(0,ae.ge)(),onPrevClick:(0,ae.Fg)(),onNextClick:(0,ae.Fg)(),tabBarExtraContent:X.A.any});function ln(e){return e.map((e=>{if((0,Z.zO)(e)){const t=(0,o.A)({},e.props||{});for(const[e,o]of Object.entries(t))delete t[e],t[(0,Dt.PT)(e)]=o;const n=e.children||{},r=void 0!==e.key?e.key:void 0,{tab:i=n.tab,disabled:a,forceRender:s,closable:l,animated:u,active:c,destroyInactiveTabPane:d}=t;return(0,o.A)((0,o.A)({key:r},t),{node:e,closeIcon:n.closeIcon,tab:i,disabled:""===a||a,forceRender:""===s||s,closable:""===l||l,animated:""===u||u,active:""===c||c,destroyInactiveTabPane:""===d||d})}return null})).filter((e=>e))}const un=(0,i.defineComponent)({compatConfig:{MODE:3},name:"InternalTabs",inheritAttrs:!1,props:(0,o.A)((0,o.A)({},(0,Ft.A)(sn(),{tabPosition:"top",animated:{inkBar:!0,tabPane:!1}})),{tabs:(0,ae.MY)()}),slots:Object,setup(e,t){let{attrs:n,slots:a}=t;(0,M.A)(!(void 0!==e.onPrevClick)&&!(void 0!==e.onNextClick),"Tabs","`onPrevClick / @prevClick` and `onNextClick / @nextClick` has been removed. Please use `onTabScroll / @tabScroll` instead."),(0,M.A)(!(void 0!==e.tabBarExtraContent),"Tabs","`tabBarExtraContent` prop has been removed. Please use `rightExtra` slot instead."),(0,M.A)(!(void 0!==a.tabBarExtraContent),"Tabs","`tabBarExtraContent` slot is deprecated. Please use `rightExtra` slot instead.");const{prefixCls:s,direction:l,size:u,rootPrefixCls:d,getPopupContainer:h}=(0,C.A)("tabs",e),[p,f]=on(s),g=(0,i.computed)((()=>"rtl"===l.value)),m=(0,i.computed)((()=>{const{animated:t,tabPosition:n}=e;return!1===t||["left","right"].includes(n)?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!0}:(0,o.A)({inkBar:!0,tabPane:!1},"object"===typeof t?t:{})})),[v,y]=(0,xt.A)(!1);(0,i.onMounted)((()=>{y((0,Wt.A)())}));const[b,_]=(0,Ht.A)((()=>{var t;return null===(t=e.tabs[0])||void 0===t?void 0:t.key}),{value:(0,i.computed)((()=>e.activeKey)),defaultValue:e.defaultActiveKey}),[x,w]=(0,xt.A)((()=>e.tabs.findIndex((e=>e.key===b.value))));(0,i.watchEffect)((()=>{var t;let n=e.tabs.findIndex((e=>e.key===b.value));-1===n&&(n=Math.max(0,Math.min(x.value,e.tabs.length-1)),_(null===(t=e.tabs[n])||void 0===t?void 0:t.key)),w(n)}));const[O,S]=(0,Ht.A)(null,{value:(0,i.computed)((()=>e.id))}),A=(0,i.computed)((()=>v.value&&!["left","right"].includes(e.tabPosition)?"top":e.tabPosition));(0,i.onMounted)((()=>{e.id||(S(`rc-tabs-${an}`),an+=1)}));const k=(t,n)=>{var r,o;null===(r=e.onTabClick)||void 0===r||r.call(e,t,n);const i=t!==b.value;_(t),i&&(null===(o=e.onChange)||void 0===o||o.call(e,t))};return At({tabs:(0,i.computed)((()=>e.tabs)),prefixCls:s}),()=>{const{id:t,type:l,tabBarGutter:y,tabBarStyle:_,locale:x,destroyInactiveTabPane:w,renderTabBar:S=a.renderTabBar,onTabScroll:C,hideAdd:M,centered:T}=e,P={id:O.value,activeKey:b.value,animated:m.value,tabPosition:A.value,rtl:g.value,mobile:v.value};let I,$;"editable-card"===l&&(I={onEdit:(t,n)=>{let{key:r,event:o}=n;var i;null===(i=e.onEdit)||void 0===i||i.call(e,"add"===t?o:r,t)},removeIcon:()=>(0,i.createVNode)(Zt.A,null,null),addIcon:a.addIcon?a.addIcon:()=>(0,i.createVNode)(Gt.A,null,null),showAdd:!0!==M});const E=(0,o.A)((0,o.A)({},P),{moreTransitionName:`${d.value}-slide-up`,editable:I,locale:x,tabBarGutter:y,onTabClick:k,onTabScroll:C,style:_,getPopupContainer:h.value,popupClassName:(0,c.A)(e.popupClassName,f.value)});$=S?S((0,o.A)((0,o.A)({},E),{DefaultTabBar:jt})):(0,i.createVNode)(jt,E,(0,Lt.A)(a,["moreIcon","leftExtra","rightExtra","tabBarExtraContent"]));const D=s.value;return p((0,i.createVNode)("div",(0,r.A)((0,r.A)({},n),{},{id:t,class:(0,c.A)(D,`${D}-${A.value}`,{[f.value]:!0,[`${D}-${u.value}`]:u.value,[`${D}-card`]:["card","editable-card"].includes(l),[`${D}-editable-card`]:"editable-card"===l,[`${D}-centered`]:T,[`${D}-mobile`]:v.value,[`${D}-editable`]:"editable-card"===l,[`${D}-rtl`]:g.value},n.class)}),[$,(0,i.createVNode)(Qt,(0,r.A)((0,r.A)({destroyInactiveTabPane:w},P),{},{animated:m.value}),null)]))}}});var cn=(0,i.defineComponent)({compatConfig:{MODE:3},name:"ATabs",inheritAttrs:!1,props:(0,Ft.A)(sn(),{tabPosition:"top",animated:{inkBar:!0,tabPane:!1}}),slots:Object,setup(e,t){let{attrs:n,slots:o,emit:a}=t;const s=e=>{a("update:activeKey",e),a("change",e)};return()=>{var t;const a=ln((0,Z.MI)(null===(t=o.default)||void 0===t?void 0:t.call(o)));return(0,i.createVNode)(un,(0,r.A)((0,r.A)((0,r.A)({},(0,Xt.A)(e,["onUpdate:activeKey"])),n),{},{onChange:s,tabs:a}),o)}}}),dn=cn,hn=n(3640);dn.TabPane=hn.A,dn.install=function(e){return e.component(dn.name,dn),e.component(hn.A.name,hn.A),e};var pn=dn},3640:function(e,t,n){"use strict";var r=n(9274),o=n(5530);const i=()=>({tab:o.A.any,disabled:{type:Boolean},forceRender:{type:Boolean},closable:{type:Boolean},animated:{type:Boolean},active:{type:Boolean},destroyInactiveTabPane:{type:Boolean},prefixCls:{type:String},tabKey:{type:[String,Number]},id:{type:String}});t.A=(0,r.defineComponent)({compatConfig:{MODE:3},name:"ATabPane",inheritAttrs:!1,__ANT_TAB_PANE:!0,props:i(),slots:Object,setup(e,t){let{attrs:n,slots:o}=t;const i=(0,r.ref)(e.forceRender);(0,r.watch)([()=>e.active,()=>e.destroyInactiveTabPane],(()=>{e.active?i.value=!0:e.destroyInactiveTabPane&&(i.value=!1)}),{immediate:!0});const a=(0,r.computed)((()=>e.active?{}:e.animated?{visibility:"hidden",height:0,overflowY:"hidden"}:{display:"none"}));return()=>{var t;const{prefixCls:s,forceRender:l,id:u,active:c,tabKey:d}=e;return(0,r.createVNode)("div",{id:u&&`${u}-panel-${d}`,role:"tabpanel",tabindex:c?0:-1,"aria-labelledby":u&&`${u}-tab-${d}`,"aria-hidden":!c,style:[a.value,n.style],class:[`${s}-tabpane`,c&&`${s}-tabpane-active`,n.class]},[(c||i.value||l)&&(null===(t=o.default)||void 0===t?void 0:t.call(o))])}}})},70213:function(e,t,n){"use strict";n.d(t,{n5:function(){return K},sb:function(){return X},rd:function(){return J}});var r=n(98657),o=n(40730),i=n(5141),a=n(13877),s=n(3165),l=n(33621),u=n(9274);const c={},d=!0,h=!1,p=d||h?"css":"css-dev-only-do-not-override",f=new Map;function g(e){f.set(e,(f.get(e)||0)+1)}function m(e,t){if("undefined"!==typeof document){const n=document.querySelectorAll(`style[${a.Oc}="${e}"]`);n.forEach((e=>{var n;e[a.oi]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}}const v=0;function y(e,t){f.set(e,(f.get(e)||0)-1);const n=Array.from(f.keys()),r=n.filter((e=>{const t=f.get(e)||0;return t<=0}));n.length-r.length>v&&r.forEach((e=>{m(e,t),f.delete(e)}))}const b=(e,t,n,o)=>{const i=n.getDerivativeToken(e);let a=(0,r.A)((0,r.A)({},i),t);return o&&(a=o(a)),a};function _(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(0,u.ref)({});const o=(0,a.K6)(),d=(0,u.computed)((()=>(0,r.A)({},...t.value))),h=(0,u.computed)((()=>(0,l.g2)(d.value))),f=(0,u.computed)((()=>(0,l.g2)(n.value.override||c))),m=(0,s.A)("token",(0,u.computed)((()=>[n.value.salt||"",e.value.id,h.value,f.value])),(()=>{const{salt:t="",override:r=c,formatToken:o,getComputedToken:a}=n.value,s=a?a(d.value,r,e.value):b(d.value,r,e.value,o),u=(0,l.zw)(s,t);s._tokenKey=u,g(u);const h=`${p}-${(0,i.A)(u)}`;return s._hashId=h,[s,h]}),(e=>{var t;y(e[0]._tokenKey,null===(t=o.value)||void 0===t?void 0:t.cache.instanceId)}));return m}var x="4.2.3",w=x,O=n(30185);const S=e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}};var A=S;function k(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}var C=n(34643),M=n(78089);function T(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:o}=t;const{colorSuccess:i,colorWarning:a,colorError:s,colorInfo:l,colorPrimary:u,colorBgBase:c,colorTextBase:d}=e,h=n(u),p=n(i),f=n(a),g=n(s),m=n(l),v=o(c,d);return(0,r.A)((0,r.A)({},v),{colorPrimaryBg:h[1],colorPrimaryBgHover:h[2],colorPrimaryBorder:h[3],colorPrimaryBorderHover:h[4],colorPrimaryHover:h[5],colorPrimary:h[6],colorPrimaryActive:h[7],colorPrimaryTextHover:h[8],colorPrimaryText:h[9],colorPrimaryTextActive:h[10],colorSuccessBg:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[10],colorErrorBg:g[1],colorErrorBgHover:g[2],colorErrorBorder:g[3],colorErrorBorderHover:g[4],colorErrorHover:g[5],colorError:g[6],colorErrorActive:g[7],colorErrorTextHover:g[8],colorErrorText:g[9],colorErrorTextActive:g[10],colorWarningBg:f[1],colorWarningBgHover:f[2],colorWarningBorder:f[3],colorWarningBorderHover:f[4],colorWarningHover:f[4],colorWarning:f[6],colorWarningActive:f[7],colorWarningTextHover:f[8],colorWarningText:f[9],colorWarningTextActive:f[10],colorInfoBg:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorBgMask:new M.q("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const P=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e>16?16:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};var I=P;function $(e){const{motionUnit:t,motionBase:n,borderRadius:o,lineWidth:i}=e;return(0,r.A)({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:i+1},I(o))}const E=(e,t)=>new M.q(e).setAlpha(t).toRgbString(),D=(e,t)=>{const n=new M.q(e);return n.darken(t).toHexString()},R=e=>{const t=(0,O.cM)(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},N=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:E(r,.88),colorTextSecondary:E(r,.65),colorTextTertiary:E(r,.45),colorTextQuaternary:E(r,.25),colorFill:E(r,.15),colorFillSecondary:E(r,.06),colorFillTertiary:E(r,.04),colorFillQuaternary:E(r,.02),colorBgLayout:D(n,4),colorBgContainer:D(n,0),colorBgElevated:D(n,0),colorBgSpotlight:E(r,.85),colorBorder:D(n,15),colorBorderSecondary:D(n,6)}};function L(e){const t=new Array(10).fill(null).map(((t,n)=>{const r=n-1,o=e*Math.pow(2.71828,r/5),i=n>1?Math.floor(o):Math.ceil(o);return 2*Math.floor(i/2)}));return t[1]=e,t.map((e=>{const t=e+8;return{size:e,lineHeight:t/e}}))}const z=e=>{const t=L(e),n=t.map((e=>e.size)),r=t.map((e=>e.lineHeight));return{fontSizeSM:n[0],fontSize:n[1],fontSizeLG:n[2],fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:r[1],lineHeightLG:r[2],lineHeightSM:r[0],lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};var V=z;function B(e){const t=Object.keys(C.r).map((t=>{const n=(0,O.cM)(e[t]);return new Array(10).fill(1).reduce(((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e)),{})})).reduce(((e,t)=>(e=(0,r.A)((0,r.A)({},e),t),e)),{});return(0,r.A)((0,r.A)((0,r.A)((0,r.A)((0,r.A)((0,r.A)((0,r.A)({},e),t),T(e,{generateColorPalettes:R,generateNeutralColorPalettes:N})),V(e.fontSize)),k(e)),A(e)),$(e))}function j(e){return e>=0&&e<=255}function Q(e,t){const{r:n,g:r,b:o,a:i}=new M.q(e).toRgb();if(i<1)return e;const{r:a,g:s,b:l}=new M.q(t).toRgb();for(let u=.01;u<=1;u+=.01){const e=Math.round((n-a*(1-u))/u),t=Math.round((r-s*(1-u))/u),i=Math.round((o-l*(1-u))/u);if(j(e)&&j(t)&&j(i))return new M.q({r:e,g:t,b:i,a:Math.round(100*u)/100}).toRgbString()}return new M.q({r:n,g:r,b:o,a:1}).toRgbString()}var F=Q,W=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function H(e){const{override:t}=e,n=W(e,["override"]),o=(0,r.A)({},t);Object.keys(C.A).forEach((e=>{delete o[e]}));const i=(0,r.A)((0,r.A)({},n),o),a=480,s=576,l=768,u=992,c=1200,d=1600,h=2e3,p=(0,r.A)((0,r.A)((0,r.A)({},i),{colorLink:i.colorInfoText,colorLinkHover:i.colorInfoHover,colorLinkActive:i.colorInfoActive,colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:F(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:F(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:F(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidth:i.lineWidth,controlOutlineWidth:2*i.lineWidth,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:F(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",screenXS:a,screenXSMin:a,screenXSMax:s-1,screenSM:s,screenSMMin:s,screenSMMax:l-1,screenMD:l,screenMDMin:l,screenMDMax:u-1,screenLG:u,screenLGMin:u,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:d-1,screenXXL:d,screenXXLMin:d,screenXXLMax:h-1,screenXXXL:h,screenXXXLMin:h,boxShadowPopoverArrow:"3px 3px 7px rgba(0, 0, 0, 0.1)",boxShadowCard:`\n 0 1px 2px -2px ${new M.q("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new M.q("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new M.q("rgba(0, 0, 0, 0.09)").toRgbString()}\n `,boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),o);return p}var Z=n(66041);const G=(0,o.A)(B),X={token:C.A,hashed:!0},U=Symbol("DesignTokenContext"),Y=(0,u.shallowRef)(),q=e=>{(0,u.provide)(U,e),(0,u.watch)(e,(()=>{Y.value=(0,u.unref)(e),(0,u.triggerRef)(Y)}),{immediate:!0,deep:!0})},K=(0,u.defineComponent)({props:{value:(0,Z.ge)()},setup(e,t){let{slots:n}=t;return q((0,u.computed)((()=>e.value))),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}});function J(){const e=(0,u.inject)(U,(0,u.computed)((()=>Y.value||X))),t=(0,u.computed)((()=>`${w}-${e.value.hashed||""}`)),n=(0,u.computed)((()=>e.value.theme||G)),o=_(n,(0,u.computed)((()=>[C.A,e.value.token])),(0,u.computed)((()=>({salt:t.value,override:(0,r.A)({override:e.value.token},e.value.components),formatToken:H}))));return[n,(0,u.computed)((()=>o.value[0])),(0,u.computed)((()=>e.value.hashed?o.value[1]:""))]}},34643:function(e,t,n){"use strict";n.d(t,{r:function(){return o}});var r=n(98657);const o={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},i=(0,r.A)((0,r.A)({},o),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'Noto Color Emoji'",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1});t.A=i},94471:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var r=n(98657),o=n(13234),i=n(69729),a=n(70213),s=n(96704),l=n(9274),u=n(90551);function c(e,t,n){return c=>{const d=(0,l.computed)((()=>null===c||void 0===c?void 0:c.value)),[h,p,f]=(0,a.rd)(),{getPrefixCls:g,iconPrefixCls:m}=(0,u.OQ)(),v=(0,l.computed)((()=>g())),y=(0,l.computed)((()=>({theme:h.value,token:p.value,hashId:f.value,path:["Shared",v.value]})));(0,o.Ay)(y,(()=>[{"&":(0,i.av)(p.value)}]));const b=(0,l.computed)((()=>({theme:h.value,token:p.value,hashId:f.value,path:[e,d.value,m.value]})));return[(0,o.Ay)(b,(()=>{const{token:o,flush:a}=(0,s.Ay)(p.value),l="function"===typeof n?n(o):n,u=(0,r.A)((0,r.A)({},l),p.value[e]),c=`.${d.value}`,h=(0,s.h1)(o,{componentCls:c,prefixCls:d.value,iconCls:`.${m.value}`,antCls:`.${v.value}`},u),g=t(h,{hashId:f.value,prefixCls:d.value,rootPrefixCls:v.value,iconPrefixCls:m.value,overrideComponentToken:p.value[e]});return a(e,u),[(0,i.vj)(p.value,d.value),g]})),f]}}},96704:function(e,t,n){"use strict";n.d(t,{Ay:function(){return u},h1:function(){return a}});n(85194),n(27092),n(68925),n(31796),n(21467),n(22064),n(92114);var r=n(98657);const o="undefined"!==typeof CSSINJS_STATISTIC;let i=!0;function a(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!o)return(0,r.A)({},...t);i=!1;const a={};return t.forEach((e=>{const t=Object.keys(e);t.forEach((t=>{Object.defineProperty(a,t,{configurable:!0,enumerable:!0,get:()=>e[t]})}))})),i=!0,a}const s={};function l(){}function u(e){let t,n=e,r=l;return o&&(t=new Set,n=new Proxy(e,{get(e,n){return i&&t.add(n),e[n]}}),r=(e,n)=>{s[e]={global:Array.from(t),component:n}}),{token:n,keys:t,flush:r}}},32988:function(e,t,n){"use strict";n.d(t,{Ay:function(){return U},yV:function(){return X}});var r=n(98657),o=n(9274),i=n(5530),a=n(15928);const s={adjustX:1,adjustY:1},l=[0,0],u={left:{points:["cr","cl"],overflow:s,offset:[-4,0],targetOffset:l},right:{points:["cl","cr"],overflow:s,offset:[4,0],targetOffset:l},top:{points:["bc","tc"],overflow:s,offset:[0,-4],targetOffset:l},bottom:{points:["tc","bc"],overflow:s,offset:[0,4],targetOffset:l},topLeft:{points:["bl","tl"],overflow:s,offset:[0,-4],targetOffset:l},leftTop:{points:["tr","tl"],overflow:s,offset:[-4,0],targetOffset:l},topRight:{points:["br","tr"],overflow:s,offset:[0,-4],targetOffset:l},rightTop:{points:["tl","tr"],overflow:s,offset:[4,0],targetOffset:l},bottomRight:{points:["tr","br"],overflow:s,offset:[0,4],targetOffset:l},rightBottom:{points:["bl","br"],overflow:s,offset:[4,0],targetOffset:l},bottomLeft:{points:["tl","bl"],overflow:s,offset:[0,4],targetOffset:l},leftBottom:{points:["br","bl"],overflow:s,offset:[-4,0],targetOffset:l}};const c={prefixCls:String,id:String,overlayInnerStyle:i.A.any};var d=(0,o.defineComponent)({compatConfig:{MODE:3},name:"TooltipContent",props:c,setup(e,t){let{slots:n}=t;return()=>{var t;return(0,o.createVNode)("div",{class:`${e.prefixCls}-inner`,id:e.id,role:"tooltip",style:e.overlayInnerStyle},[null===(t=n.overlay)||void 0===t?void 0:t.call(n)])}}}),h=n(16155),p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function f(){}var g=(0,o.defineComponent)({compatConfig:{MODE:3},name:"Tooltip",inheritAttrs:!1,props:{trigger:i.A.any.def(["hover"]),defaultVisible:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},placement:i.A.string.def("right"),transitionName:String,animation:i.A.any,afterVisibleChange:i.A.func.def((()=>{})),overlayStyle:{type:Object,default:void 0},overlayClassName:String,prefixCls:i.A.string.def("rc-tooltip"),mouseEnterDelay:i.A.number.def(.1),mouseLeaveDelay:i.A.number.def(.1),getPopupContainer:Function,destroyTooltipOnHide:{type:Boolean,default:!1},align:i.A.object.def((()=>({}))),arrowContent:i.A.any.def(null),tipId:String,builtinPlacements:i.A.object,overlayInnerStyle:{type:Object,default:void 0},popupVisible:{type:Boolean,default:void 0},onVisibleChange:Function,onPopupAlign:Function,arrow:{type:Boolean,default:!0}},setup(e,t){let{slots:n,attrs:i,expose:s}=t;const l=(0,o.shallowRef)(),c=()=>{const{prefixCls:t,tipId:r,overlayInnerStyle:i}=e;return[e.arrow?(0,o.createVNode)("div",{class:`${t}-arrow`,key:"arrow"},[(0,h.rU)(n,e,"arrowContent")]):null,(0,o.createVNode)(d,{key:"content",prefixCls:t,id:r,overlayInnerStyle:i},{overlay:n.overlay})]},g=()=>l.value.getPopupDomNode();s({getPopupDomNode:g,triggerDOM:l,forcePopupAlign:()=>{var e;return null===(e=l.value)||void 0===e?void 0:e.forcePopupAlign()}});const m=(0,o.shallowRef)(!1),v=(0,o.shallowRef)(!1);return(0,o.watchEffect)((()=>{const{destroyTooltipOnHide:t}=e;if("boolean"===typeof t)m.value=t;else if(t&&"object"===typeof t){const{keepParent:e}=t;m.value=!0===e,v.value=!1===e}})),()=>{const{overlayClassName:t,trigger:s,mouseEnterDelay:d,mouseLeaveDelay:h,overlayStyle:g,prefixCls:y,afterVisibleChange:b,transitionName:_,animation:x,placement:w,align:O,destroyTooltipOnHide:S,defaultVisible:A}=e,k=p(e,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible"]),C=(0,r.A)({},k);void 0!==e.visible&&(C.popupVisible=e.visible);const M=(0,r.A)((0,r.A)((0,r.A)({popupClassName:t,prefixCls:y,action:s,builtinPlacements:u,popupPlacement:w,popupAlign:O,afterPopupVisibleChange:b,popupTransitionName:_,popupAnimation:x,defaultPopupVisible:A,destroyPopupOnHide:m.value,autoDestroy:v.value,mouseLeaveDelay:h,popupStyle:g,mouseEnterDelay:d},C),i),{onPopupVisibleChange:e.onVisibleChange||f,onPopupAlign:e.onPopupAlign||f,ref:l,arrow:!!e.arrow,popup:c()});return(0,o.createVNode)(a.A,M,{default:n.default})}}}),m=g,v=n(13389),y=n(47960),b=n(87051),_=n(66041),x=()=>({trigger:[String,Array],open:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},placement:String,color:String,transitionName:String,overlayStyle:(0,_.ge)(),overlayInnerStyle:(0,_.ge)(),overlayClassName:String,openClassName:String,prefixCls:String,mouseEnterDelay:Number,mouseLeaveDelay:Number,getPopupContainer:Function,arrowPointAtCenter:{type:Boolean,default:void 0},arrow:{type:[Boolean,Object],default:!0},autoAdjustOverflow:{type:[Boolean,Object],default:void 0},destroyTooltipOnHide:{type:Boolean,default:void 0},align:(0,_.ge)(),builtinPlacements:(0,_.ge)(),children:Array,onVisibleChange:Function,"onUpdate:visible":Function,onOpenChange:Function,"onUpdate:open":Function}),w=n(3551);const O={adjustX:1,adjustY:1},S={adjustX:0,adjustY:0},A=[0,0];function k(e){return"boolean"===typeof e?e?O:S:(0,r.A)((0,r.A)({},S),e)}function C(e){const{arrowWidth:t=4,horizontalArrowShift:n=16,verticalArrowShift:o=8,autoAdjustOverflow:i,arrowPointAtCenter:a}=e,s={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(n+t),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(o+t)]},topRight:{points:["br","tc"],offset:[n+t,-4]},rightTop:{points:["tl","cr"],offset:[4,-(o+t)]},bottomRight:{points:["tr","bc"],offset:[n+t,4]},rightBottom:{points:["bl","cr"],offset:[4,o+t]},bottomLeft:{points:["tl","bc"],offset:[-(n+t),4]},leftBottom:{points:["br","cl"],offset:[-4,o+t]}};return Object.keys(s).forEach((e=>{s[e]=a?(0,r.A)((0,r.A)({},s[e]),{overflow:k(i),targetOffset:A}):(0,r.A)((0,r.A)({},u[e]),{overflow:k(i)}),s[e].ignoreShake=!0})),s}var M=n(32480),T=n(38624);const P=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],I=P.map((e=>`${e}-inverse`));function $(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t?[...I,...P].includes(e):P.includes(e)}function E(e,t){const n=$(t),r=(0,v.A)({[`${e}-${t}`]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}var D=n(41781),R=n(96704),N=n(94471),L=n(69729);function z(e,t){return P.reduce(((n,o)=>{const i=e[`${o}-1`],a=e[`${o}-3`],s=e[`${o}-6`],l=e[`${o}-7`];return(0,r.A)((0,r.A)({},n),t(o,{lightColor:i,lightBorderColor:a,darkColor:s,textColor:l}))}),{})}const V=(e,t,n,r,o)=>{const i=e/2,a=0,s=i,l=1*n/Math.sqrt(2),u=i-n*(1-1/Math.sqrt(2)),c=i-t*(1/Math.sqrt(2)),d=n*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),h=2*i-c,p=d,f=2*i-l,g=u,m=2*i-a,v=s,y=i*Math.sqrt(2)+n*(Math.sqrt(2)-2),b=n*(Math.sqrt(2)-1);return{pointerEvents:"none",width:e,height:e,overflow:"hidden","&::after":{content:'""',position:"absolute",width:y,height:y,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${t}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:o,zIndex:0,background:"transparent"},"&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:e,height:e/2,background:r,clipPath:{_multi_value_:!0,value:[`polygon(${b}px 100%, 50% ${b}px, ${2*i-b}px 100%, ${b}px 100%)`,`path('M ${a} ${s} A ${n} ${n} 0 0 0 ${l} ${u} L ${c} ${d} A ${t} ${t} 0 0 1 ${h} ${p} L ${f} ${g} A ${n} ${n} 0 0 0 ${m} ${v} Z')`]},content:'""'}}};function B(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.map((e=>`${t}${e}`)).join(",")}const j=8;function Q(e){const t=j,{sizePopupArrow:n,contentRadius:r,borderRadiusOuter:o,limitVerticalRadius:i}=e,a=n/2-Math.ceil(o*(Math.sqrt(2)-1)),s=(r>12?r+2:12)-a,l=i?t-a:s;return{dropdownArrowOffset:s,dropdownArrowOffsetVertical:l}}function F(e,t){const{componentCls:n,sizePopupArrow:o,marginXXS:i,borderRadiusXS:a,borderRadiusOuter:s,boxShadowPopoverArrow:l}=e,{colorBg:u,showArrowCls:c,contentRadius:d=e.borderRadiusLG,limitVerticalRadius:h}=t,{dropdownArrowOffsetVertical:p,dropdownArrowOffset:f}=Q({sizePopupArrow:o,contentRadius:d,borderRadiusOuter:s,limitVerticalRadius:h}),g=o/2+i;return{[n]:{[`${n}-arrow`]:[(0,r.A)((0,r.A)({position:"absolute",zIndex:1,display:"block"},V(o,a,s,u,l)),{"&:before":{background:u}})],[[`&-placement-top ${n}-arrow`,`&-placement-topLeft ${n}-arrow`,`&-placement-topRight ${n}-arrow`].join(",")]:{bottom:0,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:f}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:f}},[[`&-placement-bottom ${n}-arrow`,`&-placement-bottomLeft ${n}-arrow`,`&-placement-bottomRight ${n}-arrow`].join(",")]:{top:0,transform:"translateY(-100%)"},[`&-placement-bottom ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:f}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:f}},[[`&-placement-left ${n}-arrow`,`&-placement-leftTop ${n}-arrow`,`&-placement-leftBottom ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:0},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${n}-arrow`]:{top:p},[`&-placement-leftBottom ${n}-arrow`]:{bottom:p},[[`&-placement-right ${n}-arrow`,`&-placement-rightTop ${n}-arrow`,`&-placement-rightBottom ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:0},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${n}-arrow`]:{top:p},[`&-placement-rightBottom ${n}-arrow`]:{bottom:p},[B(["&-placement-topLeft","&-placement-top","&-placement-topRight"].map((e=>e+":not(&-arrow-hidden)")),c)]:{paddingBottom:g},[B(["&-placement-bottomLeft","&-placement-bottom","&-placement-bottomRight"].map((e=>e+":not(&-arrow-hidden)")),c)]:{paddingTop:g},[B(["&-placement-leftTop","&-placement-left","&-placement-leftBottom"].map((e=>e+":not(&-arrow-hidden)")),c)]:{paddingRight:{_skip_check_:!0,value:g}},[B(["&-placement-rightTop","&-placement-right","&-placement-rightBottom"].map((e=>e+":not(&-arrow-hidden)")),c)]:{paddingLeft:{_skip_check_:!0,value:g}}}}}const W=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:o,tooltipBg:i,tooltipBorderRadius:a,zIndexPopup:s,controlHeight:l,boxShadowSecondary:u,paddingSM:c,paddingXS:d,tooltipRadiusOuter:h}=e;return[{[t]:(0,r.A)((0,r.A)((0,r.A)((0,r.A)({},(0,L.dF)(e)),{position:"absolute",zIndex:s,display:"block","&":[{width:"max-content"},{width:"intrinsic"}],maxWidth:n,visibility:"visible","&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${t}-inner`]:{minWidth:l,minHeight:l,padding:`${c/2}px ${d}px`,color:o,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:a,boxShadow:u},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(a,j)}},[`${t}-content`]:{position:"relative"}}),z(e,((e,n)=>{let{darkColor:r}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{"--antd-arrow-background-color":r}}}}))),{"&-rtl":{direction:"rtl"}})},F((0,R.h1)(e,{borderRadiusOuter:h}),{colorBg:"var(--antd-arrow-background-color)",showArrowCls:"",contentRadius:a,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none"}}]};var H=(e,t)=>{const n=(0,N.A)("Tooltip",(e=>{if(!1===(null===t||void 0===t?void 0:t.value))return[];const{borderRadius:n,colorTextLightSolid:r,colorBgDefault:o,borderRadiusOuter:i}=e,a=(0,R.h1)(e,{tooltipMaxWidth:250,tooltipColor:r,tooltipBorderRadius:n,tooltipBg:o,tooltipRadiusOuter:i>4?4:i});return[W(a),(0,D.aB)(e,"zoom-big-fast")]}),(e=>{let{zIndexPopupBase:t,colorBgSpotlight:n}=e;return{zIndexPopup:t+70,colorBgDefault:n}}));return n(e)},Z=n(41038);const G=(e,t)=>{const n={},o=(0,r.A)({},e);return t.forEach((t=>{e&&t in e&&(n[t]=e[t],delete o[t])})),{picked:n,omitted:o}},X=()=>(0,r.A)((0,r.A)({},x()),{title:i.A.any});var U=(0,o.defineComponent)({compatConfig:{MODE:3},name:"ATooltip",inheritAttrs:!1,props:(0,y.A)(X(),{trigger:"hover",align:{},placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0}),slots:Object,setup(e,t){let{slots:n,emit:i,attrs:a,expose:s}=t;const{prefixCls:l,getPopupContainer:u,direction:c,rootPrefixCls:d}=(0,w.A)("tooltip",e),p=(0,o.computed)((()=>{var t;return null!==(t=e.open)&&void 0!==t?t:e.visible})),f=(0,o.ref)((0,M.A)([e.open,e.visible])),g=(0,o.ref)();let y;(0,o.watch)(p,(e=>{T.A.cancel(y),y=(0,T.A)((()=>{f.value=!!e}))}));const _=()=>{var t;const r=null!==(t=e.title)&&void 0!==t?t:n.title;return!r&&0!==r},x=e=>{const t=_();void 0===p.value&&(f.value=!t&&e),t||(i("update:visible",e),i("visibleChange",e),i("update:open",e),i("openChange",e))},O=()=>g.value.getPopupDomNode();s({getPopupDomNode:O,open:f,forcePopupAlign:()=>{var e;return null===(e=g.value)||void 0===e?void 0:e.forcePopupAlign()}});const S=(0,o.computed)((()=>{var t;const{builtinPlacements:n,autoAdjustOverflow:r,arrow:o,arrowPointAtCenter:i}=e;let a=i;return"object"===typeof o&&(a=null!==(t=o.pointAtCenter)&&void 0!==t?t:i),n||C({arrowPointAtCenter:a,autoAdjustOverflow:r})})),A=e=>e||""===e,k=e=>{const t=e.type;if("object"===typeof t&&e.props&&((!0===t.__ANT_BUTTON||"button"===t)&&A(e.props.disabled)||!0===t.__ANT_SWITCH&&(A(e.props.disabled)||A(e.props.loading))||!0===t.__ANT_RADIO&&A(e.props.disabled))){const{picked:t,omitted:n}=G((0,h.gd)(e),["position","left","right","top","bottom","float","display","zIndex"]),i=(0,r.A)((0,r.A)({display:"inline-block"},t),{cursor:"not-allowed",lineHeight:1,width:e.props&&e.props.block?"100%":void 0}),a=(0,r.A)((0,r.A)({},n),{pointerEvents:"none"}),s=(0,b.Ob)(e,{style:a},!0);return(0,o.createVNode)("span",{style:i,class:`${l.value}-disabled-compatible-wrapper`},[s])}return e},P=()=>{var t,r;return null!==(t=e.title)&&void 0!==t?t:null===(r=n.title)||void 0===r?void 0:r.call(n)},I=(e,t)=>{const n=S.value,r=Object.keys(n).find((e=>{var r,o;return n[e].points[0]===(null===(r=t.points)||void 0===r?void 0:r[0])&&n[e].points[1]===(null===(o=t.points)||void 0===o?void 0:o[1])}));if(r){const n=e.getBoundingClientRect(),o={top:"50%",left:"50%"};r.indexOf("top")>=0||r.indexOf("Bottom")>=0?o.top=n.height-t.offset[1]+"px":(r.indexOf("Top")>=0||r.indexOf("bottom")>=0)&&(o.top=-t.offset[1]+"px"),r.indexOf("left")>=0||r.indexOf("Right")>=0?o.left=n.width-t.offset[0]+"px":(r.indexOf("right")>=0||r.indexOf("Left")>=0)&&(o.left=-t.offset[0]+"px"),e.style.transformOrigin=`${o.left} ${o.top}`}},$=(0,o.computed)((()=>E(l.value,e.color))),D=(0,o.computed)((()=>a["data-popover-inject"])),[R,N]=H(l,(0,o.computed)((()=>!D.value)));return()=>{var t,i;const{openClassName:s,overlayClassName:y,overlayStyle:w,overlayInnerStyle:O}=e;let A=null!==(i=(0,h.Gk)(null===(t=n.default)||void 0===t?void 0:t.call(n)))&&void 0!==i?i:null;A=1===A.length?A[0]:A;let C=f.value;if(void 0===p.value&&_()&&(C=!1),!A)return null;const M=k((0,h.zO)(A)&&!(0,h.zv)(A)?A:(0,o.createVNode)("span",null,[A])),T=(0,v.A)({[s||`${l.value}-open`]:!0,[M.props&&M.props.class]:M.props&&M.props.class}),E=(0,v.A)(y,{[`${l.value}-rtl`]:"rtl"===c.value},$.value.className,N.value),D=(0,r.A)((0,r.A)({},$.value.overlayStyle),O),L=$.value.arrowStyle,z=(0,r.A)((0,r.A)((0,r.A)({},a),e),{prefixCls:l.value,arrow:!!e.arrow,getPopupContainer:null===u||void 0===u?void 0:u.value,builtinPlacements:S.value,visible:C,ref:g,overlayClassName:E,overlayStyle:(0,r.A)((0,r.A)({},L),w),overlayInnerStyle:D,onVisibleChange:x,onPopupAlign:I,transitionName:(0,Z.by)(d.value,"zoom-big-fast",e.transitionName)});return R((0,o.createVNode)(m,z,{default:()=>[f.value?(0,b.Ob)(M,{class:T}):M],arrowContent:()=>(0,o.createVNode)("span",{class:`${l.value}-arrow-content`},null),overlay:P}))}}})},9139:function(e,t,n){"use strict";var r=n(66041),o=n(32988);t.A=(0,r.GU)(o.Ay)},44942:function(e,t,n){"use strict";var r=n(69751),o=n(98657),i=n(9274),a=n(13389),s=n(5530),l=n(47960),u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const c={prefixCls:String,name:String,id:String,type:String,defaultChecked:{type:[Boolean,Number],default:void 0},checked:{type:[Boolean,Number],default:void 0},disabled:Boolean,tabindex:{type:[Number,String]},readonly:Boolean,autofocus:Boolean,value:s.A.any,required:Boolean};t.A=(0,i.defineComponent)({compatConfig:{MODE:3},name:"Checkbox",inheritAttrs:!1,props:(0,l.A)(c,{prefixCls:"rc-checkbox",type:"checkbox",defaultChecked:!1}),emits:["click","change"],setup(e,t){let{attrs:n,emit:s,expose:l}=t;const c=(0,i.ref)(void 0===e.checked?e.defaultChecked:e.checked),d=(0,i.ref)();(0,i.watch)((()=>e.checked),(()=>{c.value=e.checked})),l({focus(){var e;null===(e=d.value)||void 0===e||e.focus()},blur(){var e;null===(e=d.value)||void 0===e||e.blur()}});const h=(0,i.ref)(),p=t=>{if(e.disabled)return;void 0===e.checked&&(c.value=t.target.checked),t.shiftKey=h.value;const n={target:(0,o.A)((0,o.A)({},e),{checked:t.target.checked}),stopPropagation(){t.stopPropagation()},preventDefault(){t.preventDefault()},nativeEvent:t};void 0!==e.checked&&(d.value.checked=!!e.checked),s("change",n),h.value=!1},f=e=>{s("click",e),h.value=e.shiftKey};return()=>{const{prefixCls:t,name:s,id:l,type:h,disabled:g,readonly:m,tabindex:v,autofocus:y,value:b,required:_}=e,x=u(e,["prefixCls","name","id","type","disabled","readonly","tabindex","autofocus","value","required"]),{class:w,onFocus:O,onBlur:S,onKeydown:A,onKeypress:k,onKeyup:C}=n,M=(0,o.A)((0,o.A)({},x),n),T=Object.keys(M).reduce(((e,t)=>((t.startsWith("data-")||t.startsWith("aria-")||"role"===t)&&(e[t]=M[t]),e)),{}),P=(0,a.A)(t,w,{[`${t}-checked`]:c.value,[`${t}-disabled`]:g}),I=(0,o.A)((0,o.A)({name:s,id:l,type:h,readonly:m,disabled:g,tabindex:v,class:`${t}-input`,checked:!!c.value,autofocus:y,value:b},T),{onChange:p,onClick:f,onFocus:O,onBlur:S,onKeydown:A,onKeypress:k,onKeyup:C,required:_});return(0,i.createVNode)("span",{class:P},[(0,i.createVNode)("input",(0,r.A)({ref:d},I),null),(0,i.createVNode)("span",{class:`${t}-inner`},null)])}}})},94379:function(e,t,n){"use strict";n.d(t,{j:function(){return o}});var r=n(5530);function o(){return{keyboard:{type:Boolean,default:void 0},mask:{type:Boolean,default:void 0},afterClose:Function,closable:{type:Boolean,default:void 0},maskClosable:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},destroyOnClose:{type:Boolean,default:void 0},mousePosition:r.A.shape({x:Number,y:Number}).loose,title:r.A.any,footer:r.A.any,transitionName:String,maskTransitionName:String,animation:r.A.any,maskAnimation:r.A.any,wrapStyle:{type:Object,default:void 0},bodyStyle:{type:Object,default:void 0},maskStyle:{type:Object,default:void 0},prefixCls:String,wrapClassName:String,rootClassName:String,width:[String,Number],height:[String,Number],zIndex:Number,bodyProps:r.A.any,maskProps:r.A.any,wrapProps:r.A.any,getContainer:r.A.any,dialogStyle:{type:Object,default:void 0},dialogClass:String,closeIcon:r.A.any,forceRender:{type:Boolean,default:void 0},getOpenCount:Function,focusTriggerAfterClose:{type:Boolean,default:void 0},onClose:Function,modalRender:Function}}t.A=o},1592:function(e,t,n){"use strict";n.d(t,{A:function(){return M}});var r=n(69751),o=n(98657),i=n(9274),a=n(12648),s=n(13389),l=n(5347),u=n(21244),c=n(21330),d=n(47960),h=n(41038),p=n(94379);function f(e,t,n){let r=t;return!r&&n&&(r=`${e}-${n}`),r}let g=-1;function m(){return g+=1,g}function v(e,t){let n=e[`page${t?"Y":"X"}Offset`];const r="scroll"+(t?"Top":"Left");if("number"!==typeof n){const t=e.document;n=t.documentElement[r],"number"!==typeof n&&(n=t.body[r])}return n}function y(e){const t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=v(o),n.top+=v(o,!0),n}const b={width:0,height:0,overflow:"hidden",outline:"none"};var _=(0,i.defineComponent)({compatConfig:{MODE:3},name:"DialogContent",inheritAttrs:!1,props:(0,o.A)((0,o.A)({},(0,p.A)()),{motionName:String,ariaId:String,onVisibleChanged:Function,onMousedown:Function,onMouseup:Function}),setup(e,t){let{expose:n,slots:o,attrs:a}=t;const s=(0,i.ref)(),l=(0,i.ref)(),u=(0,i.ref)();n({focus:()=>{var e;null===(e=s.value)||void 0===e||e.focus()},changeActive:e=>{const{activeElement:t}=document;e&&t===l.value?s.value.focus():e||t!==s.value||l.value.focus()}});const c=(0,i.ref)(),d=(0,i.computed)((()=>{const{width:t,height:n}=e,r={};return void 0!==t&&(r.width="number"===typeof t?`${t}px`:t),void 0!==n&&(r.height="number"===typeof n?`${n}px`:n),c.value&&(r.transformOrigin=c.value),r})),p=()=>{(0,i.nextTick)((()=>{if(u.value){const t=y(u.value);c.value=e.mousePosition?`${e.mousePosition.x-t.left}px ${e.mousePosition.y-t.top}px`:""}}))},f=t=>{e.onVisibleChanged(t)};return()=>{var t,n,c,g;const{prefixCls:m,footer:v=(null===(t=o.footer)||void 0===t?void 0:t.call(o)),title:y=(null===(n=o.title)||void 0===n?void 0:n.call(o)),ariaId:_,closable:x,closeIcon:w=(null===(c=o.closeIcon)||void 0===c?void 0:c.call(o)),onClose:O,bodyStyle:S,bodyProps:A,onMousedown:k,onMouseup:C,visible:M,modalRender:T=o.modalRender,destroyOnClose:P,motionName:I}=e;let $,E,D;v&&($=(0,i.createVNode)("div",{class:`${m}-footer`},[v])),y&&(E=(0,i.createVNode)("div",{class:`${m}-header`},[(0,i.createVNode)("div",{class:`${m}-title`,id:_},[y])])),x&&(D=(0,i.createVNode)("button",{type:"button",onClick:O,"aria-label":"Close",class:`${m}-close`},[w||(0,i.createVNode)("span",{class:`${m}-close-x`},null)]));const R=(0,i.createVNode)("div",{class:`${m}-content`},[D,E,(0,i.createVNode)("div",(0,r.A)({class:`${m}-body`,style:S},A),[null===(g=o.default)||void 0===g?void 0:g.call(o)]),$]),N=(0,h.ce)(I);return(0,i.createVNode)(h.Ay,(0,r.A)((0,r.A)({},N),{},{onBeforeEnter:p,onAfterEnter:()=>f(!0),onAfterLeave:()=>f(!1)}),{default:()=>[M||!P?(0,i.withDirectives)((0,i.createVNode)("div",(0,r.A)((0,r.A)({},a),{},{ref:u,key:"dialog-element",role:"document",style:[d.value,a.style],class:[m,a.class],onMousedown:k,onMouseup:C}),[(0,i.createVNode)("div",{tabindex:0,ref:s,style:b,"aria-hidden":"true"},null),T?T({originVNode:R}):R,(0,i.createVNode)("div",{tabindex:0,ref:l,style:b,"aria-hidden":"true"},null)]),[[i.vShow,M]]):null]})}}}),x=(0,i.defineComponent)({compatConfig:{MODE:3},name:"DialogMask",props:{prefixCls:String,visible:Boolean,motionName:String,maskProps:Object},setup(e,t){let{}=t;return()=>{const{prefixCls:t,visible:n,maskProps:o,motionName:a}=e,s=(0,h.ce)(a);return(0,i.createVNode)(h.Ay,s,{default:()=>[(0,i.withDirectives)((0,i.createVNode)("div",(0,r.A)({class:`${t}-mask`},o),null),[[i.vShow,n]])]})}}}),w=(0,i.defineComponent)({compatConfig:{MODE:3},name:"VcDialog",inheritAttrs:!1,props:(0,d.A)((0,o.A)((0,o.A)({},(0,p.A)()),{getOpenCount:Function,scrollLocker:Object}),{mask:!0,visible:!1,keyboard:!0,closable:!0,maskClosable:!0,destroyOnClose:!1,prefixCls:"rc-dialog",getOpenCount:()=>null,focusTriggerAfterClose:!0}),setup(e,t){let{attrs:n,slots:d}=t;const h=(0,i.shallowRef)(),p=(0,i.shallowRef)(),g=(0,i.shallowRef)(),v=(0,i.shallowRef)(e.visible),y=(0,i.shallowRef)(`vcDialogTitle${m()}`),b=t=>{var n,r;if(t)(0,a.A)(p.value,document.activeElement)||(h.value=document.activeElement,null===(n=g.value)||void 0===n||n.focus());else{const t=v.value;if(v.value=!1,e.mask&&h.value&&e.focusTriggerAfterClose){try{h.value.focus({preventScroll:!0})}catch(o){}h.value=null}t&&(null===(r=e.afterClose)||void 0===r||r.call(e))}},w=t=>{var n;null===(n=e.onClose)||void 0===n||n.call(e,t)},O=(0,i.shallowRef)(!1),S=(0,i.shallowRef)(),A=()=>{clearTimeout(S.value),O.value=!0},k=()=>{S.value=setTimeout((()=>{O.value=!1}))},C=t=>{if(!e.maskClosable)return null;O.value?O.value=!1:p.value===t.target&&w(t)},M=t=>{if(e.keyboard&&t.keyCode===l.A.ESC)return t.stopPropagation(),void w(t);e.visible&&t.keyCode===l.A.TAB&&g.value.changeActive(!t.shiftKey)};return(0,i.watch)((()=>e.visible),(()=>{e.visible&&(v.value=!0)}),{flush:"post"}),(0,i.onBeforeUnmount)((()=>{var t;clearTimeout(S.value),null===(t=e.scrollLocker)||void 0===t||t.unLock()})),(0,i.watchEffect)((()=>{var t,n;null===(t=e.scrollLocker)||void 0===t||t.unLock(),v.value&&(null===(n=e.scrollLocker)||void 0===n||n.lock())})),()=>{const{prefixCls:t,mask:a,visible:l,maskTransitionName:h,maskAnimation:m,zIndex:O,wrapClassName:S,rootClassName:T,wrapStyle:P,closable:I,maskProps:$,maskStyle:E,transitionName:D,animation:R,wrapProps:N,title:L=d.title}=e,{style:z,class:V}=n;return(0,i.createVNode)("div",(0,r.A)({class:[`${t}-root`,T]},(0,c.A)(e,{data:!0})),[(0,i.createVNode)(x,{prefixCls:t,visible:a&&l,motionName:f(t,h,m),style:(0,o.A)({zIndex:O},E),maskProps:$},null),(0,i.createVNode)("div",(0,r.A)({tabIndex:-1,onKeydown:M,class:(0,s.A)(`${t}-wrap`,S),ref:p,onClick:C,role:"dialog","aria-labelledby":L?y.value:null,style:(0,o.A)((0,o.A)({zIndex:O},P),{display:v.value?null:"none"})},N),[(0,i.createVNode)(_,(0,r.A)((0,r.A)({},(0,u.A)(e,["scrollLocker"])),{},{style:z,class:V,onMousedown:A,onMouseup:k,ref:g,closable:I,ariaId:y.value,prefixCls:t,visible:l,onClose:w,onVisibleChanged:b,motionName:f(t,D,R)}),d)])])}}}),O=n(5956),S=n(42845);const A=(0,p.A)(),k=(0,i.defineComponent)({compatConfig:{MODE:3},name:"DialogWrap",inheritAttrs:!1,props:(0,d.A)(A,{visible:!1}),setup(e,t){let{attrs:n,slots:a}=t;const s=(0,i.ref)(e.visible);return(0,S.T)({},{inTriggerContext:!1}),(0,i.watch)((()=>e.visible),(()=>{e.visible&&(s.value=!0)}),{flush:"post"}),()=>{const{visible:t,getContainer:l,forceRender:u,destroyOnClose:c=!1,afterClose:d}=e;let h=(0,o.A)((0,o.A)((0,o.A)({},e),n),{ref:"_component",key:"dialog"});return!1===l?(0,i.createVNode)(w,(0,r.A)((0,r.A)({},h),{},{getOpenCount:()=>2}),a):u||!c||s.value?(0,i.createVNode)(O.A,{autoLock:!0,visible:t,forceRender:u,getContainer:l},{default:e=>(h=(0,o.A)((0,o.A)((0,o.A)({},h),e),{afterClose:()=>{null===d||void 0===d||d(),s.value=!1}}),(0,i.createVNode)(w,h,a))}):null}}});var C=k,M=C},36657:function(e,t,n){"use strict";var r=n(69751),o=n(9274),i=n(13389);t.A=(0,o.defineComponent)({name:"Notice",inheritAttrs:!1,props:["prefixCls","duration","updateMark","noticeKey","closeIcon","closable","props","onClick","onClose","holder","visible"],setup(e,t){let n,{attrs:a,slots:s}=t,l=!1;const u=(0,o.computed)((()=>void 0===e.duration?4.5:e.duration)),c=()=>{u.value&&!l&&(n=setTimeout((()=>{h()}),1e3*u.value))},d=()=>{n&&(clearTimeout(n),n=null)},h=t=>{t&&t.stopPropagation(),d();const{onClose:n,noticeKey:r}=e;n&&n(r)},p=()=>{d(),c()};return(0,o.onMounted)((()=>{c()})),(0,o.onUnmounted)((()=>{l=!0,d()})),(0,o.watch)([u,()=>e.updateMark,()=>e.visible],((e,t)=>{let[n,r,o]=e,[i,a,s]=t;(n!==i||r!==a||o!==s&&s)&&p()}),{flush:"post"}),()=>{var t,n;const{prefixCls:l,closable:u,closeIcon:p=(null===(t=s.closeIcon)||void 0===t?void 0:t.call(s)),onClick:f,holder:g}=e,{class:m,style:v}=a,y=`${l}-notice`,b=Object.keys(a).reduce(((e,t)=>((t.startsWith("data-")||t.startsWith("aria-")||"role"===t)&&(e[t]=a[t]),e)),{}),_=(0,o.createVNode)("div",(0,r.A)({class:(0,i.A)(y,m,{[`${y}-closable`]:u}),style:v,onMouseenter:d,onMouseleave:c,onClick:f},b),[(0,o.createVNode)("div",{class:`${y}-content`},[null===(n=s.default)||void 0===n?void 0:n.call(s)]),u?(0,o.createVNode)("a",{tabindex:0,onClick:h,class:`${y}-close`},[p||(0,o.createVNode)("span",{class:`${y}-close-x`},null)]):null]);return g?(0,o.createVNode)(o.Teleport,{to:g},{default:()=>_}):_}}})},31716:function(e,t,n){"use strict";n.d(t,{A:function(){return m}});n(30381);var r=n(69751),o=n(98657),i=n(9274),a=n(41038),s=n(36657),l=n(95835),u=n(13389),c=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};let d=0;const h=Date.now();function p(){const e=d;return d+=1,`rcNotification_${h}_${e}`}const f=(0,i.defineComponent)({name:"Notification",inheritAttrs:!1,props:["prefixCls","transitionName","animation","maxCount","closeIcon","hashId"],setup(e,t){let{attrs:n,expose:l,slots:c}=t;const d=new Map,h=(0,i.ref)([]),f=(0,i.computed)((()=>{const{prefixCls:t,animation:n="fade"}=e;let r=e.transitionName;return!r&&n&&(r=`${t}-${n}`),(0,a.zg)(r)})),g=(t,n)=>{const r=t.key||p(),i=(0,o.A)((0,o.A)({},t),{key:r}),{maxCount:a}=e,s=h.value.map((e=>e.notice.key)).indexOf(r),l=h.value.concat();-1!==s?l.splice(s,1,{notice:i,holderCallback:n}):(a&&h.value.length>=a&&(i.key=l[0].notice.key,i.updateMark=p(),i.userPassKey=r,l.shift()),l.push({notice:i,holderCallback:n})),h.value=l},m=e=>{h.value=h.value.filter((t=>{let{notice:{key:n,userPassKey:r}}=t;const o=r||n;return o!==e}))};return l({add:g,remove:m,notices:h}),()=>{var t;const{prefixCls:a,closeIcon:l=(null===(t=c.closeIcon)||void 0===t?void 0:t.call(c,{prefixCls:a}))}=e,p=h.value.map(((t,n)=>{let{notice:c,holderCallback:p}=t;const f=n===h.value.length-1?c.updateMark:void 0,{key:g,userPassKey:v}=c,{content:y}=c,b=(0,o.A)((0,o.A)((0,o.A)({prefixCls:a,closeIcon:"function"===typeof l?l({prefixCls:a}):l},c),c.props),{key:g,noticeKey:v||g,updateMark:f,onClose:e=>{var t;m(e),null===(t=c.onClose)||void 0===t||t.call(c)},onClick:c.onClick});return p?(0,i.createVNode)("div",{key:g,class:`${a}-hook-holder`,ref:e=>{"undefined"!==typeof g&&(e?(d.set(g,e),p(e,b)):d.delete(g))}},null):(0,i.createVNode)(s.A,(0,r.A)((0,r.A)({},b),{},{class:(0,u.A)(b.class,e.hashId)}),{default:()=>["function"===typeof y?y({prefixCls:a}):y]})})),g={[a]:1,[n.class]:!!n.class,[e.hashId]:!0};return(0,i.createVNode)("div",{class:g,style:n.style||{top:"65px",left:"50%"}},[(0,i.createVNode)(i.TransitionGroup,(0,r.A)({tag:"div"},f.value),{default:()=>[p]})])}}});f.newInstance=function(e,t){const n=e||{},{name:o="notification",getContainer:a,appContext:s,prefixCls:u,rootPrefixCls:d,transitionName:h,hasTransitionName:p,useStyle:g}=n,m=c(n,["name","getContainer","appContext","prefixCls","rootPrefixCls","transitionName","hasTransitionName","useStyle"]),v=document.createElement("div");if(a){const e=a();e.appendChild(v)}else document.body.appendChild(v);const y=(0,i.defineComponent)({compatConfig:{MODE:3},name:"NotificationWrapper",setup(e,n){let{attrs:a}=n;const s=(0,i.shallowRef)(),c=(0,i.computed)((()=>l.Vm.getPrefixCls(o,u))),[,m]=g(c);return(0,i.onMounted)((()=>{t({notice(e){var t;null===(t=s.value)||void 0===t||t.add(e)},removeNotice(e){var t;null===(t=s.value)||void 0===t||t.remove(e)},destroy(){(0,i.render)(null,v),v.parentNode&&v.parentNode.removeChild(v)},component:s})})),()=>{const e=l.Vm,t=e.getRootPrefixCls(d,c.value),n=p?h:`${c.value}-${h}`;return(0,i.createVNode)(l.Ay,(0,r.A)((0,r.A)({},e),{},{prefixCls:t}),{default:()=>[(0,i.createVNode)(f,(0,r.A)((0,r.A)({ref:s},a),{},{prefixCls:c.value,transitionName:n,hashId:m.value}),null)]})}}}),b=(0,i.createVNode)(y,m);b.appContext=s||b.appContext,(0,i.render)(b,v)};var g=f,m=g},39375:function(e,t,n){"use strict";n.d(t,{A:function(){return b}});n(30381);var r=n(98657),o=n(9274),i=n(69751),a=n(36657),s=n(41038),l=n(13389),u=n(68955);let c=0;const d=Date.now();function h(){const e=c;return c+=1,`rcNotification_${d}_${e}`}const p=(0,o.defineComponent)({name:"HookNotification",inheritAttrs:!1,props:["prefixCls","transitionName","animation","maxCount","closeIcon","hashId","remove","notices","getStyles","getClassName","onAllRemoved","getContainer"],setup(e,t){let{attrs:n,slots:c}=t;const d=new Map,h=(0,o.computed)((()=>e.notices)),p=(0,o.computed)((()=>{let t=e.transitionName;if(!t&&e.animation)switch(typeof e.animation){case"string":t=e.animation;break;case"function":t=e.animation().name;break;case"object":t=e.animation.name;break;default:t=`${e.prefixCls}-fade`;break}return(0,s.zg)(t)})),f=t=>e.remove(t),g=(0,o.ref)({});(0,o.watch)(h,(()=>{const t={};Object.keys(g.value).forEach((e=>{t[e]=[]})),e.notices.forEach((e=>{const{placement:n="topRight"}=e.notice;n&&(t[n]=t[n]||[],t[n].push(e))})),g.value=t}));const m=(0,o.computed)((()=>Object.keys(g.value)));return()=>{var t;const{prefixCls:s,closeIcon:v=(null===(t=c.closeIcon)||void 0===t?void 0:t.call(c,{prefixCls:s}))}=e,y=m.value.map((t=>{var u,c;const m=g.value[t],y=null===(u=e.getClassName)||void 0===u?void 0:u.call(e,t),b=null===(c=e.getStyles)||void 0===c?void 0:c.call(e,t),_=m.map(((t,n)=>{let{notice:u,holderCallback:c}=t;const p=n===h.value.length-1?u.updateMark:void 0,{key:g,userPassKey:m}=u,{content:y}=u,b=(0,r.A)((0,r.A)((0,r.A)({prefixCls:s,closeIcon:"function"===typeof v?v({prefixCls:s}):v},u),u.props),{key:g,noticeKey:m||g,updateMark:p,onClose:e=>{var t;f(e),null===(t=u.onClose)||void 0===t||t.call(u)},onClick:u.onClick});return c?(0,o.createVNode)("div",{key:g,class:`${s}-hook-holder`,ref:e=>{"undefined"!==typeof g&&(e?(d.set(g,e),c(e,b)):d.delete(g))}},null):(0,o.createVNode)(a.A,(0,i.A)((0,i.A)({},b),{},{class:(0,l.A)(b.class,e.hashId)}),{default:()=>["function"===typeof y?y({prefixCls:s}):y]})})),x={[s]:1,[`${s}-${t}`]:1,[n.class]:!!n.class,[e.hashId]:!0,[y]:!!y};function w(){var n;m.length>0||(Reflect.deleteProperty(g.value,t),null===(n=e.onAllRemoved)||void 0===n||n.call(e))}return(0,o.createVNode)("div",{key:t,class:x,style:n.style||b||{top:"65px",left:"50%"}},[(0,o.createVNode)(o.TransitionGroup,(0,i.A)((0,i.A)({tag:"div"},p.value),{},{onAfterLeave:w}),{default:()=>[_]})])}));return(0,o.createVNode)(u.A,{getContainer:e.getContainer},{default:()=>[y]})}}});var f=p,g=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const m=()=>document.body;let v=0;function y(){const e={};for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((t=>{t&&Object.keys(t).forEach((n=>{const r=t[n];void 0!==r&&(e[n]=r)}))})),e}function b(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{getContainer:t=m,motion:n,prefixCls:i,maxCount:a,getClassName:s,getStyles:l,onAllRemoved:u}=e,c=g(e,["getContainer","motion","prefixCls","maxCount","getClassName","getStyles","onAllRemoved"]),d=(0,o.shallowRef)([]),p=(0,o.shallowRef)(),b=(e,t)=>{const n=e.key||h(),o=(0,r.A)((0,r.A)({},e),{key:n}),i=d.value.map((e=>e.notice.key)).indexOf(n),s=d.value.concat();-1!==i?s.splice(i,1,{notice:o,holderCallback:t}):(a&&d.value.length>=a&&(o.key=s[0].notice.key,o.updateMark=h(),o.userPassKey=n,s.shift()),s.push({notice:o,holderCallback:t})),d.value=s},_=e=>{d.value=d.value.filter((t=>{let{notice:{key:n,userPassKey:r}}=t;const o=r||n;return o!==e}))},x=()=>{d.value=[]},w=()=>(0,o.createVNode)(f,{ref:p,prefixCls:i,maxCount:a,notices:d.value,remove:_,getClassName:s,getStyles:l,animation:n,hashId:e.hashId,onAllRemoved:u,getContainer:t},null),O=(0,o.shallowRef)([]),S={open:e=>{const t=y(c,e);null!==t.key&&void 0!==t.key||(t.key=`vc-notification-${v}`,v+=1),O.value=[...O.value,{type:"open",config:t}]},close:e=>{O.value=[...O.value,{type:"close",key:e}]},destroy:()=>{O.value=[...O.value,{type:"destroy"}]}};return(0,o.watch)(O,(()=>{O.value.length&&(O.value.forEach((e=>{switch(e.type){case"open":b(e.config);break;case"close":_(e.key);break;case"destroy":x();break}})),O.value=[])})),[S,w]}},6631:function(e,t,n){"use strict";n.d(t,{A:function(){return S}});var r=n(69751),o=n(98657),i=n(9274),a=n(71555),s=n(13389),l=n(5530);const u=Symbol("OverflowContextProviderKey"),c=(0,i.defineComponent)({compatConfig:{MODE:3},name:"OverflowContextProvider",inheritAttrs:!1,props:{value:{type:Object}},setup(e,t){let{slots:n}=t;return(0,i.provide)(u,(0,i.computed)((()=>e.value))),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}}),d=()=>(0,i.inject)(u,(0,i.computed)((()=>null)));var h=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const p=void 0;var f=(0,i.defineComponent)({compatConfig:{MODE:3},name:"Item",props:{prefixCls:String,item:l.A.any,renderItem:Function,responsive:Boolean,itemKey:{type:[String,Number]},registerSize:Function,display:Boolean,order:Number,component:l.A.any,invalidate:Boolean},setup(e,t){let{slots:n,expose:o}=t;const l=(0,i.computed)((()=>e.responsive&&!e.display)),u=(0,i.ref)();function c(t){e.registerSize(e.itemKey,t)}return o({itemNodeRef:u}),(0,i.onUnmounted)((()=>{c(null)})),()=>{var t;const{prefixCls:o,invalidate:d,item:f,renderItem:g,responsive:m,registerSize:v,itemKey:y,display:b,order:_,component:x="div"}=e,w=h(e,["prefixCls","invalidate","item","renderItem","responsive","registerSize","itemKey","display","order","component"]),O=null===(t=n.default)||void 0===t?void 0:t.call(n),S=g&&f!==p?g(f):O;let A;d||(A={opacity:l.value?0:1,height:l.value?0:p,overflowY:l.value?"hidden":p,order:m?_:p,pointerEvents:l.value?"none":p,position:l.value?"absolute":p});const k={};return l.value&&(k["aria-hidden"]=!0),(0,i.createVNode)(a.A,{disabled:!m,onResize:e=>{let{offsetWidth:t}=e;c(t)}},{default:()=>(0,i.createVNode)(x,(0,r.A)((0,r.A)((0,r.A)({class:(0,s.A)(!d&&o),style:A},k),w),{},{ref:u}),{default:()=>[S]})})}}}),g=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},m=(0,i.defineComponent)({compatConfig:{MODE:3},name:"RawItem",inheritAttrs:!1,props:{component:l.A.any,title:l.A.any,id:String,onMouseenter:{type:Function},onMouseleave:{type:Function},onClick:{type:Function},onKeydown:{type:Function},onFocus:{type:Function},role:String,tabindex:Number},setup(e,t){let{slots:n,attrs:o}=t;const a=d();return()=>{var t;if(!a.value){const{component:a="div"}=e,s=g(e,["component"]);return(0,i.createVNode)(a,(0,r.A)((0,r.A)({},s),o),{default:()=>[null===(t=n.default)||void 0===t?void 0:t.call(n)]})}const l=a.value,{className:u}=l,d=g(l,["className"]),{class:h}=o,p=g(o,["class"]);return(0,i.createVNode)(c,{value:null},{default:()=>[(0,i.createVNode)(f,(0,r.A)((0,r.A)((0,r.A)({class:(0,s.A)(u,h)},d),p),e),n)]})}}}),v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const y="responsive",b="invalidate";function _(e){return`+ ${e.length} ...`}const x=()=>({id:String,prefixCls:String,data:Array,itemKey:[String,Number,Function],itemWidth:{type:Number,default:10},renderItem:Function,renderRawItem:Function,maxCount:[Number,String],renderRest:Function,renderRawRest:Function,suffix:l.A.any,component:String,itemComponent:l.A.any,onVisibleChange:Function,ssr:String,onMousedown:Function}),w=(0,i.defineComponent)({name:"Overflow",inheritAttrs:!1,props:x(),emits:["visibleChange"],setup(e,t){let{attrs:n,emit:l,slots:u}=t;const d=(0,i.computed)((()=>"full"===e.ssr)),h=(0,i.shallowRef)(null),p=(0,i.computed)((()=>h.value||0)),g=(0,i.shallowRef)(new Map),m=(0,i.shallowRef)(0),x=(0,i.shallowRef)(0),w=(0,i.shallowRef)(0),O=(0,i.shallowRef)(null),S=(0,i.shallowRef)(null),A=(0,i.computed)((()=>null===S.value&&d.value?Number.MAX_SAFE_INTEGER:S.value||0)),k=(0,i.shallowRef)(!1),C=(0,i.computed)((()=>`${e.prefixCls}-item`)),M=(0,i.computed)((()=>Math.max(m.value,x.value))),T=(0,i.computed)((()=>!(!e.data.length||e.maxCount!==y))),P=(0,i.computed)((()=>e.maxCount===b)),I=(0,i.computed)((()=>T.value||"number"===typeof e.maxCount&&e.data.length>e.maxCount)),$=(0,i.computed)((()=>{let t=e.data;return T.value?t=null===h.value&&d.value?e.data:e.data.slice(0,Math.min(e.data.length,p.value/e.itemWidth)):"number"===typeof e.maxCount&&(t=e.data.slice(0,e.maxCount)),t})),E=(0,i.computed)((()=>T.value?e.data.slice(A.value+1):e.data.slice($.value.length))),D=(t,n)=>{var r;return"function"===typeof e.itemKey?e.itemKey(t):null!==(r=e.itemKey&&(null===t||void 0===t?void 0:t[e.itemKey]))&&void 0!==r?r:n},R=(0,i.computed)((()=>e.renderItem||(e=>e))),N=(t,n)=>{S.value=t,n||(k.value=t<e.data.length-1,l("visibleChange",t))},L=(e,t)=>{h.value=t.clientWidth},z=(e,t)=>{const n=new Map(g.value);null===t?n.delete(e):n.set(e,t),g.value=n},V=(e,t)=>{m.value=x.value,x.value=t},B=(e,t)=>{w.value=t},j=e=>g.value.get(D($.value[e],e));return(0,i.watch)([p,g,x,w,()=>e.itemKey,$],(()=>{if(p.value&&M.value&&$.value){let t=w.value;const n=$.value.length,r=n-1;if(!n)return N(0),void(O.value=null);for(let e=0;e<n;e+=1){const n=j(e);if(void 0===n){N(e-1,!0);break}if(t+=n,0===r&&t<=p.value||e===r-1&&t+j(r)<=p.value){N(r),O.value=null;break}if(t+M.value>p.value){N(e-1),O.value=t-n-w.value+x.value;break}}e.suffix&&j(0)+w.value>p.value&&(O.value=null)}})),()=>{const t=k.value&&!!E.value.length,{itemComponent:l,renderRawItem:d,renderRawRest:h,renderRest:p,prefixCls:g="rc-overflow",suffix:m,component:y="div",id:b,onMousedown:x}=e,{class:w,style:S}=n,M=v(n,["class","style"]);let N={};null!==O.value&&T.value&&(N={position:"absolute",left:`${O.value}px`,top:0});const j={prefixCls:C.value,responsive:T.value,component:l,invalidate:P.value},Q=d?(e,t)=>{const n=D(e,t);return(0,i.createVNode)(c,{key:n,value:(0,o.A)((0,o.A)({},j),{order:t,item:e,itemKey:n,registerSize:z,display:t<=A.value})},{default:()=>[d(e,t)]})}:(e,t)=>{const n=D(e,t);return(0,i.createVNode)(f,(0,r.A)((0,r.A)({},j),{},{order:t,key:n,item:e,renderItem:R.value,itemKey:n,registerSize:z,display:t<=A.value}),null)};let F=()=>null;const W={order:t?A.value:Number.MAX_SAFE_INTEGER,className:`${C.value} ${C.value}-rest`,registerSize:V,display:t};if(h)h&&(F=()=>(0,i.createVNode)(c,{value:(0,o.A)((0,o.A)({},j),W)},{default:()=>[h(E.value)]}));else{const e=p||_;F=()=>(0,i.createVNode)(f,(0,r.A)((0,r.A)({},j),W),{default:()=>"function"===typeof e?e(E.value):e})}const H=()=>{var e;return(0,i.createVNode)(y,(0,r.A)({id:b,class:(0,s.A)(!P.value&&g,w),style:S,onMousedown:x},M),{default:()=>[$.value.map(Q),I.value?F():null,m&&(0,i.createVNode)(f,(0,r.A)((0,r.A)({},j),{},{order:A.value,class:`${C.value}-suffix`,registerSize:B,display:!0,style:N}),{default:()=>m}),null===(e=u.default)||void 0===e?void 0:e.call(u)]})};return(0,i.createVNode)(a.A,{disabled:!T.value,onResize:L},{default:H})}}});w.Item=m,w.RESPONSIVE=y,w.INVALIDATE=b;var O=w,S=O},71555:function(e,t,n){"use strict";var r=n(98657),o=n(18667),i=n(9274),a=n(16155);t.A=(0,i.defineComponent)({compatConfig:{MODE:3},name:"ResizeObserver",props:{disabled:Boolean,onResize:Function},emits:["resize"],setup(e,t){let{slots:n}=t;const s=(0,i.reactive)({width:0,height:0,offsetHeight:0,offsetWidth:0});let l=null,u=null;const c=()=>{u&&(u.disconnect(),u=null)},d=t=>{const{onResize:n}=e,o=t[0].target,{width:i,height:a}=o.getBoundingClientRect(),{offsetWidth:l,offsetHeight:u}=o,c=Math.floor(i),d=Math.floor(a);if(s.width!==c||s.height!==d||s.offsetWidth!==l||s.offsetHeight!==u){const e={width:c,height:d,offsetWidth:l,offsetHeight:u};(0,r.A)(s,e),n&&Promise.resolve().then((()=>{n((0,r.A)((0,r.A)({},e),{offsetWidth:l,offsetHeight:u}),o)}))}},h=(0,i.getCurrentInstance)(),p=()=>{const{disabled:t}=e;if(t)return void c();const n=(0,a.oK)(h),r=n!==l;r&&(c(),l=n),!u&&n&&(u=new o.A(d),u.observe(n))};return(0,i.onMounted)((()=>{p()})),(0,i.onUpdated)((()=>{p()})),(0,i.onUnmounted)((()=>{c()})),(0,i.watch)((()=>e.disabled),(()=>{p()}),{flush:"post"}),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)[0]}}})},42845:function(e,t,n){"use strict";n.d(t,{T:function(){return i},v:function(){return a}});var r=n(9274);const o=Symbol("PortalContextKey"),i=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{inTriggerContext:!0};(0,r.provide)(o,{inTriggerContext:t.inTriggerContext,shouldRender:(0,r.computed)((()=>{const{sPopupVisible:t,popupRef:n,forceRender:r,autoDestroy:o}=e||{};let i=!1;return(t||n||r)&&(i=!0),!t&&o&&(i=!1),i}))})},a=()=>{i({},{inTriggerContext:!1});const e=(0,r.inject)(o,{shouldRender:(0,r.computed)((()=>!1)),inTriggerContext:!1});return{shouldRender:(0,r.computed)((()=>e.shouldRender.value||!1===e.inTriggerContext))}}},15928:function(e,t,n){"use strict";n.d(t,{A:function(){return yt}});n(30381);var r=n(98657),o=n(9274),i=n(5530);function a(){return""}function s(e){return e?e.ownerDocument:window.document}function l(){}const u=()=>({action:i.A.oneOfType([i.A.string,i.A.arrayOf(i.A.string)]).def([]),showAction:i.A.any.def([]),hideAction:i.A.any.def([]),getPopupClassNameFromAlign:i.A.any.def(a),onPopupVisibleChange:Function,afterPopupVisibleChange:i.A.func.def(l),popup:i.A.any,arrow:i.A.bool.def(!0),popupStyle:{type:Object,default:void 0},prefixCls:i.A.string.def("rc-trigger-popup"),popupClassName:i.A.string.def(""),popupPlacement:String,builtinPlacements:i.A.object,popupTransitionName:String,popupAnimation:i.A.any,mouseEnterDelay:i.A.number.def(0),mouseLeaveDelay:i.A.number.def(.1),zIndex:Number,focusDelay:i.A.number.def(0),blurDelay:i.A.number.def(.15),getPopupContainer:Function,getDocument:i.A.func.def(s),forceRender:{type:Boolean,default:void 0},destroyPopupOnHide:{type:Boolean,default:!1},mask:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},popupAlign:i.A.object.def((()=>({}))),popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},maskTransitionName:String,maskAnimation:String,stretch:String,alignPoint:{type:Boolean,default:void 0},autoDestroy:{type:Boolean,default:!1},mobile:Object,getTriggerDOMNode:Function});var c=n(12648),d=n(38624),h=n(16155),p=n(74220),f=n(69751);const g={visible:Boolean,prefixCls:String,zIndex:Number,destroyPopupOnHide:Boolean,forceRender:Boolean,arrow:{type:Boolean,default:!0},animation:[String,Object],transitionName:String,stretch:{type:String},align:{type:Object},point:{type:Object},getRootDomNode:{type:Function},getClassNameFromAlign:{type:Function},onAlign:{type:Function},onMouseenter:{type:Function},onMouseleave:{type:Function},onMousedown:{type:Function},onTouchstart:{type:Function}},m=(0,r.A)((0,r.A)({},g),{mobile:{type:Object}}),v=(0,r.A)((0,r.A)({},g),{mask:Boolean,mobile:{type:Object},maskAnimation:String,maskTransitionName:String});var y=n(1684);function b(e){const{prefixCls:t,visible:n,zIndex:r,mask:i,maskAnimation:a,maskTransitionName:s}=e;if(!i)return null;let l={};return(s||a)&&(l=(0,y.V)({prefixCls:t,transitionName:s,animation:a})),(0,o.createVNode)(o.Transition,(0,f.A)({appear:!0},l),{default:()=>[(0,o.withDirectives)((0,o.createVNode)("div",{style:{zIndex:r},class:`${t}-mask`},null),[[(0,o.resolveDirective)("if"),n]])]})}b.displayName="Mask";var _=n(13389),x=(0,o.defineComponent)({compatConfig:{MODE:3},name:"MobilePopupInner",inheritAttrs:!1,props:m,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup(e,t){let{expose:n,slots:i}=t;const a=(0,o.ref)();return n({forceAlign:()=>{},getElement:()=>a.value}),()=>{var t;const{zIndex:n,visible:s,prefixCls:l,mobile:{popupClassName:u,popupStyle:c,popupMotion:d={},popupRender:p}={}}=e,g=(0,r.A)({zIndex:n},c);let m=(0,h.MI)(null===(t=i.default)||void 0===t?void 0:t.call(i));if(m.length>1){(function(){})();m=(0,o.createVNode)("div",{class:`${l}-content`},[m])}p&&(m=p(m));const v=(0,_.A)(l,u);return(0,o.createVNode)(o.Transition,(0,f.A)({ref:a},d),{default:()=>[s?(0,o.createVNode)("div",{class:v,style:g},[m]):null]})}}}),w=function(e,t,n,r){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function a(e){try{l(r.next(e))}catch(t){i(t)}}function s(e){try{l(r["throw"](e))}catch(t){i(t)}}function l(e){e.done?n(e.value):o(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())}))};const O=["measure","align",null,"motion"];var S,A=(e,t)=>{const n=(0,o.shallowRef)(null),r=(0,o.shallowRef)(),i=(0,o.shallowRef)(!1);function a(e){i.value||(n.value=e)}function s(){d.A.cancel(r.value)}function l(e){s(),r.value=(0,d.A)((()=>{let t=n.value;switch(n.value){case"align":t="motion";break;case"motion":t="stable";break;default:}a(t),null===e||void 0===e||e()}))}return(0,o.watch)(e,(()=>{a("measure")}),{immediate:!0,flush:"post"}),(0,o.onMounted)((()=>{(0,o.watch)(n,(()=>{switch(n.value){case"measure":t();break;default:}n.value&&(r.value=(0,d.A)((()=>w(void 0,void 0,void 0,(function*(){const e=O.indexOf(n.value),t=O[e+1];t&&-1!==e&&a(t)})))))}),{immediate:!0,flush:"post"})})),(0,o.onBeforeUnmount)((()=>{i.value=!0,s()})),[n,l]},k=e=>{const t=(0,o.shallowRef)({width:0,height:0});function n(e){t.value={width:e.offsetWidth,height:e.offsetHeight}}const r=(0,o.computed)((()=>{const n={};if(e.value){const{width:r,height:o}=t.value;-1!==e.value.indexOf("height")&&o?n.height=`${o}px`:-1!==e.value.indexOf("minHeight")&&o&&(n.minHeight=`${o}px`),-1!==e.value.indexOf("width")&&r?n.width=`${r}px`:-1!==e.value.indexOf("minWidth")&&r&&(n.minWidth=`${r}px`)}return n}));return[r,n]};function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function M(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C(Object(n),!0).forEach((function(t){P(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function T(e){return T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},T(e)}function P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var I={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function $(){if(void 0!==S)return S;S="";var e=document.createElement("p").style,t="Transform";for(var n in I)n+t in e&&(S=n);return S}function E(){return $()?"".concat($(),"TransitionProperty"):"transitionProperty"}function D(){return $()?"".concat($(),"Transform"):"transform"}function R(e,t){var n=E();n&&(e.style[n]=t,"transitionProperty"!==n&&(e.style.transitionProperty=t))}function N(e,t){var n=D();n&&(e.style[n]=t,"transform"!==n&&(e.style.transform=t))}function L(e){return e.style.transitionProperty||e.style[E()]}function z(e){var t=window.getComputedStyle(e,null),n=t.getPropertyValue("transform")||t.getPropertyValue(D());if(n&&"none"!==n){var r=n.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(r[12]||r[4],0),y:parseFloat(r[13]||r[5],0)}}return{x:0,y:0}}var V=/matrix\((.*)\)/,B=/matrix3d\((.*)\)/;function j(e,t){var n=window.getComputedStyle(e,null),r=n.getPropertyValue("transform")||n.getPropertyValue(D());if(r&&"none"!==r){var o,i=r.match(V);if(i)i=i[1],o=i.split(",").map((function(e){return parseFloat(e,10)})),o[4]=t.x,o[5]=t.y,N(e,"matrix(".concat(o.join(","),")"));else{var a=r.match(B)[1];o=a.split(",").map((function(e){return parseFloat(e,10)})),o[12]=t.x,o[13]=t.y,N(e,"matrix3d(".concat(o.join(","),")"))}}else N(e,"translateX(".concat(t.x,"px) translateY(").concat(t.y,"px) translateZ(0)"))}var Q,F=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source;function W(e){var t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}function H(e,t,n){var r=n;if("object"!==T(t))return"undefined"!==typeof r?("number"===typeof r&&(r="".concat(r,"px")),void(e.style[t]=r)):Q(e,t);for(var o in t)t.hasOwnProperty(o)&&H(e,o,t[o])}function Z(e){var t,n,r,o=e.ownerDocument,i=o.body,a=o&&o.documentElement;return t=e.getBoundingClientRect(),n=Math.floor(t.left),r=Math.floor(t.top),n-=a.clientLeft||i.clientLeft||0,r-=a.clientTop||i.clientTop||0,{left:n,top:r}}function G(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!==typeof n){var o=e.document;n=o.documentElement[r],"number"!==typeof n&&(n=o.body[r])}return n}function X(e){return G(e)}function U(e){return G(e,!0)}function Y(e){var t=Z(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=X(r),t.top+=U(r),t}function q(e){return null!==e&&void 0!==e&&e==e.window}function K(e){return q(e)?e.document:9===e.nodeType?e:e.ownerDocument}function J(e,t,n){var r=n,o="",i=K(e);return r=r||i.defaultView.getComputedStyle(e,null),r&&(o=r.getPropertyValue(t)||r[t]),o}var ee=new RegExp("^(".concat(F,")(?!px)[a-z%]+$"),"i"),te=/^(top|right|bottom|left)$/,ne="currentStyle",re="runtimeStyle",oe="left",ie="px";function ae(e,t){var n=e[ne]&&e[ne][t];if(ee.test(n)&&!te.test(t)){var r=e.style,o=r[oe],i=e[re][oe];e[re][oe]=e[ne][oe],r[oe]="fontSize"===t?"1em":n||0,n=r.pixelLeft+ie,r[oe]=o,e[re][oe]=i}return""===n?"auto":n}function se(e,t){return"left"===e?t.useCssRight?"right":e:t.useCssBottom?"bottom":e}function le(e){return"left"===e?"right":"right"===e?"left":"top"===e?"bottom":"bottom"===e?"top":void 0}function ue(e,t,n){"static"===H(e,"position")&&(e.style.position="relative");var r=-999,o=-999,i=se("left",n),a=se("top",n),s=le(i),l=le(a);"left"!==i&&(r=999),"top"!==a&&(o=999);var u="",c=Y(e);("left"in t||"top"in t)&&(u=L(e)||"",R(e,"none")),"left"in t&&(e.style[s]="",e.style[i]="".concat(r,"px")),"top"in t&&(e.style[l]="",e.style[a]="".concat(o,"px")),W(e);var d=Y(e),h={};for(var p in t)if(t.hasOwnProperty(p)){var f=se(p,n),g="left"===p?r:o,m=c[p]-d[p];h[f]=f===p?g+m:g-m}H(e,h),W(e),("left"in t||"top"in t)&&R(e,u);var v={};for(var y in t)if(t.hasOwnProperty(y)){var b=se(y,n),_=t[y]-c[y];v[b]=y===b?h[b]+_:h[b]-_}H(e,v)}function ce(e,t){var n=Y(e),r=z(e),o={x:r.x,y:r.y};"left"in t&&(o.x=r.x+t.left-n.left),"top"in t&&(o.y=r.y+t.top-n.top),j(e,o)}function de(e,t,n){if(n.ignoreShake){var r=Y(e),o=r.left.toFixed(0),i=r.top.toFixed(0),a=t.left.toFixed(0),s=t.top.toFixed(0);if(o===a&&i===s)return}n.useCssRight||n.useCssBottom?ue(e,t,n):n.useCssTransform&&D()in document.body.style?ce(e,t):ue(e,t,n)}function he(e,t){for(var n=0;n<e.length;n++)t(e[n])}function pe(e){return"border-box"===Q(e,"boxSizing")}"undefined"!==typeof window&&(Q=window.getComputedStyle?J:ae);var fe=["margin","border","padding"],ge=-1,me=2,ve=1,ye=0;function be(e,t,n){var r,o={},i=e.style;for(r in t)t.hasOwnProperty(r)&&(o[r]=i[r],i[r]=t[r]);for(r in n.call(e),t)t.hasOwnProperty(r)&&(i[r]=o[r])}function _e(e,t,n){var r,o,i,a=0;for(o=0;o<t.length;o++)if(r=t[o],r)for(i=0;i<n.length;i++){var s=void 0;s="border"===r?"".concat(r).concat(n[i],"Width"):r+n[i],a+=parseFloat(Q(e,s))||0}return a}var xe={getParent:function(e){var t=e;do{t=11===t.nodeType&&t.host?t.host:t.parentNode}while(t&&1!==t.nodeType&&9!==t.nodeType);return t}};function we(e,t,n){var r=n;if(q(e))return"width"===t?xe.viewportWidth(e):xe.viewportHeight(e);if(9===e.nodeType)return"width"===t?xe.docWidth(e):xe.docHeight(e);var o="width"===t?["Left","Right"]:["Top","Bottom"],i="width"===t?Math.floor(e.getBoundingClientRect().width):Math.floor(e.getBoundingClientRect().height),a=pe(e),s=0;(null===i||void 0===i||i<=0)&&(i=void 0,s=Q(e,t),(null===s||void 0===s||Number(s)<0)&&(s=e.style[t]||0),s=Math.floor(parseFloat(s))||0),void 0===r&&(r=a?ve:ge);var l=void 0!==i||a,u=i||s;return r===ge?l?u-_e(e,["border","padding"],o):s:l?r===ve?u:u+(r===me?-_e(e,["border"],o):_e(e,["margin"],o)):s+_e(e,fe.slice(r),o)}he(["Width","Height"],(function(e){xe["doc".concat(e)]=function(t){var n=t.document;return Math.max(n.documentElement["scroll".concat(e)],n.body["scroll".concat(e)],xe["viewport".concat(e)](n))},xe["viewport".concat(e)]=function(t){var n="client".concat(e),r=t.document,o=r.body,i=r.documentElement,a=i[n];return"CSS1Compat"===r.compatMode&&a||o&&o[n]||a}}));var Oe={position:"absolute",visibility:"hidden",display:"block"};function Se(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,o=t[0];return 0!==o.offsetWidth?r=we.apply(void 0,t):be(o,Oe,(function(){r=we.apply(void 0,t)})),r}function Ae(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}he(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);xe["outer".concat(t)]=function(t,n){return t&&Se(t,e,n?ye:ve)};var n="width"===e?["Left","Right"]:["Top","Bottom"];xe[e]=function(t,r){var o=r;if(void 0===o)return t&&Se(t,e,ge);if(t){var i=pe(t);return i&&(o+=_e(t,["padding","border"],n)),H(t,e,o)}}}));var ke={getWindow:function(e){if(e&&e.document&&e.setTimeout)return e;var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},getDocument:K,offset:function(e,t,n){if("undefined"===typeof t)return Y(e);de(e,t,n||{})},isWindow:q,each:he,css:H,clone:function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);var r=e.overflow;if(r)for(t in e)e.hasOwnProperty(t)&&(n.overflow[t]=e.overflow[t]);return n},mix:Ae,getWindowScrollLeft:function(e){return X(e)},getWindowScrollTop:function(e){return U(e)},merge:function(){for(var e={},t=0;t<arguments.length;t++)ke.mix(e,t<0||arguments.length<=t?void 0:arguments[t]);return e},viewportWidth:0,viewportHeight:0};Ae(ke,xe);var Ce=ke.getParent;function Me(e){if(ke.isWindow(e)||9===e.nodeType)return null;var t,n=ke.getDocument(e),r=n.body,o=ke.css(e,"position"),i="fixed"===o||"absolute"===o;if(!i)return"html"===e.nodeName.toLowerCase()?null:Ce(e);for(t=Ce(e);t&&t!==r&&9!==t.nodeType;t=Ce(t))if(o=ke.css(t,"position"),"static"!==o)return t;return null}var Te=ke.getParent;function Pe(e){if(ke.isWindow(e)||9===e.nodeType)return!1;var t=ke.getDocument(e),n=t.body,r=null;for(r=Te(e);r&&r!==n&&r!==t;r=Te(r)){var o=ke.css(r,"position");if("fixed"===o)return!0}return!1}function Ie(e,t){var n={left:0,right:1/0,top:0,bottom:1/0},r=Me(e),o=ke.getDocument(e),i=o.defaultView||o.parentWindow,a=o.body,s=o.documentElement;while(r){if(-1!==navigator.userAgent.indexOf("MSIE")&&0===r.clientWidth||r===a||r===s||"visible"===ke.css(r,"overflow")){if(r===a||r===s)break}else{var l=ke.offset(r);l.left+=r.clientLeft,l.top+=r.clientTop,n.top=Math.max(n.top,l.top),n.right=Math.min(n.right,l.left+r.clientWidth),n.bottom=Math.min(n.bottom,l.top+r.clientHeight),n.left=Math.max(n.left,l.left)}r=Me(r)}var u=null;if(!ke.isWindow(e)&&9!==e.nodeType){u=e.style.position;var c=ke.css(e,"position");"absolute"===c&&(e.style.position="fixed")}var d=ke.getWindowScrollLeft(i),h=ke.getWindowScrollTop(i),p=ke.viewportWidth(i),f=ke.viewportHeight(i),g=s.scrollWidth,m=s.scrollHeight,v=window.getComputedStyle(a);if("hidden"===v.overflowX&&(g=i.innerWidth),"hidden"===v.overflowY&&(m=i.innerHeight),e.style&&(e.style.position=u),t||Pe(e))n.left=Math.max(n.left,d),n.top=Math.max(n.top,h),n.right=Math.min(n.right,d+p),n.bottom=Math.min(n.bottom,h+f);else{var y=Math.max(g,d+p);n.right=Math.min(n.right,y);var b=Math.max(m,h+f);n.bottom=Math.min(n.bottom,b)}return n.top>=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function $e(e,t,n,r){var o=ke.clone(e),i={width:t.width,height:t.height};return r.adjustX&&o.left<n.left&&(o.left=n.left),r.resizeWidth&&o.left>=n.left&&o.left+i.width>n.right&&(i.width-=o.left+i.width-n.right),r.adjustX&&o.left+i.width>n.right&&(o.left=Math.max(n.right-i.width,n.left)),r.adjustY&&o.top<n.top&&(o.top=n.top),r.resizeHeight&&o.top>=n.top&&o.top+i.height>n.bottom&&(i.height-=o.top+i.height-n.bottom),r.adjustY&&o.top+i.height>n.bottom&&(o.top=Math.max(n.bottom-i.height,n.top)),ke.mix(o,i)}function Ee(e){var t,n,r;if(ke.isWindow(e)||9===e.nodeType){var o=ke.getWindow(e);t={left:ke.getWindowScrollLeft(o),top:ke.getWindowScrollTop(o)},n=ke.viewportWidth(o),r=ke.viewportHeight(o)}else t=ke.offset(e),n=ke.outerWidth(e),r=ke.outerHeight(e);return t.width=n,t.height=r,t}function De(e,t){var n=t.charAt(0),r=t.charAt(1),o=e.width,i=e.height,a=e.left,s=e.top;return"c"===n?s+=i/2:"b"===n&&(s+=i),"c"===r?a+=o/2:"r"===r&&(a+=o),{left:a,top:s}}function Re(e,t,n,r,o){var i=De(t,n[1]),a=De(e,n[0]),s=[a.left-i.left,a.top-i.top];return{left:Math.round(e.left-s[0]+r[0]-o[0]),top:Math.round(e.top-s[1]+r[1]-o[1])}}function Ne(e,t,n){return e.left<n.left||e.left+t.width>n.right}function Le(e,t,n){return e.top<n.top||e.top+t.height>n.bottom}function ze(e,t,n){return e.left>n.right||e.left+t.width<n.left}function Ve(e,t,n){return e.top>n.bottom||e.top+t.height<n.top}function Be(e,t,n){var r=[];return ke.each(e,(function(e){r.push(e.replace(t,(function(e){return n[e]})))})),r}function je(e,t){return e[t]=-e[t],e}function Qe(e,t){var n;return n=/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10),n||0}function Fe(e,t){e[0]=Qe(e[0],t.width),e[1]=Qe(e[1],t.height)}function We(e,t,n,r){var o=n.points,i=n.offset||[0,0],a=n.targetOffset||[0,0],s=n.overflow,l=n.source||e;i=[].concat(i),a=[].concat(a),s=s||{};var u={},c=0,d=!(!s||!s.alwaysByViewport),h=Ie(l,d),p=Ee(l);Fe(i,p),Fe(a,t);var f=Re(p,t,o,i,a),g=ke.merge(p,f);if(h&&(s.adjustX||s.adjustY)&&r){if(s.adjustX&&Ne(f,p,h)){var m=Be(o,/[lr]/gi,{l:"r",r:"l"}),v=je(i,0),y=je(a,0),b=Re(p,t,m,v,y);ze(b,p,h)||(c=1,o=m,i=v,a=y)}if(s.adjustY&&Le(f,p,h)){var _=Be(o,/[tb]/gi,{t:"b",b:"t"}),x=je(i,1),w=je(a,1),O=Re(p,t,_,x,w);Ve(O,p,h)||(c=1,o=_,i=x,a=w)}c&&(f=Re(p,t,o,i,a),ke.mix(g,f));var S=Ne(f,p,h),A=Le(f,p,h);if(S||A){var k=o;S&&(k=Be(o,/[lr]/gi,{l:"r",r:"l"})),A&&(k=Be(o,/[tb]/gi,{t:"b",b:"t"})),o=k,i=n.offset||[0,0],a=n.targetOffset||[0,0]}u.adjustX=s.adjustX&&S,u.adjustY=s.adjustY&&A,(u.adjustX||u.adjustY)&&(g=$e(f,p,h,u))}return g.width!==p.width&&ke.css(l,"width",ke.width(l)+g.width-p.width),g.height!==p.height&&ke.css(l,"height",ke.height(l)+g.height-p.height),ke.offset(l,{left:g.left,top:g.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:o,offset:i,targetOffset:a,overflow:u}}function He(e,t){var n=Ie(e,t),r=Ee(e);return!n||r.left+r.width<=n.left||r.top+r.height<=n.top||r.left>=n.right||r.top>=n.bottom}function Ze(e,t,n){var r=n.target||t,o=Ee(r),i=!He(r,n.overflow&&n.overflow.alwaysByViewport);return We(e,o,n,i)}function Ge(e,t,n){var r,o,i=ke.getDocument(e),a=i.defaultView||i.parentWindow,s=ke.getWindowScrollLeft(a),l=ke.getWindowScrollTop(a),u=ke.viewportWidth(a),c=ke.viewportHeight(a);r="pageX"in t?t.pageX:s+t.clientX,o="pageY"in t?t.pageY:l+t.clientY;var d={left:r,top:o,width:0,height:0},h=r>=0&&r<=s+u&&o>=0&&o<=l+c,p=[n.points[0],"cc"];return We(e,d,M(M({},n),{},{points:p}),h)}Ze.__getOffsetParent=Me,Ze.__getVisibleRectForElement=Ie;var Xe=n(87051),Ue=n(27987),Ye=n(18667);function qe(e,t){return e===t||!(!e||!t)&&("pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t&&(e.clientX===t.clientX&&e.clientY===t.clientY))}function Ke(e,t){e!==document.activeElement&&(0,c.A)(t,e)&&"function"===typeof e.focus&&e.focus()}function Je(e,t){let n=null,r=null;function o(e){let[{target:o}]=e;if(!document.documentElement.contains(o))return;const{width:i,height:a}=o.getBoundingClientRect(),s=Math.floor(i),l=Math.floor(a);n===s&&r===l||Promise.resolve().then((()=>{t({width:s,height:l})})),n=s,r=l}const i=new Ye.A(o);return e&&i.observe(e),()=>{i.disconnect()}}var et=(e,t)=>{let n=!1,r=null;function o(){clearTimeout(r)}function i(a){if(n&&!0!==a)o(),r=setTimeout((()=>{n=!1,i()}),t.value);else{if(!1===e())return;n=!0,o(),r=setTimeout((()=>{n=!1}),t.value)}}return[i,()=>{n=!1,o()}]},tt=n(71415);const nt={align:Object,target:[Object,Function],onAlign:Function,monitorBufferTime:Number,monitorWindowResize:Boolean,disabled:Boolean};function rt(e){return"function"!==typeof e?null:e()}function ot(e){return"object"===typeof e&&e?e:null}var it=(0,o.defineComponent)({compatConfig:{MODE:3},name:"Align",props:nt,emits:["align"],setup(e,t){let{expose:n,slots:r}=t;const i=(0,o.ref)({}),a=(0,o.ref)(),[s,l]=et((()=>{const{disabled:t,target:n,align:r,onAlign:o}=e;if(!t&&n&&a.value){const e=a.value;let t;const s=rt(n),l=ot(n);i.value.element=s,i.value.point=l,i.value.align=r;const{activeElement:u}=document;return s&&(0,Ue.A)(s)?t=Ze(e,s,r):l&&(t=Ge(e,l,r)),Ke(u,e),o&&t&&o(e,t),!0}return!1}),(0,o.computed)((()=>e.monitorBufferTime))),u=(0,o.ref)({cancel:()=>{}}),c=(0,o.ref)({cancel:()=>{}}),d=()=>{const t=e.target,n=rt(t),r=ot(t);a.value!==c.value.element&&(c.value.cancel(),c.value.element=a.value,c.value.cancel=Je(a.value,s)),i.value.element===n&&qe(i.value.point,r)&&(0,tt.A)(i.value.align,e.align)||(s(),u.value.element!==n&&(u.value.cancel(),u.value.element=n,u.value.cancel=Je(n,s)))};(0,o.onMounted)((()=>{(0,o.nextTick)((()=>{d()}))})),(0,o.onUpdated)((()=>{(0,o.nextTick)((()=>{d()}))})),(0,o.watch)((()=>e.disabled),(e=>{e?l():s()}),{immediate:!0,flush:"post"});const h=(0,o.ref)(null);return(0,o.watch)((()=>e.monitorWindowResize),(e=>{e?h.value||(h.value=(0,p.A)(window,"resize",s)):h.value&&(h.value.remove(),h.value=null)}),{flush:"post"}),(0,o.onUnmounted)((()=>{u.value.cancel(),c.value.cancel(),h.value&&h.value.remove(),l()})),n({forceAlign:()=>s(!0)}),()=>{const e=null===r||void 0===r?void 0:r.default();return e?(0,Xe.Ob)(e[0],{ref:a},!0,!0):null}}}),at=n(41038),st=n(36476),lt=(0,o.defineComponent)({compatConfig:{MODE:3},name:"PopupInner",inheritAttrs:!1,props:g,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup(e,t){let{expose:n,attrs:i,slots:a}=t;const s=(0,o.shallowRef)(),l=(0,o.shallowRef)(),u=(0,o.shallowRef)(),[c,d]=k((0,o.toRef)(e,"stretch")),p=()=>{e.stretch&&d(e.getRootDomNode())},g=(0,o.shallowRef)(!1);let m;(0,o.watch)((()=>e.visible),(t=>{clearTimeout(m),t?m=setTimeout((()=>{g.value=e.visible})):g.value=!1}),{immediate:!0});const[v,b]=A(g,p),x=(0,o.shallowRef)(),w=()=>e.point?e.point:e.getRootDomNode,O=()=>{var e;null===(e=s.value)||void 0===e||e.forceAlign()},S=(t,n)=>{var r;const o=e.getClassNameFromAlign(n),i=u.value;u.value!==o&&(u.value=o),"align"===v.value&&(i!==o?Promise.resolve().then((()=>{O()})):b((()=>{var e;null===(e=x.value)||void 0===e||e.call(x)})),null===(r=e.onAlign)||void 0===r||r.call(e,t,n))},C=(0,o.computed)((()=>{const t="object"===typeof e.animation?e.animation:(0,y.V)(e);return["onAfterEnter","onAfterLeave"].forEach((e=>{const n=t[e];t[e]=e=>{b(),v.value="stable",null===n||void 0===n||n(e)}})),t})),M=()=>new Promise((e=>{x.value=e}));(0,o.watch)([C,v],(()=>{C.value||"motion"!==v.value||b()}),{immediate:!0}),n({forceAlign:O,getElement:()=>l.value.$el||l.value});const T=(0,o.computed)((()=>{var t;return!(null===(t=e.align)||void 0===t?void 0:t.points)||"align"!==v.value&&"stable"!==v.value}));return()=>{var t;const{zIndex:n,align:d,prefixCls:p,destroyPopupOnHide:m,onMouseenter:y,onMouseleave:b,onTouchstart:x=(()=>{}),onMousedown:O}=e,A=v.value,k=[(0,r.A)((0,r.A)({},c.value),{zIndex:n,opacity:"motion"!==A&&"stable"!==A&&g.value?0:null,pointerEvents:g.value||"stable"===A?null:"none"}),i.style];let P=(0,h.MI)(null===(t=a.default)||void 0===t?void 0:t.call(a,{visible:e.visible}));if(P.length>1){(function(){})();P=(0,o.createVNode)("div",{class:`${p}-content`},[P])}const I=(0,_.A)(p,i.class,u.value,!e.arrow&&`${p}-arrow-hidden`),$=g.value||!e.visible,E=$?(0,at.ce)(C.value.name,C.value):{};return(0,o.createVNode)(o.Transition,(0,f.A)((0,f.A)({ref:l},E),{},{onBeforeEnter:M}),{default:()=>!m||e.visible?(0,o.withDirectives)((0,o.createVNode)(it,{target:w(),key:"popup",ref:s,monitorWindowResize:!0,disabled:T.value,align:d,onAlign:S},{default:()=>(0,o.createVNode)("div",{class:I,onMouseenter:y,onMouseleave:b,onMousedown:(0,o.withModifiers)(O,["capture"]),[st.A?"onTouchstartPassive":"onTouchstart"]:(0,o.withModifiers)(x,["capture"]),style:k},[P])}),[[o.vShow,g.value]]):null})}}}),ut=(0,o.defineComponent)({compatConfig:{MODE:3},name:"Popup",inheritAttrs:!1,props:v,setup(e,t){let{attrs:n,slots:i,expose:a}=t;const s=(0,o.shallowRef)(!1),l=(0,o.shallowRef)(!1),u=(0,o.shallowRef)(),c=(0,o.shallowRef)();return(0,o.watch)([()=>e.visible,()=>e.mobile],(()=>{s.value=e.visible,e.visible&&e.mobile&&(l.value=!0)}),{immediate:!0,flush:"post"}),a({forceAlign:()=>{var e;null===(e=u.value)||void 0===e||e.forceAlign()},getElement:()=>{var e;return null===(e=u.value)||void 0===e?void 0:e.getElement()}}),()=>{const t=(0,r.A)((0,r.A)((0,r.A)({},e),n),{visible:s.value}),a=l.value?(0,o.createVNode)(x,(0,f.A)((0,f.A)({},t),{},{mobile:e.mobile,ref:u}),{default:i.default}):(0,o.createVNode)(lt,(0,f.A)((0,f.A)({},t),{},{ref:u}),{default:i.default});return(0,o.createVNode)("div",{ref:c},[(0,o.createVNode)(b,t,null),a])}}});function ct(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function dt(e,t,n){const o=e[t]||{};return(0,r.A)((0,r.A)({},o),n)}function ht(e,t,n,r){const{points:o}=n,i=Object.keys(e);for(let a=0;a<i.length;a+=1){const n=i[a];if(ct(e[n].points,o,r))return`${t}-placement-${n}`}return""}var pt=n(207),ft=n(5956),gt=n(42845);const mt=["onClick","onMousedown","onTouchstart","onMouseenter","onMouseleave","onFocus","onBlur","onContextmenu"];var vt=(0,o.defineComponent)({compatConfig:{MODE:3},name:"Trigger",mixins:[pt.A],inheritAttrs:!1,props:u(),setup(e){const t=(0,o.computed)((()=>{const{popupPlacement:t,popupAlign:n,builtinPlacements:r}=e;return t&&r?dt(r,t,n):n})),n=(0,o.shallowRef)(null),r=e=>{n.value=e};return{vcTriggerContext:(0,o.inject)("vcTriggerContext",{}),popupRef:n,setPopupRef:r,triggerRef:(0,o.shallowRef)(null),align:t,focusTime:null,clickOutsideHandler:null,contextmenuOutsideHandler1:null,contextmenuOutsideHandler2:null,touchOutsideHandler:null,attachId:null,delayTimer:null,hasPopupMouseDown:!1,preClickTime:null,preTouchTime:null,mouseDownTimeout:null,childOriginEvents:{}}},data(){const e=this.$props;let t;return t=void 0!==this.popupVisible?!!e.popupVisible:!!e.defaultPopupVisible,mt.forEach((e=>{this[`fire${e}`]=t=>{this.fireEvents(e,t)}})),{prevPopupVisible:t,sPopupVisible:t,point:null}},watch:{popupVisible(e){void 0!==e&&(this.prevPopupVisible=this.sPopupVisible,this.sPopupVisible=e)}},created(){(0,o.provide)("vcTriggerContext",{onPopupMouseDown:this.onPopupMouseDown,onPopupMouseenter:this.onPopupMouseenter,onPopupMouseleave:this.onPopupMouseleave}),(0,gt.T)(this)},deactivated(){this.setPopupVisible(!1)},mounted(){this.$nextTick((()=>{this.updatedCal()}))},updated(){this.$nextTick((()=>{this.updatedCal()}))},beforeUnmount(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),d.A.cancel(this.attachId)},methods:{updatedCal(){const e=this.$props,t=this.$data;if(t.sPopupVisible){let t;this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextmenuToShow()||(t=e.getDocument(this.getRootDomNode()),this.clickOutsideHandler=(0,p.A)(t,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(t=t||e.getDocument(this.getRootDomNode()),this.touchOutsideHandler=(0,p.A)(t,"touchstart",this.onDocumentClick,!!st.A&&{passive:!1})),!this.contextmenuOutsideHandler1&&this.isContextmenuToShow()&&(t=t||e.getDocument(this.getRootDomNode()),this.contextmenuOutsideHandler1=(0,p.A)(t,"scroll",this.onContextmenuClose)),!this.contextmenuOutsideHandler2&&this.isContextmenuToShow()&&(this.contextmenuOutsideHandler2=(0,p.A)(window,"blur",this.onContextmenuClose))}else this.clearOutsideHandler()},onMouseenter(e){const{mouseEnterDelay:t}=this.$props;this.fireEvents("onMouseenter",e),this.delaySetPopupVisible(!0,t,t?null:e)},onMouseMove(e){this.fireEvents("onMousemove",e),this.setPoint(e)},onMouseleave(e){this.fireEvents("onMouseleave",e),this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay)},onPopupMouseenter(){const{vcTriggerContext:e={}}=this;e.onPopupMouseenter&&e.onPopupMouseenter(),this.clearDelayTimer()},onPopupMouseleave(e){var t;if(e&&e.relatedTarget&&!e.relatedTarget.setTimeout&&(0,c.A)(null===(t=this.popupRef)||void 0===t?void 0:t.getElement(),e.relatedTarget))return;this.isMouseLeaveToHide()&&this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay);const{vcTriggerContext:n={}}=this;n.onPopupMouseleave&&n.onPopupMouseleave(e)},onFocus(e){this.fireEvents("onFocus",e),this.clearDelayTimer(),this.isFocusToShow()&&(this.focusTime=Date.now(),this.delaySetPopupVisible(!0,this.$props.focusDelay))},onMousedown(e){this.fireEvents("onMousedown",e),this.preClickTime=Date.now()},onTouchstart(e){this.fireEvents("onTouchstart",e),this.preTouchTime=Date.now()},onBlur(e){(0,c.A)(e.target,e.relatedTarget||document.activeElement)||(this.fireEvents("onBlur",e),this.clearDelayTimer(),this.isBlurToHide()&&this.delaySetPopupVisible(!1,this.$props.blurDelay))},onContextmenu(e){e.preventDefault(),this.fireEvents("onContextmenu",e),this.setPopupVisible(!0,e)},onContextmenuClose(){this.isContextmenuToShow()&&this.close()},onClick(e){if(this.fireEvents("onClick",e),this.focusTime){let e;if(this.preClickTime&&this.preTouchTime?e=Math.min(this.preClickTime,this.preTouchTime):this.preClickTime?e=this.preClickTime:this.preTouchTime&&(e=this.preTouchTime),Math.abs(e-this.focusTime)<20)return;this.focusTime=0}this.preClickTime=0,this.preTouchTime=0,this.isClickToShow()&&(this.isClickToHide()||this.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault(),e&&e.domEvent&&e.domEvent.preventDefault();const t=!this.$data.sPopupVisible;(this.isClickToHide()&&!t||t&&this.isClickToShow())&&this.setPopupVisible(!this.$data.sPopupVisible,e)},onPopupMouseDown(){const{vcTriggerContext:e={}}=this;this.hasPopupMouseDown=!0,clearTimeout(this.mouseDownTimeout),this.mouseDownTimeout=setTimeout((()=>{this.hasPopupMouseDown=!1}),0),e.onPopupMouseDown&&e.onPopupMouseDown(...arguments)},onDocumentClick(e){if(this.$props.mask&&!this.$props.maskClosable)return;const t=e.target,n=this.getRootDomNode(),r=this.getPopupDomNode();(0,c.A)(n,t)&&!this.isContextMenuOnly()||(0,c.A)(r,t)||this.hasPopupMouseDown||this.delaySetPopupVisible(!1,.1)},getPopupDomNode(){var e;return(null===(e=this.popupRef)||void 0===e?void 0:e.getElement())||null},getRootDomNode(){var e,t,n,r;const{getTriggerDOMNode:o}=this.$props;if(o){const n="#comment"===(null===(t=null===(e=this.triggerRef)||void 0===e?void 0:e.$el)||void 0===t?void 0:t.nodeName)?null:(0,h.oK)(this.triggerRef);return(0,h.oK)(o(n))}try{const e="#comment"===(null===(r=null===(n=this.triggerRef)||void 0===n?void 0:n.$el)||void 0===r?void 0:r.nodeName)?null:(0,h.oK)(this.triggerRef);if(e)return e}catch(i){}return(0,h.oK)(this)},handleGetPopupClassFromAlign(e){const t=[],n=this.$props,{popupPlacement:r,builtinPlacements:o,prefixCls:i,alignPoint:a,getPopupClassNameFromAlign:s}=n;return r&&o&&t.push(ht(o,i,e,a)),s&&t.push(s(e)),t.join(" ")},getPopupAlign(){const e=this.$props,{popupPlacement:t,popupAlign:n,builtinPlacements:r}=e;return t&&r?dt(r,t,n):n},getComponent(){const e={};this.isMouseEnterToShow()&&(e.onMouseenter=this.onPopupMouseenter),this.isMouseLeaveToHide()&&(e.onMouseleave=this.onPopupMouseleave),e.onMousedown=this.onPopupMouseDown,e[st.A?"onTouchstartPassive":"onTouchstart"]=this.onPopupMouseDown;const{handleGetPopupClassFromAlign:t,getRootDomNode:n,$attrs:i}=this,{prefixCls:a,destroyPopupOnHide:s,popupClassName:u,popupAnimation:c,popupTransitionName:d,popupStyle:p,mask:f,maskAnimation:g,maskTransitionName:m,zIndex:v,stretch:y,alignPoint:b,mobile:_,arrow:x,forceRender:w}=this.$props,{sPopupVisible:O,point:S}=this.$data,A=(0,r.A)((0,r.A)({prefixCls:a,arrow:x,destroyPopupOnHide:s,visible:O,point:b?S:null,align:this.align,animation:c,getClassNameFromAlign:t,stretch:y,getRootDomNode:n,mask:f,zIndex:v,transitionName:d,maskAnimation:g,maskTransitionName:m,class:u,style:p,onAlign:i.onPopupAlign||l},e),{ref:this.setPopupRef,mobile:_,forceRender:w});return(0,o.createVNode)(ut,A,{default:this.$slots.popup||(()=>(0,h.QQ)(this,"popup"))})},attachParent(e){d.A.cancel(this.attachId);const{getPopupContainer:t,getDocument:n}=this.$props,r=this.getRootDomNode();let o;t?(r||0===t.length)&&(o=t(r)):o=n(this.getRootDomNode()).body,o?o.appendChild(e):this.attachId=(0,d.A)((()=>{this.attachParent(e)}))},getContainer(){const{$props:e}=this,{getDocument:t}=e,n=t(this.getRootDomNode()).createElement("div");return n.style.position="absolute",n.style.top="0",n.style.left="0",n.style.width="100%",this.attachParent(n),n},setPopupVisible(e,t){const{alignPoint:n,sPopupVisible:r,onPopupVisibleChange:o}=this;this.clearDelayTimer(),r!==e&&((0,h.cK)(this,"popupVisible")||this.setState({sPopupVisible:e,prevPopupVisible:r}),o&&o(e)),n&&t&&e&&this.setPoint(t)},setPoint(e){const{alignPoint:t}=this.$props;t&&e&&this.setState({point:{pageX:e.pageX,pageY:e.pageY}})},handlePortalUpdate(){this.prevPopupVisible!==this.sPopupVisible&&this.afterPopupVisibleChange(this.sPopupVisible)},delaySetPopupVisible(e,t,n){const r=1e3*t;if(this.clearDelayTimer(),r){const t=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=setTimeout((()=>{this.setPopupVisible(e,t),this.clearDelayTimer()}),r)}else this.setPopupVisible(e,n)},clearDelayTimer(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)},clearOutsideHandler(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextmenuOutsideHandler1&&(this.contextmenuOutsideHandler1.remove(),this.contextmenuOutsideHandler1=null),this.contextmenuOutsideHandler2&&(this.contextmenuOutsideHandler2.remove(),this.contextmenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)},createTwoChains(e){let t=()=>{};const n=(0,h.kQ)(this);return this.childOriginEvents[e]&&n[e]?this[`fire${e}`]:(t=this.childOriginEvents[e]||n[e]||t,t)},isClickToShow(){const{action:e,showAction:t}=this.$props;return-1!==e.indexOf("click")||-1!==t.indexOf("click")},isContextMenuOnly(){const{action:e}=this.$props;return"contextmenu"===e||1===e.length&&"contextmenu"===e[0]},isContextmenuToShow(){const{action:e,showAction:t}=this.$props;return-1!==e.indexOf("contextmenu")||-1!==t.indexOf("contextmenu")},isClickToHide(){const{action:e,hideAction:t}=this.$props;return-1!==e.indexOf("click")||-1!==t.indexOf("click")},isMouseEnterToShow(){const{action:e,showAction:t}=this.$props;return-1!==e.indexOf("hover")||-1!==t.indexOf("mouseenter")},isMouseLeaveToHide(){const{action:e,hideAction:t}=this.$props;return-1!==e.indexOf("hover")||-1!==t.indexOf("mouseleave")},isFocusToShow(){const{action:e,showAction:t}=this.$props;return-1!==e.indexOf("focus")||-1!==t.indexOf("focus")},isBlurToHide(){const{action:e,hideAction:t}=this.$props;return-1!==e.indexOf("focus")||-1!==t.indexOf("blur")},forcePopupAlign(){var e;this.$data.sPopupVisible&&(null===(e=this.popupRef)||void 0===e||e.forceAlign())},fireEvents(e,t){this.childOriginEvents[e]&&this.childOriginEvents[e](t);const n=this.$props[e]||this.$attrs[e];n&&n(t)},close(){this.setPopupVisible(!1)}},render(){const{$attrs:e}=this,t=(0,h.Gk)((0,h.$c)(this)),{alignPoint:n,getPopupContainer:i}=this.$props,a=t[0];this.childOriginEvents=(0,h.kQ)(a);const s={key:"trigger"};this.isContextmenuToShow()?s.onContextmenu=this.onContextmenu:s.onContextmenu=this.createTwoChains("onContextmenu"),this.isClickToHide()||this.isClickToShow()?(s.onClick=this.onClick,s.onMousedown=this.onMousedown,s[st.A?"onTouchstartPassive":"onTouchstart"]=this.onTouchstart):(s.onClick=this.createTwoChains("onClick"),s.onMousedown=this.createTwoChains("onMousedown"),s[st.A?"onTouchstartPassive":"onTouchstart"]=this.createTwoChains("onTouchstart")),this.isMouseEnterToShow()?(s.onMouseenter=this.onMouseenter,n&&(s.onMousemove=this.onMouseMove)):s.onMouseenter=this.createTwoChains("onMouseenter"),this.isMouseLeaveToHide()?s.onMouseleave=this.onMouseleave:s.onMouseleave=this.createTwoChains("onMouseleave"),this.isFocusToShow()||this.isBlurToHide()?(s.onFocus=this.onFocus,s.onBlur=this.onBlur):(s.onFocus=this.createTwoChains("onFocus"),s.onBlur=e=>{!e||e.relatedTarget&&(0,c.A)(e.target,e.relatedTarget)||this.createTwoChains("onBlur")(e)});const l=(0,_.A)(a&&a.props&&a.props.class,e.class);l&&(s.class=l);const u=(0,Xe.Ob)(a,(0,r.A)((0,r.A)({},s),{ref:"triggerRef"}),!0,!0),d=(0,o.createVNode)(ft.A,{key:"portal",getContainer:i&&(()=>i(this.getRootDomNode())),didUpdate:this.handlePortalUpdate,visible:this.$data.sPopupVisible},{default:this.getComponent});return(0,o.createVNode)(o.Fragment,null,[u,d])}}),yt=vt},1684:function(e,t,n){"use strict";function r(e){let{prefixCls:t,animation:n,transitionName:r}=e;return n?{name:`${t}-${n}`}:r?{name:r}:{}}n.d(t,{V:function(){return r}})},74220:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var r=n(36476);function o(e,t,n,o){if(e&&e.addEventListener){let i=o;void 0!==i||!r.A||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i={passive:!1}),e.addEventListener(t,n,i)}return{remove:()=>{e&&e.removeEventListener&&e.removeEventListener(t,n)}}}},12648:function(e,t,n){"use strict";function r(e,t){return!!e&&(!!e.contains&&e.contains(t))}n.d(t,{A:function(){return r}})},59662:function(e,t,n){"use strict";n.d(t,{A3:function(){return o},XV:function(){return r},Xf:function(){return i}});function r(){const e=document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:e,height:t}}function o(e){const t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.scrollX||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.scrollY||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}function i(e){return Object.keys(e).reduce(((t,n)=>{const r=e[n];return"undefined"===typeof r||null===r||(t+=`${n}: ${e[n]};`),t}),"")}},92337:function(e,t,n){"use strict";n.d(t,{BD:function(){return m},m6:function(){return f}});var r=n(58590),o=n(12648);const i="data-vc-order",a="vc-util-key",s=new Map;function l(){let{mark:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e?e.startsWith("data-")?e:`data-${e}`:a}function u(e){if(e.attachTo)return e.attachTo;const t=document.querySelector("head");return t||document.body}function c(e){return"queue"===e?"prependQueue":e?"prepend":"append"}function d(e){return Array.from((s.get(e)||e).children).filter((e=>"STYLE"===e.tagName))}function h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(0,r.A)())return null;const{csp:n,prepend:o}=t,a=document.createElement("style");a.setAttribute(i,c(o)),(null===n||void 0===n?void 0:n.nonce)&&(a.nonce=null===n||void 0===n?void 0:n.nonce),a.innerHTML=e;const s=u(t),{firstChild:l}=s;if(o){if("queue"===o){const e=d(s).filter((e=>["prepend","prependQueue"].includes(e.getAttribute(i))));if(e.length)return s.insertBefore(a,e[e.length-1].nextSibling),a}s.insertBefore(a,l)}else s.appendChild(a);return a}function p(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=u(t);return d(n).find((n=>n.getAttribute(l(t))===e))}function f(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=p(e,t);if(n){const e=u(t);e.removeChild(n)}}function g(e,t){const n=s.get(e);if(!n||!(0,o.A)(document,n)){const n=h("",t),{parentNode:r}=n;s.set(e,r),e.removeChild(n)}}function m(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var r,o,i;const a=u(n);g(a,n);const s=p(t,n);if(s)return(null===(r=n.csp)||void 0===r?void 0:r.nonce)&&s.nonce!==(null===(o=n.csp)||void 0===o?void 0:o.nonce)&&(s.nonce=null===(i=n.csp)||void 0===i?void 0:i.nonce),s.innerHTML!==e&&(s.innerHTML=e),s;const c=h(e,n);return c.setAttribute(l(n),t),c}},27987:function(e,t){"use strict";t.A=e=>{if(!e)return!1;if(e.offsetParent)return!0;if(e.getBBox){const t=e.getBBox();if(t.width||t.height)return!0}if(e.getBoundingClientRect){const t=e.getBoundingClientRect();if(t.width||t.height)return!0}return!1}},37205:function(e,t,n){"use strict";var r=n(52002);t.A=(e,t,n)=>{(0,r.Ay)(e,`[ant-design-vue: ${t}] ${n}`)}},72510:function(e,t){"use strict";t.A=()=>{if("undefined"===typeof navigator||"undefined"===typeof window)return!1;const e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null===e||void 0===e?void 0:e.substring(0,4))}},52002:function(e,t,n){"use strict";n.d(t,{$e:function(){return o}});let r={};function o(e,t){0}function i(e,t,n){t||r[n]||(e(!1,n),r[n]=!0)}function a(e,t){i(o,e,t)}t.Ay=a},41647:function(e,t,n){"use strict";var r,o;function i(e,t,n){var r=function(t,n){return e.js_beautify(t,n)};return r.js=e.js_beautify,r.css=t.css_beautify,r.html=n.html_beautify,r.js_beautify=e.js_beautify,r.css_beautify=t.css_beautify,r.html_beautify=n.html_beautify,r}r=[n(37590),n(23028),n(90598)],o=function(e,t,n){return i(e,t,n)}.apply(t,r),void 0===o||(e.exports=o)},23028:function(e,t,n){var r,o;n(30381),function(){var n;(function(){"use strict";var e=[,,function(e){function t(e){this.__parent=e,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}function n(e,t){this.__cache=[""],this.__indent_size=e.indent_size,this.__indent_string=e.indent_char,e.indent_with_tabs||(this.__indent_string=new Array(e.indent_size+1).join(e.indent_char)),t=t||"",e.indent_level>0&&(t=new Array(e.indent_level+1).join(this.__indent_string)),this.__base_string=t,this.__base_string_length=t.length}function r(e,r){this.__indent_cache=new n(e,r),this.raw=!1,this._end_with_newline=e.end_with_newline,this.indent_size=e.indent_size,this.wrap_line_length=e.wrap_line_length,this.indent_empty_lines=e.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new t(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}t.prototype.clone_empty=function(){var e=new t(this.__parent);return e.set_indent(this.__indent_count,this.__alignment_count),e},t.prototype.item=function(e){return e<0?this.__items[this.__items.length+e]:this.__items[e]},t.prototype.has_match=function(e){for(var t=this.__items.length-1;t>=0;t--)if(this.__items[t].match(e))return!0;return!1},t.prototype.set_indent=function(e,t){this.is_empty()&&(this.__indent_count=e||0,this.__alignment_count=t||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},t.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},t.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},t.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var e=this.__parent.current_line;return e.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),e.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),e.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===e.__items[0]&&(e.__items.splice(0,1),e.__character_count-=1),!0}return!1},t.prototype.is_empty=function(){return 0===this.__items.length},t.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},t.prototype.push=function(e){this.__items.push(e);var t=e.lastIndexOf("\n");-1!==t?this.__character_count=e.length-t:this.__character_count+=e.length},t.prototype.pop=function(){var e=null;return this.is_empty()||(e=this.__items.pop(),this.__character_count-=e.length),e},t.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},t.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},t.prototype.trim=function(){while(" "===this.last())this.__items.pop(),this.__character_count-=1},t.prototype.toString=function(){var e="";return this.is_empty()?this.__parent.indent_empty_lines&&(e=this.__parent.get_indent_string(this.__indent_count)):(e=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),e+=this.__items.join("")),e},n.prototype.get_indent_size=function(e,t){var n=this.__base_string_length;return t=t||0,e<0&&(n=0),n+=e*this.__indent_size,n+=t,n},n.prototype.get_indent_string=function(e,t){var n=this.__base_string;return t=t||0,e<0&&(e=0,n=""),t+=e*this.__indent_size,this.__ensure_cache(t),n+=this.__cache[t],n},n.prototype.__ensure_cache=function(e){while(e>=this.__cache.length)this.__add_column()},n.prototype.__add_column=function(){var e=this.__cache.length,t=0,n="";this.__indent_size&&e>=this.__indent_size&&(t=Math.floor(e/this.__indent_size),e-=t*this.__indent_size,n=new Array(t+1).join(this.__indent_string)),e&&(n+=new Array(e+1).join(" ")),this.__cache.push(n)},r.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},r.prototype.get_line_number=function(){return this.__lines.length},r.prototype.get_indent_string=function(e,t){return this.__indent_cache.get_indent_string(e,t)},r.prototype.get_indent_size=function(e,t){return this.__indent_cache.get_indent_size(e,t)},r.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},r.prototype.add_new_line=function(e){return!(this.is_empty()||!e&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},r.prototype.get_code=function(e){this.trim(!0);var t=this.current_line.pop();t&&("\n"===t[t.length-1]&&(t=t.replace(/\n+$/g,"")),this.current_line.push(t)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join("\n");return"\n"!==e&&(n=n.replace(/[\n]/g,e)),n},r.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},r.prototype.set_indent=function(e,t){return e=e||0,t=t||0,this.next_line.set_indent(e,t),this.__lines.length>1?(this.current_line.set_indent(e,t),!0):(this.current_line.set_indent(),!1)},r.prototype.add_raw_token=function(e){for(var t=0;t<e.newlines;t++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(e.whitespace_before),this.current_line.push(e.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},r.prototype.add_token=function(e){this.__add_space_before_token(),this.current_line.push(e),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},r.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},r.prototype.remove_indent=function(e){var t=this.__lines.length;while(e<t)this.__lines[e]._remove_indent(),e++;this.current_line._remove_wrap_indent()},r.prototype.trim=function(e){e=void 0!==e&&e,this.current_line.trim();while(e&&this.__lines.length>1&&this.current_line.is_empty())this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},r.prototype.just_added_newline=function(){return this.current_line.is_empty()},r.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},r.prototype.ensure_empty_line_above=function(e,n){var r=this.__lines.length-2;while(r>=0){var o=this.__lines[r];if(o.is_empty())break;if(0!==o.item(0).indexOf(e)&&o.item(-1)!==n){this.__lines.splice(r+1,0,new t(this)),this.previous_line=this.__lines[this.__lines.length-2];break}r--}},e.exports.Output=r},,,,function(e){function t(e,t){this.raw_options=n(e,t),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs","\t"===this.indent_char),this.indent_with_tabs&&(this.indent_char="\t",1===this.indent_size&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}function n(e,t){var n,o={};for(n in e=r(e),e)n!==t&&(o[n]=e[n]);if(t&&e[t])for(n in e[t])o[n]=e[t][n];return o}function r(e){var t,n={};for(t in e){var r=t.replace(/-/g,"_");n[r]=e[t]}return n}t.prototype._get_array=function(e,t){var n=this.raw_options[e],r=t||[];return"object"===typeof n?null!==n&&"function"===typeof n.concat&&(r=n.concat()):"string"===typeof n&&(r=n.split(/[^a-zA-Z0-9_\/\-]+/)),r},t.prototype._get_boolean=function(e,t){var n=this.raw_options[e],r=void 0===n?!!t:!!n;return r},t.prototype._get_characters=function(e,t){var n=this.raw_options[e],r=t||"";return"string"===typeof n&&(r=n.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t")),r},t.prototype._get_number=function(e,t){var n=this.raw_options[e];t=parseInt(t,10),isNaN(t)&&(t=0);var r=parseInt(n,10);return isNaN(r)&&(r=t),r},t.prototype._get_selection=function(e,t,n){var r=this._get_selection_list(e,t,n);if(1!==r.length)throw new Error("Invalid Option Value: The option '"+e+"' can only be one of the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return r[0]},t.prototype._get_selection_list=function(e,t,n){if(!t||0===t.length)throw new Error("Selection list cannot be empty.");if(n=n||[t[0]],!this._is_valid_selection(n,t))throw new Error("Invalid Default Value!");var r=this._get_array(e,n);if(!this._is_valid_selection(r,t))throw new Error("Invalid Option Value: The option '"+e+"' can contain only the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return r},t.prototype._is_valid_selection=function(e,t){return e.length&&t.length&&!e.some((function(e){return-1===t.indexOf(e)}))},e.exports.Options=t,e.exports.normalizeOpts=r,e.exports.mergeOpts=n},,function(e){var t=RegExp.prototype.hasOwnProperty("sticky");function n(e){this.__input=e||"",this.__input_length=this.__input.length,this.__position=0}n.prototype.restart=function(){this.__position=0},n.prototype.back=function(){this.__position>0&&(this.__position-=1)},n.prototype.hasNext=function(){return this.__position<this.__input_length},n.prototype.next=function(){var e=null;return this.hasNext()&&(e=this.__input.charAt(this.__position),this.__position+=1),e},n.prototype.peek=function(e){var t=null;return e=e||0,e+=this.__position,e>=0&&e<this.__input_length&&(t=this.__input.charAt(e)),t},n.prototype.__match=function(e,n){e.lastIndex=n;var r=e.exec(this.__input);return!r||t&&e.sticky||r.index!==n&&(r=null),r},n.prototype.test=function(e,t){return t=t||0,t+=this.__position,t>=0&&t<this.__input_length&&!!this.__match(e,t)},n.prototype.testChar=function(e,t){var n=this.peek(t);return e.lastIndex=0,null!==n&&e.test(n)},n.prototype.match=function(e){var t=this.__match(e,this.__position);return t?this.__position+=t[0].length:t=null,t},n.prototype.read=function(e,t,n){var r,o="";return e&&(r=this.match(e),r&&(o+=r[0])),!t||!r&&e||(o+=this.readUntil(t,n)),o},n.prototype.readUntil=function(e,t){var n="",r=this.__position;e.lastIndex=this.__position;var o=e.exec(this.__input);return o?(r=o.index,t&&(r+=o[0].length)):r=this.__input_length,n=this.__input.substring(this.__position,r),this.__position=r,n},n.prototype.readUntilAfter=function(e){return this.readUntil(e,!0)},n.prototype.get_regexp=function(e,n){var r=null,o="g";return n&&t&&(o="y"),"string"===typeof e&&""!==e?r=new RegExp(e,o):e&&(r=new RegExp(e.source,o)),r},n.prototype.get_literal_regexp=function(e){return RegExp(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},n.prototype.peekUntilAfter=function(e){var t=this.__position,n=this.readUntilAfter(e);return this.__position=t,n},n.prototype.lookBack=function(e){var t=this.__position-1;return t>=e.length&&this.__input.substring(t-e.length,t).toLowerCase()===e},e.exports.InputScanner=n},,,,,function(e){function t(e,t){e="string"===typeof e?e:e.source,t="string"===typeof t?t:t.source,this.__directives_block_pattern=new RegExp(e+/ beautify( \w+[:]\w+)+ /.source+t,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(e+/\sbeautify\signore:end\s/.source+t,"g")}t.prototype.get_directives=function(e){if(!e.match(this.__directives_block_pattern))return null;var t={};this.__directive_pattern.lastIndex=0;var n=this.__directive_pattern.exec(e);while(n)t[n[1]]=n[2],n=this.__directive_pattern.exec(e);return t},t.prototype.readIgnored=function(e){return e.readUntilAfter(this.__directives_end_ignore_pattern)},e.exports.Directives=t},,function(e,t,n){var r=n(16).Beautifier,o=n(17).Options;function i(e,t){var n=new r(e,t);return n.beautify()}e.exports=i,e.exports.defaultOptions=function(){return new o}},function(e,t,n){var r=n(17).Options,o=n(2).Output,i=n(8).InputScanner,a=n(13).Directives,s=new a(/\/\*/,/\*\//),l=/\r\n|[\r\n]/,u=/\r\n|[\r\n]/g,c=/\s/,d=/(?:\s|\n)+/g,h=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,p=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function f(e,t){this._source_text=e||"",this._options=new r(t),this._ch=null,this._input=null,this.NESTED_AT_RULE={page:!0,"font-face":!0,keyframes:!0,media:!0,supports:!0,document:!0},this.CONDITIONAL_GROUP_RULE={media:!0,supports:!0,document:!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}f.prototype.eatString=function(e){var t="";this._ch=this._input.next();while(this._ch){if(t+=this._ch,"\\"===this._ch)t+=this._input.next();else if(-1!==e.indexOf(this._ch)||"\n"===this._ch)break;this._ch=this._input.next()}return t},f.prototype.eatWhitespace=function(e){var t=c.test(this._input.peek()),n=0;while(c.test(this._input.peek()))this._ch=this._input.next(),e&&"\n"===this._ch&&(0===n||n<this._options.max_preserve_newlines)&&(n++,this._output.add_new_line(!0));return t},f.prototype.foundNestedPseudoClass=function(){var e=0,t=1,n=this._input.peek(t);while(n){if("{"===n)return!0;if("("===n)e+=1;else if(")"===n){if(0===e)return!1;e-=1}else if(";"===n||"}"===n)return!1;t++,n=this._input.peek(t)}return!1},f.prototype.print_string=function(e){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(e)},f.prototype.preserveSingleSpace=function(e){e&&(this._output.space_before_token=!0)},f.prototype.indent=function(){this._indentLevel++},f.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},f.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e=this._source_text,t=this._options.eol;"auto"===t&&(t="\n",e&&l.test(e||"")&&(t=e.match(l)[0])),e=e.replace(u,"\n");var n=e.match(/^[\t ]*/)[0];this._output=new o(this._options,n),this._input=new i(e),this._indentLevel=0,this._nestedLevel=0,this._ch=null;var r,a,f,g=0,m=!1,v=!1,y=!1,b=!1,_=!1,x=this._ch,w=!1;while(1){if(r=this._input.read(d),a=""!==r,f=x,this._ch=this._input.next(),"\\"===this._ch&&this._input.hasNext()&&(this._ch+=this._input.next()),x=this._ch,!this._ch)break;if("/"===this._ch&&"*"===this._input.peek()){this._output.add_new_line(),this._input.back();var O=this._input.read(h),S=s.get_directives(O);S&&"start"===S.ignore&&(O+=s.readIgnored(this._input)),this.print_string(O),this.eatWhitespace(!0),this._output.add_new_line()}else if("/"===this._ch&&"/"===this._input.peek())this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(p)),this.eatWhitespace(!0);else if("$"===this._ch){this.preserveSingleSpace(a),this.print_string(this._ch);var A=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);A.match(/[ :]$/)&&(A=this.eatString(": ").replace(/\s+$/,""),this.print_string(A),this._output.space_before_token=!0),0===g&&-1!==A.indexOf(":")&&(v=!0,this.indent())}else if("@"===this._ch)if(this.preserveSingleSpace(a),"{"===this._input.peek())this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var k=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);k.match(/[ :]$/)&&(k=this.eatString(": ").replace(/\s+$/,""),this.print_string(k),this._output.space_before_token=!0),0===g&&-1!==k.indexOf(":")?(v=!0,this.indent()):k in this.NESTED_AT_RULE?(this._nestedLevel+=1,k in this.CONDITIONAL_GROUP_RULE&&(y=!0)):0!==g||v||(b=!0)}else if("#"===this._ch&&"{"===this._input.peek())this.preserveSingleSpace(a),this.print_string(this._ch+this.eatString("}"));else if("{"===this._ch)v&&(v=!1,this.outdent()),b=!1,y?(y=!1,m=this._indentLevel>=this._nestedLevel):m=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&m&&this._output.previous_line&&"{"!==this._output.previous_line.item(-1)&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,"expand"===this._options.brace_style?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):("("===f?this._output.space_before_token=!1:","!==f&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if("}"===this._ch)this.outdent(),this._output.add_new_line(),"{"===f&&this._output.trim(!0),v&&(this.outdent(),v=!1),this.print_string(this._ch),m=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&"}"!==this._input.peek()&&this._output.add_new_line(!0),")"===this._input.peek()&&(this._output.trim(!0),"expand"===this._options.brace_style&&this._output.add_new_line(!0));else if(":"===this._ch){for(var C=0;C<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;C++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[C])){w=!0;break}!m&&!y||this._input.lookBack("&")||this.foundNestedPseudoClass()||this._input.lookBack("(")||b||0!==g?(this._input.lookBack(" ")&&(this._output.space_before_token=!0),":"===this._input.peek()?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":")):(this.print_string(":"),v||(v=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent()))}else if('"'===this._ch||"'"===this._ch){var M='"'===f||"'"===f;this.preserveSingleSpace(M||a),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(";"===this._ch)w=!1,0===g?(v&&(this.outdent(),v=!1),b=!1,this.print_string(this._ch),this.eatWhitespace(!0),"/"!==this._input.peek()&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0);else if("("===this._ch)if(this._input.lookBack("url"))this.print_string(this._ch),this.eatWhitespace(),g++,this.indent(),this._ch=this._input.next(),")"===this._ch||'"'===this._ch||"'"===this._ch?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),g&&(g--,this.outdent()));else{var T=!1;this._input.lookBack("with")&&(T=!0),this.preserveSingleSpace(a||T),this.print_string(this._ch),v&&"$"===f&&this._options.selector_separator_newline?(this._output.add_new_line(),_=!0):(this.eatWhitespace(),g++,this.indent())}else if(")"===this._ch)g&&(g--,this.outdent()),_&&";"===this._input.peek()&&this._options.selector_separator_newline&&(_=!1,this.outdent(),this._output.add_new_line()),this.print_string(this._ch);else if(","===this._ch)this.print_string(this._ch),this.eatWhitespace(!0),!this._options.selector_separator_newline||v&&!_||0!==g||b?this._output.space_before_token=!0:this._output.add_new_line();else if(">"!==this._ch&&"+"!==this._ch&&"~"!==this._ch||v||0!==g)if("]"===this._ch)this.print_string(this._ch);else if("["===this._ch)this.preserveSingleSpace(a),this.print_string(this._ch);else if("="===this._ch)this.eatWhitespace(),this.print_string("="),c.test(this._ch)&&(this._ch="");else if("!"!==this._ch||this._input.lookBack("\\")){var P='"'===f||"'"===f;this.preserveSingleSpace(P||a),this.print_string(this._ch),!this._output.just_added_newline()&&"\n"===this._input.peek()&&w&&this._output.add_new_line()}else this._output.space_before_token=!0,this.print_string(this._ch);else this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&c.test(this._ch)&&(this._ch=""))}var I=this._output.get_code(t);return I},e.exports.Beautifier=f},function(e,t,n){var r=n(6).Options;function o(e){r.call(this,e,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var t=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||t;var n=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var o=0;o<n.length;o++)"expand"!==n[o]?this.brace_style="collapse":this.brace_style=n[o]}o.prototype=new r,e.exports.Options=o}],t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}var o=r(15);n=o})();var i=n;r=[],o=function(){return{css_beautify:i}}.apply(t,r),void 0===o||(e.exports=o)}()},90598:function(e,t,n){var r,o;n(30381),function(){var i;(function(){"use strict";var e=[,,function(e){function t(e){this.__parent=e,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}function n(e,t){this.__cache=[""],this.__indent_size=e.indent_size,this.__indent_string=e.indent_char,e.indent_with_tabs||(this.__indent_string=new Array(e.indent_size+1).join(e.indent_char)),t=t||"",e.indent_level>0&&(t=new Array(e.indent_level+1).join(this.__indent_string)),this.__base_string=t,this.__base_string_length=t.length}function r(e,r){this.__indent_cache=new n(e,r),this.raw=!1,this._end_with_newline=e.end_with_newline,this.indent_size=e.indent_size,this.wrap_line_length=e.wrap_line_length,this.indent_empty_lines=e.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new t(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}t.prototype.clone_empty=function(){var e=new t(this.__parent);return e.set_indent(this.__indent_count,this.__alignment_count),e},t.prototype.item=function(e){return e<0?this.__items[this.__items.length+e]:this.__items[e]},t.prototype.has_match=function(e){for(var t=this.__items.length-1;t>=0;t--)if(this.__items[t].match(e))return!0;return!1},t.prototype.set_indent=function(e,t){this.is_empty()&&(this.__indent_count=e||0,this.__alignment_count=t||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},t.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},t.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},t.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var e=this.__parent.current_line;return e.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),e.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),e.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===e.__items[0]&&(e.__items.splice(0,1),e.__character_count-=1),!0}return!1},t.prototype.is_empty=function(){return 0===this.__items.length},t.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},t.prototype.push=function(e){this.__items.push(e);var t=e.lastIndexOf("\n");-1!==t?this.__character_count=e.length-t:this.__character_count+=e.length},t.prototype.pop=function(){var e=null;return this.is_empty()||(e=this.__items.pop(),this.__character_count-=e.length),e},t.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},t.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},t.prototype.trim=function(){while(" "===this.last())this.__items.pop(),this.__character_count-=1},t.prototype.toString=function(){var e="";return this.is_empty()?this.__parent.indent_empty_lines&&(e=this.__parent.get_indent_string(this.__indent_count)):(e=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),e+=this.__items.join("")),e},n.prototype.get_indent_size=function(e,t){var n=this.__base_string_length;return t=t||0,e<0&&(n=0),n+=e*this.__indent_size,n+=t,n},n.prototype.get_indent_string=function(e,t){var n=this.__base_string;return t=t||0,e<0&&(e=0,n=""),t+=e*this.__indent_size,this.__ensure_cache(t),n+=this.__cache[t],n},n.prototype.__ensure_cache=function(e){while(e>=this.__cache.length)this.__add_column()},n.prototype.__add_column=function(){var e=this.__cache.length,t=0,n="";this.__indent_size&&e>=this.__indent_size&&(t=Math.floor(e/this.__indent_size),e-=t*this.__indent_size,n=new Array(t+1).join(this.__indent_string)),e&&(n+=new Array(e+1).join(" ")),this.__cache.push(n)},r.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},r.prototype.get_line_number=function(){return this.__lines.length},r.prototype.get_indent_string=function(e,t){return this.__indent_cache.get_indent_string(e,t)},r.prototype.get_indent_size=function(e,t){return this.__indent_cache.get_indent_size(e,t)},r.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},r.prototype.add_new_line=function(e){return!(this.is_empty()||!e&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},r.prototype.get_code=function(e){this.trim(!0);var t=this.current_line.pop();t&&("\n"===t[t.length-1]&&(t=t.replace(/\n+$/g,"")),this.current_line.push(t)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join("\n");return"\n"!==e&&(n=n.replace(/[\n]/g,e)),n},r.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},r.prototype.set_indent=function(e,t){return e=e||0,t=t||0,this.next_line.set_indent(e,t),this.__lines.length>1?(this.current_line.set_indent(e,t),!0):(this.current_line.set_indent(),!1)},r.prototype.add_raw_token=function(e){for(var t=0;t<e.newlines;t++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(e.whitespace_before),this.current_line.push(e.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},r.prototype.add_token=function(e){this.__add_space_before_token(),this.current_line.push(e),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},r.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},r.prototype.remove_indent=function(e){var t=this.__lines.length;while(e<t)this.__lines[e]._remove_indent(),e++;this.current_line._remove_wrap_indent()},r.prototype.trim=function(e){e=void 0!==e&&e,this.current_line.trim();while(e&&this.__lines.length>1&&this.current_line.is_empty())this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},r.prototype.just_added_newline=function(){return this.current_line.is_empty()},r.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},r.prototype.ensure_empty_line_above=function(e,n){var r=this.__lines.length-2;while(r>=0){var o=this.__lines[r];if(o.is_empty())break;if(0!==o.item(0).indexOf(e)&&o.item(-1)!==n){this.__lines.splice(r+1,0,new t(this)),this.previous_line=this.__lines[this.__lines.length-2];break}r--}},e.exports.Output=r},function(e){function t(e,t,n,r){this.type=e,this.text=t,this.comments_before=null,this.newlines=n||0,this.whitespace_before=r||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}e.exports.Token=t},,,function(e){function t(e,t){this.raw_options=n(e,t),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs","\t"===this.indent_char),this.indent_with_tabs&&(this.indent_char="\t",1===this.indent_size&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}function n(e,t){var n,o={};for(n in e=r(e),e)n!==t&&(o[n]=e[n]);if(t&&e[t])for(n in e[t])o[n]=e[t][n];return o}function r(e){var t,n={};for(t in e){var r=t.replace(/-/g,"_");n[r]=e[t]}return n}t.prototype._get_array=function(e,t){var n=this.raw_options[e],r=t||[];return"object"===typeof n?null!==n&&"function"===typeof n.concat&&(r=n.concat()):"string"===typeof n&&(r=n.split(/[^a-zA-Z0-9_\/\-]+/)),r},t.prototype._get_boolean=function(e,t){var n=this.raw_options[e],r=void 0===n?!!t:!!n;return r},t.prototype._get_characters=function(e,t){var n=this.raw_options[e],r=t||"";return"string"===typeof n&&(r=n.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t")),r},t.prototype._get_number=function(e,t){var n=this.raw_options[e];t=parseInt(t,10),isNaN(t)&&(t=0);var r=parseInt(n,10);return isNaN(r)&&(r=t),r},t.prototype._get_selection=function(e,t,n){var r=this._get_selection_list(e,t,n);if(1!==r.length)throw new Error("Invalid Option Value: The option '"+e+"' can only be one of the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return r[0]},t.prototype._get_selection_list=function(e,t,n){if(!t||0===t.length)throw new Error("Selection list cannot be empty.");if(n=n||[t[0]],!this._is_valid_selection(n,t))throw new Error("Invalid Default Value!");var r=this._get_array(e,n);if(!this._is_valid_selection(r,t))throw new Error("Invalid Option Value: The option '"+e+"' can contain only the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return r},t.prototype._is_valid_selection=function(e,t){return e.length&&t.length&&!e.some((function(e){return-1===t.indexOf(e)}))},e.exports.Options=t,e.exports.normalizeOpts=r,e.exports.mergeOpts=n},,function(e){var t=RegExp.prototype.hasOwnProperty("sticky");function n(e){this.__input=e||"",this.__input_length=this.__input.length,this.__position=0}n.prototype.restart=function(){this.__position=0},n.prototype.back=function(){this.__position>0&&(this.__position-=1)},n.prototype.hasNext=function(){return this.__position<this.__input_length},n.prototype.next=function(){var e=null;return this.hasNext()&&(e=this.__input.charAt(this.__position),this.__position+=1),e},n.prototype.peek=function(e){var t=null;return e=e||0,e+=this.__position,e>=0&&e<this.__input_length&&(t=this.__input.charAt(e)),t},n.prototype.__match=function(e,n){e.lastIndex=n;var r=e.exec(this.__input);return!r||t&&e.sticky||r.index!==n&&(r=null),r},n.prototype.test=function(e,t){return t=t||0,t+=this.__position,t>=0&&t<this.__input_length&&!!this.__match(e,t)},n.prototype.testChar=function(e,t){var n=this.peek(t);return e.lastIndex=0,null!==n&&e.test(n)},n.prototype.match=function(e){var t=this.__match(e,this.__position);return t?this.__position+=t[0].length:t=null,t},n.prototype.read=function(e,t,n){var r,o="";return e&&(r=this.match(e),r&&(o+=r[0])),!t||!r&&e||(o+=this.readUntil(t,n)),o},n.prototype.readUntil=function(e,t){var n="",r=this.__position;e.lastIndex=this.__position;var o=e.exec(this.__input);return o?(r=o.index,t&&(r+=o[0].length)):r=this.__input_length,n=this.__input.substring(this.__position,r),this.__position=r,n},n.prototype.readUntilAfter=function(e){return this.readUntil(e,!0)},n.prototype.get_regexp=function(e,n){var r=null,o="g";return n&&t&&(o="y"),"string"===typeof e&&""!==e?r=new RegExp(e,o):e&&(r=new RegExp(e.source,o)),r},n.prototype.get_literal_regexp=function(e){return RegExp(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},n.prototype.peekUntilAfter=function(e){var t=this.__position,n=this.readUntilAfter(e);return this.__position=t,n},n.prototype.lookBack=function(e){var t=this.__position-1;return t>=e.length&&this.__input.substring(t-e.length,t).toLowerCase()===e},e.exports.InputScanner=n},function(e,t,n){var r=n(8).InputScanner,o=n(3).Token,i=n(10).TokenStream,a=n(11).WhitespacePattern,s={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},l=function(e,t){this._input=new r(e),this._options=t||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new a(this._input)};l.prototype.tokenize=function(){var e;this._input.restart(),this.__tokens=new i,this._reset();var t=new o(s.START,""),n=null,r=[],a=new i;while(t.type!==s.EOF){e=this._get_next_token(t,n);while(this._is_comment(e))a.add(e),e=this._get_next_token(t,n);a.isEmpty()||(e.comments_before=a,a=new i),e.parent=n,this._is_opening(e)?(r.push(n),n=e):n&&this._is_closing(e,n)&&(e.opened=n,n.closed=e,n=r.pop(),e.parent=n),e.previous=t,t.next=e,this.__tokens.add(e),t=e}return this.__tokens},l.prototype._is_first_token=function(){return this.__tokens.isEmpty()},l.prototype._reset=function(){},l.prototype._get_next_token=function(e,t){this._readWhitespace();var n=this._input.read(/.+/g);return n?this._create_token(s.RAW,n):this._create_token(s.EOF,"")},l.prototype._is_comment=function(e){return!1},l.prototype._is_opening=function(e){return!1},l.prototype._is_closing=function(e,t){return!1},l.prototype._create_token=function(e,t){var n=new o(e,t,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return n},l.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},e.exports.Tokenizer=l,e.exports.TOKEN=s},function(e){function t(e){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=e}t.prototype.restart=function(){this.__position=0},t.prototype.isEmpty=function(){return 0===this.__tokens_length},t.prototype.hasNext=function(){return this.__position<this.__tokens_length},t.prototype.next=function(){var e=null;return this.hasNext()&&(e=this.__tokens[this.__position],this.__position+=1),e},t.prototype.peek=function(e){var t=null;return e=e||0,e+=this.__position,e>=0&&e<this.__tokens_length&&(t=this.__tokens[e]),t},t.prototype.add=function(e){this.__parent_token&&(e.parent=this.__parent_token),this.__tokens.push(e),this.__tokens_length+=1},e.exports.TokenStream=t},function(e,t,n){var r=n(12).Pattern;function o(e,t){r.call(this,e,t),t?this._line_regexp=this._input.get_regexp(t._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}o.prototype=new r,o.prototype.__set_whitespace_patterns=function(e,t){e+="\\t ",t+="\\n\\r",this._match_pattern=this._input.get_regexp("["+e+t+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+t+"]")},o.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var e=this._input.read(this._match_pattern);if(" "===e)this.whitespace_before_token=" ";else if(e){var t=this.__split(this._newline_regexp,e);this.newline_count=t.length-1,this.whitespace_before_token=t[this.newline_count]}return e},o.prototype.matching=function(e,t){var n=this._create();return n.__set_whitespace_patterns(e,t),n._update(),n},o.prototype._create=function(){return new o(this._input,this)},o.prototype.__split=function(e,t){e.lastIndex=0;var n=0,r=[],o=e.exec(t);while(o)r.push(t.substring(n,o.index)),n=o.index+o[0].length,o=e.exec(t);return n<t.length?r.push(t.substring(n,t.length)):r.push(""),r},e.exports.WhitespacePattern=o},function(e){function t(e,t){this._input=e,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,t&&(this._starting_pattern=this._input.get_regexp(t._starting_pattern,!0),this._match_pattern=this._input.get_regexp(t._match_pattern,!0),this._until_pattern=this._input.get_regexp(t._until_pattern),this._until_after=t._until_after)}t.prototype.read=function(){var e=this._input.read(this._starting_pattern);return this._starting_pattern&&!e||(e+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),e},t.prototype.read_match=function(){return this._input.match(this._match_pattern)},t.prototype.until_after=function(e){var t=this._create();return t._until_after=!0,t._until_pattern=this._input.get_regexp(e),t._update(),t},t.prototype.until=function(e){var t=this._create();return t._until_after=!1,t._until_pattern=this._input.get_regexp(e),t._update(),t},t.prototype.starting_with=function(e){var t=this._create();return t._starting_pattern=this._input.get_regexp(e,!0),t._update(),t},t.prototype.matching=function(e){var t=this._create();return t._match_pattern=this._input.get_regexp(e,!0),t._update(),t},t.prototype._create=function(){return new t(this._input,this)},t.prototype._update=function(){},e.exports.Pattern=t},function(e){function t(e,t){e="string"===typeof e?e:e.source,t="string"===typeof t?t:t.source,this.__directives_block_pattern=new RegExp(e+/ beautify( \w+[:]\w+)+ /.source+t,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(e+/\sbeautify\signore:end\s/.source+t,"g")}t.prototype.get_directives=function(e){if(!e.match(this.__directives_block_pattern))return null;var t={};this.__directive_pattern.lastIndex=0;var n=this.__directive_pattern.exec(e);while(n)t[n[1]]=n[2],n=this.__directive_pattern.exec(e);return t},t.prototype.readIgnored=function(e){return e.readUntilAfter(this.__directives_end_ignore_pattern)},e.exports.Directives=t},function(e,t,n){var r=n(12).Pattern,o={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function i(e,t){r.call(this,e,t),this.__template_pattern=null,this._disabled=Object.assign({},o),this._excluded=Object.assign({},o),t&&(this.__template_pattern=this._input.get_regexp(t.__template_pattern),this._excluded=Object.assign(this._excluded,t._excluded),this._disabled=Object.assign(this._disabled,t._disabled));var n=new r(e);this.__patterns={handlebars_comment:n.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:n.starting_with(/{{{/).until_after(/}}}/),handlebars:n.starting_with(/{{/).until_after(/}}/),php:n.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:n.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:n.starting_with(/{%/).until_after(/%}/),django_value:n.starting_with(/{{/).until_after(/}}/),django_comment:n.starting_with(/{#/).until_after(/#}/),smarty:n.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:n.starting_with(/{\*/).until_after(/\*}/),smarty_literal:n.starting_with(/{literal}/).until_after(/{\/literal}/)}}i.prototype=new r,i.prototype._create=function(){return new i(this._input,this)},i.prototype._update=function(){this.__set_templated_pattern()},i.prototype.disable=function(e){var t=this._create();return t._disabled[e]=!0,t._update(),t},i.prototype.read_options=function(e){var t=this._create();for(var n in o)t._disabled[n]=-1===e.templating.indexOf(n);return t._update(),t},i.prototype.exclude=function(e){var t=this._create();return t._excluded[e]=!0,t._update(),t},i.prototype.read=function(){var e="";e=this._match_pattern?this._input.read(this._starting_pattern):this._input.read(this._starting_pattern,this.__template_pattern);var t=this._read_template();while(t)this._match_pattern?t+=this._input.read(this._match_pattern):t+=this._input.readUntil(this.__template_pattern),e+=t,t=this._read_template();return this._until_after&&(e+=this._input.readUntilAfter(this._until_pattern)),e},i.prototype.__set_templated_pattern=function(){var e=[];this._disabled.php||e.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||e.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||e.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(e.push(this.__patterns.django._starting_pattern.source),e.push(this.__patterns.django_value._starting_pattern.source),e.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||e.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&e.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+e.join("|")+")")},i.prototype._read_template=function(){var e="",t=this._input.peek();if("<"===t){var n=this._input.peek(1);this._disabled.php||this._excluded.php||"?"!==n||(e=e||this.__patterns.php.read()),this._disabled.erb||this._excluded.erb||"%"!==n||(e=e||this.__patterns.erb.read())}else"{"===t&&(this._disabled.handlebars||this._excluded.handlebars||(e=e||this.__patterns.handlebars_comment.read(),e=e||this.__patterns.handlebars_unescaped.read(),e=e||this.__patterns.handlebars.read()),this._disabled.django||(this._excluded.django||this._excluded.handlebars||(e=e||this.__patterns.django_value.read()),this._excluded.django||(e=e||this.__patterns.django_comment.read(),e=e||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(e=e||this.__patterns.smarty_comment.read(),e=e||this.__patterns.smarty_literal.read(),e=e||this.__patterns.smarty.read()));return e},e.exports.TemplatablePattern=i},,,,function(e,t,n){var r=n(19).Beautifier,o=n(20).Options;function i(e,t,n,o){var i=new r(e,t,n,o);return i.beautify()}e.exports=i,e.exports.defaultOptions=function(){return new o}},function(e,t,n){var r=n(20).Options,o=n(2).Output,i=n(21).Tokenizer,a=n(21).TOKEN,s=/\r\n|[\r\n]/,l=/\r\n|[\r\n]/g,u=function(e,t){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=e.max_preserve_newlines,this.preserve_newlines=e.preserve_newlines,this._output=new o(e,t)};u.prototype.current_line_has_match=function(e){return this._output.current_line.has_match(e)},u.prototype.set_space_before_token=function(e,t){this._output.space_before_token=e,this._output.non_breaking_space=t},u.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},u.prototype.add_raw_token=function(e){this._output.add_raw_token(e)},u.prototype.print_preserved_newlines=function(e){var t=0;e.type!==a.TEXT&&e.previous.type!==a.TEXT&&(t=e.newlines?1:0),this.preserve_newlines&&(t=e.newlines<this.max_preserve_newlines+1?e.newlines:this.max_preserve_newlines+1);for(var n=0;n<t;n++)this.print_newline(n>0);return 0!==t},u.prototype.traverse_whitespace=function(e){return!(!e.whitespace_before&&!e.newlines)&&(this.print_preserved_newlines(e)||(this._output.space_before_token=!0),!0)},u.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},u.prototype.print_newline=function(e){this._output.add_new_line(e)},u.prototype.print_token=function(e){e.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(e.text))},u.prototype.indent=function(){this.indent_level++},u.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},u.prototype.get_full_indent=function(e){return e=this.indent_level+(e||0),e<1?"":this._output.get_indent_string(e)};var c=function(e){var t=null,n=e.next;while(n.type!==a.EOF&&e.closed!==n){if(n.type===a.ATTRIBUTE&&"type"===n.text){n.next&&n.next.type===a.EQUALS&&n.next.next&&n.next.next.type===a.VALUE&&(t=n.next.next.text);break}n=n.next}return t},d=function(e,t){var n=null,r=null;return t.closed?("script"===e?n="text/javascript":"style"===e&&(n="text/css"),n=c(t)||n,n.search("text/css")>-1?r="css":n.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?r="javascript":n.search(/(text|application|dojo)\/(x-)?(html)/)>-1?r="html":n.search(/test\/null/)>-1&&(r="null"),r):null};function h(e,t){return-1!==t.indexOf(e)}function p(e,t,n){this.parent=e||null,this.tag=t?t.tag_name:"",this.indent_level=n||0,this.parser_token=t||null}function f(e){this._printer=e,this._current_frame=null}function g(e,t,n,o){this._source_text=e||"",t=t||{},this._js_beautify=n,this._css_beautify=o,this._tag_stack=null;var i=new r(t,"html");this._options=i,this._is_wrap_attributes_force="force"===this._options.wrap_attributes.substr(0,5),this._is_wrap_attributes_force_expand_multiline="force-expand-multiline"===this._options.wrap_attributes,this._is_wrap_attributes_force_aligned="force-aligned"===this._options.wrap_attributes,this._is_wrap_attributes_aligned_multiple="aligned-multiple"===this._options.wrap_attributes,this._is_wrap_attributes_preserve="preserve"===this._options.wrap_attributes.substr(0,8),this._is_wrap_attributes_preserve_aligned="preserve-aligned"===this._options.wrap_attributes}f.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},f.prototype.record_tag=function(e){var t=new p(this._current_frame,e,this._printer.indent_level);this._current_frame=t},f.prototype._try_pop_frame=function(e){var t=null;return e&&(t=e.parser_token,this._printer.indent_level=e.indent_level,this._current_frame=e.parent),t},f.prototype._get_frame=function(e,t){var n=this._current_frame;while(n){if(-1!==e.indexOf(n.tag))break;if(t&&-1!==t.indexOf(n.tag)){n=null;break}n=n.parent}return n},f.prototype.try_pop=function(e,t){var n=this._get_frame([e],t);return this._try_pop_frame(n)},f.prototype.indent_to_tag=function(e){var t=this._get_frame(e);t&&(this._printer.indent_level=t.indent_level)},g.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e=this._source_text,t=this._options.eol;"auto"===this._options.eol&&(t="\n",e&&s.test(e)&&(t=e.match(s)[0])),e=e.replace(l,"\n");var n=e.match(/^[\t ]*/)[0],r={text:"",type:""},o=new m,c=new u(this._options,n),d=new i(e,this._options).tokenize();this._tag_stack=new f(c);var h=null,p=d.next();while(p.type!==a.EOF)p.type===a.TAG_OPEN||p.type===a.COMMENT?(h=this._handle_tag_open(c,p,o,r,d),o=h):p.type===a.ATTRIBUTE||p.type===a.EQUALS||p.type===a.VALUE||p.type===a.TEXT&&!o.tag_complete?h=this._handle_inside_tag(c,p,o,r):p.type===a.TAG_CLOSE?h=this._handle_tag_close(c,p,o):p.type===a.TEXT?h=this._handle_text(c,p,o):p.type===a.CONTROL_FLOW_OPEN?h=this._handle_control_flow_open(c,p):p.type===a.CONTROL_FLOW_CLOSE?h=this._handle_control_flow_close(c,p):c.add_raw_token(p),r=h,p=d.next();var g=c._output.get_code(t);return g},g.prototype._handle_control_flow_open=function(e,t){var n={text:t.text,type:t.type};return e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),t.newlines?e.print_preserved_newlines(t):e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),e.print_token(t),e.indent(),n},g.prototype._handle_control_flow_close=function(e,t){var n={text:t.text,type:t.type};return e.deindent(),t.newlines?e.print_preserved_newlines(t):e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),e.print_token(t),n},g.prototype._handle_tag_close=function(e,t,n){var r={text:t.text,type:t.type};return e.alignment_size=0,n.tag_complete=!0,e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),n.is_unformatted?e.add_raw_token(t):("<"===n.tag_start_char&&(e.set_space_before_token("/"===t.text[0],!0),this._is_wrap_attributes_force_expand_multiline&&n.has_wrapped_attrs&&e.print_newline(!1)),e.print_token(t)),!n.indent_content||n.is_unformatted||n.is_content_unformatted||(e.indent(),n.indent_content=!1),n.is_inline_element||n.is_unformatted||n.is_content_unformatted||e.set_wrap_point(),r},g.prototype._handle_inside_tag=function(e,t,n,r){var o=n.has_wrapped_attrs,i={text:t.text,type:t.type};return e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),n.is_unformatted?e.add_raw_token(t):"{"===n.tag_start_char&&t.type===a.TEXT?e.print_preserved_newlines(t)?(t.newlines=0,e.add_raw_token(t)):e.print_token(t):(t.type===a.ATTRIBUTE?e.set_space_before_token(!0):(t.type===a.EQUALS||t.type===a.VALUE&&t.previous.type===a.EQUALS)&&e.set_space_before_token(!1),t.type===a.ATTRIBUTE&&"<"===n.tag_start_char&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(e.traverse_whitespace(t),o=o||0!==t.newlines),this._is_wrap_attributes_force&&n.attr_count>=this._options.wrap_attributes_min_attrs&&(r.type!==a.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(e.print_newline(!1),o=!0)),e.print_token(t),o=o||e.previous_token_wrapped(),n.has_wrapped_attrs=o),i},g.prototype._handle_text=function(e,t,n){var r={text:t.text,type:"TK_CONTENT"};return n.custom_beautifier_name?this._print_custom_beatifier_text(e,t,n):n.is_unformatted||n.is_content_unformatted?e.add_raw_token(t):(e.traverse_whitespace(t),e.print_token(t)),r},g.prototype._print_custom_beatifier_text=function(e,t,n){var r=this;if(""!==t.text){var o,i=t.text,a=1,s="",l="";"javascript"===n.custom_beautifier_name&&"function"===typeof this._js_beautify?o=this._js_beautify:"css"===n.custom_beautifier_name&&"function"===typeof this._css_beautify?o=this._css_beautify:"html"===n.custom_beautifier_name&&(o=function(e,t){var n=new g(e,t,r._js_beautify,r._css_beautify);return n.beautify()}),"keep"===this._options.indent_scripts?a=0:"separate"===this._options.indent_scripts&&(a=-e.indent_level);var u=e.get_full_indent(a);if(i=i.replace(/\n[ \t]*$/,""),"html"!==n.custom_beautifier_name&&"<"===i[0]&&i.match(/^(<!--|<!\[CDATA\[)/)){var c=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(i);if(!c)return void e.add_raw_token(t);s=u+c[1]+"\n",i=c[4],c[5]&&(l=u+c[5]),i=i.replace(/\n[ \t]*$/,""),(c[2]||-1!==c[3].indexOf("\n"))&&(c=c[3].match(/[ \t]+$/),c&&(t.whitespace_before=c[0]))}if(i)if(o){var d=function(){this.eol="\n"};d.prototype=this._options.raw_options;var h=new d;i=o(u+i,h)}else{var p=t.whitespace_before;p&&(i=i.replace(new RegExp("\n("+p+")?","g"),"\n")),i=u+i.replace(/\n/g,"\n"+u)}s&&(i=i?s+i+"\n"+l:s+l),e.print_newline(!1),i&&(t.text=i,t.whitespace_before="",t.newlines=0,e.add_raw_token(t),e.print_newline(!0))}},g.prototype._handle_tag_open=function(e,t,n,r,o){var i=this._get_tag_open_token(t);if(!n.is_unformatted&&!n.is_content_unformatted||n.is_empty_element||t.type!==a.TAG_OPEN||i.is_start_tag?(e.traverse_whitespace(t),this._set_tag_position(e,t,i,n,r),i.is_inline_element||e.set_wrap_point(),e.print_token(t)):(e.add_raw_token(t),i.start_tag_token=this._tag_stack.try_pop(i.tag_name)),i.is_start_tag&&this._is_wrap_attributes_force){var s,l=0;do{s=o.peek(l),s.type===a.ATTRIBUTE&&(i.attr_count+=1),l+=1}while(s.type!==a.EOF&&s.type!==a.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(i.alignment_size=t.text.length+1),i.tag_complete||i.is_unformatted||(e.alignment_size=i.alignment_size),i};var m=function(e,t){if(this.parent=e||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",t){var n;this.tag_start_char=t.text[0],this.text=t.text,"<"===this.tag_start_char?(n=t.text.match(/^<([^\s>]*)/),this.tag_check=n?n[1]:""):(n=t.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=n?n[1]:"",(t.text.startsWith("{{#>")||t.text.startsWith("{{~#>"))&&">"===this.tag_check[0]&&(">"===this.tag_check&&null!==t.next?this.tag_check=t.next.text.split(" ")[0]:this.tag_check=t.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),t.type===a.COMMENT&&(this.tag_complete=!0),this.is_start_tag="/"!==this.tag_check.charAt(0),this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||t.closed&&"/>"===t.closed.text;var r=2;"{"===this.tag_start_char&&this.text.length>=3&&"~"===this.text.charAt(2)&&(r=3),this.is_end_tag=this.is_end_tag||"{"===this.tag_start_char&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(r)))}else this.tag_complete=!0};g.prototype._get_tag_open_token=function(e){var t=new m(this._tag_stack.get_parser_token(),e);return t.alignment_size=this._options.wrap_attributes_indent_size,t.is_end_tag=t.is_end_tag||h(t.tag_check,this._options.void_elements),t.is_empty_element=t.tag_complete||t.is_start_tag&&t.is_end_tag,t.is_unformatted=!t.tag_complete&&h(t.tag_check,this._options.unformatted),t.is_content_unformatted=!t.is_empty_element&&h(t.tag_check,this._options.content_unformatted),t.is_inline_element=h(t.tag_name,this._options.inline)||this._options.inline_custom_elements&&t.tag_name.includes("-")||"{"===t.tag_start_char,t},g.prototype._set_tag_position=function(e,t,n,r,o){if(n.is_empty_element||(n.is_end_tag?n.start_tag_token=this._tag_stack.try_pop(n.tag_name):(this._do_optional_end_element(n)&&(n.is_inline_element||e.print_newline(!1)),this._tag_stack.record_tag(n),"script"!==n.tag_name&&"style"!==n.tag_name||n.is_unformatted||n.is_content_unformatted||(n.custom_beautifier_name=d(n.tag_check,t)))),h(n.tag_check,this._options.extra_liners)&&(e.print_newline(!1),e._output.just_added_blankline()||e.print_newline(!0)),n.is_empty_element){if("{"===n.tag_start_char&&"else"===n.tag_check){this._tag_stack.indent_to_tag(["if","unless","each"]),n.indent_content=!0;var i=e.current_line_has_match(/{{#if/);i||e.print_newline(!1)}"!--"===n.tag_name&&o.type===a.TAG_CLOSE&&r.is_end_tag&&-1===n.text.indexOf("\n")||(n.is_inline_element||n.is_unformatted||e.print_newline(!1),this._calcluate_parent_multiline(e,n))}else if(n.is_end_tag){var s=!1;s=n.start_tag_token&&n.start_tag_token.multiline_content,s=s||!n.is_inline_element&&!(r.is_inline_element||r.is_unformatted)&&!(o.type===a.TAG_CLOSE&&n.start_tag_token===r)&&"TK_CONTENT"!==o.type,(n.is_content_unformatted||n.is_unformatted)&&(s=!1),s&&e.print_newline(!1)}else n.indent_content=!n.custom_beautifier_name,"<"===n.tag_start_char&&("html"===n.tag_name?n.indent_content=this._options.indent_inner_html:"head"===n.tag_name?n.indent_content=this._options.indent_head_inner_html:"body"===n.tag_name&&(n.indent_content=this._options.indent_body_inner_html)),n.is_inline_element||n.is_unformatted||"TK_CONTENT"===o.type&&!n.is_content_unformatted||e.print_newline(!1),this._calcluate_parent_multiline(e,n)},g.prototype._calcluate_parent_multiline=function(e,t){!t.parent||!e._output.just_added_newline()||(t.is_inline_element||t.is_unformatted)&&t.parent.is_inline_element||(t.parent.multiline_content=!0)};var v=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","menu","nav","ol","p","pre","section","table","ul"],y=["a","audio","del","ins","map","noscript","video"];g.prototype._do_optional_end_element=function(e){var t=null;if(!e.is_empty_element&&e.is_start_tag&&e.parent){if("body"===e.tag_name)t=t||this._tag_stack.try_pop("head");else if("li"===e.tag_name)t=t||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if("dd"===e.tag_name||"dt"===e.tag_name)t=t||this._tag_stack.try_pop("dt",["dl"]),t=t||this._tag_stack.try_pop("dd",["dl"]);else if("p"===e.parent.tag_name&&-1!==v.indexOf(e.tag_name)){var n=e.parent.parent;n&&-1!==y.indexOf(n.tag_name)||(t=t||this._tag_stack.try_pop("p"))}else"rp"===e.tag_name||"rt"===e.tag_name?(t=t||this._tag_stack.try_pop("rt",["ruby","rtc"]),t=t||this._tag_stack.try_pop("rp",["ruby","rtc"])):"optgroup"===e.tag_name?t=t||this._tag_stack.try_pop("optgroup",["select"]):"option"===e.tag_name?t=t||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):"colgroup"===e.tag_name?t=t||this._tag_stack.try_pop("caption",["table"]):"thead"===e.tag_name?(t=t||this._tag_stack.try_pop("caption",["table"]),t=t||this._tag_stack.try_pop("colgroup",["table"])):"tbody"===e.tag_name||"tfoot"===e.tag_name?(t=t||this._tag_stack.try_pop("caption",["table"]),t=t||this._tag_stack.try_pop("colgroup",["table"]),t=t||this._tag_stack.try_pop("thead",["table"]),t=t||this._tag_stack.try_pop("tbody",["table"])):"tr"===e.tag_name?(t=t||this._tag_stack.try_pop("caption",["table"]),t=t||this._tag_stack.try_pop("colgroup",["table"]),t=t||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):"th"!==e.tag_name&&"td"!==e.tag_name||(t=t||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),t=t||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return e.parent=this._tag_stack.get_parser_token(),t}},e.exports.Beautifier=g},function(e,t,n){var r=n(6).Options;function o(e){r.call(this,e,"html"),1===this.templating.length&&"auto"===this.templating[0]&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_min_attrs=this._get_number("wrap_attributes_min_attrs",2),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.inline_custom_elements=this._get_boolean("inline_custom_elements",!0),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}o.prototype=new r,e.exports.Options=o},function(e,t,n){var r=n(9).Tokenizer,o=n(9).TOKEN,i=n(13).Directives,a=n(14).TemplatablePattern,s=n(12).Pattern,l={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",CONTROL_FLOW_OPEN:"TK_CONTROL_FLOW_OPEN",CONTROL_FLOW_CLOSE:"TK_CONTROL_FLOW_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:o.START,RAW:o.RAW,EOF:o.EOF},u=new i(/<\!--/,/-->/),c=function(e,t){r.call(this,e,t),this._current_tag_name="";var n=new a(this._input).read_options(this._options),o=new s(this._input);if(this.__patterns={word:n.until(/[\n\r\t <]/),word_control_flow_close_excluded:n.until(/[\n\r\t <}]/),single_quote:n.until_after(/'/),double_quote:n.until_after(/"/),attribute:n.until(/[\n\r\t =>]|\/>/),element_name:n.until(/[\n\r\t >\/]/),angular_control_flow_start:o.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:o.starting_with(/{{!--/).until_after(/--}}/),handlebars:o.starting_with(/{{/).until_after(/}}/),handlebars_open:o.until(/[\n\r\t }]/),handlebars_raw_close:o.until(/}}/),comment:o.starting_with(/<!--/).until_after(/-->/),cdata:o.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:o.starting_with(/<!\[/).until_after(/]>/),processing:o.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars"),this.__patterns.word_control_flow_close_excluded=this.__patterns.word_control_flow_close_excluded.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var i=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=o.matching(i).until_after(i)}};c.prototype=new r,c.prototype._is_comment=function(e){return!1},c.prototype._is_opening=function(e){return e.type===l.TAG_OPEN||e.type===l.CONTROL_FLOW_OPEN},c.prototype._is_closing=function(e,t){return e.type===l.TAG_CLOSE&&t&&((">"===e.text||"/>"===e.text)&&"<"===t.text[0]||"}}"===e.text&&"{"===t.text[0]&&"{"===t.text[1])||e.type===l.CONTROL_FLOW_CLOSE&&"}"===e.text&&t.text.endsWith("{")},c.prototype._reset=function(){this._current_tag_name=""},c.prototype._get_next_token=function(e,t){var n=null;this._readWhitespace();var r=this._input.peek();return null===r?this._create_token(l.EOF,""):(n=n||this._read_open_handlebars(r,t),n=n||this._read_attribute(r,e,t),n=n||this._read_close(r,t),n=n||this._read_control_flows(r,t),n=n||this._read_raw_content(r,e,t),n=n||this._read_content_word(r,t),n=n||this._read_comment_or_cdata(r),n=n||this._read_processing(r),n=n||this._read_open(r,t),n=n||this._create_token(l.UNKNOWN,this._input.next()),n)},c.prototype._read_comment_or_cdata=function(e){var t=null,n=null,r=null;if("<"===e){var o=this._input.peek(1);"!"===o&&(n=this.__patterns.comment.read(),n?(r=u.get_directives(n),r&&"start"===r.ignore&&(n+=u.readIgnored(this._input))):n=this.__patterns.cdata.read()),n&&(t=this._create_token(l.COMMENT,n),t.directives=r)}return t},c.prototype._read_processing=function(e){var t=null,n=null,r=null;if("<"===e){var o=this._input.peek(1);"!"!==o&&"?"!==o||(n=this.__patterns.conditional_comment.read(),n=n||this.__patterns.processing.read()),n&&(t=this._create_token(l.COMMENT,n),t.directives=r)}return t},c.prototype._read_open=function(e,t){var n=null,r=null;return t&&t.type!==l.CONTROL_FLOW_OPEN||"<"===e&&(n=this._input.next(),"/"===this._input.peek()&&(n+=this._input.next()),n+=this.__patterns.element_name.read(),r=this._create_token(l.TAG_OPEN,n)),r},c.prototype._read_open_handlebars=function(e,t){var n=null,r=null;return t&&t.type!==l.CONTROL_FLOW_OPEN||this._options.indent_handlebars&&"{"===e&&"{"===this._input.peek(1)&&("!"===this._input.peek(2)?(n=this.__patterns.handlebars_comment.read(),n=n||this.__patterns.handlebars.read(),r=this._create_token(l.COMMENT,n)):(n=this.__patterns.handlebars_open.read(),r=this._create_token(l.TAG_OPEN,n))),r},c.prototype._read_control_flows=function(e,t){var n="",r=null;if(!this._options.templating.includes("angular")||!this._options.indent_handlebars)return r;if("@"===e){if(n=this.__patterns.angular_control_flow_start.read(),""===n)return r;var o=n.endsWith("(")?1:0,i=0;while(!n.endsWith("{")||o!==i){var a=this._input.next();if(null===a)break;"("===a?o++:")"===a&&i++,n+=a}r=this._create_token(l.CONTROL_FLOW_OPEN,n)}else"}"===e&&t&&t.type===l.CONTROL_FLOW_OPEN&&(n=this._input.next(),r=this._create_token(l.CONTROL_FLOW_CLOSE,n));return r},c.prototype._read_close=function(e,t){var n=null,r=null;return t&&t.type===l.TAG_OPEN&&("<"===t.text[0]&&(">"===e||"/"===e&&">"===this._input.peek(1))?(n=this._input.next(),"/"===e&&(n+=this._input.next()),r=this._create_token(l.TAG_CLOSE,n)):"{"===t.text[0]&&"}"===e&&"}"===this._input.peek(1)&&(this._input.next(),this._input.next(),r=this._create_token(l.TAG_CLOSE,"}}"))),r},c.prototype._read_attribute=function(e,t,n){var r=null,o="";if(n&&"<"===n.text[0])if("="===e)r=this._create_token(l.EQUALS,this._input.next());else if('"'===e||"'"===e){var i=this._input.next();i+='"'===e?this.__patterns.double_quote.read():this.__patterns.single_quote.read(),r=this._create_token(l.VALUE,i)}else o=this.__patterns.attribute.read(),o&&(r=t.type===l.EQUALS?this._create_token(l.VALUE,o):this._create_token(l.ATTRIBUTE,o));return r},c.prototype._is_content_unformatted=function(e){return-1===this._options.void_elements.indexOf(e)&&(-1!==this._options.content_unformatted.indexOf(e)||-1!==this._options.unformatted.indexOf(e))},c.prototype._read_raw_content=function(e,t,n){var r="";if(n&&"{"===n.text[0])r=this.__patterns.handlebars_raw_close.read();else if(t.type===l.TAG_CLOSE&&"<"===t.opened.text[0]&&"/"!==t.text[0]){var o=t.opened.text.substr(1).toLowerCase();if("script"===o||"style"===o){var i=this._read_comment_or_cdata(e);if(i)return i.type=l.TEXT,i;r=this._input.readUntil(new RegExp("</"+o+"[\\n\\r\\t ]*?>","ig"))}else this._is_content_unformatted(o)&&(r=this._input.readUntil(new RegExp("</"+o+"[\\n\\r\\t ]*?>","ig")))}return r?this._create_token(l.TEXT,r):null},c.prototype._read_content_word=function(e,t){var n="";if(this._options.unformatted_content_delimiter&&e===this._options.unformatted_content_delimiter[0]&&(n=this.__patterns.unformatted_content_delimiter.read()),n||(n=t&&t.type===l.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),n)return this._create_token(l.TEXT,n)},e.exports.Tokenizer=c,e.exports.TOKEN=l}],t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}var r=n(18);i=r})();var a=i;r=[n,n(37590),n(23028)],o=function(e){var t=n(37590),r=n(23028);return{html_beautify:function(e,n){return a(e,n,t.js_beautify,r.css_beautify)}}}.apply(t,r),void 0===o||(e.exports=o)}()},37590:function(e,t,n){var r,o;n(30381),function(){var n;(function(){"use strict";var e=[function(e,t,n){var r=n(1).Beautifier,o=n(5).Options;function i(e,t){var n=new r(e,t);return n.beautify()}e.exports=i,e.exports.defaultOptions=function(){return new o}},function(e,t,n){var r=n(2).Output,o=n(3).Token,i=n(4),a=n(5).Options,s=n(7).Tokenizer,l=n(7).line_starters,u=n(7).positionable_operators,c=n(7).TOKEN;function d(e,t){return-1!==t.indexOf(e)}function h(e){return e.replace(/^\s+/g,"")}function p(e){for(var t={},n=0;n<e.length;n++)t[e[n].replace(/-/g,"_")]=e[n];return t}function f(e,t){return e&&e.type===c.RESERVED&&e.text===t}function g(e,t){return e&&e.type===c.RESERVED&&d(e.text,t)}var m=["case","return","do","if","throw","else","await","break","continue","async"],v=["before-newline","after-newline","preserve-newline"],y=p(v),b=[y.before_newline,y.preserve_newline],_={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function x(e,t){t.multiline_frame||t.mode===_.ForInitializer||t.mode===_.Conditional||e.remove_indent(t.start_line_index)}function w(e){e=e.replace(i.allLineBreaks,"\n");var t=[],n=e.indexOf("\n");while(-1!==n)t.push(e.substring(0,n)),e=e.substring(n+1),n=e.indexOf("\n");return e.length&&t.push(e),t}function O(e){return e===_.ArrayLiteral}function S(e){return d(e,[_.Expression,_.ForInitializer,_.Conditional])}function A(e,t){for(var n=0;n<e.length;n++){var r=e[n].trim();if(r.charAt(0)!==t)return!1}return!0}function k(e,t){for(var n,r=0,o=e.length;r<o;r++)if(n=e[r],n&&0!==n.indexOf(t))return!1;return!0}function C(e,t){t=t||{},this._source_text=e||"",this._output=null,this._tokens=null,this._last_last_text=null,this._flags=null,this._previous_flags=null,this._flag_store=null,this._options=new a(t)}C.prototype.create_flags=function(e,t){var n=0;e&&(n=e.indentation_level,!this._output.just_added_newline()&&e.line_indent_level>n&&(n=e.line_indent_level));var r={mode:t,parent:e,last_token:e?e.last_token:new o(c.START_BLOCK,""),last_word:e?e.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,class_start_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,case_block:!1,indentation_level:n,alignment:0,line_indent_level:e?e.line_indent_level:n,start_line_index:this._output.get_line_number(),ternary_depth:0};return r},C.prototype._reset=function(e){var t=e.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new r(this._options,t),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(_.BlockStatement);var n=new s(e,this._options);return this._tokens=n.tokenize(),e},C.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e,t=this._reset(this._source_text),n=this._options.eol;"auto"===this._options.eol&&(n="\n",t&&i.lineBreak.test(t||"")&&(n=t.match(i.lineBreak)[0]));var r=this._tokens.next();while(r)this.handle_token(r),this._last_last_text=this._flags.last_token.text,this._flags.last_token=r,r=this._tokens.next();return e=this._output.get_code(n),e},C.prototype.handle_token=function(e,t){e.type===c.START_EXPR?this.handle_start_expr(e):e.type===c.END_EXPR?this.handle_end_expr(e):e.type===c.START_BLOCK?this.handle_start_block(e):e.type===c.END_BLOCK?this.handle_end_block(e):e.type===c.WORD||e.type===c.RESERVED?this.handle_word(e):e.type===c.SEMICOLON?this.handle_semicolon(e):e.type===c.STRING?this.handle_string(e):e.type===c.EQUALS?this.handle_equals(e):e.type===c.OPERATOR?this.handle_operator(e):e.type===c.COMMA?this.handle_comma(e):e.type===c.BLOCK_COMMENT?this.handle_block_comment(e,t):e.type===c.COMMENT?this.handle_comment(e,t):e.type===c.DOT?this.handle_dot(e):e.type===c.EOF?this.handle_eof(e):(e.type,c.UNKNOWN,this.handle_unknown(e,t))},C.prototype.handle_whitespace_and_comments=function(e,t){var n=e.newlines,r=this._options.keep_array_indentation&&O(this._flags.mode);if(e.comments_before){var o=e.comments_before.next();while(o)this.handle_whitespace_and_comments(o,t),this.handle_token(o,t),o=e.comments_before.next()}if(r)for(var i=0;i<n;i+=1)this.print_newline(i>0,t);else if(this._options.max_preserve_newlines&&n>this._options.max_preserve_newlines&&(n=this._options.max_preserve_newlines),this._options.preserve_newlines&&n>1){this.print_newline(!1,t);for(var a=1;a<n;a+=1)this.print_newline(!0,t)}};var M=["async","break","continue","return","throw","yield"];C.prototype.allow_wrap_or_preserved_newline=function(e,t){if(t=void 0!==t&&t,!this._output.just_added_newline()){var n=this._options.preserve_newlines&&e.newlines||t,r=d(this._flags.last_token.text,u)||d(e.text,u);if(r){var o=d(this._flags.last_token.text,u)&&d(this._options.operator_position,b)||d(e.text,u);n=n&&o}if(n)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(g(this._flags.last_token,M))return;this._output.set_wrap_point()}}},C.prototype.print_newline=function(e,t){if(!t&&";"!==this._flags.last_token.text&&","!==this._flags.last_token.text&&"="!==this._flags.last_token.text&&(this._flags.last_token.type!==c.OPERATOR||"--"===this._flags.last_token.text||"++"===this._flags.last_token.text)){var n=this._tokens.peek();while(this._flags.mode===_.Statement&&(!this._flags.if_block||!f(n,"else"))&&!this._flags.do_block)this.restore_mode()}this._output.add_new_line(e)&&(this._flags.multiline_frame=!0)},C.prototype.print_token_line_indentation=function(e){this._output.just_added_newline()&&(this._options.keep_array_indentation&&e.newlines&&("["===e.text||O(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(e.whitespace_before),this._output.space_before_token=!1):this._output.set_indent(this._flags.indentation_level,this._flags.alignment)&&(this._flags.line_indent_level=this._flags.indentation_level))},C.prototype.print_token=function(e){if(this._output.raw)this._output.add_raw_token(e);else{if(this._options.comma_first&&e.previous&&e.previous.type===c.COMMA&&this._output.just_added_newline()&&","===this._output.previous_line.last()){var t=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(t),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(e),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(e),this._output.non_breaking_space=!0,this._output.add_token(e.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)}},C.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},C.prototype.deindent=function(){this._flags.indentation_level>0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},C.prototype.set_mode=function(e){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,e),this._flags=this.create_flags(this._previous_flags,e),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},C.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===_.Statement&&x(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},C.prototype.start_of_object_property=function(){return this._flags.parent.mode===_.ObjectLiteral&&this._flags.mode===_.Statement&&(":"===this._flags.last_token.text&&0===this._flags.ternary_depth||g(this._flags.last_token,["get","set"]))},C.prototype.start_of_statement=function(e){var t=!1;return t=t||g(this._flags.last_token,["var","let","const"])&&e.type===c.WORD,t=t||f(this._flags.last_token,"do"),t=t||!(this._flags.parent.mode===_.ObjectLiteral&&this._flags.mode===_.Statement)&&g(this._flags.last_token,M)&&!e.newlines,t=t||f(this._flags.last_token,"else")&&!(f(e,"if")&&!e.comments_before),t=t||this._flags.last_token.type===c.END_EXPR&&(this._previous_flags.mode===_.ForInitializer||this._previous_flags.mode===_.Conditional),t=t||this._flags.last_token.type===c.WORD&&this._flags.mode===_.BlockStatement&&!this._flags.in_case&&!("--"===e.text||"++"===e.text)&&"function"!==this._last_last_text&&e.type!==c.WORD&&e.type!==c.RESERVED,t=t||this._flags.mode===_.ObjectLiteral&&(":"===this._flags.last_token.text&&0===this._flags.ternary_depth||g(this._flags.last_token,["get","set"])),!!t&&(this.set_mode(_.Statement),this.indent(),this.handle_whitespace_and_comments(e,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e,g(e,["do","for","if","while"])),!0)},C.prototype.handle_start_expr=function(e){this.start_of_statement(e)||this.handle_whitespace_and_comments(e);var t=_.Expression;if("["===e.text){if(this._flags.last_token.type===c.WORD||")"===this._flags.last_token.text)return g(this._flags.last_token,l)&&(this._output.space_before_token=!0),this.print_token(e),this.set_mode(t),this.indent(),void(this._options.space_in_paren&&(this._output.space_before_token=!0));t=_.ArrayLiteral,O(this._flags.mode)&&("["!==this._flags.last_token.text&&(","!==this._flags.last_token.text||"]"!==this._last_last_text&&"}"!==this._last_last_text)||this._options.keep_array_indentation||this.print_newline()),d(this._flags.last_token.type,[c.START_EXPR,c.END_EXPR,c.WORD,c.OPERATOR,c.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===c.RESERVED)"for"===this._flags.last_token.text?(this._output.space_before_token=this._options.space_before_conditional,t=_.ForInitializer):d(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,t=_.Conditional):d(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:"import"===this._flags.last_token.text&&""===e.whitespace_before?this._output.space_before_token=!1:(d(this._flags.last_token.text,l)||"catch"===this._flags.last_token.text)&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===c.EQUALS||this._flags.last_token.type===c.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e);else if(this._flags.last_token.type===c.WORD){this._output.space_before_token=!1;var n=this._tokens.peek(-3);if(this._options.space_after_named_function&&n){var r=this._tokens.peek(-4);g(n,["async","function"])||"*"===n.text&&g(r,["async","function"])?this._output.space_before_token=!0:this._flags.mode===_.ObjectLiteral?"{"!==n.text&&","!==n.text&&("*"!==n.text||"{"!==r.text&&","!==r.text)||(this._output.space_before_token=!0):this._flags.parent&&this._flags.parent.class_start_block&&(this._output.space_before_token=!0)}}else this.allow_wrap_or_preserved_newline(e);(this._flags.last_token.type===c.RESERVED&&("function"===this._flags.last_word||"typeof"===this._flags.last_word)||"*"===this._flags.last_token.text&&(d(this._last_last_text,["function","yield"])||this._flags.mode===_.ObjectLiteral&&d(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}";"===this._flags.last_token.text||this._flags.last_token.type===c.START_BLOCK?this.print_newline():this._flags.last_token.type!==c.END_EXPR&&this._flags.last_token.type!==c.START_EXPR&&this._flags.last_token.type!==c.END_BLOCK&&"."!==this._flags.last_token.text&&this._flags.last_token.type!==c.COMMA||this.allow_wrap_or_preserved_newline(e,e.newlines),this.print_token(e),this.set_mode(t),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},C.prototype.handle_end_expr=function(e){while(this._flags.mode===_.Statement)this.restore_mode();this.handle_whitespace_and_comments(e),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(e,"]"===e.text&&O(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type!==c.START_EXPR||this._options.space_in_empty_paren?this._output.space_before_token=!0:(this._output.trim(),this._output.space_before_token=!1)),this.deindent(),this.print_token(e),this.restore_mode(),x(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===_.Conditional&&(this._previous_flags.mode=_.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},C.prototype.handle_start_block=function(e){this.handle_whitespace_and_comments(e);var t=this._tokens.peek(),n=this._tokens.peek(1);"switch"===this._flags.last_word&&this._flags.last_token.type===c.END_EXPR?(this.set_mode(_.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(_.BlockStatement):n&&(d(n.text,[":",","])&&d(t.type,[c.STRING,c.WORD,c.RESERVED])||d(t.text,["get","set","..."])&&d(n.type,[c.WORD,c.RESERVED]))?d(this._last_last_text,["class","interface"])&&!d(n.text,[":",","])?this.set_mode(_.BlockStatement):this.set_mode(_.ObjectLiteral):this._flags.last_token.type===c.OPERATOR&&"=>"===this._flags.last_token.text?this.set_mode(_.BlockStatement):d(this._flags.last_token.type,[c.EQUALS,c.START_EXPR,c.COMMA,c.OPERATOR])||g(this._flags.last_token,["return","throw","import","default"])?this.set_mode(_.ObjectLiteral):this.set_mode(_.BlockStatement),this._flags.last_token&&g(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0);var r=!t.comments_before&&"}"===t.text,o=r&&"function"===this._flags.last_word&&this._flags.last_token.type===c.END_EXPR;if(this._options.brace_preserve_inline){var i=0,a=null;this._flags.inline_frame=!0;do{if(i+=1,a=this._tokens.peek(i-1),a.newlines){this._flags.inline_frame=!1;break}}while(a.type!==c.EOF&&(a.type!==c.END_BLOCK||a.opened!==e))}("expand"===this._options.brace_style||"none"===this._options.brace_style&&e.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==c.OPERATOR&&(o||this._flags.last_token.type===c.EQUALS||g(this._flags.last_token,m)&&"else"!==this._flags.last_token.text)?this._output.space_before_token=!0:this.print_newline(!1,!0):(!O(this._previous_flags.mode)||this._flags.last_token.type!==c.START_EXPR&&this._flags.last_token.type!==c.COMMA||((this._flags.last_token.type===c.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===c.COMMA||this._flags.last_token.type===c.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(e),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==c.OPERATOR&&this._flags.last_token.type!==c.START_EXPR&&(d(this._flags.last_token.type,[c.START_BLOCK,c.SEMICOLON])&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(e),this.indent(),r||this._options.brace_preserve_inline&&this._flags.inline_frame||this.print_newline()},C.prototype.handle_end_block=function(e){this.handle_whitespace_and_comments(e);while(this._flags.mode===_.Statement)this.restore_mode();var t=this._flags.last_token.type===c.START_BLOCK;this._flags.inline_frame&&!t?this._output.space_before_token=!0:"expand"===this._options.brace_style?t||this.print_newline():t||(O(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(e)},C.prototype.handle_word=function(e){if(e.type===c.RESERVED)if(d(e.text,["set","get"])&&this._flags.mode!==_.ObjectLiteral)e.type=c.WORD;else if("import"===e.text&&d(this._tokens.peek().text,["(","."]))e.type=c.WORD;else if(d(e.text,["as","from"])&&!this._flags.import_block)e.type=c.WORD;else if(this._flags.mode===_.ObjectLiteral){var t=this._tokens.peek();":"===t.text&&(e.type=c.WORD)}if(this.start_of_statement(e)?g(this._flags.last_token,["var","let","const"])&&e.type===c.WORD&&(this._flags.declaration_statement=!0):!e.newlines||S(this._flags.mode)||this._flags.last_token.type===c.OPERATOR&&"--"!==this._flags.last_token.text&&"++"!==this._flags.last_token.text||this._flags.last_token.type===c.EQUALS||!this._options.preserve_newlines&&g(this._flags.last_token,["var","let","const","set","get"])?this.handle_whitespace_and_comments(e):(this.handle_whitespace_and_comments(e),this.print_newline()),this._flags.do_block&&!this._flags.do_while){if(f(e,"while"))return this._output.space_before_token=!0,this.print_token(e),this._output.space_before_token=!0,void(this._flags.do_while=!0);this.print_newline(),this._flags.do_block=!1}if(this._flags.if_block)if(!this._flags.else_block&&f(e,"else"))this._flags.else_block=!0;else{while(this._flags.mode===_.Statement)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&g(e,["case","default"]))return this.print_newline(),this._flags.case_block||!this._flags.case_body&&!this._options.jslint_happy||this.deindent(),this._flags.case_body=!1,this.print_token(e),void(this._flags.in_case=!0);if(this._flags.last_token.type!==c.COMMA&&this._flags.last_token.type!==c.START_EXPR&&this._flags.last_token.type!==c.EQUALS&&this._flags.last_token.type!==c.OPERATOR||this.start_of_object_property()||d(this._flags.last_token.text,["+","-"])&&":"===this._last_last_text&&this._flags.parent.mode===_.ObjectLiteral||this.allow_wrap_or_preserved_newline(e),f(e,"function"))return(d(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!d(this._flags.last_token.text,["(","[","{",":","=",","])&&this._flags.last_token.type!==c.OPERATOR)&&(this._output.just_added_blankline()||e.comments_before||(this.print_newline(),this.print_newline(!0))),this._flags.last_token.type===c.RESERVED||this._flags.last_token.type===c.WORD?g(this._flags.last_token,["get","set","new","export"])||g(this._flags.last_token,M)||f(this._flags.last_token,"default")&&"export"===this._last_last_text||"declare"===this._flags.last_token.text?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===c.OPERATOR||"="===this._flags.last_token.text?this._output.space_before_token=!0:(this._flags.multiline_frame||!S(this._flags.mode)&&!O(this._flags.mode))&&this.print_newline(),this.print_token(e),void(this._flags.last_word=e.text);var n="NONE";if(this._flags.last_token.type===c.END_BLOCK?this._previous_flags.inline_frame?n="SPACE":g(e,["else","catch","finally","from"])?"expand"===this._options.brace_style||"end-expand"===this._options.brace_style||"none"===this._options.brace_style&&e.newlines?n="NEWLINE":(n="SPACE",this._output.space_before_token=!0):n="NEWLINE":this._flags.last_token.type===c.SEMICOLON&&this._flags.mode===_.BlockStatement?n="NEWLINE":this._flags.last_token.type===c.SEMICOLON&&S(this._flags.mode)?n="SPACE":this._flags.last_token.type===c.STRING?n="NEWLINE":this._flags.last_token.type===c.RESERVED||this._flags.last_token.type===c.WORD||"*"===this._flags.last_token.text&&(d(this._last_last_text,["function","yield"])||this._flags.mode===_.ObjectLiteral&&d(this._last_last_text,["{",","]))?n="SPACE":this._flags.last_token.type===c.START_BLOCK?n=this._flags.inline_frame?"SPACE":"NEWLINE":this._flags.last_token.type===c.END_EXPR&&(this._output.space_before_token=!0,n="NEWLINE"),g(e,l)&&")"!==this._flags.last_token.text&&(n=this._flags.inline_frame||"else"===this._flags.last_token.text||"export"===this._flags.last_token.text?"SPACE":"NEWLINE"),g(e,["else","catch","finally"]))if((this._flags.last_token.type!==c.END_BLOCK||this._previous_flags.mode!==_.BlockStatement||"expand"===this._options.brace_style||"end-expand"===this._options.brace_style||"none"===this._options.brace_style&&e.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var r=this._output.current_line;"}"!==r.last()&&this.print_newline(),this._output.space_before_token=!0}else"NEWLINE"===n?g(this._flags.last_token,m)||"declare"===this._flags.last_token.text&&g(e,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==c.END_EXPR?this._flags.last_token.type===c.START_EXPR&&g(e,["var","let","const"])||":"===this._flags.last_token.text||(f(e,"if")&&f(e.previous,"else")?this._output.space_before_token=!0:this.print_newline()):g(e,l)&&")"!==this._flags.last_token.text&&this.print_newline():this._flags.multiline_frame&&O(this._flags.mode)&&","===this._flags.last_token.text&&"}"===this._last_last_text?this.print_newline():"SPACE"===n&&(this._output.space_before_token=!0);!e.previous||e.previous.type!==c.WORD&&e.previous.type!==c.RESERVED||(this._output.space_before_token=!0),this.print_token(e),this._flags.last_word=e.text,e.type===c.RESERVED&&("do"===e.text?this._flags.do_block=!0:"if"===e.text?this._flags.if_block=!0:"import"===e.text?this._flags.import_block=!0:this._flags.import_block&&f(e,"from")&&(this._flags.import_block=!1))},C.prototype.handle_semicolon=function(e){this.start_of_statement(e)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(e);var t=this._tokens.peek();while(this._flags.mode===_.Statement&&(!this._flags.if_block||!f(t,"else"))&&!this._flags.do_block)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(e)},C.prototype.handle_string=function(e){(!e.text.startsWith("`")||0!==e.newlines||""!==e.whitespace_before||")"!==e.previous.text&&this._flags.last_token.type!==c.WORD)&&(this.start_of_statement(e)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(e),this._flags.last_token.type===c.RESERVED||this._flags.last_token.type===c.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===c.COMMA||this._flags.last_token.type===c.START_EXPR||this._flags.last_token.type===c.EQUALS||this._flags.last_token.type===c.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e):!e.text.startsWith("`")||this._flags.last_token.type!==c.END_EXPR||"]"!==e.previous.text&&")"!==e.previous.text||0!==e.newlines?this.print_newline():this._output.space_before_token=!0)),this.print_token(e)},C.prototype.handle_equals=function(e){this.start_of_statement(e)||this.handle_whitespace_and_comments(e),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(e),this._output.space_before_token=!0},C.prototype.handle_comma=function(e){this.handle_whitespace_and_comments(e,!0),this.print_token(e),this._output.space_before_token=!0,this._flags.declaration_statement?(S(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(e)):this._flags.mode===_.ObjectLiteral||this._flags.mode===_.Statement&&this._flags.parent.mode===_.ObjectLiteral?(this._flags.mode===_.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(e)},C.prototype.handle_operator=function(e){var t="*"===e.text&&(g(this._flags.last_token,["function","yield"])||d(this._flags.last_token.type,[c.START_BLOCK,c.COMMA,c.END_BLOCK,c.SEMICOLON])),n=d(e.text,["-","+"])&&(d(this._flags.last_token.type,[c.START_BLOCK,c.START_EXPR,c.EQUALS,c.OPERATOR])||d(this._flags.last_token.text,l)||","===this._flags.last_token.text);if(this.start_of_statement(e));else{var r=!t;this.handle_whitespace_and_comments(e,r)}if("*"!==e.text||this._flags.last_token.type!==c.DOT)if("::"!==e.text)if(d(e.text,["-","+"])&&this.start_of_object_property())this.print_token(e);else{if(this._flags.last_token.type===c.OPERATOR&&d(this._options.operator_position,b)&&this.allow_wrap_or_preserved_newline(e),":"===e.text&&this._flags.in_case)return this.print_token(e),this._flags.in_case=!1,this._flags.case_body=!0,void(this._tokens.peek().type!==c.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0));var o=!0,i=!0,a=!1;if(":"===e.text?0===this._flags.ternary_depth?o=!1:(this._flags.ternary_depth-=1,a=!0):"?"===e.text&&(this._flags.ternary_depth+=1),!n&&!t&&this._options.preserve_newlines&&d(e.text,u)){var s=":"===e.text,h=s&&a,p=s&&!a;switch(this._options.operator_position){case y.before_newline:return this._output.space_before_token=!p,this.print_token(e),s&&!h||this.allow_wrap_or_preserved_newline(e),void(this._output.space_before_token=!0);case y.after_newline:return this._output.space_before_token=!0,!s||h?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(e):this._output.space_before_token=!1,this.print_token(e),void(this._output.space_before_token=!0);case y.preserve_newline:return p||this.allow_wrap_or_preserved_newline(e),o=!(this._output.just_added_newline()||p),this._output.space_before_token=o,this.print_token(e),void(this._output.space_before_token=!0)}}if(t){this.allow_wrap_or_preserved_newline(e),o=!1;var f=this._tokens.peek();i=f&&d(f.type,[c.WORD,c.RESERVED])}else if("..."===e.text)this.allow_wrap_or_preserved_newline(e),o=this._flags.last_token.type===c.START_BLOCK,i=!1;else if(d(e.text,["--","++","!","~"])||n){if(this._flags.last_token.type!==c.COMMA&&this._flags.last_token.type!==c.START_EXPR||this.allow_wrap_or_preserved_newline(e),o=!1,i=!1,e.newlines&&("--"===e.text||"++"===e.text||"~"===e.text)){var v=g(this._flags.last_token,m)&&e.newlines;v&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(v,!0)}";"===this._flags.last_token.text&&S(this._flags.mode)&&(o=!0),this._flags.last_token.type===c.RESERVED?o=!0:this._flags.last_token.type===c.END_EXPR?o=!("]"===this._flags.last_token.text&&("--"===e.text||"++"===e.text)):this._flags.last_token.type===c.OPERATOR&&(o=d(e.text,["--","-","++","+"])&&d(this._flags.last_token.text,["--","-","++","+"]),d(e.text,["+","-"])&&d(this._flags.last_token.text,["--","++"])&&(i=!0)),(this._flags.mode!==_.BlockStatement||this._flags.inline_frame)&&this._flags.mode!==_.Statement||"{"!==this._flags.last_token.text&&";"!==this._flags.last_token.text||this.print_newline()}this._output.space_before_token=this._output.space_before_token||o,this.print_token(e),this._output.space_before_token=i}else this.print_token(e);else this.print_token(e)},C.prototype.handle_block_comment=function(e,t){return this._output.raw?(this._output.add_raw_token(e),void(e.directives&&"end"===e.directives.preserve&&(this._output.raw=this._options.test_output_raw))):e.directives?(this.print_newline(!1,t),this.print_token(e),"start"===e.directives.preserve&&(this._output.raw=!0),void this.print_newline(!1,!0)):i.newline.test(e.text)||e.newlines?void this.print_block_commment(e,t):(this._output.space_before_token=!0,this.print_token(e),void(this._output.space_before_token=!0))},C.prototype.print_block_commment=function(e,t){var n,r=w(e.text),o=!1,i=!1,a=e.whitespace_before,s=a.length;if(this.print_newline(!1,t),this.print_token_line_indentation(e),this._output.add_token(r[0]),this.print_newline(!1,t),r.length>1){for(r=r.slice(1),o=A(r,"*"),i=k(r,a),o&&(this._flags.alignment=1),n=0;n<r.length;n++)o?(this.print_token_line_indentation(e),this._output.add_token(h(r[n]))):i&&r[n]?(this.print_token_line_indentation(e),this._output.add_token(r[n].substring(s))):(this._output.current_line.set_indent(-1),this._output.add_token(r[n])),this.print_newline(!1,t);this._flags.alignment=0}},C.prototype.handle_comment=function(e,t){e.newlines?this.print_newline(!1,t):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(e),this.print_newline(!1,t)},C.prototype.handle_dot=function(e){this.start_of_statement(e)||this.handle_whitespace_and_comments(e,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),g(this._flags.last_token,m)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(e,")"===this._flags.last_token.text&&this._options.break_chained_methods),this._options.unindent_chained_methods&&this._output.just_added_newline()&&this.deindent(),this.print_token(e)},C.prototype.handle_unknown=function(e,t){this.print_token(e),"\n"===e.text[e.text.length-1]&&this.print_newline(!1,t)},C.prototype.handle_eof=function(e){while(this._flags.mode===_.Statement)this.restore_mode();this.handle_whitespace_and_comments(e)},e.exports.Beautifier=C},function(e){function t(e){this.__parent=e,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}function n(e,t){this.__cache=[""],this.__indent_size=e.indent_size,this.__indent_string=e.indent_char,e.indent_with_tabs||(this.__indent_string=new Array(e.indent_size+1).join(e.indent_char)),t=t||"",e.indent_level>0&&(t=new Array(e.indent_level+1).join(this.__indent_string)),this.__base_string=t,this.__base_string_length=t.length}function r(e,r){this.__indent_cache=new n(e,r),this.raw=!1,this._end_with_newline=e.end_with_newline,this.indent_size=e.indent_size,this.wrap_line_length=e.wrap_line_length,this.indent_empty_lines=e.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new t(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}t.prototype.clone_empty=function(){var e=new t(this.__parent);return e.set_indent(this.__indent_count,this.__alignment_count),e},t.prototype.item=function(e){return e<0?this.__items[this.__items.length+e]:this.__items[e]},t.prototype.has_match=function(e){for(var t=this.__items.length-1;t>=0;t--)if(this.__items[t].match(e))return!0;return!1},t.prototype.set_indent=function(e,t){this.is_empty()&&(this.__indent_count=e||0,this.__alignment_count=t||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},t.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},t.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},t.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var e=this.__parent.current_line;return e.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),e.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),e.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===e.__items[0]&&(e.__items.splice(0,1),e.__character_count-=1),!0}return!1},t.prototype.is_empty=function(){return 0===this.__items.length},t.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},t.prototype.push=function(e){this.__items.push(e);var t=e.lastIndexOf("\n");-1!==t?this.__character_count=e.length-t:this.__character_count+=e.length},t.prototype.pop=function(){var e=null;return this.is_empty()||(e=this.__items.pop(),this.__character_count-=e.length),e},t.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},t.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},t.prototype.trim=function(){while(" "===this.last())this.__items.pop(),this.__character_count-=1},t.prototype.toString=function(){var e="";return this.is_empty()?this.__parent.indent_empty_lines&&(e=this.__parent.get_indent_string(this.__indent_count)):(e=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),e+=this.__items.join("")),e},n.prototype.get_indent_size=function(e,t){var n=this.__base_string_length;return t=t||0,e<0&&(n=0),n+=e*this.__indent_size,n+=t,n},n.prototype.get_indent_string=function(e,t){var n=this.__base_string;return t=t||0,e<0&&(e=0,n=""),t+=e*this.__indent_size,this.__ensure_cache(t),n+=this.__cache[t],n},n.prototype.__ensure_cache=function(e){while(e>=this.__cache.length)this.__add_column()},n.prototype.__add_column=function(){var e=this.__cache.length,t=0,n="";this.__indent_size&&e>=this.__indent_size&&(t=Math.floor(e/this.__indent_size),e-=t*this.__indent_size,n=new Array(t+1).join(this.__indent_string)),e&&(n+=new Array(e+1).join(" ")),this.__cache.push(n)},r.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},r.prototype.get_line_number=function(){return this.__lines.length},r.prototype.get_indent_string=function(e,t){return this.__indent_cache.get_indent_string(e,t)},r.prototype.get_indent_size=function(e,t){return this.__indent_cache.get_indent_size(e,t)},r.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},r.prototype.add_new_line=function(e){return!(this.is_empty()||!e&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},r.prototype.get_code=function(e){this.trim(!0);var t=this.current_line.pop();t&&("\n"===t[t.length-1]&&(t=t.replace(/\n+$/g,"")),this.current_line.push(t)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join("\n");return"\n"!==e&&(n=n.replace(/[\n]/g,e)),n},r.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},r.prototype.set_indent=function(e,t){return e=e||0,t=t||0,this.next_line.set_indent(e,t),this.__lines.length>1?(this.current_line.set_indent(e,t),!0):(this.current_line.set_indent(),!1)},r.prototype.add_raw_token=function(e){for(var t=0;t<e.newlines;t++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(e.whitespace_before),this.current_line.push(e.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},r.prototype.add_token=function(e){this.__add_space_before_token(),this.current_line.push(e),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},r.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},r.prototype.remove_indent=function(e){var t=this.__lines.length;while(e<t)this.__lines[e]._remove_indent(),e++;this.current_line._remove_wrap_indent()},r.prototype.trim=function(e){e=void 0!==e&&e,this.current_line.trim();while(e&&this.__lines.length>1&&this.current_line.is_empty())this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},r.prototype.just_added_newline=function(){return this.current_line.is_empty()},r.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},r.prototype.ensure_empty_line_above=function(e,n){var r=this.__lines.length-2;while(r>=0){var o=this.__lines[r];if(o.is_empty())break;if(0!==o.item(0).indexOf(e)&&o.item(-1)!==n){this.__lines.splice(r+1,0,new t(this)),this.previous_line=this.__lines[this.__lines.length-2];break}r--}},e.exports.Output=r},function(e){function t(e,t,n,r){this.type=e,this.text=t,this.comments_before=null,this.newlines=n||0,this.whitespace_before=r||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}e.exports.Token=t},function(e,t){var n="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",r="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",o="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",i="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",a="\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}",s="(?:"+a+"|["+n+o+"])",l="(?:"+a+"|["+r+o+i+"])*";t.identifier=new RegExp(s+l,"g"),t.identifierStart=new RegExp(s),t.identifierMatch=new RegExp("(?:"+a+"|["+r+o+i+"])+");t.newline=/[\n\r\u2028\u2029]/,t.lineBreak=new RegExp("\r\n|"+t.newline.source),t.allLineBreaks=new RegExp(t.lineBreak.source,"g")},function(e,t,n){var r=n(6).Options,o=["before-newline","after-newline","preserve-newline"];function i(e){r.call(this,e,"js");var t=this.raw_options.brace_style||null;"expand-strict"===t?this.raw_options.brace_style="expand":"collapse-preserve-inline"===t?this.raw_options.brace_style="collapse,preserve-inline":void 0!==this.raw_options.braces_on_own_line&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var n=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var i=0;i<n.length;i++)"preserve-inline"===n[i]?this.brace_preserve_inline=!0:this.brace_style=n[i];this.unindent_chained_methods=this._get_boolean("unindent_chained_methods"),this.break_chained_methods=this._get_boolean("break_chained_methods"),this.space_in_paren=this._get_boolean("space_in_paren"),this.space_in_empty_paren=this._get_boolean("space_in_empty_paren"),this.jslint_happy=this._get_boolean("jslint_happy"),this.space_after_anon_function=this._get_boolean("space_after_anon_function"),this.space_after_named_function=this._get_boolean("space_after_named_function"),this.keep_array_indentation=this._get_boolean("keep_array_indentation"),this.space_before_conditional=this._get_boolean("space_before_conditional",!0),this.unescape_strings=this._get_boolean("unescape_strings"),this.e4x=this._get_boolean("e4x"),this.comma_first=this._get_boolean("comma_first"),this.operator_position=this._get_selection("operator_position",o),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}i.prototype=new r,e.exports.Options=i},function(e){function t(e,t){this.raw_options=n(e,t),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs","\t"===this.indent_char),this.indent_with_tabs&&(this.indent_char="\t",1===this.indent_size&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}function n(e,t){var n,o={};for(n in e=r(e),e)n!==t&&(o[n]=e[n]);if(t&&e[t])for(n in e[t])o[n]=e[t][n];return o}function r(e){var t,n={};for(t in e){var r=t.replace(/-/g,"_");n[r]=e[t]}return n}t.prototype._get_array=function(e,t){var n=this.raw_options[e],r=t||[];return"object"===typeof n?null!==n&&"function"===typeof n.concat&&(r=n.concat()):"string"===typeof n&&(r=n.split(/[^a-zA-Z0-9_\/\-]+/)),r},t.prototype._get_boolean=function(e,t){var n=this.raw_options[e],r=void 0===n?!!t:!!n;return r},t.prototype._get_characters=function(e,t){var n=this.raw_options[e],r=t||"";return"string"===typeof n&&(r=n.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t")),r},t.prototype._get_number=function(e,t){var n=this.raw_options[e];t=parseInt(t,10),isNaN(t)&&(t=0);var r=parseInt(n,10);return isNaN(r)&&(r=t),r},t.prototype._get_selection=function(e,t,n){var r=this._get_selection_list(e,t,n);if(1!==r.length)throw new Error("Invalid Option Value: The option '"+e+"' can only be one of the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return r[0]},t.prototype._get_selection_list=function(e,t,n){if(!t||0===t.length)throw new Error("Selection list cannot be empty.");if(n=n||[t[0]],!this._is_valid_selection(n,t))throw new Error("Invalid Default Value!");var r=this._get_array(e,n);if(!this._is_valid_selection(r,t))throw new Error("Invalid Option Value: The option '"+e+"' can contain only the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return r},t.prototype._is_valid_selection=function(e,t){return e.length&&t.length&&!e.some((function(e){return-1===t.indexOf(e)}))},e.exports.Options=t,e.exports.normalizeOpts=r,e.exports.mergeOpts=n},function(e,t,n){var r=n(8).InputScanner,o=n(9).Tokenizer,i=n(9).TOKEN,a=n(13).Directives,s=n(4),l=n(12).Pattern,u=n(14).TemplatablePattern;function c(e,t){return-1!==t.indexOf(e)}var d={START_EXPR:"TK_START_EXPR",END_EXPR:"TK_END_EXPR",START_BLOCK:"TK_START_BLOCK",END_BLOCK:"TK_END_BLOCK",WORD:"TK_WORD",RESERVED:"TK_RESERVED",SEMICOLON:"TK_SEMICOLON",STRING:"TK_STRING",EQUALS:"TK_EQUALS",OPERATOR:"TK_OPERATOR",COMMA:"TK_COMMA",BLOCK_COMMENT:"TK_BLOCK_COMMENT",COMMENT:"TK_COMMENT",DOT:"TK_DOT",UNKNOWN:"TK_UNKNOWN",START:i.START,RAW:i.RAW,EOF:i.EOF},h=new a(/\/\*/,/\*\//),p=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,f=/[0-9]/,g=/[^\d\.]/,m=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),v=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";v=v.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),v="\\?\\.(?!\\d) "+v,v=v.replace(/ /g,"|");var y,b=new RegExp(v),_="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),x=_.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),w=new RegExp("^(?:"+x.join("|")+")$"),O=function(e,t){o.call(this,e,t),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var n=new l(this._input),r=new u(this._input).read_options(this._options);this.__patterns={template:r,identifier:r.starting_with(s.identifier).matching(s.identifierMatch),number:n.matching(p),punct:n.matching(b),comment:n.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:n.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:n.matching(/<!--/),html_comment_end:n.matching(/-->/),include:n.starting_with(/#include/).until_after(s.lineBreak),shebang:n.starting_with(/#!/).until_after(s.lineBreak),xml:n.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:r.until(/['\\\n\r\u2028\u2029]/),double_quote:r.until(/["\\\n\r\u2028\u2029]/),template_text:r.until(/[`\\$]/),template_expression:r.until(/[`}\\]/)}};function S(e){var t="",n=0,o=new r(e),i=null;while(o.hasNext())if(i=o.match(/([\s]|[^\\]|\\\\)+/g),i&&(t+=i[0]),"\\"===o.peek()){if(o.next(),"x"===o.peek())i=o.match(/x([0-9A-Fa-f]{2})/g);else{if("u"!==o.peek()){t+="\\",o.hasNext()&&(t+=o.next());continue}i=o.match(/u([0-9A-Fa-f]{4})/g),i||(i=o.match(/u\{([0-9A-Fa-f]+)\}/g))}if(!i)return e;if(n=parseInt(i[1],16),n>126&&n<=255&&0===i[0].indexOf("x"))return e;t+=n>=0&&n<32||n>1114111?"\\"+i[0]:34===n||39===n||92===n?"\\"+String.fromCharCode(n):String.fromCharCode(n)}return t}O.prototype=new o,O.prototype._is_comment=function(e){return e.type===d.COMMENT||e.type===d.BLOCK_COMMENT||e.type===d.UNKNOWN},O.prototype._is_opening=function(e){return e.type===d.START_BLOCK||e.type===d.START_EXPR},O.prototype._is_closing=function(e,t){return(e.type===d.END_BLOCK||e.type===d.END_EXPR)&&t&&("]"===e.text&&"["===t.text||")"===e.text&&"("===t.text||"}"===e.text&&"{"===t.text)},O.prototype._reset=function(){y=!1},O.prototype._get_next_token=function(e,t){var n=null;this._readWhitespace();var r=this._input.peek();return null===r?this._create_token(d.EOF,""):(n=n||this._read_non_javascript(r),n=n||this._read_string(r),n=n||this._read_pair(r,this._input.peek(1)),n=n||this._read_word(e),n=n||this._read_singles(r),n=n||this._read_comment(r),n=n||this._read_regexp(r,e),n=n||this._read_xml(r,e),n=n||this._read_punctuation(),n=n||this._create_token(d.UNKNOWN,this._input.next()),n)},O.prototype._read_word=function(e){var t;return t=this.__patterns.identifier.read(),""!==t?(t=t.replace(s.allLineBreaks,"\n"),e.type!==d.DOT&&(e.type!==d.RESERVED||"set"!==e.text&&"get"!==e.text)&&w.test(t)?"in"!==t&&"of"!==t||e.type!==d.WORD&&e.type!==d.STRING?this._create_token(d.RESERVED,t):this._create_token(d.OPERATOR,t):this._create_token(d.WORD,t)):(t=this.__patterns.number.read(),""!==t?this._create_token(d.WORD,t):void 0)},O.prototype._read_singles=function(e){var t=null;return"("===e||"["===e?t=this._create_token(d.START_EXPR,e):")"===e||"]"===e?t=this._create_token(d.END_EXPR,e):"{"===e?t=this._create_token(d.START_BLOCK,e):"}"===e?t=this._create_token(d.END_BLOCK,e):";"===e?t=this._create_token(d.SEMICOLON,e):"."===e&&g.test(this._input.peek(1))?t=this._create_token(d.DOT,e):","===e&&(t=this._create_token(d.COMMA,e)),t&&this._input.next(),t},O.prototype._read_pair=function(e,t){var n=null;return"#"===e&&"{"===t&&(n=this._create_token(d.START_BLOCK,e+t)),n&&(this._input.next(),this._input.next()),n},O.prototype._read_punctuation=function(){var e=this.__patterns.punct.read();if(""!==e)return"="===e?this._create_token(d.EQUALS,e):"?."===e?this._create_token(d.DOT,e):this._create_token(d.OPERATOR,e)},O.prototype._read_non_javascript=function(e){var t="";if("#"===e){if(this._is_first_token()&&(t=this.__patterns.shebang.read(),t))return this._create_token(d.UNKNOWN,t.trim()+"\n");if(t=this.__patterns.include.read(),t)return this._create_token(d.UNKNOWN,t.trim()+"\n");e=this._input.next();var n="#";if(this._input.hasNext()&&this._input.testChar(f)){do{e=this._input.next(),n+=e}while(this._input.hasNext()&&"#"!==e&&"="!==e);return"#"===e||("["===this._input.peek()&&"]"===this._input.peek(1)?(n+="[]",this._input.next(),this._input.next()):"{"===this._input.peek()&&"}"===this._input.peek(1)&&(n+="{}",this._input.next(),this._input.next())),this._create_token(d.WORD,n)}this._input.back()}else if("<"===e&&this._is_first_token()){if(t=this.__patterns.html_comment_start.read(),t){while(this._input.hasNext()&&!this._input.testChar(s.newline))t+=this._input.next();return y=!0,this._create_token(d.COMMENT,t)}}else if(y&&"-"===e&&(t=this.__patterns.html_comment_end.read(),t))return y=!1,this._create_token(d.COMMENT,t);return null},O.prototype._read_comment=function(e){var t=null;if("/"===e){var n="";if("*"===this._input.peek(1)){n=this.__patterns.block_comment.read();var r=h.get_directives(n);r&&"start"===r.ignore&&(n+=h.readIgnored(this._input)),n=n.replace(s.allLineBreaks,"\n"),t=this._create_token(d.BLOCK_COMMENT,n),t.directives=r}else"/"===this._input.peek(1)&&(n=this.__patterns.comment.read(),t=this._create_token(d.COMMENT,n))}return t},O.prototype._read_string=function(e){if("`"===e||"'"===e||'"'===e){var t=this._input.next();return this.has_char_escapes=!1,t+="`"===e?this._read_string_recursive("`",!0,"${"):this._read_string_recursive(e),this.has_char_escapes&&this._options.unescape_strings&&(t=S(t)),this._input.peek()===e&&(t+=this._input.next()),t=t.replace(s.allLineBreaks,"\n"),this._create_token(d.STRING,t)}return null},O.prototype._allow_regexp_or_xml=function(e){return e.type===d.RESERVED&&c(e.text,["return","case","throw","else","do","typeof","yield"])||e.type===d.END_EXPR&&")"===e.text&&e.opened.previous.type===d.RESERVED&&c(e.opened.previous.text,["if","while","for"])||c(e.type,[d.COMMENT,d.START_EXPR,d.START_BLOCK,d.START,d.END_BLOCK,d.OPERATOR,d.EQUALS,d.EOF,d.SEMICOLON,d.COMMA])},O.prototype._read_regexp=function(e,t){if("/"===e&&this._allow_regexp_or_xml(t)){var n=this._input.next(),r=!1,o=!1;while(this._input.hasNext()&&(r||o||this._input.peek()!==e)&&!this._input.testChar(s.newline))n+=this._input.peek(),r?r=!1:(r="\\"===this._input.peek(),"["===this._input.peek()?o=!0:"]"===this._input.peek()&&(o=!1)),this._input.next();return this._input.peek()===e&&(n+=this._input.next(),n+=this._input.read(s.identifier)),this._create_token(d.STRING,n)}return null},O.prototype._read_xml=function(e,t){if(this._options.e4x&&"<"===e&&this._allow_regexp_or_xml(t)){var n="",r=this.__patterns.xml.read_match();if(r){var o=r[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),i=0===o.indexOf("{"),a=0;while(r){var l=!!r[1],u=r[2],c=!!r[r.length-1]||"![CDATA["===u.slice(0,8);if(!c&&(u===o||i&&u.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(l?--a:++a),n+=r[0],a<=0)break;r=this.__patterns.xml.read_match()}return r||(n+=this._input.match(/[\s\S]*/g)[0]),n=n.replace(s.allLineBreaks,"\n"),this._create_token(d.STRING,n)}}return null},O.prototype._read_string_recursive=function(e,t,n){var r,o;"'"===e?o=this.__patterns.single_quote:'"'===e?o=this.__patterns.double_quote:"`"===e?o=this.__patterns.template_text:"}"===e&&(o=this.__patterns.template_expression);var i=o.read(),a="";while(this._input.hasNext()){if(a=this._input.next(),a===e||!t&&s.newline.test(a)){this._input.back();break}"\\"===a&&this._input.hasNext()?(r=this._input.peek(),"x"===r||"u"===r?this.has_char_escapes=!0:"\r"===r&&"\n"===this._input.peek(1)&&this._input.next(),a+=this._input.next()):n&&("${"===n&&"$"===a&&"{"===this._input.peek()&&(a+=this._input.next()),n===a&&(a+="`"===e?this._read_string_recursive("}",t,"`"):this._read_string_recursive("`",t,"${"),this._input.hasNext()&&(a+=this._input.next()))),a+=o.read(),i+=a}return i},e.exports.Tokenizer=O,e.exports.TOKEN=d,e.exports.positionable_operators=m.slice(),e.exports.line_starters=_.slice()},function(e){var t=RegExp.prototype.hasOwnProperty("sticky");function n(e){this.__input=e||"",this.__input_length=this.__input.length,this.__position=0}n.prototype.restart=function(){this.__position=0},n.prototype.back=function(){this.__position>0&&(this.__position-=1)},n.prototype.hasNext=function(){return this.__position<this.__input_length},n.prototype.next=function(){var e=null;return this.hasNext()&&(e=this.__input.charAt(this.__position),this.__position+=1),e},n.prototype.peek=function(e){var t=null;return e=e||0,e+=this.__position,e>=0&&e<this.__input_length&&(t=this.__input.charAt(e)),t},n.prototype.__match=function(e,n){e.lastIndex=n;var r=e.exec(this.__input);return!r||t&&e.sticky||r.index!==n&&(r=null),r},n.prototype.test=function(e,t){return t=t||0,t+=this.__position,t>=0&&t<this.__input_length&&!!this.__match(e,t)},n.prototype.testChar=function(e,t){var n=this.peek(t);return e.lastIndex=0,null!==n&&e.test(n)},n.prototype.match=function(e){var t=this.__match(e,this.__position);return t?this.__position+=t[0].length:t=null,t},n.prototype.read=function(e,t,n){var r,o="";return e&&(r=this.match(e),r&&(o+=r[0])),!t||!r&&e||(o+=this.readUntil(t,n)),o},n.prototype.readUntil=function(e,t){var n="",r=this.__position;e.lastIndex=this.__position;var o=e.exec(this.__input);return o?(r=o.index,t&&(r+=o[0].length)):r=this.__input_length,n=this.__input.substring(this.__position,r),this.__position=r,n},n.prototype.readUntilAfter=function(e){return this.readUntil(e,!0)},n.prototype.get_regexp=function(e,n){var r=null,o="g";return n&&t&&(o="y"),"string"===typeof e&&""!==e?r=new RegExp(e,o):e&&(r=new RegExp(e.source,o)),r},n.prototype.get_literal_regexp=function(e){return RegExp(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},n.prototype.peekUntilAfter=function(e){var t=this.__position,n=this.readUntilAfter(e);return this.__position=t,n},n.prototype.lookBack=function(e){var t=this.__position-1;return t>=e.length&&this.__input.substring(t-e.length,t).toLowerCase()===e},e.exports.InputScanner=n},function(e,t,n){var r=n(8).InputScanner,o=n(3).Token,i=n(10).TokenStream,a=n(11).WhitespacePattern,s={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},l=function(e,t){this._input=new r(e),this._options=t||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new a(this._input)};l.prototype.tokenize=function(){var e;this._input.restart(),this.__tokens=new i,this._reset();var t=new o(s.START,""),n=null,r=[],a=new i;while(t.type!==s.EOF){e=this._get_next_token(t,n);while(this._is_comment(e))a.add(e),e=this._get_next_token(t,n);a.isEmpty()||(e.comments_before=a,a=new i),e.parent=n,this._is_opening(e)?(r.push(n),n=e):n&&this._is_closing(e,n)&&(e.opened=n,n.closed=e,n=r.pop(),e.parent=n),e.previous=t,t.next=e,this.__tokens.add(e),t=e}return this.__tokens},l.prototype._is_first_token=function(){return this.__tokens.isEmpty()},l.prototype._reset=function(){},l.prototype._get_next_token=function(e,t){this._readWhitespace();var n=this._input.read(/.+/g);return n?this._create_token(s.RAW,n):this._create_token(s.EOF,"")},l.prototype._is_comment=function(e){return!1},l.prototype._is_opening=function(e){return!1},l.prototype._is_closing=function(e,t){return!1},l.prototype._create_token=function(e,t){var n=new o(e,t,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return n},l.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},e.exports.Tokenizer=l,e.exports.TOKEN=s},function(e){function t(e){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=e}t.prototype.restart=function(){this.__position=0},t.prototype.isEmpty=function(){return 0===this.__tokens_length},t.prototype.hasNext=function(){return this.__position<this.__tokens_length},t.prototype.next=function(){var e=null;return this.hasNext()&&(e=this.__tokens[this.__position],this.__position+=1),e},t.prototype.peek=function(e){var t=null;return e=e||0,e+=this.__position,e>=0&&e<this.__tokens_length&&(t=this.__tokens[e]),t},t.prototype.add=function(e){this.__parent_token&&(e.parent=this.__parent_token),this.__tokens.push(e),this.__tokens_length+=1},e.exports.TokenStream=t},function(e,t,n){var r=n(12).Pattern;function o(e,t){r.call(this,e,t),t?this._line_regexp=this._input.get_regexp(t._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}o.prototype=new r,o.prototype.__set_whitespace_patterns=function(e,t){e+="\\t ",t+="\\n\\r",this._match_pattern=this._input.get_regexp("["+e+t+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+t+"]")},o.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var e=this._input.read(this._match_pattern);if(" "===e)this.whitespace_before_token=" ";else if(e){var t=this.__split(this._newline_regexp,e);this.newline_count=t.length-1,this.whitespace_before_token=t[this.newline_count]}return e},o.prototype.matching=function(e,t){var n=this._create();return n.__set_whitespace_patterns(e,t),n._update(),n},o.prototype._create=function(){return new o(this._input,this)},o.prototype.__split=function(e,t){e.lastIndex=0;var n=0,r=[],o=e.exec(t);while(o)r.push(t.substring(n,o.index)),n=o.index+o[0].length,o=e.exec(t);return n<t.length?r.push(t.substring(n,t.length)):r.push(""),r},e.exports.WhitespacePattern=o},function(e){function t(e,t){this._input=e,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,t&&(this._starting_pattern=this._input.get_regexp(t._starting_pattern,!0),this._match_pattern=this._input.get_regexp(t._match_pattern,!0),this._until_pattern=this._input.get_regexp(t._until_pattern),this._until_after=t._until_after)}t.prototype.read=function(){var e=this._input.read(this._starting_pattern);return this._starting_pattern&&!e||(e+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),e},t.prototype.read_match=function(){return this._input.match(this._match_pattern)},t.prototype.until_after=function(e){var t=this._create();return t._until_after=!0,t._until_pattern=this._input.get_regexp(e),t._update(),t},t.prototype.until=function(e){var t=this._create();return t._until_after=!1,t._until_pattern=this._input.get_regexp(e),t._update(),t},t.prototype.starting_with=function(e){var t=this._create();return t._starting_pattern=this._input.get_regexp(e,!0),t._update(),t},t.prototype.matching=function(e){var t=this._create();return t._match_pattern=this._input.get_regexp(e,!0),t._update(),t},t.prototype._create=function(){return new t(this._input,this)},t.prototype._update=function(){},e.exports.Pattern=t},function(e){function t(e,t){e="string"===typeof e?e:e.source,t="string"===typeof t?t:t.source,this.__directives_block_pattern=new RegExp(e+/ beautify( \w+[:]\w+)+ /.source+t,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(e+/\sbeautify\signore:end\s/.source+t,"g")}t.prototype.get_directives=function(e){if(!e.match(this.__directives_block_pattern))return null;var t={};this.__directive_pattern.lastIndex=0;var n=this.__directive_pattern.exec(e);while(n)t[n[1]]=n[2],n=this.__directive_pattern.exec(e);return t},t.prototype.readIgnored=function(e){return e.readUntilAfter(this.__directives_end_ignore_pattern)},e.exports.Directives=t},function(e,t,n){var r=n(12).Pattern,o={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function i(e,t){r.call(this,e,t),this.__template_pattern=null,this._disabled=Object.assign({},o),this._excluded=Object.assign({},o),t&&(this.__template_pattern=this._input.get_regexp(t.__template_pattern),this._excluded=Object.assign(this._excluded,t._excluded),this._disabled=Object.assign(this._disabled,t._disabled));var n=new r(e);this.__patterns={handlebars_comment:n.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:n.starting_with(/{{{/).until_after(/}}}/),handlebars:n.starting_with(/{{/).until_after(/}}/),php:n.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:n.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:n.starting_with(/{%/).until_after(/%}/),django_value:n.starting_with(/{{/).until_after(/}}/),django_comment:n.starting_with(/{#/).until_after(/#}/),smarty:n.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:n.starting_with(/{\*/).until_after(/\*}/),smarty_literal:n.starting_with(/{literal}/).until_after(/{\/literal}/)}}i.prototype=new r,i.prototype._create=function(){return new i(this._input,this)},i.prototype._update=function(){this.__set_templated_pattern()},i.prototype.disable=function(e){var t=this._create();return t._disabled[e]=!0,t._update(),t},i.prototype.read_options=function(e){var t=this._create();for(var n in o)t._disabled[n]=-1===e.templating.indexOf(n);return t._update(),t},i.prototype.exclude=function(e){var t=this._create();return t._excluded[e]=!0,t._update(),t},i.prototype.read=function(){var e="";e=this._match_pattern?this._input.read(this._starting_pattern):this._input.read(this._starting_pattern,this.__template_pattern);var t=this._read_template();while(t)this._match_pattern?t+=this._input.read(this._match_pattern):t+=this._input.readUntil(this.__template_pattern),e+=t,t=this._read_template();return this._until_after&&(e+=this._input.readUntilAfter(this._until_pattern)),e},i.prototype.__set_templated_pattern=function(){var e=[];this._disabled.php||e.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||e.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||e.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(e.push(this.__patterns.django._starting_pattern.source),e.push(this.__patterns.django_value._starting_pattern.source),e.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||e.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&e.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+e.join("|")+")")},i.prototype._read_template=function(){var e="",t=this._input.peek();if("<"===t){var n=this._input.peek(1);this._disabled.php||this._excluded.php||"?"!==n||(e=e||this.__patterns.php.read()),this._disabled.erb||this._excluded.erb||"%"!==n||(e=e||this.__patterns.erb.read())}else"{"===t&&(this._disabled.handlebars||this._excluded.handlebars||(e=e||this.__patterns.handlebars_comment.read(),e=e||this.__patterns.handlebars_unescaped.read(),e=e||this.__patterns.handlebars.read()),this._disabled.django||(this._excluded.django||this._excluded.handlebars||(e=e||this.__patterns.django_value.read()),this._excluded.django||(e=e||this.__patterns.django_comment.read(),e=e||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(e=e||this.__patterns.smarty_comment.read(),e=e||this.__patterns.smarty_literal.read(),e=e||this.__patterns.smarty.read()));return e},e.exports.TemplatablePattern=i}],t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}var o=r(0);n=o})();var i=n;r=[],o=function(){return{js_beautify:i}}.apply(t,r),void 0===o||(e.exports=o)}()},43168:function(e,t,n){var r=n(70650),o=n(59905),i=r(o,"DataView");e.exports=i},5241:function(e,t,n){var r=n(35668),o=n(59170),i=n(36701),a=n(55569),s=n(86329);function l(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype["delete"]=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},47563:function(e,t,n){var r=n(4298),o=n(80748),i=n(24383),a=n(74979),s=n(94267);function l(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype["delete"]=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},63067:function(e,t,n){var r=n(70650),o=n(59905),i=r(o,"Map");e.exports=i},77737:function(e,t,n){var r=n(32612),o=n(44882),i=n(25773),a=n(30433),s=n(94601);function l(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype["delete"]=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},22784:function(e,t,n){var r=n(70650),o=n(59905),i=r(o,"Promise");e.exports=i},13109:function(e,t,n){var r=n(70650),o=n(59905),i=r(o,"Set");e.exports=i},29135:function(e,t,n){n(30381);var r=n(77737),o=n(48976),i=n(7055);function a(e){var t=-1,n=null==e?0:e.length;this.__data__=new r;while(++t<n)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},63341:function(e,t,n){var r=n(47563),o=n(88816),i=n(96310),a=n(79809),s=n(77165),l=n(48837);function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=o,u.prototype["delete"]=i,u.prototype.get=a,u.prototype.has=s,u.prototype.set=l,e.exports=u},22965:function(e,t,n){var r=n(59905),o=r.Symbol;e.exports=o},40344:function(e,t,n){var r=n(59905),o=r.Uint8Array;e.exports=o},43195:function(e,t,n){var r=n(70650),o=n(59905),i=r(o,"WeakMap");e.exports=i},68213:function(e){function t(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}e.exports=t},23773:function(e){function t(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(!1===t(e[n],n,e))break;return e}e.exports=t},56046:function(e){function t(e,t){var n=-1,r=null==e?0:e.length,o=0,i=[];while(++n<r){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}e.exports=t},29299:function(e,t,n){n(30381);var r=n(78148),o=n(78544),i=n(18965),a=n(59828),s=n(75317),l=n(77523),u=Object.prototype,c=u.hasOwnProperty;function d(e,t){var n=i(e),u=!n&&o(e),d=!n&&!u&&a(e),h=!n&&!u&&!d&&l(e),p=n||u||d||h,f=p?r(e.length,String):[],g=f.length;for(var m in e)!t&&!c.call(e,m)||p&&("length"==m||d&&("offset"==m||"parent"==m)||h&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,g))||f.push(m);return f}e.exports=d},30220:function(e){function t(e,t){var n=-1,r=t.length,o=e.length;while(++n<r)e[o+n]=t[n];return e}e.exports=t},98452:function(e){function t(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(t(e[n],n,e))return!0;return!1}e.exports=t},23289:function(e,t,n){var r=n(25948),o=n(3900);function i(e,t,n){(void 0!==n&&!o(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}e.exports=i},58455:function(e,t,n){var r=n(25948),o=n(3900),i=Object.prototype,a=i.hasOwnProperty;function s(e,t,n){var i=e[t];a.call(e,t)&&o(i,n)&&(void 0!==n||t in e)||r(e,t,n)}e.exports=s},51701:function(e,t,n){var r=n(3900);function o(e,t){var n=e.length;while(n--)if(r(e[n][0],t))return n;return-1}e.exports=o},42785:function(e,t,n){var r=n(97867),o=n(97938);function i(e,t){return e&&r(t,o(t),e)}e.exports=i},44042:function(e,t,n){var r=n(97867),o=n(67477);function i(e,t){return e&&r(t,o(t),e)}e.exports=i},25948:function(e,t,n){var r=n(60071);function o(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}e.exports=o},47451:function(e,t,n){var r=n(63341),o=n(23773),i=n(58455),a=n(42785),s=n(44042),l=n(68382),u=n(43403),c=n(75843),d=n(95792),h=n(12510),p=n(68233),f=n(93033),g=n(22185),m=n(74699),v=n(229),y=n(18965),b=n(59828),_=n(85966),x=n(14369),w=n(93676),O=n(97938),S=n(67477),A=1,k=2,C=4,M="[object Arguments]",T="[object Array]",P="[object Boolean]",I="[object Date]",$="[object Error]",E="[object Function]",D="[object GeneratorFunction]",R="[object Map]",N="[object Number]",L="[object Object]",z="[object RegExp]",V="[object Set]",B="[object String]",j="[object Symbol]",Q="[object WeakMap]",F="[object ArrayBuffer]",W="[object DataView]",H="[object Float32Array]",Z="[object Float64Array]",G="[object Int8Array]",X="[object Int16Array]",U="[object Int32Array]",Y="[object Uint8Array]",q="[object Uint8ClampedArray]",K="[object Uint16Array]",J="[object Uint32Array]",ee={};function te(e,t,n,T,P,I){var $,R=t&A,N=t&k,z=t&C;if(n&&($=P?n(e,T,P,I):n(e)),void 0!==$)return $;if(!x(e))return e;var V=y(e);if(V){if($=g(e),!R)return u(e,$)}else{var B=f(e),j=B==E||B==D;if(b(e))return l(e,R);if(B==L||B==M||j&&!P){if($=N||j?{}:v(e),!R)return N?d(e,s($,e)):c(e,a($,e))}else{if(!ee[B])return P?e:{};$=m(e,B,R)}}I||(I=new r);var Q=I.get(e);if(Q)return Q;I.set(e,$),w(e)?e.forEach((function(r){$.add(te(r,t,n,r,e,I))})):_(e)&&e.forEach((function(r,o){$.set(o,te(r,t,n,o,e,I))}));var F=z?N?p:h:N?S:O,W=V?void 0:F(e);return o(W||e,(function(r,o){W&&(o=r,r=e[o]),i($,o,te(r,t,n,o,e,I))})),$}ee[M]=ee[T]=ee[F]=ee[W]=ee[P]=ee[I]=ee[H]=ee[Z]=ee[G]=ee[X]=ee[U]=ee[R]=ee[N]=ee[L]=ee[z]=ee[V]=ee[B]=ee[j]=ee[Y]=ee[q]=ee[K]=ee[J]=!0,ee[$]=ee[E]=ee[Q]=!1,e.exports=te},98204:function(e,t,n){var r=n(14369),o=Object.create,i=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=i},13669:function(e,t,n){var r=n(14681),o=r();e.exports=o},25163:function(e,t,n){var r=n(30220),o=n(18965);function i(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}e.exports=i},60116:function(e,t,n){var r=n(22965),o=n(74183),i=n(24370),a="[object Null]",s="[object Undefined]",l=r?r.toStringTag:void 0;function u(e){return null==e?void 0===e?s:a:l&&l in Object(e)?o(e):i(e)}e.exports=u},58362:function(e,t,n){var r=n(60116),o=n(46238),i="[object Arguments]";function a(e){return o(e)&&r(e)==i}e.exports=a},50722:function(e,t,n){var r=n(75720),o=n(46238);function i(e,t,n,a,s){return e===t||(null==e||null==t||!o(e)&&!o(t)?e!==e&&t!==t:r(e,t,n,a,i,s))}e.exports=i},75720:function(e,t,n){var r=n(63341),o=n(60739),i=n(71094),a=n(83277),s=n(93033),l=n(18965),u=n(59828),c=n(77523),d=1,h="[object Arguments]",p="[object Array]",f="[object Object]",g=Object.prototype,m=g.hasOwnProperty;function v(e,t,n,g,v,y){var b=l(e),_=l(t),x=b?p:s(e),w=_?p:s(t);x=x==h?f:x,w=w==h?f:w;var O=x==f,S=w==f,A=x==w;if(A&&u(e)){if(!u(t))return!1;b=!0,O=!1}if(A&&!O)return y||(y=new r),b||c(e)?o(e,t,n,g,v,y):i(e,t,x,n,g,v,y);if(!(n&d)){var k=O&&m.call(e,"__wrapped__"),C=S&&m.call(t,"__wrapped__");if(k||C){var M=k?e.value():e,T=C?t.value():t;return y||(y=new r),v(M,T,n,g,y)}}return!!A&&(y||(y=new r),a(e,t,n,g,v,y))}e.exports=v},67928:function(e,t,n){var r=n(93033),o=n(46238),i="[object Map]";function a(e){return o(e)&&r(e)==i}e.exports=a},17007:function(e,t,n){var r=n(21798),o=n(740),i=n(14369),a=n(10965),s=/[\\^$.*+?()[\]{}|]/g,l=/^\[object .+?Constructor\]$/,u=Function.prototype,c=Object.prototype,d=u.toString,h=c.hasOwnProperty,p=RegExp("^"+d.call(h).replace(s,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function f(e){if(!i(e)||o(e))return!1;var t=r(e)?p:l;return t.test(a(e))}e.exports=f},86882:function(e,t,n){var r=n(93033),o=n(46238),i="[object Set]";function a(e){return o(e)&&r(e)==i}e.exports=a},6081:function(e,t,n){var r=n(60116),o=n(43178),i=n(46238),a="[object Arguments]",s="[object Array]",l="[object Boolean]",u="[object Date]",c="[object Error]",d="[object Function]",h="[object Map]",p="[object Number]",f="[object Object]",g="[object RegExp]",m="[object Set]",v="[object String]",y="[object WeakMap]",b="[object ArrayBuffer]",_="[object DataView]",x="[object Float32Array]",w="[object Float64Array]",O="[object Int8Array]",S="[object Int16Array]",A="[object Int32Array]",k="[object Uint8Array]",C="[object Uint8ClampedArray]",M="[object Uint16Array]",T="[object Uint32Array]",P={};function I(e){return i(e)&&o(e.length)&&!!P[r(e)]}P[x]=P[w]=P[O]=P[S]=P[A]=P[k]=P[C]=P[M]=P[T]=!0,P[a]=P[s]=P[b]=P[l]=P[_]=P[u]=P[c]=P[d]=P[h]=P[p]=P[f]=P[g]=P[m]=P[v]=P[y]=!1,e.exports=I},64052:function(e,t,n){n(30381);var r=n(7875),o=n(73318),i=Object.prototype,a=i.hasOwnProperty;function s(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))a.call(e,n)&&"constructor"!=n&&t.push(n);return t}e.exports=s},58715:function(e,t,n){n(30381);var r=n(14369),o=n(7875),i=n(23473),a=Object.prototype,s=a.hasOwnProperty;function l(e){if(!r(e))return i(e);var t=o(e),n=[];for(var a in e)("constructor"!=a||!t&&s.call(e,a))&&n.push(a);return n}e.exports=l},82974:function(e,t,n){var r=n(63341),o=n(23289),i=n(13669),a=n(55692),s=n(14369),l=n(67477),u=n(99914);function c(e,t,n,d,h){e!==t&&i(t,(function(i,l){if(h||(h=new r),s(i))a(e,t,l,n,c,d,h);else{var p=d?d(u(e,l),i,l+"",e,t,h):void 0;void 0===p&&(p=i),o(e,l,p)}}),l)}e.exports=c},55692:function(e,t,n){var r=n(23289),o=n(68382),i=n(15237),a=n(43403),s=n(229),l=n(78544),u=n(18965),c=n(1337),d=n(59828),h=n(21798),p=n(14369),f=n(95759),g=n(77523),m=n(99914),v=n(94520);function y(e,t,n,y,b,_,x){var w=m(e,n),O=m(t,n),S=x.get(O);if(S)r(e,n,S);else{var A=_?_(w,O,n+"",e,t,x):void 0,k=void 0===A;if(k){var C=u(O),M=!C&&d(O),T=!C&&!M&&g(O);A=O,C||M||T?u(w)?A=w:c(w)?A=a(w):M?(k=!1,A=o(O,!0)):T?(k=!1,A=i(O,!0)):A=[]:f(O)||l(O)?(A=w,l(w)?A=v(w):p(w)&&!h(w)||(A=s(O))):k=!1}k&&(x.set(O,A),b(A,O,y,_,x),x["delete"](O)),r(e,n,A)}}e.exports=y},93018:function(e,t,n){var r=n(51252),o=n(24969),i=n(20605);function a(e,t){return i(o(e,t,r),e+"")}e.exports=a},34230:function(e,t,n){var r=n(47002),o=n(60071),i=n(51252),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;e.exports=a},78148:function(e){function t(e,t){var n=-1,r=Array(e);while(++n<e)r[n]=t(n);return r}e.exports=t},2004:function(e,t,n){var r=n(99652),o=/^\s+/;function i(e){return e?e.slice(0,r(e)+1).replace(o,""):e}e.exports=i},49361:function(e){function t(e){return function(t){return e(t)}}e.exports=t},33847:function(e){function t(e,t){return e.has(t)}e.exports=t},67233:function(e,t,n){var r=n(40344);function o(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}e.exports=o},68382:function(e,t,n){e=n.nmd(e);var r=n(59905),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o,s=a?r.Buffer:void 0,l=s?s.allocUnsafe:void 0;function u(e,t){if(t)return e.slice();var n=e.length,r=l?l(n):new e.constructor(n);return e.copy(r),r}e.exports=u},70421:function(e,t,n){var r=n(67233);function o(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}e.exports=o},89309:function(e){var t=/\w*$/;function n(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}e.exports=n},29588:function(e,t,n){var r=n(22965),o=r?r.prototype:void 0,i=o?o.valueOf:void 0;function a(e){return i?Object(i.call(e)):{}}e.exports=a},15237:function(e,t,n){var r=n(67233);function o(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}e.exports=o},43403:function(e){function t(e,t){var n=-1,r=e.length;t||(t=Array(r));while(++n<r)t[n]=e[n];return t}e.exports=t},97867:function(e,t,n){var r=n(58455),o=n(25948);function i(e,t,n,i){var a=!n;n||(n={});var s=-1,l=t.length;while(++s<l){var u=t[s],c=i?i(n[u],e[u],u,n,e):void 0;void 0===c&&(c=e[u]),a?o(n,u,c):r(n,u,c)}return n}e.exports=i},75843:function(e,t,n){var r=n(97867),o=n(8628);function i(e,t){return r(e,o(e),t)}e.exports=i},95792:function(e,t,n){var r=n(97867),o=n(60315);function i(e,t){return r(e,o(e),t)}e.exports=i},18565:function(e,t,n){var r=n(59905),o=r["__core-js_shared__"];e.exports=o},93859:function(e,t,n){var r=n(93018),o=n(41684);function i(e){return r((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;a=e.length>3&&"function"==typeof a?(i--,a):void 0,s&&o(n[0],n[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);while(++r<i){var l=n[r];l&&e(t,l,r,a)}return t}))}e.exports=i},14681:function(e){function t(e){return function(t,n,r){var o=-1,i=Object(t),a=r(t),s=a.length;while(s--){var l=a[e?s:++o];if(!1===n(i[l],l,i))break}return t}}e.exports=t},60071:function(e,t,n){var r=n(70650),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=o},60739:function(e,t,n){n(30381);var r=n(29135),o=n(98452),i=n(33847),a=1,s=2;function l(e,t,n,l,u,c){var d=n&a,h=e.length,p=t.length;if(h!=p&&!(d&&p>h))return!1;var f=c.get(e),g=c.get(t);if(f&&g)return f==t&&g==e;var m=-1,v=!0,y=n&s?new r:void 0;c.set(e,t),c.set(t,e);while(++m<h){var b=e[m],_=t[m];if(l)var x=d?l(_,b,m,t,e,c):l(b,_,m,e,t,c);if(void 0!==x){if(x)continue;v=!1;break}if(y){if(!o(t,(function(e,t){if(!i(y,t)&&(b===e||u(b,e,n,l,c)))return y.push(t)}))){v=!1;break}}else if(b!==_&&!u(b,_,n,l,c)){v=!1;break}}return c["delete"](e),c["delete"](t),v}e.exports=l},71094:function(e,t,n){var r=n(22965),o=n(40344),i=n(3900),a=n(60739),s=n(21473),l=n(68915),u=1,c=2,d="[object Boolean]",h="[object Date]",p="[object Error]",f="[object Map]",g="[object Number]",m="[object RegExp]",v="[object Set]",y="[object String]",b="[object Symbol]",_="[object ArrayBuffer]",x="[object DataView]",w=r?r.prototype:void 0,O=w?w.valueOf:void 0;function S(e,t,n,r,w,S,A){switch(n){case x:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case _:return!(e.byteLength!=t.byteLength||!S(new o(e),new o(t)));case d:case h:case g:return i(+e,+t);case p:return e.name==t.name&&e.message==t.message;case m:case y:return e==t+"";case f:var k=s;case v:var C=r&u;if(k||(k=l),e.size!=t.size&&!C)return!1;var M=A.get(e);if(M)return M==t;r|=c,A.set(e,t);var T=a(k(e),k(t),r,w,S,A);return A["delete"](e),T;case b:if(O)return O.call(e)==O.call(t)}return!1}e.exports=S},83277:function(e,t,n){var r=n(12510),o=1,i=Object.prototype,a=i.hasOwnProperty;function s(e,t,n,i,s,l){var u=n&o,c=r(e),d=c.length,h=r(t),p=h.length;if(d!=p&&!u)return!1;var f=d;while(f--){var g=c[f];if(!(u?g in t:a.call(t,g)))return!1}var m=l.get(e),v=l.get(t);if(m&&v)return m==t&&v==e;var y=!0;l.set(e,t),l.set(t,e);var b=u;while(++f<d){g=c[f];var _=e[g],x=t[g];if(i)var w=u?i(x,_,g,t,e,l):i(_,x,g,e,t,l);if(!(void 0===w?_===x||s(_,x,n,i,l):w)){y=!1;break}b||(b="constructor"==g)}if(y&&!b){var O=e.constructor,S=t.constructor;O==S||!("constructor"in e)||!("constructor"in t)||"function"==typeof O&&O instanceof O&&"function"==typeof S&&S instanceof S||(y=!1)}return l["delete"](e),l["delete"](t),y}e.exports=s},53292:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},12510:function(e,t,n){var r=n(25163),o=n(8628),i=n(97938);function a(e){return r(e,i,o)}e.exports=a},68233:function(e,t,n){var r=n(25163),o=n(60315),i=n(67477);function a(e){return r(e,i,o)}e.exports=a},71335:function(e,t,n){var r=n(23238);function o(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}e.exports=o},70650:function(e,t,n){var r=n(17007),o=n(27564);function i(e,t){var n=o(e,t);return r(n)?n:void 0}e.exports=i},28539:function(e,t,n){var r=n(54131),o=r(Object.getPrototypeOf,Object);e.exports=o},74183:function(e,t,n){var r=n(22965),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;function l(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(l){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}e.exports=l},8628:function(e,t,n){var r=n(56046),o=n(59877),i=Object.prototype,a=i.propertyIsEnumerable,s=Object.getOwnPropertySymbols,l=s?function(e){return null==e?[]:(e=Object(e),r(s(e),(function(t){return a.call(e,t)})))}:o;e.exports=l},60315:function(e,t,n){var r=n(30220),o=n(28539),i=n(8628),a=n(59877),s=Object.getOwnPropertySymbols,l=s?function(e){var t=[];while(e)r(t,i(e)),e=o(e);return t}:a;e.exports=l},93033:function(e,t,n){n(57836),n(39109),n(34381);var r=n(43168),o=n(63067),i=n(22784),a=n(13109),s=n(43195),l=n(60116),u=n(10965),c="[object Map]",d="[object Object]",h="[object Promise]",p="[object Set]",f="[object WeakMap]",g="[object DataView]",m=u(r),v=u(o),y=u(i),b=u(a),_=u(s),x=l;(r&&x(new r(new ArrayBuffer(1)))!=g||o&&x(new o)!=c||i&&x(i.resolve())!=h||a&&x(new a)!=p||s&&x(new s)!=f)&&(x=function(e){var t=l(e),n=t==d?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case m:return g;case v:return c;case y:return h;case b:return p;case _:return f}return t}),e.exports=x},27564:function(e){function t(e,t){return null==e?void 0:e[t]}e.exports=t},35668:function(e,t,n){var r=n(79574);function o(){this.__data__=r?r(null):{},this.size=0}e.exports=o},59170:function(e){function t(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}e.exports=t},36701:function(e,t,n){var r=n(79574),o="__lodash_hash_undefined__",i=Object.prototype,a=i.hasOwnProperty;function s(e){var t=this.__data__;if(r){var n=t[e];return n===o?void 0:n}return a.call(t,e)?t[e]:void 0}e.exports=s},55569:function(e,t,n){var r=n(79574),o=Object.prototype,i=o.hasOwnProperty;function a(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}e.exports=a},86329:function(e,t,n){var r=n(79574),o="__lodash_hash_undefined__";function i(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?o:t,this}e.exports=i},22185:function(e){var t=Object.prototype,n=t.hasOwnProperty;function r(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&n.call(e,"index")&&(r.index=e.index,r.input=e.input),r}e.exports=r},74699:function(e,t,n){var r=n(67233),o=n(70421),i=n(89309),a=n(29588),s=n(15237),l="[object Boolean]",u="[object Date]",c="[object Map]",d="[object Number]",h="[object RegExp]",p="[object Set]",f="[object String]",g="[object Symbol]",m="[object ArrayBuffer]",v="[object DataView]",y="[object Float32Array]",b="[object Float64Array]",_="[object Int8Array]",x="[object Int16Array]",w="[object Int32Array]",O="[object Uint8Array]",S="[object Uint8ClampedArray]",A="[object Uint16Array]",k="[object Uint32Array]";function C(e,t,n){var C=e.constructor;switch(t){case m:return r(e);case l:case u:return new C(+e);case v:return o(e,n);case y:case b:case _:case x:case w:case O:case S:case A:case k:return s(e,n);case c:return new C;case d:case f:return new C(e);case h:return i(e);case p:return new C;case g:return a(e)}}e.exports=C},229:function(e,t,n){var r=n(98204),o=n(28539),i=n(7875);function a(e){return"function"!=typeof e.constructor||i(e)?{}:r(o(e))}e.exports=a},75317:function(e){var t=9007199254740991,n=/^(?:0|[1-9]\d*)$/;function r(e,r){var o=typeof e;return r=null==r?t:r,!!r&&("number"==o||"symbol"!=o&&n.test(e))&&e>-1&&e%1==0&&e<r}e.exports=r},41684:function(e,t,n){var r=n(3900),o=n(4834),i=n(75317),a=n(14369);function s(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?o(n)&&i(t,n.length):"string"==s&&t in n)&&r(n[t],e)}e.exports=s},23238:function(e){function t(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}e.exports=t},740:function(e,t,n){var r=n(18565),o=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function i(e){return!!o&&o in e}e.exports=i},7875:function(e){var t=Object.prototype;function n(e){var n=e&&e.constructor,r="function"==typeof n&&n.prototype||t;return e===r}e.exports=n},4298:function(e){function t(){this.__data__=[],this.size=0}e.exports=t},80748:function(e,t,n){var r=n(51701),o=Array.prototype,i=o.splice;function a(e){var t=this.__data__,n=r(t,e);if(n<0)return!1;var o=t.length-1;return n==o?t.pop():i.call(t,n,1),--this.size,!0}e.exports=a},24383:function(e,t,n){var r=n(51701);function o(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}e.exports=o},74979:function(e,t,n){var r=n(51701);function o(e){return r(this.__data__,e)>-1}e.exports=o},94267:function(e,t,n){n(30381);var r=n(51701);function o(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}e.exports=o},32612:function(e,t,n){var r=n(5241),o=n(47563),i=n(63067);function a(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}e.exports=a},44882:function(e,t,n){var r=n(71335);function o(e){var t=r(this,e)["delete"](e);return this.size-=t?1:0,t}e.exports=o},25773:function(e,t,n){var r=n(71335);function o(e){return r(this,e).get(e)}e.exports=o},30433:function(e,t,n){var r=n(71335);function o(e){return r(this,e).has(e)}e.exports=o},94601:function(e,t,n){var r=n(71335);function o(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}e.exports=o},21473:function(e){function t(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}e.exports=t},79574:function(e,t,n){var r=n(70650),o=r(Object,"create");e.exports=o},73318:function(e,t,n){var r=n(54131),o=r(Object.keys,Object);e.exports=o},23473:function(e,t,n){function r(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}n(30381),e.exports=r},71725:function(e,t,n){e=n.nmd(e);var r=n(53292),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o,s=a&&r.process,l=function(){try{var e=i&&i.require&&i.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(t){}}();e.exports=l},24370:function(e){var t=Object.prototype,n=t.toString;function r(e){return n.call(e)}e.exports=r},54131:function(e){function t(e,t){return function(n){return e(t(n))}}e.exports=t},24969:function(e,t,n){var r=n(68213),o=Math.max;function i(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){var i=arguments,a=-1,s=o(i.length-t,0),l=Array(s);while(++a<s)l[a]=i[t+a];a=-1;var u=Array(t+1);while(++a<t)u[a]=i[a];return u[t]=n(l),r(e,this,u)}}e.exports=i},59905:function(e,t,n){var r=n(53292),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},99914:function(e){function t(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}e.exports=t},48976:function(e){var t="__lodash_hash_undefined__";function n(e){return this.__data__.set(e,t),this}e.exports=n},7055:function(e){function t(e){return this.__data__.has(e)}e.exports=t},68915:function(e){function t(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}e.exports=t},20605:function(e,t,n){var r=n(34230),o=n(58695),i=o(r);e.exports=i},58695:function(e){var t=800,n=16,r=Date.now;function o(e){var o=0,i=0;return function(){var a=r(),s=n-(a-i);if(i=a,s>0){if(++o>=t)return arguments[0]}else o=0;return e.apply(void 0,arguments)}}e.exports=o},88816:function(e,t,n){var r=n(47563);function o(){this.__data__=new r,this.size=0}e.exports=o},96310:function(e){function t(e){var t=this.__data__,n=t["delete"](e);return this.size=t.size,n}e.exports=t},79809:function(e){function t(e){return this.__data__.get(e)}e.exports=t},77165:function(e){function t(e){return this.__data__.has(e)}e.exports=t},48837:function(e,t,n){n(30381);var r=n(47563),o=n(63067),i=n(77737),a=200;function s(e,t){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!o||s.length<a-1)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(s)}return n.set(e,t),this.size=n.size,this}e.exports=s},10965:function(e){var t=Function.prototype,n=t.toString;function r(e){if(null!=e){try{return n.call(e)}catch(t){}try{return e+""}catch(t){}}return""}e.exports=r},99652:function(e){var t=/\s/;function n(e){var n=e.length;while(n--&&t.test(e.charAt(n)));return n}e.exports=n},52723:function(e,t,n){var r=n(47451),o=1,i=4;function a(e){return r(e,o|i)}e.exports=a},47002:function(e){function t(e){return function(){return e}}e.exports=t},15529:function(e,t,n){var r=n(14369),o=n(64392),i=n(3018),a="Expected a function",s=Math.max,l=Math.min;function u(e,t,n){var u,c,d,h,p,f,g=0,m=!1,v=!1,y=!0;if("function"!=typeof e)throw new TypeError(a);function b(t){var n=u,r=c;return u=c=void 0,g=t,h=e.apply(r,n),h}function _(e){return g=e,p=setTimeout(O,t),m?b(e):h}function x(e){var n=e-f,r=e-g,o=t-n;return v?l(o,d-r):o}function w(e){var n=e-f,r=e-g;return void 0===f||n>=t||n<0||v&&r>=d}function O(){var e=o();if(w(e))return S(e);p=setTimeout(O,x(e))}function S(e){return p=void 0,y&&u?b(e):(u=c=void 0,h)}function A(){void 0!==p&&clearTimeout(p),g=0,u=f=c=p=void 0}function k(){return void 0===p?h:S(o())}function C(){var e=o(),n=w(e);if(u=arguments,c=this,f=e,n){if(void 0===p)return _(f);if(v)return clearTimeout(p),p=setTimeout(O,t),b(f)}return void 0===p&&(p=setTimeout(O,t)),h}return t=i(t)||0,r(n)&&(m=!!n.leading,v="maxWait"in n,d=v?s(i(n.maxWait)||0,t):d,y="trailing"in n?!!n.trailing:y),C.cancel=A,C.flush=k,C}e.exports=u},3900:function(e){function t(e,t){return e===t||e!==e&&t!==t}e.exports=t},51252:function(e){function t(e){return e}e.exports=t},78544:function(e,t,n){var r=n(58362),o=n(46238),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},18965:function(e){var t=Array.isArray;e.exports=t},4834:function(e,t,n){var r=n(21798),o=n(43178);function i(e){return null!=e&&o(e.length)&&!r(e)}e.exports=i},1337:function(e,t,n){var r=n(4834),o=n(46238);function i(e){return o(e)&&r(e)}e.exports=i},59828:function(e,t,n){e=n.nmd(e);var r=n(59905),o=n(39387),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i,l=s?r.Buffer:void 0,u=l?l.isBuffer:void 0,c=u||o;e.exports=c},86608:function(e,t,n){var r=n(50722);function o(e,t){return r(e,t)}e.exports=o},21798:function(e,t,n){var r=n(60116),o=n(14369),i="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",l="[object Proxy]";function u(e){if(!o(e))return!1;var t=r(e);return t==a||t==s||t==i||t==l}e.exports=u},43178:function(e){var t=9007199254740991;function n(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=t}e.exports=n},85966:function(e,t,n){var r=n(67928),o=n(49361),i=n(71725),a=i&&i.isMap,s=a?o(a):r;e.exports=s},14369:function(e){function t(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=t},46238:function(e){function t(e){return null!=e&&"object"==typeof e}e.exports=t},95759:function(e,t,n){var r=n(60116),o=n(28539),i=n(46238),a="[object Object]",s=Function.prototype,l=Object.prototype,u=s.toString,c=l.hasOwnProperty,d=u.call(Object);function h(e){if(!i(e)||r(e)!=a)return!1;var t=o(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==d}e.exports=h},93676:function(e,t,n){var r=n(86882),o=n(49361),i=n(71725),a=i&&i.isSet,s=a?o(a):r;e.exports=s},93774:function(e,t,n){var r=n(60116),o=n(46238),i="[object Symbol]";function a(e){return"symbol"==typeof e||o(e)&&r(e)==i}e.exports=a},77523:function(e,t,n){var r=n(6081),o=n(49361),i=n(71725),a=i&&i.isTypedArray,s=a?o(a):r;e.exports=s},97938:function(e,t,n){var r=n(29299),o=n(64052),i=n(4834);function a(e){return i(e)?r(e):o(e)}e.exports=a},67477:function(e,t,n){var r=n(29299),o=n(58715),i=n(4834);function a(e){return i(e)?r(e,!0):o(e)}e.exports=a},74920:function(e,t,n){var r=n(82974),o=n(93859),i=o((function(e,t,n){r(e,t,n)}));e.exports=i},64392:function(e,t,n){var r=n(59905),o=function(){return r.Date.now()};e.exports=o},59877:function(e){function t(){return[]}e.exports=t},39387:function(e){function t(){return!1}e.exports=t},80434:function(e,t,n){var r=n(15529),o=n(14369),i="Expected a function";function a(e,t,n){var a=!0,s=!0;if("function"!=typeof e)throw new TypeError(i);return o(n)&&(a="leading"in n?!!n.leading:a,s="trailing"in n?!!n.trailing:s),r(e,t,{leading:a,maxWait:t,trailing:s})}e.exports=a},3018:function(e,t,n){var r=n(2004),o=n(14369),i=n(93774),a=NaN,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;function d(e){if("number"==typeof e)return e;if(i(e))return a;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=l.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):s.test(e)?a:+e}e.exports=d},94520:function(e,t,n){var r=n(97867),o=n(67477);function i(e){return r(e,o(e))}e.exports=i},18667:function(e,t,n){"use strict";n(30381);var r=function(){if("undefined"!==typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),o="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,i=function(){return"undefined"!==typeof n.g&&n.g.Math===Math?n.g:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")()}(),a=function(){return"function"===typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)}}(),s=2;function l(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&u()}function l(){a(i)}function u(){var e=Date.now();if(n){if(e-o<s)return;r=!0}else n=!0,r=!1,setTimeout(l,t);o=e}return u}var u=20,c=["top","right","bottom","left","width","height","size","weight"],d="undefined"!==typeof MutationObserver,h=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=l(this.refresh.bind(this),u)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var e=this.updateObservers_();e&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){o&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),d?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){o&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t,r=c.some((function(e){return!!~n.indexOf(e)}));r&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),p=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},f=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||i},g=A(0,0,0,0);function m(e){return parseFloat(e)||0}function v(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){var r=e["border-"+n+"-width"];return t+m(r)}),0)}function y(e){for(var t=["top","right","bottom","left"],n={},r=0,o=t;r<o.length;r++){var i=o[r],a=e["padding-"+i];n[i]=m(a)}return n}function b(e){var t=e.getBBox();return A(0,0,t.width,t.height)}function _(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return g;var r=f(e).getComputedStyle(e),o=y(r),i=o.left+o.right,a=o.top+o.bottom,s=m(r.width),l=m(r.height);if("border-box"===r.boxSizing&&(Math.round(s+i)!==t&&(s-=v(r,"left","right")+i),Math.round(l+a)!==n&&(l-=v(r,"top","bottom")+a)),!w(e)){var u=Math.round(s+i)-t,c=Math.round(l+a)-n;1!==Math.abs(u)&&(s-=u),1!==Math.abs(c)&&(l-=c)}return A(o.left,o.top,s,l)}var x=function(){return"undefined"!==typeof SVGGraphicsElement?function(e){return e instanceof f(e).SVGGraphicsElement}:function(e){return e instanceof f(e).SVGElement&&"function"===typeof e.getBBox}}();function w(e){return e===f(e).document.documentElement}function O(e){return o?x(e)?b(e):_(e):g}function S(e){var t=e.x,n=e.y,r=e.width,o=e.height,i="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(i.prototype);return p(a,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),a}function A(e,t,n,r){return{x:e,y:t,width:n,height:r}}var k=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=A(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=O(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),C=function(){function e(e,t){var n=S(t);p(this,{target:e,contentRect:n})}return e}(),M=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new r,"function"!==typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new k(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new C(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),T="undefined"!==typeof WeakMap?new WeakMap:new r,P=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=h.getInstance(),r=new M(t,n,this);T.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach((function(e){P.prototype[e]=function(){var t;return(t=T.get(this))[e].apply(t,arguments)}}));var I=function(){return"undefined"!==typeof i.ResizeObserver?i.ResizeObserver:P}();t.A=I},9008:function(e){
  6. /*!
  7. * screenfull
  8. * v5.2.0 - 2021-11-03
  9. * (c) Sindre Sorhus; MIT License
  10. */
  11. (function(){"use strict";var t="undefined"!==typeof window&&"undefined"!==typeof window.document?window.document:{},n=e.exports,r=function(){for(var e,n=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],r=0,o=n.length,i={};r<o;r++)if(e=n[r],e&&e[1]in t){for(r=0;r<e.length;r++)i[n[0][r]]=e[r];return i}return!1}(),o={change:r.fullscreenchange,error:r.fullscreenerror},i={request:function(e,n){return new Promise(function(o,i){var a=function(){this.off("change",a),o()}.bind(this);this.on("change",a),e=e||t.documentElement;var s=e[r.requestFullscreen](n);s instanceof Promise&&s.then(a).catch(i)}.bind(this))},exit:function(){return new Promise(function(e,n){if(this.isFullscreen){var o=function(){this.off("change",o),e()}.bind(this);this.on("change",o);var i=t[r.exitFullscreen]();i instanceof Promise&&i.then(o).catch(n)}else e()}.bind(this))},toggle:function(e,t){return this.isFullscreen?this.exit():this.request(e,t)},onchange:function(e){this.on("change",e)},onerror:function(e){this.on("error",e)},on:function(e,n){var r=o[e];r&&t.addEventListener(r,n,!1)},off:function(e,n){var r=o[e];r&&t.removeEventListener(r,n,!1)},raw:r};r?(Object.defineProperties(i,{isFullscreen:{get:function(){return Boolean(t[r.fullscreenElement])}},element:{enumerable:!0,get:function(){return t[r.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return Boolean(t[r.fullscreenEnabled])}}}),n?e.exports=i:window.screenfull=i):n?e.exports={isEnabled:!1}:window.screenfull={isEnabled:!1}})()},23165:function(e,t){"use strict";t.A=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n}},72987:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});var r=n(9274),o=n(7734),i=n(35372),a=n(52885),s=(0,r.defineComponent)({__name:"BasicBar",props:i.A,setup(e){const t=e,{options:n,loading:i}=(0,a.u)(t);return(e,t)=>((0,r.openBlock)(),(0,r.createBlock)(o.A,{width:e.width,height:e.height,"echarts-options":(0,r.unref)(n),loading:(0,r.unref)(i)},null,8,["width","height","echarts-options","loading"]))}});const l=s;var u=l},7734:function(e,t,n){"use strict";n.d(t,{A:function(){return Z4}});var r={};n.r(r),n.d(r,{HashMap:function(){return ut},RADIAN_TO_DEGREE:function(){return mt},assert:function(){return tt},bind:function(){return Re},clone:function(){return ye},concatArray:function(){return dt},createCanvas:function(){return Oe},createHashMap:function(){return ct},createObject:function(){return ht},curry:function(){return Ne},defaults:function(){return we},disableUserSelect:function(){return pt},each:function(){return Me},eqNaN:function(){return Ue},extend:function(){return xe},filter:function(){return Ie},find:function(){return $e},guid:function(){return me},hasOwn:function(){return ft},indexOf:function(){return Se},inherits:function(){return Ae},isArray:function(){return Le},isArrayLike:function(){return Ce},isBuiltInObject:function(){return Fe},isDom:function(){return He},isFunction:function(){return ze},isGradientObject:function(){return Ze},isImagePatternObject:function(){return Ge},isNumber:function(){return je},isObject:function(){return Qe},isPrimitive:function(){return it},isRegExp:function(){return Xe},isString:function(){return Ve},isStringSafe:function(){return Be},isTypedArray:function(){return We},keys:function(){return Ee},logError:function(){return ve},map:function(){return Te},merge:function(){return be},mergeAll:function(){return _e},mixin:function(){return ke},noop:function(){return gt},normalizeCssArray:function(){return et},reduce:function(){return Pe},retrieve:function(){return Ye},retrieve2:function(){return qe},retrieve3:function(){return Ke},setAsPrimitive:function(){return ot},slice:function(){return Je},trim:function(){return nt}});var o={};n.r(o),n.d(o,{add:function(){return xt},applyTransform:function(){return Vt},clone:function(){return bt},copy:function(){return yt},create:function(){return vt},dist:function(){return Dt},distSquare:function(){return Nt},distance:function(){return Et},distanceSquare:function(){return Rt},div:function(){return Tt},dot:function(){return Pt},len:function(){return St},lenSquare:function(){return kt},length:function(){return At},lengthSquare:function(){return Ct},lerp:function(){return zt},max:function(){return jt},min:function(){return Bt},mul:function(){return Mt},negate:function(){return Lt},normalize:function(){return $t},scale:function(){return It},scaleAndAdd:function(){return wt},set:function(){return _t},sub:function(){return Ot}});var i={};n.r(i),n.d(i,{clone:function(){return In},copy:function(){return An},create:function(){return On},identity:function(){return Sn},invert:function(){return Pn},mul:function(){return kn},rotate:function(){return Mn},scale:function(){return Tn},translate:function(){return Cn}});var a={};n.r(a),n.d(a,{fastLerp:function(){return wo},fastMapToColor:function(){return Oo},lerp:function(){return So},lift:function(){return _o},liftColor:function(){return $o},lum:function(){return To},mapToColor:function(){return Ao},modifyAlpha:function(){return Co},modifyHSL:function(){return ko},parse:function(){return vo},random:function(){return Po},stringify:function(){return Mo},toHex:function(){return xo}});var s={};n.r(s),n.d(s,{dispose:function(){return Qa},disposeAll:function(){return Fa},getElementSSRData:function(){return Za},getInstance:function(){return Wa},init:function(){return ja},registerPainter:function(){return Ha},registerSSRDataGetter:function(){return Ga},version:function(){return Xa}});var l={};n.r(l),n.d(l,{Arc:function(){return ab},BezierCurve:function(){return rb},BoundingRect:function(){return Fn},Circle:function(){return my},CompoundPath:function(){return lb},Ellipse:function(){return by},Group:function(){return Da},Image:function(){return fc},IncrementalDisplayable:function(){return Ob},Line:function(){return Ky},LinearGradient:function(){return hb},OrientedBoundingRect:function(){return _b},Path:function(){return ac},Point:function(){return En},Polygon:function(){return Hy},Polyline:function(){return Xy},RadialGradient:function(){return fb},Rect:function(){return Oc},Ring:function(){return By},Sector:function(){return Ly},Text:function(){return jc},applyTransform:function(){return jb},clipPointsByRect:function(){return Zb},clipRectByRect:function(){return Gb},createIcon:function(){return Xb},extendPath:function(){return Tb},extendShape:function(){return Cb},getShapeClass:function(){return Ib},getTransform:function(){return Bb},groupTransition:function(){return Hb},initProps:function(){return ah},isElementRemoved:function(){return sh},lineLineIntersect:function(){return Yb},linePolygonIntersect:function(){return Ub},makeImage:function(){return Eb},makePath:function(){return $b},mergePath:function(){return Rb},registerShape:function(){return Pb},removeElement:function(){return lh},removeElementWithFadeOut:function(){return ch},resizePath:function(){return Nb},setTooltipConfig:function(){return Jb},subPixelOptimize:function(){return Vb},subPixelOptimizeLine:function(){return Lb},subPixelOptimizeRect:function(){return zb},transformDirection:function(){return Qb},traverseElements:function(){return t_},updateProps:function(){return ih}});var u={};n.r(u),n.d(u,{createDimensions:function(){return ZS},createList:function(){return Nk},createScale:function(){return zk},createSymbol:function(){return Sx},createTextStyle:function(){return Bk},dataStack:function(){return Lk},enableHoverEmphasis:function(){return Qd},getECData:function(){return Qc},getLayoutRect:function(){return rf},mixinAxisModelCommonMethods:function(){return Vk}});var c={};n.r(c),n.d(c,{MAX_SAFE_INTEGER:function(){return ls},asc:function(){return ts},getPercentWithPrecision:function(){return is},getPixelPrecision:function(){return os},getPrecision:function(){return ns},getPrecisionSafe:function(){return rs},isNumeric:function(){return bs},isRadianAroundZero:function(){return cs},linearMap:function(){return Ka},nice:function(){return gs},numericToNumber:function(){return ys},parseDate:function(){return hs},quantile:function(){return ms},quantity:function(){return ps},quantityExponent:function(){return fs},reformIntervals:function(){return vs},remRadian:function(){return us},round:function(){return es}});var d={};n.r(d),n.d(d,{format:function(){return _p},parse:function(){return hs}});var h={};n.r(h),n.d(h,{Arc:function(){return ab},BezierCurve:function(){return rb},BoundingRect:function(){return Fn},Circle:function(){return my},CompoundPath:function(){return lb},Ellipse:function(){return by},Group:function(){return Da},Image:function(){return fc},IncrementalDisplayable:function(){return Ob},Line:function(){return Ky},LinearGradient:function(){return hb},Polygon:function(){return Hy},Polyline:function(){return Xy},RadialGradient:function(){return fb},Rect:function(){return Oc},Ring:function(){return By},Sector:function(){return Ly},Text:function(){return jc},clipPointsByRect:function(){return Zb},clipRectByRect:function(){return Gb},createIcon:function(){return Xb},extendPath:function(){return Tb},extendShape:function(){return Cb},getShapeClass:function(){return Ib},getTransform:function(){return Bb},initProps:function(){return ah},makeImage:function(){return Eb},makePath:function(){return $b},mergePath:function(){return Rb},registerShape:function(){return Pb},resizePath:function(){return Nb},updateProps:function(){return ih}});var p={};n.r(p),n.d(p,{addCommas:function(){return zp},capitalFirst:function(){return Xp},encodeHTML:function(){return an},formatTime:function(){return Gp},formatTpl:function(){return Wp},getTextRect:function(){return rC},getTooltipMarker:function(){return Zp},normalizeCssArray:function(){return Bp},toCamelCase:function(){return Vp},truncateText:function(){return Pl}});var f={};n.r(f),n.d(f,{bind:function(){return Re},clone:function(){return ye},curry:function(){return Ne},defaults:function(){return we},each:function(){return Me},extend:function(){return xe},filter:function(){return Ie},indexOf:function(){return Se},inherits:function(){return Ae},isArray:function(){return Le},isFunction:function(){return ze},isObject:function(){return Qe},isString:function(){return Ve},map:function(){return Te},merge:function(){return be},reduce:function(){return Pe}});var g={};n.r(g),n.d(g,{Axis:function(){return SC},ChartView:function(){return c_},ComponentModel:function(){return ff},ComponentView:function(){return Fv},List:function(){return HS},Model:function(){return Qh},PRIORITY:function(){return Fw},SeriesModel:function(){return jv},color:function(){return a},connect:function(){return zO},dataTool:function(){return lS},dependencies:function(){return kw},disConnect:function(){return BO},disconnect:function(){return VO},dispose:function(){return jO},env:function(){return G},extendChartView:function(){return MC},extendComponentModel:function(){return AC},extendComponentView:function(){return kC},extendSeriesModel:function(){return CC},format:function(){return p},getCoordinateSystemDimensions:function(){return KO},getInstanceByDom:function(){return QO},getInstanceById:function(){return FO},getMap:function(){return aS},graphic:function(){return h},helper:function(){return u},init:function(){return LO},innerDrawElementOnCanvas:function(){return sw},matrix:function(){return i},number:function(){return c},parseGeoJSON:function(){return nC},parseGeoJson:function(){return nC},registerAction:function(){return YO},registerCoordinateSystem:function(){return qO},registerLayout:function(){return JO},registerLoading:function(){return rS},registerLocale:function(){return np},registerMap:function(){return iS},registerPostInit:function(){return GO},registerPostUpdate:function(){return XO},registerPreprocessor:function(){return HO},registerProcessor:function(){return ZO},registerTheme:function(){return WO},registerTransform:function(){return sS},registerUpdateLifecycle:function(){return UO},registerVisual:function(){return eS},setCanvasCreator:function(){return oS},setPlatformAPI:function(){return re},throttle:function(){return f_},time:function(){return d},use:function(){return dS},util:function(){return f},vector:function(){return o},version:function(){return Aw},zrUtil:function(){return r},zrender:function(){return s}});var m=n(9274),v=n(69751);function y(e,t,n){var r,o=n||{},i=o.noTrailing,a=void 0!==i&&i,s=o.noLeading,l=void 0!==s&&s,u=o.debounceMode,c=void 0===u?void 0:u,d=!1,h=0;function p(){r&&clearTimeout(r)}function f(e){var t=e||{},n=t.upcomingOnly,r=void 0!==n&&n;p(),d=!r}function g(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];var s=this,u=Date.now()-h;function f(){h=Date.now(),t.apply(s,o)}function g(){r=void 0}d||(l||!c||r||f(),p(),void 0===c&&u>e?l?(h=Date.now(),a||(r=setTimeout(c?g:f,e))):f():!0!==a&&(r=setTimeout(c?g:f,void 0===c?e-u:e)))}return g.cancel=f,g}function b(e,t,n){var r=n||{},o=r.atBegin,i=void 0!==o&&o;return y(e,t,{debounceMode:!1!==i})}var _=n(5530),x=n(16155),w=n(47960),O=n(98657),S=n(97732),A=n(94471),k=n(96704),C=n(69729);const M=new S.A("antSpinMove",{to:{opacity:1}}),T=new S.A("antRotate",{to:{transform:"rotate(405deg)"}}),P=e=>({[`${e.componentCls}`]:(0,O.A)((0,O.A)({},(0,C.dF)(e)),{position:"absolute",display:"none",color:e.colorPrimary,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},"&-nested-loading":{position:"relative",[`> div > ${e.componentCls}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${e.componentCls}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:-e.spinDotSize/2},[`${e.componentCls}-text`]:{position:"absolute",top:"50%",width:"100%",paddingTop:(e.spinDotSize-e.fontSize)/2+2,textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-e.spinDotSize/2-10},"&-sm":{[`${e.componentCls}-dot`]:{margin:-e.spinDotSizeSM/2},[`${e.componentCls}-text`]:{paddingTop:(e.spinDotSizeSM-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-e.spinDotSizeSM/2-10}},"&-lg":{[`${e.componentCls}-dot`]:{margin:-e.spinDotSizeLG/2},[`${e.componentCls}-text`]:{paddingTop:(e.spinDotSizeLG-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-e.spinDotSizeLG/2-10}}},[`${e.componentCls}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${e.componentCls}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none",["&::after"]:{opacity:.4,pointerEvents:"auto"}}},["&-tip"]:{color:e.spinDotDefault},[`${e.componentCls}-dot`]:{position:"relative",display:"inline-block",fontSize:e.spinDotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:(e.spinDotSize-e.marginXXS/2)/2,height:(e.spinDotSize-e.marginXXS/2)/2,backgroundColor:e.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:M,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:T,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${e.componentCls}-dot`]:{fontSize:e.spinDotSizeSM,i:{width:(e.spinDotSizeSM-e.marginXXS/2)/2,height:(e.spinDotSizeSM-e.marginXXS/2)/2}},[`&-lg ${e.componentCls}-dot`]:{fontSize:e.spinDotSizeLG,i:{width:(e.spinDotSizeLG-e.marginXXS)/2,height:(e.spinDotSizeLG-e.marginXXS)/2}},[`&${e.componentCls}-show-text ${e.componentCls}-text`]:{display:"block"}})});var I=(0,A.A)("Spin",(e=>{const t=(0,k.h1)(e,{spinDotDefault:e.colorTextDescription,spinDotSize:e.controlHeightLG/2,spinDotSizeSM:.35*e.controlHeightLG,spinDotSizeLG:e.controlHeight});return[P(t)]}),{contentHeight:400}),$=n(3551),E=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const D=()=>({prefixCls:String,spinning:{type:Boolean,default:void 0},size:String,wrapperClassName:String,tip:_.A.any,delay:Number,indicator:_.A.any});let R=null;function N(e,t){return!!e&&!!t&&!isNaN(Number(t))}function L(e){const t=e.indicator;R="function"===typeof t?t:()=>(0,m.createVNode)(t,null,null)}var z=(0,m.defineComponent)({compatConfig:{MODE:3},name:"ASpin",inheritAttrs:!1,props:(0,w.A)(D(),{size:"default",spinning:!0,wrapperClassName:""}),setup(e,t){let{attrs:n,slots:r}=t;const{prefixCls:o,size:i,direction:a}=(0,$.A)("spin",e),[s,l]=I(o),u=(0,m.shallowRef)(e.spinning&&!N(e.spinning,e.delay));let c;return(0,m.watch)([()=>e.spinning,()=>e.delay],(()=>{null===c||void 0===c||c.cancel(),c=b(e.delay,(()=>{u.value=e.spinning})),null===c||void 0===c||c()}),{immediate:!0,flush:"post"}),(0,m.onBeforeUnmount)((()=>{null===c||void 0===c||c.cancel()})),()=>{var t,c;const{class:d}=n,h=E(n,["class"]),{tip:p=(null===(t=r.tip)||void 0===t?void 0:t.call(r))}=e,f=null===(c=r.default)||void 0===c?void 0:c.call(r),g={[l.value]:!0,[o.value]:!0,[`${o.value}-sm`]:"small"===i.value,[`${o.value}-lg`]:"large"===i.value,[`${o.value}-spinning`]:u.value,[`${o.value}-show-text`]:!!p,[`${o.value}-rtl`]:"rtl"===a.value,[d]:!!d};function y(t){const n=`${t}-dot`;let o=(0,x.rU)(r,e,"indicator");return null===o?null:(Array.isArray(o)&&(o=1===o.length?o[0]:o),(0,m.isVNode)(o)?(0,m.cloneVNode)(o,{class:n}):R&&(0,m.isVNode)(R())?(0,m.cloneVNode)(R(),{class:n}):(0,m.createVNode)("span",{class:`${n} ${t}-dot-spin`},[(0,m.createVNode)("i",{class:`${t}-dot-item`},null),(0,m.createVNode)("i",{class:`${t}-dot-item`},null),(0,m.createVNode)("i",{class:`${t}-dot-item`},null),(0,m.createVNode)("i",{class:`${t}-dot-item`},null)]))}const b=(0,m.createVNode)("div",(0,v.A)((0,v.A)({},h),{},{class:g,"aria-live":"polite","aria-busy":u.value}),[y(o.value),p?(0,m.createVNode)("div",{class:`${o.value}-text`},[p]):null]);if(f&&(0,x.Gk)(f).length){const t={[`${o.value}-container`]:!0,[`${o.value}-blur`]:u.value};return s((0,m.createVNode)("div",{class:[`${o.value}-nested-loading`,e.wrapperClassName,l.value]},[u.value&&(0,m.createVNode)("div",{key:"loading"},[b]),(0,m.createVNode)("div",{class:t,key:"container"},[f])]))}return s(b)}}});z.setDefaultIndicator=L,z.install=function(e){return e.component(z.name,z),e};var V=z,B=n(2167),j=(n(30381),function(e,t){return j=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])},j(e,t)});function Q(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}j(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}Object.create;Object.create;var F=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),W=function(){function e(){this.browser=new F,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}(),H=new W;function Z(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),o=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),i=e.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(e);r&&(n.firefox=!0,n.version=r[1]),o&&(n.ie=!0,n.version=o[1]),i&&(n.edge=!0,n.version=i[1],n.newEdge=+i[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?(H.wxa=!0,H.touchEventsSupported=!0):"undefined"===typeof document&&"undefined"!==typeof self?H.worker=!0:"undefined"===typeof navigator||0===navigator.userAgent.indexOf("Node.js")?(H.node=!0,H.svgSupported=!0):Z(navigator.userAgent,H);var G=H,X=12,U="sans-serif",Y=X+"px "+U,q=20,K=100,J="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function ee(e){var t={};if("undefined"===typeof JSON)return t;for(var n=0;n<e.length;n++){var r=String.fromCharCode(n+32),o=(e.charCodeAt(n)-q)/K;t[r]=o}return t}var te=ee(J),ne={createCanvas:function(){return"undefined"!==typeof document&&document.createElement("canvas")},measureText:function(){var e,t;return function(n,r){if(!e){var o=ne.createCanvas();e=o&&o.getContext("2d")}if(e)return t!==r&&(t=e.font=r||Y),e.measureText(n);n=n||"",r=r||Y;var i=/((?:\d+)?\.?\d*)px/.exec(r),a=i&&+i[1]||X,s=0;if(r.indexOf("mono")>=0)s=a*n.length;else for(var l=0;l<n.length;l++){var u=te[n[l]];s+=null==u?a:u*a}return{width:s}}}(),loadImage:function(e,t,n){var r=new Image;return r.onload=t,r.onerror=n,r.src=e,r}};function re(e){for(var t in ne)e[t]&&(ne[t]=e[t])}var oe=Pe(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(e,t){return e["[object "+t+"]"]=!0,e}),{}),ie=Pe(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(e,t){return e["[object "+t+"Array]"]=!0,e}),{}),ae=Object.prototype.toString,se=Array.prototype,le=se.forEach,ue=se.filter,ce=se.slice,de=se.map,he=function(){}.constructor,pe=he?he.prototype:null,fe="__proto__",ge=2311;function me(){return ge++}function ve(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];"undefined"!==typeof console&&console.error.apply(console,e)}function ye(e){if(null==e||"object"!==typeof e)return e;var t=e,n=ae.call(e);if("[object Array]"===n){if(!it(e)){t=[];for(var r=0,o=e.length;r<o;r++)t[r]=ye(e[r])}}else if(ie[n]){if(!it(e)){var i=e.constructor;if(i.from)t=i.from(e);else{t=new i(e.length);for(r=0,o=e.length;r<o;r++)t[r]=e[r]}}}else if(!oe[n]&&!it(e)&&!He(e))for(var a in t={},e)e.hasOwnProperty(a)&&a!==fe&&(t[a]=ye(e[a]));return t}function be(e,t,n){if(!Qe(t)||!Qe(e))return n?ye(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==fe){var o=e[r],i=t[r];!Qe(i)||!Qe(o)||Le(i)||Le(o)||He(i)||He(o)||Fe(i)||Fe(o)||it(i)||it(o)?!n&&r in e||(e[r]=ye(t[r])):be(o,i,n)}return e}function _e(e,t){for(var n=e[0],r=1,o=e.length;r<o;r++)n=be(n,e[r],t);return n}function xe(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==fe&&(e[n]=t[n]);return e}function we(e,t,n){for(var r=Ee(t),o=0;o<r.length;o++){var i=r[o];(n?null!=t[i]:null==e[i])&&(e[i]=t[i])}return e}var Oe=ne.createCanvas;function Se(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n}return-1}function Ae(e,t){var n=e.prototype;function r(){}for(var o in r.prototype=t.prototype,e.prototype=new r,n)n.hasOwnProperty(o)&&(e.prototype[o]=n[o]);e.prototype.constructor=e,e.superClass=t}function ke(e,t,n){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(t),o=0;o<r.length;o++){var i=r[o];"constructor"!==i&&(n?null!=t[i]:null==e[i])&&(e[i]=t[i])}else we(e,t,n)}function Ce(e){return!!e&&("string"!==typeof e&&"number"===typeof e.length)}function Me(e,t,n){if(e&&t)if(e.forEach&&e.forEach===le)e.forEach(t,n);else if(e.length===+e.length)for(var r=0,o=e.length;r<o;r++)t.call(n,e[r],r,e);else for(var i in e)e.hasOwnProperty(i)&&t.call(n,e[i],i,e)}function Te(e,t,n){if(!e)return[];if(!t)return Je(e);if(e.map&&e.map===de)return e.map(t,n);for(var r=[],o=0,i=e.length;o<i;o++)r.push(t.call(n,e[o],o,e));return r}function Pe(e,t,n,r){if(e&&t){for(var o=0,i=e.length;o<i;o++)n=t.call(r,n,e[o],o,e);return n}}function Ie(e,t,n){if(!e)return[];if(!t)return Je(e);if(e.filter&&e.filter===ue)return e.filter(t,n);for(var r=[],o=0,i=e.length;o<i;o++)t.call(n,e[o],o,e)&&r.push(e[o]);return r}function $e(e,t,n){if(e&&t)for(var r=0,o=e.length;r<o;r++)if(t.call(n,e[r],r,e))return e[r]}function Ee(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}function De(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return e.apply(t,n.concat(ce.call(arguments)))}}var Re=pe&&ze(pe.bind)?pe.call.bind(pe.bind):De;function Ne(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(this,t.concat(ce.call(arguments)))}}function Le(e){return Array.isArray?Array.isArray(e):"[object Array]"===ae.call(e)}function ze(e){return"function"===typeof e}function Ve(e){return"string"===typeof e}function Be(e){return"[object String]"===ae.call(e)}function je(e){return"number"===typeof e}function Qe(e){var t=typeof e;return"function"===t||!!e&&"object"===t}function Fe(e){return!!oe[ae.call(e)]}function We(e){return!!ie[ae.call(e)]}function He(e){return"object"===typeof e&&"number"===typeof e.nodeType&&"object"===typeof e.ownerDocument}function Ze(e){return null!=e.colorStops}function Ge(e){return null!=e.image}function Xe(e){return"[object RegExp]"===ae.call(e)}function Ue(e){return e!==e}function Ye(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e.length;n<r;n++)if(null!=e[n])return e[n]}function qe(e,t){return null!=e?e:t}function Ke(e,t,n){return null!=e?e:null!=t?t:n}function Je(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return ce.apply(e,t)}function et(e){if("number"===typeof e)return[e,e,e,e];var t=e.length;return 2===t?[e[0],e[1],e[0],e[1]]:3===t?[e[0],e[1],e[2],e[1]]:e}function tt(e,t){if(!e)throw new Error(t)}function nt(e){return null==e?null:"function"===typeof e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var rt="__ec_primitive__";function ot(e){e[rt]=!0}function it(e){return e[rt]}var at=function(){function e(){this.data={}}return e.prototype["delete"]=function(e){var t=this.has(e);return t&&delete this.data[e],t},e.prototype.has=function(e){return this.data.hasOwnProperty(e)},e.prototype.get=function(e){return this.data[e]},e.prototype.set=function(e,t){return this.data[e]=t,this},e.prototype.keys=function(){return Ee(this.data)},e.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},e}(),st="function"===typeof Map;function lt(){return st?new Map:new at}var ut=function(){function e(t){var n=Le(t);this.data=lt();var r=this;function o(e,t){n?r.set(e,t):r.set(t,e)}t instanceof e?t.each(o):t&&Me(t,o)}return e.prototype.hasKey=function(e){return this.data.has(e)},e.prototype.get=function(e){return this.data.get(e)},e.prototype.set=function(e,t){return this.data.set(e,t),t},e.prototype.each=function(e,t){this.data.forEach((function(n,r){e.call(t,n,r)}))},e.prototype.keys=function(){var e=this.data.keys();return st?Array.from(e):e},e.prototype.removeKey=function(e){this.data["delete"](e)},e}();function ct(e){return new ut(e)}function dt(e,t){for(var n=new e.constructor(e.length+t.length),r=0;r<e.length;r++)n[r]=e[r];var o=e.length;for(r=0;r<t.length;r++)n[r+o]=t[r];return n}function ht(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&xe(n,t),n}function pt(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function ft(e,t){return e.hasOwnProperty(t)}function gt(){}var mt=180/Math.PI;function vt(e,t){return null==e&&(e=0),null==t&&(t=0),[e,t]}function yt(e,t){return e[0]=t[0],e[1]=t[1],e}function bt(e){return[e[0],e[1]]}function _t(e,t,n){return e[0]=t,e[1]=n,e}function xt(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function wt(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e}function Ot(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function St(e){return Math.sqrt(kt(e))}var At=St;function kt(e){return e[0]*e[0]+e[1]*e[1]}var Ct=kt;function Mt(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e}function Tt(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e}function Pt(e,t){return e[0]*t[0]+e[1]*t[1]}function It(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function $t(e,t){var n=St(t);return 0===n?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function Et(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var Dt=Et;function Rt(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var Nt=Rt;function Lt(e,t){return e[0]=-t[0],e[1]=-t[1],e}function zt(e,t,n,r){return e[0]=t[0]+r*(n[0]-t[0]),e[1]=t[1]+r*(n[1]-t[1]),e}function Vt(e,t,n){var r=t[0],o=t[1];return e[0]=n[0]*r+n[2]*o+n[4],e[1]=n[1]*r+n[3]*o+n[5],e}function Bt(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function jt(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var Qt=function(){function e(e,t){this.target=e,this.topTarget=t&&t.topTarget}return e}(),Ft=function(){function e(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(e){var t=e.target;while(t&&!t.draggable)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new Qt(t,e),"dragstart",e.event))},e.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,r=e.offsetY,o=n-this._x,i=r-this._y;this._x=n,this._y=r,t.drift(o,i,e),this.handler.dispatchToElement(new Qt(t,e),"drag",e.event);var a=this.handler.findHover(n,r,t).target,s=this._dropTarget;this._dropTarget=a,t!==a&&(s&&a!==s&&this.handler.dispatchToElement(new Qt(s,e),"dragleave",e.event),a&&a!==s&&this.handler.dispatchToElement(new Qt(a,e),"dragenter",e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new Qt(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new Qt(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},e}(),Wt=Ft,Ht=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,r){this._$handlers||(this._$handlers={});var o=this._$handlers;if("function"===typeof t&&(r=n,n=t,t=null),!n||!e)return this;var i=this._$eventProcessor;null!=t&&i&&i.normalizeQuery&&(t=i.normalizeQuery(t)),o[e]||(o[e]=[]);for(var a=0;a<o[e].length;a++)if(o[e][a].h===n)return this;var s={h:n,query:t,ctx:r||this,callAtLast:n.zrEventfulCallAtLast},l=o[e].length-1,u=o[e][l];return u&&u.callAtLast?o[e].splice(l,0,s):o[e].push(s),this},e.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},e.prototype.off=function(e,t){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var r=[],o=0,i=n[e].length;o<i;o++)n[e][o].h!==t&&r.push(n[e][o]);n[e]=r}n[e]&&0===n[e].length&&delete n[e]}else delete n[e];return this},e.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[e],o=this._$eventProcessor;if(r)for(var i=t.length,a=r.length,s=0;s<a;s++){var l=r[s];if(!o||!o.filter||null==l.query||o.filter(e,l.query))switch(i){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,t[0]);break;case 2:l.h.call(l.ctx,t[0],t[1]);break;default:l.h.apply(l.ctx,t);break}}return o&&o.afterTrigger&&o.afterTrigger(e),this},e.prototype.triggerWithContext=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[e],o=this._$eventProcessor;if(r)for(var i=t.length,a=t[i-1],s=r.length,l=0;l<s;l++){var u=r[l];if(!o||!o.filter||null==u.query||o.filter(e,u.query))switch(i){case 0:u.h.call(a);break;case 1:u.h.call(a,t[0]);break;case 2:u.h.call(a,t[0],t[1]);break;default:u.h.apply(a,t.slice(1,i-1));break}}return o&&o.afterTrigger&&o.afterTrigger(e),this},e}(),Zt=Ht,Gt=Math.log(2);function Xt(e,t,n,r,o,i){var a=r+"-"+o,s=e.length;if(i.hasOwnProperty(a))return i[a];if(1===t){var l=Math.round(Math.log((1<<s)-1&~o)/Gt);return e[n][l]}var u=r|1<<n,c=n+1;while(r&1<<c)c++;for(var d=0,h=0,p=0;h<s;h++){var f=1<<h;f&o||(d+=(p%2?-1:1)*e[n][h]*Xt(e,t-1,c,u,o|f,i),p++)}return i[a]=d,d}function Ut(e,t){var n=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],r={},o=Xt(n,8,0,0,0,r);if(0!==o){for(var i=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==i[s]&&(i[s]=0),i[s]+=((a+s)%2?-1:1)*Xt(n,7,0===a?1:0,1<<a,1<<s,r)/o*t[a];return function(e,t,n){var r=t*i[6]+n*i[7]+1;e[0]=(t*i[0]+n*i[1]+i[2])/r,e[1]=(t*i[3]+n*i[4]+i[5])/r}}}var Yt="___zrEVENTSAVED",qt=[];function Kt(e,t,n,r,o){return Jt(qt,t,r,o,!0)&&Jt(e,n,qt[0],qt[1])}function Jt(e,t,n,r,o){if(t.getBoundingClientRect&&G.domSupported&&!nn(t)){var i=t[Yt]||(t[Yt]={}),a=en(t,i),s=tn(a,i,o);if(s)return s(e,n,r),!0}return!1}function en(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var r=["left","right"],o=["top","bottom"],i=0;i<4;i++){var a=document.createElement("div"),s=a.style,l=i%2,u=(i>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",o[u]+":0",r[1-l]+":auto",o[1-u]+":auto",""].join("!important;"),e.appendChild(a),n.push(a)}return n}function tn(e,t,n){for(var r=n?"invTrans":"trans",o=t[r],i=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&&i&&h===i[d]&&p===i[d+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&o?o:(t.srcCoords=a,t[r]=n?Ut(s,a):Ut(a,s))}function nn(e){return"CANVAS"===e.nodeName.toUpperCase()}var rn=/([&<>"'])/g,on={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function an(e){return null==e?"":(e+"").replace(rn,(function(e,t){return on[t]}))}var sn=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ln=[],un=G.browser.firefox&&+G.browser.version.split(".")[0]<39;function cn(e,t,n,r){return n=n||{},r?dn(e,t,n):un&&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):dn(e,t,n),n}function dn(e,t,n){if(G.domSupported&&e.getBoundingClientRect){var r=t.clientX,o=t.clientY;if(nn(e)){var i=e.getBoundingClientRect();return n.zrX=r-i.left,void(n.zrY=o-i.top)}if(Jt(ln,e,r,o))return n.zrX=ln[0],void(n.zrY=ln[1])}n.zrX=n.zrY=0}function hn(e){return e||window.event}function pn(e,t,n){if(t=hn(t),null!=t.zrX)return t;var r=t.type,o=r&&r.indexOf("touch")>=0;if(o){var i="touchend"!==r?t.targetTouches[0]:t.changedTouches[0];i&&cn(e,i,t,n)}else{cn(e,t,t,n);var a=fn(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return null==t.which&&void 0!==s&&sn.test(t.type)&&(t.which=1&s?1:2&s?3:4&s?2:0),t}function fn(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(null==n||null==r)return t;var o=0!==r?Math.abs(r):Math.abs(n),i=r>0?-1:r<0?1:n>0?-1:1;return 3*o*i}function gn(e,t,n,r){e.addEventListener(t,n,r)}function mn(e,t,n,r){e.removeEventListener(t,n,r)}var vn=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function yn(e){return 2===e.which||3===e.which}var bn=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 r=e.touches;if(r){for(var o={points:[],touches:[],target:t,event:e},i=0,a=r.length;i<a;i++){var s=r[i],l=cn(n,s,{});o.points.push([l.zrX,l.zrY]),o.touches.push(s)}this._track.push(o)}},e.prototype._recognize=function(e){for(var t in wn)if(wn.hasOwnProperty(t)){var n=wn[t](this._track,e);if(n)return n}},e}();function _n(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function xn(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var wn={pinch:function(e,t){var n=e.length;if(n){var r=(e[n-1]||{}).points,o=(e[n-2]||{}).points||r;if(o&&o.length>1&&r&&r.length>1){var i=_n(r)/_n(o);!isFinite(i)&&(i=1),t.pinchScale=i;var a=xn(r);return t.pinchX=a[0],t.pinchY=a[1],{type:"pinch",target:e[0].target,event:t}}}}};function On(){return[1,0,0,1,0,0]}function Sn(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function An(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function kn(e,t,n){var r=t[0]*n[0]+t[2]*n[1],o=t[1]*n[0]+t[3]*n[1],i=t[0]*n[2]+t[2]*n[3],a=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],l=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=o,e[2]=i,e[3]=a,e[4]=s,e[5]=l,e}function Cn(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function Mn(e,t,n,r){void 0===r&&(r=[0,0]);var o=t[0],i=t[2],a=t[4],s=t[1],l=t[3],u=t[5],c=Math.sin(n),d=Math.cos(n);return e[0]=o*d+s*c,e[1]=-o*c+s*d,e[2]=i*d+l*c,e[3]=-i*c+d*l,e[4]=d*(a-r[0])+c*(u-r[1])+r[0],e[5]=d*(u-r[1])-c*(a-r[0])+r[1],e}function Tn(e,t,n){var r=n[0],o=n[1];return e[0]=t[0]*r,e[1]=t[1]*o,e[2]=t[2]*r,e[3]=t[3]*o,e[4]=t[4]*r,e[5]=t[5]*o,e}function Pn(e,t){var n=t[0],r=t[2],o=t[4],i=t[1],a=t[3],s=t[5],l=n*a-i*r;return l?(l=1/l,e[0]=a*l,e[1]=-i*l,e[2]=-r*l,e[3]=n*l,e[4]=(r*s-a*o)*l,e[5]=(i*o-n*s)*l,e):null}function In(e){var t=On();return An(t,e),t}var $n=function(){function e(e,t){this.x=e||0,this.y=t||0}return e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(e,t){return this.x=e,this.y=t,this},e.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},e.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.scale=function(e){this.x*=e,this.y*=e},e.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},e.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},e.prototype.dot=function(e){return this.x*e.x+this.y*e.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},e.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},e.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},e.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},e.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},e.set=function(e,t,n){e.x=t,e.y=n},e.copy=function(e,t){e.x=t.x,e.y=t.y},e.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},e.lenSquare=function(e){return e.x*e.x+e.y*e.y},e.dot=function(e,t){return e.x*t.x+e.y*t.y},e.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},e.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},e.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},e.scaleAndAdd=function(e,t,n,r){e.x=t.x+n.x*r,e.y=t.y+n.y*r},e.lerp=function(e,t,n,r){var o=1-r;e.x=o*t.x+r*n.x,e.y=o*t.y+r*n.y},e}(),En=$n,Dn=Math.min,Rn=Math.max,Nn=new En,Ln=new En,zn=new En,Vn=new En,Bn=new En,jn=new En,Qn=function(){function e(e,t,n,r){n<0&&(e+=n,n=-n),r<0&&(t+=r,r=-r),this.x=e,this.y=t,this.width=n,this.height=r}return e.prototype.union=function(e){var t=Dn(e.x,this.x),n=Dn(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Rn(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Rn(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){var t=this,n=e.width/t.width,r=e.height/t.height,o=On();return Cn(o,o,[-t.x,-t.y]),Tn(o,o,[n,r]),Cn(o,o,[e.x,e.y]),o},e.prototype.intersect=function(t,n){if(!t)return!1;t instanceof e||(t=e.create(t));var r=this,o=r.x,i=r.x+r.width,a=r.y,s=r.y+r.height,l=t.x,u=t.x+t.width,c=t.y,d=t.y+t.height,h=!(i<l||u<o||s<c||d<a);if(n){var p=1/0,f=0,g=Math.abs(i-l),m=Math.abs(u-o),v=Math.abs(s-c),y=Math.abs(d-a),b=Math.min(g,m),_=Math.min(v,y);i<l||u<o?b>f&&(f=b,g<m?En.set(jn,-g,0):En.set(jn,m,0)):b<p&&(p=b,g<m?En.set(Bn,g,0):En.set(Bn,-m,0)),s<c||d<a?_>f&&(f=_,v<y?En.set(jn,0,-v):En.set(jn,0,y)):b<p&&(p=b,v<y?En.set(Bn,0,v):En.set(Bn,0,-y))}return n&&En.copy(n,h?Bn:jn),h},e.prototype.contain=function(e,t){var n=this;return e>=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,r){if(r){if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var o=r[0],i=r[3],a=r[4],s=r[5];return t.x=n.x*o+a,t.y=n.y*i+s,t.width=n.width*o,t.height=n.height*i,t.width<0&&(t.x+=t.width,t.width=-t.width),void(t.height<0&&(t.y+=t.height,t.height=-t.height))}Nn.x=zn.x=n.x,Nn.y=Vn.y=n.y,Ln.x=Vn.x=n.x+n.width,Ln.y=zn.y=n.y+n.height,Nn.transform(r),Vn.transform(r),Ln.transform(r),zn.transform(r),t.x=Dn(Nn.x,Ln.x,zn.x,Vn.x),t.y=Dn(Nn.y,Ln.y,zn.y,Vn.y);var l=Rn(Nn.x,Ln.x,zn.x,Vn.x),u=Rn(Nn.y,Ln.y,zn.y,Vn.y);t.width=l-t.x,t.height=u-t.y}else t!==n&&e.copy(t,n)},e}(),Fn=Qn,Wn="silent";function Hn(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:Zn}}function Zn(){vn(this.event)}var Gn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handler=null,t}return Q(t,e),t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Zt),Xn=function(){function e(e,t){this.x=e,this.y=t}return e}(),Un=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Yn=new Fn(0,0,0,0),qn=function(e){function t(t,n,r,o,i){var a=e.call(this)||this;return a._hovered=new Xn(0,0),a.storage=t,a.painter=n,a.painterRoot=o,a._pointerSize=i,r=r||new Gn,a.proxy=null,a.setHandlerProxy(r),a._draggingMgr=new Wt(a),a}return Q(t,e),t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(Me(Un,(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,r=er(this,t,n),o=this._hovered,i=o.target;i&&!i.__zr&&(o=this.findHover(o.x,o.y),i=o.target);var a=this._hovered=r?new Xn(t,n):this.findHover(t,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),i&&s!==i&&this.dispatchToElement(o,"mouseout",e),this.dispatchToElement(a,"mousemove",e),s&&s!==i&&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 Xn(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 r=e.target;if(!r||!r.silent){var o="on"+t,i=Hn(t,e,n);while(r)if(r[o]&&(i.cancelBubble=!!r[o].call(r,i)),r.trigger(t,i),r=r.__hostTarget?r.__hostTarget:r.parent,i.cancelBubble)break;i.cancelBubble||(this.trigger(t,i),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(e){"function"===typeof e[o]&&e[o].call(e,i),e.trigger&&e.trigger(t,i)})))}},t.prototype.findHover=function(e,t,n){var r=this.storage.getDisplayList(),o=new Xn(e,t);if(Jn(r,o,e,t,n),this._pointerSize&&!o.target){for(var i=[],a=this._pointerSize,s=a/2,l=new Fn(e-s,t-s,a,a),u=r.length-1;u>=0;u--){var c=r[u];c===n||c.ignore||c.ignoreCoarsePointer||c.parent&&c.parent.ignoreCoarsePointer||(Yn.copy(c.getBoundingRect()),c.transform&&Yn.applyTransform(c.transform),Yn.intersect(l)&&i.push(c))}if(i.length)for(var d=4,h=Math.PI/12,p=2*Math.PI,f=0;f<s;f+=d)for(var g=0;g<p;g+=h){var m=e+f*Math.cos(g),v=t+f*Math.sin(g);if(Jn(i,o,m,v,n),o.target)return o}}return o},t.prototype.processGesture=function(e,t){this._gestureMgr||(this._gestureMgr=new bn);var n=this._gestureMgr;"start"===t&&n.clear();var r=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if("end"===t&&n.clear(),r){var o=r.type;e.gestureEvent=o;var i=new Xn;i.target=r.target,this.dispatchToElement(i,o,r.event)}},t}(Zt);function Kn(e,t,n){if(e[e.rectHover?"rectContain":"contain"](t,n)){var r=e,o=void 0,i=!1;while(r){if(r.ignoreClip&&(i=!0),!i){var a=r.getClipPath();if(a&&!a.contain(t,n))return!1}r.silent&&(o=!0);var s=r.__hostTarget;r=s||r.parent}return!o||Wn}return!1}function Jn(e,t,n,r,o){for(var i=e.length-1;i>=0;i--){var a=e[i],s=void 0;if(a!==o&&!a.ignore&&(s=Kn(a,n,r))&&(!t.topTarget&&(t.topTarget=a),s!==Wn)){t.target=a;break}}}function er(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}Me(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(e){qn.prototype[e]=function(t){var n,r,o=t.zrX,i=t.zrY,a=er(this,o,i);if("mouseup"===e&&a||(n=this.findHover(o,i),r=n.target),"mousedown"===e)this._downEl=r,this._downPoint=[t.zrX,t.zrY],this._upEl=r;else if("mouseup"===e)this._upEl=r;else if("click"===e){if(this._downEl!==this._upEl||!this._downPoint||Dt(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,e,t)}}));var tr=qn,nr=32,rr=7;function or(e){var t=0;while(e>=nr)t|=1&e,e>>=1;return e+t}function ir(e,t,n,r){var o=t+1;if(o===n)return 1;if(r(e[o++],e[t])<0){while(o<n&&r(e[o],e[o-1])<0)o++;ar(e,t,o)}else while(o<n&&r(e[o],e[o-1])>=0)o++;return o-t}function ar(e,t,n){n--;while(t<n){var r=e[t];e[t++]=e[n],e[n--]=r}}function sr(e,t,n,r,o){for(r===t&&r++;r<n;r++){var i,a=e[r],s=t,l=r;while(s<l)i=s+l>>>1,o(a,e[i])<0?l=i:s=i+1;var u=r-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 lr(e,t,n,r,o,i){var a=0,s=0,l=1;if(i(e,t[n+o])>0){s=r-o;while(l<s&&i(e,t[n+o+l])>0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=o,l+=o}else{s=o+1;while(l<s&&i(e,t[n+o-l])<=0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s);var u=a;a=o-l,l=o-u}a++;while(a<l){var c=a+(l-a>>>1);i(e,t[n+c])>0?a=c+1:l=c}return l}function ur(e,t,n,r,o,i){var a=0,s=0,l=1;if(i(e,t[n+o])<0){s=o+1;while(l<s&&i(e,t[n+o-l])<0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s);var u=a;a=o-l,l=o-u}else{s=r-o;while(l<s&&i(e,t[n+o+l])>=0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=o,l+=o}a++;while(a<l){var c=a+(l-a>>>1);i(e,t[n+c])<0?l=c:a=c+1}return l}function cr(e,t){var n,r,o=rr,i=0,a=[];function s(e,t){n[i]=e,r[i]=t,i+=1}function l(){while(i>1){var e=i-2;if(e>=1&&r[e-1]<=r[e]+r[e+1]||e>=2&&r[e-2]<=r[e]+r[e-1])r[e-1]<r[e+1]&&e--;else if(r[e]>r[e+1])break;c(e)}}function u(){while(i>1){var e=i-2;e>0&&r[e-1]<r[e+1]&&e--,c(e)}}function c(o){var a=n[o],s=r[o],l=n[o+1],u=r[o+1];r[o]=s+u,o===i-3&&(n[o+1]=n[o+2],r[o+1]=r[o+2]),i--;var c=ur(e[l],e,a,s,0,t);a+=c,s-=c,0!==s&&(u=lr(e[a+s-1],e,l,u,u-1,t),0!==u&&(s<=u?d(a,s,l,u):h(a,s,l,u)))}function d(n,r,i,s){var l=0;for(l=0;l<r;l++)a[l]=e[n+l];var u=0,c=i,d=n;if(e[d++]=e[c++],0!==--s)if(1!==r){var h,p,f,g=o;while(1){h=0,p=0,f=!1;do{if(t(e[c],a[u])<0){if(e[d++]=e[c++],p++,h=0,0===--s){f=!0;break}}else if(e[d++]=a[u++],h++,p=0,1===--r){f=!0;break}}while((h|p)<g);if(f)break;do{if(h=ur(e[c],a,u,r,0,t),0!==h){for(l=0;l<h;l++)e[d+l]=a[u+l];if(d+=h,u+=h,r-=h,r<=1){f=!0;break}}if(e[d++]=e[c++],0===--s){f=!0;break}if(p=lr(a[u],e,c,s,0,t),0!==p){for(l=0;l<p;l++)e[d+l]=e[c+l];if(d+=p,c+=p,s-=p,0===s){f=!0;break}}if(e[d++]=a[u++],1===--r){f=!0;break}g--}while(h>=rr||p>=rr);if(f)break;g<0&&(g=0),g+=2}if(o=g,o<1&&(o=1),1===r){for(l=0;l<s;l++)e[d+l]=e[c+l];e[d+s]=a[u]}else{if(0===r)throw new Error;for(l=0;l<r;l++)e[d+l]=a[u+l]}}else{for(l=0;l<s;l++)e[d+l]=e[c+l];e[d+s]=a[u]}else for(l=0;l<r;l++)e[d+l]=a[u+l]}function h(n,r,i,s){var l=0;for(l=0;l<s;l++)a[l]=e[i+l];var u=n+r-1,c=s-1,d=i+s-1,h=0,p=0;if(e[d--]=e[u--],0!==--r)if(1!==s){var f=o;while(1){var g=0,m=0,v=!1;do{if(t(a[c],e[u])<0){if(e[d--]=e[u--],g++,m=0,0===--r){v=!0;break}}else if(e[d--]=a[c--],m++,g=0,1===--s){v=!0;break}}while((g|m)<f);if(v)break;do{if(g=r-ur(a[c],e,n,r,r-1,t),0!==g){for(d-=g,u-=g,r-=g,p=d+1,h=u+1,l=g-1;l>=0;l--)e[p+l]=e[h+l];if(0===r){v=!0;break}}if(e[d--]=a[c--],1===--s){v=!0;break}if(m=s-lr(e[u],a,0,s,s-1,t),0!==m){for(d-=m,c-=m,s-=m,p=d+1,h=c+1,l=0;l<m;l++)e[p+l]=a[h+l];if(s<=1){v=!0;break}}if(e[d--]=e[u--],0===--r){v=!0;break}f--}while(g>=rr||m>=rr);if(v)break;f<0&&(f=0),f+=2}if(o=f,o<1&&(o=1),1===s){for(d-=r,u-=r,p=d+1,h=u+1,l=r-1;l>=0;l--)e[p+l]=e[h+l];e[d]=a[c]}else{if(0===s)throw new Error;for(h=d-(s-1),l=0;l<s;l++)e[h+l]=a[l]}}else{for(d-=r,u-=r,p=d+1,h=u+1,l=r-1;l>=0;l--)e[p+l]=e[h+l];e[d]=a[c]}else for(h=d-(s-1),l=0;l<s;l++)e[h+l]=a[l]}return n=[],r=[],{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function dr(e,t,n,r){n||(n=0),r||(r=e.length);var o=r-n;if(!(o<2)){var i=0;if(o<nr)return i=ir(e,n,r,t),void sr(e,n,r,n+i,t);var a=cr(e,t),s=or(o);do{if(i=ir(e,n,r,t),i<s){var l=o;l>s&&(l=s),sr(e,n,n+l,n+i,t),i=l}a.pushRun(n,i),a.mergeRuns(),o-=i,n+=i}while(0!==o);a.forceMergeRuns()}}var hr=1,pr=2,fr=4,gr=!1;function mr(){gr||(gr=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function vr(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var yr,br=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=vr}return e.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},e.prototype.getDisplayList=function(e,t){t=t||!1;var n=this._displayList;return!e&&n.length||this.updateDisplayList(t),n},e.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,r=0,o=t.length;r<o;r++)this._updateAndAddDisplayable(t[r],null,e);n.length=this._displayListLen,dr(n,vr)},e.prototype._updateAndAddDisplayable=function(e,t,n){if(!e.ignore||n){e.beforeUpdate(),e.update(),e.afterUpdate();var r=e.getClipPath();if(e.ignoreClip)t=null;else if(r){t=t?t.slice():[];var o=r,i=e;while(o)o.parent=i,o.updateTransform(),t.push(o),i=o,o=o.getClipPath()}if(e.childrenRef){for(var a=e.childrenRef(),s=0;s<a.length;s++){var l=a[s];e.__dirty&&(l.__dirty|=hr),this._updateAndAddDisplayable(l,t,n)}e.__dirty=0}else{var u=e;t&&t.length?u.__clipPaths=t:u.__clipPaths&&u.__clipPaths.length>0&&(u.__clipPaths=[]),isNaN(u.z)&&(mr(),u.z=0),isNaN(u.z2)&&(mr(),u.z2=0),isNaN(u.zlevel)&&(mr(),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<n;t++)this.delRoot(e[t]);else{var r=Se(this._roots,e);r>=0&&this._roots.splice(r,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}(),_r=br;yr=G.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var xr=yr,wr={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,r=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r))},elasticOut:function(e){var t,n=.1,r=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*-.5:n*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*.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-wr.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*wr.bounceIn(2*e):.5*wr.bounceOut(2*e-1)+.5}},Or=wr,Sr=Math.pow,Ar=Math.sqrt,kr=1e-8,Cr=1e-4,Mr=Ar(3),Tr=1/3,Pr=vt(),Ir=vt(),$r=vt();function Er(e){return e>-kr&&e<kr}function Dr(e){return e>kr||e<-kr}function Rr(e,t,n,r,o){var i=1-o;return i*i*(i*e+3*o*t)+o*o*(o*r+3*i*n)}function Nr(e,t,n,r,o){var i=1-o;return 3*(((t-e)*i+2*(n-t)*o)*i+(r-n)*o*o)}function Lr(e,t,n,r,o,i){var a=r+3*(t-n)-e,s=3*(n-2*t+e),l=3*(t-e),u=e-o,c=s*s-3*a*l,d=s*l-9*a*u,h=l*l-3*s*u,p=0;if(Er(c)&&Er(d))if(Er(s))i[0]=0;else{var f=-l/s;f>=0&&f<=1&&(i[p++]=f)}else{var g=d*d-4*c*h;if(Er(g)){var m=d/c,v=(f=-s/a+m,-m/2);f>=0&&f<=1&&(i[p++]=f),v>=0&&v<=1&&(i[p++]=v)}else if(g>0){var y=Ar(g),b=c*s+1.5*a*(-d+y),_=c*s+1.5*a*(-d-y);b=b<0?-Sr(-b,Tr):Sr(b,Tr),_=_<0?-Sr(-_,Tr):Sr(_,Tr);f=(-s-(b+_))/(3*a);f>=0&&f<=1&&(i[p++]=f)}else{var x=(2*c*s-3*a*d)/(2*Ar(c*c*c)),w=Math.acos(x)/3,O=Ar(c),S=Math.cos(w),A=(f=(-s-2*O*S)/(3*a),v=(-s+O*(S+Mr*Math.sin(w)))/(3*a),(-s+O*(S-Mr*Math.sin(w)))/(3*a));f>=0&&f<=1&&(i[p++]=f),v>=0&&v<=1&&(i[p++]=v),A>=0&&A<=1&&(i[p++]=A)}}return p}function zr(e,t,n,r,o){var i=6*n-12*t+6*e,a=9*t+3*r-3*e-9*n,s=3*t-3*e,l=0;if(Er(a)){if(Dr(i)){var u=-s/i;u>=0&&u<=1&&(o[l++]=u)}}else{var c=i*i-4*a*s;if(Er(c))o[0]=-i/(2*a);else if(c>0){var d=Ar(c),h=(u=(-i+d)/(2*a),(-i-d)/(2*a));u>=0&&u<=1&&(o[l++]=u),h>=0&&h<=1&&(o[l++]=h)}}return l}function Vr(e,t,n,r,o,i){var a=(t-e)*o+e,s=(n-t)*o+t,l=(r-n)*o+n,u=(s-a)*o+a,c=(l-s)*o+s,d=(c-u)*o+u;i[0]=e,i[1]=a,i[2]=u,i[3]=d,i[4]=d,i[5]=c,i[6]=l,i[7]=r}function Br(e,t,n,r,o,i,a,s,l,u,c){var d,h,p,f,g,m=.005,v=1/0;Pr[0]=l,Pr[1]=u;for(var y=0;y<1;y+=.05)Ir[0]=Rr(e,n,o,a,y),Ir[1]=Rr(t,r,i,s,y),f=Nt(Pr,Ir),f<v&&(d=y,v=f);v=1/0;for(var b=0;b<32;b++){if(m<Cr)break;h=d-m,p=d+m,Ir[0]=Rr(e,n,o,a,h),Ir[1]=Rr(t,r,i,s,h),f=Nt(Ir,Pr),h>=0&&f<v?(d=h,v=f):($r[0]=Rr(e,n,o,a,p),$r[1]=Rr(t,r,i,s,p),g=Nt($r,Pr),p<=1&&g<v?(d=p,v=g):m*=.5)}return c&&(c[0]=Rr(e,n,o,a,d),c[1]=Rr(t,r,i,s,d)),Ar(v)}function jr(e,t,n,r,o,i,a,s,l){for(var u=e,c=t,d=0,h=1/l,p=1;p<=l;p++){var f=p*h,g=Rr(e,n,o,a,f),m=Rr(t,r,i,s,f),v=g-u,y=m-c;d+=Math.sqrt(v*v+y*y),u=g,c=m}return d}function Qr(e,t,n,r){var o=1-r;return o*(o*e+2*r*t)+r*r*n}function Fr(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function Wr(e,t,n,r,o){var i=e-2*t+n,a=2*(t-e),s=e-r,l=0;if(Er(i)){if(Dr(a)){var u=-s/a;u>=0&&u<=1&&(o[l++]=u)}}else{var c=a*a-4*i*s;if(Er(c)){u=-a/(2*i);u>=0&&u<=1&&(o[l++]=u)}else if(c>0){var d=Ar(c),h=(u=(-a+d)/(2*i),(-a-d)/(2*i));u>=0&&u<=1&&(o[l++]=u),h>=0&&h<=1&&(o[l++]=h)}}return l}function Hr(e,t,n){var r=e+n-2*t;return 0===r?.5:(e-t)/r}function Zr(e,t,n,r,o){var i=(t-e)*r+e,a=(n-t)*r+t,s=(a-i)*r+i;o[0]=e,o[1]=i,o[2]=s,o[3]=s,o[4]=a,o[5]=n}function Gr(e,t,n,r,o,i,a,s,l){var u,c=.005,d=1/0;Pr[0]=a,Pr[1]=s;for(var h=0;h<1;h+=.05){Ir[0]=Qr(e,n,o,h),Ir[1]=Qr(t,r,i,h);var p=Nt(Pr,Ir);p<d&&(u=h,d=p)}d=1/0;for(var f=0;f<32;f++){if(c<Cr)break;var g=u-c,m=u+c;Ir[0]=Qr(e,n,o,g),Ir[1]=Qr(t,r,i,g);p=Nt(Ir,Pr);if(g>=0&&p<d)u=g,d=p;else{$r[0]=Qr(e,n,o,m),$r[1]=Qr(t,r,i,m);var v=Nt($r,Pr);m<=1&&v<d?(u=m,d=v):c*=.5}}return l&&(l[0]=Qr(e,n,o,u),l[1]=Qr(t,r,i,u)),Ar(d)}function Xr(e,t,n,r,o,i,a){for(var s=e,l=t,u=0,c=1/a,d=1;d<=a;d++){var h=d*c,p=Qr(e,n,o,h),f=Qr(t,r,i,h),g=p-s,m=f-l;u+=Math.sqrt(g*g+m*m),s=p,l=f}return u}var Ur=/cubic-bezier\(([0-9,\.e ]+)\)/;function Yr(e){var t=e&&Ur.exec(e);if(t){var n=t[1].split(","),r=+nt(n[0]),o=+nt(n[1]),i=+nt(n[2]),a=+nt(n[3]);if(isNaN(r+o+i+a))return;var s=[];return function(e){return e<=0?0:e>=1?1:Lr(0,r,i,1,e,s)&&Rr(0,o,a,1,s[0])}}}var qr=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||gt,this.ondestroy=e.ondestroy||gt,this.onrestart=e.onrestart||gt,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,r=e-this._startTime-this._pausedTime,o=r/n;o<0&&(o=0),o=Math.min(o,1);var i=this.easingFunc,a=i?i(o):o;if(this.onframe(a),1===o){if(!this.loop)return!0;var s=r%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=ze(e)?e:Or[e]||Yr(e)},e}(),Kr=qr,Jr=function(){function e(e){this.value=e}return e}(),eo=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new Jr(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}(),to=function(){function e(e){this._list=new eo,this._maxSize=10,this._map={},this._maxSize=e}return e.prototype.put=function(e,t){var n=this._list,r=this._map,o=null;if(null==r[e]){var i=n.len(),a=this._lastRemovedEntry;if(i>=this._maxSize&&i>0){var s=n.head;n.remove(s),delete r[s.key],o=s.value,this._lastRemovedEntry=s}a?a.value=t:a=new Jr(t),a.key=e,n.insertEntry(a),r[e]=a}return o},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}(),no=to,ro={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 oo(e){return e=Math.round(e),e<0?0:e>255?255:e}function io(e){return e=Math.round(e),e<0?0:e>360?360:e}function ao(e){return e<0?0:e>1?1:e}function so(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?oo(parseFloat(t)/100*255):oo(parseInt(t,10))}function lo(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?ao(parseFloat(t)/100):ao(parseFloat(t))}function uo(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 co(e,t,n){return e+(t-e)*n}function ho(e,t,n,r,o){return e[0]=t,e[1]=n,e[2]=r,e[3]=o,e}function po(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var fo=new no(20),go=null;function mo(e,t){go&&po(go,t),go=fo.put(e,go||t.slice())}function vo(e,t){if(e){t=t||[];var n=fo.get(e);if(n)return po(t,n);e+="";var r=e.replace(/ /g,"").toLowerCase();if(r in ro)return po(t,ro[r]),mo(e,t),t;var o=r.length;if("#"!==r.charAt(0)){var i=r.indexOf("("),a=r.indexOf(")");if(-1!==i&&a+1===o){var s=r.substr(0,i),l=r.substr(i+1,a-(i+1)).split(","),u=1;switch(s){case"rgba":if(4!==l.length)return 3===l.length?ho(t,+l[0],+l[1],+l[2],1):ho(t,0,0,0,1);u=lo(l.pop());case"rgb":return l.length>=3?(ho(t,so(l[0]),so(l[1]),so(l[2]),3===l.length?u:lo(l[3])),mo(e,t),t):void ho(t,0,0,0,1);case"hsla":return 4!==l.length?void ho(t,0,0,0,1):(l[3]=lo(l[3]),yo(l,t),mo(e,t),t);case"hsl":return 3!==l.length?void ho(t,0,0,0,1):(yo(l,t),mo(e,t),t);default:return}}ho(t,0,0,0,1)}else{if(4===o||5===o){var c=parseInt(r.slice(1,4),16);return c>=0&&c<=4095?(ho(t,(3840&c)>>4|(3840&c)>>8,240&c|(240&c)>>4,15&c|(15&c)<<4,5===o?parseInt(r.slice(4),16)/15:1),mo(e,t),t):void ho(t,0,0,0,1)}if(7===o||9===o){c=parseInt(r.slice(1,7),16);return c>=0&&c<=16777215?(ho(t,(16711680&c)>>16,(65280&c)>>8,255&c,9===o?parseInt(r.slice(7),16)/255:1),mo(e,t),t):void ho(t,0,0,0,1)}}}}function yo(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=lo(e[1]),o=lo(e[2]),i=o<=.5?o*(r+1):o+r-o*r,a=2*o-i;return t=t||[],ho(t,oo(255*uo(a,i,n+1/3)),oo(255*uo(a,i,n)),oo(255*uo(a,i,n-1/3)),1),4===e.length&&(t[3]=e[3]),t}function bo(e){if(e){var t,n,r=e[0]/255,o=e[1]/255,i=e[2]/255,a=Math.min(r,o,i),s=Math.max(r,o,i),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-r)/6+l/2)/l,d=((s-o)/6+l/2)/l,h=((s-i)/6+l/2)/l;r===s?t=h-d:o===s?t=1/3+c-h:i===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 _o(e,t){var n=vo(e);if(n){for(var r=0;r<3;r++)n[r]=t<0?n[r]*(1-t)|0:(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return Mo(n,4===n.length?"rgba":"rgb")}}function xo(e){var t=vo(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function wo(e,t,n){if(t&&t.length&&e>=0&&e<=1){n=n||[];var r=e*(t.length-1),o=Math.floor(r),i=Math.ceil(r),a=t[o],s=t[i],l=r-o;return n[0]=oo(co(a[0],s[0],l)),n[1]=oo(co(a[1],s[1],l)),n[2]=oo(co(a[2],s[2],l)),n[3]=ao(co(a[3],s[3],l)),n}}var Oo=wo;function So(e,t,n){if(t&&t.length&&e>=0&&e<=1){var r=e*(t.length-1),o=Math.floor(r),i=Math.ceil(r),a=vo(t[o]),s=vo(t[i]),l=r-o,u=Mo([oo(co(a[0],s[0],l)),oo(co(a[1],s[1],l)),oo(co(a[2],s[2],l)),ao(co(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:o,rightIndex:i,value:r}:u}}var Ao=So;function ko(e,t,n,r){var o=vo(e);if(e)return o=bo(o),null!=t&&(o[0]=io(t)),null!=n&&(o[1]=lo(n)),null!=r&&(o[2]=lo(r)),Mo(yo(o),"rgba")}function Co(e,t){var n=vo(e);if(n&&null!=t)return n[3]=ao(t),Mo(n,"rgba")}function Mo(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 To(e,t){var n=vo(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}function Po(){return Mo([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}var Io=new no(100);function $o(e){if(Ve(e)){var t=Io.get(e);return t||(t=_o(e,-.1),Io.put(e,t)),t}if(Ze(e)){var n=xe({},e);return n.colorStops=Te(e.colorStops,(function(e){return{offset:e.offset,color:_o(e.color,-.1)}})),n}return e}n(28360);var Eo=Math.round;function Do(e){var t;if(e&&"transparent"!==e){if("string"===typeof e&&e.indexOf("rgba")>-1){var n=vo(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 Ro=1e-4;function No(e){return e<Ro&&e>-Ro}function Lo(e){return Eo(1e3*e)/1e3}function zo(e){return Eo(1e4*e)/1e4}function Vo(e){return"matrix("+Lo(e[0])+","+Lo(e[1])+","+Lo(e[2])+","+Lo(e[3])+","+zo(e[4])+","+zo(e[5])+")"}var Bo={left:"start",right:"end",center:"middle",middle:"middle"};function jo(e,t,n){return"top"===n?e+=t/2:"bottom"===n&&(e-=t/2),e}function Qo(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function Fo(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 Wo(e){return e&&!!e.image}function Ho(e){return e&&!!e.svgElement}function Zo(e){return Wo(e)||Ho(e)}function Go(e){return"linear"===e.type}function Xo(e){return"radial"===e.type}function Uo(e){return e&&("linear"===e.type||"radial"===e.type)}function Yo(e){return"url(#"+e+")"}function qo(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 Ko(e){var t=e.x||0,n=e.y||0,r=(e.rotation||0)*mt,o=qe(e.scaleX,1),i=qe(e.scaleY,1),a=e.skewX||0,s=e.skewY||0,l=[];return(t||n)&&l.push("translate("+t+"px,"+n+"px)"),r&&l.push("rotate("+r+")"),1===o&&1===i||l.push("scale("+o+","+i+")"),(a||s)&&l.push("skew("+Eo(a*mt)+"deg, "+Eo(s*mt)+"deg)"),l.join(" ")}var Jo=function(){return G.hasGlobalWindow&&ze(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:"undefined"!==typeof Buffer?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}}(),ei=Array.prototype.slice;function ti(e,t,n){return(t-e)*n+e}function ni(e,t,n,r){for(var o=t.length,i=0;i<o;i++)e[i]=ti(t[i],n[i],r);return e}function ri(e,t,n,r){for(var o=t.length,i=o&&t[0].length,a=0;a<o;a++){e[a]||(e[a]=[]);for(var s=0;s<i;s++)e[a][s]=ti(t[a][s],n[a][s],r)}return e}function oi(e,t,n,r){for(var o=t.length,i=0;i<o;i++)e[i]=t[i]+n[i]*r;return e}function ii(e,t,n,r){for(var o=t.length,i=o&&t[0].length,a=0;a<o;a++){e[a]||(e[a]=[]);for(var s=0;s<i;s++)e[a][s]=t[a][s]+n[a][s]*r}return e}function ai(e,t){for(var n=e.length,r=t.length,o=n>r?t:e,i=Math.min(n,r),a=o[i-1]||{color:[0,0,0,0],offset:0},s=i;s<Math.max(n,r);s++)o.push({offset:a.offset,color:a.color.slice()})}function si(e,t,n){var r=e,o=t;if(r.push&&o.push){var i=r.length,a=o.length;if(i!==a){var s=i>a;if(s)r.length=a;else for(var l=i;l<a;l++)r.push(1===n?o[l]:ei.call(o[l]))}var u=r[0]&&r[0].length;for(l=0;l<r.length;l++)if(1===n)isNaN(r[l])&&(r[l]=o[l]);else for(var c=0;c<u;c++)isNaN(r[l][c])&&(r[l][c]=o[l][c])}}function li(e){if(Ce(e)){var t=e.length;if(Ce(e[0])){for(var n=[],r=0;r<t;r++)n.push(ei.call(e[r]));return n}return ei.call(e)}return e}function ui(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=null==e[3]?1:e[3],"rgba("+e.join(",")+")"}function ci(e){return Ce(e&&e[0])?2:1}var di=0,hi=1,pi=2,fi=3,gi=4,mi=5,vi=6;function yi(e){return e===gi||e===mi}function bi(e){return e===hi||e===pi}var _i=[0,0,0,0],xi=function(){function e(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var r=this.keyframes,o=r.length,i=!1,a=vi,s=t;if(Ce(t)){var l=ci(t);a=l,(1===l&&!je(t[0])||2===l&&!je(t[0][0]))&&(i=!0)}else if(je(t)&&!Ue(t))a=di;else if(Ve(t))if(isNaN(+t)){var u=vo(t);u&&(s=u,a=fi)}else a=di;else if(Ze(t)){var c=xe({},s);c.colorStops=Te(t.colorStops,(function(e){return{offset:e.offset,color:vo(e.color)}})),Go(t)?a=gi:Xo(t)&&(a=mi),s=c}0===o?this.valType=a:a===this.valType&&a!==vi||(i=!0),this.discrete=this.discrete||i;var d={time:e,value:s,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=ze(n)?n:Or[n]||Yr(n)),r.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 r=this.valType,o=n.length,i=n[o-1],a=this.discrete,s=bi(r),l=yi(r),u=0;u<o;u++){var c=n[u],d=c.value,h=i.value;c.percent=c.time/e,a||(s&&u!==o-1?si(d,h,r):l&&ai(d.colorStops,h.colorStops))}if(!a&&r!==mi&&t&&this.needsAnimate()&&t.needsAnimate()&&r===t.valType&&!t._finished){this._additiveTrack=t;var p=n[0].value;for(u=0;u<o;u++)r===di?n[u].additiveValue=n[u].value-p:r===fi?n[u].additiveValue=oi([],n[u].value,p,-1):bi(r)&&(n[u].additiveValue=r===hi?oi([],n[u].value,p,-1):ii([],n[u].value,p,-1))}},e.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,r,o,i=null!=this._additiveTrack,a=i?"additiveValue":"value",s=this.valType,l=this.keyframes,u=l.length,c=this.propName,d=s===fi,h=this._lastFr,p=Math.min;if(1===u)r=o=l[0];else{if(t<0)n=0;else if(t<this._lastFrP){var f=p(h+1,u-1);for(n=f;n>=0;n--)if(l[n].percent<=t)break;n=p(n,u-2)}else{for(n=h;n<u;n++)if(l[n].percent>t)break;n=p(n-1,u-2)}o=l[n+1],r=l[n]}if(r&&o){this._lastFr=n,this._lastFrP=t;var g=o.percent-r.percent,m=0===g?1:p((t-r.percent)/g,1);o.easingFunc&&(m=o.easingFunc(m));var v=i?this._additiveValue:d?_i:e[c];if(!bi(s)&&!d||v||(v=this._additiveValue=[]),this.discrete)e[c]=m<1?r.rawValue:o.rawValue;else if(bi(s))s===hi?ni(v,r[a],o[a],m):ri(v,r[a],o[a],m);else if(yi(s)){var y=r[a],b=o[a],_=s===gi;e[c]={type:_?"linear":"radial",x:ti(y.x,b.x,m),y:ti(y.y,b.y,m),colorStops:Te(y.colorStops,(function(e,t){var n=b.colorStops[t];return{offset:ti(e.offset,n.offset,m),color:ui(ni([],e.color,n.color,m))}})),global:b.global},_?(e[c].x2=ti(y.x2,b.x2,m),e[c].y2=ti(y.y2,b.y2,m)):e[c].r=ti(y.r,b.r,m)}else if(d)ni(v,r[a],o[a],m),i||(e[c]=ui(v));else{var x=ti(r[a],o[a],m);i?this._additiveValue=x:e[c]=x}i&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,r=this._additiveValue;t===di?e[n]=e[n]+r:t===fi?(vo(e[n],_i),oi(_i,_i,r,1),e[n]=ui(_i)):t===hi?oi(e[n],e[n],r,1):t===pi&&ii(e[n],e[n],r,1)},e}(),wi=function(){function e(e,t,n,r){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&r?ve("Can' use additive animation on looped animation."):(this._additiveAnimators=r,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,Ee(t),n)},e.prototype.whenWithKeys=function(e,t,n,r){for(var o=this._tracks,i=0;i<n.length;i++){var a=n[i],s=o[a];if(!s){s=o[a]=new xi(a);var l=void 0,u=this._getAdditiveTrack(a);if(u){var c=u.keyframes,d=c[c.length-1];l=d&&d.value,u.valType===fi&&l&&(l=ui(l))}else l=this._target[a];if(null==l)continue;e>0&&s.addKeyframe(0,li(l),r),this._trackKeys.push(a)}s.addKeyframe(e,li(t[a]),r)}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;n<t;n++)e[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var n=0;n<t.length;n++)t[n].call(this)},e.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)e[t[n]].setFinished()},e.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var r=0;r<n.length;r++){var o=n[r].getTrack(e);o&&(t=o)}return t},e.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,n=[],r=this._maxTime||0,o=0;o<this._trackKeys.length;o++){var i=this._trackKeys[o],a=this._tracks[i],s=this._getAdditiveTrack(i),l=a.keyframes,u=l.length;if(a.prepare(r,s),a.needsAnimate())if(!this._allowDiscrete&&a.discrete){var c=l[u-1];c&&(t._target[a.propName]=c.rawValue),a.setFinished()}else n.push(a)}if(n.length||this._force){var d=new Kr({life:r,loop:this._loop,delay:this._delay||0,onframe:function(e){t._started=2;var r=t._additiveAnimators;if(r){for(var o=!1,i=0;i<r.length;i++)if(r[i]._clip){o=!0;break}o||(t._additiveAnimators=null)}for(i=0;i<n.length;i++)n[i].step(t._target,e);var a=t._onframeCbs;if(a)for(i=0;i<a.length;i++)a[i](t._target,e)},ondestroy:function(){t._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),e&&d.setEasing(e)}else this._doneCallback();return this}},e.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},e.prototype.delay=function(e){return this._delay=e,this},e.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},e.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},e.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(e){return this._tracks[e]},e.prototype.getTracks=function(){var e=this;return Te(this._trackKeys,(function(t){return e._tracks[t]}))},e.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var n=this._tracks,r=this._trackKeys,o=0;o<e.length;o++){var i=n[e[o]];i&&!i.isFinished()&&(t?i.step(this._target,1):1===this._started&&i.step(this._target,0),i.setFinished())}var a=!0;for(o=0;o<r.length;o++)if(!n[r[o]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},e.prototype.saveTo=function(e,t,n){if(e){t=t||this._trackKeys;for(var r=0;r<t.length;r++){var o=t[r],i=this._tracks[o];if(i&&!i.isFinished()){var a=i.keyframes,s=a[n?0:a.length-1];s&&(e[o]=li(s.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t=t||Ee(e);for(var n=0;n<t.length;n++){var r=t[n],o=this._tracks[r];if(o){var i=o.keyframes;if(i.length>1){var a=i.pop();o.addKeyframe(a.time,e[r]),o.prepare(this._maxTime,o.getAdditiveTrack())}}}},e}(),Oi=wi;function Si(){return(new Date).getTime()}var Ai=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 Q(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=Si()-this._pausedTime,n=t-this._time,r=this._head;while(r){var o=r.next,i=r.step(t,n);i?(r.ondestroy(),this.removeClip(r),r=o):r=o}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&&(xr(t),!e._paused&&e.update())}this._running=!0,xr(t)},t.prototype.start=function(){this._running||(this._time=Si(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Si(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Si()-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 Oi(e,t.loop);return this.addAnimator(n),n},t}(Zt),ki=Ai,Ci=300,Mi=G.domSupported,Ti=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},r=Te(e,(function(e){var t=e.replace("mouse","pointer");return n.hasOwnProperty(t)?t:e}));return{mouse:e,touch:t,pointer:r}}(),Pi={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Ii=!1;function $i(e){var t=e.pointerType;return"pen"===t||"touch"===t}function Ei(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 Di(e){e&&(e.zrByTouch=!0)}function Ri(e,t){return pn(e.dom,new Li(e,t),!0)}function Ni(e,t){var n=t,r=!1;while(n&&9!==n.nodeType&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot))n=n.parentNode;return r}var Li=function(){function e(e,t){this.stopPropagation=gt,this.stopImmediatePropagation=gt,this.preventDefault=gt,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return e}(),zi={mousedown:function(e){e=pn(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=pn(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=pn(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=pn(this.dom,e);var t=e.toElement||e.relatedTarget;Ni(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){Ii=!0,e=pn(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){Ii||(e=pn(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=pn(this.dom,e),Di(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),zi.mousemove.call(this,e),zi.mousedown.call(this,e)},touchmove:function(e){e=pn(this.dom,e),Di(e),this.handler.processGesture(e,"change"),zi.mousemove.call(this,e)},touchend:function(e){e=pn(this.dom,e),Di(e),this.handler.processGesture(e,"end"),zi.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<Ci&&zi.click.call(this,e)},pointerdown:function(e){zi.mousedown.call(this,e)},pointermove:function(e){$i(e)||zi.mousemove.call(this,e)},pointerup:function(e){zi.mouseup.call(this,e)},pointerout:function(e){$i(e)||zi.mouseout.call(this,e)}};Me(["click","dblclick","contextmenu"],(function(e){zi[e]=function(t){t=pn(this.dom,t),this.trigger(e,t)}}));var Vi={pointermove:function(e){$i(e)||Vi.mousemove.call(this,e)},pointerup:function(e){Vi.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function Bi(e,t){var n=t.domHandlers;G.pointerEventsSupported?Me(Ti.pointer,(function(r){Qi(t,r,(function(t){n[r].call(e,t)}))})):(G.touchEventsSupported&&Me(Ti.touch,(function(r){Qi(t,r,(function(o){n[r].call(e,o),Ei(t)}))})),Me(Ti.mouse,(function(r){Qi(t,r,(function(o){o=hn(o),t.touching||n[r].call(e,o)}))})))}function ji(e,t){function n(n){function r(r){r=hn(r),Ni(e,r.target)||(r=Ri(e,r),t.domHandlers[n].call(e,r))}Qi(t,n,r,{capture:!0})}G.pointerEventsSupported?Me(Pi.pointer,n):G.touchEventsSupported||Me(Pi.mouse,n)}function Qi(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,gn(e.domTarget,t,n,r)}function Fi(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&mn(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var Wi=function(){function e(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return e}(),Hi=function(e){function t(t,n){var r=e.call(this)||this;return r.__pointerCapturing=!1,r.dom=t,r.painterRoot=n,r._localHandlerScope=new Wi(t,zi),Mi&&(r._globalHandlerScope=new Wi(document,Vi)),Bi(r,r._localHandlerScope),r}return Q(t,e),t.prototype.dispose=function(){Fi(this._localHandlerScope),Mi&&Fi(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,Mi&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?ji(this,t):Fi(t)}},t}(Zt),Zi=Hi,Gi=1;G.hasGlobalWindow&&(Gi=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Xi=Gi,Ui=.4,Yi="#333",qi="#ccc",Ki="#eee",Ji=Sn,ea=5e-5;function ta(e){return e>ea||e<-ea}var na=[],ra=[],oa=On(),ia=Math.abs,aa=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 ta(this.rotation)||ta(this.x)||ta(this.y)||ta(this.scaleX-1)||ta(this.scaleY-1)||ta(this.skewX)||ta(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;t||e?(n=n||On(),t?this.getLocalTransform(n):Ji(n),e&&(t?kn(n,e,n):An(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(Ji(n),this.invTransform=null)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(null!=t&&1!==t){this.getGlobalScale(na);var n=na[0]<0?-1:1,r=na[1]<0?-1:1,o=((na[0]-n)*t+n)/na[0]||0,i=((na[1]-r)*t+r)/na[1]||0;e[0]*=o,e[1]*=o,e[2]*=i,e[3]*=i}this.invTransform=this.invTransform||On(),Pn(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],r=Math.atan2(e[1],e[0]),o=Math.PI/2+r-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(o),t=Math.sqrt(t),this.skewX=o,this.skewY=0,this.rotation=-r,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&&(e.invTransform=e.invTransform||On(),kn(ra,e.invTransform,t),t=ra);var n=this.originX,r=this.originY;(n||r)&&(oa[4]=n,oa[5]=r,kn(ra,t,oa),ra[4]-=n,ra[5]-=r,t=ra),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],r=this.invTransform;return r&&Vt(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&Vt(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&ia(e[0]-1)>1e-10&&ia(e[3]-1)>1e-10?Math.sqrt(ia(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){la(this,e)},e.getLocalTransform=function(e,t){t=t||[];var n=e.originX||0,r=e.originY||0,o=e.scaleX,i=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||r||a||s){var p=n+a,f=r+s;t[4]=-p*o-d*f*i,t[5]=-f*i-h*p*o}else t[4]=t[5]=0;return t[0]=o,t[3]=i,t[1]=h*o,t[2]=d*i,l&&Mn(t,t,l),t[4]+=n+u,t[5]+=r+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}(),sa=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function la(e,t){for(var n=0;n<sa.length;n++){var r=sa[n];e[r]=t[r]}}var ua=aa,ca={};function da(e,t){t=t||Y;var n=ca[t];n||(n=ca[t]=new no(500));var r=n.get(e);return null==r&&(r=ne.measureText(e,t).width,n.put(e,r)),r}function ha(e,t,n,r){var o=da(e,t),i=ma(t),a=fa(0,o,n),s=ga(0,i,r),l=new Fn(a,s,o,i);return l}function pa(e,t,n,r){var o=((e||"")+"").split("\n"),i=o.length;if(1===i)return ha(o[0],t,n,r);for(var a=new Fn(0,0,0,0),s=0;s<o.length;s++){var l=ha(o[s],t,n,r);0===s?a.copy(l):a.union(l)}return a}function fa(e,t,n){return"right"===n?e-=t:"center"===n&&(e-=t/2),e}function ga(e,t,n){return"middle"===n?e-=t/2:"bottom"===n&&(e-=t),e}function ma(e){return da("国",e)}function va(e,t){return"string"===typeof e?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function ya(e,t,n){var r=t.position||"inside",o=null!=t.distance?t.distance:5,i=n.height,a=n.width,s=i/2,l=n.x,u=n.y,c="left",d="top";if(r instanceof Array)l+=va(r[0],n.width),u+=va(r[1],n.height),c=null,d=null;else switch(r){case"left":l-=o,u+=s,c="right",d="middle";break;case"right":l+=o+a,u+=s,d="middle";break;case"top":l+=a/2,u-=o,c="center",d="bottom";break;case"bottom":l+=a/2,u+=i+o,c="center";break;case"inside":l+=a/2,u+=s,c="center",d="middle";break;case"insideLeft":l+=o,u+=s,d="middle";break;case"insideRight":l+=a-o,u+=s,c="right",d="middle";break;case"insideTop":l+=a/2,u+=o,c="center";break;case"insideBottom":l+=a/2,u+=i-o,c="center",d="bottom";break;case"insideTopLeft":l+=o,u+=o;break;case"insideTopRight":l+=a-o,u+=o,c="right";break;case"insideBottomLeft":l+=o,u+=i-o,d="bottom";break;case"insideBottomRight":l+=a-o,u+=i-o,c="right",d="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=c,e.verticalAlign=d,e}var ba="__zr_normal__",_a=sa.concat(["ignore"]),xa=Pe(sa,(function(e,t){return e[t]=!0,e}),{ignore:!1}),wa={},Oa=new Fn(0,0,0,0),Sa=function(){function e(e){this.id=me(),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 r=this.transform;r||(r=this.transform=[1,0,0,1,0,0]),r[4]+=e,r[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,r=n.local,o=t.innerTransformable,i=void 0,a=void 0,s=!1;o.parent=r?this:null;var l=!1;if(o.copyTransform(t),null!=n.position){var u=Oa;n.layoutRect?u.copy(n.layoutRect):u.copy(this.getBoundingRect()),r||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(wa,n,u):ya(wa,n,u),o.x=wa.x,o.y=wa.y,i=wa.align,a=wa.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=va(c[0],u.width),h=va(c[1],u.height)),l=!0,o.originX=-o.x+d+(r?0:u.x),o.originY=-o.y+h+(r?0:u.y)}}null!=n.rotation&&(o.rotation=n.rotation);var p=n.offset;p&&(o.x+=p[0],o.y+=p[1],l||(o.originX=-p[0],o.originY=-p[1]));var f=null==n.inside?"string"===typeof n.position&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,v=void 0,y=void 0;f&&this.canBeInsideText()?(m=n.insideFill,v=n.insideStroke,null!=m&&"auto"!==m||(m=this.getInsideTextFill()),null!=v&&"auto"!==v||(v=this.getInsideTextStroke(m),y=!0)):(m=n.outsideFill,v=n.outsideStroke,null!=m&&"auto"!==m||(m=this.getOutsideFill()),null!=v&&"auto"!==v||(v=this.getOutsideStroke(m),y=!0)),m=m||"#000",m===g.fill&&v===g.stroke&&y===g.autoStroke&&i===g.align&&a===g.verticalAlign||(s=!0,g.fill=m,g.stroke=v,g.autoStroke=y,g.align=i,g.verticalAlign=a,t.setDefaultTextStyle(g)),t.__dirty|=hr,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()?qi:Yi},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n="string"===typeof t&&vo(t);n||(n=[255,255,255,1]);for(var r=n[3],o=this.__zr.isDarkMode(),i=0;i<3;i++)n[i]=n[i]*r+(o?0:255)*(1-r);return n[3]=1,Mo(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||{},xe(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(Qe(e))for(var n=e,r=Ee(n),o=0;o<r.length;o++){var i=r[o];this.attrKV(i,e[i])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,n=0;n<this.animators.length;n++){var r=this.animators[n],o=r.__fromStateTransition;if(!(r.getLoop()||o&&o!==ba)){var i=r.targetName,a=i?t[i]:t;r.saveTo(a)}}},e.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,_a)},e.prototype._savePrimaryToNormal=function(e,t,n){for(var r=0;r<n.length;r++){var o=n[r];null==e[o]||o in t||(t[o]=this[o])}},e.prototype.hasState=function(){return this.currentStates.length>0},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(ba,!1,e)},e.prototype.useState=function(e,t,n,r){var o=e===ba,i=this.hasState();if(i||!o){var a=this.currentStates,s=this.stateTransition;if(!(Se(a,e)>=0)||!t&&1!==a.length){var l;if(this.stateProxy&&!o&&(l=this.stateProxy(e)),l||(l=this.states&&this.states[e]),l||o){o||this.saveCurrentToNormalState(l);var u=!!(l&&l.hoverLayer||r);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),o?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~hr),l}ve("State "+e+" not exists.")}}},e.prototype.useStates=function(e,t,n){if(e.length){var r=[],o=this.currentStates,i=e.length,a=i===o.length;if(a)for(var s=0;s<i;s++)if(e[s]!==o[s]){a=!1;break}if(a)return;for(s=0;s<i;s++){var l=e[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,e)),u||(u=this.states[l]),u&&r.push(u)}var c=r[i-1],d=!!(c&&c.hoverLayer||n);d&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(r),p=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(e.join(","),h,this._normalState,!1,!t&&!this.__inHover&&p&&p.duration>0,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&=~hr)}else this.clearStates()},e.prototype.isSilent=function(){var e=this.silent,t=this.parent;while(!e&&t){if(t.silent){e=!0;break}t=t.parent}return e},e.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},e.prototype.removeState=function(e){var t=Se(this.currentStates,e);if(t>=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var r=this.currentStates.slice(),o=Se(r,e),i=Se(r,t)>=0;o>=0?i?r.splice(o,1):r[o]=t:n&&!i&&r.push(t),this.useStates(r)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t,n={},r=0;r<e.length;r++){var o=e[r];xe(n,o),o.textConfig&&(t=t||{},xe(t,o.textConfig))}return t&&(n.textConfig=t),n},e.prototype._applyStateObj=function(e,t,n,r,o,i){var a=!(t&&r);t&&t.textConfig?(this.textConfig=xe({},r?this.textConfig:n.textConfig),xe(this.textConfig,t.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},l=!1,u=0;u<_a.length;u++){var c=_a[u],d=o&&xa[c];t&&null!=t[c]?d?(l=!0,s[c]=t[c]):this[c]=t[c]:a&&null!=n[c]&&(d?(l=!0,s[c]=n[c]):this[c]=n[c])}if(!o)for(u=0;u<this.animators.length;u++){var h=this.animators[u],p=h.targetName;h.getLoop()||h.__changeFinalValue(p?(t||n)[p]:t||n)}l&&this._transitionState(e,s,i)},e.prototype._attachComponent=function(e){if((!e.__zr||e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},e.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},e.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new ua,this._attachComponent(e),this._textContent=e,this.markRedraw())},e.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),xe(this.textConfig,e),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=hr;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,n=this._textGuide;t&&(t.__inHover=e),n&&(n.__inHover=e)},e.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},e.prototype.animate=function(e,t,n){var r=e?this[e]:this;var o=new Oi(r,t,n);return e&&(o.targetName=e),this.addAnimator(o,e),o},e.prototype.addAnimator=function(e,t){var n=this.__zr,r=this;e.during((function(){r.updateDuringAnimation(t)})).done((function(){var t=r.animators,n=Se(t,e);n>=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,r=n.length,o=[],i=0;i<r;i++){var a=n[i];e&&e!==a.scope?o.push(a):a.stop(t)}return this.animators=o,this},e.prototype.animateTo=function(e,t,n){Aa(this,e,t,n)},e.prototype.animateFrom=function(e,t,n){Aa(this,e,t,n,!0)},e.prototype._transitionState=function(e,t,n,r){for(var o=Aa(this,t,n,r),i=0;i<o.length;i++)o[i].__fromStateTransition=e},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=function(){var t=e.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=hr;function n(e,n,r,o){function i(e,t){Object.defineProperty(t,0,{get:function(){return e[r]},set:function(t){e[r]=t}}),Object.defineProperty(t,1,{get:function(){return e[o]},set:function(t){e[o]=t}})}Object.defineProperty(t,e,{get:function(){if(!this[n]){var e=this[n]=[];i(this,e)}return this[n]},set:function(e){this[r]=e[0],this[o]=e[1],this[n]=e,i(this,e)}})}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),e}();function Aa(e,t,n,r,o){n=n||{};var i=[];Ia(e,"",e,t,n,r,i,o);var a=i.length,s=!1,l=n.done,u=n.aborted,c=function(){s=!0,a--,a<=0&&(s?l&&l():u&&u())},d=function(){a--,a<=0&&(s?l&&l():u&&u())};a||l&&l(),i.length>0&&n.during&&i[0].during((function(e,t){n.during(t)}));for(var h=0;h<i.length;h++){var p=i[h];c&&p.done(c),d&&p.aborted(d),n.force&&p.duration(n.duration),p.start(n.easing)}return i}function ka(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function Ca(e){return Ce(e[0])}function Ma(e,t,n){if(Ce(t[n]))if(Ce(e[n])||(e[n]=[]),We(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),ka(e[n],t[n],r))}else{var o=t[n],i=e[n],a=o.length;if(Ca(o))for(var s=o[0].length,l=0;l<a;l++)i[l]?ka(i[l],o[l],s):i[l]=Array.prototype.slice.call(o[l]);else ka(i,o,a);i.length=o.length}else e[n]=t[n]}function Ta(e,t){return e===t||Ce(e)&&Ce(t)&&Pa(e,t)}function Pa(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function Ia(e,t,n,r,o,i,a,s){for(var l=Ee(r),u=o.duration,c=o.delay,d=o.additive,h=o.setToFinal,p=!Qe(i),f=e.animators,g=[],m=0;m<l.length;m++){var v=l[m],y=r[v];if(null!=y&&null!=n[v]&&(p||i[v]))if(!Qe(y)||Ce(y)||Ze(y))g.push(v);else{if(t){s||(n[v]=y,e.updateDuringAnimation(t));continue}Ia(e,v,n[v],y,o,i&&i[v],a,s)}else s||(n[v]=y,e.updateDuringAnimation(t),g.push(v))}var b=g.length;if(!d&&b)for(var _=0;_<f.length;_++){var x=f[_];if(x.targetName===t){var w=x.stopTracks(g);if(w){var O=Se(f,x);f.splice(O,1)}}}if(o.force||(g=Ie(g,(function(e){return!Ta(r[e],n[e])})),b=g.length),b>0||o.force&&!a.length){var S=void 0,A=void 0,k=void 0;if(s){A={},h&&(S={});for(_=0;_<b;_++){v=g[_];A[v]=n[v],h?S[v]=r[v]:n[v]=r[v]}}else if(h){k={};for(_=0;_<b;_++){v=g[_];k[v]=li(n[v]),Ma(n,r,v)}}x=new Oi(n,!1,!1,d?Ie(f,(function(e){return e.targetName===t})):null);x.targetName=t,o.scope&&(x.scope=o.scope),h&&S&&x.whenWithKeys(0,S,g),k&&x.whenWithKeys(0,k,g),x.whenWithKeys(null==u?500:u,s?A:r,g).delay(c||0),e.addAnimator(x,t),a.push(x)}}ke(Sa,Zt),ke(Sa,ua);var $a=Sa,Ea=function(e){function t(t){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return Q(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var t=this._children,n=0;n<t.length;n++)if(t[n].name===e)return t[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,t){if(e&&e!==this&&e.parent!==this&&t&&t.parent===this){var n=this._children,r=n.indexOf(t);r>=0&&(n.splice(r,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=Se(this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,r=n[t];if(e&&e!==this&&e.parent!==this&&e!==r){n[t]=e,r.parent=null;var o=this.__zr;o&&r.removeSelfFromZr(o),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,r=Se(n,e);return r<0||(n.splice(r,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;n<e.length;n++){var r=e[n];t&&r.removeSelfFromZr(t),r.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,t){for(var n=this._children,r=0;r<n.length;r++){var o=n[r];e.call(t,o,r)}return this},t.prototype.traverse=function(e,t){for(var n=0;n<this._children.length;n++){var r=this._children[n],o=e.call(t,r);r.isGroup&&!o&&r.traverse(e,t)}return this},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++){var r=this._children[n];r.addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++){var r=this._children[n];r.removeSelfFromZr(t)}},t.prototype.getBoundingRect=function(e){for(var t=new Fn(0,0,0,0),n=e||this._children,r=[],o=null,i=0;i<n.length;i++){var a=n[i];if(!a.ignore&&!a.invisible){var s=a.getBoundingRect(),l=a.getLocalTransform(r);l?(Fn.applyTransform(t,s,l),o=o||t.clone(),o.union(t)):(o=o||s.clone(),o.union(s))}}return o||t},t}($a);Ea.prototype.type="group";var Da=Ea,Ra={},Na={};function La(e){delete Na[e]}function za(e){if(!e)return!1;if("string"===typeof e)return To(e,1)<Ui;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,o=0;o<r;o++)n+=To(t[o].color,1);return n/=r,n<Ui}return!1}var Va,Ba=function(){function e(e,t,n){var r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=t,this.id=e;var o=new _r,i=n.renderer||"canvas";Ra[i]||(i=Ee(Ra)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var a=new Ra[i](t,o,n,e),s=n.ssr||a.ssrOnly;this.storage=o,this.painter=a;var l,u=G.node||G.worker||s?null:new Zi(a.getViewportRoot(),a.root),c=n.useCoarsePointer,d=null==c||"auto"===c?G.touchEventsSupported:!!c,h=44;d&&(l=qe(n.pointerSize,h)),this.handler=new tr(o,a,u,a.root,l),this.animation=new ki({stage:{update:s?null:function(){return r._flush(!0)}}}),s||this.animation.start()}return e.prototype.add=function(e){!this._disposed&&e&&(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},e.prototype.remove=function(e){!this._disposed&&e&&(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},e.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=za(e))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(e){this._darkMode=e},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(e){this._disposed||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!1)},e.prototype._flush=function(e){var t,n=Si();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var r=Si();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:r-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},e.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this._disposed||this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},e.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},e.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof Da&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,La(this.id))},e}();function ja(e,t){var n=new Ba(me(),e,t);return Na[n.id]=n,n}function Qa(e){e.dispose()}function Fa(){for(var e in Na)Na.hasOwnProperty(e)&&Na[e].dispose();Na={}}function Wa(e){return Na[e]}function Ha(e,t){Ra[e]=t}function Za(e){if("function"===typeof Va)return Va(e)}function Ga(e){Va=e}var Xa="5.6.0",Ua=1e-4,Ya=20;function qa(e){return e.replace(/^\s+|\s+$/g,"")}function Ka(e,t,n,r){var o=t[0],i=t[1],a=n[0],s=n[1],l=i-o,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(r)if(l>0){if(e<=o)return a;if(e>=i)return s}else{if(e>=o)return a;if(e<=i)return s}else{if(e===o)return a;if(e===i)return s}return(e-o)/l*u+a}function Ja(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 Ve(e)?qa(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):null==e?NaN:+e}function es(e,t,n){return null==t&&(t=10),t=Math.min(Math.max(0,t),Ya),e=(+e).toFixed(t),n?e:+e}function ts(e){return e.sort((function(e,t){return e-t})),e}function ns(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 rs(e)}function rs(e){var t=e.toString().toLowerCase(),n=t.indexOf("e"),r=n>0?+t.slice(n+1):0,o=n>0?n:t.length,i=t.indexOf("."),a=i<0?0:o-1-i;return Math.max(0,a-r)}function os(e,t){var n=Math.log,r=Math.LN10,o=Math.floor(n(e[1]-e[0])/r),i=Math.round(n(Math.abs(t[1]-t[0]))/r),a=Math.min(Math.max(-o+i,0),20);return isFinite(a)?a:20}function is(e,t,n){if(!e[t])return 0;var r=as(e,n);return r[t]||0}function as(e,t){var n=Pe(e,(function(e,t){return e+(isNaN(t)?0:t)}),0);if(0===n)return[];var r=Math.pow(10,t),o=Te(e,(function(e){return(isNaN(e)?0:e)/n*r*100})),i=100*r,a=Te(o,(function(e){return Math.floor(e)})),s=Pe(a,(function(e,t){return e+t}),0),l=Te(o,(function(e,t){return e-a[t]}));while(s<i){for(var u=Number.NEGATIVE_INFINITY,c=null,d=0,h=l.length;d<h;++d)l[d]>u&&(u=l[d],c=d);++a[c],l[c]=0,++s}return Te(a,(function(e){return e/r}))}function ss(e,t){var n=Math.max(ns(e),ns(t)),r=e+t;return n>Ya?r:es(r,n)}var ls=9007199254740991;function us(e){var t=2*Math.PI;return(e%t+t)%t}function cs(e){return e>-Ua&&e<Ua}var ds=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function hs(e){if(e instanceof Date)return e;if(Ve(e)){var t=ds.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return"Z"!==t[8].toUpperCase()&&(n-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}return null==e?new Date(NaN):new Date(Math.round(e))}function ps(e){return Math.pow(10,fs(e))}function fs(e){if(0===e)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function gs(e,t){var n,r=fs(e),o=Math.pow(10,r),i=e/o;return n=t?i<1.5?1:i<2.5?2:i<4?3:i<7?5:10:i<1?1:i<2?2:i<3?3:i<5?5:10,e=n*o,r>=-20?+e.toFixed(r<0?-r:0):e}function ms(e,t){var n=(e.length-1)*t+1,r=Math.floor(n),o=+e[r-1],i=n-r;return i?o+i*(e[r]-o):o}function vs(e){e.sort((function(e,t){return s(e,t,0)?-1:1}));for(var t=-1/0,n=1,r=0;r<e.length;){for(var o=e[r].interval,i=e[r].close,a=0;a<2;a++)o[a]<=t&&(o[a]=t,i[a]=a?1:1-n),t=o[a],n=i[a];o[0]===o[1]&&i[0]*i[1]!==1?e.splice(r,1):r++}return e;function s(e,t,n){return e.interval[n]<t.interval[n]||e.interval[n]===t.interval[n]&&(e.close[n]-t.close[n]===(n?-1:1)||!n&&s(e,t,1))}}function ys(e){var t=parseFloat(e);return t==e&&(0!==t||!Ve(e)||e.indexOf("x")<=0)?t:NaN}function bs(e){return!isNaN(ys(e))}function _s(){return Math.round(9*Math.random())}function xs(e,t){return 0===t?e:xs(t,e%t)}function ws(e,t){return null==e?t:null==t?e:e*t/xs(e,t)}function Os(e,t,n){return(t-e)*n+e}var Ss="series\0",As="\0_ec_\0";function ks(e){return e instanceof Array?e:null==e?[]:[e]}function Cs(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var r=0,o=n.length;r<o;r++){var i=n[r];!e.emphasis[t].hasOwnProperty(i)&&e[t].hasOwnProperty(i)&&(e.emphasis[t][i]=e[t][i])}}}var Ms=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function Ts(e){return!Qe(e)||Le(e)||e instanceof Date?e:e.value}function Ps(e){return Qe(e)&&!(e instanceof Array)}function Is(e,t,n){var r="normalMerge"===n,o="replaceMerge"===n,i="replaceAll"===n;e=e||[],t=(t||[]).slice();var a=ct();Me(t,(function(e,n){Qe(e)||(t[n]=null)}));var s=$s(e,a,n);return(r||o)&&Es(s,e,a,t),r&&Ds(s,t),r||o?Rs(s,t,o):i&&Ns(s,t),Ls(s),s}function $s(e,t,n){var r=[];if("replaceAll"===n)return r;for(var o=0;o<e.length;o++){var i=e[o];i&&null!=i.id&&t.set(i.id,o),r.push({existing:"replaceMerge"===n||Qs(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return r}function Es(e,t,n,r){Me(r,(function(o,i){if(o&&null!=o.id){var a=Vs(o.id),s=n.get(a);if(null!=s){var l=e[s];tt(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=o,l.existing=t[s],r[i]=null}}}))}function Ds(e,t){Me(t,(function(n,r){if(n&&null!=n.name)for(var o=0;o<e.length;o++){var i=e[o].existing;if(!e[o].newOption&&i&&(null==i.id||null==n.id)&&!Qs(n)&&!Qs(i)&&zs("name",i,n))return e[o].newOption=n,void(t[r]=null)}}))}function Rs(e,t,n){Me(t,(function(t){if(t){var r,o=0;while((r=e[o])&&(r.newOption||Qs(r.existing)||r.existing&&null!=t.id&&!zs("id",t,r.existing)))o++;r?(r.newOption=t,r.brandNew=n):e.push({newOption:t,brandNew:n,existing:null,keyInfo:null}),o++}}))}function Ns(e,t){Me(t,(function(t){e.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})}))}function Ls(e){var t=ct();Me(e,(function(e){var n=e.existing;n&&t.set(n.id,e)})),Me(e,(function(e){var n=e.newOption;tt(!n||null==n.id||!t.get(n.id)||t.get(n.id)===e,"id duplicates: "+(n&&n.id)),n&&null!=n.id&&t.set(n.id,e),!e.keyInfo&&(e.keyInfo={})})),Me(e,(function(e,n){var r=e.existing,o=e.newOption,i=e.keyInfo;if(Qe(o)){if(i.name=null!=o.name?Vs(o.name):r?r.name:Ss+n,r)i.id=Vs(r.id);else if(null!=o.id)i.id=Vs(o.id);else{var a=0;do{i.id="\0"+i.name+"\0"+a++}while(t.get(i.id))}t.set(i.id,e)}}))}function zs(e,t,n){var r=Bs(t[e],null),o=Bs(n[e],null);return null!=r&&null!=o&&r===o}function Vs(e){return Bs(e,"")}function Bs(e,t){return null==e?t:Ve(e)?e:je(e)||Be(e)?e+"":t}function js(e){var t=e.name;return!(!t||!t.indexOf(Ss))}function Qs(e){return e&&null!=e.id&&0===Vs(e.id).indexOf(As)}function Fs(e){return As+e}function Ws(e,t,n){Me(e,(function(e){var r=e.newOption;Qe(r)&&(e.keyInfo.mainType=t,e.keyInfo.subType=Hs(t,r,e.existing,n))}))}function Hs(e,t,n,r){var o=t.type?t.type:n?n.subType:r.determineSubType(e,t);return o}function Zs(e,t){var n={},r={};return o(e||[],n),o(t||[],r,n),[i(n),i(r)];function o(e,t,n){for(var r=0,o=e.length;r<o;r++){var i=Bs(e[r].seriesId,null);if(null==i)return;for(var a=ks(e[r].dataIndex),s=n&&n[i],l=0,u=a.length;l<u;l++){var c=a[l];s&&s[c]?s[c]=null:(t[i]||(t[i]={}))[c]=1}}}function i(e,t){var n=[];for(var r in e)if(e.hasOwnProperty(r)&&null!=e[r])if(t)n.push(+r);else{var o=i(e[r],!0);o.length&&n.push({seriesId:r,dataIndex:o})}return n}}function Gs(e,t){return null!=t.dataIndexInside?t.dataIndexInside:null!=t.dataIndex?Le(t.dataIndex)?Te(t.dataIndex,(function(t){return e.indexOfRawIndex(t)})):e.indexOfRawIndex(t.dataIndex):null!=t.name?Le(t.name)?Te(t.name,(function(t){return e.indexOfName(t)})):e.indexOfName(t.name):void 0}function Xs(){var e="__ec_inner_"+Us++;return function(t){return t[e]||(t[e]={})}}var Us=_s();function Ys(e,t,n){var r=qs(t,n),o=r.mainTypeSpecified,i=r.queryOptionMap,a=r.others,s=a,l=n?n.defaultMainType:null;return!o&&l&&i.set(l,{}),i.each((function(t,r){var o=el(e,r,t,{useDefault:l===r,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});s[r+"Models"]=o.models,s[r+"Model"]=o.models[0]})),s}function qs(e,t){var n;if(Ve(e)){var r={};r[e+"Index"]=0,n=r}else n=e;var o=ct(),i={},a=!1;return Me(n,(function(e,n){if("dataIndex"!==n&&"dataIndexInside"!==n){var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=r[1],l=(r[2]||"").toLowerCase();if(s&&l&&!(t&&t.includeMainTypes&&Se(t.includeMainTypes,s)<0)){a=a||!!s;var u=o.get(s)||o.set(s,{});u[l]=e}}else i[n]=e})),{mainTypeSpecified:a,queryOptionMap:o,others:i}}var Ks={useDefault:!0,enableAll:!1,enableNone:!1},Js={useDefault:!1,enableAll:!0,enableNone:!0};function el(e,t,n,r){r=r||Ks;var o=n.index,i=n.id,a=n.name,s={models:null,specified:null!=o||null!=i||null!=a};if(!s.specified){var l=void 0;return s.models=r.useDefault&&(l=e.getComponent(t))?[l]:[],s}return"none"===o||!1===o?(tt(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):("all"===o&&(tt(r.enableAll,'`"all"` is not a valid value on index option.'),o=i=a=null),s.models=e.queryComponents({mainType:t,index:o,id:i,name:a}),s)}function tl(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function nl(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function rl(e){return"auto"===e?G.domSupported?"html":"richText":e||"html"}function ol(e,t){var n=ct(),r=[];return Me(e,(function(e){var o=t(e);(n.get(o)||(r.push(o),n.set(o,[]))).push(e)})),{keys:r,buckets:n}}function il(e,t,n,r,o){var i=null==t||"auto"===t;if(null==r)return r;if(je(r)){var a=Os(n||0,r,o);return es(a,i?Math.max(ns(n||0),ns(r)):t)}if(Ve(r))return o<1?n:r;for(var s=[],l=n,u=r,c=Math.max(l?l.length:0,u.length),d=0;d<c;++d){var h=e.getDimensionInfo(d);if(h&&"ordinal"===h.type)s[d]=(o<1&&l?l:u)[d];else{var p=l&&l[d]?l[d]:0,f=u[d];a=Os(p,f,o);s[d]=es(a,i?Math.max(ns(p),ns(f)):t)}}return s}var al=".",sl="___EC__COMPONENT__CONTAINER___",ll="___EC__EXTENDED_CLASS___";function ul(e){var t={main:"",sub:""};if(e){var n=e.split(al);t.main=n[0]||"",t.sub=n[1]||""}return t}function cl(e){tt(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function dl(e){return!(!e||!e[ll])}function hl(e,t){e.$constructor=e,e.extend=function(e){var t,n=this;return pl(n)?t=function(e){function t(){return e.apply(this,arguments)||this}return Q(t,e),t}(n):(t=function(){(e.$constructor||n).apply(this,arguments)},Ae(t,this)),xe(t.prototype,e),t[ll]=!0,t.extend=this.extend,t.superCall=vl,t.superApply=yl,t.superClass=n,t}}function pl(e){return ze(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function fl(e,t){e.extend=t.extend}var gl=Math.round(10*Math.random());function ml(e){var t=["__\0is_clz",gl++].join("_");e.prototype[t]=!0,e.isInstance=function(e){return!(!e||!e[t])}}function vl(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.superClass.prototype[t].apply(e,n)}function yl(e,t,n){return this.superClass.prototype[t].apply(e,n)}function bl(e){var t={};function n(e){var n=t[e.main];return n&&n[sl]||(n=t[e.main]={},n[sl]=!0),n}e.registerClass=function(e){var r=e.type||e.prototype.type;if(r){cl(r),e.prototype.type=r;var o=ul(r);if(o.sub){if(o.sub!==sl){var i=n(o);i[o.sub]=e}}else t[o.main]=e}return e},e.getClass=function(e,n,r){var o=t[e];if(o&&o[sl]&&(o=n?o[n]:null),r&&!o)throw new Error(n?"Component "+e+"."+(n||"")+" is used but not imported.":e+".type should be specified.");return o},e.getClassesByMainType=function(e){var n=ul(e),r=[],o=t[n.main];return o&&o[sl]?Me(o,(function(e,t){t!==sl&&r.push(e)})):r.push(o),r},e.hasClass=function(e){var n=ul(e);return!!t[n.main]},e.getAllClassMainTypes=function(){var e=[];return Me(t,(function(t,n){e.push(n)})),e},e.hasSubTypes=function(e){var n=ul(e),r=t[n.main];return r&&r[sl]}}function _l(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t=t||!1,function(n,r,o){for(var i={},a=0;a<e.length;a++){var s=e[a][1];if(!(r&&Se(r,s)>=0||o&&Se(o,s)<0)){var l=n.getShallow(s,t);null!=l&&(i[e[a][0]]=l)}}return i}}var xl=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],wl=_l(xl),Ol=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return wl(this,e,t)},e}(),Sl=new no(50);function Al(e){if("string"===typeof e){var t=Sl.get(e);return t&&t.image}return e}function kl(e,t,n,r,o){if(e){if("string"===typeof e){if(t&&t.__zrImageSrc===e||!n)return t;var i=Sl.get(e),a={hostEl:n,cb:r,cbPayload:o};return i?(t=i.image,!Ml(t)&&i.pending.push(a)):(t=ne.loadImage(e,Cl,Cl),t.__zrImageSrc=e,Sl.put(e,t.__cachedImgObj={image:t,pending:[a]})),t}return e}return t}function Cl(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var n=e.pending[t],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function Ml(e){return e&&e.width&&e.height}var Tl=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Pl(e,t,n,r,o){if(!t)return"";var i=(e+"").split("\n");o=Il(t,n,r,o);for(var a=0,s=i.length;a<s;a++)i[a]=$l(i[a],o);return i.join("\n")}function Il(e,t,n,r){r=r||{};var o=xe({},r);o.font=t,n=qe(n,"..."),o.maxIterations=qe(r.maxIterations,2);var i=o.minChar=qe(r.minChar,0);o.cnCharWidth=da("国",t);var a=o.ascCharWidth=da("a",t);o.placeholder=qe(r.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l<i&&s>=a;l++)s-=a;var u=da(n,t);return u>s&&(n="",u=0),s=e-u,o.ellipsis=n,o.ellipsisWidth=u,o.contentWidth=s,o.containerWidth=e,o}function $l(e,t){var n=t.containerWidth,r=t.font,o=t.contentWidth;if(!n)return"";var i=da(e,r);if(i<=n)return e;for(var a=0;;a++){if(i<=o||a>=t.maxIterations){e+=t.ellipsis;break}var s=0===a?El(e,o,t.ascCharWidth,t.cnCharWidth):i>0?Math.floor(e.length*o/i):0;e=e.substr(0,s),i=da(e,r)}return""===e&&(e=t.placeholder),e}function El(e,t,n,r){for(var o=0,i=0,a=e.length;i<a&&o<t;i++){var s=e.charCodeAt(i);o+=0<=s&&s<=127?n:r}return i}function Dl(e,t){null!=e&&(e+="");var n,r=t.overflow,o=t.padding,i=t.font,a="truncate"===r,s=ma(i),l=qe(t.lineHeight,s),u=!!t.backgroundColor,c="truncate"===t.lineOverflow,d=t.width;n=null==d||"break"!==r&&"breakAll"!==r?e?e.split("\n"):[]:e?Fl(e,t.font,d,"breakAll"===r,0).lines:[];var h=n.length*l,p=qe(t.height,h);if(h>p&&c){var f=Math.floor(p/l);n=n.slice(0,f)}if(e&&a&&null!=d)for(var g=Il(d,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),m=0;m<n.length;m++)n[m]=$l(n[m],g);var v=p,y=0;for(m=0;m<n.length;m++)y=Math.max(da(n[m],i),y);null==d&&(d=y);var b=y;return o&&(v+=o[0]+o[2],b+=o[1]+o[3],d+=o[1]+o[3]),u&&(b=d),{lines:n,height:p,outerWidth:b,outerHeight:v,lineHeight:l,calculatedLineHeight:s,contentWidth:y,contentHeight:h,width:d}}var Rl=function(){function e(){}return e}(),Nl=function(){function e(e){this.tokens=[],e&&(this.tokens=e)}return e}(),Ll=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return e}();function zl(e,t){var n=new Ll;if(null!=e&&(e+=""),!e)return n;var r,o=t.width,i=t.height,a=t.overflow,s="break"!==a&&"breakAll"!==a||null==o?null:{width:o,accumWidth:0,breakAll:"breakAll"===a},l=Tl.lastIndex=0;while(null!=(r=Tl.exec(e))){var u=r.index;u>l&&Vl(n,e.substring(l,u),t,s),Vl(n,r[2],t,s,r[1]),l=Tl.lastIndex}l<e.length&&Vl(n,e.substring(l,e.length),t,s);var c=[],d=0,h=0,p=t.padding,f="truncate"===a,g="truncate"===t.lineOverflow;function m(e,t,n){e.width=t,e.lineHeight=n,d+=n,h=Math.max(h,t)}e:for(var v=0;v<n.lines.length;v++){for(var y=n.lines[v],b=0,_=0,x=0;x<y.tokens.length;x++){var w=y.tokens[x],O=w.styleName&&t.rich[w.styleName]||{},S=w.textPadding=O.padding,A=S?S[1]+S[3]:0,k=w.font=O.font||t.font;w.contentHeight=ma(k);var C=qe(O.height,w.contentHeight);if(w.innerHeight=C,S&&(C+=S[0]+S[2]),w.height=C,w.lineHeight=Ke(O.lineHeight,t.lineHeight,C),w.align=O&&O.align||t.align,w.verticalAlign=O&&O.verticalAlign||"middle",g&&null!=i&&d+w.lineHeight>i){x>0?(y.tokens=y.tokens.slice(0,x),m(y,_,b),n.lines=n.lines.slice(0,v+1)):n.lines=n.lines.slice(0,v);break e}var M=O.width,T=null==M||"auto"===M;if("string"===typeof M&&"%"===M.charAt(M.length-1))w.percentWidth=M,c.push(w),w.contentWidth=da(w.text,k);else{if(T){var P=O.backgroundColor,I=P&&P.image;I&&(I=Al(I),Ml(I)&&(w.width=Math.max(w.width,I.width*C/I.height)))}var $=f&&null!=o?o-_:null;null!=$&&$<w.width?!T||$<A?(w.text="",w.width=w.contentWidth=0):(w.text=Pl(w.text,$-A,k,t.ellipsis,{minChar:t.truncateMinChar}),w.width=w.contentWidth=da(w.text,k)):w.contentWidth=da(w.text,k)}w.width+=A,_+=w.width,O&&(b=Math.max(b,w.lineHeight))}m(y,_,b)}n.outerWidth=n.width=qe(o,h),n.outerHeight=n.height=qe(i,d),n.contentHeight=d,n.contentWidth=h,p&&(n.outerWidth+=p[1]+p[3],n.outerHeight+=p[0]+p[2]);for(v=0;v<c.length;v++){w=c[v];var E=w.percentWidth;w.width=parseInt(E,10)/100*n.width}return n}function Vl(e,t,n,r,o){var i,a,s=""===t,l=o&&n.rich[o]||{},u=e.lines,c=l.font||n.font,d=!1;if(r){var h=l.padding,p=h?h[1]+h[3]:0;if(null!=l.width&&"auto"!==l.width){var f=va(l.width,r.width)+p;u.length>0&&f+r.accumWidth>r.width&&(i=t.split("\n"),d=!0),r.accumWidth=f}else{var g=Fl(t,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=g.accumWidth+p,a=g.linesWidths,i=g.lines}}else i=t.split("\n");for(var m=0;m<i.length;m++){var v=i[m],y=new Rl;if(y.styleName=o,y.text=v,y.isLineHolder=!v&&!s,"number"===typeof l.width?y.width=l.width:y.width=a?a[m]:da(v,c),m||d)u.push(new Nl([y]));else{var b=(u[u.length-1]||(u[0]=new Nl)).tokens,_=b.length;1===_&&b[0].isLineHolder?b[0]=y:(v||!_||s)&&b.push(y)}}}function Bl(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var jl=Pe(",&?/;] ".split(""),(function(e,t){return e[t]=!0,e}),{});function Ql(e){return!Bl(e)||!!jl[e]}function Fl(e,t,n,r,o){for(var i=[],a=[],s="",l="",u=0,c=0,d=0;d<e.length;d++){var h=e.charAt(d);if("\n"!==h){var p=da(h,t),f=!r&&!Ql(h);(i.length?c+p>n:o+c+p>n)?c?(s||l)&&(f?(s||(s=l,l="",u=0,c=u),i.push(s),a.push(c-u),l+=h,u+=p,s="",c=u):(l&&(s+=l,l="",u=0),i.push(s),a.push(c),s=h,c=p)):f?(i.push(l),a.push(u),l=h,u=p):(i.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),i.push(s),a.push(c),s="",l="",u=0,c=0}return i.length||s||(s=e,l="",u=0),l&&(s+=l),s&&(i.push(s),a.push(c)),1===i.length&&(c+=o),{accumWidth:c,lines:i,linesWidths:a}}var Wl="__zr_style_"+Math.round(10*Math.random()),Hl={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Zl={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Hl[Wl]=!0;var Gl=["z","z2","invisible"],Xl=["invisible"],Ul=function(e){function t(t){return e.call(this,t)||this}return Q(t,e),t.prototype._init=function(t){for(var n=Ee(t),r=0;r<n.length;r++){var o=n[r];"style"===o?this.useStyle(t[o]):e.prototype.attrKV.call(this,o,t[o])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,t,n,r){var o=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&Kl(this,e,t)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths)for(var i=0;i<this.__clipPaths.length;++i)if(this.__clipPaths[i].isZeroArea())return!1;if(r&&this.parent){var a=this.parent;while(a){if(a.ignore)return!1;a=a.parent}}return!0},t.prototype.contain=function(e,t){return this.rectContain(e,t)},t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.rectContain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect();return r.contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var t=this.transform,n=this.getBoundingRect(),r=this.style,o=r.shadowBlur||0,i=r.shadowOffsetX||0,a=r.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new Fn(0,0,0,0)),t?Fn.applyTransform(e,n,t):e.copy(n),(o||i||a)&&(e.width+=2*o+Math.abs(i),e.height+=2*o+Math.abs(a),e.x=Math.min(e.x,e.x+i-o),e.y=Math.min(e.y,e.y+a-o));var s=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-s),e.y=Math.floor(e.y-s),e.width=Math.ceil(e.width+1+2*s),e.height=Math.ceil(e.height+1+2*s))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new Fn(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate("style",e)},t.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(t,n){"style"!==t?e.prototype.attrKV.call(this,t,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(e,t){return"string"===typeof e?this.style[e]=t:xe(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=pr,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&pr)},t.prototype.styleUpdated=function(){this.__dirty&=~pr},t.prototype.createStyle=function(e){return ht(Hl,e)},t.prototype.useStyle=function(e){e[Wl]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[Wl]},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,n,Gl)},t.prototype._applyStateObj=function(t,n,r,o,i,a){e.prototype._applyStateObj.call(this,t,n,r,o,i,a);var s,l=!(n&&o);if(n&&n.style?i?o?s=n.style:(s=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(s,n.style)):(s=this._mergeStyle(this.createStyle(),o?this.style:r.style),this._mergeStyle(s,n.style)):l&&(s=r.style),s)if(i){var u=this.style;if(this.style=this.createStyle(l?{}:u),l)for(var c=Ee(u),d=0;d<c.length;d++){var h=c[d];h in s&&(s[h]=s[h],this.style[h]=u[h])}var p=Ee(s);for(d=0;d<p.length;d++){h=p[d];this.style[h]=this.style[h]}this._transitionState(t,{style:s},a,this.getAnimationStyleProps())}else this.useStyle(s);var f=this.__inHover?Xl:Gl;for(d=0;d<f.length;d++){h=f[d];n&&null!=n[h]?this[h]=n[h]:l&&null!=r[h]&&(this[h]=r[h])}},t.prototype._mergeStates=function(t){for(var n,r=e.prototype._mergeStates.call(this,t),o=0;o<t.length;o++){var i=t[o];i.style&&(n=n||{},this._mergeStyle(n,i.style))}return n&&(r.style=n),r},t.prototype._mergeStyle=function(e,t){return xe(e,t),e},t.prototype.getAnimationStyleProps=function(){return Zl},t.initDefaultProps=function(){var e=t.prototype;e.type="displayable",e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor="pointer",e.rectHover=!1,e.incremental=!1,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=hr|pr}(),t}($a),Yl=new Fn(0,0,0,0),ql=new Fn(0,0,0,0);function Kl(e,t,n){return Yl.copy(e.getBoundingRect()),e.transform&&Yl.applyTransform(e.transform),ql.width=t,ql.height=n,!Yl.intersect(ql)}var Jl=Ul,eu=(n(57836),n(39109),n(34381),n(9878),n(46801),n(66462),Math.min),tu=Math.max,nu=Math.sin,ru=Math.cos,ou=2*Math.PI,iu=vt(),au=vt(),su=vt();function lu(e,t,n){if(0!==e.length){for(var r=e[0],o=r[0],i=r[0],a=r[1],s=r[1],l=1;l<e.length;l++)r=e[l],o=eu(o,r[0]),i=tu(i,r[0]),a=eu(a,r[1]),s=tu(s,r[1]);t[0]=o,t[1]=a,n[0]=i,n[1]=s}}function uu(e,t,n,r,o,i){o[0]=eu(e,n),o[1]=eu(t,r),i[0]=tu(e,n),i[1]=tu(t,r)}var cu=[],du=[];function hu(e,t,n,r,o,i,a,s,l,u){var c=zr,d=Rr,h=c(e,n,o,a,cu);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var p=0;p<h;p++){var f=d(e,n,o,a,cu[p]);l[0]=eu(f,l[0]),u[0]=tu(f,u[0])}h=c(t,r,i,s,du);for(p=0;p<h;p++){var g=d(t,r,i,s,du[p]);l[1]=eu(g,l[1]),u[1]=tu(g,u[1])}l[0]=eu(e,l[0]),u[0]=tu(e,u[0]),l[0]=eu(a,l[0]),u[0]=tu(a,u[0]),l[1]=eu(t,l[1]),u[1]=tu(t,u[1]),l[1]=eu(s,l[1]),u[1]=tu(s,u[1])}function pu(e,t,n,r,o,i,a,s){var l=Hr,u=Qr,c=tu(eu(l(e,n,o),1),0),d=tu(eu(l(t,r,i),1),0),h=u(e,n,o,c),p=u(t,r,i,d);a[0]=eu(e,o,h),a[1]=eu(t,i,p),s[0]=tu(e,o,h),s[1]=tu(t,i,p)}function fu(e,t,n,r,o,i,a,s,l){var u=Bt,c=jt,d=Math.abs(o-i);if(d%ou<1e-4&&d>1e-4)return s[0]=e-n,s[1]=t-r,l[0]=e+n,void(l[1]=t+r);if(iu[0]=ru(o)*n+e,iu[1]=nu(o)*r+t,au[0]=ru(i)*n+e,au[1]=nu(i)*r+t,u(s,iu,au),c(l,iu,au),o%=ou,o<0&&(o+=ou),i%=ou,i<0&&(i+=ou),o>i&&!a?i+=ou:o<i&&a&&(o+=ou),a){var h=i;i=o,o=h}for(var p=0;p<i;p+=Math.PI/2)p>o&&(su[0]=ru(p)*n+e,su[1]=nu(p)*r+t,u(s,su,s),c(l,su,l))}var gu={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},mu=[],vu=[],yu=[],bu=[],_u=[],xu=[],wu=Math.min,Ou=Math.max,Su=Math.cos,Au=Math.sin,ku=Math.abs,Cu=Math.PI,Mu=2*Cu,Tu="undefined"!==typeof Float32Array,Pu=[];function Iu(e){var t=Math.round(e/Cu*1e8)/1e8;return t%2*Cu}function $u(e,t){var n=Iu(e[0]);n<0&&(n+=Mu);var r=n-e[0],o=e[1];o+=r,!t&&o-n>=Mu?o=n+Mu:t&&n-o>=Mu?o=n-Mu:!t&&n>o?o=n+(Mu-Iu(n-o)):t&&n<o&&(o=n-(Mu-Iu(o-n))),e[0]=n,e[1]=o}var Eu=function(){function e(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(e,t,n){n=n||0,n>0&&(this._ux=ku(n/Xi/e)||0,this._uy=ku(n/Xi/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(gu.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=ku(e-this._xi),r=ku(t-this._yi),o=n>this._ux||r>this._uy;if(this.addData(gu.L,e,t),this._ctx&&o&&this._ctx.lineTo(e,t),o)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var i=n*n+r*r;i>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=i)}return this},e.prototype.bezierCurveTo=function(e,t,n,r,o,i){return this._drawPendingPt(),this.addData(gu.C,e,t,n,r,o,i),this._ctx&&this._ctx.bezierCurveTo(e,t,n,r,o,i),this._xi=o,this._yi=i,this},e.prototype.quadraticCurveTo=function(e,t,n,r){return this._drawPendingPt(),this.addData(gu.Q,e,t,n,r),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,r),this._xi=n,this._yi=r,this},e.prototype.arc=function(e,t,n,r,o,i){this._drawPendingPt(),Pu[0]=r,Pu[1]=o,$u(Pu,i),r=Pu[0],o=Pu[1];var a=o-r;return this.addData(gu.A,e,t,n,n,r,a,0,i?0:1),this._ctx&&this._ctx.arc(e,t,n,r,o,i),this._xi=Su(o)*n+e,this._yi=Au(o)*n+t,this},e.prototype.arcTo=function(e,t,n,r,o){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,r,o),this},e.prototype.rect=function(e,t,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,r),this.addData(gu.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(gu.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||!Tu||(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t},e.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var t=e.length,n=0,r=this._len,o=0;o<t;o++)n+=e[o].len();Tu&&this.data instanceof Float32Array&&(this.data=new Float32Array(r+n));for(o=0;o<t;o++)for(var i=e[o].data,a=0;a<i.length;a++)this.data[r++]=i[a];this._len=r},e.prototype.addData=function(e,t,n,r,o,i,a,s,l){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var c=0;c<arguments.length;c++)u[this._len++]=arguments[c]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(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;t<this._len;t++)e[t]=this.data[t];this.data=e}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,Tu&&this._len>11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){yu[0]=yu[1]=_u[0]=_u[1]=Number.MAX_VALUE,bu[0]=bu[1]=xu[0]=xu[1]=-Number.MAX_VALUE;var e,t=this.data,n=0,r=0,o=0,i=0;for(e=0;e<this._len;){var a=t[e++],s=1===e;switch(s&&(n=t[e],r=t[e+1],o=n,i=r),a){case gu.M:n=o=t[e++],r=i=t[e++],_u[0]=o,_u[1]=i,xu[0]=o,xu[1]=i;break;case gu.L:uu(n,r,t[e],t[e+1],_u,xu),n=t[e++],r=t[e++];break;case gu.C:hu(n,r,t[e++],t[e++],t[e++],t[e++],t[e],t[e+1],_u,xu),n=t[e++],r=t[e++];break;case gu.Q:pu(n,r,t[e++],t[e++],t[e],t[e+1],_u,xu),n=t[e++],r=t[e++];break;case gu.A:var l=t[e++],u=t[e++],c=t[e++],d=t[e++],h=t[e++],p=t[e++]+h;e+=1;var f=!t[e++];s&&(o=Su(h)*c+l,i=Au(h)*d+u),fu(l,u,c,d,h,p,f,_u,xu),n=Su(p)*c+l,r=Au(p)*d+u;break;case gu.R:o=n=t[e++],i=r=t[e++];var g=t[e++],m=t[e++];uu(o,i,o+g,i+m,_u,xu);break;case gu.Z:n=o,r=i;break}Bt(yu,yu,_u),jt(bu,bu,xu)}return 0===e&&(yu[0]=yu[1]=bu[0]=bu[1]=0),new Fn(yu[0],yu[1],bu[0]-yu[0],bu[1]-yu[1])},e.prototype._calculateLength=function(){var e=this.data,t=this._len,n=this._ux,r=this._uy,o=0,i=0,a=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,u=0,c=0,d=0;d<t;){var h=e[d++],p=1===d;p&&(o=e[d],i=e[d+1],a=o,s=i);var f=-1;switch(h){case gu.M:o=a=e[d++],i=s=e[d++];break;case gu.L:var g=e[d++],m=e[d++],v=g-o,y=m-i;(ku(v)>n||ku(y)>r||d===t-1)&&(f=Math.sqrt(v*v+y*y),o=g,i=m);break;case gu.C:var b=e[d++],_=e[d++],x=(g=e[d++],m=e[d++],e[d++]),w=e[d++];f=jr(o,i,b,_,g,m,x,w,10),o=x,i=w;break;case gu.Q:b=e[d++],_=e[d++],g=e[d++],m=e[d++];f=Xr(o,i,b,_,g,m,10),o=g,i=m;break;case gu.A:var O=e[d++],S=e[d++],A=e[d++],k=e[d++],C=e[d++],M=e[d++],T=M+C;d+=1,p&&(a=Su(C)*A+O,s=Au(C)*k+S),f=Ou(A,k)*wu(Mu,Math.abs(M)),o=Su(T)*A+O,i=Au(T)*k+S;break;case gu.R:a=o=e[d++],s=i=e[d++];var P=e[d++],I=e[d++];f=2*P+2*I;break;case gu.Z:v=a-o,y=s-i;f=Math.sqrt(v*v+y*y),o=a,i=s;break}f>=0&&(l[c++]=f,u+=f)}return this._pathLen=u,u},e.prototype.rebuildPath=function(e,t){var n,r,o,i,a,s,l,u,c,d,h,p=this.data,f=this._ux,g=this._uy,m=this._len,v=t<1,y=0,b=0,_=0;if(!v||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=this._pathLen,c=t*u,c))e:for(var x=0;x<m;){var w=p[x++],O=1===x;switch(O&&(o=p[x],i=p[x+1],n=o,r=i),w!==gu.L&&_>0&&(e.lineTo(d,h),_=0),w){case gu.M:n=o=p[x++],r=i=p[x++],e.moveTo(o,i);break;case gu.L:a=p[x++],s=p[x++];var S=ku(a-o),A=ku(s-i);if(S>f||A>g){if(v){var k=l[b++];if(y+k>c){var C=(c-y)/k;e.lineTo(o*(1-C)+a*C,i*(1-C)+s*C);break e}y+=k}e.lineTo(a,s),o=a,i=s,_=0}else{var M=S*S+A*A;M>_&&(d=a,h=s,_=M)}break;case gu.C:var T=p[x++],P=p[x++],I=p[x++],$=p[x++],E=p[x++],D=p[x++];if(v){k=l[b++];if(y+k>c){C=(c-y)/k;Vr(o,T,I,E,C,mu),Vr(i,P,$,D,C,vu),e.bezierCurveTo(mu[1],vu[1],mu[2],vu[2],mu[3],vu[3]);break e}y+=k}e.bezierCurveTo(T,P,I,$,E,D),o=E,i=D;break;case gu.Q:T=p[x++],P=p[x++],I=p[x++],$=p[x++];if(v){k=l[b++];if(y+k>c){C=(c-y)/k;Zr(o,T,I,C,mu),Zr(i,P,$,C,vu),e.quadraticCurveTo(mu[1],vu[1],mu[2],vu[2]);break e}y+=k}e.quadraticCurveTo(T,P,I,$),o=I,i=$;break;case gu.A:var R=p[x++],N=p[x++],L=p[x++],z=p[x++],V=p[x++],B=p[x++],j=p[x++],Q=!p[x++],F=L>z?L:z,W=ku(L-z)>.001,H=V+B,Z=!1;if(v){k=l[b++];y+k>c&&(H=V+B*(c-y)/k,Z=!0),y+=k}if(W&&e.ellipse?e.ellipse(R,N,L,z,j,V,H,Q):e.arc(R,N,F,V,H,Q),Z)break e;O&&(n=Su(V)*L+R,r=Au(V)*z+N),o=Su(H)*L+R,i=Au(H)*z+N;break;case gu.R:n=o=p[x],r=i=p[x+1],a=p[x++],s=p[x++];var G=p[x++],X=p[x++];if(v){k=l[b++];if(y+k>c){var U=c-y;e.moveTo(a,s),e.lineTo(a+wu(U,G),s),U-=G,U>0&&e.lineTo(a+G,s+wu(U,X)),U-=X,U>0&&e.lineTo(a+Ou(G-U,0),s+X),U-=G,U>0&&e.lineTo(a,s+Ou(X-U,0));break e}y+=k}e.rect(a,s,G,X);break;case gu.Z:if(v){k=l[b++];if(y+k>c){C=(c-y)/k;e.lineTo(o*(1-C)+n*C,i*(1-C)+r*C);break e}y+=k}e.closePath(),o=n,i=r}}},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=gu,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}(),Du=Eu;function Ru(e,t,n,r,o,i,a){if(0===o)return!1;var s=o,l=0,u=e;if(a>t+s&&a>r+s||a<t-s&&a<r-s||i>e+s&&i>n+s||i<e-s&&i<n-s)return!1;if(e===n)return Math.abs(i-e)<=s/2;l=(t-r)/(e-n),u=(e*r-n*t)/(e-n);var c=l*i-a+u,d=c*c/(l*l+1);return d<=s/2*s/2}function Nu(e,t,n,r,o,i,a,s,l,u,c){if(0===l)return!1;var d=l;if(c>t+d&&c>r+d&&c>i+d&&c>s+d||c<t-d&&c<r-d&&c<i-d&&c<s-d||u>e+d&&u>n+d&&u>o+d&&u>a+d||u<e-d&&u<n-d&&u<o-d&&u<a-d)return!1;var h=Br(e,t,n,r,o,i,a,s,u,c,null);return h<=d/2}function Lu(e,t,n,r,o,i,a,s,l){if(0===a)return!1;var u=a;if(l>t+u&&l>r+u&&l>i+u||l<t-u&&l<r-u&&l<i-u||s>e+u&&s>n+u&&s>o+u||s<e-u&&s<n-u&&s<o-u)return!1;var c=Gr(e,t,n,r,o,i,s,l,null);return c<=u/2}var zu=2*Math.PI;function Vu(e){return e%=zu,e<0&&(e+=zu),e}var Bu=2*Math.PI;function ju(e,t,n,r,o,i,a,s,l){if(0===a)return!1;var u=a;s-=e,l-=t;var c=Math.sqrt(s*s+l*l);if(c-u>n||c+u<n)return!1;if(Math.abs(r-o)%Bu<1e-4)return!0;if(i){var d=r;r=Vu(o),o=Vu(d)}else r=Vu(r),o=Vu(o);r>o&&(o+=Bu);var h=Math.atan2(l,s);return h<0&&(h+=Bu),h>=r&&h<=o||h+Bu>=r&&h+Bu<=o}function Qu(e,t,n,r,o,i){if(i>t&&i>r||i<t&&i<r)return 0;if(r===t)return 0;var a=(i-t)/(r-t),s=r<t?1:-1;1!==a&&0!==a||(s=r<t?.5:-.5);var l=a*(n-e)+e;return l===o?1/0:l>o?s:0}var Fu=Du.CMD,Wu=2*Math.PI,Hu=1e-4;function Zu(e,t){return Math.abs(e-t)<Hu}var Gu=[-1,-1,-1],Xu=[-1,-1];function Uu(){var e=Xu[0];Xu[0]=Xu[1],Xu[1]=e}function Yu(e,t,n,r,o,i,a,s,l,u){if(u>t&&u>r&&u>i&&u>s||u<t&&u<r&&u<i&&u<s)return 0;var c=Lr(t,r,i,s,u,Gu);if(0===c)return 0;for(var d=0,h=-1,p=void 0,f=void 0,g=0;g<c;g++){var m=Gu[g],v=0===m||1===m?.5:1,y=Rr(e,n,o,a,m);y<l||(h<0&&(h=zr(t,r,i,s,Xu),Xu[1]<Xu[0]&&h>1&&Uu(),p=Rr(t,r,i,s,Xu[0]),h>1&&(f=Rr(t,r,i,s,Xu[1]))),2===h?m<Xu[0]?d+=p<t?v:-v:m<Xu[1]?d+=f<p?v:-v:d+=s<f?v:-v:m<Xu[0]?d+=p<t?v:-v:d+=s<p?v:-v)}return d}function qu(e,t,n,r,o,i,a,s){if(s>t&&s>r&&s>i||s<t&&s<r&&s<i)return 0;var l=Wr(t,r,i,s,Gu);if(0===l)return 0;var u=Hr(t,r,i);if(u>=0&&u<=1){for(var c=0,d=Qr(t,r,i,u),h=0;h<l;h++){var p=0===Gu[h]||1===Gu[h]?.5:1,f=Qr(e,n,o,Gu[h]);f<a||(Gu[h]<u?c+=d<t?p:-p:c+=i<d?p:-p)}return c}p=0===Gu[0]||1===Gu[0]?.5:1,f=Qr(e,n,o,Gu[0]);return f<a?0:i<t?p:-p}function Ku(e,t,n,r,o,i,a,s){if(s-=t,s>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);Gu[0]=-l,Gu[1]=l;var u=Math.abs(r-o);if(u<1e-4)return 0;if(u>=Wu-1e-4){r=0,o=Wu;var c=i?1:-1;return a>=Gu[0]+e&&a<=Gu[1]+e?c:0}if(r>o){var d=r;r=o,o=d}r<0&&(r+=Wu,o+=Wu);for(var h=0,p=0;p<2;p++){var f=Gu[p];if(f+e>a){var g=Math.atan2(s,f);c=i?1:-1;g<0&&(g=Wu+g),(g>=r&&g<=o||g+Wu>=r&&g+Wu<=o)&&(g>Math.PI/2&&g<1.5*Math.PI&&(c=-c),h+=c)}}return h}function Ju(e,t,n,r,o){for(var i,a,s=e.data,l=e.len(),u=0,c=0,d=0,h=0,p=0,f=0;f<l;){var g=s[f++],m=1===f;switch(g===Fu.M&&f>1&&(n||(u+=Qu(c,d,h,p,r,o))),m&&(c=s[f],d=s[f+1],h=c,p=d),g){case Fu.M:h=s[f++],p=s[f++],c=h,d=p;break;case Fu.L:if(n){if(Ru(c,d,s[f],s[f+1],t,r,o))return!0}else u+=Qu(c,d,s[f],s[f+1],r,o)||0;c=s[f++],d=s[f++];break;case Fu.C:if(n){if(Nu(c,d,s[f++],s[f++],s[f++],s[f++],s[f],s[f+1],t,r,o))return!0}else u+=Yu(c,d,s[f++],s[f++],s[f++],s[f++],s[f],s[f+1],r,o)||0;c=s[f++],d=s[f++];break;case Fu.Q:if(n){if(Lu(c,d,s[f++],s[f++],s[f],s[f+1],t,r,o))return!0}else u+=qu(c,d,s[f++],s[f++],s[f],s[f+1],r,o)||0;c=s[f++],d=s[f++];break;case Fu.A:var v=s[f++],y=s[f++],b=s[f++],_=s[f++],x=s[f++],w=s[f++];f+=1;var O=!!(1-s[f++]);i=Math.cos(x)*b+v,a=Math.sin(x)*_+y,m?(h=i,p=a):u+=Qu(c,d,i,a,r,o);var S=(r-v)*_/b+v;if(n){if(ju(v,y,_,x,x+w,O,t,S,o))return!0}else u+=Ku(v,y,_,x,x+w,O,S,o);c=Math.cos(x+w)*b+v,d=Math.sin(x+w)*_+y;break;case Fu.R:h=c=s[f++],p=d=s[f++];var A=s[f++],k=s[f++];if(i=h+A,a=p+k,n){if(Ru(h,p,i,p,t,r,o)||Ru(i,p,i,a,t,r,o)||Ru(i,a,h,a,t,r,o)||Ru(h,a,h,p,t,r,o))return!0}else u+=Qu(i,p,i,a,r,o),u+=Qu(h,a,h,p,r,o);break;case Fu.Z:if(n){if(Ru(c,d,h,p,t,r,o))return!0}else u+=Qu(c,d,h,p,r,o);c=h,d=p;break}}return n||Zu(d,p)||(u+=Qu(c,d,h,p,r,o)||0),0!==u}function ec(e,t,n){return Ju(e,0,!1,t,n)}function tc(e,t,n,r){return Ju(e,t,!0,n,r)}var nc=we({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Hl),rc={style:we({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Zl.style)},oc=sa.concat(["invisible","culling","z","z2","zlevel","parent"]),ic=function(e){function t(t){return e.call(this,t)||this}return Q(t,e),t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var o=this._decalEl=this._decalEl||new t;o.buildPath===t.prototype.buildPath&&(o.buildPath=function(e){n.buildPath(e,n.shape)}),o.silent=!0;var i=o.style;for(var a in r)i[a]!==r[a]&&(i[a]=r[a]);i.fill=r.fill?r.decal:null,i.decal=null,i.shadowColor=null,r.strokeFirst&&(i.stroke=null);for(var s=0;s<oc.length;++s)o[oc[s]]=this[oc[s]];o.__dirty|=hr}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(t){var n=Ee(t);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var o=0;o<n.length;o++){var i=n[o],a=t[i];"style"===i?this.style?xe(this.style,a):this.useStyle(a):"shape"===i?xe(this.shape,a):e.prototype.attrKV.call(this,i,a)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if("none"!==e){if(Ve(e)){var t=To(e,0);return t>.5?Yi:t>.2?Ki:qi}if(e)return qi}return Yi},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(Ve(t)){var n=this.__zr,r=!(!n||!n.isDarkMode()),o=To(e,0)<Ui;if(r===o)return t}},t.prototype.buildPath=function(e,t,n){},t.prototype.pathUpdated=function(){this.__dirty&=~fr},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new Du(!1)},t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return!(null==t||"none"===t||!(e.lineWidth>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 r=!1;this.path||(r=!0,this.createPathProxy());var o=this.path;(r||this.__dirty&fr)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),e=o.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var i=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||n){i.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&&(i.width+=s/a,i.height+=s/a,i.x-=s/a/2,i.y-=s/a/2)}return i}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect(),o=this.style;if(e=n[0],t=n[1],r.contain(e,t)){var i=this.path;if(this.hasStroke()){var a=o.lineWidth,s=o.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),tc(i,a/s,e,t)))return!0}if(this.hasFill())return ec(i,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=fr,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:xe(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&fr)},t.prototype.createStyle=function(e){return ht(nc,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=xe({},this.shape))},t.prototype._applyStateObj=function(t,n,r,o,i,a){e.prototype._applyStateObj.call(this,t,n,r,o,i,a);var s,l=!(n&&o);if(n&&n.shape?i?o?s=n.shape:(s=xe({},r.shape),xe(s,n.shape)):(s=xe({},o?this.shape:r.shape),xe(s,n.shape)):l&&(s=r.shape),s)if(i){this.shape=xe({},this.shape);for(var u={},c=Ee(s),d=0;d<c.length;d++){var h=c[d];"object"===typeof s[h]?this.shape[h]=s[h]:u[h]=s[h]}this._transitionState(t,{shape:u},a)}else this.shape=s,this.dirtyShape()},t.prototype._mergeStates=function(t){for(var n,r=e.prototype._mergeStates.call(this,t),o=0;o<t.length;o++){var i=t[o];i.shape&&(n=n||{},this._mergeStyle(n,i.shape))}return n&&(r.shape=n),r},t.prototype.getAnimationStyleProps=function(){return rc},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(t){function n(n){var r=t.call(this,n)||this;return e.init&&e.init.call(r,n),r}return Q(n,t),n.prototype.getDefaultStyle=function(){return ye(e.style)},n.prototype.getDefaultShape=function(){return ye(e.shape)},n}(t);for(var r in e)"function"===typeof e[r]&&(n.prototype[r]=e[r]);return n},t.initDefaultProps=function(){var e=t.prototype;e.type="path",e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=hr|pr|fr}(),t}(Jl),ac=ic,sc=we({strokeFirst:!0,font:Y,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},nc),lc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Q(t,e),t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return null!=t&&"none"!==t&&e.lineWidth>0},t.prototype.hasFill=function(){var e=this.style,t=e.fill;return null!=t&&"none"!==t},t.prototype.createStyle=function(e){return ht(sc,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=pa(t,e.font,e.textAlign,e.textBaseline);if(n.x+=e.x||0,n.y+=e.y||0,this.hasStroke()){var r=e.lineWidth;n.x-=r/2,n.y-=r/2,n.width+=r,n.height+=r}this._rect=n}return this._rect},t.initDefaultProps=function(){var e=t.prototype;e.dirtyRectTolerance=10}(),t}(Jl);lc.prototype.type="tspan";var uc=lc,cc=we({x:0,y:0},Hl),dc={style:we({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Zl.style)};function hc(e){return!!(e&&"string"!==typeof e&&e.width&&e.height)}var pc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Q(t,e),t.prototype.createStyle=function(e){return ht(cc,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(null!=n)return n;var r=hc(t.image)?t.image:this.__image;if(!r)return 0;var o="width"===e?"height":"width",i=t[o];return null==i?r[e]:r[e]/r[o]*i},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return dc},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new Fn(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(Jl);pc.prototype.type="image";var fc=pc;function gc(e,t){var n,r,o,i,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=r=o=i=d:d instanceof Array?1===d.length?n=r=o=i=d[0]:2===d.length?(n=o=d[0],r=i=d[1]):3===d.length?(n=d[0],r=i=d[1],o=d[2]):(n=d[0],r=d[1],o=d[2],i=d[3]):n=r=o=i=0,n+r>u&&(a=n+r,n*=u/a,r*=u/a),o+i>u&&(a=o+i,o*=u/a,i*=u/a),r+o>c&&(a=r+o,r*=c/a,o*=c/a),n+i>c&&(a=n+i,n*=c/a,i*=c/a),e.moveTo(s+n,l),e.lineTo(s+u-r,l),0!==r&&e.arc(s+u-r,l+r,r,-Math.PI/2,0),e.lineTo(s+u,l+c-o),0!==o&&e.arc(s+u-o,l+c-o,o,0,Math.PI/2),e.lineTo(s+i,l+c),0!==i&&e.arc(s+i,l+c-i,i,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 mc=Math.round;function vc(e,t,n){if(t){var r=t.x1,o=t.x2,i=t.y1,a=t.y2;e.x1=r,e.x2=o,e.y1=i,e.y2=a;var s=n&&n.lineWidth;return s?(mc(2*r)===mc(2*o)&&(e.x1=e.x2=bc(r,s,!0)),mc(2*i)===mc(2*a)&&(e.y1=e.y2=bc(i,s,!0)),e):e}}function yc(e,t,n){if(t){var r=t.x,o=t.y,i=t.width,a=t.height;e.x=r,e.y=o,e.width=i,e.height=a;var s=n&&n.lineWidth;return s?(e.x=bc(r,s,!0),e.y=bc(o,s,!0),e.width=Math.max(bc(r+i,s,!1)-e.x,0===i?0:1),e.height=Math.max(bc(o+a,s,!1)-e.y,0===a?0:1),e):e}}function bc(e,t,n){if(!t)return e;var r=mc(2*e);return(r+mc(t))%2===0?r/2:(r+(n?1:-1))/2}var _c=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),xc={},wc=function(e){function t(t){return e.call(this,t)||this}return Q(t,e),t.prototype.getDefaultShape=function(){return new _c},t.prototype.buildPath=function(e,t){var n,r,o,i;if(this.subPixelOptimize){var a=yc(xc,t,this.style);n=a.x,r=a.y,o=a.width,i=a.height,a.r=t.r,t=a}else n=t.x,r=t.y,o=t.width,i=t.height;t.r?gc(e,t):e.rect(n,r,o,i)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(ac);wc.prototype.type="rect";var Oc=wc,Sc={fill:"#000"},Ac=2,kc={style:we({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},Zl.style)},Cc=function(e){function t(t){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Sc,n.attr(t),n}return Q(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;t<this._children.length;t++){var n=this._children[t];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(t){var n=this.innerTransformable;return n?n.getLocalTransform(t):e.prototype.getLocalTransform.call(this,t)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,Dc(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=t},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new Fn(0,0,0,0),t=this._children,n=[],r=null,o=0;o<t.length;o++){var i=t[o],a=i.getBoundingRect(),s=i.getLocalTransform(n);s?(e.copy(a),e.applyTransform(s),r=r||e.clone(),r.union(e)):(r=r||a.clone(),r.union(a))}this._rect=r||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||Sc},t.prototype.setTextContent=function(e){0},t.prototype._mergeStyle=function(e,t){if(!t)return e;var n=t.rich,r=e.rich||n&&{};return xe(e,t),n&&r?(this._mergeRich(r,n),e.rich=r):r&&(e.rich=r),e},t.prototype._mergeRich=function(e,t){for(var n=Ee(t),r=0;r<n.length;r++){var o=n[r];e[o]=e[o]||{},xe(e[o],t[o])}},t.prototype.getAnimationStyleProps=function(){return kc},t.prototype._getOrCreateChild=function(e){var t=this._children[this._childCursor];return t&&t instanceof e||(t=new e),this._children[this._childCursor++]=t,t.__zr=this.__zr,t.parent=this,t},t.prototype._updatePlainTexts=function(){var e=this.style,t=e.font||Y,n=e.padding,r=Vc(e),o=Dl(r,e),i=Bc(e),a=!!e.backgroundColor,s=o.outerHeight,l=o.outerWidth,u=o.contentWidth,c=o.lines,d=o.lineHeight,h=this._defaultStyle,p=e.x||0,f=e.y||0,g=e.align||h.align||"left",m=e.verticalAlign||h.verticalAlign||"top",v=p,y=ga(f,o.contentHeight,m);if(i||n){var b=fa(p,l,g),_=ga(f,s,m);i&&this._renderBackground(e,e,b,_,l,s)}y+=d/2,n&&(v=zc(p,g,n),"top"===m?y+=n[0]:"bottom"===m&&(y-=n[2]));for(var x=0,w=!1,O=(Lc("fill"in e?e.fill:(w=!0,h.fill))),S=(Nc("stroke"in e?e.stroke:a||h.autoStroke&&!w?null:(x=Ac,h.stroke))),A=e.textShadowBlur>0,k=null!=e.width&&("truncate"===e.overflow||"break"===e.overflow||"breakAll"===e.overflow),C=o.calculatedLineHeight,M=0;M<c.length;M++){var T=this._getOrCreateChild(uc),P=T.createStyle();T.useStyle(P),P.text=c[M],P.x=v,P.y=y,g&&(P.textAlign=g),P.textBaseline="middle",P.opacity=e.opacity,P.strokeFirst=!0,A&&(P.shadowBlur=e.textShadowBlur||0,P.shadowColor=e.textShadowColor||"transparent",P.shadowOffsetX=e.textShadowOffsetX||0,P.shadowOffsetY=e.textShadowOffsetY||0),P.stroke=S,P.fill=O,S&&(P.lineWidth=e.lineWidth||x,P.lineDash=e.lineDash,P.lineDashOffset=e.lineDashOffset||0),P.font=t,$c(P,e),y+=d,k&&T.setBoundingRect(new Fn(fa(P.x,e.width,P.textAlign),ga(P.y,C,P.textBaseline),u,C))}},t.prototype._updateRichTexts=function(){var e=this.style,t=Vc(e),n=zl(t,e),r=n.width,o=n.outerWidth,i=n.outerHeight,a=e.padding,s=e.x||0,l=e.y||0,u=this._defaultStyle,c=e.align||u.align,d=e.verticalAlign||u.verticalAlign,h=fa(s,o,c),p=ga(l,i,d),f=h,g=p;a&&(f+=a[3],g+=a[0]);var m=f+r;Bc(e)&&this._renderBackground(e,e,h,p,o,i);for(var v=!!e.backgroundColor,y=0;y<n.lines.length;y++){var b=n.lines[y],_=b.tokens,x=_.length,w=b.lineHeight,O=b.width,S=0,A=f,k=m,C=x-1,M=void 0;while(S<x&&(M=_[S],!M.align||"left"===M.align))this._placeToken(M,e,w,g,A,"left",v),O-=M.width,A+=M.width,S++;while(C>=0&&(M=_[C],"right"===M.align))this._placeToken(M,e,w,g,k,"right",v),O-=M.width,k-=M.width,C--;A+=(r-(A-f)-(m-k)-O)/2;while(S<=C)M=_[S],this._placeToken(M,e,w,g,A+M.width/2,"center",v),A+=M.width,S++;g+=w}},t.prototype._placeToken=function(e,t,n,r,o,i,a){var s=t.rich[e.styleName]||{};s.text=e.text;var l=e.verticalAlign,u=r+n/2;"top"===l?u=r+e.height/2:"bottom"===l&&(u=r+n-e.height/2);var c=!e.isLineHolder&&Bc(s);c&&this._renderBackground(s,t,"right"===i?o-e.width:"center"===i?o-e.width/2:o,u-e.height/2,e.width,e.height);var d=!!s.backgroundColor,h=e.textPadding;h&&(o=zc(o,i,h),u-=e.height/2-h[0]-e.innerHeight/2);var p=this._getOrCreateChild(uc),f=p.createStyle();p.useStyle(f);var g=this._defaultStyle,m=!1,v=0,y=Lc("fill"in s?s.fill:"fill"in t?t.fill:(m=!0,g.fill)),b=Nc("stroke"in s?s.stroke:"stroke"in t?t.stroke:d||a||g.autoStroke&&!m?null:(v=Ac,g.stroke)),_=s.textShadowBlur>0||t.textShadowBlur>0;f.text=e.text,f.x=o,f.y=u,_&&(f.shadowBlur=s.textShadowBlur||t.textShadowBlur||0,f.shadowColor=s.textShadowColor||t.textShadowColor||"transparent",f.shadowOffsetX=s.textShadowOffsetX||t.textShadowOffsetX||0,f.shadowOffsetY=s.textShadowOffsetY||t.textShadowOffsetY||0),f.textAlign=i,f.textBaseline="middle",f.font=e.font||Y,f.opacity=Ke(s.opacity,t.opacity,1),$c(f,s),b&&(f.lineWidth=Ke(s.lineWidth,t.lineWidth,v),f.lineDash=qe(s.lineDash,t.lineDash),f.lineDashOffset=t.lineDashOffset||0,f.stroke=b),y&&(f.fill=y);var x=e.contentWidth,w=e.contentHeight;p.setBoundingRect(new Fn(fa(f.x,x,f.textAlign),ga(f.y,w,f.textBaseline),x,w))},t.prototype._renderBackground=function(e,t,n,r,o,i){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(Oc),a.useStyle(a.createStyle()),a.style.fill=null;var g=a.shape;g.x=n,g.y=r,g.width=o,g.height=i,g.r=p,a.dirtyShape()}if(h){var m=a.style;m.fill=l||null,m.fillOpacity=qe(e.fillOpacity,1)}else if(d){s=this._getOrCreateChild(fc),s.onload=function(){f.dirtyStyle()};var v=s.style;v.image=l.image,v.x=n,v.y=r,v.width=o,v.height=i}if(u&&c){m=a.style;m.lineWidth=u,m.stroke=c,m.strokeOpacity=qe(e.strokeOpacity,1),m.lineDash=e.borderDash,m.lineDashOffset=e.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(m.strokeFirst=!0,m.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=Ke(e.opacity,t.opacity,1)},t.makeFont=function(e){var t="";return Ec(e)&&(t=[e.fontStyle,e.fontWeight,Ic(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),t&&nt(t)||e.textFont||e.font},t}(Jl),Mc={left:!0,right:1,center:1},Tc={top:1,bottom:1,middle:1},Pc=["fontStyle","fontWeight","fontSize","fontFamily"];function Ic(e){return"string"!==typeof e||-1===e.indexOf("px")&&-1===e.indexOf("rem")&&-1===e.indexOf("em")?isNaN(+e)?X+"px":e+"px":e}function $c(e,t){for(var n=0;n<Pc.length;n++){var r=Pc[n],o=t[r];null!=o&&(e[r]=o)}}function Ec(e){return null!=e.fontSize||e.fontFamily||e.fontWeight}function Dc(e){return Rc(e),Me(e.rich,Rc),e}function Rc(e){if(e){e.font=Cc.makeFont(e);var t=e.align;"middle"===t&&(t="center"),e.align=null==t||Mc[t]?t:"left";var n=e.verticalAlign;"center"===n&&(n="middle"),e.verticalAlign=null==n||Tc[n]?n:"top";var r=e.padding;r&&(e.padding=et(e.padding))}}function Nc(e,t){return null==e||t<=0||"transparent"===e||"none"===e?null:e.image||e.colorStops?"#000":e}function Lc(e){return null==e||"none"===e?null:e.image||e.colorStops?"#000":e}function zc(e,t,n){return"right"===t?e-n[1]:"center"===t?e+n[3]/2-n[1]/2:e+n[3]}function Vc(e){var t=e.text;return null!=t&&(t+=""),t}function Bc(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var jc=Cc,Qc=Xs(),Fc=function(e,t,n,r){if(r){var o=Qc(r);o.dataIndex=n,o.dataType=t,o.seriesIndex=e,o.ssrType="chart","group"===r.type&&r.traverse((function(r){var o=Qc(r);o.seriesIndex=e,o.dataIndex=n,o.dataType=t,o.ssrType="chart"}))}},Wc=1,Hc={},Zc=Xs(),Gc=Xs(),Xc=0,Uc=1,Yc=2,qc=["emphasis","blur","select"],Kc=["normal","emphasis","blur","select"],Jc=10,ed=9,td="highlight",nd="downplay",rd="select",od="unselect",id="toggleSelect";function ad(e){return null!=e&&"none"!==e}function sd(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function ld(e){sd(e,"emphasis",Yc)}function ud(e){e.hoverState===Yc&&sd(e,"normal",Xc)}function cd(e){sd(e,"blur",Uc)}function dd(e){e.hoverState===Uc&&sd(e,"normal",Xc)}function hd(e){e.selected=!0}function pd(e){e.selected=!1}function fd(e,t,n){t(e,n)}function gd(e,t,n){fd(e,t,n),e.isGroup&&e.traverse((function(e){fd(e,t,n)}))}function md(e,t){switch(t){case"emphasis":e.hoverState=Yc;break;case"normal":e.hoverState=Xc;break;case"blur":e.hoverState=Uc;break;case"select":e.selected=!0}}function vd(e,t,n,r){for(var o=e.style,i={},a=0;a<t.length;a++){var s=t[a],l=o[s];i[s]=null==l?r&&r[s]:l}for(a=0;a<e.animators.length;a++){var u=e.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&"style"===u.targetName&&u.saveTo(i,t)}return i}function yd(e,t,n,r){var o=n&&Se(n,"select")>=0,i=!1;if(e instanceof ac){var a=Zc(e),s=o&&a.selectFill||a.normalFill,l=o&&a.selectStroke||a.normalStroke;if(ad(s)||ad(l)){r=r||{};var u=r.style||{};"inherit"===u.fill?(i=!0,r=xe({},r),u=xe({},u),u.fill=s):!ad(u.fill)&&ad(s)?(i=!0,r=xe({},r),u=xe({},u),u.fill=$o(s)):!ad(u.stroke)&&ad(l)&&(i||(r=xe({},r),u=xe({},u)),u.stroke=$o(l)),r.style=u}}if(r&&null==r.z2){i||(r=xe({},r));var c=e.z2EmphasisLift;r.z2=e.z2+(null!=c?c:Jc)}return r}function bd(e,t,n){if(n&&null==n.z2){n=xe({},n);var r=e.z2SelectLift;n.z2=e.z2+(null!=r?r:ed)}return n}function _d(e,t,n){var r=Se(e.currentStates,t)>=0,o=e.style.opacity,i=r?null:vd(e,["opacity"],t,{opacity:1});n=n||{};var a=n.style||{};return null==a.opacity&&(n=xe({},n),a=xe({opacity:r?o:.1*i.opacity},a),n.style=a),n}function xd(e,t){var n=this.states[e];if(this.style){if("emphasis"===e)return yd(this,e,t,n);if("blur"===e)return _d(this,e,n);if("select"===e)return bd(this,e,n)}return n}function wd(e){e.stateProxy=xd;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=xd),n&&(n.stateProxy=xd)}function Od(e,t){!Id(e,t)&&!e.__highByOuter&&gd(e,ld)}function Sd(e,t){!Id(e,t)&&!e.__highByOuter&&gd(e,ud)}function Ad(e,t){e.__highByOuter|=1<<(t||0),gd(e,ld)}function kd(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&gd(e,ud)}function Cd(e){gd(e,cd)}function Md(e){gd(e,dd)}function Td(e){gd(e,hd)}function Pd(e){gd(e,pd)}function Id(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function $d(e){var t=e.getModel(),n=[],r=[];t.eachComponent((function(t,o){var i=Gc(o),a="series"===t,s=a?e.getViewOfSeriesModel(o):e.getViewOfComponentModel(o);!a&&r.push(s),i.isBlured&&(s.group.traverse((function(e){dd(e)})),a&&n.push(o)),i.isBlured=!1})),Me(r,(function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)}))}function Ed(e,t,n,r){var o=r.getModel();function i(e,t){for(var n=0;n<t.length;n++){var r=e.getItemGraphicEl(t[n]);r&&Md(r)}}if(n=n||"coordinateSystem",null!=e&&t&&"none"!==t){var a=o.getSeriesByIndex(e),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];o.eachSeries((function(e){var o=a===e,u=e.coordinateSystem;u&&u.master&&(u=u.master);var c=u&&s?u===s:o;if(!("series"===n&&!o||"coordinateSystem"===n&&!c||"series"===t&&o)){var d=r.getViewOfSeriesModel(e);if(d.group.traverse((function(e){e.__highByOuter&&o&&"self"===t||cd(e)})),Ce(t))i(e.getData(),t);else if(Qe(t))for(var h=Ee(t),p=0;p<h.length;p++)i(e.getData(h[p]),t[h[p]]);l.push(e),Gc(e).isBlured=!0}})),o.eachComponent((function(e,t){if("series"!==e){var n=r.getViewOfComponentModel(t);n&&n.toggleBlurSeries&&n.toggleBlurSeries(l,!0,o)}}))}}function Dd(e,t,n){if(null!=e&&null!=t){var r=n.getModel().getComponent(e,t);if(r){Gc(r).isBlured=!0;var o=n.getViewOfComponentModel(r);o&&o.focusBlurEnabled&&o.group.traverse((function(e){cd(e)}))}}}function Rd(e,t,n){var r=e.seriesIndex,o=e.getData(t.dataType);if(o){var i=Gs(o,t);i=(Le(i)?i[0]:i)||0;var a=o.getItemGraphicEl(i);if(!a){var s=o.count(),l=0;while(!a&&l<s)a=o.getItemGraphicEl(l++)}if(a){var u=Qc(a);Ed(r,u.focus,u.blurScope,n)}else{var c=e.get(["emphasis","focus"]),d=e.get(["emphasis","blurScope"]);null!=c&&Ed(r,c,d,n)}}}function Nd(e,t,n,r){var o={focusSelf:!1,dispatchers:null};if(null==e||"series"===e||null==t||null==n)return o;var i=r.getModel().getComponent(e,t);if(!i)return o;var a=r.getViewOfComponentModel(i);if(!a||!a.findHighDownDispatchers)return o;for(var s,l=a.findHighDownDispatchers(n),u=0;u<l.length;u++)if("self"===Qc(l[u]).focus){s=!0;break}return{focusSelf:s,dispatchers:l}}function Ld(e,t,n){var r=Qc(e),o=Nd(r.componentMainType,r.componentIndex,r.componentHighDownName,n),i=o.dispatchers,a=o.focusSelf;i?(a&&Dd(r.componentMainType,r.componentIndex,n),Me(i,(function(e){return Od(e,t)}))):(Ed(r.seriesIndex,r.focus,r.blurScope,n),"self"===r.focus&&Dd(r.componentMainType,r.componentIndex,n),Od(e,t))}function zd(e,t,n){$d(n);var r=Qc(e),o=Nd(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;o?Me(o,(function(e){return Sd(e,t)})):Sd(e,t)}function Vd(e,t,n){if(Jd(t)){var r=t.dataType,o=e.getData(r),i=Gs(o,t);Le(i)||(i=[i]),e[t.type===id?"toggleSelect":t.type===rd?"select":"unselect"](i,r)}}function Bd(e){var t=e.getAllData();Me(t,(function(t){var n=t.data,r=t.type;n.eachItemGraphicEl((function(t,n){e.isSelected(n,r)?Td(t):Pd(t)}))}))}function jd(e){var t=[];return e.eachSeries((function(e){var n=e.getAllData();Me(n,(function(n){n.data;var r=n.type,o=e.getSelectedDataIndices();if(o.length>0){var i={dataIndex:o,seriesIndex:e.seriesIndex};null!=r&&(i.dataType=r),t.push(i)}}))})),t}function Qd(e,t,n){Ud(e,!0),gd(e,wd),Hd(e,t,n)}function Fd(e){Ud(e,!1)}function Wd(e,t,n,r){r?Fd(e):Qd(e,t,n)}function Hd(e,t,n){var r=Qc(e);null!=t?(r.focus=t,r.blurScope=n):r.focus&&(r.focus=null)}var Zd=["emphasis","blur","select"],Gd={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Xd(e,t,n,r){n=n||"itemStyle";for(var o=0;o<Zd.length;o++){var i=Zd[o],a=t.getModel([i,n]),s=e.ensureState(i);s.style=r?r(a):a[Gd[n]]()}}function Ud(e,t){var n=!1===t,r=e;e.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=e.highDownSilentOnTouch),n&&!r.__highDownDispatcher||(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function Yd(e){return!(!e||!e.__highDownDispatcher)}function qd(e,t,n){var r=Qc(e);r.componentMainType=t.mainType,r.componentIndex=t.componentIndex,r.componentHighDownName=n}function Kd(e){var t=Hc[e];return null==t&&Wc<=32&&(t=Hc[e]=Wc++),t}function Jd(e){var t=e.type;return t===rd||t===od||t===id}function eh(e){var t=e.type;return t===td||t===nd}function th(e){var t=Zc(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var n=e.states.select||{};t.selectFill=n.style&&n.style.fill||null,t.selectStroke=n.style&&n.style.stroke||null}var nh=Xs();function rh(e,t,n,r,o){var i;if(t&&t.ecModel){var a=t.ecModel.getUpdatePayload();i=a&&a.animation}var s=t&&t.isAnimationEnabled(),l="update"===e;if(s){var u=void 0,c=void 0,d=void 0;r?(u=qe(r.duration,200),c=qe(r.easing,"cubicOut"),d=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),c=t.getShallow(l?"animationEasingUpdate":"animationEasing"),d=t.getShallow(l?"animationDelayUpdate":"animationDelay")),i&&(null!=i.duration&&(u=i.duration),null!=i.easing&&(c=i.easing),null!=i.delay&&(d=i.delay)),ze(d)&&(d=d(n,o)),ze(u)&&(u=u(n));var h={duration:u||0,delay:d,easing:c};return h}return null}function oh(e,t,n,r,o,i,a){var s,l=!1;ze(o)?(a=i,i=o,o=null):Qe(o)&&(i=o.cb,a=o.during,l=o.isFrom,s=o.removeOpt,o=o.dataIndex);var u="leave"===e;u||t.stopAnimation("leave");var c=rh(e,r,o,u?s||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(t,o):null);if(c&&c.duration>0){var d=c.duration,h=c.delay,p=c.easing,f={duration:d,delay:h||0,easing:p,done:i,force:!!i||!!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),i&&i()}function ih(e,t,n,r,o,i){oh("update",e,t,n,r,o,i)}function ah(e,t,n,r,o,i){oh("enter",e,t,n,r,o,i)}function sh(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){var n=e.animators[t];if("leave"===n.scope)return!0}return!1}function lh(e,t,n,r,o,i){sh(e)||oh("leave",e,t,n,r,o,i)}function uh(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),lh(e,{style:{opacity:0}},t,n,r)}function ch(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse((function(e){e.isGroup||uh(e,t,n,r)})):uh(e,t,n,r)}function dh(e){nh(e).oldStyle=e.style}function hh(e){return nh(e).oldStyle}var ph={};function fh(e,t){for(var n=0;n<qc.length;n++){var r=qc[n],o=t[r],i=e.ensureState(r);i.style=i.style||{},i.style.text=o}var a=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(a,!0)}function gh(e,t,n){var r,o=e.labelFetcher,i=e.labelDataIndex,a=e.labelDimIndex,s=t.normal;o&&(r=o.getFormattedLabel(i,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==r&&(r=ze(e.defaultText)?e.defaultText(i,e,n):e.defaultText);for(var l={normal:r},u=0;u<qc.length;u++){var c=qc[u],d=t[c];l[c]=qe(o?o.getFormattedLabel(i,c,null,a,d&&d.get("formatter")):null,r)}return l}function mh(e,t,n,r){n=n||ph;for(var o=e instanceof jc,i=!1,a=0;a<Kc.length;a++){var s=t[Kc[a]];if(s&&s.getShallow("show")){i=!0;break}}var l=o?e:e.getTextContent();if(i){o||(l||(l=new jc,e.setTextContent(l)),e.stateProxy&&(l.stateProxy=e.stateProxy));var u=gh(n,t),c=t.normal,d=!!c.getShallow("show"),h=yh(c,r&&r.normal,n,!1,!o);h.text=u.normal,o||e.setTextConfig(bh(c,n,!1));for(a=0;a<qc.length;a++){var p=qc[a];s=t[p];if(s){var f=l.ensureState(p),g=!!qe(s.getShallow("show"),d);if(g!==d&&(f.ignore=!g),f.style=yh(s,r&&r[p],n,!0,!o),f.style.text=u[p],!o){var m=e.ensureState(p);m.textConfig=bh(s,n,!0)}}}l.silent=!!c.getShallow("silent"),null!=l.style.x&&(h.x=l.style.x),null!=l.style.y&&(h.y=l.style.y),l.ignore=!d,l.useStyle(h),l.dirty(),n.enableTextSetter&&(Ch(l).setLabelText=function(e){var r=gh(n,t,e);fh(l,r)})}else l&&(l.ignore=!0);e.dirty()}function vh(e,t){t=t||"label";for(var n={normal:e.getModel(t)},r=0;r<qc.length;r++){var o=qc[r];n[o]=e.getModel([o,t])}return n}function yh(e,t,n,r,o){var i={};return _h(i,e,n,r,o),t&&xe(i,t),i}function bh(e,t,n){t=t||{};var r,o={},i=e.getShallow("rotate"),a=qe(e.getShallow("distance"),n?null:5),s=e.getShallow("offset");return r=e.getShallow("position")||(n?null:"inside"),"outside"===r&&(r=t.defaultOutsidePosition||"top"),null!=r&&(o.position=r),null!=s&&(o.offset=s),null!=i&&(i*=Math.PI/180,o.rotation=i),null!=a&&(o.distance=a),o.outsideFill="inherit"===e.get("color")?t.inheritColor||null:"auto",o}function _h(e,t,n,r,o){n=n||ph;var i,a=t.ecModel,s=a&&a.option.textStyle,l=xh(t);if(l)for(var u in i={},l)if(l.hasOwnProperty(u)){var c=t.getModel(["rich",u]);Ah(i[u]={},c,s,n,r,o,!1,!0)}i&&(e.rich=i);var d=t.get("overflow");d&&(e.overflow=d);var h=t.get("minMargin");null!=h&&(e.margin=h),Ah(e,t,s,n,r,o,!0,!1)}function xh(e){var t;while(e&&e!==e.ecModel){var n=(e.option||ph).rich;if(n){t=t||{};for(var r=Ee(n),o=0;o<r.length;o++){var i=r[o];t[i]=1}}e=e.parentModel}return t}var wh=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Oh=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],Sh=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Ah(e,t,n,r,o,i,a,s){n=!o&&n||ph;var l=r&&r.inheritColor,u=t.getShallow("color"),c=t.getShallow("textBorderColor"),d=qe(t.getShallow("opacity"),n.opacity);"inherit"!==u&&"auto"!==u||(u=l||null),"inherit"!==c&&"auto"!==c||(c=l||null),i||(u=u||n.color,c=c||n.textBorderColor),null!=u&&(e.fill=u),null!=c&&(e.stroke=c);var h=qe(t.getShallow("textBorderWidth"),n.textBorderWidth);null!=h&&(e.lineWidth=h);var p=qe(t.getShallow("textBorderType"),n.textBorderType);null!=p&&(e.lineDash=p);var f=qe(t.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=f&&(e.lineDashOffset=f),o||null!=d||s||(d=r&&r.defaultOpacity),null!=d&&(e.opacity=d),o||i||null==e.fill&&r.inheritColor&&(e.fill=r.inheritColor);for(var g=0;g<wh.length;g++){var m=wh[g],v=qe(t.getShallow(m),n[m]);null!=v&&(e[m]=v)}for(g=0;g<Oh.length;g++){m=Oh[g],v=t.getShallow(m);null!=v&&(e[m]=v)}if(null==e.verticalAlign){var y=t.getShallow("baseline");null!=y&&(e.verticalAlign=y)}if(!a||!r.disableBox){for(g=0;g<Sh.length;g++){m=Sh[g],v=t.getShallow(m);null!=v&&(e[m]=v)}var b=t.getShallow("borderType");null!=b&&(e.borderDash=b),"auto"!==e.backgroundColor&&"inherit"!==e.backgroundColor||!l||(e.backgroundColor=l),"auto"!==e.borderColor&&"inherit"!==e.borderColor||!l||(e.borderColor=l)}}function kh(e,t){var n=t&&t.getModel("textStyle");return nt([e.fontStyle||n&&n.getShallow("fontStyle")||"",e.fontWeight||n&&n.getShallow("fontWeight")||"",(e.fontSize||n&&n.getShallow("fontSize")||12)+"px",e.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}var Ch=Xs();function Mh(e,t,n,r){if(e){var o=Ch(e);o.prevValue=o.value,o.value=n;var i=t.normal;o.valueAnimation=i.get("valueAnimation"),o.valueAnimation&&(o.precision=i.get("precision"),o.defaultInterpolatedText=r,o.statesModels=t)}}function Th(e,t,n,r,o){var i=Ch(e);if(i.valueAnimation&&i.prevValue!==i.value){var a=i.defaultInterpolatedText,s=qe(i.interpolatedValue,i.prevValue),l=i.value;e.percent=0,(null==i.prevValue?ah:ih)(e,{percent:1},r,t,null,u)}function u(r){var u=il(n,i.precision,s,l,r);i.interpolatedValue=1===r?null:u;var c=gh({labelDataIndex:t,labelFetcher:o,defaultText:a?a(u):u+""},i.statesModels,u);fh(e,c)}}var Ph=["textStyle","color"],Ih=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],$h=new jc,Eh=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(Ph):null)},e.prototype.getFont=function(){return kh({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<Ih.length;n++)t[Ih[n]]=this.getShallow(Ih[n]);return $h.useStyle(t),$h.update(),$h.getBoundingRect()},e}(),Dh=Eh,Rh=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Nh=_l(Rh),Lh=function(){function e(){}return e.prototype.getLineStyle=function(e){return Nh(this,e)},e}(),zh=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Vh=_l(zh),Bh=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return Vh(this,e,t)},e}(),jh=function(){function e(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return e.prototype.init=function(e,t,n){for(var r=[],o=3;o<arguments.length;o++)r[o-3]=arguments[o]},e.prototype.mergeOption=function(e,t){be(this.option,e,!0)},e.prototype.get=function(e,t){return null==e?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},e.prototype.getShallow=function(e,t){var n=this.option,r=null==n?n:n[e];if(null==r&&!t){var o=this.parentModel;o&&(r=o.getShallow(e))}return r},e.prototype.getModel=function(t,n){var r=null!=t,o=r?this.parsePath(t):null,i=r?this._doGet(o):this.option;return n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(o)),new e(i,n,this.ecModel)},e.prototype.isEmpty=function(){return null==this.option},e.prototype.restoreData=function(){},e.prototype.clone=function(){var e=this.constructor;return new e(ye(this.option))},e.prototype.parsePath=function(e){return"string"===typeof e?e.split("."):e},e.prototype.resolveParentPath=function(e){return e},e.prototype.isAnimationEnabled=function(){if(!G.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(e,t){var n=this.option;if(!e)return n;for(var r=0;r<e.length;r++)if(e[r]&&(n=n&&"object"===typeof n?n[e[r]]:null,null==n))break;return null==n&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},e}();hl(jh),ml(jh),ke(jh,Lh),ke(jh,Bh),ke(jh,Ol),ke(jh,Dh);var Qh=jh,Fh=Math.round(10*Math.random());function Wh(e){return[e||"",Fh++].join("_")}function Hh(e){var t={};e.registerSubTypeDefaulter=function(e,n){var r=ul(e);t[r.main]=n},e.determineSubType=function(n,r){var o=r.type;if(!o){var i=ul(n).main;e.hasSubTypes(n)&&t[i]&&(o=t[i](r))}return o}}function Zh(e,t){function n(e){var n={},i=[];return Me(e,(function(a){var s=r(n,a),l=s.originalDeps=t(a),u=o(l,e);s.entryCount=u.length,0===s.entryCount&&i.push(a),Me(u,(function(e){Se(s.predecessor,e)<0&&s.predecessor.push(e);var t=r(n,e);Se(t.successor,e)<0&&t.successor.push(a)}))})),{graph:n,noEntryList:i}}function r(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}function o(e,t){var n=[];return Me(e,(function(e){Se(t,e)>=0&&n.push(e)})),n}e.topologicalTravel=function(e,t,r,o){if(e.length){var i=n(t),a=i.graph,s=i.noEntryList,l={};Me(e,(function(e){l[e]=!0}));while(s.length){var u=s.pop(),c=a[u],d=!!l[u];d&&(r.call(o,u,c.originalDeps.slice()),delete l[u]),Me(c.successor,d?p:h)}Me(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 Gh(e,t){return be(be({},e,!0),t,!0)}var Xh={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},Uh={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}},Yh="ZH",qh="EN",Kh=qh,Jh={},ep={},tp=G.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Kh).toUpperCase();return e.indexOf(Yh)>-1?Yh:Kh}():Kh;function np(e,t){e=e.toUpperCase(),ep[e]=new Qh(t),Jh[e]=t}function rp(e){if(Ve(e)){var t=Jh[e.toUpperCase()]||{};return e===Yh||e===qh?ye(t):be(ye(t),ye(Jh[Kh]),!1)}return be(ye(e),ye(Jh[Kh]),!1)}function op(e){return ep[e]}function ip(){return ep[Kh]}np(qh,Xh),np(Yh,Uh);var ap=1e3,sp=60*ap,lp=60*sp,up=24*lp,cp=365*up,dp={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}"},hp="{yyyy}-{MM}-{dd}",pp={year:"{yyyy}",month:"{yyyy}-{MM}",day:hp,hour:hp+" "+dp.hour,minute:hp+" "+dp.minute,second:hp+" "+dp.second,millisecond:dp.none},fp=["year","month","day","hour","minute","second","millisecond"],gp=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function mp(e,t){return e+="","0000".substr(0,t-e.length)+e}function vp(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 yp(e){return e===vp(e)}function bp(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function _p(e,t,n,r){var o=hs(e),i=o[Sp(n)](),a=o[Ap(n)]()+1,s=Math.floor((a-1)/3)+1,l=o[kp(n)](),u=o["get"+(n?"UTC":"")+"Day"](),c=o[Cp(n)](),d=(c-1)%12+1,h=o[Mp(n)](),p=o[Tp(n)](),f=o[Pp(n)](),g=c>=12?"pm":"am",m=g.toUpperCase(),v=r instanceof Qh?r:op(r||tp)||ip(),y=v.getModel("time"),b=y.get("month"),_=y.get("monthAbbr"),x=y.get("dayOfWeek"),w=y.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,g+"").replace(/{A}/g,m+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,mp(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,b[a-1]).replace(/{MMM}/g,_[a-1]).replace(/{MM}/g,mp(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,mp(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,w[u]).replace(/{e}/g,u+"").replace(/{HH}/g,mp(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,mp(d+"",2)).replace(/{h}/g,d+"").replace(/{mm}/g,mp(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,mp(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,mp(f,3)).replace(/{S}/g,f+"")}function xp(e,t,n,r,o){var i=null;if(Ve(n))i=n;else if(ze(n))i=n(e.value,t,{level:e.level});else{var a=xe({},dp);if(e.level>0)for(var s=0;s<fp.length;++s)a[fp[s]]="{primary|"+a[fp[s]]+"}";var l=n?!1===n.inherit?n:we(n,a):a,u=wp(e.value,o);if(l[u])i=l[u];else if(l.inherit){var c=gp.indexOf(u);for(s=c-1;s>=0;--s)if(l[u]){i=l[u];break}i=i||a.none}if(Le(i)){var d=null==e.level?0:e.level>=0?e.level:i.length+e.level;d=Math.min(d,i.length-1),i=i[d]}}return _p(new Date(e.value),i,o,r)}function wp(e,t){var n=hs(e),r=n[Ap(t)]()+1,o=n[kp(t)](),i=n[Cp(t)](),a=n[Mp(t)](),s=n[Tp(t)](),l=n[Pp(t)](),u=0===l,c=u&&0===s,d=c&&0===a,h=d&&0===i,p=h&&1===o,f=p&&1===r;return f?"year":p?"month":h?"day":d?"hour":c?"minute":u?"second":"millisecond"}function Op(e,t,n){var r=je(e)?hs(e):e;switch(t=t||wp(e,n),t){case"year":return r[Sp(n)]();case"half-year":return r[Ap(n)]()>=6?1:0;case"quarter":return Math.floor((r[Ap(n)]()+1)/4);case"month":return r[Ap(n)]();case"day":return r[kp(n)]();case"half-day":return r[Cp(n)]()/24;case"hour":return r[Cp(n)]();case"minute":return r[Mp(n)]();case"second":return r[Tp(n)]();case"millisecond":return r[Pp(n)]()}}function Sp(e){return e?"getUTCFullYear":"getFullYear"}function Ap(e){return e?"getUTCMonth":"getMonth"}function kp(e){return e?"getUTCDate":"getDate"}function Cp(e){return e?"getUTCHours":"getHours"}function Mp(e){return e?"getUTCMinutes":"getMinutes"}function Tp(e){return e?"getUTCSeconds":"getSeconds"}function Pp(e){return e?"getUTCMilliseconds":"getMilliseconds"}function Ip(e){return e?"setUTCFullYear":"setFullYear"}function $p(e){return e?"setUTCMonth":"setMonth"}function Ep(e){return e?"setUTCDate":"setDate"}function Dp(e){return e?"setUTCHours":"setHours"}function Rp(e){return e?"setUTCMinutes":"setMinutes"}function Np(e){return e?"setUTCSeconds":"setSeconds"}function Lp(e){return e?"setUTCMilliseconds":"setMilliseconds"}function zp(e){if(!bs(e))return Ve(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function Vp(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 Bp=et;function jp(e,t,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function o(e){return e&&nt(e)?e:"-"}function i(e){return!(null==e||isNaN(e)||!isFinite(e))}var a="time"===t,s=e instanceof Date;if(a||s){var l=a?hs(e):e;if(!isNaN(+l))return _p(l,r,n);if(s)return"-"}if("ordinal"===t)return Be(e)?o(e):je(e)&&i(e)?e+"":"-";var u=ys(e);return i(u)?zp(u):Be(e)?o(e):"boolean"===typeof e?e+"":"-"}var Qp=["a","b","c","d","e","f","g"],Fp=function(e,t){return"{"+e+(null==t?"":t)+"}"};function Wp(e,t,n){Le(t)||(t=[t]);var r=t.length;if(!r)return"";for(var o=t[0].$vars||[],i=0;i<o.length;i++){var a=Qp[i];e=e.replace(Fp(a),Fp(a,0))}for(var s=0;s<r;s++)for(var l=0;l<o.length;l++){var u=t[s][o[l]];e=e.replace(Fp(Qp[l],s),n?an(u):u)}return e}function Hp(e,t,n){return Me(t,(function(t,r){e=e.replace("{"+r+"}",n?an(t):t)})),e}function Zp(e,t){var n=Ve(e)?{color:e,extraCssText:t}:e||{},r=n.color,o=n.type;t=n.extraCssText;var i=n.renderMode||"html";if(!r)return"";if("html"===i)return"subItem"===o?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+an(r)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+an(r)+";"+(t||"")+'"></span>';var a=n.markerId||"markerX";return{renderMode:i,content:"{"+a+"|} ",style:"subItem"===o?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function Gp(e,t,n){"week"!==e&&"month"!==e&&"quarter"!==e&&"half-year"!==e&&"year"!==e||(e="MM-dd\nyyyy");var r=hs(t),o=n?"getUTC":"get",i=r[o+"FullYear"](),a=r[o+"Month"]()+1,s=r[o+"Date"](),l=r[o+"Hours"](),u=r[o+"Minutes"](),c=r[o+"Seconds"](),d=r[o+"Milliseconds"]();return e=e.replace("MM",mp(a,2)).replace("M",a).replace("yyyy",i).replace("yy",mp(i%100+"",2)).replace("dd",mp(s,2)).replace("d",s).replace("hh",mp(l,2)).replace("h",l).replace("mm",mp(u,2)).replace("m",u).replace("ss",mp(c,2)).replace("s",c).replace("SSS",mp(d,3)),e}function Xp(e){return e?e.charAt(0).toUpperCase()+e.substr(1):e}function Up(e,t){return t=t||"transparent",Ve(e)?e:Qe(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function Yp(e,t){if("_blank"===t||"blank"===t){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var qp=Me,Kp=["left","right","top","bottom","width","height"],Jp=[["width","left","right"],["height","top","bottom"]];function ef(e,t,n,r,o){var i=0,a=0;null==r&&(r=1/0),null==o&&(o=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=i+g,c>r||l.newline?(i=0,c=g,a+=s+n,s=h.height):s=Math.max(s,h.height)}else{var m=h.height+(f?-f.y+h.y:0);d=a+m,d>o||l.newline?(i+=s+n,a=0,d=m,s=h.width):s=Math.max(s,h.width)}l.newline||(l.x=i,l.y=a,l.markRedraw(),"horizontal"===e?i=c+n:a=d+n)}))}var tf=ef;Ne(ef,"vertical"),Ne(ef,"horizontal");function nf(e,t,n){var r=t.width,o=t.height,i=Ja(e.left,r),a=Ja(e.top,o),s=Ja(e.right,r),l=Ja(e.bottom,o);return(isNaN(i)||isNaN(parseFloat(e.left)))&&(i=0),(isNaN(s)||isNaN(parseFloat(e.right)))&&(s=r),(isNaN(a)||isNaN(parseFloat(e.top)))&&(a=0),(isNaN(l)||isNaN(parseFloat(e.bottom)))&&(l=o),n=Bp(n||0),{width:Math.max(s-i-n[1]-n[3],0),height:Math.max(l-a-n[0]-n[2],0)}}function rf(e,t,n){n=Bp(n||0);var r=t.width,o=t.height,i=Ja(e.left,r),a=Ja(e.top,o),s=Ja(e.right,r),l=Ja(e.bottom,o),u=Ja(e.width,r),c=Ja(e.height,o),d=n[2]+n[0],h=n[1]+n[3],p=e.aspect;switch(isNaN(u)&&(u=r-s-h-i),isNaN(c)&&(c=o-l-d-a),null!=p&&(isNaN(u)&&isNaN(c)&&(p>r/o?u=.8*r:c=.8*o),isNaN(u)&&(u=p*c),isNaN(c)&&(c=u/p)),isNaN(i)&&(i=r-s-u-h),isNaN(a)&&(a=o-l-c-d),e.left||e.right){case"center":i=r/2-u/2-n[3];break;case"right":i=r-u-h;break}switch(e.top||e.bottom){case"middle":case"center":a=o/2-c/2-n[0];break;case"bottom":a=o-c-d;break}i=i||0,a=a||0,isNaN(u)&&(u=r-h-i-(s||0)),isNaN(c)&&(c=o-d-a-(l||0));var f=new Fn(i+n[3],a+n[0],u,c);return f.margin=n,f}function of(e,t,n,r,o,i){var a,s=!o||!o.hv||o.hv[0],l=!o||!o.hv||o.hv[1],u=o&&o.boundingMode||"all";if(i=i||e,i.x=e.x,i.y=e.y,!s&&!l)return!1;if("raw"===u)a="group"===e.type?new Fn(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=rf(we({width:a.width,height:a.height},t),n,r),h=s?d.x-a.x:0,p=l?d.y-a.y:0;return"raw"===u?(i.x=h,i.y=p):(i.x+=h,i.y+=p),i===e&&e.markRedraw(),!0}function af(e,t){return null!=e[Jp[t][0]]||null!=e[Jp[t][1]]&&null!=e[Jp[t][2]]}function sf(e){var t=e.layoutMode||e.constructor.layoutMode;return Qe(t)?t:t?{type:t}:null}function lf(e,t,n){var r=n&&n.ignoreSize;!Le(r)&&(r=[r,r]);var o=a(Jp[0],0),i=a(Jp[1],1);function a(n,o){var i={},a=0,u={},c=0,d=2;if(qp(n,(function(t){u[t]=e[t]})),qp(n,(function(e){s(t,e)&&(i[e]=u[e]=t[e]),l(i,e)&&a++,l(u,e)&&c++})),r[o])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 i;for(var h=0;h<n.length;h++){var p=n[h];if(!s(i,p)&&s(e,p)){i[p]=e[p];break}}return i}return u}function s(e,t){return e.hasOwnProperty(t)}function l(e,t){return null!=e[t]&&"auto"!==e[t]}function u(e,t,n){qp(e,(function(e){t[e]=n[e]}))}u(Jp[0],e,o),u(Jp[1],e,i)}function uf(e){return cf({},e)}function cf(e,t){return t&&e&&qp(Kp,(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e}var df=Xs(),hf=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o.uid=Wh("ec_cpt_model"),o}return Q(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=sf(this),r=n?uf(e):{},o=t.getTheme();be(e,o.get(this.mainType)),be(e,this.getDefaultOption()),n&&lf(e,r,n)},t.prototype.mergeOption=function(e,t){be(this.option,e,!0);var n=sf(this);n&&lf(this.option,e,n)},t.prototype.optionUpdated=function(e,t){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!dl(e))return e.defaultOption;var t=df(this);if(!t.defaultOption){var n=[],r=e;while(r){var o=r.prototype.defaultOption;o&&n.push(o),r=r.superClass}for(var i={},a=n.length-1;a>=0;a--)i=be(i,n[a],!0);t.defaultOption=i}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+"Index",r=e+"Id";return el(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!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}(Qh);function pf(e){var t=[];return Me(hf.getClassesByMainType(e),(function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])})),t=Te(t,(function(e){return ul(e).main})),"dataset"!==e&&Se(t,"dataset")<=0&&t.unshift("dataset"),t}fl(hf,Qh),bl(hf),Hh(hf),Zh(hf,pf);var ff=hf,gf="";"undefined"!==typeof navigator&&(gf=navigator.platform||"");var mf="rgba(0, 0, 0, 0.2)",vf={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:mf,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:mf,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:mf,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:mf,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:mf,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:mf,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:gf.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},yf=ct(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),bf="original",_f="arrayRows",xf="objectRows",wf="keyedColumns",Of="typedArray",Sf="unknown",Af="column",kf="row",Cf={Must:1,Might:2,Not:3},Mf=Xs();function Tf(e){Mf(e).datasetMap=ct()}function Pf(e,t,n){var r={},o=$f(t);if(!o||!e)return r;var i,a,s=[],l=[],u=t.ecModel,c=Mf(u).datasetMap,d=o.uid+"_"+n.seriesLayoutBy;e=e.slice(),Me(e,(function(t,n){var o=Qe(t)?t:e[n]={name:t};"ordinal"===o.type&&null==i&&(i=n,a=f(o)),r[o.name]=[]}));var h=c.get(d)||c.set(d,{categoryWayDim:a,valueWayDim:0});function p(e,t,n){for(var r=0;r<n;r++)e.push(t+r)}function f(e){var t=e.dimsDef;return t?t.length:1}return Me(e,(function(e,t){var n=e.name,o=f(e);if(null==i){var a=h.valueWayDim;p(r[n],a,o),p(l,a,o),h.valueWayDim+=o}else if(i===t)p(r[n],0,o),p(s,0,o);else{a=h.categoryWayDim;p(r[n],a,o),p(l,a,o),h.categoryWayDim+=o}})),s.length&&(r.itemName=s),l.length&&(r.seriesName=l),r}function If(e,t,n){var r={},o=$f(e);if(!o)return r;var i,a=t.sourceFormat,s=t.dimensionsDefine;a!==xf&&a!==wf||Me(s,(function(e,t){"name"===(Qe(e)?e.name:e)&&(i=t)}));var l=function(){for(var e={},r={},o=[],l=0,u=Math.min(5,n);l<u;l++){var c=Rf(t.data,a,t.seriesLayoutBy,s,t.startIndex,l);o.push(c);var d=c===Cf.Not;if(d&&null==e.v&&l!==i&&(e.v=l),(null==e.n||e.n===e.v||!d&&o[e.n]===Cf.Not)&&(e.n=l),h(e)&&o[e.n]!==Cf.Not)return e;d||(c===Cf.Might&&null==r.v&&l!==i&&(r.v=l),null!=r.n&&r.n!==r.v||(r.n=l))}function h(e){return null!=e.v&&null!=e.n}return h(e)?e:h(r)?r:null}();if(l){r.value=[l.v];var u=null!=i?i:l.n;r.itemName=[u],r.seriesName=[u]}return r}function $f(e){var t=e.get("data",!0);if(!t)return el(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},Ks).models[0]}function Ef(e){return e.get("transform",!0)||e.get("fromTransformResult",!0)?el(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},Ks).models:[]}function Df(e,t){return Rf(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function Rf(e,t,n,r,o,i){var a,s,l,u=5;if(We(e))return Cf.Not;if(r){var c=r[i];Qe(c)?(s=c.name,l=c.type):Ve(c)&&(s=c)}if(null!=l)return"ordinal"===l?Cf.Must:Cf.Not;if(t===_f){var d=e;if(n===kf){for(var h=d[i],p=0;p<(h||[]).length&&p<u;p++)if(null!=(a=_(h[o+p])))return a}else for(p=0;p<d.length&&p<u;p++){var f=d[o+p];if(f&&null!=(a=_(f[i])))return a}}else if(t===xf){var g=e;if(!s)return Cf.Not;for(p=0;p<g.length&&p<u;p++){var m=g[p];if(m&&null!=(a=_(m[s])))return a}}else if(t===wf){var v=e;if(!s)return Cf.Not;h=v[s];if(!h||We(h))return Cf.Not;for(p=0;p<h.length&&p<u;p++)if(null!=(a=_(h[p])))return a}else if(t===bf){var y=e;for(p=0;p<y.length&&p<u;p++){m=y[p];var b=Ts(m);if(!Le(b))return Cf.Not;if(null!=(a=_(b[i])))return a}}function _(e){var t=Ve(e);return null!=e&&Number.isFinite(Number(e))&&""!==e?t?Cf.Might:Cf.Not:t&&"-"!==e?Cf.Must:void 0}return Cf.Not}var Nf=ct();function Lf(e,t){tt(null==Nf.get(e)&&t),Nf.set(e,t)}function zf(e,t,n){var r=Nf.get(t);if(!r)return n;var o=r(e);return o?n.concat(o):n}var Vf,Bf,jf,Qf=Xs(),Ff=Xs(),Wf=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var r=ks(this.get("color",!0)),o=this.get("colorLayer",!0);return Gf(this,Qf,r,o,e,t,n)},e.prototype.clearColorPalette=function(){Xf(this,Qf)},e}();function Hf(e,t,n,r){var o=ks(e.get(["aria","decal","decals"]));return Gf(e,Ff,o,null,t,n,r)}function Zf(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r].length>t)return e[r];return e[n-1]}function Gf(e,t,n,r,o,i,a){i=i||e;var s=t(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(o))return u[o];var c=null!=a&&r?Zf(r,a):n;if(c=c||n,c&&c.length){var d=c[l];return o&&(u[o]=d),s.paletteIdx=(l+1)%c.length,d}}function Xf(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Uf="\0_ec_inner",Yf=1;var qf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Q(t,e),t.prototype.init=function(e,t,n,r,o,i){r=r||{},this.option=null,this._theme=new Qh(r),this._locale=new Qh(o),this._optionManager=i},t.prototype.setOption=function(e,t,n){var r=ng(t);this._optionManager.setOption(e,n,r),this._resetOption(null,r)},t.prototype.resetOption=function(e,t){return this._resetOption(e,ng(t))},t.prototype._resetOption=function(e,t){var n=!1,r=this._optionManager;if(!e||"recreate"===e){var o=r.mountOption("recreate"===e);0,this.option&&"recreate"!==e?(this.restoreData(),this._mergeOption(o,t)):jf(this,o),n=!0}if("timeline"!==e&&"media"!==e||this.restoreData(),!e||"recreate"===e||"timeline"===e){var i=r.getTimelineOption(this);i&&(n=!0,this._mergeOption(i,t))}if(!e||"recreate"===e||"media"===e){var a=r.getMediaOption(this);a.length&&Me(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,r=this._componentsMap,o=this._componentsCount,i=[],a=ct(),s=t&&t.replaceMergeMainTypeMap;function l(t){var i=zf(this,t,ks(e[t])),a=r.get(t),l=a?s&&s.get(t)?"replaceMerge":"normalMerge":"replaceAll",u=Is(a,i,l);Ws(u,t,ff),n[t]=null,r.set(t,null),o.set(t,0);var c,d=[],h=[],p=0;Me(u,(function(e,n){var r=e.existing,o=e.newOption;if(o){var i="series"===t,a=ff.getClass(t,e.keyInfo.subType,!i);if(!a)return;if("tooltip"===t){if(c)return void 0;c=!0}if(r&&r.constructor===a)r.name=e.keyInfo.name,r.mergeOption(o,this),r.optionUpdated(o,!1);else{var s=xe({componentIndex:n},e.keyInfo);r=new a(o,this,this,s),xe(r,s),e.brandNew&&(r.__requireNewView=!0),r.init(o,this,this),r.optionUpdated(null,!0)}}else r&&(r.mergeOption({},this),r.optionUpdated({},!1));r?(d.push(r.option),h.push(r),p++):(d.push(void 0),h.push(void 0))}),this),n[t]=d,r.set(t,h),o.set(t,p),"series"===t&&Vf(this)}Tf(this),Me(e,(function(e,t){null!=e&&(ff.hasClass(t)?t&&(i.push(t),a.set(t,!0)):n[t]=null==n[t]?ye(e):be(n[t],e,!0))})),s&&s.each((function(e,t){ff.hasClass(t)&&!a.get(t)&&(i.push(t),a.set(t,!0))})),ff.topologicalTravel(i,ff.getAllClassMainTypes(),l,this),this._seriesIndices||Vf(this)},t.prototype.getOption=function(){var e=ye(this.option);return Me(e,(function(t,n){if(ff.hasClass(n)){for(var r=ks(t),o=r.length,i=!1,a=o-1;a>=0;a--)r[a]&&!Qs(r[a])?i=!0:(r[a]=null,!i&&o--);r.length=o,e[n]=r}})),delete e[Uf],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 r=n[t||0];if(r)return r;if(null==t)for(var o=0;o<n.length;o++)if(n[o])return n[o]}},t.prototype.queryComponents=function(e){var t=e.mainType;if(!t)return[];var n,r=e.index,o=e.id,i=e.name,a=this._componentsMap.get(t);return a&&a.length?(null!=r?(n=[],Me(ks(r),(function(e){a[e]&&n.push(a[e])}))):n=null!=o?eg("id",o,a):null!=i?eg("name",i,a):Ie(a,(function(e){return!!e})),tg(n,e)):[]},t.prototype.findComponents=function(e){var t=e.query,n=e.mainType,r=i(t),o=r?this.queryComponents(r):Ie(this._componentsMap.get(n),(function(e){return!!e}));return a(tg(o,e));function i(e){var t=n+"Index",r=n+"Id",o=n+"Name";return!e||null==e[t]&&null==e[r]&&null==e[o]?null:{mainType:n,index:e[t],id:e[r],name:e[o]}}function a(t){return e.filter?Ie(t,e.filter):t}},t.prototype.eachComponent=function(e,t,n){var r=this._componentsMap;if(ze(e)){var o=t,i=e;r.each((function(e,t){for(var n=0;e&&n<e.length;n++){var r=e[n];r&&i.call(o,t,r,r.componentIndex)}}))}else for(var a=Ve(e)?r.get(e):Qe(e)?this.findComponents(e):null,s=0;a&&s<a.length;s++){var l=a[s];l&&t.call(n,l,l.componentIndex)}},t.prototype.getSeriesByName=function(e){var t=Bs(e,null);return Ie(this._componentsMap.get("series"),(function(e){return!!e&&null!=t&&e.name===t}))},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return Ie(this._componentsMap.get("series"),(function(t){return!!t&&t.subType===e}))},t.prototype.getSeries=function(){return Ie(this._componentsMap.get("series"),(function(e){return!!e}))},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,t){Bf(this),Me(this._seriesIndices,(function(n){var r=this._componentsMap.get("series")[n];e.call(t,r,n)}),this)},t.prototype.eachRawSeries=function(e,t){Me(this._componentsMap.get("series"),(function(n){n&&e.call(t,n,n.componentIndex)}))},t.prototype.eachSeriesByType=function(e,t,n){Bf(this),Me(this._seriesIndices,(function(r){var o=this._componentsMap.get("series")[r];o.subType===e&&t.call(n,o,r)}),this)},t.prototype.eachRawSeriesByType=function(e,t,n){return Me(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return Bf(this),null==this._seriesIndicesMap.get(e.componentIndex)},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){Bf(this);var n=[];Me(this._seriesIndices,(function(r){var o=this._componentsMap.get("series")[r];e.call(t,o,r)&&n.push(r)}),this),this._seriesIndices=n,this._seriesIndicesMap=ct(n)},t.prototype.restoreData=function(e){Vf(this);var t=this._componentsMap,n=[];t.each((function(e,t){ff.hasClass(t)&&n.push(t)})),ff.topologicalTravel(n,ff.getAllClassMainTypes(),(function(n){Me(t.get(n),(function(t){!t||"series"===n&&Kf(t,e)||t.restoreData()}))}))},t.internalField=function(){Vf=function(e){var t=e._seriesIndices=[];Me(e._componentsMap.get("series"),(function(e){e&&t.push(e.componentIndex)})),e._seriesIndicesMap=ct(t)},Bf=function(e){0},jf=function(e,t){e.option={},e.option[Uf]=Yf,e._componentsMap=ct({series:[]}),e._componentsCount=ct();var n=t.aria;Qe(n)&&null==n.enabled&&(n.enabled=!0),Jf(t,e._theme.option),be(t,vf,!1),e._mergeOption(t,null)}}(),t}(Qh);function Kf(e,t){if(t){var n=t.seriesIndex,r=t.seriesId,o=t.seriesName;return null!=n&&e.componentIndex!==n||null!=r&&e.id!==r||null!=o&&e.name!==o}}function Jf(e,t){var n=e.color&&!e.colorLayer;Me(t,(function(t,r){"colorLayer"===r&&n||ff.hasClass(r)||("object"===typeof t?e[r]=e[r]?be(e[r],t,!1):ye(t):null==e[r]&&(e[r]=t))}))}function eg(e,t,n){if(Le(t)){var r=ct();return Me(t,(function(e){if(null!=e){var t=Bs(e,null);null!=t&&r.set(e,!0)}})),Ie(n,(function(t){return t&&r.get(t[e])}))}var o=Bs(t,null);return Ie(n,(function(t){return t&&null!=o&&t[e]===o}))}function tg(e,t){return t.hasOwnProperty("subType")?Ie(e,(function(e){return e&&e.subType===t.subType})):e}function ng(e){var t=ct();return e&&Me(ks(e.replaceMerge),(function(e){t.set(e,!0)})),{replaceMergeMainTypeMap:t}}ke(qf,Wf);var rg=qf,og=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],ig=function(){function e(e){Me(og,(function(t){this[t]=Re(e[t],e)}),this)}return e}(),ag=ig,sg={},lg=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(e,t){var n=[];Me(sg,(function(r,o){var i=r.create(e,t);n=n.concat(i||[])})),this._coordinateSystems=n},e.prototype.update=function(e,t){Me(this._coordinateSystems,(function(n){n.update&&n.update(e,t)}))},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(e,t){sg[e]=t},e.get=function(e){return sg[e]},e}(),ug=lg,cg=/^(min|max)?(.+)$/,dg=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(Me(ks(e.series),(function(e){e&&e.data&&We(e.data)&&ot(e.data)})),Me(ks(e.dataset),(function(e){e&&e.source&&We(e.source)&&ot(e.source)}))),e=ye(e);var r=this._optionBackup,o=hg(e,t,!r);this._newBaseOption=o.baseOption,r?(o.timelineOptions.length&&(r.timelineOptions=o.timelineOptions),o.mediaList.length&&(r.mediaList=o.mediaList),o.mediaDefault&&(r.mediaDefault=o.mediaDefault)):this._optionBackup=o},e.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],ye(e?t.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var r=e.getComponent("timeline");r&&(t=ye(n[r.getCurrentIndex()]))}return t},e.prototype.getMediaOption=function(e){var t=this._api.getWidth(),n=this._api.getHeight(),r=this._mediaList,o=this._mediaDefault,i=[],a=[];if(!r.length&&!o)return a;for(var s=0,l=r.length;s<l;s++)pg(r[s].query,t,n)&&i.push(s);return!i.length&&o&&(i=[-1]),i.length&&!gg(i,this._currentMediaIndices)&&(a=Te(i,(function(e){return ye(-1===e?o.option:r[e].option)}))),this._currentMediaIndices=i,a},e}();function hg(e,t,n){var r,o,i=[],a=e.baseOption,s=e.timeline,l=e.options,u=e.media,c=!!e.media,d=!!(l||s||a&&a.timeline);function h(e){Me(t,(function(t){t(e,n)}))}return a?(o=a,o.timeline||(o.timeline=s)):((d||c)&&(e.options=e.media=null),o=e),c&&Le(u)&&Me(u,(function(e){e&&e.option&&(e.query?i.push(e):r||(r=e))})),h(o),Me(l,(function(e){return h(e)})),Me(i,(function(e){return h(e.option)})),{baseOption:o,timelineOptions:l||[],mediaDefault:r,mediaList:i}}function pg(e,t,n){var r={width:t,height:n,aspectratio:t/n},o=!0;return Me(e,(function(e,t){var n=t.match(cg);if(n&&n[1]&&n[2]){var i=n[1],a=n[2].toLowerCase();fg(r[a],e,i)||(o=!1)}})),o}function fg(e,t,n){return"min"===n?e>=t:"max"===n?e<=t:e===t}function gg(e,t){return e.join(",")===t.join(",")}var mg=dg,vg=Me,yg=Qe,bg=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function _g(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=bg.length;n<r;n++){var o=bg[n],i=t.normal,a=t.emphasis;i&&i[o]&&(e[o]=e[o]||{},e[o].normal?be(e[o].normal,i[o]):e[o].normal=i[o],i[o]=null),a&&a[o]&&(e[o]=e[o]||{},e[o].emphasis?be(e[o].emphasis,a[o]):e[o].emphasis=a[o],a[o]=null)}}function xg(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var r=e[t].normal,o=e[t].emphasis;r&&(n?(e[t].normal=e[t].emphasis=null,we(e[t],r)):e[t]=r),o&&(e.emphasis=e.emphasis||{},e.emphasis[t]=o,o.focus&&(e.emphasis.focus=o.focus),o.blurScope&&(e.emphasis.blurScope=o.blurScope))}}function wg(e){xg(e,"itemStyle"),xg(e,"lineStyle"),xg(e,"areaStyle"),xg(e,"label"),xg(e,"labelLine"),xg(e,"upperLabel"),xg(e,"edgeLabel")}function Og(e,t){var n=yg(e)&&e[t],r=yg(n)&&n.textStyle;if(r){0;for(var o=0,i=Ms.length;o<i;o++){var a=Ms[o];r.hasOwnProperty(a)&&(n[a]=r[a])}}}function Sg(e){e&&(wg(e),Og(e,"label"),e.emphasis&&Og(e.emphasis,"label"))}function Ag(e){if(yg(e)){_g(e),wg(e),Og(e,"label"),Og(e,"upperLabel"),Og(e,"edgeLabel"),e.emphasis&&(Og(e.emphasis,"label"),Og(e.emphasis,"upperLabel"),Og(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(_g(t),Sg(t));var n=e.markLine;n&&(_g(n),Sg(n));var r=e.markArea;r&&Sg(r);var o=e.data;if("graph"===e.type){o=o||e.nodes;var i=e.links||e.edges;if(i&&!We(i))for(var a=0;a<i.length;a++)Sg(i[a]);Me(e.categories,(function(e){wg(e)}))}if(o&&!We(o))for(a=0;a<o.length;a++)Sg(o[a]);if(t=e.markPoint,t&&t.data){var s=t.data;for(a=0;a<s.length;a++)Sg(s[a])}if(n=e.markLine,n&&n.data){var l=n.data;for(a=0;a<l.length;a++)Le(l[a])?(Sg(l[a][0]),Sg(l[a][1])):Sg(l[a])}"gauge"===e.type?(Og(e,"axisLabel"),Og(e,"title"),Og(e,"detail")):"treemap"===e.type?(xg(e.breadcrumb,"itemStyle"),Me(e.levels,(function(e){wg(e)}))):"tree"===e.type&&wg(e.leaves)}}function kg(e){return Le(e)?e:e?[e]:[]}function Cg(e){return(Le(e)?e[0]:e)||{}}function Mg(e,t){vg(kg(e.series),(function(e){yg(e)&&Ag(e)}));var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),vg(n,(function(t){vg(kg(e[t]),(function(e){e&&(Og(e,"axisLabel"),Og(e.axisPointer,"label"))}))})),vg(kg(e.parallel),(function(e){var t=e&&e.parallelAxisDefault;Og(t,"axisLabel"),Og(t&&t.axisPointer,"label")})),vg(kg(e.calendar),(function(e){xg(e,"itemStyle"),Og(e,"dayLabel"),Og(e,"monthLabel"),Og(e,"yearLabel")})),vg(kg(e.radar),(function(e){Og(e,"name"),e.name&&null==e.axisName&&(e.axisName=e.name,delete e.name),null!=e.nameGap&&null==e.axisNameGap&&(e.axisNameGap=e.nameGap,delete e.nameGap)})),vg(kg(e.geo),(function(e){yg(e)&&(Sg(e),vg(kg(e.regions),(function(e){Sg(e)})))})),vg(kg(e.timeline),(function(e){Sg(e),xg(e,"label"),xg(e,"itemStyle"),xg(e,"controlStyle",!0);var t=e.data;Le(t)&&Me(t,(function(e){Qe(e)&&(xg(e,"label"),xg(e,"itemStyle"))}))})),vg(kg(e.toolbox),(function(e){xg(e,"iconStyle"),vg(e.feature,(function(e){xg(e,"iconStyle")}))})),Og(Cg(e.axisPointer),"label"),Og(Cg(e.tooltip).axisPointer,"label")}function Tg(e,t){for(var n=t.split(","),r=e,o=0;o<n.length;o++)if(r=r&&r[n[o]],null==r)break;return r}function Pg(e,t,n,r){for(var o,i=t.split(","),a=e,s=0;s<i.length-1;s++)o=i[s],null==a[o]&&(a[o]={}),a=a[o];(r||null==a[i[s]])&&(a[i[s]]=n)}function Ig(e){e&&Me($g,(function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])}))}var $g=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Eg=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Dg=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Rg(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<Dg.length;n++){var r=Dg[n][1],o=Dg[n][0];null!=t[r]&&(t[o]=t[r])}}function Ng(e){e&&"edge"===e.alignTo&&null!=e.margin&&null==e.edgeDistance&&(e.edgeDistance=e.margin)}function Lg(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function zg(e){e&&null!=e.focusNodeAdjacency&&(e.emphasis=e.emphasis||{},null==e.emphasis.focus&&(e.emphasis.focus="adjacency"))}function Vg(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&Vg(e[n].children,t)}function Bg(e,t){Mg(e,t),e.series=ks(e.series),Me(e.series,(function(e){if(Qe(e)){var t=e.type;if("line"===t)null!=e.clipOverflow&&(e.clip=e.clipOverflow);else if("pie"===t||"gauge"===t){null!=e.clockWise&&(e.clockwise=e.clockWise),Ng(e.label);var n=e.data;if(n&&!We(n))for(var r=0;r<n.length;r++)Ng(n[r]);null!=e.hoverOffset&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if("gauge"===t){var o=Tg(e,"pointer.color");null!=o&&Pg(e,"itemStyle.color",o)}else if("bar"===t){Rg(e),Rg(e.backgroundStyle),Rg(e.emphasis);n=e.data;if(n&&!We(n))for(r=0;r<n.length;r++)"object"===typeof n[r]&&(Rg(n[r]),Rg(n[r]&&n[r].emphasis))}else if("sunburst"===t){var i=e.highlightPolicy;i&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=i)),Lg(e),Vg(e.data,Lg)}else"graph"===t||"sankey"===t?zg(e):"map"===t&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&we(e,e.mapLocation));null!=e.hoverAnimation&&(e.emphasis=e.emphasis||{},e.emphasis&&null==e.emphasis.scale&&(e.emphasis.scale=e.hoverAnimation)),Ig(e)}})),e.dataRange&&(e.visualMap=e.dataRange),Me(Eg,(function(t){var n=e[t];n&&(Le(n)||(n=[n]),Me(n,(function(e){Ig(e)})))}))}function jg(e){var t=ct();e.eachSeries((function(e){var n=e.get("stack");if(n){var r=t.get(n)||t.set(n,[]),o=e.getData(),i={stackResultDimension:o.getCalculationInfo("stackResultDimension"),stackedOverDimension:o.getCalculationInfo("stackedOverDimension"),stackedDimension:o.getCalculationInfo("stackedDimension"),stackedByDimension:o.getCalculationInfo("stackedByDimension"),isStackedByIndex:o.getCalculationInfo("isStackedByIndex"),data:o,seriesModel:e};if(!i.stackedDimension||!i.isStackedByIndex&&!i.stackedByDimension)return;r.length&&o.setCalculationInfo("stackedOnSeries",r[r.length-1].seriesModel),r.push(i)}})),t.each(Qg)}function Qg(e){Me(e,(function(t,n){var r=[],o=[NaN,NaN],i=[t.stackResultDimension,t.stackedOverDimension],a=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";a.modify(i,(function(i,u,c){var d,h,p=a.get(t.stackedDimension,c);if(isNaN(p))return o;s?h=a.getRawIndex(c):d=a.get(t.stackedByDimension,c);for(var f=NaN,g=n-1;g>=0;g--){var m=e[g];if(s||(h=m.data.rawIndexOf(m.stackedByDimension,d)),h>=0){var v=m.data.getByRawIndex(m.stackResultDimension,h);if("all"===l||"positive"===l&&v>0||"negative"===l&&v<0||"samesign"===l&&p>=0&&v>0||"samesign"===l&&p<=0&&v<0){p=ss(p,v),f=v;break}}}return r[0]=p,r[1]=f,r}))}))}var Fg,Wg,Hg,Zg,Gg,Xg=function(){function e(e){this.data=e.data||(e.sourceFormat===wf?{}:[]),this.sourceFormat=e.sourceFormat||Sf,this.seriesLayoutBy=e.seriesLayoutBy||Af,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;n<t.length;n++){var r=t[n];null==r.type&&Df(this,n)===Cf.Must&&(r.type="ordinal")}}return e}();function Ug(e){return e instanceof Xg}function Yg(e,t,n){n=n||Jg(e);var r=t.seriesLayoutBy,o=em(e,n,r,t.sourceHeader,t.dimensions),i=new Xg({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:o.dimensionsDefine,startIndex:o.startIndex,dimensionsDetectedCount:o.dimensionsDetectedCount,metaRawOption:ye(t)});return i}function qg(e){return new Xg({data:e,sourceFormat:We(e)?Of:bf})}function Kg(e){return new Xg({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:ye(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function Jg(e){var t=Sf;if(We(e))t=Of;else if(Le(e)){0===e.length&&(t=_f);for(var n=0,r=e.length;n<r;n++){var o=e[n];if(null!=o){if(Le(o)||We(o)){t=_f;break}if(Qe(o)){t=xf;break}}}}else if(Qe(e))for(var i in e)if(ft(e,i)&&Ce(e[i])){t=wf;break}return t}function em(e,t,n,r,o){var i,a;if(!e)return{dimensionsDefine:nm(o),startIndex:a,dimensionsDetectedCount:i};if(t===_f){var s=e;"auto"===r||null==r?rm((function(e){null!=e&&"-"!==e&&(Ve(e)?null==a&&(a=1):a=0)}),n,s,10):a=je(r)?r:r?1:0,o||1!==a||(o=[],rm((function(e,t){o[t]=null!=e?e+"":""}),n,s,1/0)),i=o?o.length:n===kf?s.length:s[0]?s[0].length:null}else if(t===xf)o||(o=tm(e));else if(t===wf)o||(o=[],Me(e,(function(e,t){o.push(t)})));else if(t===bf){var l=Ts(e[0]);i=Le(l)&&l.length||1}return{startIndex:a,dimensionsDefine:nm(o),dimensionsDetectedCount:i}}function tm(e){var t,n=0;while(n<e.length&&!(t=e[n++]));if(t)return Ee(t)}function nm(e){if(e){var t=ct();return Te(e,(function(e,n){e=Qe(e)?e:{name:e};var r={name:e.name,displayName:e.displayName,type:e.type};if(null==r.name)return r;r.name+="",null==r.displayName&&(r.displayName=r.name);var o=t.get(r.name);return o?r.name+="-"+o.count++:t.set(r.name,{count:1}),r}))}}function rm(e,t,n,r){if(t===kf)for(var o=0;o<n.length&&o<r;o++)e(n[o]?n[o][0]:null,o);else{var i=n[0]||[];for(o=0;o<i.length&&o<r;o++)e(i[o],o)}}function om(e){var t=e.sourceFormat;return t===xf||t===wf}var im=function(){function e(e,t){var n=Ug(e)?e:qg(e);this._source=n;var r=this._data=n.data;n.sourceFormat===Of&&(this._offset=0,this._dimSize=t,this._data=r),Gg(this,r,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(e,t){},e.prototype.appendData=function(e){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var e;Gg=function(e,o,i){var a=i.sourceFormat,s=i.seriesLayoutBy,l=i.startIndex,u=i.dimensionsDefine,c=Zg[gm(a,s)];if(xe(e,c),a===Of)e.getItem=t,e.count=r,e.fillStorage=n;else{var d=lm(a,s);e.getItem=Re(d,null,o,l,u);var h=dm(a,s);e.count=Re(h,null,o,l,u)}};var t=function(e,t){e-=this._offset,t=t||[];for(var n=this._data,r=this._dimSize,o=r*e,i=0;i<r;i++)t[i]=n[o+i];return t},n=function(e,t,n,r){for(var o=this._data,i=this._dimSize,a=0;a<i;a++){for(var s=r[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],c=t-e,d=n[a],h=0;h<c;h++){var p=o[h*i+a];d[e+h]=p,p<l&&(l=p),p>u&&(u=p)}s[0]=l,s[1]=u}},r=function(){return this._data?this._data.length/this._dimSize:0};function o(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}e={},e[_f+"_"+Af]={pure:!0,appendData:o},e[_f+"_"+kf]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[xf]={pure:!0,appendData:o},e[wf]={pure:!0,appendData:function(e){var t=this._data;Me(e,(function(e,n){for(var r=t[n]||(t[n]=[]),o=0;o<(e||[]).length;o++)r.push(e[o])}))}},e[bf]={appendData:o},e[Of]={persistent:!1,pure:!0,appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},Zg=e}(),e}(),am=function(e,t,n,r){return e[r]},sm=(Fg={},Fg[_f+"_"+Af]=function(e,t,n,r){return e[r+t]},Fg[_f+"_"+kf]=function(e,t,n,r,o){r+=t;for(var i=o||[],a=e,s=0;s<a.length;s++){var l=a[s];i[s]=l?l[r]:null}return i},Fg[xf]=am,Fg[wf]=function(e,t,n,r,o){for(var i=o||[],a=0;a<n.length;a++){var s=n[a].name;0;var l=e[s];i[a]=l?l[r]:null}return i},Fg[bf]=am,Fg);function lm(e,t){var n=sm[gm(e,t)];return n}var um=function(e,t,n){return e.length},cm=(Wg={},Wg[_f+"_"+Af]=function(e,t,n){return Math.max(0,e.length-t)},Wg[_f+"_"+kf]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},Wg[xf]=um,Wg[wf]=function(e,t,n){var r=n[0].name;var o=e[r];return o?o.length:0},Wg[bf]=um,Wg);function dm(e,t){var n=cm[gm(e,t)];return n}var hm=function(e,t,n){return e[t]},pm=(Hg={},Hg[_f]=hm,Hg[xf]=function(e,t,n){return e[n]},Hg[wf]=hm,Hg[bf]=function(e,t,n){var r=Ts(e);return r instanceof Array?r[t]:r},Hg[Of]=hm,Hg);function fm(e){var t=pm[e];return t}function gm(e,t){return e===_f?e+"_"+t:e}function mm(e,t,n){if(e){var r=e.getRawDataItem(t);if(null!=r){var o=e.getStore(),i=o.getSource().sourceFormat;if(null!=n){var a=e.getDimensionIndex(n),s=o.getDimensionProperty(a);return fm(i)(r,a,s)}var l=r;return i===bf&&(l=Ts(r)),l}}}var vm=/\{@(.+?)\}/g,ym=function(){function e(){}return e.prototype.getDataParams=function(e,t){var n=this.getData(t),r=this.getRawValue(e,t),o=n.getRawIndex(e),i=n.getName(e),a=n.getRawDataItem(e),s=n.getItemVisual(e,"style"),l=s&&s[n.getItemVisual(e,"drawType")||"fill"],u=s&&s.stroke,c=this.mainType,d="series"===c,h=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:i,dataIndex:o,data:a,dataType:t,value:r,color:l,borderColor:u,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(e,t,n,r,o,i){t=t||"normal";var a=this.getData(n),s=this.getDataParams(e,n);if(i&&(s.value=i.interpolatedValue),null!=r&&Le(s.value)&&(s.value=s.value[r]),!o){var l=a.getItemModel(e);o=l.get("normal"===t?["label","formatter"]:[t,"label","formatter"])}if(ze(o))return s.status=t,s.dimensionIndex=r,o(s);if(Ve(o)){var u=Wp(o,s);return u.replace(vm,(function(t,n){var r=n.length,o=n;"["===o.charAt(0)&&"]"===o.charAt(r-1)&&(o=+o.slice(1,r-1));var s=mm(a,e,o);if(i&&Le(i.interpolatedValue)){var l=a.getDimensionIndex(o);l>=0&&(s=i.interpolatedValue[l])}return null!=s?s+"":""}))}},e.prototype.getRawValue=function(e,t){return mm(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function bm(e){var t,n;return Qe(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function _m(e){return new xm(e)}var xm=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,r=e&&e.skip;if(this._dirty&&n){var o=this.context;o.data=o.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!r&&(t=this._plan(this.context));var i,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,i=this._doReset(r)),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(!r&&(i||h<p)){var f=this._progress;if(Le(f))for(var g=0;g<f.length;g++)this._doProgress(f[g],h,p,l,u);else this._doProgress(f,h,p,l,u)}this._dueIndex=p;var m=null!=this._settedOutputEnd?this._settedOutputEnd:p;0,this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(e,t,n,r,o){wm.reset(t,n,r,o),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:wm.next},this.context)},e.prototype._doReset=function(e){var t,n;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!e&&this._reset&&(t=this._reset(this.context),t&&t.progress&&(n=t.forceFirstProgress,t=t.progress),Le(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},e}(),wm=function(){var e,t,n,r,o,i={reset:function(l,u,c,d){t=l,e=u,n=c,r=d,o=Math.ceil(r/n),i.next=n>1&&r>0?s:a}};return i;function a(){return t<e?t++:null}function s(){var i=t%o*n+Math.ceil(t/o),a=t>=e?null:i<r?i:t;return t++,a}}();"undefined"!==typeof console&&console.warn&&console.log;function Om(e){0}function Sm(e){throw new Error(e)}function Am(e,t){var n=t&&t.type;return"ordinal"===n?e:("time"!==n||je(e)||null==e||"-"===e||(e=+hs(e)),null==e||""===e?NaN:Number(e))}var km=ct({number:function(e){return parseFloat(e)},time:function(e){return+hs(e)},trim:function(e){return Ve(e)?nt(e):e}});function Cm(e){return km.get(e)}var Mm={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t}},Tm=function(){function e(e,t){if(!je(t)){var n="";0,Sm(n)}this._opFn=Mm[e],this._rvalFloat=ys(t)}return e.prototype.evaluate=function(e){return je(e)?this._opFn(e,this._rvalFloat):this._opFn(ys(e),this._rvalFloat)},e}(),Pm=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=je(e)?e:ys(e),r=je(t)?t:ys(t),o=isNaN(n),i=isNaN(r);if(o&&(n=this._incomparable),i&&(r=this._incomparable),o&&i){var a=Ve(e),s=Ve(t);a&&(n=s?e:0),s&&(r=a?t:0)}return n<r?this._resultLT:n>r?-this._resultLT:0},e}(),Im=function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=ys(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=ys(e)===this._rvalFloat)}return this._isEQ?t:!t},e}();function $m(e,t){return"eq"===e||"ne"===e?new Im("eq"===e,t):ft(Mm,e)?new Tm(e,t):null}var Em=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 Am(e,t)},e}();function Dm(e,t){var n=new Em,r=e.data,o=n.sourceFormat=e.sourceFormat,i=e.startIndex,a="";e.seriesLayoutBy!==Af&&Sm(a);var s=[],l={},u=e.dimensionsDefine;if(u)Me(u,(function(e,t){var n=e.name,r={index:t,name:n,displayName:e.displayName};if(s.push(r),null!=n){var o="";ft(l,n)&&Sm(o),l[n]=r}}));else for(var c=0;c<e.dimensionsDetectedCount;c++)s.push({index:c});var d=lm(o,Af);t.__isBuiltIn&&(n.getRawDataItem=function(e){return d(r,i,s,e)},n.getRawData=Re(Rm,null,e)),n.cloneRawData=Re(Nm,null,e);var h=dm(o,Af);n.count=Re(h,null,r,i,s);var p=fm(o);n.retrieveValue=function(e,t){var n=d(r,i,s,e);return f(n,t)};var f=n.retrieveValueFromItem=function(e,t){if(null!=e){var n=s[t];return n?p(e,t,n.name):void 0}};return n.getDimensionInfo=Re(Lm,null,s,l),n.cloneAllDimensionInfo=Re(zm,null,s),n}function Rm(e){var t=e.sourceFormat;if(!Fm(t)){var n="";0,Sm(n)}return e.data}function Nm(e){var t=e.sourceFormat,n=e.data;if(!Fm(t)){var r="";0,Sm(r)}if(t===_f){for(var o=[],i=0,a=n.length;i<a;i++)o.push(n[i].slice());return o}if(t===xf){for(o=[],i=0,a=n.length;i<a;i++)o.push(xe({},n[i]));return o}}function Lm(e,t,n){if(null!=n)return je(n)||!isNaN(n)&&!ft(t,n)?e[n]:ft(t,n)?t[n]:void 0}function zm(e){return ye(e)}var Vm=ct();function Bm(e){e=ye(e);var t=e.type,n="";t||Sm(n);var r=t.split(":");2!==r.length&&Sm(n);var o=!1;"echarts"===r[0]&&(t=r[1],o=!0),e.__isBuiltIn=o,Vm.set(t,e)}function jm(e,t,n){var r=ks(e),o=r.length,i="";o||Sm(i);for(var a=0,s=o;a<s;a++){var l=r[a];t=Qm(l,t,n,1===o?null:a),a!==s-1&&(t.length=Math.max(t.length,1))}return t}function Qm(e,t,n,r){var o="";t.length||Sm(o),Qe(e)||Sm(o);var i=e.type,a=Vm.get(i);a||Sm(o);var s=Te(t,(function(e){return Dm(e,a)})),l=ks(a.transform({upstream:s[0],upstreamList:s,config:ye(e.config)}));return Te(l,(function(e,n){var r="";Qe(e)||Sm(r),e.data||Sm(r);var o,i=Jg(e.data);Fm(i)||Sm(r);var a=t[0];if(a&&0===n&&!e.dimensions){var s=a.startIndex;s&&(e.data=a.data.slice(0,s).concat(e.data)),o={seriesLayoutBy:Af,sourceHeader:s,dimensions:a.metaRawOption.dimensions}}else o={seriesLayoutBy:Af,sourceHeader:0,dimensions:e.dimensions};return Yg(e.data,o,null)}))}function Fm(e){return e===_f||e===xf}var Wm,Hm="undefined",Zm=typeof Uint32Array===Hm?Array:Uint32Array,Gm=typeof Uint16Array===Hm?Array:Uint16Array,Xm=typeof Int32Array===Hm?Array:Int32Array,Um=typeof Float64Array===Hm?Array:Float64Array,Ym={float:Um,int:Xm,ordinal:Array,number:Array,time:Um};function qm(e){return e>65535?Zm:Gm}function Km(){return[1/0,-1/0]}function Jm(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function ev(e,t,n,r,o){var i=Ym[n||"float"];if(o){var a=e[t],s=a&&a.length;if(s!==r){for(var l=new i(r),u=0;u<s;u++)l[u]=a[u];e[t]=l}}else e[t]=new i(r)}var tv=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=ct()}return e.prototype.initData=function(e,t,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=e.getSource(),o=this.defaultDimValueGetter=Wm[r.sourceFormat];this._dimValueGetter=n||o,this._rawExtent=[];om(r);this._dimensions=Te(t,(function(e){return{type:e.type,property:e.property}})),this._initDataFromProvider(0,e.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(e,t){var n=this._calcDimNameToIdx,r=this._dimensions,o=n.get(e);if(null!=o){if(r[o].type===t)return o}else o=r.length;return r[o]={type:t},n.set(e,o),this._chunks[o]=new Ym[t||"float"](this._rawCount),this._rawExtent[o]=Km(),o},e.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],r=this._dimensions[e],o=this._rawExtent,i=r.ordinalOffset||0,a=n.length;0===i&&(o[e]=Km());for(var s=o[e],l=i;l<a;l++){var u=n[l]=t.parseAndCollect(n[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}r.ordinalMeta=t,r.ordinalOffset=a,r.type="ordinal"},e.prototype.getOrdinalMeta=function(e){var t=this._dimensions[e],n=t.ordinalMeta;return n},e.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},e.prototype.appendData=function(e){var t=this._provider,n=this.count();t.appendData(e);var r=t.count();return t.persistent||(r+=n),n<r&&this._initDataFromProvider(n,r,!0),[n,r]},e.prototype.appendValues=function(e,t){for(var n=this._chunks,r=this._dimensions,o=r.length,i=this._rawExtent,a=this.count(),s=a+Math.max(e.length,t||0),l=0;l<o;l++){var u=r[l];ev(n,l,u.type,s,!0)}for(var c=[],d=a;d<s;d++)for(var h=d-a,p=0;p<o;p++){u=r[p];var f=Wm.arrayRows.call(this,e[h]||c,u.property,h,p);n[p][d]=f;var g=i[p];f<g[0]&&(g[0]=f),f>g[1]&&(g[1]=f)}return this._rawCount=this._count=s,{start:a,end:s}},e.prototype._initDataFromProvider=function(e,t,n){for(var r=this._provider,o=this._chunks,i=this._dimensions,a=i.length,s=this._rawExtent,l=Te(i,(function(e){return e.property})),u=0;u<a;u++){var c=i[u];s[u]||(s[u]=Km()),ev(o,u,c.type,t,n)}if(r.fillStorage)r.fillStorage(e,t,o,s);else for(var d=[],h=e;h<t;h++){d=r.getItem(h,d);for(var p=0;p<a;p++){var f=o[p],g=this._dimValueGetter(d,l[p],h,p);f[h]=g;var m=s[p];g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}!r.persistent&&r.clean&&r.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<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(t)]:NaN},e.prototype.getValues=function(e,t){var n=[],r=[];if(null==t){t=e,e=[];for(var o=0;o<this._dimensions.length;o++)r.push(o)}else r=e;o=0;for(var i=r.length;o<i;o++)n.push(this.get(r[o],t));return n},e.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._chunks[e];return n?n[t]:NaN},e.prototype.getSum=function(e){var t=this._chunks[e],n=0;if(t)for(var r=0,o=this.count();r<o;r++){var i=this.get(e,r);isNaN(i)||(n+=i)}return n},e.prototype.getMedian=function(e){var t=[];this.each([e],(function(e){isNaN(e)||t.push(e)}));var n=t.sort((function(e,t){return e-t})),r=this.count();return 0===r?0:r%2===1?n[(r-1)/2]:(n[r/2]+n[r/2-1])/2},e.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(null!=n&&n<this._count&&n===e)return e;var r=0,o=this._count-1;while(r<=o){var i=(r+o)/2|0;if(t[i]<e)r=i+1;else{if(!(t[i]>e))return i;o=i-1}}return-1},e.prototype.indicesOfNearest=function(e,t,n){var r=this._chunks,o=r[e],i=[];if(!o)return i;null==n&&(n=1/0);for(var a=1/0,s=-1,l=0,u=0,c=this.count();u<c;u++){var d=this.getRawIndex(u),h=t-o[d],p=Math.abs(h);p<=n&&((p<a||p===a&&h>=0&&s<0)&&(a=p,s=h,l=0),h===s&&(i[l++]=u))}return i.length=l,i},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,r=this._count;if(n===Array){e=new n(r);for(var o=0;o<r;o++)e[o]=t[o]}else e=new n(t.buffer,0,r)}else{n=qm(this._rawCount);e=new n(this.count());for(o=0;o<e.length;o++)e[o]=o}return e},e.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),r=n.count(),o=qm(n._rawCount),i=new o(r),a=[],s=e.length,l=0,u=e[0],c=n._chunks,d=0;d<r;d++){var h=void 0,p=n.getRawIndex(d);if(0===s)h=t(d);else if(1===s){var f=c[u][p];h=t(f,d)}else{for(var g=0;g<s;g++)a[g]=c[e[g]][p];a[g]=d,h=t.apply(null,a)}h&&(i[l++]=p)}return l<r&&(n._indices=i),n._count=l,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(e){var t=this.clone(),n=t._count;if(!n)return this;var r=Ee(e),o=r.length;if(!o)return this;var i=t.count(),a=qm(t._rawCount),s=new a(i),l=0,u=r[0],c=e[u][0],d=e[u][1],h=t._chunks,p=!1;if(!t._indices){var f=0;if(1===o){for(var g=h[r[0]],m=0;m<n;m++){var v=g[m];(v>=c&&v<=d||isNaN(v))&&(s[l++]=f),f++}p=!0}else if(2===o){g=h[r[0]];var y=h[r[1]],b=e[r[1]][0],_=e[r[1]][1];for(m=0;m<n;m++){v=g[m];var x=y[m];(v>=c&&v<=d||isNaN(v))&&(x>=b&&x<=_||isNaN(x))&&(s[l++]=f),f++}p=!0}}if(!p)if(1===o)for(m=0;m<i;m++){var w=t.getRawIndex(m);v=h[r[0]][w];(v>=c&&v<=d||isNaN(v))&&(s[l++]=w)}else for(m=0;m<i;m++){for(var O=!0,S=(w=t.getRawIndex(m),0);S<o;S++){var A=r[S];v=h[A][w];(v<e[A][0]||v>e[A][1])&&(O=!1)}O&&(s[l++]=t.getRawIndex(m))}return l<i&&(t._indices=s),t._count=l,t._extent=[],t._updateGetRawIdx(),t},e.prototype.map=function(e,t){var n=this.clone(e);return this._updateDims(n,e,t),n},e.prototype.modify=function(e,t){this._updateDims(this,e,t)},e.prototype._updateDims=function(e,t,n){for(var r=e._chunks,o=[],i=t.length,a=e.count(),s=[],l=e._rawExtent,u=0;u<t.length;u++)l[t[u]]=Km();for(var c=0;c<a;c++){for(var d=e.getRawIndex(c),h=0;h<i;h++)s[h]=r[t[h]][d];s[i]=c;var p=n&&n.apply(null,s);if(null!=p){"object"!==typeof p&&(o[0]=p,p=o);for(u=0;u<p.length;u++){var f=t[u],g=p[u],m=l[f],v=r[f];v&&(v[d]=g),g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}}},e.prototype.lttbDownSample=function(e,t){var n,r,o,i=this.clone([e],!0),a=i._chunks,s=a[e],l=this.count(),u=0,c=Math.floor(1/t),d=this.getRawIndex(0),h=new(qm(this._rawCount))(Math.min(2*(Math.ceil(l/c)+2),l));h[u++]=d;for(var p=1;p<l-1;p+=c){for(var f=Math.min(p+c,l-1),g=Math.min(p+2*c,l),m=(g+f)/2,v=0,y=f;y<g;y++){var b=this.getRawIndex(y),_=s[b];isNaN(_)||(v+=_)}v/=g-f;var x=p,w=Math.min(p+c,l),O=p-1,S=s[d];n=-1,o=x;var A=-1,k=0;for(y=x;y<w;y++){b=this.getRawIndex(y),_=s[b];isNaN(_)?(k++,A<0&&(A=b)):(r=Math.abs((O-m)*(_-S)-(O-y)*(v-S)),r>n&&(n=r,o=b))}k>0&&k<w-x&&(h[u++]=Math.min(A,o),o=Math.max(A,o)),h[u++]=o,d=o}return h[u++]=this.getRawIndex(l-1),i._count=u,i._indices=h,i.getRawIndex=this._getRawIdx,i},e.prototype.downSample=function(e,t,n,r){for(var o=this.clone([e],!0),i=o._chunks,a=[],s=Math.floor(1/t),l=i[e],u=this.count(),c=o._rawExtent[e]=Km(),d=new(qm(this._rawCount))(Math.ceil(u/s)),h=0,p=0;p<u;p+=s){s>u-p&&(s=u-p,a.length=s);for(var f=0;f<s;f++){var g=this.getRawIndex(p+f);a[f]=l[g]}var m=n(a),v=this.getRawIndex(Math.min(p+r(a,m)||0,u-1));l[v]=m,m<c[0]&&(c[0]=m),m>c[1]&&(c[1]=m),d[h++]=v}return o._count=h,o._indices=d,o._updateGetRawIdx(),o},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,r=this._chunks,o=0,i=this.count();o<i;o++){var a=this.getRawIndex(o);switch(n){case 0:t(o);break;case 1:t(r[e[0]][a],o);break;case 2:t(r[e[0]][a],r[e[1]][a],o);break;default:for(var s=0,l=[];s<n;s++)l[s]=r[e[s]][a];l[s]=o,t.apply(null,l)}}},e.prototype.getDataExtent=function(e){var t=this._chunks[e],n=Km();if(!t)return n;var r,o=this.count(),i=!this._indices;if(i)return this._rawExtent[e].slice();if(r=this._extent[e],r)return r.slice();r=n;for(var a=r[0],s=r[1],l=0;l<o;l++){var u=this.getRawIndex(l),c=t[u];c<a&&(a=c),c>s&&(s=c)}return r=[a,s],this._extent[e]=r,r},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],r=this._chunks,o=0;o<r.length;o++)n.push(r[o][t]);return n},e.prototype.clone=function(t,n){var r=new e,o=this._chunks,i=t&&Pe(t,(function(e,t){return e[t]=!0,e}),{});if(i)for(var a=0;a<o.length;a++)r._chunks[a]=i[a]?Jm(o[a]):o[a];else r._chunks=o;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},e.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=ye(this._extent),e._rawExtent=ye(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var n=this._indices.length;t=new e(n);for(var r=0;r<n;r++)t[r]=this._indices[r]}else t=new e(this._indices);return t}return null},e.prototype._getRawIdxIdentity=function(e){return e},e.prototype._getRawIdx=function(e){return e<this._count&&e>=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,r){return Am(e[r],this._dimensions[r])}Wm={arrayRows:e,objectRows:function(e,t,n,r){return Am(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var o=e&&(null==e.value?e:e.value);return Am(o instanceof Array?o[r]:o,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}(),nv=tv,rv=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,r=this._getUpstreamSourceManagers(),o=!!r.length;if(iv(n)){var i=n,a=void 0,s=void 0,l=void 0;if(o){var u=r[0];u.prepareSource(),l=u.getSource(),a=l.data,s=l.sourceFormat,t=[u._getVersionSign()]}else a=i.get("data",!0),s=We(a)?Of:bf,t=[];var c=this._getSourceMetaRawOption()||{},d=l&&l.metaRawOption||{},h=qe(c.seriesLayoutBy,d.seriesLayoutBy)||null,p=qe(c.sourceHeader,d.sourceHeader),f=qe(c.dimensions,d.dimensions),g=h!==d.seriesLayoutBy||!!p!==!!d.sourceHeader||f;e=g?[Yg(a,{seriesLayoutBy:h,sourceHeader:p,dimensions:f},s)]:[]}else{var m=n;if(o){var v=this._applyTransform(r);e=v.sourceList,t=v.upstreamSignList}else{var y=m.get("source",!0);e=[Yg(y,this._getSourceMetaRawOption(),null)],t=[]}}this._setLocalSource(e,t)},e.prototype._applyTransform=function(e){var t,n=this._sourceHost,r=n.get("transform",!0),o=n.get("fromTransformResult",!0);if(null!=o){var i="";1!==e.length&&av(i)}var a=[],s=[];return Me(e,(function(e){e.prepareSource();var t=e.getSource(o||0),n="";null==o||t||av(n),a.push(t),s.push(e._getVersionSign())})),r?t=jm(r,a,{datasetIndex:n.componentIndex}):null!=o&&(t=[Kg(a[0])]),{sourceList:t,upstreamSignList:s}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var n=e[t];if(n._isDirty()||this._upstreamSignList[t]!==n._getVersionSign())return!0}},e.prototype.getSource=function(e){e=e||0;var t=this._sourceList[e];if(!t){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return t},e.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},e.prototype._innerGetDataStore=function(e,t,n){var r=0,o=this._storeList,i=o[r];i||(i=o[r]={});var a=i[n];if(!a){var s=this._getUpstreamSourceManagers()[0];iv(this._sourceHost)&&s?a=s._innerGetDataStore(e,t,n):(a=new nv,a.initData(new im(t,e.length),e)),i[n]=a}return a},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(iv(e)){var t=$f(e);return t?[t.getSourceManager()]:[]}return Te(Ef(e),(function(e){return e.getSourceManager()}))},e.prototype._getSourceMetaRawOption=function(){var e,t,n,r=this._sourceHost;if(iv(r))e=r.get("seriesLayoutBy",!0),t=r.get("sourceHeader",!0),n=r.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var o=r;e=o.get("seriesLayoutBy",!0),t=o.get("sourceHeader",!0),n=o.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:t,dimensions:n}},e}();function ov(e){var t=e.option.transform;t&&ot(e.option.transform)}function iv(e){return"series"===e.mainType}function av(e){throw new Error(e)}var sv="line-height:1";function lv(e,t){var n=e.color||"#6e7079",r=e.fontSize||12,o=e.fontWeight||"400",i=e.color||"#464646",a=e.fontSize||14,s=e.fontWeight||"900";return"html"===t?{nameStyle:"font-size:"+an(r+"")+"px;color:"+an(n)+";font-weight:"+an(o+""),valueStyle:"font-size:"+an(a+"")+"px;color:"+an(i)+";font-weight:"+an(s+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:o},valueStyle:{fontSize:a,fill:i,fontWeight:s}}}var uv=[0,10,20,30],cv=["","\n","\n\n","\n\n\n"];function dv(e,t){return t.type=e,t}function hv(e){return"section"===e.type}function pv(e){return hv(e)?gv:mv}function fv(e){if(hv(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return Me(e.blocks,(function(e){var n=fv(e);n>=t&&(t=n+ +(r&&(!n||hv(e)&&!e.noHeader)))})),t}return 0}function gv(e,t,n,r){var o=t.noHeader,i=yv(fv(t)),a=[],s=t.blocks||[];tt(!s||Le(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(ft(u,l)){var c=new Pm(u[l],null);s.sort((function(e,t){return c.evaluate(e.sortParam,t.sortParam)}))}else"seriesDesc"===l&&s.reverse()}Me(s,(function(n,o){var s=t.valueFormatter,l=pv(n)(s?xe(xe({},e),{valueFormatter:s}):e,n,o>0?i.html:0,r);null!=l&&a.push(l)}));var d="richText"===e.renderMode?a.join(i.richText):bv(a.join(""),o?n:i.html);if(o)return d;var h=jp(t.header,"ordinal",e.useUTC),p=lv(r,e.renderMode).nameStyle;return"richText"===e.renderMode?wv(e,h,p)+i.richText+d:bv('<div style="'+p+";"+sv+';">'+an(h)+"</div>"+d,n)}function mv(e,t,n,r){var o=e.renderMode,i=t.noName,a=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,c=t.valueFormatter||e.valueFormatter||function(e){return e=Le(e)?e:[e],Te(e,(function(e,t){return jp(e,Le(p)?p[t]:p,u)}))};if(!i||!a){var d=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",o),h=i?"":jp(l,"ordinal",u),p=t.valueType,f=a?[]:c(t.value,t.dataIndex),g=!s||!i,m=!s&&i,v=lv(r,o),y=v.nameStyle,b=v.valueStyle;return"richText"===o?(s?"":d)+(i?"":wv(e,h,y))+(a?"":Ov(e,f,g,m,b)):bv((s?"":d)+(i?"":_v(h,!s,y))+(a?"":xv(f,g,m,b)),n)}}function vv(e,t,n,r,o,i){if(e){var a=pv(e),s={useUTC:o,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter};return a(s,e,0,i)}}function yv(e){return{html:uv[e],richText:cv[e]}}function bv(e,t){var n='<div style="clear:both"></div>',r="margin: "+t+"px 0 0";return'<div style="'+r+";"+sv+';">'+e+n+"</div>"}function _v(e,t,n){var r=t?"margin-left:2px":"";return'<span style="'+n+";"+r+'">'+an(e)+"</span>"}function xv(e,t,n,r){var o=n?"10px":"20px",i=t?"float:right;margin-left:"+o:"";return e=Le(e)?e:[e],'<span style="'+i+";"+r+'">'+Te(e,(function(e){return an(e)})).join("&nbsp;&nbsp;")+"</span>"}function wv(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function Ov(e,t,n,r,o){var i=[o],a=r?10:20;return n&&i.push({padding:[0,0,0,a],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(Le(t)?t.join(" "):t,i)}function Sv(e,t){var n=e.getData().getItemVisual(t,"style"),r=n[e.visualDrawType];return Up(r)}function Av(e,t){var n=e.get("padding");return null!=n?n:"richText"===t?[8,10]:10}var kv=function(){function e(){this.richTextStyles={},this._nextStyleNameId=_s()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var r="richText"===n?this._generateStyleName():null,o=Zp({color:t,type:e,renderMode:n,markerId:r});return Ve(o)?o:(this.richTextStyles[r]=o.style,o.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};Le(t)?Me(t,(function(e){return xe(n,e)})):xe(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,"{"+r+"|"+e+"}"},e}();function Cv(e){var t,n,r,o,i=e.series,a=e.dataIndex,s=e.multipleSeries,l=i.getData(),u=l.mapDimensionsAll("defaultedTooltip"),c=u.length,d=i.getRawValue(a),h=Le(d),p=Sv(i,a);if(c>1||h&&!c){var f=Mv(d,i,a,u,p);t=f.inlineValues,n=f.inlineValueTypes,r=f.blocks,o=f.inlineValues[0]}else if(c){var g=l.getDimensionInfo(u[0]);o=t=mm(l,a,u[0]),n=g.type}else o=t=h?d[0]:d;var m=js(i),v=m&&i.name||"",y=l.getName(a),b=s?v:y;return dv("section",{header:v,noHeader:s||!m,sortParam:o,blocks:[dv("nameValue",{markerType:"item",markerColor:p,name:b,noName:!nt(b),value:t,valueType:n,dataIndex:a})].concat(r||[])})}function Mv(e,t,n,r,o){var i=t.getData(),a=Pe(e,(function(e,t,n){var r=i.getDimensionInfo(n);return e||r&&!1!==r.tooltip&&null!=r.displayName}),!1),s=[],l=[],u=[];function c(e,t){var n=i.getDimensionInfo(t);n&&!1!==n.otherDims.tooltip&&(a?u.push(dv("nameValue",{markerType:"subItem",markerColor:o,name:n.displayName,value:e,valueType:n.type})):(s.push(e),l.push(n.type)))}return r.length?Me(r,(function(e){c(mm(i,n,e),e)})):Me(e,c),{inlineValues:s,inlineValueTypes:l,blocks:u}}var Tv=Xs();function Pv(e,t){return e.getName(t)||e.getId(t)}var Iv="__universalTransitionEnabled",$v=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return Q(t,e),t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=_m({count:Rv,reset:Nv}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n);var r=Tv(this).sourceManager=new rv(this);r.prepareSource();var o=this.getInitialData(e,n);zv(o,this),this.dataTask.context.data=o,Tv(this).dataBeforeProcessed=o,Ev(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=sf(this),r=n?uf(e):{},o=this.subType;ff.hasClass(o)&&(o+="Series"),be(e,t.getTheme().get(this.subType)),be(e,this.getDefaultOption()),Cs(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&lf(e,r,n)},t.prototype.mergeOption=function(e,t){e=be(this.option,e,!0),this.fillDataTextStyle(e.data);var n=sf(this);n&&lf(this.option,e,n);var r=Tv(this).sourceManager;r.dirty(),r.prepareSource();var o=this.getInitialData(e,t);zv(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Tv(this).dataBeforeProcessed=o,Ev(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!We(e))for(var t=["show"],n=0;n<e.length;n++)e[n]&&e[n].label&&Cs(e[n],"label",t)},t.prototype.getInitialData=function(e,t){},t.prototype.appendData=function(e){var t=this.getRawData();t.appendData(e.data)},t.prototype.getData=function(e){var t=Bv(this);if(t){var n=t.context.data;return null!=e&&n.getLinkedData?n.getLinkedData(e):n}return Tv(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var t=Bv(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}Tv(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return ct(e)},t.prototype.getSourceManager=function(){return Tv(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Tv(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var e=this.get("colorBy");return e||"series"},t.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.formatTooltip=function(e,t,n){return Cv({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(G.node&&(!e||!e.ssr))return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),!!t},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,n){var r=this.ecModel,o=Wf.prototype.getColorFromPalette.call(this,e,t,n);return o||(o=r.getColorFromPalette(e,t,n)),o},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 r=this.option.selectedMode,o=this.getData(t);if("series"===r||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var i=0;i<e.length;i++){var a=e[i],s=Pv(o,a);n[s]=!1,this._selectedDataIndicesMap[s]=-1}}},t.prototype.toggleSelect=function(e,t){for(var n=[],r=0;r<e.length;r++)n[0]=e[r],this.isSelected(e[r],t)?this.unselect(n,t):this.select(n,t)},t.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,t=Ee(e),n=[],r=0;r<t.length;r++){var o=e[t[r]];o>=0&&n.push(o)}return n},t.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(t);return("all"===n||n[Pv(r,e)])&&!r.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Iv])return!0;var e=this.option.universalTransition;return!!e&&(!0===e||e&&e.enabled)},t.prototype._innerSelect=function(e,t){var n,r,o=this.option,i=o.selectedMode,a=t.length;if(i&&a)if("series"===i)o.selectedMap="all";else if("multiple"===i){Qe(o.selectedMap)||(o.selectedMap={});for(var s=o.selectedMap,l=0;l<a;l++){var u=t[l],c=Pv(e,u);s[c]=!0,this._selectedDataIndicesMap[c]=e.getRawIndex(u)}}else if("single"===i||!0===i){var d=t[a-1];c=Pv(e,d);o.selectedMap=(n={},n[c]=!0,n),this._selectedDataIndicesMap=(r={},r[c]=e.getRawIndex(d),r)}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var t=[];e.hasItemOption&&e.each((function(n){var r=e.getRawDataItem(n);r&&r.selected&&t.push(n)})),t.length>0&&this._innerSelect(e,t)}},t.registerClass=function(e){return ff.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}(ff);function Ev(e){var t=e.name;js(e)||(e.name=Dv(e)||t)}function Dv(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),r=[];return Me(n,(function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)})),r.join(" ")}function Rv(e){return e.model.getRawData().count()}function Nv(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),Lv}function Lv(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function zv(e,t){Me(dt(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),(function(n){e.wrapMethod(n,Ne(Vv,t))}))}function Vv(e,t){var n=Bv(e);return n&&n.setOutputEnd((t||this).count()),t}function Bv(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var o=r.agentStubMap;o&&(r=o.get(e.uid))}return r}}ke($v,ym),ke($v,Wf),fl($v,ff);var jv=$v,Qv=function(){function e(){this.group=new Da,this.uid=Wh("viewComponent")}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){},e.prototype.updateLayout=function(e,t,n,r){},e.prototype.updateVisual=function(e,t,n,r){},e.prototype.toggleBlurSeries=function(e,t,n){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();hl(Qv),bl(Qv);var Fv=Qv;function Wv(){var e=Xs();return function(t){var n=e(t),r=t.pipelineContext,o=!!n.large,i=!!n.progressiveRender,a=n.large=!(!r||!r.large),s=n.progressiveRender=!(!r||!r.progressiveRender);return!(o===a&&i===s)&&"reset"}}var Hv=Du.CMD,Zv=[[],[],[]],Gv=Math.sqrt,Xv=Math.atan2;function Uv(e,t){if(t){var n,r,o,i,a,s,l=e.data,u=e.len(),c=Hv.M,d=Hv.C,h=Hv.L,p=Hv.R,f=Hv.A,g=Hv.Q;for(o=0,i=0;o<u;){switch(n=l[o++],i=o,r=0,n){case c:r=1;break;case h:r=1;break;case d:r=3;break;case g:r=2;break;case f:var m=t[4],v=t[5],y=Gv(t[0]*t[0]+t[1]*t[1]),b=Gv(t[2]*t[2]+t[3]*t[3]),_=Xv(-t[1]/b,t[0]/y);l[o]*=y,l[o++]+=m,l[o]*=b,l[o++]+=v,l[o++]*=y,l[o++]*=b,l[o++]+=_,l[o++]+=_,o+=2,i=o;break;case p:s[0]=l[o++],s[1]=l[o++],Vt(s,s,t),l[i++]=s[0],l[i++]=s[1],s[0]+=l[o++],s[1]+=l[o++],Vt(s,s,t),l[i++]=s[0],l[i++]=s[1]}for(a=0;a<r;a++){var x=Zv[a];x[0]=l[o++],x[1]=l[o++],Vt(x,x,t),l[i++]=x[0],l[i++]=x[1]}}e.increaseVersion()}}var Yv=Math.sqrt,qv=Math.sin,Kv=Math.cos,Jv=Math.PI;function ey(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function ty(e,t){return(e[0]*t[0]+e[1]*t[1])/(ey(e)*ey(t))}function ny(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(ty(e,t))}function ry(e,t,n,r,o,i,a,s,l,u,c){var d=l*(Jv/180),h=Kv(d)*(e-n)/2+qv(d)*(t-r)/2,p=-1*qv(d)*(e-n)/2+Kv(d)*(t-r)/2,f=h*h/(a*a)+p*p/(s*s);f>1&&(a*=Yv(f),s*=Yv(f));var g=(o===i?-1:1)*Yv((a*a*(s*s)-a*a*(p*p)-s*s*(h*h))/(a*a*(p*p)+s*s*(h*h)))||0,m=g*a*p/s,v=g*-s*h/a,y=(e+n)/2+Kv(d)*m-qv(d)*v,b=(t+r)/2+qv(d)*m+Kv(d)*v,_=ny([1,0],[(h-m)/a,(p-v)/s]),x=[(h-m)/a,(p-v)/s],w=[(-1*h-m)/a,(-1*p-v)/s],O=ny(x,w);if(ty(x,w)<=-1&&(O=Jv),ty(x,w)>=1&&(O=0),O<0){var S=Math.round(O/Jv*1e6)/1e6;O=2*Jv+S%2*Jv}c.addData(u,y,b,a,s,_,O,d,i)}var oy=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,iy=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function ay(e){var t=new Du;if(!e)return t;var n,r=0,o=0,i=r,a=o,s=Du.CMD,l=e.match(oy);if(!l)return t;for(var u=0;u<l.length;u++){for(var c=l[u],d=c.charAt(0),h=void 0,p=c.match(iy)||[],f=p.length,g=0;g<f;g++)p[g]=parseFloat(p[g]);var m=0;while(m<f){var v=void 0,y=void 0,b=void 0,_=void 0,x=void 0,w=void 0,O=void 0,S=r,A=o,k=void 0,C=void 0;switch(d){case"l":r+=p[m++],o+=p[m++],h=s.L,t.addData(h,r,o);break;case"L":r=p[m++],o=p[m++],h=s.L,t.addData(h,r,o);break;case"m":r+=p[m++],o+=p[m++],h=s.M,t.addData(h,r,o),i=r,a=o,d="l";break;case"M":r=p[m++],o=p[m++],h=s.M,t.addData(h,r,o),i=r,a=o,d="L";break;case"h":r+=p[m++],h=s.L,t.addData(h,r,o);break;case"H":r=p[m++],h=s.L,t.addData(h,r,o);break;case"v":o+=p[m++],h=s.L,t.addData(h,r,o);break;case"V":o=p[m++],h=s.L,t.addData(h,r,o);break;case"C":h=s.C,t.addData(h,p[m++],p[m++],p[m++],p[m++],p[m++],p[m++]),r=p[m-2],o=p[m-1];break;case"c":h=s.C,t.addData(h,p[m++]+r,p[m++]+o,p[m++]+r,p[m++]+o,p[m++]+r,p[m++]+o),r+=p[m-2],o+=p[m-1];break;case"S":v=r,y=o,k=t.len(),C=t.data,n===s.C&&(v+=r-C[k-4],y+=o-C[k-3]),h=s.C,S=p[m++],A=p[m++],r=p[m++],o=p[m++],t.addData(h,v,y,S,A,r,o);break;case"s":v=r,y=o,k=t.len(),C=t.data,n===s.C&&(v+=r-C[k-4],y+=o-C[k-3]),h=s.C,S=r+p[m++],A=o+p[m++],r+=p[m++],o+=p[m++],t.addData(h,v,y,S,A,r,o);break;case"Q":S=p[m++],A=p[m++],r=p[m++],o=p[m++],h=s.Q,t.addData(h,S,A,r,o);break;case"q":S=p[m++]+r,A=p[m++]+o,r+=p[m++],o+=p[m++],h=s.Q,t.addData(h,S,A,r,o);break;case"T":v=r,y=o,k=t.len(),C=t.data,n===s.Q&&(v+=r-C[k-4],y+=o-C[k-3]),r=p[m++],o=p[m++],h=s.Q,t.addData(h,v,y,r,o);break;case"t":v=r,y=o,k=t.len(),C=t.data,n===s.Q&&(v+=r-C[k-4],y+=o-C[k-3]),r+=p[m++],o+=p[m++],h=s.Q,t.addData(h,v,y,r,o);break;case"A":b=p[m++],_=p[m++],x=p[m++],w=p[m++],O=p[m++],S=r,A=o,r=p[m++],o=p[m++],h=s.A,ry(S,A,r,o,w,O,b,_,x,h,t);break;case"a":b=p[m++],_=p[m++],x=p[m++],w=p[m++],O=p[m++],S=r,A=o,r+=p[m++],o+=p[m++],h=s.A,ry(S,A,r,o,w,O,b,_,x,h,t);break}}"z"!==d&&"Z"!==d||(h=s.Z,t.addData(h),r=i,o=a),n=h}return t.toStatic(),t}var sy=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Q(t,e),t.prototype.applyTransform=function(e){},t}(ac);function ly(e){return null!=e.setData}function uy(e,t){var n=ay(e),r=xe({},t);return r.buildPath=function(e){if(ly(e)){e.setData(n.data);var t=e.getContext();t&&e.rebuildPath(t,1)}else{t=e;n.rebuildPath(t,1)}},r.applyTransform=function(e){Uv(n,e),this.dirtyShape()},r}function cy(e,t){return new sy(uy(e,t))}function dy(e,t){var n=uy(e,t),r=function(e){function t(t){var r=e.call(this,t)||this;return r.applyTransform=n.applyTransform,r.buildPath=n.buildPath,r}return Q(t,e),t}(sy);return r}function hy(e,t){for(var n=[],r=e.length,o=0;o<r;o++){var i=e[o];n.push(i.getUpdatedPathProxy(!0))}var a=new ac(t);return a.createPathProxy(),a.buildPath=function(e){if(ly(e)){e.appendPath(n);var t=e.getContext();t&&e.rebuildPath(t,1)}},a}function py(e,t){t=t||{};var n=new ac;return e.shape&&n.setShape(e.shape),n.setStyle(e.style),t.bakeTransform?Uv(n.path,e.getComputedTransform()):t.toLocal?n.setLocalTransform(e.getComputedTransform()):n.copyTransform(e),n.buildPath=e.buildPath,n.applyTransform=n.applyTransform,n.z=e.z,n.z2=e.z2,n.zlevel=e.zlevel,n}var fy=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),gy=function(e){function t(t){return e.call(this,t)||this}return Q(t,e),t.prototype.getDefaultShape=function(){return new fy},t.prototype.buildPath=function(e,t){e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,2*Math.PI)},t}(ac);gy.prototype.type="circle";var my=gy,vy=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),yy=function(e){function t(t){return e.call(this,t)||this}return Q(t,e),t.prototype.getDefaultShape=function(){return new vy},t.prototype.buildPath=function(e,t){var n=.5522848,r=t.cx,o=t.cy,i=t.rx,a=t.ry,s=i*n,l=a*n;e.moveTo(r-i,o),e.bezierCurveTo(r-i,o-l,r-s,o-a,r,o-a),e.bezierCurveTo(r+s,o-a,r+i,o-l,r+i,o),e.bezierCurveTo(r+i,o+l,r+s,o+a,r,o+a),e.bezierCurveTo(r-s,o+a,r-i,o+l,r-i,o),e.closePath()},t}(ac);yy.prototype.type="ellipse";var by=yy,_y=Math.PI,xy=2*_y,wy=Math.sin,Oy=Math.cos,Sy=Math.acos,Ay=Math.atan2,ky=Math.abs,Cy=Math.sqrt,My=Math.max,Ty=Math.min,Py=1e-4;function Iy(e,t,n,r,o,i,a,s){var l=n-e,u=r-t,c=a-o,d=s-i,h=d*l-c*u;if(!(h*h<Py))return h=(c*(t-i)-d*(e-o))/h,[e+h*l,t+h*u]}function $y(e,t,n,r,o,i,a){var s=e-n,l=t-r,u=(a?i:-i)/Cy(s*s+l*l),c=u*l,d=-u*s,h=e+c,p=t+d,f=n+c,g=r+d,m=(h+f)/2,v=(p+g)/2,y=f-h,b=g-p,_=y*y+b*b,x=o-i,w=h*g-f*p,O=(b<0?-1:1)*Cy(My(0,x*x*_-w*w)),S=(w*b-y*O)/_,A=(-w*y-b*O)/_,k=(w*b+y*O)/_,C=(-w*y+b*O)/_,M=S-m,T=A-v,P=k-m,I=C-v;return M*M+T*T>P*P+I*I&&(S=k,A=C),{cx:S,cy:A,x0:-c,y0:-d,x1:S*(o/x-1),y1:A*(o/x-1)}}function Ey(e){var t;if(Le(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 Dy(e,t){var n,r=My(t.r,0),o=My(t.r0||0,0),i=r>0,a=o>0;if(i||a){if(i||(r=o,o=0),o>r){var s=r;r=o,o=s}var l=t.startAngle,u=t.endAngle;if(!isNaN(l)&&!isNaN(u)){var c=t.cx,d=t.cy,h=!!t.clockwise,p=ky(u-l),f=p>xy&&p%xy;if(f>Py&&(p=f),r>Py)if(p>xy-Py)e.moveTo(c+r*Oy(l),d+r*wy(l)),e.arc(c,d,r,l,u,!h),o>Py&&(e.moveTo(c+o*Oy(u),d+o*wy(u)),e.arc(c,d,o,u,l,h));else{var g=void 0,m=void 0,v=void 0,y=void 0,b=void 0,_=void 0,x=void 0,w=void 0,O=void 0,S=void 0,A=void 0,k=void 0,C=void 0,M=void 0,T=void 0,P=void 0,I=r*Oy(l),$=r*wy(l),E=o*Oy(u),D=o*wy(u),R=p>Py;if(R){var N=t.cornerRadius;N&&(n=Ey(N),g=n[0],m=n[1],v=n[2],y=n[3]);var L=ky(r-o)/2;if(b=Ty(L,v),_=Ty(L,y),x=Ty(L,g),w=Ty(L,m),A=O=My(b,_),k=S=My(x,w),(O>Py||S>Py)&&(C=r*Oy(u),M=r*wy(u),T=o*Oy(l),P=o*wy(l),p<_y)){var z=Iy(I,$,T,P,C,M,E,D);if(z){var V=I-z[0],B=$-z[1],j=C-z[0],Q=M-z[1],F=1/wy(Sy((V*j+B*Q)/(Cy(V*V+B*B)*Cy(j*j+Q*Q)))/2),W=Cy(z[0]*z[0]+z[1]*z[1]);A=Ty(O,(r-W)/(F+1)),k=Ty(S,(o-W)/(F-1))}}}if(R)if(A>Py){var H=Ty(v,A),Z=Ty(y,A),G=$y(T,P,I,$,r,H,h),X=$y(C,M,E,D,r,Z,h);e.moveTo(c+G.cx+G.x0,d+G.cy+G.y0),A<O&&H===Z?e.arc(c+G.cx,d+G.cy,A,Ay(G.y0,G.x0),Ay(X.y0,X.x0),!h):(H>0&&e.arc(c+G.cx,d+G.cy,H,Ay(G.y0,G.x0),Ay(G.y1,G.x1),!h),e.arc(c,d,r,Ay(G.cy+G.y1,G.cx+G.x1),Ay(X.cy+X.y1,X.cx+X.x1),!h),Z>0&&e.arc(c+X.cx,d+X.cy,Z,Ay(X.y1,X.x1),Ay(X.y0,X.x0),!h))}else e.moveTo(c+I,d+$),e.arc(c,d,r,l,u,!h);else e.moveTo(c+I,d+$);if(o>Py&&R)if(k>Py){H=Ty(g,k),Z=Ty(m,k),G=$y(E,D,C,M,o,-Z,h),X=$y(I,$,T,P,o,-H,h);e.lineTo(c+G.cx+G.x0,d+G.cy+G.y0),k<S&&H===Z?e.arc(c+G.cx,d+G.cy,k,Ay(G.y0,G.x0),Ay(X.y0,X.x0),!h):(Z>0&&e.arc(c+G.cx,d+G.cy,Z,Ay(G.y0,G.x0),Ay(G.y1,G.x1),!h),e.arc(c,d,o,Ay(G.cy+G.y1,G.cx+G.x1),Ay(X.cy+X.y1,X.cx+X.x1),h),H>0&&e.arc(c+X.cx,d+X.cy,H,Ay(X.y1,X.x1),Ay(X.y0,X.x0),!h))}else e.lineTo(c+E,d+D),e.arc(c,d,o,u,l,h);else e.lineTo(c+E,d+D)}else e.moveTo(c,d);e.closePath()}}}var Ry=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}(),Ny=function(e){function t(t){return e.call(this,t)||this}return Q(t,e),t.prototype.getDefaultShape=function(){return new Ry},t.prototype.buildPath=function(e,t){Dy(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(ac);Ny.prototype.type="sector";var Ly=Ny,zy=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),Vy=function(e){function t(t){return e.call(this,t)||this}return Q(t,e),t.prototype.getDefaultShape=function(){return new zy},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,o=2*Math.PI;e.moveTo(n+t.r,r),e.arc(n,r,t.r,0,o,!1),e.moveTo(n+t.r0,r),e.arc(n,r,t.r0,0,o,!0)},t}(ac);Vy.prototype.type="ring";var By=Vy;function jy(e,t,n,r){var o,i,a,s,l=[],u=[],c=[],d=[];if(r){a=[1/0,1/0],s=[-1/0,-1/0];for(var h=0,p=e.length;h<p;h++)Bt(a,a,e[h]),jt(s,s,e[h]);Bt(a,a,r[0]),jt(s,s,r[1])}for(h=0,p=e.length;h<p;h++){var f=e[h];if(n)o=e[h?h-1:p-1],i=e[(h+1)%p];else{if(0===h||h===p-1){l.push(bt(e[h]));continue}o=e[h-1],i=e[h+1]}Ot(u,i,o),It(u,u,t);var g=Et(f,o),m=Et(f,i),v=g+m;0!==v&&(g/=v,m/=v),It(c,u,-g),It(d,u,m);var y=xt([],f,c),b=xt([],f,d);r&&(jt(y,y,a),Bt(y,y,s),jt(b,b,a),Bt(b,b,s)),l.push(y),l.push(b)}return n&&l.push(l.shift()),l}function Qy(e,t,n){var r=t.smooth,o=t.points;if(o&&o.length>=2){if(r){var i=jy(o,r,n,t.smoothConstraint);e.moveTo(o[0][0],o[0][1]);for(var a=o.length,s=0;s<(n?a:a-1);s++){var l=i[2*s],u=i[2*s+1],c=o[(s+1)%a];e.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{e.moveTo(o[0][0],o[0][1]);s=1;for(var d=o.length;s<d;s++)e.lineTo(o[s][0],o[s][1])}n&&e.closePath()}}var Fy=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),Wy=function(e){function t(t){return e.call(this,t)||this}return Q(t,e),t.prototype.getDefaultShape=function(){return new Fy},t.prototype.buildPath=function(e,t){Qy(e,t,!0)},t}(ac);Wy.prototype.type="polygon";var Hy=Wy,Zy=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),Gy=function(e){function t(t){return e.call(this,t)||this}return Q(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Zy},t.prototype.buildPath=function(e,t){Qy(e,t,!1)},t}(ac);Gy.prototype.type="polyline";var Xy=Gy,Uy={},Yy=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),qy=function(e){function t(t){return e.call(this,t)||this}return Q(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Yy},t.prototype.buildPath=function(e,t){var n,r,o,i;if(this.subPixelOptimize){var a=vc(Uy,t,this.style);n=a.x1,r=a.y1,o=a.x2,i=a.y2}else n=t.x1,r=t.y1,o=t.x2,i=t.y2;var s=t.percent;0!==s&&(e.moveTo(n,r),s<1&&(o=n*(1-s)+o*s,i=r*(1-s)+i*s),e.lineTo(o,i))},t.prototype.pointAt=function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]},t}(ac);qy.prototype.type="line";var Ky=qy,Jy=[],eb=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e}();function tb(e,t,n){var r=e.cpx2,o=e.cpy2;return null!=r||null!=o?[(n?Nr:Rr)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?Nr:Rr)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?Fr:Qr)(e.x1,e.cpx1,e.x2,t),(n?Fr:Qr)(e.y1,e.cpy1,e.y2,t)]}var nb=function(e){function t(t){return e.call(this,t)||this}return Q(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new eb},t.prototype.buildPath=function(e,t){var n=t.x1,r=t.y1,o=t.x2,i=t.y2,a=t.cpx1,s=t.cpy1,l=t.cpx2,u=t.cpy2,c=t.percent;0!==c&&(e.moveTo(n,r),null==l||null==u?(c<1&&(Zr(n,a,o,c,Jy),a=Jy[1],o=Jy[2],Zr(r,s,i,c,Jy),s=Jy[1],i=Jy[2]),e.quadraticCurveTo(a,s,o,i)):(c<1&&(Vr(n,a,l,o,c,Jy),a=Jy[1],l=Jy[2],o=Jy[3],Vr(r,s,u,i,c,Jy),s=Jy[1],u=Jy[2],i=Jy[3]),e.bezierCurveTo(a,s,l,u,o,i)))},t.prototype.pointAt=function(e){return tb(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t=tb(this.shape,e,!0);return $t(t,t)},t}(ac);nb.prototype.type="bezier-curve";var rb=nb,ob=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return e}(),ib=function(e){function t(t){return e.call(this,t)||this}return Q(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new ob},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,o=Math.max(t.r,0),i=t.startAngle,a=t.endAngle,s=t.clockwise,l=Math.cos(i),u=Math.sin(i);e.moveTo(l*o+n,u*o+r),e.arc(n,r,o,i,a,!s)},t}(ac);ib.prototype.type="arc";var ab=ib,sb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="compound",t}return Q(t,e),t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,t=this.shapeChanged(),n=0;n<e.length;n++)t=t||e[n].shapeChanged();t&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],t=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(t[0],t[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,t){for(var n=t.paths||[],r=0;r<n.length;r++)n[r].buildPath(e,n[r].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],t=0;t<e.length;t++)e[t].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),ac.prototype.getBoundingRect.call(this)},t}(ac),lb=sb,ub=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}(),cb=ub,db=function(e){function t(t,n,r,o,i,a){var s=e.call(this,i)||this;return s.x=null==t?0:t,s.y=null==n?0:n,s.x2=null==r?1:r,s.y2=null==o?0:o,s.type="linear",s.global=a||!1,s}return Q(t,e),t}(cb),hb=db,pb=function(e){function t(t,n,r,o,i){var a=e.call(this,o)||this;return a.x=null==t?.5:t,a.y=null==n?.5:n,a.r=null==r?.5:r,a.type="radial",a.global=i||!1,a}return Q(t,e),t}(cb),fb=pb,gb=[0,0],mb=[0,0],vb=new En,yb=new En,bb=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new En;for(n=0;n<2;n++)this._axes[n]=new En;e&&this.fromBoundingRect(e,t)}return e.prototype.fromBoundingRect=function(e,t){var n=this._corners,r=this._axes,o=e.x,i=e.y,a=o+e.width,s=i+e.height;if(n[0].set(o,i),n[1].set(a,i),n[2].set(a,s),n[3].set(o,s),t)for(var l=0;l<4;l++)n[l].transform(t);En.sub(r[0],n[1],n[0]),En.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(l=0;l<2;l++)this._origin[l]=r[l].dot(n[0])},e.prototype.intersect=function(e,t){var n=!0,r=!t;return vb.set(1/0,1/0),yb.set(0,0),!this._intersectCheckOneSide(this,e,vb,yb,r,1)&&(n=!1,r)||!this._intersectCheckOneSide(e,this,vb,yb,r,-1)&&(n=!1,r)||r||En.copy(t,n?vb:yb),n},e.prototype._intersectCheckOneSide=function(e,t,n,r,o,i){for(var a=!0,s=0;s<2;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,e._corners,gb),this._getProjMinMaxOnAxis(s,t._corners,mb),gb[1]<mb[0]||gb[0]>mb[1]){if(a=!1,o)return a;var u=Math.abs(mb[0]-gb[1]),c=Math.abs(gb[0]-mb[1]);Math.min(u,c)>r.len()&&(u<c?En.scale(r,l,-u*i):En.scale(r,l,c*i))}else if(n){u=Math.abs(mb[0]-gb[1]),c=Math.abs(gb[0]-mb[1]);Math.min(u,c)<n.len()&&(u<c?En.scale(n,l,u*i):En.scale(n,l,-c*i))}}return a},e.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var r=this._axes[e],o=this._origin,i=t[0].dot(r)+o[e],a=i,s=i,l=1;l<t.length;l++){var u=t[l].dot(r)+o[e];a=Math.min(u,a),s=Math.max(u,s)}n[0]=a,n[1]=s},e}(),_b=bb,xb=[],wb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return Q(t,e),t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,t){t=t||!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],t)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var t=this._cursor;t<this._displayables.length;t++)e&&e(this._displayables[t]);for(t=0;t<this._temporaryDisplayables.length;t++)e&&e(this._temporaryDisplayables[t])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var t=this._displayables[e];t.parent=this,t.update(),t.parent=null}for(e=0;e<this._temporaryDisplayables.length;e++){t=this._temporaryDisplayables[e];t.parent=this,t.update(),t.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new Fn(1/0,1/0,-1/0,-1/0),t=0;t<this._displayables.length;t++){var n=this._displayables[t],r=n.getBoundingRect().clone();n.needLocalTransform()&&r.applyTransform(n.getLocalTransform(xb)),e.union(r)}this._rect=e}return this._rect},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect();if(r.contain(n[0],n[1]))for(var o=0;o<this._displayables.length;o++){var i=this._displayables[o];if(i.contain(e,t))return!0}return!1},t}(Jl),Ob=wb,Sb=Math.max,Ab=Math.min,kb={};function Cb(e){return ac.extend(e)}var Mb=dy;function Tb(e,t){return Mb(e,t)}function Pb(e,t){kb[e]=t}function Ib(e){if(kb.hasOwnProperty(e))return kb[e]}function $b(e,t,n,r){var o=cy(e,t);return n&&("center"===r&&(n=Db(n,o.getBoundingRect())),Nb(o,n)),o}function Eb(e,t,n){var r=new fc({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if("center"===n){var o={width:e.width,height:e.height};r.setStyle(Db(t,o))}}});return r}function Db(e,t){var n,r=t.width/t.height,o=e.height*r;o<=e.width?n=e.height:(o=e.width,n=o/r);var i=e.x+e.width/2,a=e.y+e.height/2;return{x:i-o/2,y:a-n/2,width:o,height:n}}var Rb=hy;function Nb(e,t){if(e.applyTransform){var n=e.getBoundingRect(),r=n.calculateTransform(t);e.applyTransform(r)}}function Lb(e,t){return vc(e,e,{lineWidth:t}),e}function zb(e){return yc(e.shape,e.shape,e.style),e}var Vb=bc;function Bb(e,t){var n=Sn([]);while(e&&e!==t)kn(n,e.getLocalTransform(),n),e=e.parent;return n}function jb(e,t,n){return t&&!Ce(t)&&(t=ua.getLocalTransform(t)),n&&(t=Pn([],t)),Vt([],e,t)}function Qb(e,t,n){var r=0===t[4]||0===t[5]||0===t[0]?1:Math.abs(2*t[4]/t[0]),o=0===t[4]||0===t[5]||0===t[2]?1:Math.abs(2*t[4]/t[2]),i=["left"===e?-r:"right"===e?r:0,"top"===e?-o:"bottom"===e?o:0];return i=jb(i,t,n),Math.abs(i[0])>Math.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function Fb(e){return!e.isGroup}function Wb(e){return null!=e.shape}function Hb(e,t,n){if(e&&t){var r=o(e);t.traverse((function(e){if(Fb(e)&&e.anid){var t=r[e.anid];if(t){var o=i(e);e.attr(i(t)),ih(e,o,n,Qc(e).dataIndex)}}}))}function o(e){var t={};return e.traverse((function(e){Fb(e)&&e.anid&&(t[e.anid]=e)})),t}function i(e){var t={x:e.x,y:e.y,rotation:e.rotation};return Wb(e)&&(t.shape=xe({},e.shape)),t}}function Zb(e,t){return Te(e,(function(e){var n=e[0];n=Sb(n,t.x),n=Ab(n,t.x+t.width);var r=e[1];return r=Sb(r,t.y),r=Ab(r,t.y+t.height),[n,r]}))}function Gb(e,t){var n=Sb(e.x,t.x),r=Ab(e.x+e.width,t.x+t.width),o=Sb(e.y,t.y),i=Ab(e.y+e.height,t.y+t.height);if(r>=n&&i>=o)return{x:n,y:o,width:r-n,height:i-o}}function Xb(e,t,n){var r=xe({rectHover:!0},t),o=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return 0===e.indexOf("image://")?(o.image=e.slice(8),we(o,n),new fc(r)):$b(e.replace("path://",""),r,n,"center")}function Ub(e,t,n,r,o){for(var i=0,a=o[o.length-1];i<o.length;i++){var s=o[i];if(Yb(e,t,n,r,s[0],s[1],a[0],a[1]))return!0;a=s}}function Yb(e,t,n,r,o,i,a,s){var l=n-e,u=r-t,c=a-o,d=s-i,h=qb(c,d,l,u);if(Kb(h))return!1;var p=e-o,f=t-i,g=qb(p,f,l,u)/h;if(g<0||g>1)return!1;var m=qb(p,f,c,d)/h;return!(m<0||m>1)}function qb(e,t,n,r){return e*r-n*t}function Kb(e){return e<=1e-6&&e>=-1e-6}function Jb(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,o=Ve(t)?{formatter:t}:t,i=n.mainType,a=n.componentIndex,s={componentType:i,name:r,$vars:["name"]};s[i+"Index"]=a;var l=e.formatterParamsExtra;l&&Me(Ee(l),(function(e){ft(s,e)||(s[e]=l[e],s.$vars.push(e))}));var u=Qc(e.el);u.componentMainType=i,u.componentIndex=a,u.tooltipConfig={name:r,option:we({content:r,encodeHTMLContent:!0,formatterParams:s},o)}}function e_(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function t_(e,t){if(e)if(Le(e))for(var n=0;n<e.length;n++)e_(e[n],t);else e_(e,t)}Pb("circle",my),Pb("ellipse",by),Pb("sector",Ly),Pb("ring",By),Pb("polygon",Hy),Pb("polyline",Xy),Pb("rect",Oc),Pb("line",Ky),Pb("bezierCurve",rb),Pb("arc",ab);var n_=Xs(),r_=Wv(),o_=function(){function e(){this.group=new Da,this.uid=Wh("viewChart"),this.renderTask=_m({plan:s_,reset:l_}),this.renderTask.context={view:this}}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){0},e.prototype.highlight=function(e,t,n,r){var o=e.getData(r&&r.dataType);o&&a_(o,r,"emphasis")},e.prototype.downplay=function(e,t,n,r){var o=e.getData(r&&r.dataType);o&&a_(o,r,"normal")},e.prototype.remove=function(e,t){this.group.removeAll()},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateLayout=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateVisual=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.eachRendered=function(e){t_(this.group,e)},e.markUpdateMethod=function(e,t){n_(e).updateMethod=t},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function i_(e,t,n){e&&Yd(e)&&("emphasis"===t?Ad:kd)(e,n)}function a_(e,t,n){var r=Gs(e,t),o=t&&null!=t.highlightKey?Kd(t.highlightKey):null;null!=r?Me(ks(r),(function(t){i_(e.getItemGraphicEl(t),n,o)})):e.eachItemGraphicEl((function(e){i_(e,n,o)}))}function s_(e){return r_(e.model)}function l_(e){var t=e.model,n=e.ecModel,r=e.api,o=e.payload,i=t.pipelineContext.progressiveRender,a=e.view,s=o&&n_(o).updateMethod,l=i?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](t,n,r,o),u_[l]}hl(o_,["dispose"]),bl(o_);var u_={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},c_=o_,d_="\0__throttleOriginMethod",h_="\0__throttleRate",p_="\0__throttleType";function f_(e,t,n){var r,o,i,a,s,l=0,u=0,c=null;function d(){u=(new Date).getTime(),c=null,e.apply(i,a||[])}t=t||0;var h=function(){for(var e=[],h=0;h<arguments.length;h++)e[h]=arguments[h];r=(new Date).getTime(),i=this,a=e;var p=s||t,f=s||n;s=null,o=r-(f?l:u)-p,clearTimeout(c),f?c=setTimeout(d,p):o>=0?d():c=setTimeout(d,-o),l=r};return h.clear=function(){c&&(clearTimeout(c),c=null)},h.debounceNextCall=function(e){s=e},h}function g_(e,t,n,r){var o=e[t];if(o){var i=o[d_]||o,a=o[p_],s=o[h_];if(s!==n||a!==r){if(null==n||!r)return e[t]=i;o=e[t]=f_(i,n,"debounce"===r),o[d_]=i,o[p_]=r,o[h_]=n}return o}}function m_(e,t){var n=e[t];n&&n[d_]&&(n.clear&&n.clear(),e[t]=n[d_])}var v_=Xs(),y_={itemStyle:_l(zh,!0),lineStyle:_l(Rh,!0)},b_={lineStyle:"stroke",itemStyle:"fill"};function __(e,t){var n=e.visualStyleMapper||y_[t];return n||(console.warn("Unknown style type '"+t+"'."),y_.itemStyle)}function x_(e,t){var n=e.visualDrawType||b_[t];return n||(console.warn("Unknown style type '"+t+"'."),"fill")}var w_={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",o=e.getModel(r),i=__(e,r),a=i(o),s=o.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=x_(e,r),u=a[l],c=ze(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||ze(a.fill)?h:a.fill,a.stroke="auto"===a.stroke||ze(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 r=e.getDataParams(n),o=xe({},a);o[l]=c(r),t.setItemVisual(n,"style",o)}}}},O_=new Qh,S_={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData&&!t.isSeriesFiltered(e)){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",o=__(e,r),i=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){O_.option=n[r];var a=o(O_),s=e.ensureUniqueItemVisual(t,"style");xe(s,a),O_.option.decal&&(e.setItemVisual(t,"decal",O_.option.decal),O_.option.decal.dirty=!0),i in a&&e.setItemVisual(t,"colorFromPalette",!1)}}:null}}}},A_={performRawSeries:!0,overallReset:function(e){var t=ct();e.eachSeries((function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var r=e.type+"-"+n,o=t.get(r);o||(o={},t.set(r,o)),v_(e).scope=o}})),e.eachSeries((function(t){if(!t.isColorBySeries()&&!e.isSeriesFiltered(t)){var n=t.getRawData(),r={},o=t.getData(),i=v_(t).scope,a=t.visualStyleAccessPath||"itemStyle",s=x_(t,a);o.each((function(e){var t=o.getRawIndex(e);r[t]=e})),n.each((function(e){var a=r[e],l=o.getItemVisual(a,"colorFromPalette");if(l){var u=o.ensureUniqueItemVisual(a,"style"),c=n.getName(e)||e+"",d=n.count();u[s]=t.getColorFromPalette(c,i,d)}}))}}))}},k_=Math.PI;function C_(e,t){t=t||{},we(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 Da,r=new Oc({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var o,i=new jc({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 Oc({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});return n.add(a),t.showSpinner&&(o=new ab({shape:{startAngle:-k_/2,endAngle:-k_/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:3*k_/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:3*k_/2}).delay(300).start("circularInOut"),n.add(o)),n.resize=function(){var n=i.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&&o.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var M_=function(){function e(e,t,n,r){this._stageTaskMap=ct(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}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),r=n.context,o=!t&&n.progressiveEnabled&&(!r||r.progressiveRender)&&e.__idxInPipeline>n.blockIndex,i=o?n.step:null,a=r&&r.modDataCount,s=null!=a?Math.ceil(a/i):null;return{step:i,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),r=e.getData(),o=r.count(),i=n.progressiveEnabled&&t.incrementalPrepareRender&&o>=n.threshold,a=e.get("large")&&o>=e.get("largeThreshold"),s="mod"===e.get("progressiveChunkMode")?o:null;e.pipelineContext=n.context={progressiveRender:i,modDataCount:s,large:a}},e.prototype.restorePipelines=function(e){var t=this,n=t._pipelineMap=ct();e.eachSeries((function(e){var r=e.getProgressive(),o=e.uid;n.set(o,{id:o,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:r&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),t._pipe(e,e.dataTask)}))},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;Me(this._allHandlers,(function(r){var o=e.get(r.uid)||e.set(r.uid,{}),i="";tt(!(r.reset&&r.overallReset),i),r.reset&&this._createSeriesStageTask(r,o,t,n),r.overallReset&&this._createOverallStageTask(r,o,t,n)}),this)},e.prototype.prepareView=function(e,t,n,r){var o=e.renderTask,i=o.context;i.model=t,i.ecModel=n,i.api=r,o.__block=!e.incrementalPrepareRender,this._pipe(t,o)},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,r){r=r||{};var o=!1,i=this;function a(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}Me(e,(function(e,s){if(!r.visualType||r.visualType===e.visualType){var l=i._stageTaskMap.get(e.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var d,h=c.agentStubMap;h.each((function(e){a(r,e)&&(e.dirty(),d=!0)})),d&&c.dirty(),i.updatePayload(c,n);var p=i.getPerformArgs(c,r.block);h.each((function(e){e.perform(p)})),c.perform(p)&&(o=!0)}else u&&u.each((function(s,l){a(r,s)&&s.dirty();var u=i.getPerformArgs(s,r.block);u.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),i.updatePayload(s,n),s.perform(u)&&(o=!0)}))}})),this.unfinished=o||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,r){var o=this,i=t.seriesTaskMap,a=t.seriesTaskMap=ct(),s=e.seriesType,l=e.getTargetSeries;function u(t){var s=t.uid,l=a.set(s,i&&i.get(s)||_m({plan:E_,reset:D_,count:L_}));l.context={model:t,ecModel:n,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:o},o._pipe(t,l)}e.createOnAllSeries?n.eachRawSeries(u):s?n.eachRawSeriesByType(s,u):l&&l(n,r).each(u)},e.prototype._createOverallStageTask=function(e,t,n,r){var o=this,i=t.overallTask=t.overallTask||_m({reset:T_});i.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:o};var a=i.agentStubMap,s=i.agentStubMap=ct(),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,_m({reset:P_,onDirty:$_})));n.context={model:e,overallProgress:c},n.agent=i,n.__block=c,o._pipe(e,n)}tt(!e.createOnAllSeries,h),l?n.eachRawSeriesByType(l,p):u?u(n,r).each(p):(c=!1,Me(n.getSeries(),p)),d&&i.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=t),r.tail&&r.tail.pipe(t),r.tail=t,t.__idxInPipeline=r.count++,t.__pipeline=r},e.wrapStageHandler=function(e,t){return ze(e)&&(e={overallReset:e,seriesType:z_(e)}),e.uid=Wh("stageHandler"),t&&(e.visualType=t),e},e}();function T_(e){e.overallReset(e.ecModel,e.api,e.payload)}function P_(e){return e.overallProgress&&I_}function I_(){this.agent.dirty(),this.getDownstream().dirty()}function $_(){this.agent&&this.agent.dirty()}function E_(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function D_(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=ks(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Te(t,(function(e,t){return N_(t)})):R_}var R_=N_(0);function N_(e){return function(t,n){var r=n.data,o=n.resetDefines[e];if(o&&o.dataEach)for(var i=t.start;i<t.end;i++)o.dataEach(r,i);else o&&o.progress&&o.progress(t,r)}}function L_(e){return e.data.count()}function z_(e){V_=null;try{e(B_,j_)}catch(Py){}return V_}var V_,B_={},j_={};function Q_(e,t){for(var n in t.prototype)e[n]=gt}Q_(B_,rg),Q_(j_,ag),B_.eachSeriesByType=B_.eachRawSeriesByType=function(e){V_=e},B_.eachComponent=function(e){"series"===e.mainType&&e.subType&&(V_=e.subType)};var F_=M_,W_=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],H_={color:W_,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],W_]},Z_="#B9B8CE",G_="#100C2A",X_=function(){return{axisLine:{lineStyle:{color:Z_}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},U_=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],Y_={darkMode:!0,color:U_,backgroundColor:G_,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Z_}},textStyle:{color:Z_},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Z_}},dataZoom:{borderColor:"#71708A",textStyle:{color:Z_},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:Z_}},timeline:{lineStyle:{color:Z_},label:{color:Z_},controlStyle:{color:Z_,borderColor:Z_}},calendar:{itemStyle:{color:G_},dayLabel:{color:Z_},monthLabel:{color:Z_},yearLabel:{color:Z_}},timeAxis:X_(),logAxis:X_(),valueAxis:X_(),categoryAxis:X_(),line:{symbol:"circle"},graph:{color:U_},gauge:{title:{color:Z_},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Z_},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};Y_.categoryAxis.splitLine.show=!1;var q_=Y_,K_=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},r={};if(Ve(e)){var o=ul(e);t.mainType=o.main||null,t.subType=o.sub||null}else{var i=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};Me(e,(function(e,o){for(var s=!1,l=0;l<i.length;l++){var u=i[l],c=o.lastIndexOf(u);if(c>0&&c===o.length-u.length){var d=o.slice(0,c);"data"!==d&&(t.mainType=d,t[u.toLowerCase()]=e,s=!0)}}a.hasOwnProperty(o)&&(n[o]=e,s=!0),s||(r[o]=e)}))}return{cptQuery:t,dataQuery:n,otherQuery:r}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,o=n.packedEvent,i=n.model,a=n.view;if(!i||!a)return!0;var s=t.cptQuery,l=t.dataQuery;return u(s,i,"mainType")&&u(s,i,"subType")&&u(s,i,"index","componentIndex")&&u(s,i,"name")&&u(s,i,"id")&&u(l,o,"name")&&u(l,o,"dataIndex")&&u(l,o,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(e,t.otherQuery,r,o));function u(e,t,n,r){return null==e[n]||t[r||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),J_=["symbol","symbolSize","symbolRotate","symbolOffset"],ex=J_.concat(["symbolKeepAspect"]),tx={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual("legendIcon",e.legendIcon),e.hasSymbolVisual){for(var r={},o={},i=!1,a=0;a<J_.length;a++){var s=J_[a],l=e.get(s);ze(l)?(i=!0,o[s]=l):r[s]=l}if(r.symbol=r.symbol||e.defaultSymbol,n.setVisual(xe({legendIcon:e.legendIcon||r.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},r)),!t.isSeriesFiltered(e)){var u=Ee(o);return{dataEach:i?c:null}}}function c(t,n){for(var r=e.getRawValue(n),i=e.getDataParams(n),a=0;a<u.length;a++){var s=u[a];t.setItemVisual(n,s,o[s](r,i))}}}},nx={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(e.hasSymbolVisual&&!t.isSeriesFiltered(e)){var n=e.getData();return{dataEach:n.hasItemOption?r:null}}function r(e,t){for(var n=e.getItemModel(t),r=0;r<ex.length;r++){var o=ex[r],i=n.getShallow(o,!0);null!=i&&e.setItemVisual(t,o,i)}}}};function rx(e,t,n){switch(n){case"color":var r=e.getItemVisual(t,"style");return r[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,n);default:0}}function ox(e,t){switch(t){case"color":var n=e.getVisual("style");return n[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t);default:0}}function ix(e,t,n,r){switch(n){case"color":var o=e.ensureUniqueItemVisual(t,"style");o[e.getVisual("drawType")]=r,e.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":e.ensureUniqueItemVisual(t,"style").opacity=r;break;case"symbol":case"symbolSize":case"liftZ":e.setItemVisual(t,n,r);break;default:0}}function ax(e,t){function n(t,n){var r=[];return t.eachComponent({mainType:"series",subType:e,query:n},(function(e){r.push(e.seriesIndex)})),r}Me([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],(function(e){t(e[0],(function(t,r,o){t=xe({},t),o.dispatchAction(xe(t,{type:e[1],seriesIndex:n(r,t)}))}))}))}function sx(e,t,n,r,o){var i=e+t;n.isSilent(i)||r.eachComponent({mainType:"series",subType:"pie"},(function(e){for(var t=e.seriesIndex,r=e.option.selectedMap,a=o.selected,s=0;s<a.length;s++)if(a[s].seriesIndex===t){var l=e.getData(),u=Gs(l,o.fromActionPayload);n.trigger(i,{type:i,seriesId:e.id,name:Le(u)?l.getName(u[0]):l.getName(u),selected:Ve(r)?r:xe({},r)})}}))}function lx(e,t,n){e.on("selectchanged",(function(e){var r=n.getModel();e.isFromClick?(sx("map","selectchanged",t,r,e),sx("pie","selectchanged",t,r,e)):"select"===e.fromAction?(sx("map","selected",t,r,e),sx("pie","selected",t,r,e)):"unselect"===e.fromAction&&(sx("map","unselected",t,r,e),sx("pie","unselected",t,r,e))}))}function ux(e,t,n){var r;while(e){if(t(e)&&(r=e,n))break;e=e.__hostTarget||e.parent}return r}var cx=Math.round(9*Math.random()),dx="function"===typeof Object.defineProperty,hx=function(){function e(){this._id="__ec_inner_"+cx++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return dx?Object.defineProperty(n,this._id,{value:t,enumerable:!1,configurable:!0}):n[this._id]=t,this},e.prototype["delete"]=function(e){return!!this.has(e)&&(delete this._guard(e)[this._id],!0)},e.prototype.has=function(e){return!!this._guard(e)[this._id]},e.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},e}(),px=hx,fx=ac.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,o=t.width/2,i=t.height/2;e.moveTo(n,r-i),e.lineTo(n+o,r+i),e.lineTo(n-o,r+i),e.closePath()}}),gx=ac.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,o=t.width/2,i=t.height/2;e.moveTo(n,r-i),e.lineTo(n+o,r),e.lineTo(n,r+i),e.lineTo(n-o,r),e.closePath()}}),mx=ac.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,r=t.y,o=t.width/5*3,i=Math.max(o,t.height),a=o/2,s=a*a/(i-a),l=r-i+a+s,u=Math.asin(s/a),c=Math.cos(u)*a,d=Math.sin(u),h=Math.cos(u),p=.6*a,f=.7*a;e.moveTo(n-c,l+s),e.arc(n,l,a,Math.PI-u,2*Math.PI+u),e.bezierCurveTo(n+c-d*p,l+s+h*p,n,r-f,n,r),e.bezierCurveTo(n,r-f,n-c+d*p,l+s+h*p,n-c,l+s),e.closePath()}}),vx=ac.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,r=t.width,o=t.x,i=t.y,a=r/3*2;e.moveTo(o,i),e.lineTo(o+a,i+n),e.lineTo(o,i+n/4*3),e.lineTo(o-a,i+n),e.lineTo(o,i),e.closePath()}}),yx={line:Ky,rect:Oc,roundRect:Oc,square:Oc,circle:my,diamond:gx,pin:mx,arrow:vx,triangle:fx},bx={line:function(e,t,n,r,o){o.x1=e,o.y1=t+r/2,o.x2=e+n,o.y2=t+r/2},rect:function(e,t,n,r,o){o.x=e,o.y=t,o.width=n,o.height=r},roundRect:function(e,t,n,r,o){o.x=e,o.y=t,o.width=n,o.height=r,o.r=Math.min(n,r)/4},square:function(e,t,n,r,o){var i=Math.min(n,r);o.x=e,o.y=t,o.width=i,o.height=i},circle:function(e,t,n,r,o){o.cx=e+n/2,o.cy=t+r/2,o.r=Math.min(n,r)/2},diamond:function(e,t,n,r,o){o.cx=e+n/2,o.cy=t+r/2,o.width=n,o.height=r},pin:function(e,t,n,r,o){o.x=e+n/2,o.y=t+r/2,o.width=n,o.height=r},arrow:function(e,t,n,r,o){o.x=e+n/2,o.y=t+r/2,o.width=n,o.height=r},triangle:function(e,t,n,r,o){o.cx=e+n/2,o.cy=t+r/2,o.width=n,o.height=r}},_x={};Me(yx,(function(e,t){_x[t]=new e}));var xx=ac.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=ya(e,t,n),o=this.shape;return o&&"pin"===o.symbolType&&"inside"===t.position&&(r.y=n.y+.4*n.height),r},buildPath:function(e,t,n){var r=t.symbolType;if("none"!==r){var o=_x[r];o||(r="rect",o=_x[r]),bx[r](t.x,t.y,t.width,t.height,o.shape),o.buildPath(e,o.shape,n)}}});function Ox(e,t){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=e:n.fill=e,this.markRedraw()}}function Sx(e,t,n,r,o,i,a){var s,l=0===e.indexOf("empty");return l&&(e=e.substr(5,1).toLowerCase()+e.substr(6)),s=0===e.indexOf("image://")?Eb(e.slice(8),new Fn(t,n,r,o),a?"center":"cover"):0===e.indexOf("path://")?$b(e.slice(7),{},new Fn(t,n,r,o),a?"center":"cover"):new xx({shape:{symbolType:e,x:t,y:n,width:r,height:o}}),s.__isEmptyBrush=l,s.setColor=Ox,i&&s.setColor(i),s}function Ax(e){return Le(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function kx(e,t){if(null!=e)return Le(e)||(e=[e,e]),[Ja(e[0],t[0])||0,Ja(qe(e[1],e[0]),t[1])||0]}function Cx(e){return isFinite(e)}function Mx(e,t,n){var r=null==t.x?0:t.x,o=null==t.x2?1:t.x2,i=null==t.y?0:t.y,a=null==t.y2?0:t.y2;t.global||(r=r*n.width+n.x,o=o*n.width+n.x,i=i*n.height+n.y,a=a*n.height+n.y),r=Cx(r)?r:0,o=Cx(o)?o:1,i=Cx(i)?i:0,a=Cx(a)?a:0;var s=e.createLinearGradient(r,i,o,a);return s}function Tx(e,t,n){var r=n.width,o=n.height,i=Math.min(r,o),a=null==t.x?.5:t.x,s=null==t.y?.5:t.y,l=null==t.r?.5:t.r;t.global||(a=a*r+n.x,s=s*o+n.y,l*=i),a=Cx(a)?a:.5,s=Cx(s)?s:.5,l=l>=0&&Cx(l)?l:.5;var u=e.createRadialGradient(a,s,0,a,s,l);return u}function Px(e,t,n){for(var r="radial"===t.type?Tx(e,t,n):Mx(e,t,n),o=t.colorStops,i=0;i<o.length;i++)r.addColorStop(o[i].offset,o[i].color);return r}function Ix(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!0;return!1}function $x(e){return parseInt(e,10)}function Ex(e,t,n){var r=["width","height"][t],o=["clientWidth","clientHeight"][t],i=["paddingLeft","paddingTop"][t],a=["paddingRight","paddingBottom"][t];if(null!=n[r]&&"auto"!==n[r])return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(e);return(e[o]||$x(s[r])||$x(e.style[r]))-($x(s[i])||0)-($x(s[a])||0)|0}function Dx(e,t){return e&&"solid"!==e&&t>0?"dashed"===e?[4*t,2*t]:"dotted"===e?[t]:je(e)?[e]:Le(e)?e:null:null}function Rx(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&Dx(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var o=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;o&&1!==o&&(n=Te(n,(function(e){return e/o})),r/=o)}return[n,r]}var Nx=new Du(!0);function Lx(e){var t=e.stroke;return!(null==t||"none"===t||!(e.lineWidth>0))}function zx(e){return"string"===typeof e&&"none"!==e}function Vx(e){var t=e.fill;return null!=t&&"none"!==t}function Bx(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 jx(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 Qx(e,t,n){var r=kl(t.image,t.__image,n);if(Ml(r)){var o=e.createPattern(r,t.repeat||"repeat");if("function"===typeof DOMMatrix&&o&&o.setTransform){var i=new DOMMatrix;i.translateSelf(t.x||0,t.y||0),i.rotateSelf(0,0,(t.rotation||0)*mt),i.scaleSelf(t.scaleX||1,t.scaleY||1),o.setTransform(i)}return o}}function Fx(e,t,n,r){var o,i=Lx(n),a=Vx(n),s=n.strokePercent,l=s<1,u=!t.path;t.silent&&!l||!u||t.createPathProxy();var c=t.path||Nx,d=t.__dirty;if(!r){var h=n.fill,p=n.stroke,f=a&&!!h.colorStops,g=i&&!!p.colorStops,m=a&&!!h.image,v=i&&!!p.image,y=void 0,b=void 0,_=void 0,x=void 0,w=void 0;(f||g)&&(w=t.getBoundingRect()),f&&(y=d?Px(e,h,w):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(b=d?Px(e,p,w):t.__canvasStrokeGradient,t.__canvasStrokeGradient=b),m&&(_=d||!t.__canvasFillPattern?Qx(e,h,t):t.__canvasFillPattern,t.__canvasFillPattern=_),v&&(x=d||!t.__canvasStrokePattern?Qx(e,p,t):t.__canvasStrokePattern,t.__canvasStrokePattern=_),f?e.fillStyle=y:m&&(_?e.fillStyle=_:a=!1),g?e.strokeStyle=b:v&&(x?e.strokeStyle=x:i=!1)}var O,S,A=t.getGlobalScale();c.setScale(A[0],A[1],t.segmentIgnoreThreshold),e.setLineDash&&n.lineDash&&(o=Rx(t),O=o[0],S=o[1]);var k=!0;(u||d&fr)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),k=!1),c.reset(),t.buildPath(c,t.shape,r),c.toStatic(),t.pathUpdated()),k&&c.rebuildPath(e,l?s:1),O&&(e.setLineDash(O),e.lineDashOffset=S),r||(n.strokeFirst?(i&&jx(e,n),a&&Bx(e,n)):(a&&Bx(e,n),i&&jx(e,n))),O&&e.setLineDash([])}function Wx(e,t,n){var r=t.__image=kl(n.image,t.__image,t,t.onload);if(r&&Ml(r)){var o=n.x||0,i=n.y||0,a=t.getWidth(),s=t.getHeight(),l=r.width/r.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=r.width,s=r.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;e.drawImage(r,u,c,n.sWidth,n.sHeight,o,i,a,s)}else if(n.sx&&n.sy){u=n.sx,c=n.sy;var d=a-u,h=s-c;e.drawImage(r,u,c,d,h,o,i,a,s)}else e.drawImage(r,o,i,a,s)}}function Hx(e,t,n){var r,o=n.text;if(null!=o&&(o+=""),o){e.font=n.font||Y,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var i=void 0,a=void 0;e.setLineDash&&n.lineDash&&(r=Rx(t),i=r[0],a=r[1]),i&&(e.setLineDash(i),e.lineDashOffset=a),n.strokeFirst?(Lx(n)&&e.strokeText(o,n.x,n.y),Vx(n)&&e.fillText(o,n.x,n.y)):(Vx(n)&&e.fillText(o,n.x,n.y),Lx(n)&&e.strokeText(o,n.x,n.y)),i&&e.setLineDash([])}}var Zx=["shadowBlur","shadowOffsetX","shadowOffsetY"],Gx=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Xx(e,t,n,r,o){var i=!1;if(!r&&(n=n||{},t===n))return!1;if(r||t.opacity!==n.opacity){iw(e,o),i=!0;var a=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(a)?Hl.opacity:a}(r||t.blend!==n.blend)&&(i||(iw(e,o),i=!0),e.globalCompositeOperation=t.blend||Hl.blend);for(var s=0;s<Zx.length;s++){var l=Zx[s];(r||t[l]!==n[l])&&(i||(iw(e,o),i=!0),e[l]=e.dpr*(t[l]||0))}return(r||t.shadowColor!==n.shadowColor)&&(i||(iw(e,o),i=!0),e.shadowColor=t.shadowColor||Hl.shadowColor),i}function Ux(e,t,n,r,o){var i=aw(t,o.inHover),a=r?null:n&&aw(n,o.inHover)||{};if(i===a)return!1;var s=Xx(e,i,a,r,o);if((r||i.fill!==a.fill)&&(s||(iw(e,o),s=!0),zx(i.fill)&&(e.fillStyle=i.fill)),(r||i.stroke!==a.stroke)&&(s||(iw(e,o),s=!0),zx(i.stroke)&&(e.strokeStyle=i.stroke)),(r||i.opacity!==a.opacity)&&(s||(iw(e,o),s=!0),e.globalAlpha=null==i.opacity?1:i.opacity),t.hasStroke()){var l=i.lineWidth,u=l/(i.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==u&&(s||(iw(e,o),s=!0),e.lineWidth=u)}for(var c=0;c<Gx.length;c++){var d=Gx[c],h=d[0];(r||i[h]!==a[h])&&(s||(iw(e,o),s=!0),e[h]=i[h]||d[1])}return s}function Yx(e,t,n,r,o){return Xx(e,aw(t,o.inHover),n&&aw(n,o.inHover),r,o)}function qx(e,t){var n=t.transform,r=e.dpr||1;n?e.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):e.setTransform(r,0,0,r,0,0)}function Kx(e,t,n){for(var r=!1,o=0;o<e.length;o++){var i=e[o];r=r||i.isZeroArea(),qx(t,i),t.beginPath(),i.buildPath(t,i.shape),t.clip()}n.allClipped=r}function Jx(e,t){return e&&t?e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[5]!==t[5]:!(!e&&!t)}var ew=1,tw=2,nw=3,rw=4;function ow(e){var t=Vx(e),n=Lx(e);return!(e.lineDash||!(+t^+n)||t&&"string"!==typeof e.fill||n&&"string"!==typeof e.stroke||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function iw(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function aw(e,t){return t&&e.__hoverStyle||e.style}function sw(e,t){lw(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function lw(e,t,n,r){var o=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return t.__dirty&=~hr,void(t.__isRendered=!1);var i=t.__clipPaths,a=n.prevElClipPaths,s=!1,l=!1;if(a&&!Ix(i,a)||(a&&a.length&&(iw(e,n),e.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),i&&i.length&&(iw(e,n),e.save(),Kx(i,e,n),s=!0),n.prevElClipPaths=i),n.allClipped)t.__isRendered=!1;else{t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=n.prevEl;u||(l=s=!0);var c=t instanceof ac&&t.autoBatch&&ow(t.style);s||Jx(o,u.transform)?(iw(e,n),qx(e,t)):c||iw(e,n);var d=aw(t,n.inHover);t instanceof ac?(n.lastDrawType!==ew&&(l=!0,n.lastDrawType=ew),Ux(e,t,u,l,n),c&&(n.batchFill||n.batchStroke)||e.beginPath(),Fx(e,t,d,c),c&&(n.batchFill=d.fill||"",n.batchStroke=d.stroke||"")):t instanceof uc?(n.lastDrawType!==nw&&(l=!0,n.lastDrawType=nw),Ux(e,t,u,l,n),Hx(e,t,d)):t instanceof fc?(n.lastDrawType!==tw&&(l=!0,n.lastDrawType=tw),Yx(e,t,u,l,n),Wx(e,t,d)):t.getTemporalDisplayables&&(n.lastDrawType!==rw&&(l=!0,n.lastDrawType=rw),uw(e,t,n)),c&&r&&iw(e,n),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}}function uw(e,t,n){var r=t.getDisplayables(),o=t.getTemporalDisplayables();e.save();var i,a,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(i=t.getCursor(),a=r.length;i<a;i++){var l=r[i];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),lw(e,l,s,i===a-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}for(var u=0,c=o.length;u<c;u++){l=o[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),lw(e,l,s,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var cw=new px,dw=new no(100),hw=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function pw(e,t){if("none"===e)return null;var n=t.getDevicePixelRatio(),r=t.getZr(),o="svg"===r.painter.type;e.dirty&&cw["delete"](e);var i=cw.get(e);if(i)return i;var a=we(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===a.backgroundColor&&(a.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=a.rotation,s.scaleX=s.scaleY=o?1:1/n,cw.set(e,s),e.dirty=!1,s;function l(e){for(var t,i=[n],s=!0,l=0;l<hw.length;++l){var u=a[hw[l]];if(null!=u&&!Le(u)&&!Ve(u)&&!je(u)&&"boolean"!==typeof u){s=!1;break}i.push(u)}if(s){t=i.join(",")+(o?"-svg":"");var c=dw.get(t);c&&(o?e.svgElement=c:e.image=c)}var d,h=gw(a.dashArrayX),p=mw(a.dashArrayY),f=fw(a.symbol),g=vw(h),m=yw(p),v=!o&&ne.createCanvas(),y=o&&{tag:"g",attrs:{},key:"dcl",children:[]},b=_();function _(){for(var e=1,t=0,n=g.length;t<n;++t)e=ws(e,g[t]);var r=1;for(t=0,n=f.length;t<n;++t)r=ws(r,f[t].length);e*=r;var o=m*g.length*f.length;return{width:Math.max(1,Math.min(e,a.maxTileWidth)),height:Math.max(1,Math.min(o,a.maxTileHeight))}}function x(){d&&(d.clearRect(0,0,v.width,v.height),a.backgroundColor&&(d.fillStyle=a.backgroundColor,d.fillRect(0,0,v.width,v.height)));for(var e=0,t=0;t<p.length;++t)e+=p[t];if(!(e<=0)){var i=-m,s=0,l=0,u=0;while(i<b.height){if(s%2===0){var c=l/2%f.length,g=0,_=0,x=0;while(g<2*b.width){var w=0;for(t=0;t<h[u].length;++t)w+=h[u][t];if(w<=0)break;if(_%2===0){var O=.5*(1-a.symbolSize),S=g+h[u][_]*O,A=i+p[s]*O,k=h[u][_]*a.symbolSize,C=p[s]*a.symbolSize,M=x/2%f[c].length;T(S,A,k,C,f[c][M])}g+=h[u][_],++x,++_,_===h[u].length&&(_=0)}++u,u===h.length&&(u=0)}i+=p[s],++l,++s,s===p.length&&(s=0)}}function T(e,t,i,s,l){var u=o?1:n,c=Sx(l,e*u,t*u,i*u,s*u,a.color,a.symbolKeepAspect);if(o){var h=r.painter.renderOneToVNode(c);h&&y.children.push(h)}else sw(d,c)}}v&&(v.width=b.width*n,v.height=b.height*n,d=v.getContext("2d")),x(),s&&dw.put(t,v||y),e.image=v,e.svgElement=y,e.svgWidth=b.width,e.svgHeight=b.height}}function fw(e){if(!e||0===e.length)return[["rect"]];if(Ve(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!Ve(e[n])){t=!1;break}if(t)return fw([e]);var r=[];for(n=0;n<e.length;++n)Ve(e[n])?r.push([e[n]]):r.push(e[n]);return r}function gw(e){if(!e||0===e.length)return[[0,0]];if(je(e)){var t=Math.ceil(e);return[[t,t]]}for(var n=!0,r=0;r<e.length;++r)if(!je(e[r])){n=!1;break}if(n)return gw([e]);var o=[];for(r=0;r<e.length;++r)if(je(e[r])){t=Math.ceil(e[r]);o.push([t,t])}else{t=Te(e[r],(function(e){return Math.ceil(e)}));t.length%2===1?o.push(t.concat(t)):o.push(t)}return o}function mw(e){if(!e||"object"===typeof e&&0===e.length)return[0,0];if(je(e)){var t=Math.ceil(e);return[t,t]}var n=Te(e,(function(e){return Math.ceil(e)}));return e.length%2?n.concat(n):n}function vw(e){return Te(e,(function(e){return yw(e)}))}function yw(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2===1?2*t:t}function bw(e,t){e.eachRawSeries((function(n){if(!e.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each((function(e){var n=r.getItemVisual(e,"decal");if(n){var o=r.ensureUniqueItemVisual(e,"style");o.decal=pw(n,t)}}));var o=r.getVisual("decal");if(o){var i=r.getVisual("style");i.decal=pw(o,t)}}}))}var _w=new Zt,xw=_w,ww={};function Ow(e,t){ww[e]=t}function Sw(e){return ww[e]}var Aw="5.5.1",kw={zrender:"5.6.0"},Cw=1,Mw=800,Tw=900,Pw=1e3,Iw=2e3,$w=5e3,Ew=1e3,Dw=1100,Rw=2e3,Nw=3e3,Lw=4e3,zw=4500,Vw=4600,Bw=5e3,jw=6e3,Qw=7e3,Fw={PROCESSOR:{FILTER:Pw,SERIES_FILTER:Mw,STATISTIC:$w},VISUAL:{LAYOUT:Ew,PROGRESSIVE_LAYOUT:Dw,GLOBAL:Rw,CHART:Nw,POST_CHART_LAYOUT:Vw,COMPONENT:Lw,BRUSH:Bw,CHART_ITEM:zw,ARIA:jw,DECAL:Qw}},Ww="__flagInMainProcess",Hw="__pendingUpdate",Zw="__needsUpdateStatus",Gw=/^[a-zA-Z0-9_]+$/,Xw="__connectUpdateStatus",Uw=0,Yw=1,qw=2;function Kw(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(!this.isDisposed())return eO(this,e,t);SO(this.id)}}function Jw(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return eO(this,e,t)}}function eO(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),Zt.prototype[t].apply(e,n)}var tO,nO,rO,oO,iO,aO,sO,lO,uO,cO,dO,hO,pO,fO,gO,mO,vO,yO,bO=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Q(t,e),t}(Zt),_O=bO.prototype;_O.on=Jw("on"),_O.off=Jw("off");var xO=function(e){function t(t,n,r){var o=e.call(this,new K_)||this;o._chartsViews=[],o._chartsMap={},o._componentsViews=[],o._componentsMap={},o._pendingActions=[],r=r||{},Ve(n)&&(n=PO[n]),o._dom=t;var i="canvas",a="auto",s=!1;r.ssr&&Ga((function(e){var t=Qc(e),n=t.dataIndex;if(null!=n){var r=ct();return r.set("series_index",t.seriesIndex),r.set("data_index",n),t.ssrType&&r.set("ssr_type",t.ssrType),r}}));var l=o._zr=ja(t,{renderer:r.renderer||i,devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:qe(r.useDirtyRect,s),useCoarsePointer:qe(r.useCoarsePointer,a),pointerSize:r.pointerSize});o._ssr=r.ssr,o._throttledZrFlush=f_(Re(l.flush,l),17),n=ye(n),n&&Bg(n,!0),o._theme=n,o._locale=rp(r.locale||tp),o._coordSysMgr=new ug;var u=o._api=gO(o);function c(e,t){return e.__prio-t.__prio}return dr(TO,c),dr(CO,c),o._scheduler=new F_(o,u,CO,TO),o._messageCenter=new bO,o._initEvents(),o.resize=Re(o.resize,o),l.animation.on("frame",o._onframe,o),cO(l,o),dO(l,o),ot(o),o}return Q(t,e),t.prototype._onframe=function(){if(!this._disposed){yO(this);var e=this._scheduler;if(this[Hw]){var t=this[Hw].silent;this[Ww]=!0;try{tO(this),oO.update.call(this,null,this[Hw].updateParams)}catch(Py){throw this[Ww]=!1,this[Hw]=null,Py}this._zr.flush(),this[Ww]=!1,this[Hw]=null,lO.call(this,t),uO.call(this,t)}else if(e.unfinished){var n=Cw,r=this._model,o=this._api;e.unfinished=!1;do{var i=+new Date;e.performSeriesTasks(r),e.performDataProcessorTasks(r),aO(this,r),e.performVisualTasks(r),fO(this,this._model,o,"remain",{}),n-=+new Date-i}while(n>0&&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[Ww])if(this._disposed)SO(this.id);else{var r,o,i;if(Qe(t)&&(n=t.lazyUpdate,r=t.silent,o=t.replaceMerge,i=t.transition,t=t.notMerge),this[Ww]=!0,!this._model||t){var a=new mg(this._api),s=this._theme,l=this._model=new rg;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(e,{replaceMerge:o},MO);var u={seriesTransition:i,optionChanged:!0};if(n)this[Hw]={silent:r,updateParams:u},this[Ww]=!1,this.getZr().wakeUp();else{try{tO(this),oO.update.call(this,null,u)}catch(Py){throw this[Hw]=null,this[Ww]=!1,Py}this._ssr||this._zr.flush(),this[Hw]=null,this[Ww]=!1,lO.call(this,r),uO.call(this,r)}}},t.prototype.setTheme=function(){Om("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||G.hasGlobalWindow&&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(G.svgSupported){var e=this._zr,t=e.storage.getDisplayList();return Me(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,r=[],o=this;Me(t,(function(e){n.eachComponent({mainType:e},(function(e){var t=o._componentsMap[e.__viewId];t.group.ignore||(r.push(t),t.group.ignore=!0)}))}));var i="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return Me(r,(function(e){e.group.ignore=!1})),i}SO(this.id)},t.prototype.getConnectedDataURL=function(e){if(!this._disposed){var t="svg"===e.type,n=this.group,r=Math.min,o=Math.max,i=1/0;if(EO[n]){var a=i,s=i,l=-i,u=-i,c=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();Me($O,(function(i,d){if(i.group===n){var h=t?i.getZr().painter.getSvgDom().innerHTML:i.renderToCanvas(ye(e)),p=i.getDom().getBoundingClientRect();a=r(p.left,a),s=r(p.top,s),l=o(p.right,l),u=o(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=ne.createCanvas(),g=ja(f,{renderer:t?"svg":"canvas"});if(g.resize({width:h,height:p}),t){var m="";return Me(c,(function(e){var t=e.left-a,n=e.top-s;m+='<g transform="translate('+t+","+n+')">'+e.dom+"</g>"})),g.painter.getSvgRoot().innerHTML=m,e.connectedBackgroundColor&&g.painter.setBackgroundColor(e.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}return e.connectedBackgroundColor&&g.add(new Oc({shape:{x:0,y:0,width:h,height:p},style:{fill:e.connectedBackgroundColor}})),Me(c,(function(e){var t=new fc({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)}SO(this.id)},t.prototype.convertToPixel=function(e,t){return iO(this,"convertToPixel",e,t)},t.prototype.convertFromPixel=function(e,t){return iO(this,"convertFromPixel",e,t)},t.prototype.containPixel=function(e,t){if(!this._disposed){var n,r=this._model,o=Ys(r,e);return Me(o,(function(e,r){r.indexOf("Models")>=0&&Me(e,(function(e){var o=e.coordinateSystem;if(o&&o.containPoint)n=n||!!o.containPoint(t);else if("seriesModels"===r){var i=this._chartsMap[e.__viewId];i&&i.containPoint&&(n=n||i.containPoint(t,e))}else 0}),this)}),this),!!n}SO(this.id)},t.prototype.getVisual=function(e,t){var n=this._model,r=Ys(n,e,{defaultMainType:"series"}),o=r.seriesModel;var i=o.getData(),a=r.hasOwnProperty("dataIndexInside")?r.dataIndexInside:r.hasOwnProperty("dataIndex")?i.indexOfRawIndex(r.dataIndex):null;return null!=a?rx(i,a,t):ox(i,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;Me(OO,(function(t){var n=function(n){var r,o=e.getModel(),i=n.target,a="globalout"===t;if(a?r={}:i&&ux(i,(function(e){var t=Qc(e);if(t&&null!=t.dataIndex){var n=t.dataModel||o.getSeriesByIndex(t.seriesIndex);return r=n&&n.getDataParams(t.dataIndex,t.dataType,i)||{},!0}if(t.eventData)return r=xe({},t.eventData),!0}),!0),r){var s=r.componentType,l=r.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",l=r.seriesIndex);var u=s&&null!=l&&o.getComponent(s,l),c=u&&e["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];0,r.event=n,r.type=t,e._$eventProcessor.eventInfo={targetEl:i,packedEvent:r,model:u,view:c},e.trigger(t,r)}};n.zrEventfulCallAtLast=!0,e._zr.on(t,n,e)})),Me(kO,(function(t,n){e._messageCenter.on(n,(function(e){this.trigger(n,e)}),e)})),Me(["selectchanged"],(function(t){e._messageCenter.on(t,(function(e){this.trigger(t,e)}),e)})),lx(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed?SO(this.id):this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed)SO(this.id);else{this._disposed=!0;var e=this.getDom();e&&tl(this.getDom(),NO,"");var t=this,n=t._api,r=t._model;Me(t._componentsViews,(function(e){e.dispose(r,n)})),Me(t._chartsViews,(function(e){e.dispose(r,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 $O[t.id]}},t.prototype.resize=function(e){if(!this[Ww])if(this._disposed)SO(this.id);else{this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption("media"),r=e&&e.silent;this[Hw]&&(null==r&&(r=this[Hw].silent),n=!0,this[Hw]=null),this[Ww]=!0;try{n&&tO(this),oO.update.call(this,{type:"resize",animation:xe({duration:0},e&&e.animation)})}catch(Py){throw this[Ww]=!1,Py}this[Ww]=!1,lO.call(this,r),uO.call(this,r)}}},t.prototype.showLoading=function(e,t){if(this._disposed)SO(this.id);else if(Qe(e)&&(t=e,e=""),e=e||"default",this.hideLoading(),IO[e]){var n=IO[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)}},t.prototype.hideLoading=function(){this._disposed?SO(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t.prototype.makeActionFromEvent=function(e){var t=xe({},e);return t.type=kO[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed)SO(this.id);else if(Qe(t)||(t={silent:!!t}),AO[e.type]&&this._model)if(this[Ww])this._pendingActions.push(e);else{var n=t.silent;sO.call(this,e,n);var r=t.flush;r?this._zr.flush():!1!==r&&G.browser.weChat&&this._throttledZrFlush(),lO.call(this,n),uO.call(this,n)}},t.prototype.updateLabelLayout=function(){xw.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed)SO(this.id);else{var t=e.seriesIndex,n=this.getModel(),r=n.getSeriesByIndex(t);0,r.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=[],r=!1;if(e.eachComponent((function(e,o){var i=o.get("zlevel")||0,a=o.get("z")||0,s=o.getZLevelKey();r=r||!!s,("series"===e?n:t).push({zlevel:i,z:a,idx:o.componentIndex,type:e,key:s})})),r){var o,i,a=t.concat(n);dr(a,(function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel})),Me(a,(function(t){var n=e.getComponent(t.type,t.idx),r=t.zlevel,a=t.key;null!=o&&(r=Math.max(o,r)),a?(r===o&&a!==i&&r++,i=a):i&&(r===o&&r++,i=""),o=r,n.setZLevel(r)}))}}function n(e){for(var t=[],n=e.currentStates,r=0;r<n.length;r++){var o=n[r];"emphasis"!==o&&"blur"!==o&&"select"!==o&&t.push(o)}e.selected&&e.states.select&&t.push("select"),e.hoverState===Yc&&e.states.emphasis?t.push("emphasis"):e.hoverState===Uc&&e.states.blur&&t.push("blur"),e.useStates(t)}function r(e,t){var n=e._zr,r=n.storage,o=0;r.traverse((function(e){e.isGroup||o++})),o>t.get("hoverLayerThreshold")&&!G.node&&!G.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 o(e,t){var n=e.get("blendMode")||null;t.eachRendered((function(e){e.isGroup||(e.style.blend=n)}))}function i(e,t){if(!e.preventAutoZ){var n=e.get("z")||0,r=e.get("zlevel")||0;t.eachRendered((function(e){return a(e,n,r,-1/0),!0}))}}function a(e,t,n,r){var o=e.getTextContent(),i=e.getTextGuideLine(),s=e.isGroup;if(s)for(var l=e.childrenRef(),u=0;u<l.length;u++)r=Math.max(a(l[u],t,n,r),r);else e.z=t,e.zlevel=n,r=Math.max(e.z2,r);if(o&&(o.z=t,o.zlevel=n,isFinite(r)&&(o.z2=r+2)),i){var c=e.textGuideLineConfig;i.z=t,i.zlevel=n,isFinite(r)&&(i.z2=r+(c&&c.showAbove?1:-1))}return r}function s(e,t){t.eachRendered((function(e){if(!sh(e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&(e.stateTransition=null),t&&t.stateTransition&&(t.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),e.hasState()?(e.prevStates=e.currentStates,e.clearStates()):e.prevStates&&(e.prevStates=null)}}))}function l(e,t){var r=e.getModel("stateAnimation"),o=e.isAnimationEnabled(),i=r.get("duration"),a=i>0?{duration:i,delay:r.get("delay"),easing:r.get("easing")}:null;t.eachRendered((function(e){if(e.states&&e.states.emphasis){if(sh(e))return;if(e instanceof ac&&th(e),e.__dirty){var t=e.prevStates;t&&e.useStates(t)}if(o){e.stateTransition=a;var r=e.getTextContent(),i=e.getTextGuideLine();r&&(r.stateTransition=a),i&&(i.stateTransition=a)}e.__dirty&&n(e)}}))}tO=function(e){var t=e._scheduler;t.restorePipelines(e._model),t.prepareStageTasks(),nO(e,!0),nO(e,!1),t.plan()},nO=function(e,t){for(var n=e._model,r=e._scheduler,o=t?e._componentsViews:e._chartsViews,i=t?e._componentsMap:e._chartsMap,a=e._zr,s=e._api,l=0;l<o.length;l++)o[l].__alive=!1;function u(e){var l=e.__requireNewView;e.__requireNewView=!1;var u="_ec_"+e.id+"_"+e.type,c=!l&&i[u];if(!c){var d=ul(e.type),h=t?Fv.getClass(d.main,d.sub):c_.getClass(d.sub);0,c=new h,c.init(n,s),i[u]=c,o.push(c),a.add(c.group)}e.__viewId=c.__id=u,c.__alive=!0,c.__model=e,c.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},!t&&r.prepareView(c,e,n,s)}t?n.eachComponent((function(e,t){"series"!==e&&u(t)})):n.eachSeries(u);for(l=0;l<o.length;){var c=o[l];c.__alive?l++:(!t&&c.renderTask.dispose(),a.remove(c.group),c.dispose(n,s),o.splice(l,1),i[c.__id]===c&&delete i[c.__id],c.__id=c.group.__ecComponentInfo=null)}},rO=function(e,t,n,r,o){var i=e._model;if(i.setUpdatePayload(n),r){var a={};a[r+"Id"]=n[r+"Id"],a[r+"Index"]=n[r+"Index"],a[r+"Name"]=n[r+"Name"];var s={mainType:r,query:a};o&&(s.subType=o);var l,u=n.excludeSeriesId;null!=u&&(l=ct(),Me(ks(u),(function(e){var t=Bs(e,null);null!=t&&l.set(t,!0)}))),i&&i.eachComponent(s,(function(t){var r=l&&null!=l.get(t.id);if(!r)if(eh(n))if(t instanceof jv)n.type!==td||n.notBlur||t.get(["emphasis","disabled"])||Rd(t,n,e._api);else{var o=Nd(t.mainType,t.componentIndex,n.name,e._api),i=o.focusSelf,a=o.dispatchers;n.type===td&&i&&!n.notBlur&&Dd(t.mainType,t.componentIndex,e._api),a&&Me(a,(function(e){n.type===td?Ad(e):kd(e)}))}else Jd(n)&&t instanceof jv&&(Vd(t,n,e._api),Bd(t),vO(e))}),e),i&&i.eachComponent(s,(function(t){var n=l&&null!=l.get(t.id);n||c(e["series"===r?"_chartsMap":"_componentsMap"][t.__viewId])}),e)}else Me([].concat(e._componentsViews).concat(e._chartsViews),c);function c(r){r&&r.__alive&&r[t]&&r[t](r.__model,i,e._api,n)}},oO={prepareAndUpdate:function(e){tO(this),oO.update.call(this,e,{optionChanged:null!=e.newOption})},update:function(t,n){var r=this._model,o=this._api,i=this._zr,a=this._coordSysMgr,s=this._scheduler;if(r){r.setUpdatePayload(t),s.restoreData(r,t),s.performSeriesTasks(r),a.create(r,o),s.performDataProcessorTasks(r,t),aO(this,r),a.update(r,o),e(r),s.performVisualTasks(r,t),hO(this,r,o,t,n);var l=r.get("backgroundColor")||"transparent",u=r.get("darkMode");i.setBackgroundColor(l),null!=u&&"auto"!==u&&i.setDarkMode(u),xw.trigger("afterupdate",r,o)}},updateTransform:function(t){var n=this,r=this._model,o=this._api;if(r){r.setUpdatePayload(t);var i=[];r.eachComponent((function(e,a){if("series"!==e){var s=n.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,r,o,t);l&&l.update&&i.push(s)}else i.push(s)}}));var a=ct();r.eachSeries((function(e){var i=n._chartsMap[e.__viewId];if(i.updateTransform){var s=i.updateTransform(e,r,o,t);s&&s.update&&a.set(e.uid,1)}else a.set(e.uid,1)})),e(r),this._scheduler.performVisualTasks(r,t,{setDirty:!0,dirtyMap:a}),fO(this,r,o,t,{},a),xw.trigger("afterupdate",r,o)}},updateView:function(t){var n=this._model;n&&(n.setUpdatePayload(t),c_.markUpdateMethod(t,"updateView"),e(n),this._scheduler.performVisualTasks(n,t,{setDirty:!0}),hO(this,n,this._api,t,{}),xw.trigger("afterupdate",n,this._api))},updateVisual:function(t){var n=this,r=this._model;r&&(r.setUpdatePayload(t),r.eachSeries((function(e){e.getData().clearAllVisual()})),c_.markUpdateMethod(t,"updateVisual"),e(r),this._scheduler.performVisualTasks(r,t,{visualType:"visual",setDirty:!0}),r.eachComponent((function(e,o){if("series"!==e){var i=n.getViewOfComponentModel(o);i&&i.__alive&&i.updateVisual(o,r,n._api,t)}})),r.eachSeries((function(e){var o=n._chartsMap[e.__viewId];o.updateVisual(e,r,n._api,t)})),xw.trigger("afterupdate",r,this._api))},updateLayout:function(e){oO.update.call(this,e)}},iO=function(e,t,n,r){if(e._disposed)SO(e.id);else{for(var o,i=e._model,a=e._coordSysMgr.getCoordinateSystems(),s=Ys(i,n),l=0;l<a.length;l++){var u=a[l];if(u[t]&&null!=(o=u[t](i,s,r)))return o}0}},aO=function(e,t){var n=e._chartsMap,r=e._scheduler;t.eachSeries((function(e){r.updateStreamModes(e,n[e.__viewId])}))},sO=function(e,t){var n=this,r=this.getModel(),o=e.type,i=e.escapeConnect,a=AO[o],s=a.actionInfo,l=(s.update||"update").split(":"),u=l.pop(),c=null!=l[0]&&ul(l[0]);this[Ww]=!0;var d=[e],h=!1;e.batch&&(h=!0,d=Te(e.batch,(function(t){return t=we(xe({},t),e),t.batch=null,t})));var p,f=[],g=Jd(e),m=eh(e);if(m&&$d(this._api),Me(d,(function(t){if(p=a.action(t,n._model,n._api),p=p||xe({},t),p.type=s.event||p.type,f.push(p),m){var r=qs(e),o=r.queryOptionMap,i=r.mainTypeSpecified,l=i?o.keys()[0]:"series";rO(n,u,t,l),vO(n)}else g?(rO(n,u,t,"series"),vO(n)):c&&rO(n,u,t,c.main,c.sub)})),"none"!==u&&!m&&!g&&!c)try{this[Hw]?(tO(this),oO.update.call(this,e),this[Hw]=null):oO[u].call(this,e)}catch(Py){throw this[Ww]=!1,Py}if(p=h?{type:s.event||o,escapeConnect:i,batch:f}:f[0],this[Ww]=!1,!t){var v=this._messageCenter;if(v.trigger(p.type,p),g){var y={type:"selectchanged",escapeConnect:i,selected:jd(r),isFromClick:e.isFromClick||!1,fromAction:e.type,fromActionPayload:e};v.trigger(y.type,y)}}},lO=function(e){var t=this._pendingActions;while(t.length){var n=t.shift();sO.call(this,n,e)}},uO=function(e){!e&&this.trigger("updated")},cO=function(e,t){e.on("rendered",(function(n){t.trigger("rendered",n),!e.animation.isFinished()||t[Hw]||t._scheduler.unfinished||t._pendingActions.length||t.trigger("finished")}))},dO=function(e,t){e.on("mouseover",(function(e){var n=e.target,r=ux(n,Yd);r&&(Ld(r,e,t._api),vO(t))})).on("mouseout",(function(e){var n=e.target,r=ux(n,Yd);r&&(zd(r,e,t._api),vO(t))})).on("click",(function(e){var n=e.target,r=ux(n,(function(e){return null!=Qc(e).dataIndex}),!0);if(r){var o=r.selected?"unselect":"select",i=Qc(r);t._api.dispatchAction({type:o,dataType:i.dataType,dataIndexInside:i.dataIndex,seriesIndex:i.seriesIndex,isFromClick:!0})}}))},hO=function(e,n,r,o,i){t(n),pO(e,n,r,o,i),Me(e._chartsViews,(function(e){e.__alive=!1})),fO(e,n,r,o,i),Me(e._chartsViews,(function(e){e.__alive||e.remove(n,r)}))},pO=function(e,t,n,r,o,a){Me(a||e._componentsViews,(function(e){var o=e.__model;s(o,e),e.render(o,t,n,r),i(o,e),l(o,e)}))},fO=function(e,t,n,a,u,c){var d=e._scheduler;u=xe(u||{},{updatedSeries:t.getSeries()}),xw.trigger("series:beforeupdate",t,n,u);var h=!1;t.eachSeries((function(t){var n=e._chartsMap[t.__viewId];n.__alive=!0;var r=n.renderTask;d.updatePayload(r,a),s(t,n),c&&c.get(t.uid)&&r.dirty(),r.perform(d.getPerformArgs(r))&&(h=!0),n.group.silent=!!t.get("silent"),o(t,n),Bd(t)})),d.unfinished=h||d.unfinished,xw.trigger("series:layoutlabels",t,n,u),xw.trigger("series:transition",t,n,u),t.eachSeries((function(t){var n=e._chartsMap[t.__viewId];i(t,n),l(t,n)})),r(e,t),xw.trigger("series:afterupdate",t,n,u)},vO=function(e){e[Zw]=!0,e.getZr().wakeUp()},yO=function(e){e[Zw]&&(e.getZr().storage.traverse((function(e){sh(e)||n(e)})),e[Zw]=!1)},gO=function(e){return new(function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Q(n,t),n.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(t){while(t){var n=t.__ecComponentInfo;if(null!=n)return e._model.getComponent(n.mainType,n.index);t=t.parent}},n.prototype.enterEmphasis=function(t,n){Ad(t,n),vO(e)},n.prototype.leaveEmphasis=function(t,n){kd(t,n),vO(e)},n.prototype.enterBlur=function(t){Cd(t),vO(e)},n.prototype.leaveBlur=function(t){Md(t),vO(e)},n.prototype.enterSelect=function(t){Td(t),vO(e)},n.prototype.leaveSelect=function(t){Pd(t),vO(e)},n.prototype.getModel=function(){return e.getModel()},n.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},n.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},n}(ag))(e)},mO=function(e){function t(e,t){for(var n=0;n<e.length;n++){var r=e[n];r[Xw]=t}}Me(kO,(function(n,r){e._messageCenter.on(r,(function(n){if(EO[e.group]&&e[Xw]!==Uw){if(n&&n.escapeConnect)return;var r=e.makeActionFromEvent(n),o=[];Me($O,(function(t){t!==e&&t.group===e.group&&o.push(t)})),t(o,Uw),Me(o,(function(e){e[Xw]!==Yw&&e.dispatchAction(r)})),t(o,qw)}}))}))}}(),t}(Zt),wO=xO.prototype;wO.on=Kw("on"),wO.off=Kw("off"),wO.one=function(e,t,n){var r=this;function o(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];t&&t.apply&&t.apply(this,n),r.off(e,o)}Om("ECharts#one is deprecated."),this.on.call(this,e,o,n)};var OO=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function SO(e){0}var AO={},kO={},CO=[],MO=[],TO=[],PO={},IO={},$O={},EO={},DO=+new Date-0,RO=+new Date-0,NO="_echarts_instance_";function LO(e,t,n){var r=!(n&&n.ssr);if(r){0;var o=QO(e);if(o)return o;0}var i=new xO(e,t,n);return i.id="ec_"+DO++,$O[i.id]=i,r&&tl(e,NO,i.id),mO(i),xw.trigger("afterinit",i),i}function zO(e){if(Le(e)){var t=e;e=null,Me(t,(function(t){null!=t.group&&(e=t.group)})),e=e||"g_"+RO++,Me(t,(function(t){t.group=e}))}return EO[e]=!0,e}function VO(e){EO[e]=!1}var BO=VO;function jO(e){Ve(e)?e=$O[e]:e instanceof xO||(e=QO(e)),e instanceof xO&&!e.isDisposed()&&e.dispose()}function QO(e){return $O[nl(e,NO)]}function FO(e){return $O[e]}function WO(e,t){PO[e]=t}function HO(e){Se(MO,e)<0&&MO.push(e)}function ZO(e,t){nS(CO,e,t,Iw)}function GO(e){UO("afterinit",e)}function XO(e){UO("afterupdate",e)}function UO(e,t){xw.on(e,t)}function YO(e,t,n){ze(t)&&(n=t,t="");var r=Qe(e)?e.type:[e,e={event:t}][0];e.event=(e.event||r).toLowerCase(),t=e.event,kO[t]||(tt(Gw.test(r)&&Gw.test(t)),AO[r]||(AO[r]={action:n,actionInfo:e}),kO[t]=r)}function qO(e,t){ug.register(e,t)}function KO(e){var t=ug.get(e);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function JO(e,t){nS(TO,e,t,Ew,"layout")}function eS(e,t){nS(TO,e,t,Nw,"visual")}var tS=[];function nS(e,t,n,r,o){if((ze(t)||Qe(t))&&(n=t,t=r),!(Se(tS,n)>=0)){tS.push(n);var i=F_.wrapStageHandler(n,o);i.__prio=t,i.__raw=n,e.push(i)}}function rS(e,t){IO[e]=t}function oS(e){re({createCanvas:e})}function iS(e,t,n){var r=Sw("registerMap");r&&r(e,t,n)}function aS(e){var t=Sw("getMap");return t&&t(e)}var sS=Bm;eS(Rw,w_),eS(zw,S_),eS(zw,A_),eS(Rw,tx),eS(zw,nx),eS(Qw,bw),HO(Bg),ZO(Tw,jg),rS("default",C_),YO({type:td,event:td,update:td},gt),YO({type:nd,event:nd,update:nd},gt),YO({type:rd,event:rd,update:rd},gt),YO({type:od,event:od,update:od},gt),YO({type:id,event:id,update:id},gt),WO("light",H_),WO("dark",q_);var lS={},uS=[],cS={registerPreprocessor:HO,registerProcessor:ZO,registerPostInit:GO,registerPostUpdate:XO,registerUpdateLifecycle:UO,registerAction:YO,registerCoordinateSystem:qO,registerLayout:JO,registerVisual:eS,registerTransform:sS,registerLoading:rS,registerMap:iS,registerImpl:Ow,PRIORITY:Fw,ComponentModel:ff,ComponentView:Fv,SeriesModel:jv,ChartView:c_,registerComponentModel:function(e){ff.registerClass(e)},registerComponentView:function(e){Fv.registerClass(e)},registerSeriesModel:function(e){jv.registerClass(e)},registerChartView:function(e){c_.registerClass(e)},registerSubTypeDefaulter:function(e,t){ff.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Ha(e,t)}};function dS(e){Le(e)?Me(e,(function(e){dS(e)})):Se(uS,e)>=0||(uS.push(e),ze(e)&&(e={install:e}),e.install(cS))}function hS(e){return null==e?0:e.length||1}function pS(e){return e}var fS=function(){function e(e,t,n,r,o,i){this._old=e,this._new=t,this._oldKeyGetter=n||pS,this._newKeyGetter=r||pS,this.context=o,this._diffModeMultiple="multiple"===i}return e.prototype.add=function(e){return this._add=e,this},e.prototype.update=function(e){return this._update=e,this},e.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},e.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},e.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},e.prototype.remove=function(e){return this._remove=e,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},r=new Array(e.length),o=new Array(t.length);this._initIndexMap(e,null,r,"_oldKeyGetter"),this._initIndexMap(t,n,o,"_newKeyGetter");for(var i=0;i<e.length;i++){var a=r[i],s=n[a],l=hS(s);if(l>1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,i)}else 1===l?(n[a]=null,this._update&&this._update(s,i)):this._remove&&this._remove(i)}this._performRestAdd(o,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},r={},o=[],i=[];this._initIndexMap(e,n,o,"_oldKeyGetter"),this._initIndexMap(t,r,i,"_newKeyGetter");for(var a=0;a<o.length;a++){var s=o[a],l=n[s],u=r[s],c=hS(l),d=hS(u);if(c>1&&1===d)this._updateManyToOne&&this._updateManyToOne(u,l),r[s]=null;else if(1===c&&d>1)this._updateOneToMany&&this._updateOneToMany(u,l),r[s]=null;else if(1===c&&1===d)this._update&&this._update(u,l),r[s]=null;else if(c>1&&d>1)this._updateManyToMany&&this._updateManyToMany(u,l),r[s]=null;else if(c>1)for(var h=0;h<c;h++)this._remove&&this._remove(l[h]);else this._remove&&this._remove(l)}this._performRestAdd(i,r)},e.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var r=e[n],o=t[r],i=hS(o);if(i>1)for(var a=0;a<i;a++)this._add&&this._add(o[a]);else 1===i&&this._add&&this._add(o);t[r]=null}},e.prototype._initIndexMap=function(e,t,n,r){for(var o=this._diffModeMultiple,i=0;i<e.length;i++){var a="_ec_"+this[r](e[i],i);if(o||(n[i]=a),t){var s=t[a],l=hS(s);0===l?(t[a]=i,o&&n.push(a)):1===l?t[a]=[s,i]:s.push(i)}}},e}(),gS=fS,mS=function(){function e(e,t){this._encode=e,this._schema=t}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e}();function vS(e,t){var n={},r=n.encode={},o=ct(),i=[],a=[],s={};Me(e.dimensions,(function(t){var n=e.getDimensionInfo(t),l=n.coordDim;if(l){0;var u=n.coordDimIndex;yS(r,l)[u]=t,n.isExtraCoord||(o.set(l,1),_S(n.type)&&(i[0]=t),yS(s,l)[u]=e.getDimensionIndex(n.name)),n.defaultTooltip&&a.push(t)}yf.each((function(e,t){var o=yS(r,t),i=n.otherDims[t];null!=i&&!1!==i&&(o[i]=n.name)}))}));var l=[],u={};o.each((function(e,t){var n=r[t];u[t]=n[0],l=l.concat(n)})),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=Te(l,(function(t){return e.getDimensionInfo(t).storeDimIndex})),n.encodeFirstDimNotExtra=u;var c=r.label;c&&c.length&&(i=c.slice());var d=r.tooltip;return d&&d.length?a=d.slice():a.length||(a=i.slice()),r.defaultedLabel=i,r.defaultedTooltip=a,n.userOutput=new mS(s,t),n}function yS(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function bS(e){return"category"===e?"ordinal":"time"===e?"time":"float"}function _S(e){return!("ordinal"===e||"time"===e)}var xS=function(){function e(e){this.otherDims={},null!=e&&xe(this,e)}return e}(),wS=xS,OS=Xs(),SS={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},AS=function(){function e(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=MS(this.source)))},e.prototype.getSourceDimensionIndex=function(e){return qe(this._dimNameMap.get(e),-1)},e.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},e.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=om(this.source),n=!TS(e),r="",o=[],i=0,a=0;i<e;i++){var s=void 0,l=void 0,u=void 0,c=this.dimensions[a];if(c&&c.storeDimIndex===i)s=t?c.name:null,l=c.type,u=c.ordinalMeta,a++;else{var d=this.getSourceDimension(i);d&&(s=t?d.name:null,l=d.type)}o.push({property:s,type:l,ordinalMeta:u}),!t||null==s||c&&c.isCalculationCoord||(r+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),r+="$",r+=SS[l]||"f",u&&(r+=u.uid),r+="$"}var h=this.source,p=[h.seriesLayoutBy,h.startIndex,r].join("$$");return{dimensions:o,hash:p}},e.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,n=0;t<this._fullDimCount;t++){var r=void 0,o=this.dimensions[n];if(o&&o.storeDimIndex===t)o.isCalculationCoord||(r=o.name),n++;else{var i=this.getSourceDimension(t);i&&(r=i.name)}e.push(r)}return e},e.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function kS(e){return e instanceof AS}function CS(e){for(var t=ct(),n=0;n<(e||[]).length;n++){var r=e[n],o=Qe(r)?r.name:r;null!=o&&null==t.get(o)&&t.set(o,n)}return t}function MS(e){var t=OS(e);return t.dimNameMap||(t.dimNameMap=CS(e.dimensionsDefine))}function TS(e){return e>30}var PS,IS,$S,ES,DS,RS,NS,LS=Qe,zS=Te,VS="undefined"===typeof Int32Array?Array:Int32Array,BS="e\0\0",jS=-1,QS=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],FS=["_approximateExtent"],WS=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 r=!1;kS(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(r=!0,n=e),n=n||["x","y"];for(var o={},i=[],a={},s=!1,l={},u=0;u<n.length;u++){var c=n[u],d=Ve(c)?new wS({name:c}):c instanceof wS?c:new wS(c),h=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=h,d.coordDimIndex=0);var p=d.otherDims=d.otherDims||{};i.push(h),o[h]=d,null!=l[h]&&(s=!0),d.createInvertedIndices&&(a[h]=[]),0===p.itemName&&(this._nameDimIdx=u),0===p.itemId&&(this._idDimIdx=u),r&&(d.storeDimIndex=u)}if(this.dimensions=i,this._dimInfos=o,this._initGetDimensionInfo(s),this.hostModel=t,this._invertedIndicesMap=a,this._dimOmitted){var f=this._dimIdxToName=ct();Me(i,(function(e){f.set(o[e].storeDimIndex,e)}))}}return e.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(null==t)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var n=this._dimIdxToName.get(t);if(null!=n)return n;var r=this._schema.getSourceDimension(t);return r?r.name:void 0},e.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(null!=t)return t;if(null==e)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},e.prototype._recognizeDimIndex=function(e){if(je(e)||null!=e&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},e.prototype._getStoreDimIndex=function(e){var t=this.getDimensionIndex(e);return t},e.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},e.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(e){return t.hasOwnProperty(e)?t[e]:void 0}:function(e){return t[e]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(e,t){var n=this._dimSummary;if(null==t)return n.encodeFirstDimNotExtra[e];var r=n.encode[e];return r?r[t]:null},e.prototype.mapDimensionsAll=function(e){var t=this._dimSummary,n=t.encode[e];return(n||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(e,t,n){var r,o=this;if(e instanceof nv&&(r=e),!r){var i=this.dimensions,a=Ug(e)||Ce(e)?new im(e,i.length):e;r=new nv;var s=zS(i,(function(e){return{type:o._dimInfos[e].type,property:e}}));r.initData(a,s,n)}this._store=r,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,r.count()),this._dimSummary=vS(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},e.prototype.appendValues=function(e,t){var n=this._store.appendValues(e,t.length),r=n.start,o=n.end,i=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var a=r;a<o;a++){var s=a-r;this._nameList[a]=t[s],i&&NS(this,a)}},e.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,n=0;n<t.length;n++){var r=this._dimInfos[t[n]];r.ordinalMeta&&e.collectOrdinalMeta(r.storeDimIndex,r.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return null==this._idDimIdx&&e.getSource().sourceFormat!==Of&&!e.fillStorage},e.prototype._doInit=function(e,t){if(!(e>=t)){var n=this._store,r=n.getProvider();this._updateOrdinalMeta();var o=this._nameList,i=this._idList,a=r.getSource().sourceFormat,s=a===bf;if(s&&!r.pure)for(var l=[],u=e;u<t;u++){var c=r.getItem(u,l);if(!this.hasItemOption&&Ps(c)&&(this.hasItemOption=!0),c){var d=c.name;null==o[u]&&null!=d&&(o[u]=Bs(d,null));var h=c.id;null==i[u]&&null!=h&&(i[u]=Bs(h,null))}}if(this._shouldMakeIdFromName())for(u=e;u<t;u++)NS(this,u);PS(this)}},e.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},e.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},e.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},e.prototype.setCalculationInfo=function(e,t){LS(e)?xe(this._calculationInfo,e):this._calculationInfo[e]=t},e.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return null==n&&null!=this._nameDimIdx&&(n=$S(this,this._nameDimIdx,t)),null==n&&(n=""),n},e.prototype._getCategory=function(e,t){var n=this._store.get(e,t),r=this._store.getOrdinalMeta(e);return r?r.categories[n]:n},e.prototype.getId=function(e){return IS(this,this.getRawIndex(e))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.get(r.storeDimIndex,t)},e.prototype.getByRawIndex=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.getByRawIndex(r.storeDimIndex,t)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},e.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},e.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},e.prototype.getValues=function(e,t){var n=this,r=this._store;return Le(e)?r.getValues(zS(e,(function(e){return n._getStoreDimIndex(e)})),t):r.getValues(e)},e.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,r=t.length;n<r;n++)if(isNaN(this._store.get(t[n],e)))return!1;return!0},e.prototype.indexOfName=function(e){for(var t=0,n=this._store.count();t<n;t++)if(this.getName(t)===e)return t;return-1},e.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},e.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},e.prototype.rawIndexOf=function(e,t){var n=e&&this._invertedIndicesMap[e];var r=n[t];return null==r||isNaN(r)?jS:r},e.prototype.indicesOfNearest=function(e,t,n){return this._store.indicesOfNearest(this._getStoreDimIndex(e),t,n)},e.prototype.each=function(e,t,n){ze(e)&&(n=t,t=e,e=[]);var r=n||this,o=zS(ES(e),this._getStoreDimIndex,this);this._store.each(o,r?Re(t,r):t)},e.prototype.filterSelf=function(e,t,n){ze(e)&&(n=t,t=e,e=[]);var r=n||this,o=zS(ES(e),this._getStoreDimIndex,this);return this._store=this._store.filter(o,r?Re(t,r):t),this},e.prototype.selectRange=function(e){var t=this,n={},r=Ee(e),o=[];return Me(r,(function(r){var i=t._getStoreDimIndex(r);n[i]=e[r],o.push(i)})),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(e,t,n){ze(e)&&(n=t,t=e,e=[]),n=n||this;var r=[];return this.each(e,(function(){r.push(t&&t.apply(this,arguments))}),n),r},e.prototype.map=function(e,t,n,r){var o=n||r||this,i=zS(ES(e),this._getStoreDimIndex,this),a=RS(this);return a._store=this._store.map(i,o?Re(t,o):t),a},e.prototype.modify=function(e,t,n,r){var o=n||r||this;var i=zS(ES(e),this._getStoreDimIndex,this);this._store.modify(i,o?Re(t,o):t)},e.prototype.downSample=function(e,t,n,r){var o=RS(this);return o._store=this._store.downSample(this._getStoreDimIndex(e),t,n,r),o},e.prototype.lttbDownSample=function(e,t){var n=RS(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),n},e.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},e.prototype.getItemModel=function(e){var t=this.hostModel,n=this.getRawDataItem(e);return new Qh(n,t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new gS(e?e.getStore().getIndices():[],this.getStore().getIndices(),(function(t){return IS(e,t)}),(function(e){return IS(t,e)}))},e.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},e.prototype.setVisual=function(e,t){this._visual=this._visual||{},LS(e)?xe(this._visual,e):this._visual[e]=t},e.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e],r=n&&n[t];return null==r?this.getVisual(t):r},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,r=n[e];r||(r=n[e]={});var o=r[t];return null==o&&(o=this.getVisual(t),Le(o)?o=o.slice():LS(o)&&(o=xe({},o)),r[t]=o),o},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,LS(t)?xe(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){LS(e)?xe(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?xe(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;Fc(n,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){Me(this._graphicEls,(function(n,r){n&&e&&e.call(t,n,r)}))},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:zS(this.dimensions,this._getDimInfo,this),this.hostModel)),DS(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];ze(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(Je(arguments)))})},e.internalField=function(){PS=function(e){var t=e._invertedIndicesMap;Me(t,(function(n,r){var o=e._dimInfos[r],i=o.ordinalMeta,a=e._store;if(i){n=t[r]=new VS(i.categories.length);for(var s=0;s<n.length;s++)n[s]=jS;for(s=0;s<a.count();s++)n[a.get(o.storeDimIndex,s)]=s}}))},$S=function(e,t,n){return Bs(e._getCategory(t,n),null)},IS=function(e,t){var n=e._idList[t];return null==n&&null!=e._idDimIdx&&(n=$S(e,e._idDimIdx,t)),null==n&&(n=BS+t),n},ES=function(e){return Le(e)||(e=null!=e?[e]:[]),e},RS=function(t){var n=new e(t._schema?t._schema:zS(t.dimensions,t._getDimInfo,t),t.hostModel);return DS(n,t),n},DS=function(e,t){Me(QS.concat(t.__wrappedMethods||[]),(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e.__wrappedMethods=t.__wrappedMethods,Me(FS,(function(n){e[n]=ye(t[n])})),e._calculationInfo=xe({},t._calculationInfo)},NS=function(e,t){var n=e._nameList,r=e._idList,o=e._nameDimIdx,i=e._idDimIdx,a=n[t],s=r[t];if(null==a&&null!=o&&(n[t]=a=$S(e,o,t)),null==s&&null!=i&&(r[t]=s=$S(e,i,t)),null==s&&null!=a){var l=e._nameRepeatCount,u=l[a]=(l[a]||0)+1;s=a,u>1&&(s+="__ec__"+u),r[t]=s}}}(),e}(),HS=WS;function ZS(e,t){return GS(e,t).dimensions}function GS(e,t){Ug(e)||(e=qg(e)),t=t||{};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],o=ct(),i=[],a=US(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&TS(a),l=r===e.dimensionsDefine,u=l?MS(e):CS(r),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,a));for(var d=ct(c),h=new Xm(a),p=0;p<h.length;p++)h[p]=-1;function f(e){var t=h[e];if(t<0){var n=r[e],o=Qe(n)?n:{name:n},a=new wS,s=o.name;null!=s&&null!=u.get(s)&&(a.name=a.displayName=s),null!=o.type&&(a.type=o.type),null!=o.displayName&&(a.displayName=o.displayName);var l=i.length;return h[e]=l,a.storeDimIndex=e,i.push(a),a}return i[t]}if(!s)for(p=0;p<a;p++)f(p);d.each((function(e,t){var n=ks(e).slice();if(1===n.length&&!Ve(n[0])&&n[0]<0)d.set(t,!1);else{var r=d.set(t,[]);Me(n,(function(e,n){var o=Ve(e)?u.get(e):e;null!=o&&o<a&&(r[n]=o,m(f(o),t,n))}))}}));var g=0;function m(e,t,n){null!=yf.get(t)?e.otherDims[t]=n:(e.coordDim=t,e.coordDimIndex=n,o.set(t,!0))}Me(n,(function(e){var t,n,r,o;if(Ve(e))t=e,o={};else{o=e,t=o.name;var i=o.ordinalMeta;o.ordinalMeta=null,o=xe({},o),o.ordinalMeta=i,n=o.dimsDef,r=o.otherDims,o.name=o.coordDim=o.coordDimIndex=o.dimsDef=o.otherDims=null}var s=d.get(t);if(!1!==s){if(s=ks(s),!s.length)for(var u=0;u<(n&&n.length||1);u++){while(g<a&&null!=f(g).coordDim)g++;g<a&&s.push(g++)}Me(s,(function(e,i){var a=f(e);if(l&&null!=o.type&&(a.type=o.type),m(we(a,o),t,i),null==a.name&&n){var s=n[i];!Qe(s)&&(s={name:s}),a.name=a.displayName=s.name,a.defaultTooltip=s.defaultTooltip}r&&we(a.otherDims,r)}))}}));var v=t.generateCoord,y=t.generateCoordCount,b=null!=y;y=v?y||1:0;var _=v||"value";function x(e){null==e.name&&(e.name=e.coordDim)}if(s)Me(i,(function(e){x(e)})),i.sort((function(e,t){return e.storeDimIndex-t.storeDimIndex}));else for(var w=0;w<a;w++){var O=f(w),S=O.coordDim;null==S&&(O.coordDim=YS(_,o,b),O.coordDimIndex=0,(!v||y<=0)&&(O.isExtraCoord=!0),y--),x(O),null!=O.type||Df(e,w)!==Cf.Must&&(!O.isExtraCoord||null==O.otherDims.itemName&&null==O.otherDims.seriesName)||(O.type="ordinal")}return XS(i),new AS({source:e,dimensions:i,fullDimensionCount:a,dimensionOmitted:s})}function XS(e){for(var t=ct(),n=0;n<e.length;n++){var r=e[n],o=r.name,i=t.get(o)||0;i>0&&(r.name=o+(i-1)),i++,t.set(o,i)}}function US(e,t,n,r){var o=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return Me(t,(function(e){var t;Qe(e)&&(t=e.dimsDef)&&(o=Math.max(o,t.length))})),o}function YS(e,t,n){if(n||t.hasKey(e)){var r=0;while(t.hasKey(e+r))r++;e+=r}return t.set(e,!0),e}var qS=function(){function e(e){this.coordSysDims=[],this.axisMap=ct(),this.categoryAxisMap=ct(),this.coordSysName=e}return e}();function KS(e){var t=e.get("coordinateSystem"),n=new qS(t),r=JS[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var JS={cartesian2d:function(e,t,n,r){var o=e.getReferringComponents("xAxis",Ks).models[0],i=e.getReferringComponents("yAxis",Ks).models[0];t.coordSysDims=["x","y"],n.set("x",o),n.set("y",i),eA(o)&&(r.set("x",o),t.firstCategoryDimIndex=0),eA(i)&&(r.set("y",i),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,r){var o=e.getReferringComponents("singleAxis",Ks).models[0];t.coordSysDims=["single"],n.set("single",o),eA(o)&&(r.set("single",o),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var o=e.getReferringComponents("polar",Ks).models[0],i=o.findAxisModel("radiusAxis"),a=o.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",i),n.set("angle",a),eA(i)&&(r.set("radius",i),t.firstCategoryDimIndex=0),eA(a)&&(r.set("angle",a),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},geo:function(e,t,n,r){t.coordSysDims=["lng","lat"]},parallel:function(e,t,n,r){var o=e.ecModel,i=o.getComponent("parallel",e.get("parallelIndex")),a=t.coordSysDims=i.dimensions.slice();Me(i.parallelAxisIndex,(function(e,i){var s=o.getComponent("parallelAxis",e),l=a[i];n.set(l,s),eA(s)&&(r.set(l,s),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=i))}))}};function eA(e){return"category"===e.get("type")}function tA(e,t,n){n=n||{};var r,o,i,a=n.byIndex,s=n.stackedCoordDimension;nA(t)?r=t:(o=t.schema,r=o.dimensions,i=t.store);var l,u,c,d,h=!(!e||!e.get("stack"));if(Me(r,(function(e,t){Ve(e)&&(r[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;Me(r,(function(e){e.coordDim===p&&g++}));var m={name:c,coordDim:p,coordDimIndex:g,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length},v={name:d,coordDim:d,coordDimIndex:g+1,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length+1};o?(i&&(m.storeDimIndex=i.ensureCalculationDimension(d,f),v.storeDimIndex=i.ensureCalculationDimension(c,f)),o.appendCalculationDimension(m),o.appendCalculationDimension(v)):(r.push(m),r.push(v))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:d,stackResultDimension:c}}function nA(e){return!kS(e.schema)}function rA(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function oA(e,t){return rA(e,t)?e.getCalculationInfo("stackResultDimension"):t}function iA(e,t){var n,r=e.get("coordinateSystem"),o=ug.get(r);return t&&t.coordSysDims&&(n=Te(t.coordSysDims,(function(e){var n={name:e},r=t.axisMap.get(e);if(r){var o=r.get("type");n.type=bS(o)}return n}))),n||(n=o&&(o.getDimensionsInfo?o.getDimensionsInfo():o.dimensions.slice())||["x","y"]),n}function aA(e,t,n){var r,o;return n&&Me(e,(function(e,i){var a=e.coordDim,s=n.categoryAxisMap.get(a);s&&(null==r&&(r=i),e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),null!=e.otherDims.itemName&&(o=!0)})),o||null==r||(e[r].otherDims.itemName=0),r}function sA(e,t,n){n=n||{};var r,o=t.getSourceManager(),i=!1;e?(i=!0,r=qg(e)):(r=o.getSource(),i=r.sourceFormat===bf);var a=KS(t),s=iA(t,a),l=n.useEncodeDefaulter,u=ze(l)?l:l?Ne(Pf,s,t):null,c={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},d=GS(r,c),h=aA(d.dimensions,n.createInvertedIndices,a),p=i?null:o.getSharedDataStore(d),f=tA(t,{schema:d,store:p}),g=new HS(d,t);g.setCalculationInfo(f);var m=null!=h&&lA(r)?function(e,t,n,r){return r===h?n:this.defaultDimValueGetter(e,t,n,r)}:null;return g.hasItemOption=!1,g.initData(i?r:p,null,m),g}function lA(e){if(e.sourceFormat===bf){var t=uA(e.data||[]);return!Le(Ts(t))}}function uA(e){var t=0;while(t<e.length&&null==e[t])t++;return e[t]}var cA=sA,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[0]&&(t[0]=e[0]),e[1]>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}();bl(dA);var hA=dA,pA=0,fA=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++pA}return e.createByAxisModel=function(t){var n=t.option,r=n.data,o=r&&Te(r,gA);return new e({categories:o,needCollect:!o,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(!Ve(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var r=this._getOrCreateMap();return t=r.get(e),null==t&&(n?(t=this.categories.length,this.categories[t]=e,r.set(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||(this._map=ct(this.categories))},e}();function gA(e){return Qe(e)&&null!=e.value?e.value:e+""}var mA=fA;function vA(e){return"interval"===e.type||"log"===e.type}function yA(e,t,n,r){var o={},i=e[1]-e[0],a=o.interval=gs(i/t,!0);null!=n&&a<n&&(a=o.interval=n),null!=r&&a>r&&(a=o.interval=r);var s=o.intervalPrecision=_A(a),l=o.niceTickExtent=[es(Math.ceil(e[0]/a)*a,s),es(Math.floor(e[1]/a)*a,s)];return wA(l,e),o}function bA(e){var t=Math.pow(10,fs(e)),n=e/t;return n?2===n?n=3:3===n?n=5:n*=2:n=1,es(n*t)}function _A(e){return ns(e)+2}function xA(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function wA(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),xA(e,0,t),xA(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function OA(e,t){return e>=t[0]&&e<=t[1]}function SA(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function AA(e,t){return e*(t[1]-t[0])+t[0]}var kA=function(e){function t(t){var n=e.call(this,t)||this;n.type="ordinal";var r=n.getSetting("ordinalMeta");return r||(r=new mA({})),Le(r)&&(r=new mA({categories:Te(r,(function(e){return Qe(e)?e.value:e}))})),n._ordinalMeta=r,n._extent=n.getSetting("extent")||[0,r.categories.length-1],n}return Q(t,e),t.prototype.parse=function(e){return null==e?NaN:Ve(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),OA(e,this._extent)&&null!=this._ordinalMeta.categories[e]},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),SA(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(AA(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=[],r=this._ticksByOrdinalNumber=[],o=0,i=this._ordinalMeta.categories.length,a=Math.min(i,t.length);o<a;++o){var s=t[o];n[o]=s,r[s]=o}for(var l=0;o<i;++o){while(null!=r[l])l++;n.push(l),r[l]=o}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},t.prototype._getTickNumber=function(e){var t=this._ticksByOrdinalNumber;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getRawOrdinalNumber=function(e){var t=this._ordinalNumbersByTick;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var t=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[t];return null==n?"":n+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(hA);hA.registerClass(kA);var CA=kA,MA=es,TA=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 Q(t,e),t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return OA(e,this._extent)},t.prototype.normalize=function(e){return SA(e,this._extent)},t.prototype.scale=function(e){return AA(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[0]&&(t[0]=e[0]),e[1]>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=_A(e)},t.prototype.getTicks=function(e){var t=this._interval,n=this._extent,r=this._niceExtent,o=this._intervalPrecision,i=[];if(!t)return i;var a=1e4;n[0]<r[0]&&(e?i.push({value:MA(r[0]-t,o)}):i.push({value:n[0]}));var s=r[0];while(s<=r[1]){if(i.push({value:s}),s=MA(s+t,o),s===i[i.length-1].value)break;if(i.length>a)return[]}var l=i.length?i[i.length-1].value:r[1];return n[1]>l&&(e?i.push({value:MA(l+t,o)}):i.push({value:n[1]})),i},t.prototype.getMinorTicks=function(e){for(var t=this.getTicks(!0),n=[],r=this.getExtent(),o=1;o<t.length;o++){var i=t[o],a=t[o-1],s=0,l=[],u=i.value-a.value,c=u/e;while(s<e-1){var d=MA(a.value+(s+1)*c);d>r[0]&&d<r[1]&&l.push(d),s++}n.push(l)}return n},t.prototype.getLabel=function(e,t){if(null==e)return"";var n=t&&t.precision;null==n?n=ns(e.value)||0:"auto"===n&&(n=this._intervalPrecision);var r=MA(e.value,n,!0);return zp(r)},t.prototype.calcNiceTicks=function(e,t,n){e=e||5;var r=this._extent,o=r[1]-r[0];if(isFinite(o)){o<0&&(o=-o,r.reverse());var i=yA(r,e,t,n);this._intervalPrecision=i.intervalPrecision,this._interval=i.interval,this._niceExtent=i.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var t=this._extent;if(t[0]===t[1])if(0!==t[0]){var n=Math.abs(t[0]);e.fixMax||(t[1]+=n/2),t[0]-=n/2}else t[1]=1;var r=t[1]-t[0];isFinite(r)||(t[0]=0,t[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var o=this._interval;e.fixMin||(t[0]=MA(Math.floor(t[0]/o)*o)),e.fixMax||(t[1]=MA(Math.ceil(t[1]/o)*o))},t.prototype.setNiceExtent=function(e,t){this._niceExtent=[e,t]},t.type="interval",t}(hA);hA.registerClass(TA);var PA=TA,IA="undefined"!==typeof Float32Array,$A=IA?Float32Array:Array;function EA(e){return Le(e)?IA?new Float32Array(e):e:new $A(e)}var DA="__ec_stack_";function RA(e){return e.get("stack")||DA+e.seriesIndex}function NA(e){return e.dim+e.index}function LA(e){var t=[],n=e.axis,r="axis0";if("category"===n.type){for(var o=n.getBandWidth(),i=0;i<e.count;i++)t.push(we({bandWidth:o,axisKey:r,stackId:DA+i},e));var a=jA(t),s=[];for(i=0;i<e.count;i++){var l=a[r][DA+i];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function zA(e,t){var n=[];return t.eachSeriesByType(e,(function(e){HA(e)&&n.push(e)})),n}function VA(e){var t={};Me(e,(function(e){var n=e.coordinateSystem,r=n.getBaseAxis();if("time"===r.type||"value"===r.type)for(var o=e.getData(),i=r.dim+"_"+r.index,a=o.getDimensionIndex(o.mapDimension(r.dim)),s=o.getStore(),l=0,u=s.count();l<u;++l){var c=s.get(a,l);t[i]?t[i].push(c):t[i]=[c]}}));var n={};for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];if(o){o.sort((function(e,t){return e-t}));for(var i=null,a=1;a<o.length;++a){var s=o[a]-o[a-1];s>0&&(i=null===i?s:Math.min(i,s))}n[r]=i}}return n}function BA(e){var t=VA(e),n=[];return Me(e,(function(e){var r,o=e.coordinateSystem,i=o.getBaseAxis(),a=i.getExtent();if("category"===i.type)r=i.getBandWidth();else if("value"===i.type||"time"===i.type){var s=i.dim+"_"+i.index,l=t[s],u=Math.abs(a[1]-a[0]),c=i.scale.getExtent(),d=Math.abs(c[1]-c[0]);r=l?u/d*l:u}else{var h=e.getData();r=Math.abs(a[1]-a[0])/h.count()}var p=Ja(e.get("barWidth"),r),f=Ja(e.get("barMaxWidth"),r),g=Ja(e.get("barMinWidth")||(ZA(e)?.5:1),r),m=e.get("barGap"),v=e.get("barCategoryGap");n.push({bandWidth:r,barWidth:p,barMaxWidth:f,barMinWidth:g,barGap:m,barCategoryGap:v,axisKey:NA(i),stackId:RA(e)})})),jA(n)}function jA(e){var t={};Me(e,(function(e,n){var r=e.axisKey,o=e.bandWidth,i=t[r]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=i.stacks;t[r]=i;var s=e.stackId;a[s]||i.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=e.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(i.remainedWidth,l),i.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&&(i.gap=d);var h=e.barCategoryGap;null!=h&&(i.categoryGap=h)}));var n={};return Me(t,(function(e,t){n[t]={};var r=e.stacks,o=e.bandWidth,i=e.categoryGap;if(null==i){var a=Ee(r).length;i=Math.max(35-4*a,15)+"%"}var s=Ja(i,o),l=Ja(e.gap,1),u=e.remainedWidth,c=e.autoWidthCount,d=(u-s)/(c+(c-1)*l);d=Math.max(d,0),Me(r,(function(e){var t=e.maxWidth,n=e.minWidth;if(e.width){r=e.width;t&&(r=Math.min(r,t)),n&&(r=Math.max(r,n)),e.width=r,u-=r+l*r,c--}else{var r=d;t&&t<r&&(r=Math.min(t,u)),n&&n>r&&(r=n),r!==d&&(e.width=r,u-=r+l*r,c--)}})),d=(u-s)/(c+(c-1)*l),d=Math.max(d,0);var h,p=0;Me(r,(function(e,t){e.width||(e.width=d),h=e,p+=e.width*(1+l)})),h&&(p-=h.width*l);var f=-p/2;Me(r,(function(e,r){n[t][r]=n[t][r]||{bandWidth:o,offset:f,width:e.width},f+=e.width*(1+l)}))})),n}function QA(e,t,n){if(e&&t){var r=e[NA(t)];return null!=r&&null!=n?r[RA(n)]:r}}function FA(e,t){var n=zA(e,t),r=BA(n);Me(n,(function(e){var t=e.getData(),n=e.coordinateSystem,o=n.getBaseAxis(),i=RA(e),a=r[NA(o)][i],s=a.offset,l=a.width;t.setLayout({bandWidth:a.bandWidth,offset:s,size:l})}))}function WA(e){return{seriesType:e,plan:Wv(),reset:function(e){if(HA(e)){var t=e.getData(),n=e.coordinateSystem,r=n.getBaseAxis(),o=n.getOtherAxis(r),i=t.getDimensionIndex(t.mapDimension(o.dim)),a=t.getDimensionIndex(t.mapDimension(r.dim)),s=e.get("showBackground",!0),l=t.mapDimension(o.dim),u=t.getCalculationInfo("stackResultDimension"),c=rA(t,l)&&!!t.getCalculationInfo("stackedOnSeries"),d=o.isHorizontal(),h=GA(r,o),p=ZA(e),f=e.get("barMinHeight")||0,g=u&&t.getDimensionIndex(u),m=t.getLayout("size"),v=t.getLayout("offset");return{progress:function(e,t){var r,o=e.count,l=p&&EA(3*o),u=p&&s&&EA(3*o),y=p&&EA(o),b=n.master.getRect(),_=d?b.width:b.height,x=t.getStore(),w=0;while(null!=(r=e.next())){var O=x.get(c?g:i,r),S=x.get(a,r),A=h,k=void 0;c&&(k=+O-x.get(i,r));var C=void 0,M=void 0,T=void 0,P=void 0;if(d){var I=n.dataToPoint([O,S]);if(c){var $=n.dataToPoint([k,S]);A=$[0]}C=A,M=I[1]+v,T=I[0]-A,P=m,Math.abs(T)<f&&(T=(T<0?-1:1)*f)}else{I=n.dataToPoint([S,O]);if(c){$=n.dataToPoint([S,k]);A=$[1]}C=I[0]+v,M=A,T=m,P=I[1]-A,Math.abs(P)<f&&(P=(P<=0?-1:1)*f)}p?(l[w]=C,l[w+1]=M,l[w+2]=d?T:P,u&&(u[w]=d?b.x:C,u[w+1]=d?M:b.y,u[w+2]=_),y[r]=r):t.setItemLayout(r,{x:C,y:M,width:T,height:P}),w+=3}p&&t.setLayout({largePoints:l,largeDataIndices:y,largeBackgroundPoints:u,valueAxisHorizontal:d})}}}}}}function HA(e){return e.coordinateSystem&&"cartesian2d"===e.coordinateSystem.type}function ZA(e){return e.pipelineContext&&e.pipelineContext.large}function GA(e,t){var n=t.model.get("startValue");return n||(n=0),t.toGlobalCoord(t.dataToCoord("log"===t.type?n>0?n:1:n))}var XA=function(e,t,n,r){while(n<r){var o=n+r>>>1;e[o][1]<t?n=o+1:r=o}return n},UA=function(e){function t(t){var n=e.call(this,t)||this;return n.type="time",n}return Q(t,e),t.prototype.getLabel=function(e){var t=this.getSetting("useUTC");return _p(e.value,pp[bp(vp(this._minLevelUnit))]||pp.second,t,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,t,n){var r=this.getSetting("useUTC"),o=this.getSetting("locale");return xp(e,t,n,o,r)},t.prototype.getTicks=function(){var e=this._interval,t=this._extent,n=[];if(!e)return n;n.push({value:t[0],level:0});var r=this.getSetting("useUTC"),o=ok(this._minLevelUnit,this._approxInterval,r,t);return n=n.concat(o),n.push({value:t[1],level:0}),n},t.prototype.calcNiceExtent=function(e){var t=this._extent;if(t[0]===t[1]&&(t[0]-=up,t[1]+=up),t[1]===-1/0&&t[0]===1/0){var n=new Date;t[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),t[0]=t[1]-up}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,t,n){e=e||10;var r=this._extent,o=r[1]-r[0];this._approxInterval=o/e,null!=t&&this._approxInterval<t&&(this._approxInterval=t),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var i=YA.length,a=Math.min(XA(YA,this._approxInterval,0,i),i-1);this._interval=YA[a][1],this._minLevelUnit=YA[Math.max(a-1,0)][0]},t.prototype.parse=function(e){return je(e)?e:+hs(e)},t.prototype.contain=function(e){return OA(this.parse(e),this._extent)},t.prototype.normalize=function(e){return SA(this.parse(e),this._extent)},t.prototype.scale=function(e){return AA(e,this._extent)},t.type="time",t}(PA),YA=[["second",ap],["minute",sp],["hour",lp],["quarter-day",6*lp],["half-day",12*lp],["day",1.2*up],["half-week",3.5*up],["week",7*up],["month",31*up],["quarter",95*up],["half-year",cp/2],["year",cp]];function qA(e,t,n,r){var o=hs(t),i=hs(n),a=function(e){return Op(o,e,r)===Op(i,e,r)},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 KA(e,t){return e/=up,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function JA(e){var t=30*up;return e/=t,e>6?6:e>3?3:e>2?2:1}function ek(e){return e/=lp,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function tk(e,t){return e/=t?sp:ap,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function nk(e){return gs(e,!0)}function rk(e,t,n){var r=new Date(e);switch(vp(t)){case"year":case"month":r[$p(n)](0);case"day":r[Ep(n)](1);case"hour":r[Dp(n)](0);case"minute":r[Rp(n)](0);case"second":r[Np(n)](0),r[Lp(n)](0)}return r.getTime()}function ok(e,t,n,r){var o=1e4,i=gp,a=0;function s(e,t,n,o,i,a,s){var l=new Date(t),u=t,c=l[o]();while(u<n&&u<=r[1])s.push({value:u}),c+=e,l[i](c),u=l.getTime();s.push({value:u,notAdd:!0})}function l(e,o,i){var a=[],l=!o.length;if(!qA(vp(e),r[0],r[1],n)){l&&(o=[{value:rk(new Date(r[0]),e,n)},{value:r[1]}]);for(var u=0;u<o.length-1;u++){var c=o[u].value,d=o[u+1].value;if(c!==d){var h=void 0,p=void 0,f=void 0,g=!1;switch(e){case"year":h=Math.max(1,Math.round(t/up/365)),p=Sp(n),f=Ip(n);break;case"half-year":case"quarter":case"month":h=JA(t),p=Ap(n),f=$p(n);break;case"week":case"half-week":case"day":h=KA(t,31),p=kp(n),f=Ep(n),g=!0;break;case"half-day":case"quarter-day":case"hour":h=ek(t),p=Cp(n),f=Dp(n);break;case"minute":h=tk(t,!0),p=Mp(n),f=Rp(n);break;case"second":h=tk(t,!1),p=Tp(n),f=Np(n);break;case"millisecond":h=nk(t),p=Pp(n),f=Lp(n);break}s(h,c,d,p,f,g,a),"year"===e&&i.length>1&&0===u&&i.unshift({value:i[0].value-h})}}for(u=0;u<a.length;u++)i.push(a[u]);return a}}for(var u=[],c=[],d=0,h=0,p=0;p<i.length&&a++<o;++p){var f=vp(i[p]);if(yp(i[p])){l(i[p],u[u.length-1]||[],c);var g=i[p+1]?vp(i[p+1]):null;if(f!==g){if(c.length){h=d,c.sort((function(e,t){return e.value-t.value}));for(var m=[],v=0;v<c.length;++v){var y=c[v].value;0!==v&&c[v-1].value===y||(m.push(c[v]),y>=r[0]&&y<=r[1]&&d++)}var b=(r[1]-r[0])/t;if(d>1.5*b&&h>b/1.5)break;if(u.push(m),d>b||e===i[p])break}c=[]}}}var _=Ie(Te(u,(function(e){return Ie(e,(function(e){return e.value>=r[0]&&e.value<=r[1]&&!e.notAdd}))})),(function(e){return e.length>0})),x=[],w=_.length-1;for(p=0;p<_.length;++p)for(var O=_[p],S=0;S<O.length;++S)x.push({value:O[S].value,level:w-p});x.sort((function(e,t){return e.value-t.value}));var A=[];for(p=0;p<x.length;++p)0!==p&&x[p].value===x[p-1].value||A.push(x[p]);return A}hA.registerClass(UA);var ik=UA,ak=hA.prototype,sk=PA.prototype,lk=es,uk=Math.floor,ck=Math.ceil,dk=Math.pow,hk=Math.log,pk=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new PA,t._interval=0,t}return Q(t,e),t.prototype.getTicks=function(e){var t=this._originalScale,n=this._extent,r=t.getExtent(),o=sk.getTicks.call(this,e);return Te(o,(function(e){var t=e.value,o=es(dk(this.base,t));return o=t===n[0]&&this._fixMin?gk(o,r[0]):o,o=t===n[1]&&this._fixMax?gk(o,r[1]):o,{value:o}}),this)},t.prototype.setExtent=function(e,t){var n=hk(this.base);e=hk(Math.max(0,e))/n,t=hk(Math.max(0,t))/n,sk.setExtent.call(this,e,t)},t.prototype.getExtent=function(){var e=this.base,t=ak.getExtent.call(this);t[0]=dk(e,t[0]),t[1]=dk(e,t[1]);var n=this._originalScale,r=n.getExtent();return this._fixMin&&(t[0]=gk(t[0],r[0])),this._fixMax&&(t[1]=gk(t[1],r[1])),t},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var t=this.base;e[0]=hk(e[0])/hk(t),e[1]=hk(e[1])/hk(t),ak.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},t.prototype.calcNiceTicks=function(e){e=e||10;var t=this._extent,n=t[1]-t[0];if(!(n===1/0||n<=0)){var r=ps(n),o=e/n*r;o<=.5&&(r*=10);while(!isNaN(r)&&Math.abs(r)<1&&Math.abs(r)>0)r*=10;var i=[es(ck(t[0]/r)*r),es(uk(t[1]/r)*r)];this._interval=r,this._niceExtent=i}},t.prototype.calcNiceExtent=function(e){sk.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=hk(e)/hk(this.base),OA(e,this._extent)},t.prototype.normalize=function(e){return e=hk(e)/hk(this.base),SA(e,this._extent)},t.prototype.scale=function(e){return e=AA(e,this._extent),dk(this.base,e)},t.type="log",t}(hA),fk=pk.prototype;function gk(e,t){return lk(e,ns(t))}fk.getMinorTicks=sk.getMinorTicks,fk.getLabel=sk.getLabel,hA.registerClass(pk);var mk=pk,vk=function(){function e(e,t,n){this._prepareParams(e,t,n)}return e.prototype._prepareParams=function(e,t,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var r=this._isOrdinal="ordinal"===e.type;this._needCrossZero="interval"===e.type&&t.getNeedCrossZero&&t.getNeedCrossZero();var o=t.get("min",!0);null==o&&(o=t.get("startValue",!0));var i=this._modelMinRaw=o;ze(i)?this._modelMinNum=xk(e,i({min:n[0],max:n[1]})):"dataMin"!==i&&(this._modelMinNum=xk(e,i));var a=this._modelMaxRaw=t.get("max",!0);if(ze(a)?this._modelMaxNum=xk(e,a({min:n[0],max:n[1]})):"dataMax"!==a&&(this._modelMaxNum=xk(e,a)),r)this._axisDataLen=t.getCategories().length;else{var s=t.get("boundaryGap"),l=Le(s)?s:[s||0,s||0];"boolean"===typeof l[0]||"boolean"===typeof l[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[va(l[0],1),va(l[1],1)]}},e.prototype.calculate=function(){var e=this._isOrdinal,t=this._dataMin,n=this._dataMax,r=this._axisDataLen,o=this._boundaryGapInner,i=e?null:n-t||Math.abs(t),a="dataMin"===this._modelMinRaw?t:this._modelMinNum,s="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,l=null!=a,u=null!=s;null==a&&(a=e?r?0:NaN:t-o[0]*i),null==s&&(s=e?r?r-1:NaN:n+o[1]*i),(null==a||!isFinite(a))&&(a=NaN),(null==s||!isFinite(s))&&(s=NaN);var c=Ue(a)||Ue(s)||e&&!r;this._needCrossZero&&(a>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[bk[e]]=t},e.prototype.setDeterminedMinMax=function(e,t){var n=yk[e];this[n]=t},e.prototype.freeze=function(){this.frozen=!0},e}(),yk={min:"_determinedMin",max:"_determinedMax"},bk={min:"_dataMin",max:"_dataMax"};function _k(e,t,n){var r=e.rawExtentInfo;return r||(r=new vk(e,t,n),e.rawExtentInfo=r,r)}function xk(e,t){return null==t?null:Ue(t)?NaN:e.parse(t)}function wk(e,t){var n=e.type,r=_k(e,t,e.getExtent()).calculate();e.setBlank(r.isBlank);var o=r.min,i=r.max,a=t.ecModel;if(a&&"time"===n){var s=zA("bar",a),l=!1;if(Me(s,(function(e){l=l||e.getBaseAxis()===t.axis})),l){var u=BA(s),c=Ok(o,i,t,u);o=c.min,i=c.max}}return{extent:[o,i],fixMin:r.minFixed,fixMax:r.maxFixed}}function Ok(e,t,n,r){var o=n.axis.getExtent(),i=o[1]-o[0],a=QA(r,n.axis);if(void 0===a)return{min:e,max:t};var s=1/0;Me(a,(function(e){s=Math.min(e.offset,s)}));var l=-1/0;Me(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)/i,h=c/d-c;return t+=h*(l/u),e-=h*(s/u),{min:e,max:t}}function Sk(e,t){var n=t,r=wk(e,n),o=r.extent,i=n.get("splitNumber");e instanceof mk&&(e.base=n.get("logBase"));var a=e.type,s=n.get("interval"),l="interval"===a||"time"===a;e.setExtent(o[0],o[1]),e.calcNiceExtent({splitNumber:i,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&e.setInterval&&e.setInterval(s)}function Ak(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new CA({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new ik({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(hA.getClass(t)||PA)}}function kk(e){var t=e.scale.getExtent(),n=t[0],r=t[1];return!(n>0&&r>0||n<0&&r<0)}function Ck(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,r){return e.scale.getFormattedLabel(n,r,t)}}(t):Ve(t)?function(t){return function(n){var r=e.scale.getLabel(n),o=t.replace("{value}",null!=r?r:"");return o}}(t):ze(t)?function(t){return function(r,o){return null!=n&&(o=r.value-n),t(Mk(e,r),o,null!=r.level?{level:r.level}:null)}}(t):function(t){return e.scale.getLabel(t)}}function Mk(e,t){return"category"===e.type?e.scale.getLabel(t):t.value}function Tk(e){var t=e.model,n=e.scale;if(t.get(["axisLabel","show"])&&!n.isBlank()){var r,o,i=n.getExtent();n instanceof CA?o=n.count():(r=n.getTicks(),o=r.length);var a,s=e.getLabelModel(),l=Ck(e),u=1;o>40&&(u=Math.ceil(o/40));for(var c=0;c<o;c+=u){var d=r?r[c]:{value:i[0]+c},h=l(d,c),p=s.getTextRect(h),f=Pk(p,s.get("rotate")||0);a?a.union(f):a=f}return a}}function Pk(e,t){var n=t*Math.PI/180,r=e.width,o=e.height,i=r*Math.abs(Math.cos(n))+Math.abs(o*Math.sin(n)),a=r*Math.abs(Math.sin(n))+Math.abs(o*Math.cos(n)),s=new Fn(e.x,e.y,i,a);return s}function Ik(e){var t=e.get("interval");return null==t?"auto":t}function $k(e){return"category"===e.type&&0===Ik(e.getLabelModel())}function Ek(e,t){var n={};return Me(e.mapDimensionsAll(t),(function(t){n[oA(e,t)]=!0})),Ee(n)}function Dk(e,t,n){t&&Me(Ek(t,n),(function(n){var r=t.getApproximateExtent(n);r[0]<e[0]&&(e[0]=r[0]),r[1]>e[1]&&(e[1]=r[1])}))}var Rk=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},e.prototype.getCoordSysModel=function(){},e}();function Nk(e){return cA(null,e)}var Lk={isDimensionStacked:rA,enableDataStack:tA,getStackedDimension:oA};function zk(e,t){var n=t;t instanceof Qh||(n=new Qh(t));var r=Ak(n);return r.setExtent(e[0],e[1]),Sk(r,n),r}function Vk(e){ke(e,Rk)}function Bk(e,t){return t=t||{},yh(e,null,null,"normal"!==t.state)}var jk=1e-8;function Qk(e,t){return Math.abs(e-t)<jk}function Fk(e,t,n){var r=0,o=e[0];if(!o)return!1;for(var i=1;i<e.length;i++){var a=e[i];r+=Qu(o[0],o[1],a[0],a[1],t,n),o=a}var s=e[0];return Qk(o[0],s[0])&&Qk(o[1],s[1])||(r+=Qu(o[0],o[1],s[0],s[1],t,n)),0!==r}var Wk=[];function Hk(e,t){for(var n=0;n<e.length;n++)Vt(e[n],e[n],t)}function Zk(e,t,n,r){for(var o=0;o<e.length;o++){var i=e[o];r&&(i=r.project(i)),i&&isFinite(i[0])&&isFinite(i[1])&&(Bt(t,t,i),jt(n,n,i))}}function Gk(e){for(var t=0,n=0,r=0,o=e.length,i=e[o-1][0],a=e[o-1][1],s=0;s<o;s++){var l=e[s][0],u=e[s][1],c=i*u-l*a;t+=c,n+=(i+l)*c,r+=(a+u)*c,i=l,a=u}return t?[n/t/3,r/t/3,t]:[e[0][0]||0,e[0][1]||0]}var Xk=function(){function e(e){this.name=e}return e.prototype.setCenter=function(e){this._center=e},e.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},e}(),Uk=function(){function e(e,t){this.type="polygon",this.exterior=e,this.interiors=t}return e}(),Yk=function(){function e(e){this.type="linestring",this.points=e}return e}(),qk=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.type="geoJSON",o.geometries=n,o._center=r&&[r[0],r[1]],o}return Q(t,e),t.prototype.calcCenter=function(){for(var e,t=this.geometries,n=0,r=0;r<t.length;r++){var o=t[r],i=o.exterior,a=i&&i.length;a>n&&(e=o,n=a)}if(e)return Gk(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],r=[-1/0,-1/0],o=this.geometries;return Me(o,(function(t){"polygon"===t.type?Zk(t.exterior,n,r,e):Me(t.points,(function(t){Zk(t,n,r,e)}))})),isFinite(n[0])&&isFinite(n[1])&&isFinite(r[0])&&isFinite(r[1])||(n[0]=n[1]=r[0]=r[1]=0),t=new Fn(n[0],n[1],r[0]-n[0],r[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 r=0,o=n.length;r<o;r++){var i=n[r];if("polygon"===i.type){var a=i.exterior,s=i.interiors;if(Fk(a,e[0],e[1])){for(var l=0;l<(s?s.length:0);l++)if(Fk(s[l],e[0],e[1]))continue e;return!0}}}return!1},t.prototype.transformTo=function(e,t,n,r){var o=this.getBoundingRect(),i=o.width/o.height;n?r||(r=n/i):n=i*r;for(var a=new Fn(e,t,n,r),s=o.calculateTransform(a),l=this.geometries,u=0;u<l.length;u++){var c=l[u];"polygon"===c.type?(Hk(c.exterior,s),Me(c.interiors,(function(e){Hk(e,s)}))):Me(c.points,(function(e){Hk(e,s)}))}o=this._rect,o.copy(a),this._center=[o.x+o.width/2,o.y+o.height/2]},t.prototype.cloneShallow=function(e){null==e&&(e=this.name);var n=new t(e,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},t}(Xk),Kk=function(e){function t(t,n){var r=e.call(this,t)||this;return r.type="geoSVG",r._elOnlyForCalculate=n,r}return Q(t,e),t.prototype.calcCenter=function(){var e=this._elOnlyForCalculate,t=e.getBoundingRect(),n=[t.x+t.width/2,t.y+t.height/2],r=Sn(Wk),o=e;while(o&&!o.isGeoSVGGraphicRoot)kn(r,o.getLocalTransform(),r),o=o.parent;return Pn(r,r),Vt(n,n,r),n},t}(Xk);function Jk(e){if(!e.UTF8Encoding)return e;var t=e,n=t.UTF8Scale;null==n&&(n=1024);var r=t.features;return Me(r,(function(e){var t=e.geometry,r=t.encodeOffsets,o=t.coordinates;if(r)switch(t.type){case"LineString":t.coordinates=tC(o,r,n);break;case"Polygon":eC(o,r,n);break;case"MultiLineString":eC(o,r,n);break;case"MultiPolygon":Me(o,(function(e,t){return eC(e,r[t],n)}))}})),t.UTF8Encoding=!1,t}function eC(e,t,n){for(var r=0;r<e.length;r++)e[r]=tC(e[r],t[r],n)}function tC(e,t,n){for(var r=[],o=t[0],i=t[1],a=0;a<e.length;a+=2){var s=e.charCodeAt(a)-64,l=e.charCodeAt(a+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),s+=o,l+=i,o=s,i=l,r.push([s/n,l/n])}return r}function nC(e,t){return e=Jk(e),Te(Ie(e.features,(function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0})),(function(e){var n=e.properties,r=e.geometry,o=[];switch(r.type){case"Polygon":var i=r.coordinates;o.push(new Uk(i[0],i.slice(1)));break;case"MultiPolygon":Me(r.coordinates,(function(e){e[0]&&o.push(new Uk(e[0],e.slice(1)))}));break;case"LineString":o.push(new Yk([r.coordinates]));break;case"MultiLineString":o.push(new Yk(r.coordinates))}var a=new qk(n[t||"name"],o,n.cp);return a.properties=n,a}))}function rC(e,t,n,r,o,i,a,s){var l=new jc({style:{text:e,font:t,align:n,verticalAlign:r,padding:o,rich:i,overflow:a?"truncate":null,lineHeight:s}});return l.getBoundingRect()}var oC=Xs();function iC(e,t){var n=Te(t,(function(t){return e.scale.parse(t)}));return"time"===e.type&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function aC(e){var t=e.getLabelModel().get("customValues");if(t){var n=Ck(e);return{labels:iC(e,t).map((function(t){var r={value:t};return{formattedLabel:n(r),rawLabel:e.scale.getLabel(r),tickValue:t}}))}}return"category"===e.type?lC(e):dC(e)}function sC(e,t){var n=e.getTickModel().get("customValues");return n?{ticks:iC(e,n)}:"category"===e.type?cC(e,t):{ticks:Te(e.scale.getTicks(),(function(e){return e.value}))}}function lC(e){var t=e.getLabelModel(),n=uC(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function uC(e,t){var n,r,o=hC(e,"labels"),i=Ik(t),a=pC(o,i);return a||(ze(i)?n=bC(e,i):(r="auto"===i?gC(e):i,n=yC(e,r)),fC(o,i,{labels:n,labelCategoryInterval:r}))}function cC(e,t){var n,r,o=hC(e,"ticks"),i=Ik(t),a=pC(o,i);if(a)return a;if(t.get("show")&&!e.scale.isBlank()||(n=[]),ze(i))n=bC(e,i,!0);else if("auto"===i){var s=uC(e,e.getLabelModel());r=s.labelCategoryInterval,n=Te(s.labels,(function(e){return e.tickValue}))}else r=i,n=yC(e,r,!0);return fC(o,i,{ticks:n,tickCategoryInterval:r})}function dC(e){var t=e.scale.getTicks(),n=Ck(e);return{labels:Te(t,(function(t,r){return{level:t.level,formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tickValue:t.value}}))}}function hC(e,t){return oC(e)[t]||(oC(e)[t]=[])}function pC(e,t){for(var n=0;n<e.length;n++)if(e[n].key===t)return e[n].value}function fC(e,t,n){return e.push({key:t,value:n}),n}function gC(e){var t=oC(e).autoInterval;return null!=t?t:oC(e).autoInterval=e.calculateCategoryInterval()}function mC(e){var t=vC(e),n=Ck(e),r=(t.axisRotate-t.labelRotate)/180*Math.PI,o=e.scale,i=o.getExtent(),a=o.count();if(i[1]-i[0]<1)return 0;var s=1;a>40&&(s=Math.max(1,Math.floor(a/40)));for(var l=i[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),c=Math.abs(u*Math.cos(r)),d=Math.abs(u*Math.sin(r)),h=0,p=0;l<=i[1];l+=s){var f=0,g=0,m=pa(n({value:l}),t.font,"center","top");f=1.3*m.width,g=1.3*m.height,h=Math.max(h,f,7),p=Math.max(p,g,7)}var v=h/c,y=p/d;isNaN(v)&&(v=1/0),isNaN(y)&&(y=1/0);var b=Math.max(0,Math.floor(Math.min(v,y))),_=oC(e.model),x=e.getExtent(),w=_.lastAutoInterval,O=_.lastTickCount;return null!=w&&null!=O&&Math.abs(w-b)<=1&&Math.abs(O-a)<=1&&w>b&&_.axisExtent0===x[0]&&_.axisExtent1===x[1]?b=w:(_.lastTickCount=a,_.lastAutoInterval=b,_.axisExtent0=x[0],_.axisExtent1=x[1]),b}function vC(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 yC(e,t,n){var r=Ck(e),o=e.scale,i=o.getExtent(),a=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=i[0],c=o.count();0!==u&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var d=$k(e),h=a.get("showMinLabel")||d,p=a.get("showMaxLabel")||d;h&&u!==i[0]&&g(i[0]);for(var f=u;f<=i[1];f+=l)g(f);function g(e){var t={value:e};s.push(n?e:{formattedLabel:r(t),rawLabel:o.getLabel(t),tickValue:e})}return p&&f-l!==i[1]&&g(i[1]),s}function bC(e,t,n){var r=e.scale,o=Ck(e),i=[];return Me(r.getTicks(),(function(e){var a=r.getLabel(e),s=e.value;t(e.value,a)&&i.push(n?s:{formattedLabel:o(e),rawLabel:a,tickValue:s})})),i}var _C=[0,1],xC=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]),r=Math.max(t[0],t[1]);return e>=n&&e<=r},e.prototype.containData=function(e){return this.scale.contain(e)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(e){return os(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,r=this.scale;return e=r.normalize(e),this.onBand&&"ordinal"===r.type&&(n=n.slice(),wC(n,r.count())),Ka(e,_C,n,t)},e.prototype.coordToData=function(e,t){var n=this._extent,r=this.scale;this.onBand&&"ordinal"===r.type&&(n=n.slice(),wC(n,r.count()));var o=Ka(e,n,_C,t);return this.scale.scale(o)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),n=sC(this,t),r=n.ticks,o=Te(r,(function(e){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(e):e),tickValue:e}}),this),i=t.get("alignWithLabel");return OC(this,o,i,e.clamp),o},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),r=Te(n,(function(e){return Te(e,(function(e){return{coord:this.dataToCoord(e),tickValue:e}}),this)}),this);return r},e.prototype.getViewLabels=function(){return aC(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 r=Math.abs(e[1]-e[0]);return Math.abs(r)/n},e.prototype.calculateCategoryInterval=function(){return mC(this)},e}();function wC(e,t){var n=e[1]-e[0],r=t,o=n/r/2;e[0]+=o,e[1]-=o}function OC(e,t,n,r){var o=t.length;if(e.onBand&&!n&&o){var i,a,s=e.getExtent();if(1===o)t[0].coord=s[0],i=t[1]={coord:s[1]};else{var l=t[o-1].tickValue-t[0].tickValue,u=(t[o-1].coord-t[0].coord)/l;Me(t,(function(e){e.coord-=u/2}));var c=e.scale.getExtent();a=1+c[1]-t[o-1].tickValue,i={coord:t[o-1].coord+u*a},t.push(i)}var d=s[0]>s[1];h(t[0].coord,s[0])&&(r?t[0].coord=s[0]:t.shift()),r&&h(s[0],t[0].coord)&&t.unshift({coord:s[0]}),h(s[1],i.coord)&&(r?i.coord=s[1]:t.pop()),r&&h(i.coord,s[1])&&t.push({coord:s[1]})}function h(e,t){return e=es(e),t=es(t),d?e>t:e<t}}var SC=xC;function AC(e){var t=ff.extend(e);return ff.registerClass(t),t}function kC(e){var t=Fv.extend(e);return Fv.registerClass(t),t}function CC(e){var t=jv.extend(e);return jv.registerClass(t),t}function MC(e){var t=c_.extend(e);return c_.registerClass(t),t}var TC=2*Math.PI,PC=Du.CMD,IC=["top","right","bottom","left"];function $C(e,t,n,r,o){var i=n.width,a=n.height;switch(e){case"top":r.set(n.x+i/2,n.y-t),o.set(0,-1);break;case"bottom":r.set(n.x+i/2,n.y+a+t),o.set(0,1);break;case"left":r.set(n.x-t,n.y+a/2),o.set(-1,0);break;case"right":r.set(n.x+i+t,n.y+a/2),o.set(1,0);break}}function EC(e,t,n,r,o,i,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(r-o)%TC<1e-4)return l[0]=c,l[1]=d,u-n;if(i){var h=r;r=Vu(o),o=Vu(h)}else r=Vu(r),o=Vu(o);r>o&&(o+=TC);var p=Math.atan2(s,a);if(p<0&&(p+=TC),p>=r&&p<=o||p+TC>=r&&p+TC<=o)return l[0]=c,l[1]=d,u-n;var f=n*Math.cos(r)+e,g=n*Math.sin(r)+t,m=n*Math.cos(o)+e,v=n*Math.sin(o)+t,y=(f-a)*(f-a)+(g-s)*(g-s),b=(m-a)*(m-a)+(v-s)*(v-s);return y<b?(l[0]=f,l[1]=g,Math.sqrt(y)):(l[0]=m,l[1]=v,Math.sqrt(b))}function DC(e,t,n,r,o,i,a,s){var l=o-e,u=i-t,c=n-e,d=r-t,h=Math.sqrt(c*c+d*d);c/=h,d/=h;var p=l*c+u*d,f=p/h;s&&(f=Math.min(Math.max(f,0),1)),f*=h;var g=a[0]=e+f*c,m=a[1]=t+f*d;return Math.sqrt((g-o)*(g-o)+(m-i)*(m-i))}function RC(e,t,n,r,o,i,a){n<0&&(e+=n,n=-n),r<0&&(t+=r,r=-r);var s=e+n,l=t+r,u=a[0]=Math.min(Math.max(o,e),s),c=a[1]=Math.min(Math.max(i,t),l);return Math.sqrt((u-o)*(u-o)+(c-i)*(c-i))}var NC=[];function LC(e,t,n){var r=RC(t.x,t.y,t.width,t.height,e.x,e.y,NC);return n.set(NC[0],NC[1]),r}function zC(e,t,n){for(var r,o,i=0,a=0,s=0,l=0,u=1/0,c=t.data,d=e.x,h=e.y,p=0;p<c.length;){var f=c[p++];1===p&&(i=c[p],a=c[p+1],s=i,l=a);var g=u;switch(f){case PC.M:s=c[p++],l=c[p++],i=s,a=l;break;case PC.L:g=DC(i,a,c[p],c[p+1],d,h,NC,!0),i=c[p++],a=c[p++];break;case PC.C:g=Br(i,a,c[p++],c[p++],c[p++],c[p++],c[p],c[p+1],d,h,NC),i=c[p++],a=c[p++];break;case PC.Q:g=Gr(i,a,c[p++],c[p++],c[p],c[p+1],d,h,NC),i=c[p++],a=c[p++];break;case PC.A:var m=c[p++],v=c[p++],y=c[p++],b=c[p++],_=c[p++],x=c[p++];p+=1;var w=!!(1-c[p++]);r=Math.cos(_)*y+m,o=Math.sin(_)*b+v,p<=1&&(s=r,l=o);var O=(d-m)*b/y+m;g=EC(m,v,b,_,_+x,w,O,h,NC),i=Math.cos(_+x)*y+m,a=Math.sin(_+x)*b+v;break;case PC.R:s=i=c[p++],l=a=c[p++];var S=c[p++],A=c[p++];g=RC(s,l,S,A,d,h,NC);break;case PC.Z:g=DC(i,a,s,l,d,h,NC,!0),i=s,a=l;break}g<u&&(u=g,n.set(NC[0],NC[1]))}return u}var VC=new En,BC=new En,jC=new En,QC=new En,FC=new En;function WC(e,t){if(e){var n=e.getTextGuideLine(),r=e.getTextContent();if(r&&n){var o=e.textGuideLineConfig||{},i=[[0,0],[0,0],[0,0]],a=o.candidates||IC,s=r.getBoundingRect().clone();s.applyTransform(r.getComputedTransform());var l=1/0,u=o.anchor,c=e.getComputedTransform(),d=c&&Pn([],c),h=t.get("length2")||0;u&&jC.copy(u);for(var p=0;p<a.length;p++){var f=a[p];$C(f,0,s,VC,QC),En.scaleAndAdd(BC,VC,QC,h),BC.transform(d);var g=e.getBoundingRect(),m=u?u.distance(BC):e instanceof ac?zC(BC,e.path,jC):LC(BC,g,jC);m<l&&(l=m,BC.transform(c),jC.transform(c),jC.toArray(i[0]),BC.toArray(i[1]),VC.toArray(i[2]))}GC(i,t.get("minTurnAngle")),n.setShape({points:i})}}}var HC=[],ZC=new En;function GC(e,t){if(t<=180&&t>0){t=t/180*Math.PI,VC.fromArray(e[0]),BC.fromArray(e[1]),jC.fromArray(e[2]),En.sub(QC,VC,BC),En.sub(FC,jC,BC);var n=QC.len(),r=FC.len();if(!(n<.001||r<.001)){QC.scale(1/n),FC.scale(1/r);var o=QC.dot(FC),i=Math.cos(t);if(i<o){var a=DC(BC.x,BC.y,jC.x,jC.y,VC.x,VC.y,HC,!1);ZC.fromArray(HC),ZC.scaleAndAdd(FC,a/Math.tan(Math.PI-t));var s=jC.x!==BC.x?(ZC.x-BC.x)/(jC.x-BC.x):(ZC.y-BC.y)/(jC.y-BC.y);if(isNaN(s))return;s<0?En.copy(ZC,BC):s>1&&En.copy(ZC,jC),ZC.toArray(e[1])}}}}function XC(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,VC.fromArray(e[0]),BC.fromArray(e[1]),jC.fromArray(e[2]),En.sub(QC,BC,VC),En.sub(FC,jC,BC);var r=QC.len(),o=FC.len();if(!(r<.001||o<.001)){QC.scale(1/r),FC.scale(1/o);var i=QC.dot(t),a=Math.cos(n);if(i<a){var s=DC(BC.x,BC.y,jC.x,jC.y,VC.x,VC.y,HC,!1);ZC.fromArray(HC);var l=Math.PI/2,u=Math.acos(FC.dot(t)),c=l+u-n;if(c>=l)En.copy(ZC,jC);else{ZC.scaleAndAdd(FC,s/Math.tan(Math.PI/2-c));var d=jC.x!==BC.x?(ZC.x-BC.x)/(jC.x-BC.x):(ZC.y-BC.y)/(jC.y-BC.y);if(isNaN(d))return;d<0?En.copy(ZC,BC):d>1&&En.copy(ZC,jC)}ZC.toArray(e[1])}}}}function UC(e,t,n,r){var o="normal"===n,i=o?e:e.ensureState(n);i.ignore=t;var a=r.get("smooth");a&&!0===a&&(a=.3),i.shape=i.shape||{},a>0&&(i.shape.smooth=a);var s=r.getModel("lineStyle").getLineStyle();o?e.useStyle(s):i.style=s}function YC(e,t){var n=t.smooth,r=t.points;if(r)if(e.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var o=Dt(r[0],r[1]),i=Dt(r[1],r[2]);if(!o||!i)return e.lineTo(r[1][0],r[1][1]),void e.lineTo(r[2][0],r[2][1]);var a=Math.min(o,i)*n,s=zt([],r[1],r[0],a/o),l=zt([],r[1],r[2],a/i),u=zt([],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],r[2][0],r[2][1])}else for(var c=1;c<r.length;c++)e.lineTo(r[c][0],r[c][1])}function qC(e,t,n){var r=e.getTextGuideLine(),o=e.getTextContent();if(o){for(var i=t.normal,a=i.get("show"),s=o.ignore,l=0;l<Kc.length;l++){var u=Kc[l],c=t[u],d="normal"===u;if(c){var h=c.get("show"),p=d?s:qe(o.states[u]&&o.states[u].ignore,s);if(p||!qe(h,a)){var f=d?r:r&&r.states[u];f&&(f.ignore=!0),r&&UC(r,!0,u,c);continue}r||(r=new Xy,e.setTextGuideLine(r),d||!s&&a||UC(r,!0,"normal",t.normal),e.stateProxy&&(r.stateProxy=e.stateProxy)),UC(r,!1,u,c)}}if(r){we(r.style,n),r.style.fill=null;var g=i.get("showAbove"),m=e.textGuideLineConfig=e.textGuideLineConfig||{};m.showAbove=g||!1,r.buildPath=YC}}else r&&e.removeTextGuideLine()}function KC(e,t){t=t||"labelLine";for(var n={normal:e.getModel(t)},r=0;r<qc.length;r++){var o=qc[r];n[o]=e.getModel([o,t])}return n}function JC(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];if(!r.defaultAttr.ignore){var o=r.label,i=o.getComputedTransform(),a=o.getBoundingRect(),s=!i||i[1]<1e-5&&i[2]<1e-5,l=o.style.margin||0,u=a.clone();u.applyTransform(i),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new _b(a,i):null;t.push({label:o,labelLine:r.labelLine,rect:u,localRect:a,obb:c,priority:r.priority,defaultAttr:r.defaultAttr,layoutOption:r.computedLayoutOption,axisAligned:s,transform:i})}}return t}function eM(e,t,n,r,o,i){var a=e.length;if(!(a<2)){e.sort((function(e,n){return e.rect[t]-n.rect[t]}));for(var s,l=0,u=!1,c=[],d=0,h=0;h<a;h++){var p=e[h],f=p.rect;s=f[t]-l,s<0&&(f[t]-=s,p.label[t]-=s,u=!0);var g=Math.max(-s,0);c.push(g),d+=g,l=f[t]+f[n]}d>0&&i&&w(-d/a,0,a);var m,v,y=e[0],b=e[a-1];return _(),m<0&&O(-m,.8),v<0&&O(v,.8),_(),x(m,v,1),x(v,m,-1),_(),m<0&&S(-m),v<0&&S(v),u}function _(){m=y.rect[t]-r,v=o-b.rect[t]-b.rect[n]}function x(e,t,n){if(e<0){var r=Math.min(t,-e);if(r>0){w(r*n,0,a);var o=r+e;o<0&&O(-o*n,1)}else O(-e*n,1)}}function w(n,r,o){0!==n&&(u=!0);for(var i=r;i<o;i++){var a=e[i],s=a.rect;s[t]+=n,a.label[t]+=n}}function O(r,o){for(var i=[],s=0,l=1;l<a;l++){var u=e[l-1].rect,c=Math.max(e[l].rect[t]-u[t]-u[n],0);i.push(c),s+=c}if(s){var d=Math.min(Math.abs(r)/s,o);if(r>0)for(l=0;l<a-1;l++){var h=i[l]*d;w(h,0,l+1)}else for(l=a-1;l>0;l--){h=i[l-1]*d;w(-h,l,a)}}}function S(e){var t=e<0?-1:1;e=Math.abs(e);for(var n=Math.ceil(e/(a-1)),r=0;r<a-1;r++)if(t>0?w(n,0,r+1):w(-n,a-r-1,a),e-=n,e<=0)return}}function tM(e,t,n,r){return eM(e,"x","width",t,n,r)}function nM(e,t,n,r){return eM(e,"y","height",t,n,r)}function rM(e){var t=[];e.sort((function(e,t){return t.priority-e.priority}));var n=new Fn(0,0,0,0);function r(e){if(!e.ignore){var t=e.ensureState("emphasis");null==t.ignore&&(t.ignore=!1)}e.ignore=!0}for(var o=0;o<e.length;o++){var i=e[o],a=i.axisAligned,s=i.localRect,l=i.transform,u=i.label,c=i.labelLine;n.copy(i.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var d=i.obb,h=!1,p=0;p<t.length;p++){var f=t[p];if(n.intersect(f.rect)){if(a&&f.axisAligned){h=!0;break}if(f.obb||(f.obb=new _b(f.localRect,f.transform)),d||(d=new _b(s,l)),d.intersect(f.obb)){h=!0;break}}}h?(r(u),c&&r(c)):(u.attr("ignore",i.defaultAttr.ignore),c&&c.attr("ignore",i.defaultAttr.labelGuideIgnore),t.push(i))}}function oM(e){if(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].slice());return t}}function iM(e,t){var n=e.label,r=t&&t.getTextGuideLine();return{dataIndex:e.dataIndex,dataType:e.dataType,seriesIndex:e.seriesModel.seriesIndex,text:e.label.style.text,rect:e.hostRect,labelRect:e.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:oM(r&&r.shape.points)}}var aM=["align","verticalAlign","width","height","fontSize"],sM=new ua,lM=Xs(),uM=Xs();function cM(e,t,n){for(var r=0;r<n.length;r++){var o=n[r];null!=t[o]&&(e[o]=t[o])}}var dM=["x","y","rotation"],hM=function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(e,t,n,r,o){var i=r.style,a=r.__hostTarget,s=a.textConfig||{},l=r.getComputedTransform(),u=r.getBoundingRect().plain();Fn.applyTransform(u,u,l),l?sM.setLocalTransform(l):(sM.x=sM.y=sM.rotation=sM.originX=sM.originY=0,sM.scaleX=sM.scaleY=1),sM.rotation=Vu(sM.rotation);var c,d=r.__hostTarget;if(d){c=d.getBoundingRect().plain();var h=d.getComputedTransform();Fn.applyTransform(c,c,h)}var p=c&&d.getTextGuideLine();this._labelList.push({label:r,labelLine:p,seriesModel:n,dataIndex:e,dataType:t,layoutOption:o,computedLayoutOption:null,rect:u,hostRect:c,priority:c?c.width*c.height:0,defaultAttr:{ignore:r.ignore,labelGuideIgnore:p&&p.ignore,x:sM.x,y:sM.y,scaleX:sM.scaleX,scaleY:sM.scaleY,rotation:sM.rotation,style:{x:i.x,y:i.y,align:i.align,verticalAlign:i.verticalAlign,width:i.width,height:i.height,fontSize:i.fontSize},cursor:r.cursor,attachedPos:s.position,attachedRot:s.rotation}})},e.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var n=e.__model,r=n.get("labelLayout");(ze(r)||Ee(r).length)&&e.group.traverse((function(e){if(e.ignore)return!0;var o=e.getTextContent(),i=Qc(e);o&&!o.disableLabelLayout&&t._addLabel(i.dataIndex,i.dataType,n,o,r)}))},e.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),n=e.getHeight();function r(e,t){return function(){WC(e,t)}}for(var o=0;o<this._labelList.length;o++){var i=this._labelList[o],a=i.label,s=a.__hostTarget,l=i.defaultAttr,u=void 0;u=ze(i.layoutOption)?i.layoutOption(iM(i,s)):i.layoutOption,u=u||{},i.computedLayoutOption=u;var c=Math.PI/180;s&&s.setTextConfig({local:!1,position:null!=u.x||null!=u.y?null:l.attachedPos,rotation:null!=u.rotate?u.rotate*c:l.attachedRot,offset:[u.dx||0,u.dy||0]});var d=!1;if(null!=u.x?(a.x=Ja(u.x,t),a.setStyle("x",0),d=!0):(a.x=l.x,a.setStyle("x",l.style.x)),null!=u.y?(a.y=Ja(u.y,n),a.setStyle("y",0),d=!0):(a.y=l.y,a.setStyle("y",l.style.y)),u.labelLinePoints){var h=s.getTextGuideLine();h&&(h.setShape({points:u.labelLinePoints}),d=!1)}var p=lM(a);p.needsUpdateLabelLine=d,a.rotation=null!=u.rotate?u.rotate*c:l.rotation,a.scaleX=l.scaleX,a.scaleY=l.scaleY;for(var f=0;f<aM.length;f++){var g=aM[f];a.setStyle(g,null!=u[g]?u[g]:l.style[g])}if(u.draggable){if(a.draggable=!0,a.cursor="move",s){var m=i.seriesModel;if(null!=i.dataIndex){var v=i.seriesModel.getData(i.dataType);m=v.getItemModel(i.dataIndex)}a.on("drag",r(s,m.getModel("labelLine")))}}else a.off("drag"),a.cursor=l.cursor}},e.prototype.layout=function(e){var t=e.getWidth(),n=e.getHeight(),r=JC(this._labelList),o=Ie(r,(function(e){return"shiftX"===e.layoutOption.moveOverlap})),i=Ie(r,(function(e){return"shiftY"===e.layoutOption.moveOverlap}));tM(o,0,t),nM(i,0,n);var a=Ie(r,(function(e){return e.layoutOption.hideOverlap}));rM(a)},e.prototype.processLabelsOverall=function(){var e=this;Me(this._chartViewList,(function(t){var n=t.__model,r=t.ignoreLabelLineUpdate,o=n.isAnimationEnabled();t.group.traverse((function(t){if(t.ignore&&!t.forceLabelAnimation)return!0;var i=!r,a=t.getTextContent();!i&&a&&(i=lM(a).needsUpdateLabelLine),i&&e._updateLabelLine(t,n),o&&e._animateLabels(t,n)}))}))},e.prototype._updateLabelLine=function(e,t){var n=e.getTextContent(),r=Qc(e),o=r.dataIndex;if(n&&null!=o){var i=t.getData(r.dataType),a=i.getItemModel(o),s={},l=i.getItemVisual(o,"style");if(l){var u=i.getVisual("drawType");s.stroke=l[u]}var c=a.getModel("labelLine");qC(e,KC(a),s),WC(e,c)}},e.prototype._animateLabels=function(e,t){var n=e.getTextContent(),r=e.getTextGuideLine();if(n&&(e.forceLabelAnimation||!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!sh(e))){var o=lM(n),i=o.oldLayout,a=Qc(e),s=a.dataIndex,l={x:n.x,y:n.y,rotation:n.rotation},u=t.getData(a.dataType);if(i){n.attr(i);var c=e.prevStates;c&&(Se(c,"select")>=0&&n.attr(o.oldLayoutSelect),Se(c,"emphasis")>=0&&n.attr(o.oldLayoutEmphasis)),ih(n,l,t,s)}else if(n.attr(l),!Ch(n).valueAnimation){var d=qe(n.style.opacity,1);n.style.opacity=0,ah(n,{style:{opacity:d}},t,s)}if(o.oldLayout=l,n.states.select){var h=o.oldLayoutSelect={};cM(h,l,dM),cM(h,n.states.select,dM)}if(n.states.emphasis){var p=o.oldLayoutEmphasis={};cM(p,l,dM),cM(p,n.states.emphasis,dM)}Th(n,s,u,t,t)}if(r&&!r.ignore&&!r.invisible){o=uM(r),i=o.oldLayout;var f={points:r.shape.points};i?(r.attr({shape:i}),ih(r,{shape:f},t)):(r.setShape(f),r.style.strokePercent=0,ah(r,{style:{strokePercent:1}},t)),o.oldLayout=f}},e}(),pM=hM,fM=Xs();function gM(e){e.registerUpdateLifecycle("series:beforeupdate",(function(e,t,n){var r=fM(t).labelManager;r||(r=fM(t).labelManager=new pM),r.clearLabels()})),e.registerUpdateLifecycle("series:layoutlabels",(function(e,t,n){var r=fM(t).labelManager;n.updatedSeries.forEach((function(e){r.addLabelsOfSeries(t.getViewOfSeriesModel(e))})),r.updateLayoutConfig(t),r.layout(t),r.processLabelsOverall()}))}function mM(e,t,n){var r=ne.createCanvas(),o=t.getWidth(),i=t.getHeight(),a=r.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=o+"px",a.height=i+"px",r.setAttribute("data-zr-dom-id",e)),r.width=o*n,r.height=i*n,r}dS(gM);var vM=function(e){function t(t,n,r){var o,i=e.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.incremental=!1,i.zlevel=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__used=!1,i.__drawIndex=0,i.__startIndex=0,i.__endIndex=0,i.__prevStartIndex=null,i.__prevEndIndex=null,r=r||Xi,"string"===typeof t?o=mM(t,n,r):Qe(t)&&(o=t,t=o.id),i.id=t,i.dom=o;var a=o.style;return a&&(pt(o),o.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),i.painter=n,i.dpr=r,i}return Q(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=mM("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,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o,i=[],a=this.maxRepaintRectCount,s=!1,l=new Fn(0,0,0,0);function u(e){if(e.isFinite()&&!e.isZero())if(0===i.length){var t=new Fn(0,0,0,0);t.copy(e),i.push(t)}else{for(var n=!1,r=1/0,o=0,u=0;u<i.length;++u){var c=i[u];if(c.intersect(e)){var d=new Fn(0,0,0,0);d.copy(c),d.union(e),i[u]=d,n=!0;break}if(s){l.copy(e),l.union(c);var h=e.width*e.height,p=c.width*c.height,f=l.width*l.height,g=f-h-p;g<r&&(r=g,o=u)}}if(s&&(i[o].union(e),n=!0),!n){t=new Fn(0,0,0,0);t.copy(e),i.push(t)}s||(s=i.length>=a)}}for(var c=this.__startIndex;c<this.__endIndex;++c){var d=e[c];if(d){var h=d.shouldBePainted(n,r,!0,!0),p=d.__isRendered&&(d.__dirty&hr||!h)?d.getPrevPaintRect():null;p&&u(p);var f=h&&(d.__dirty&hr||!d.__isRendered)?d.getPaintRect():null;f&&u(f)}}for(c=this.__prevStartIndex;c<this.__prevEndIndex;++c){d=t[c],h=d&&d.shouldBePainted(n,r,!0,!0);if(d&&(!h||!d.__zr)&&d.__isRendered){p=d.getPrevPaintRect();p&&u(p)}}do{o=!1;for(c=0;c<i.length;)if(i[c].isZero())i.splice(c,1);else{for(var g=c+1;g<i.length;)i[c].intersect(i[g])?(o=!0,i[c].union(i[g]),i.splice(g,1)):g++;c++}}while(o);return this._paintRects=i,i},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,t){var n=this.dpr,r=this.dom,o=r.style,i=this.domBack;o&&(o.width=e+"px",o.height=t+"px"),r.width=e*n,r.height=t*n,i&&(i.width=e*n,i.height=t*n,1!==n&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,t,n){var r=this.dom,o=this.ctx,i=r.width,a=r.height;t=t||this.clearColor;var s=this.motionBlur&&!e,l=this.lastFrameAlpha,u=this.dpr,c=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(r,0,0,i/u,a/u));var d=this.domBack;function h(e,n,r,i){if(o.clearRect(e,n,r,i),t&&"transparent"!==t){var a=void 0;if(Ze(t)){var h=t.global||t.__width===r&&t.__height===i;a=h&&t.__canvasGradient||Px(o,t,{x:0,y:0,width:r,height:i}),t.__canvasGradient=a,t.__width=r,t.__height=i}else Ge(t)&&(t.scaleX=t.scaleX||u,t.scaleY=t.scaleY||u,a=Qx(o,t,{dirty:function(){c.setUnpainted(),c.painter.refresh()}}));o.save(),o.fillStyle=a||t,o.fillRect(e,n,r,i),o.restore()}s&&(o.save(),o.globalAlpha=l,o.drawImage(d,e,n,r,i),o.restore())}!n||s?h(0,0,i,a):n.length&&Me(n,(function(e){h(e.x*u,e.y*u,e.width*u,e.height*u)}))},t}(Zt),yM=vM,bM=1e5,_M=314159,xM=.01,wM=.001;function OM(e){return!!e&&(!!e.__builtin__||"function"===typeof e.resize&&"function"===typeof e.refresh)}function SM(e,t){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}var AM=function(){function e(e,t,n,r){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var o=!e.nodeName||"CANVAS"===e.nodeName.toUpperCase();this._opts=n=xe({},n||{}),this.dpr=n.devicePixelRatio||Xi,this._singleCanvas=o,this.root=e;var i=e.style;i&&(pt(e),e.innerHTML=""),this.storage=t;var a=this._zlevelList;this._prevDisplayList=[];var s=this._layers;if(o){var l=e,u=l.width,c=l.height;null!=n.width&&(u=n.width),null!=n.height&&(c=n.height),this.dpr=n.devicePixelRatio||1,l.width=u*this.dpr,l.height=c*this.dpr,this._width=u,this._height=c;var d=new yM(l,this,this.dpr);d.__builtin__=!0,d.initContext(),s[_M]=d,d.zlevel=_M,a.push(_M),this._domRoot=e}else{this._width=Ex(e,0,n),this._height=Ex(e,1,n);var h=this._domRoot=SM(this._width,this._height);e.appendChild(h)}}return e.prototype.getType=function(){return"canvas"},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.refresh=function(e){var t=this.storage.getDisplayList(!0),n=this._prevDisplayList,r=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,n,e,this._redrawId);for(var o=0;o<r.length;o++){var i=r[o],a=this._layers[i];if(!a.__builtin__&&a.refresh){var s=0===o?this._backgroundColor:null;a.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=t.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(e){var t=e.length,n=this._hoverlayer;if(n&&n.clear(),t){for(var r,o={inHover:!0,viewWidth:this._width,viewHeight:this._height},i=0;i<t;i++){var a=e[i];a.__inHover&&(n||(n=this._hoverlayer=this.getLayer(bM)),r||(r=n.ctx,r.save()),lw(r,a,o,i===t-1))}r&&r.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(bM)},e.prototype.paintOne=function(e,t){sw(e,t)},e.prototype._paintList=function(e,t,n,r){if(this._redrawId===r){n=n||!1,this._updateLayerStatus(e);var o=this._doPaintList(e,t,n),i=o.finished,a=o.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),a&&this._paintHoverList(e),i)this.eachLayer((function(e){e.afterBrush&&e.afterBrush()}));else{var s=this;xr((function(){s._paintList(e,t,n,r)}))}}},e.prototype._compositeManually=function(){var e=this.getLayer(_M).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),this.eachBuiltinLayer((function(r){r.virtual&&e.drawImage(r.dom,0,0,t,n)}))},e.prototype._doPaintList=function(e,t,n){for(var r=this,o=[],i=this._opts.useDirtyRect,a=0;a<this._zlevelList.length;a++){var s=this._zlevelList[a],l=this._layers[s];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||n)&&o.push(l)}for(var u=!0,c=!1,d=function(a){var s,l=o[a],d=l.ctx,p=i&&l.createRepaintRects(e,t,h._width,h._height),f=n?l.__startIndex:l.__drawIndex,g=!n&&l.incremental&&Date.now,m=g&&Date.now(),v=l.zlevel===h._zlevelList[0]?h._backgroundColor:null;if(l.__startIndex===l.__endIndex)l.clear(!1,v,p);else if(f===l.__startIndex){var y=e[f];y.incremental&&y.notClear&&!n||l.clear(!1,v,p)}-1===f&&(console.error("For some unknown reason. drawIndex is -1"),f=l.__startIndex);var b=function(t){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:r._width,viewHeight:r._height};for(s=f;s<l.__endIndex;s++){var o=e[s];if(o.__inHover&&(c=!0),r._doPaintEl(o,l,i,t,n,s===l.__endIndex-1),g){var a=Date.now()-m;if(a>15)break}}n.prevElClipPaths&&d.restore()};if(p)if(0===p.length)s=l.__endIndex;else for(var _=h.dpr,x=0;x<p.length;++x){var w=p[x];d.save(),d.beginPath(),d.rect(w.x*_,w.y*_,w.width*_,w.height*_),d.clip(),b(w),d.restore()}else d.save(),b(),d.restore();l.__drawIndex=s,l.__drawIndex<l.__endIndex&&(u=!1)},h=this,p=0;p<o.length;p++)d(p);return G.wxa&&Me(this._layers,(function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()})),{finished:u,needsRefreshHover:c}},e.prototype._doPaintEl=function(e,t,n,r,o,i){var a=t.ctx;if(n){var s=e.getPaintRect();(!r||s&&s.intersect(r))&&(lw(a,e,o,i),e.setPrevPaintRect(s))}else lw(a,e,o,i)},e.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=_M);var n=this._layers[e];return n||(n=new yM("zr_"+e,this,this.dpr),n.zlevel=e,n.__builtin__=!0,this._layerConfig[e]?be(n,this._layerConfig[e],!0):this._layerConfig[e-xM]&&be(n,this._layerConfig[e-xM],!0),t&&(n.virtual=t),this.insertLayer(e,n),n.initContext()),n},e.prototype.insertLayer=function(e,t){var n=this._layers,r=this._zlevelList,o=r.length,i=this._domRoot,a=null,s=-1;if(!n[e]&&OM(t)){if(o>0&&e>r[0]){for(s=0;s<o-1;s++)if(r[s]<e&&r[s+1]>e)break;a=n[r[s]]}if(r.splice(s+1,0,e),n[e]=t,!t.virtual)if(a){var l=a.dom;l.nextSibling?i.insertBefore(t.dom,l.nextSibling):i.appendChild(t.dom)}else i.firstChild?i.insertBefore(t.dom,i.firstChild):i.appendChild(t.dom);t.painter||(t.painter=this)}},e.prototype.eachLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var o=n[r];e.call(t,this._layers[o],o)}},e.prototype.eachBuiltinLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var o=n[r],i=this._layers[o];i.__builtin__&&e.call(t,i,o)}},e.prototype.eachOtherLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var o=n[r],i=this._layers[o];i.__builtin__||e.call(t,i,o)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(e){function t(e){a&&(a.__endIndex!==e&&(a.__dirty=!0),a.__endIndex=e)}if(this.eachBuiltinLayer((function(e,t){e.__dirty=e.__used=!1})),this._singleCanvas)for(var n=1;n<e.length;n++){var r=e[n];if(r.zlevel!==e[n-1].zlevel||r.incremental){this._needsManuallyCompositing=!0;break}}var o,i,a=null,s=0;for(i=0;i<e.length;i++){r=e[i];var l=r.zlevel,u=void 0;o!==l&&(o=l,s=0),r.incremental?(u=this.getLayer(l+wM,this._needsManuallyCompositing),u.incremental=!0,s=1):u=this.getLayer(l+(s>0?xM:0),this._needsManuallyCompositing),u.__builtin__||ve("ZLevel "+l+" has been used by unkown layer "+u.id),u!==a&&(u.__used=!0,u.__startIndex!==i&&(u.__dirty=!0),u.__startIndex=i,u.incremental?u.__drawIndex=-1:u.__drawIndex=i,t(i),a=u),r.__dirty&hr&&!r.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=i))}t(i),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,Me(this._layers,(function(e){e.setUnpainted()}))},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?be(n[e],t,!0):n[e]=t;for(var r=0;r<this._zlevelList.length;r++){var o=this._zlevelList[r];if(o===e||o===e+xM){var i=this._layers[o];be(i,n[e],!0)}}}},e.prototype.delLayer=function(e){var t=this._layers,n=this._zlevelList,r=t[e];r&&(r.dom.parentNode.removeChild(r.dom),delete t[e],n.splice(Se(n,e),1))},e.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var r=this._opts,o=this.root;if(null!=e&&(r.width=e),null!=t&&(r.height=t),e=Ex(o,0,r),t=Ex(o,1,r),n.style.display="",this._width!==e||t!==this._height){for(var i in n.style.width=e+"px",n.style.height=t+"px",this._layers)this._layers.hasOwnProperty(i)&&this._layers[i].resize(e,t);this.refresh(!0)}this._width=e,this._height=t}else{if(null==e||null==t)return;this._width=e,this._height=t,this.getLayer(_M).resize(e,t)}return this},e.prototype.clearLayer=function(e){var t=this._layers[e];t&&t.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[_M].dom;var t=new yM("image",this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var n=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var r=t.dom.width,o=t.dom.height;this.eachLayer((function(e){e.__builtin__?n.drawImage(e.dom,0,0,r,o):e.renderToCanvas&&(n.save(),e.renderToCanvas(n),n.restore())}))}else for(var i={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,l=a.length;s<l;s++){var u=a[s];lw(n,u,i,s===l-1)}return t.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}(),kM=AM;function CM(e){e.registerPainter("canvas",kM)}var MM=Math.sin,TM=Math.cos,PM=Math.PI,IM=2*Math.PI,$M=180/PM,EM=function(){function e(){}return e.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},e.prototype.moveTo=function(e,t){this._add("M",e,t)},e.prototype.lineTo=function(e,t){this._add("L",e,t)},e.prototype.bezierCurveTo=function(e,t,n,r,o,i){this._add("C",e,t,n,r,o,i)},e.prototype.quadraticCurveTo=function(e,t,n,r){this._add("Q",e,t,n,r)},e.prototype.arc=function(e,t,n,r,o,i){this.ellipse(e,t,n,n,0,r,o,i)},e.prototype.ellipse=function(e,t,n,r,o,i,a,s){var l=a-i,u=!s,c=Math.abs(l),d=No(c-IM)||(u?l>=IM:-l>=IM),h=l>0?l%IM:l%IM+IM,p=!1;p=!!d||!No(c)&&h>=PM===!!u;var f=e+n*TM(i),g=t+r*MM(i);this._start&&this._add("M",f,g);var m=Math.round(o*$M);if(d){var v=1/this._p,y=(u?1:-1)*(IM-v);this._add("A",n,r,m,1,+u,e+n*TM(i+y),t+r*MM(i+y)),v>.01&&this._add("A",n,r,m,0,+u,f,g)}else{var b=e+n*TM(a),_=t+r*MM(a);this._add("A",n,r,m,+p,+u,b,_)}},e.prototype.rect=function(e,t,n,r){this._add("M",e,t),this._add("l",n,0),this._add("l",0,r),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,r,o,i,a,s,l){for(var u=[],c=this._p,d=1;d<arguments.length;d++){var h=arguments[d];if(isNaN(h))return void(this._invalid=!0);u.push(Math.round(h*c)/c)}this._d.push(e+u.join(" ")),this._start="Z"===e},e.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},e.prototype.getStr=function(){return this._str},e}(),DM=EM,RM="none",NM=Math.round;function LM(e){var t=e.fill;return null!=t&&t!==RM}function zM(e){var t=e.stroke;return null!=t&&t!==RM}var VM=["lineCap","miterLimit","lineJoin"],BM=Te(VM,(function(e){return"stroke-"+e.toLowerCase()}));function jM(e,t,n,r){var o=null==t.opacity?1:t.opacity;if(n instanceof fc)e("opacity",o);else{if(LM(t)){var i=Do(t.fill);e("fill",i.color);var a=null!=t.fillOpacity?t.fillOpacity*i.opacity*o:i.opacity*o;(r||a<1)&&e("fill-opacity",a)}else e("fill",RM);if(zM(t)){var s=Do(t.stroke);e("stroke",s.color);var l=t.strokeNoScale?n.getLineScale():1,u=l?(t.lineWidth||0)/l:0,c=null!=t.strokeOpacity?t.strokeOpacity*s.opacity*o:s.opacity*o,d=t.strokeFirst;if((r||1!==u)&&e("stroke-width",u),(r||d)&&e("paint-order",d?"stroke":"fill"),(r||c<1)&&e("stroke-opacity",c),t.lineDash){var h=Rx(n),p=h[0],f=h[1];p&&(f=NM(f||0),e("stroke-dasharray",p.join(",")),(f||r)&&e("stroke-dashoffset",f))}else r&&e("stroke-dasharray",RM);for(var g=0;g<VM.length;g++){var m=VM[g];if(r||t[m]!==nc[m]){var v=t[m]||nc[m];v&&e(BM[g],v)}}}else r&&e("stroke",RM)}}var QM="http://www.w3.org/2000/svg",FM="http://www.w3.org/1999/xlink",WM="http://www.w3.org/2000/xmlns/",HM="http://www.w3.org/XML/1998/namespace",ZM="ecmeta_";function GM(e){return document.createElementNS(QM,e)}function XM(e,t,n,r,o){return{tag:e,attrs:n||{},children:r,text:o,key:t}}function UM(e,t){var n=[];if(t)for(var r in t){var o=t[r],i=r;!1!==o&&(!0!==o&&null!=o&&(i+='="'+o+'"'),n.push(i))}return"<"+e+" "+n.join(" ")+">"}function YM(e){return"</"+e+">"}function qM(e,t){t=t||{};var n=t.newline?"\n":"";function r(e){var t=e.children,o=e.tag,i=e.attrs,a=e.text;return UM(o,i)+("style"!==o?an(a):a||"")+(t?""+n+Te(t,(function(e){return r(e)})).join(n)+n:"")+YM(o)}return r(e)}function KM(e,t,n){n=n||{};var r=n.newline?"\n":"",o=" {"+r,i=r+"}",a=Te(Ee(e),(function(t){return t+o+Te(Ee(e[t]),(function(n){return n+":"+e[t][n]+";"})).join(r)+i})).join(r),s=Te(Ee(t),(function(e){return"@keyframes "+e+o+Te(Ee(t[e]),(function(n){return n+o+Te(Ee(t[e][n]),(function(r){var o=t[e][n][r];return"d"===r&&(o='path("'+o+'")'),r+":"+o+";"})).join(r)+i})).join(r)+i})).join(r);return a||s?["<![CDATA[",a,s,"]]>"].join(r):""}function JM(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function eT(e,t,n,r){return XM("svg","root",{width:e,height:t,xmlns:QM,"xmlns:xlink":FM,version:"1.1",baseProfile:"full",viewBox:!!r&&"0 0 "+e+" "+t},n)}var tT=0;function nT(){return tT++}var rT={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"},oT="transform-origin";function iT(e,t,n){var r=xe({},e.shape);xe(r,t),e.buildPath(n,r);var o=new DM;return o.reset(qo(e)),n.rebuildPath(o,1),o.generateStr(),o.getStr()}function aT(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[oT]=n+"px "+r+"px")}var sT={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function lT(e,t){var n=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function uT(e,t,n){var r,o,i=e.shape.paths,a={};if(Me(i,(function(e){var t=JM(n.zrId);t.animation=!0,dT(e,{},t,!0);var i=t.cssAnims,s=t.cssNodes,l=Ee(i),u=l.length;if(u){o=l[u-1];var c=i[o];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(o)>=0&&(r=f)}}})),r){t.d=!1;var s=lT(a,n);return r.replace(o,s)}}function cT(e){return Ve(e)?rT[e]?"cubic-bezier("+rT[e]+")":Yr(e)?e:"":""}function dT(e,t,n,r){var o=e.animators,i=o.length,a=[];if(e instanceof lb){var s=uT(e,t,n);if(s)a.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u<i;u++){var c=o[u],d=[c.getMaxTime()/1e3+"s"],h=cT(c.getClip().easing),p=c.getDelay();h?d.push(h):d.push("linear"),p&&d.push(p/1e3+"s"),c.getLoop()&&d.push("infinite");var f=d.join(" ");l[f]=l[f]||[f,[]],l[f][1].push(c)}function g(o){var i,a=o[1],s=a.length,l={},u={},c={},d="animation-timing-function";function h(e,t,n){for(var r=e.getTracks(),o=e.getMaxTime(),i=0;i<r.length;i++){var a=r[i];if(a.needsAnimate()){var s=a.keyframes,l=a.propName;if(n&&(l=n(l)),l)for(var u=0;u<s.length;u++){var c=s[u],h=Math.round(c.time/o*100)+"%",p=cT(c.easing),f=c.rawValue;(Ve(f)||je(f))&&(t[h]=t[h]||{},t[h][l]=c.rawValue,p&&(t[h][d]=p))}}}}for(var p=0;p<s;p++){var f=a[p],g=f.targetName;g?"shape"===g&&h(f,u):!r&&h(f,l)}for(var m in l){var v={};la(v,e),xe(v,l[m]);var y=Ko(v),b=l[m][d];c[m]=y?{transform:y}:{},aT(c[m],v),b&&(c[m][d]=b)}var _=!0;for(var m in u){c[m]=c[m]||{};var x=!i;b=u[m][d];x&&(i=new Du);var w=i.len();i.reset(),c[m].d=iT(e,u[m],i);var O=i.len();if(!x&&w!==O){_=!1;break}b&&(c[m][d]=b)}if(!_)for(var m in c)delete c[m].d;if(!r)for(p=0;p<s;p++){f=a[p],g=f.targetName;"style"===g&&h(f,c,(function(e){return sT[e]}))}var S,A=Ee(c),k=!0;for(p=1;p<A.length;p++){var C=A[p-1],M=A[p];if(c[C][oT]!==c[M][oT]){k=!1;break}S=c[C][oT]}if(k&&S){for(var m in c)c[m][oT]&&delete c[m][oT];t[oT]=S}if(Ie(A,(function(e){return Ee(c[e]).length>0})).length){var T=lT(c,n);return T+" "+o[0]+" both"}}for(var m in l){s=g(l[m]);s&&a.push(s)}if(a.length){var v=n.zrId+"-cls-"+nT();n.cssNodes["."+v]={animation:a.join(",")},t["class"]=v}}function hT(e,t,n){if(!e.ignore)if(e.isSilent()){var r={"pointer-events":"none"};pT(r,t,n,!0)}else{var o=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},i=o.fill;if(!i){var a=e.style&&e.style.fill,s=e.states.select&&e.states.select.style&&e.states.select.style.fill,l=e.currentStates.indexOf("select")>=0&&s||a;l&&(i=$o(l))}var u=o.lineWidth;if(u){var c=!o.strokeNoScale&&e.transform?e.transform[0]:1;u/=c}r={cursor:"pointer"};i&&(r.fill=i),o.stroke&&(r.stroke=o.stroke),u&&(r["stroke-width"]=u),pT(r,t,n,!0)}}function pT(e,t,n,r){var o=JSON.stringify(e),i=n.cssStyleCache[o];i||(i=n.zrId+"-cls-"+nT(),n.cssStyleCache[o]=i,n.cssNodes["."+i+(r?":hover":"")]=e),t["class"]=t["class"]?t["class"]+" "+i:i}var fT=Math.round;function gT(e){return e&&Ve(e.src)}function mT(e){return e&&ze(e.toDataURL)}function vT(e,t,n,r){jM((function(o,i){var a="fill"===o||"stroke"===o;a&&Uo(i)?$T(t,e,o,r):a&&Zo(i)?ET(n,e,o,r):e[o]=a&&"none"===i?"transparent":i}),t,n,!1),IT(n,e,r)}function yT(e,t){var n=Za(t);n&&(n.each((function(t,n){null!=t&&(e[(ZM+n).toLowerCase()]=t+"")})),t.isSilent()&&(e[ZM+"silent"]="true"))}function bT(e){return No(e[0]-1)&&No(e[1])&&No(e[2])&&No(e[3]-1)}function _T(e){return No(e[4])&&No(e[5])}function xT(e,t,n){if(t&&(!_T(t)||!bT(t))){var r=n?10:1e4;e.transform=bT(t)?"translate("+fT(t[4]*r)/r+" "+fT(t[5]*r)/r+")":Vo(t)}}function wT(e,t,n){for(var r=e.points,o=[],i=0;i<r.length;i++)o.push(fT(r[i][0]*n)/n),o.push(fT(r[i][1]*n)/n);t.points=o.join(" ")}function OT(e){return!e.smooth}function ST(e){var t=Te(e,(function(e){return"string"===typeof e?[e,e]:e}));return function(e,n,r){for(var o=0;o<t.length;o++){var i=t[o],a=e[i[0]];null!=a&&(n[i[1]]=fT(a*r)/r)}}}var AT={circle:[ST(["cx","cy","r"])],polyline:[wT,OT],polygon:[wT,OT]};function kT(e){for(var t=e.animators,n=0;n<t.length;n++)if("shape"===t[n].targetName)return!0;return!1}function CT(e,t){var n=e.style,r=e.shape,o=AT[e.type],i={},a=t.animation,s="path",l=e.style.strokePercent,u=t.compress&&qo(e)||4;if(!o||t.willUpdate||o[1]&&!o[1](r)||a&&kT(e)||l<1){var c=!e.path||e.shapeChanged();e.path||e.createPathProxy();var d=e.path;c&&(d.beginPath(),e.buildPath(d,e.shape),e.pathUpdated());var h=d.getVersion(),p=e,f=p.__svgPathBuilder;p.__svgPathVersion===h&&f&&l===p.__svgPathStrokePercent||(f||(f=p.__svgPathBuilder=new DM),f.reset(u),d.rebuildPath(f,l),f.generateStr(),p.__svgPathVersion=h,p.__svgPathStrokePercent=l),i.d=f.getStr()}else{s=e.type;var g=Math.pow(10,u);o[0](r,i,g)}return xT(i,e.transform),vT(i,n,e,t),yT(i,e),t.animation&&dT(e,i,t),t.emphasis&&hT(e,i,t),XM(s,e.id+"",i)}function MT(e,t){var n=e.style,r=n.image;if(r&&!Ve(r)&&(gT(r)?r=r.src:mT(r)&&(r=r.toDataURL())),r){var o=n.x||0,i=n.y||0,a=n.width,s=n.height,l={href:r,width:a,height:s};return o&&(l.x=o),i&&(l.y=i),xT(l,e.transform),vT(l,n,e,t),yT(l,e),t.animation&&dT(e,l,t),XM("image",e.id+"",l)}}function TT(e,t){var n=e.style,r=n.text;if(null!=r&&(r+=""),r&&!isNaN(n.x)&&!isNaN(n.y)){var o=n.font||Y,i=n.x||0,a=jo(n.y||0,ma(o),n.textBaseline),s=Bo[n.textAlign]||n.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(Ec(n)){var u="",c=n.fontStyle,d=Ic(n.fontSize);if(!parseFloat(d))return;var h=n.fontFamily||U,p=n.fontWeight;u+="font-size:"+d+";font-family:"+h+";",c&&"normal"!==c&&(u+="font-style:"+c+";"),p&&"normal"!==p&&(u+="font-weight:"+p+";"),l.style=u}else l.style="font: "+o;return r.match(/\s/)&&(l["xml:space"]="preserve"),i&&(l.x=i),a&&(l.y=a),xT(l,e.transform),vT(l,n,e,t),yT(l,e),t.animation&&dT(e,l,t),XM("text",e.id+"",l,void 0,r)}}function PT(e,t){return e instanceof ac?CT(e,t):e instanceof fc?MT(e,t):e instanceof uc?TT(e,t):void 0}function IT(e,t,n){var r=e.style;if(Qo(r)){var o=Fo(e),i=n.shadowCache,a=i[o];if(!a){var s=e.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var c=r.shadowOffsetX||0,d=r.shadowOffsetY||0,h=r.shadowBlur,p=Do(r.shadowColor),f=p.opacity,g=p.color,m=h/2/l,v=h/2/u,y=m+" "+v;a=n.zrId+"-s"+n.shadowIdx++,n.defs[a]=XM("filter",a,{id:a,x:"-100%",y:"-100%",width:"300%",height:"300%"},[XM("feDropShadow","",{dx:c/l,dy:d/u,stdDeviation:y,"flood-color":g,"flood-opacity":f})]),i[o]=a}t.filter=Yo(a)}}function $T(e,t,n,r){var o,i=e[n],a={gradientUnits:i.global?"userSpaceOnUse":"objectBoundingBox"};if(Go(i))o="linearGradient",a.x1=i.x,a.y1=i.y,a.x2=i.x2,a.y2=i.y2;else{if(!Xo(i))return void 0;o="radialGradient",a.cx=qe(i.x,.5),a.cy=qe(i.y,.5),a.r=qe(i.r,.5)}for(var s=i.colorStops,l=[],u=0,c=s.length;u<c;++u){var d=100*zo(s[u].offset)+"%",h=s[u].color,p=Do(h),f=p.color,g=p.opacity,m={offset:d};m["stop-color"]=f,g<1&&(m["stop-opacity"]=g),l.push(XM("stop",u+"",m))}var v=XM(o,"",a,l),y=qM(v),b=r.gradientCache,_=b[y];_||(_=r.zrId+"-g"+r.gradientIdx++,b[y]=_,a.id=_,r.defs[_]=XM(o,_,a,l)),t[n]=Yo(_)}function ET(e,t,n,r){var o,i=e.style[n],a=e.getBoundingRect(),s={},l=i.repeat,u="no-repeat"===l,c="repeat-x"===l,d="repeat-y"===l;if(Wo(i)){var h=i.imageWidth,p=i.imageHeight,f=void 0,g=i.image;if(Ve(g)?f=g:gT(g)?f=g.src:mT(g)&&(f=g.toDataURL()),"undefined"===typeof Image){var m="Image width/height must been given explictly in svg-ssr renderer.";tt(h,m),tt(p,m)}else if(null==h||null==p){var v=function(e,t){if(e){var n=e.elm,r=h||t.width,o=p||t.height;"pattern"===e.tag&&(c?(o=1,r/=a.width):d&&(r=1,o/=a.height)),e.attrs.width=r,e.attrs.height=o,n&&(n.setAttribute("width",r),n.setAttribute("height",o))}},y=kl(f,null,e,(function(e){u||v(w,e),v(o,e)}));y&&y.width&&y.height&&(h=h||y.width,p=p||y.height)}o=XM("image","img",{href:f,width:h,height:p}),s.width=h,s.height=p}else i.svgElement&&(o=ye(i.svgElement),s.width=i.svgWidth,s.height=i.svgHeight);if(o){var b,_;u?b=_=1:c?(_=1,b=s.width/a.width):d?(b=1,_=s.height/a.height):s.patternUnits="userSpaceOnUse",null==b||isNaN(b)||(s.width=b),null==_||isNaN(_)||(s.height=_);var x=Ko(i);x&&(s.patternTransform=x);var w=XM("pattern","",s,[o]),O=qM(w),S=r.patternCache,A=S[O];A||(A=r.zrId+"-p"+r.patternIdx++,S[O]=A,s.id=A,w=r.defs[A]=XM("pattern",A,s,[o])),t[n]=Yo(A)}}function DT(e,t,n){var r=n.clipPathCache,o=n.defs,i=r[e.id];if(!i){i=n.zrId+"-c"+n.clipPathIdx++;var a={id:i};r[e.id]=i,o[i]=XM("clipPath",i,a,[CT(e,n)])}t["clip-path"]=Yo(i)}function RT(e){return document.createTextNode(e)}function NT(e,t,n){e.insertBefore(t,n)}function LT(e,t){e.removeChild(t)}function zT(e,t){e.appendChild(t)}function VT(e){return e.parentNode}function BT(e){return e.nextSibling}function jT(e,t){e.textContent=t}var QT=58,FT=120,WT=XM("","");function HT(e){return void 0===e}function ZT(e){return void 0!==e}function GT(e,t,n){for(var r={},o=t;o<=n;++o){var i=e[o].key;void 0!==i&&(r[i]=o)}return r}function XT(e,t){var n=e.key===t.key,r=e.tag===t.tag;return r&&n}function UT(e){var t,n=e.children,r=e.tag;if(ZT(r)){var o=e.elm=GM(r);if(KT(WT,e),Le(n))for(t=0;t<n.length;++t){var i=n[t];null!=i&&zT(o,UT(i))}else ZT(e.text)&&!Qe(e.text)&&zT(o,RT(e.text))}else e.elm=RT(e.text);return e.elm}function YT(e,t,n,r,o){for(;r<=o;++r){var i=n[r];null!=i&&NT(e,UT(i),t)}}function qT(e,t,n,r){for(;n<=r;++n){var o=t[n];if(null!=o)if(ZT(o.tag)){var i=VT(o.elm);LT(i,o.elm)}else LT(e,o.elm)}}function KT(e,t){var n,r=t.elm,o=e&&e.attrs||{},i=t.attrs||{};if(o!==i){for(n in i){var a=i[n],s=o[n];s!==a&&(!0===a?r.setAttribute(n,""):!1===a?r.removeAttribute(n):"style"===n?r.style.cssText=a:n.charCodeAt(0)!==FT?r.setAttribute(n,a):"xmlns:xlink"===n||"xmlns"===n?r.setAttributeNS(WM,n,a):n.charCodeAt(3)===QT?r.setAttributeNS(HM,n,a):n.charCodeAt(5)===QT?r.setAttributeNS(FM,n,a):r.setAttribute(n,a))}for(n in o)n in i||r.removeAttribute(n)}}function JT(e,t,n){var r,o,i,a,s=0,l=0,u=t.length-1,c=t[0],d=t[u],h=n.length-1,p=n[0],f=n[h];while(s<=u&&l<=h)null==c?c=t[++s]:null==d?d=t[--u]:null==p?p=n[++l]:null==f?f=n[--h]:XT(c,p)?(eP(c,p),c=t[++s],p=n[++l]):XT(d,f)?(eP(d,f),d=t[--u],f=n[--h]):XT(c,f)?(eP(c,f),NT(e,c.elm,BT(d.elm)),c=t[++s],f=n[--h]):XT(d,p)?(eP(d,p),NT(e,d.elm,c.elm),d=t[--u],p=n[++l]):(HT(r)&&(r=GT(t,s,u)),o=r[p.key],HT(o)?NT(e,UT(p),c.elm):(i=t[o],i.tag!==p.tag?NT(e,UT(p),c.elm):(eP(i,p),t[o]=void 0,NT(e,i.elm,c.elm))),p=n[++l]);(s<=u||l<=h)&&(s>u?(a=null==n[h+1]?null:n[h+1].elm,YT(e,a,n,l,h)):qT(e,t,s,u))}function eP(e,t){var n=t.elm=e.elm,r=e.children,o=t.children;e!==t&&(KT(e,t),HT(t.text)?ZT(r)&&ZT(o)?r!==o&&JT(n,r,o):ZT(o)?(ZT(e.text)&&jT(n,""),YT(n,null,o,0,o.length-1)):ZT(r)?qT(n,r,0,r.length-1):ZT(e.text)&&jT(n,""):e.text!==t.text&&(ZT(r)&&qT(n,r,0,r.length-1),jT(n,t.text)))}function tP(e,t){if(XT(e,t))eP(e,t);else{var n=e.elm,r=VT(n);UT(t),null!==r&&(NT(r,t.elm,BT(n)),qT(r,[e],0,0))}return t}var nP=0,rP=function(){function e(e,t,n){if(this.type="svg",this.refreshHover=oP("refreshHover"),this.configLayer=oP("configLayer"),this.storage=t,this._opts=n=xe({},n),this.root=e,this._id="zr"+nP++,this._oldVNode=eT(n.width,n.height),e&&!n.ssr){var r=this._viewport=document.createElement("div");r.style.cssText="position:relative;overflow:hidden";var o=this._svgDom=this._oldVNode.elm=GM("svg");KT(null,this._oldVNode),r.appendChild(o),e.appendChild(r)}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",tP(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return PT(e,JM(this._id))},e.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),n=this._width,r=this._height,o=JM(this._id);o.animation=e.animation,o.willUpdate=e.willUpdate,o.compress=e.compress,o.emphasis=e.emphasis;var i=[],a=this._bgVNode=iP(n,r,this._backgroundColor,o);a&&i.push(a);var s=e.compress?null:this._mainVNode=XM("g","main",{},[]);this._paintList(t,o,s?s.children:i),s&&i.push(s);var l=Te(Ee(o.defs),(function(e){return o.defs[e]}));if(l.length&&i.push(XM("defs","defs",{},l)),e.animation){var u=KM(o.cssNodes,o.cssAnims,{newline:!0});if(u){var c=XM("style","stl",{},[],u);i.push(c)}}return eT(n,r,i,e.useViewBox)},e.prototype.renderToString=function(e){return e=e||{},qM(this.renderToVNode({animation:qe(e.cssAnimation,!0),emphasis:qe(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:qe(e.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(e,t,n){for(var r,o,i=e.length,a=[],s=0,l=0,u=0;u<i;u++){var c=e[u];if(!c.invisible){var d=c.__clipPaths,h=d&&d.length||0,p=o&&o.length||0,f=void 0;for(f=Math.max(h-1,p-1);f>=0;f--)if(d&&o&&d[f]===o[f])break;for(var g=p-1;g>f;g--)s--,r=a[s-1];for(var m=f+1;m<h;m++){var v={};DT(d[m],v,t);var y=XM("g","clip-g-"+l++,v,[]);(r?r.children:n).push(y),a[s++]=y,r=y}o=d;var b=PT(c,t);b&&(r?r.children:n).push(b)}}},e.prototype.resize=function(e,t){var n=this._opts,r=this.root,o=this._viewport;if(null!=e&&(n.width=e),null!=t&&(n.height=t),r&&o&&(o.style.display="none",e=Ex(r,0,n),t=Ex(r,1,n),o.style.display=""),this._width!==e||this._height!==t){if(this._width=e,this._height=t,o){var i=o.style;i.width=e+"px",i.height=t+"px"}if(Zo(this._backgroundColor))this.refresh();else{var a=this._svgDom;a&&(a.setAttribute("width",e),a.setAttribute("height",t));var s=this._bgVNode&&this._bgVNode.elm;s&&(s.setAttribute("width",e),s.setAttribute("height",t))}}},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},e.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},e.prototype.toDataURL=function(e){var t=this.renderToString(),n="data:image/svg+xml;";return e?(t=Jo(t),t&&n+"base64,"+t):n+"charset=UTF-8,"+encodeURIComponent(t)},e}();function oP(e){return function(){0}}function iP(e,t,n,r){var o;if(n&&"none"!==n)if(o=XM("rect","bg",{width:e,height:t,x:"0",y:"0"}),Uo(n))$T({fill:n},o.attrs,"fill",r);else if(Zo(n))ET({style:{fill:n},dirty:gt,getBoundingRect:function(){return{width:e,height:t}}},o.attrs,"fill",r);else{var i=Do(n),a=i.color,s=i.opacity;o.attrs.fill=a,s<1&&(o.attrs["fill-opacity"]=s)}return o}var aP=rP;function sP(e){e.registerPainter("svg",aP)}var lP=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return Q(t,e),t.prototype.getInitialData=function(e){return cA(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var t=new Da,n=Sx("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);t.add(n),n.setStyle(e.lineStyle);var r=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),i="none"===r?"circle":r,a=.8*e.itemHeight,s=Sx(i,(e.itemWidth-a)/2,(e.itemHeight-a)/2,a,a,e.itemStyle.fill);t.add(s),s.setStyle(e.itemStyle);var l="inherit"===e.iconRotate?o:e.iconRotate||0;return s.rotation=l*Math.PI/180,s.setOrigin([e.itemWidth/2,e.itemHeight/2]),i.indexOf("empty")>-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}(jv),uP=lP;function cP(e,t){var n=e.mapDimensionsAll("defaultedLabel"),r=n.length;if(1===r){var o=mm(e,t,n[0]);return null!=o?o+"":null}if(r){for(var i=[],a=0;a<n.length;a++)i.push(mm(e,t,n[a]));return i.join(" ")}}function dP(e,t){var n=e.mapDimensionsAll("defaultedLabel");if(!Le(t))return t+"";for(var r=[],o=0;o<n.length;o++){var i=e.getDimensionIndex(n[o]);i>=0&&r.push(t[i])}return r.join(" ")}var hP=function(e){function t(t,n,r,o){var i=e.call(this)||this;return i.updateData(t,n,r,o),i}return Q(t,e),t.prototype._createSymbol=function(e,t,n,r,o){this.removeAll();var i=Sx(e,-1,-1,2,2,null,o);i.attr({z2:100,culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),i.drift=pP,this._symbolType=e,this.add(i)},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(){Ad(this.childAt(0))},t.prototype.downplay=function(){kd(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,r,o){this.silent=!1;var i=e.getItemVisual(n,"symbol")||"circle",a=e.hostModel,s=t.getSymbolSize(e,n),l=i!==this._symbolType,u=o&&o.disableAnimation;if(l){var c=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(i,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):ih(d,h,a,n),dh(d)}if(this._updateCommon(e,n,s,r,o),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,ah(d,h,a,n)}}u&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,t,n,r,o){var i,a,s,l,u,c,d,h,p,f=this.childAt(0),g=e.hostModel;if(r&&(i=r.emphasisItemStyle,a=r.blurItemStyle,s=r.selectItemStyle,l=r.focus,u=r.blurScope,d=r.labelStatesModels,h=r.hoverScale,p=r.cursorStyle,c=r.emphasisDisabled),!r||e.hasItemOption){var m=r&&r.itemModel?r.itemModel:e.getItemModel(t),v=m.getModel("emphasis");i=v.getModel("itemStyle").getItemStyle(),s=m.getModel(["select","itemStyle"]).getItemStyle(),a=m.getModel(["blur","itemStyle"]).getItemStyle(),l=v.get("focus"),u=v.get("blurScope"),c=v.get("disabled"),d=vh(m),h=v.getShallow("scale"),p=m.getShallow("cursor")}var y=e.getItemVisual(t,"symbolRotate");f.attr("rotation",(y||0)*Math.PI/180||0);var b=kx(e.getItemVisual(t,"symbolOffset"),n);b&&(f.x=b[0],f.y=b[1]),p&&f.attr("cursor",p);var _=e.getItemVisual(t,"style"),x=_.fill;if(f instanceof fc){var w=f.style;f.useStyle(xe({image:w.image,x:w.x,y:w.y,width:w.width,height:w.height},_))}else f.__isEmptyBrush?f.useStyle(xe({},_)):f.useStyle(_),f.style.decal=null,f.setColor(x,o&&o.symbolInnerColor),f.style.strokeNoScale=!0;var O=e.getItemVisual(t,"liftZ"),S=this._z2;null!=O?null==S&&(this._z2=f.z2,f.z2+=O):null!=S&&(f.z2=S,this._z2=null);var A=o&&o.useNameLabel;function k(t){return A?e.getName(t):cP(e,t)}mh(f,d,{labelFetcher:g,labelDataIndex:t,defaultText:k,inheritColor:x,defaultOpacity:_.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var C=f.ensureState("emphasis");C.style=i,f.ensureState("select").style=s,f.ensureState("blur").style=a;var M=null==h||!0===h?Math.max(1.1,3/this._sizeY):isFinite(h)&&h>0?+h:1;C.scaleX=this._sizeX*M,C.scaleY=this._sizeY*M,this.setSymbolScale(1),Wd(this,l,u,c)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,n){var r=this.childAt(0),o=Qc(this).dataIndex,i=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var a=r.getTextContent();a&&lh(a,{style:{opacity:0}},t,{dataIndex:o,removeOpt:i,cb:function(){r.removeTextContent()}})}else r.removeTextContent();lh(r,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:o,cb:e,removeOpt:i})},t.getSymbolSize=function(e,t){return Ax(e.getItemVisual(t,"symbolSize"))},t}(Da);function pP(e,t){this.parent.drift(e,t)}var fP=hP;function gP(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&"none"!==e.getItemVisual(n,"symbol")}function mP(e){return null==e||Qe(e)||(e={isIgnore:e}),e||{}}function vP(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:vh(t),cursorStyle:t.get("cursor")}}var yP=function(){function e(e){this.group=new Da,this._SymbolCtor=e||fP}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=mP(t);var n=this.group,r=e.hostModel,o=this._data,i=this._SymbolCtor,a=t.disableAnimation,s=vP(e),l={disableAnimation:a},u=t.getSymbolPoint||function(t){return e.getItemLayout(t)};o||n.removeAll(),e.diff(o).add((function(r){var o=u(r);if(gP(e,o,r,t)){var a=new i(e,r,s,l);a.setPosition(o),e.setItemGraphicEl(r,a),n.add(a)}})).update((function(c,d){var h=o.getItemGraphicEl(d),p=u(c);if(gP(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 i(e,c,s,l),h.setPosition(p);else{h.updateData(e,c,s,l);var m={x:p[0],y:p[1]};a?h.attr(m):ih(h,m,r)}n.add(h),e.setItemGraphicEl(c,h)}else n.remove(h)})).remove((function(e){var t=o.getItemGraphicEl(e);t&&t.fadeOut((function(){n.remove(t)}),r)})).execute(),this._getSymbolPoint=u,this._data=e},e.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl((function(t,n){var r=e._getSymbolPoint(n);t.setPosition(r),t.markRedraw()}))},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=vP(e),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n){function r(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=mP(n);for(var o=e.start;o<e.end;o++){var i=t.getItemLayout(o);if(gP(t,i,o,n)){var a=new this._SymbolCtor(t,o,this._seriesScope);a.traverse(r),a.setPosition(i),this.group.add(a),t.setItemGraphicEl(o,a),this._progressiveEls.push(a)}}},e.prototype.eachRendered=function(e){t_(this._progressiveEls||this.group,e)},e.prototype.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl((function(e){e.fadeOut((function(){t.remove(e)}),n.hostModel)})):t.removeAll()},e}(),bP=yP;function _P(e,t,n){var r=e.getBaseAxis(),o=e.getOtherAxis(r),i=xP(o,n),a=r.dim,s=o.dim,l=t.mapDimension(s),u=t.mapDimension(a),c="x"===s||"radius"===s?1:0,d=Te(e.dimensions,(function(e){return t.mapDimension(e)})),h=!1,p=t.getCalculationInfo("stackResultDimension");return rA(t,d[0])&&(h=!0,d[0]=p),rA(t,d[1])&&(h=!0,d[1]=p),{dataDimsForPoint:d,valueStart:i,valueAxisDim:s,baseAxisDim:a,stacked:!!h,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function xP(e,t){var n=0,r=e.scale.getExtent();return"start"===t?n=r[0]:"end"===t?n=r[1]:je(t)&&!isNaN(t)?n=t:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]),n}function wP(e,t,n,r){var o=NaN;e.stacked&&(o=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(o)&&(o=e.valueStart);var i=e.baseDataOffset,a=[];return a[i]=n.get(e.baseDim,r),a[1-i]=o,t.dataToPoint(a)}function OP(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 SP(e,t,n,r,o,i,a,s){for(var l=OP(e,t),u=[],c=[],d=[],h=[],p=[],f=[],g=[],m=_P(o,t,a),v=e.getLayout("points")||[],y=t.getLayout("points")||[],b=0;b<l.length;b++){var _=l[b],x=!0,w=void 0,O=void 0;switch(_.cmd){case"=":w=2*_.idx,O=2*_.idx1;var S=v[w],A=v[w+1],k=y[O],C=y[O+1];(isNaN(S)||isNaN(A))&&(S=k,A=C),u.push(S,A),c.push(k,C),d.push(n[w],n[w+1]),h.push(r[O],r[O+1]),g.push(t.getRawIndex(_.idx1));break;case"+":var M=_.idx,T=m.dataDimsForPoint,P=o.dataToPoint([t.get(T[0],M),t.get(T[1],M)]);O=2*M,u.push(P[0],P[1]),c.push(y[O],y[O+1]);var I=wP(m,o,t,M);d.push(I[0],I[1]),h.push(r[O],r[O+1]),g.push(t.getRawIndex(M));break;case"-":x=!1}x&&(p.push(_),f.push(f.length))}f.sort((function(e,t){return g[e]-g[t]}));var $=u.length,E=EA($),D=EA($),R=EA($),N=EA($),L=[];for(b=0;b<f.length;b++){var z=f[b],V=2*b,B=2*z;E[V]=u[B],E[V+1]=u[B+1],D[V]=c[B],D[V+1]=c[B+1],R[V]=d[B],R[V+1]=d[B+1],N[V]=h[B],N[V+1]=h[B+1],L[b]=p[z]}return{current:E,next:D,stackedOnCurrent:R,stackedOnNext:N,status:L}}var AP=Math.min,kP=Math.max;function CP(e,t){return isNaN(e)||isNaN(t)}function MP(e,t,n,r,o,i,a,s,l){for(var u,c,d,h,p,f,g=n,m=0;m<r;m++){var v=t[2*g],y=t[2*g+1];if(g>=o||g<0)break;if(CP(v,y)){if(l){g+=i;continue}break}if(g===n)e[i>0?"moveTo":"lineTo"](v,y),d=v,h=y;else{var b=v-u,_=y-c;if(b*b+_*_<.5){g+=i;continue}if(a>0){var x=g+i,w=t[2*x],O=t[2*x+1];while(w===v&&O===y&&m<r)m++,x+=i,g+=i,w=t[2*x],O=t[2*x+1],v=t[2*g],y=t[2*g+1],b=v-u,_=y-c;var S=m+1;if(l)while(CP(w,O)&&S<r)S++,x+=i,w=t[2*x],O=t[2*x+1];var A=.5,k=0,C=0,M=void 0,T=void 0;if(S>=r||CP(w,O))p=v,f=y;else{k=w-u,C=O-c;var P=v-u,I=w-v,$=y-c,E=O-y,D=void 0,R=void 0;if("x"===s){D=Math.abs(P),R=Math.abs(I);var N=k>0?1:-1;p=v-N*D*a,f=y,M=v+N*R*a,T=y}else if("y"===s){D=Math.abs($),R=Math.abs(E);var L=C>0?1:-1;p=v,f=y-L*D*a,M=v,T=y+L*R*a}else D=Math.sqrt(P*P+$*$),R=Math.sqrt(I*I+E*E),A=R/(R+D),p=v-k*a*(1-A),f=y-C*a*(1-A),M=v+k*a*A,T=y+C*a*A,M=AP(M,kP(w,v)),T=AP(T,kP(O,y)),M=kP(M,AP(w,v)),T=kP(T,AP(O,y)),k=M-v,C=T-y,p=v-k*D/R,f=y-C*D/R,p=AP(p,kP(u,v)),f=AP(f,kP(c,y)),p=kP(p,AP(u,v)),f=kP(f,AP(c,y)),k=v-p,C=y-f,M=v+k*R/D,T=y+C*R/D}e.bezierCurveTo(d,h,p,f,v,y),d=M,h=T}else e.lineTo(v,y)}u=v,c=y,g+=i}return m}var TP=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),PP=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polyline",n}return Q(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new TP},t.prototype.buildPath=function(e,t){var n=t.points,r=0,o=n.length/2;if(t.connectNulls){for(;o>0;o--)if(!CP(n[2*o-2],n[2*o-1]))break;for(;r<o;r++)if(!CP(n[2*r],n[2*r+1]))break}while(r<o)r+=MP(e,n,r,o,o,1,t.smooth,t.smoothMonotone,t.connectNulls)+1},t.prototype.getPointOn=function(e,t){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,r,o=this.path,i=o.data,a=Du.CMD,s="x"===t,l=[],u=0;u<i.length;){var c=i[u++],d=void 0,h=void 0,p=void 0,f=void 0,g=void 0,m=void 0,v=void 0;switch(c){case a.M:n=i[u++],r=i[u++];break;case a.L:if(d=i[u++],h=i[u++],v=s?(e-n)/(d-n):(e-r)/(h-r),v<=1&&v>=0){var y=s?(h-r)*v+r:(d-n)*v+n;return s?[e,y]:[y,e]}n=d,r=h;break;case a.C:d=i[u++],h=i[u++],p=i[u++],f=i[u++],g=i[u++],m=i[u++];var b=s?Lr(n,d,p,g,e,l):Lr(r,h,f,m,e,l);if(b>0)for(var _=0;_<b;_++){var x=l[_];if(x<=1&&x>=0){y=s?Rr(r,h,f,m,x):Rr(n,d,p,g,x);return s?[e,y]:[y,e]}}n=g,r=m;break}}},t}(ac),IP=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Q(t,e),t}(TP),$P=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polygon",n}return Q(t,e),t.prototype.getDefaultShape=function(){return new IP},t.prototype.buildPath=function(e,t){var n=t.points,r=t.stackedOnPoints,o=0,i=n.length/2,a=t.smoothMonotone;if(t.connectNulls){for(;i>0;i--)if(!CP(n[2*i-2],n[2*i-1]))break;for(;o<i;o++)if(!CP(n[2*o],n[2*o+1]))break}while(o<i){var s=MP(e,n,o,i,i,1,t.smooth,a,t.connectNulls);MP(e,r,o+s-1,s,i,-1,t.stackedOnSmooth,a,t.connectNulls),o+=s+1,e.closePath()}},t}(ac);function EP(e,t,n,r,o){var i=e.getArea(),a=i.x,s=i.y,l=i.width,u=i.height,c=n.get(["lineStyle","width"])||2;a-=c/2,s-=c/2,l+=c,u+=c,l=Math.ceil(l),a!==Math.floor(a)&&(a=Math.floor(a),l++);var d=new Oc({shape:{x:a,y:s,width:l,height:u}});if(t){var h=e.getBaseAxis(),p=h.isHorizontal(),f=h.inverse;p?(f&&(d.shape.x+=l),d.shape.width=0):(f||(d.shape.y+=u),d.shape.height=0);var g=ze(o)?function(e){o(e,d)}:null;ah(d,{shape:{width:l,height:u,x:a,y:s}},n,null,r,g)}return d}function DP(e,t,n){var r=e.getArea(),o=es(r.r0,1),i=es(r.r,1),a=new Ly({shape:{cx:es(e.cx,1),cy:es(e.cy,1),r0:o,r:i,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});if(t){var s="angle"===e.getBaseAxis().dim;s?a.shape.endAngle=r.startAngle:a.shape.r=o,ah(a,{shape:{endAngle:r.endAngle,r:i}},n)}return a}function RP(e,t,n,r,o){return e?"polar"===e.type?DP(e,t,n):"cartesian2d"===e.type?EP(e,t,n,r,o):null:null}function NP(e,t){return e.type===t}function LP(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function zP(e){for(var t=1/0,n=1/0,r=-1/0,o=-1/0,i=0;i<e.length;){var a=e[i++],s=e[i++];isNaN(a)||(t=Math.min(a,t),r=Math.max(a,r)),isNaN(s)||(n=Math.min(s,n),o=Math.max(s,o))}return[[t,n],[r,o]]}function VP(e,t){var n=zP(e),r=n[0],o=n[1],i=zP(t),a=i[0],s=i[1];return Math.max(Math.abs(r[0]-a[0]),Math.abs(r[1]-a[1]),Math.abs(o[0]-s[0]),Math.abs(o[1]-s[1]))}function BP(e){return je(e)?e:e?.5:0}function jP(e,t,n){if(!n.valueDim)return[];for(var r=t.count(),o=EA(2*r),i=0;i<r;i++){var a=wP(n,e,t,i);o[2*i]=a[0],o[2*i+1]=a[1]}return o}function QP(e,t,n,r){var o=t.getBaseAxis(),i="x"===o.dim||"radius"===o.dim?0:1,a=[],s=0,l=[],u=[],c=[],d=[];if(r){for(s=0;s<e.length;s+=2)isNaN(e[s])||isNaN(e[s+1])||d.push(e[s],e[s+1]);e=d}for(s=0;s<e.length-2;s+=2)switch(c[0]=e[s+2],c[1]=e[s+3],u[0]=e[s],u[1]=e[s+1],a.push(u[0],u[1]),n){case"end":l[i]=c[i],l[1-i]=u[1-i],a.push(l[0],l[1]);break;case"middle":var h=(u[i]+c[i])/2,p=[];l[i]=p[i]=h,l[1-i]=u[1-i],p[1-i]=c[1-i],a.push(l[0],l[1]),a.push(p[0],p[1]);break;default:l[i]=u[i],l[1-i]=c[1-i],a.push(l[0],l[1])}return a.push(e[s++],e[s++]),a}function FP(e,t){var n,r,o=[],i=e.length;function a(e,t,n){var r=e.coord,o=(n-r)/(t.coord-r),i=So(o,[e.color,t.color]);return{coord:n,color:i}}for(var s=0;s<i;s++){var l=e[s],u=l.coord;if(u<0)n=l;else{if(u>t){r?o.push(a(r,l,t)):n&&o.push(a(n,l,0),a(n,l,t));break}n&&(o.push(a(n,l,0)),n=null),o.push(l),r=l}}return o}function WP(e,t,n){var r=e.getVisual("visualMeta");if(r&&r.length&&e.count()&&"cartesian2d"===t.type){for(var o,i,a=r.length-1;a>=0;a--){var s=e.getDimensionInfo(r[a].dimension);if(o=s&&s.coordDim,"x"===o||"y"===o){i=r[a];break}}if(i){var l=t.getAxis(o),u=Te(i.stops,(function(e){return{coord:l.toGlobalCoord(l.dataToCoord(e.value)),color:e.color}})),c=u.length,d=i.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),d.reverse());var h=FP(u,"x"===o?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,m=h[p-1].coord+f,v=m-g;if(v<.001)return"transparent";Me(h,(function(e){e.offset=(e.coord-g)/v})),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 hb(0,0,0,0,h,!0);return y[o]=g,y[o+"2"]=m,y}}}function HP(e,t,n){var r=e.get("showAllSymbol"),o="auto"===r;if(!r||o){var i=n.getAxesByScale("ordinal")[0];if(i&&(!o||!ZP(i,t))){var a=t.mapDimension(i.dim),s={};return Me(i.getViewLabels(),(function(e){var t=i.scale.getRawOrdinalNumber(e.tickValue);s[t]=1})),function(e){return!s.hasOwnProperty(t.get(a,e))}}}}function ZP(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var o=t.count(),i=Math.max(1,Math.round(o/5)),a=0;a<o;a+=i)if(1.5*fP.getSymbolSize(t,a)[e.isHorizontal()?1:0]>r)return!1;return!0}function GP(e,t){return isNaN(e)||isNaN(t)}function XP(e){for(var t=e.length/2;t>0;t--)if(!GP(e[2*t-2],e[2*t-1]))break;return t-1}function UP(e,t){return[e[2*t],e[2*t+1]]}function YP(e,t,n){for(var r,o,i=e.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u<i;u++)if(o=e[2*u+a],!isNaN(o)&&!isNaN(e[2*u+1-a]))if(0!==u){if(r<=t&&o>=t||r>=t&&o<=t){l=u;break}s=u,r=o}else r=o;return{range:[s,l],t:(t-r)/(o-r)}}function qP(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<qc.length;t++)if(e.get([qc[t],"endLabel","show"]))return!0;return!1}function KP(e,t,n,r){if(NP(t,"cartesian2d")){var o=r.getModel("endLabel"),i=o.get("valueAnimation"),a=r.getData(),s={lastFrameIndex:0},l=qP(r)?function(n,r){e._endLabelOnDuring(n,r,a,s,i,o,t)}:null,u=t.getBaseAxis().isHorizontal(),c=EP(t,n,r,(function(){var t=e._endLabel;t&&n&&null!=s.originalX&&t.attr({x:s.originalX,y:s.originalY})}),l);if(!r.get("clip",!0)){var d=c.shape,h=Math.max(d.width,d.height);u?(d.y-=h,d.height+=2*h):(d.x-=h,d.width+=2*h)}return l&&l(1,c),c}return DP(t,n,r)}function JP(e,t){var n=t.getBaseAxis(),r=n.isHorizontal(),o=n.inverse,i=r?o?"right":"left":"center",a=r?"middle":o?"top":"bottom";return{normal:{align:e.get("align")||i,verticalAlign:e.get("verticalAlign")||a}}}var eI=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Q(t,e),t.prototype.init=function(){var e=new Da,t=new bP;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e},t.prototype.render=function(e,t,n){var r=this,o=e.coordinateSystem,i=this.group,a=e.getData(),s=e.getModel("lineStyle"),l=e.getModel("areaStyle"),u=a.getLayout("points")||[],c="polar"===o.type,d=this._coordSys,h=this._symbolDraw,p=this._polyline,f=this._polygon,g=this._lineGroup,m=!t.ssr&&e.get("animation"),v=!l.isEmpty(),y=l.get("origin"),b=_P(o,a,y),_=v&&jP(o,a,b),x=e.get("showSymbol"),w=e.get("connectNulls"),O=x&&!c&&HP(e,a,o),S=this._data;S&&S.eachItemGraphicEl((function(e,t){e.__temp&&(i.remove(e),S.setItemGraphicEl(t,null))})),x||h.remove(),i.add(g);var A,k=!c&&e.get("step");o&&o.getArea&&e.get("clip",!0)&&(A=o.getArea(),null!=A.width?(A.x-=.1,A.y-=.1,A.width+=.2,A.height+=.2):A.r0&&(A.r0-=.5,A.r+=.5)),this._clipShapeForSymbol=A;var C=WP(a,o,n)||a.getVisual("style")[a.getVisual("drawType")];if(p&&d.type===o.type&&k===this._step){v&&!f?f=this._newPolygon(u,_):f&&!v&&(g.remove(f),f=this._polygon=null),c||this._initOrUpdateEndLabel(e,o,Up(C));var M=g.getClipPath();if(M){var T=KP(this,o,!1,e);ah(M,{shape:T.shape},e)}else g.setClipPath(KP(this,o,!0,e));x&&h.updateData(a,{isIgnore:O,clipShape:A,disableAnimation:!0,getSymbolPoint:function(e){return[u[2*e],u[2*e+1]]}}),LP(this._stackedOnPoints,_)&&LP(this._points,u)||(m?this._doUpdateAnimation(a,_,o,n,k,y,w):(k&&(u=QP(u,o,k,w),_&&(_=QP(_,o,k,w))),p.setShape({points:u}),f&&f.setShape({points:u,stackedOnPoints:_})))}else x&&h.updateData(a,{isIgnore:O,clipShape:A,disableAnimation:!0,getSymbolPoint:function(e){return[u[2*e],u[2*e+1]]}}),m&&this._initSymbolLabelAnimation(a,o,A),k&&(u=QP(u,o,k,w),_&&(_=QP(_,o,k,w))),p=this._newPolyline(u),v?f=this._newPolygon(u,_):f&&(g.remove(f),f=this._polygon=null),c||this._initOrUpdateEndLabel(e,o,Up(C)),g.setClipPath(KP(this,o,!0,e));var P=e.getModel("emphasis"),I=P.get("focus"),$=P.get("blurScope"),E=P.get("disabled");if(p.useStyle(we(s.getLineStyle(),{fill:"none",stroke:C,lineJoin:"bevel"})),Xd(p,e,"lineStyle"),p.style.lineWidth>0&&"bolder"===e.get(["emphasis","lineStyle","width"])){var D=p.getState("emphasis").style;D.lineWidth=+p.style.lineWidth+1}Qc(p).seriesIndex=e.seriesIndex,Wd(p,I,$,E);var R=BP(e.get("smooth")),N=e.get("smoothMonotone");if(p.setShape({smooth:R,smoothMonotone:N,connectNulls:w}),f){var L=a.getCalculationInfo("stackedOnSeries"),z=0;f.useStyle(we(l.getAreaStyle(),{fill:C,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),L&&(z=BP(L.get("smooth"))),f.setShape({smooth:R,stackedOnSmooth:z,smoothMonotone:N,connectNulls:w}),Xd(f,e,"areaStyle"),Qc(f).seriesIndex=e.seriesIndex,Wd(f,I,$,E)}var V=function(e){r._changePolyState(e)};a.eachItemGraphicEl((function(e){e&&(e.onHoverStateChange=V)})),this._polyline.onHoverStateChange=V,this._data=a,this._coordSys=o,this._stackedOnPoints=_,this._points=u,this._step=k,this._valueOrigin=y,e.get("triggerLineEvent")&&(this.packEventData(e,p),f&&this.packEventData(e,f))},t.prototype.packEventData=function(e,t){Qc(t).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,t,n,r){var o=e.getData(),i=Gs(o,r);if(this._changePolyState("emphasis"),!(i instanceof Array)&&null!=i&&i>=0){var a=o.getLayout("points"),s=o.getItemGraphicEl(i);if(!s){var l=a[2*i],u=a[2*i+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var c=e.get("zlevel")||0,d=e.get("z")||0;s=new fP(o,i),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,o.setItemGraphicEl(i,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else c_.prototype.highlight.call(this,e,t,n,r)},t.prototype.downplay=function(e,t,n,r){var o=e.getData(),i=Gs(o,r);if(this._changePolyState("normal"),null!=i&&i>=0){var a=o.getItemGraphicEl(i);a&&(a.__temp?(o.setItemGraphicEl(i,null),this.group.remove(a)):a.downplay())}else c_.prototype.downplay.call(this,e,t,n,r)},t.prototype._changePolyState=function(e){var t=this._polygon;md(this._polyline,e),t&&md(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new PP({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 $P({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,t,n){var r,o,i=t.getBaseAxis(),a=i.inverse;"cartesian2d"===t.type?(r=i.isHorizontal(),o=!1):"polar"===t.type&&(r="angle"===i.dim,o=!0);var s=e.hostModel,l=s.get("animationDuration");ze(l)&&(l=l(null));var u=s.get("animationDelay")||0,c=ze(u)?u(null):u;e.eachItemGraphicEl((function(e,i){var s=e;if(s){var d=[e.x,e.y],h=void 0,p=void 0,f=void 0;if(n)if(o){var g=n,m=t.pointToCoord(d);r?(h=g.startAngle,p=g.endAngle,f=-m[1]/180*Math.PI):(h=g.r0,p=g.r,f=m[0])}else{var v=n;r?(h=v.x,p=v.x+v.width,f=e.x):(h=v.y+v.height,p=v.y,f=e.y)}var y=p===h?0:(f-h)/(p-h);a&&(y=1-y);var b=ze(u)?u(i):l*y+c,_=s.getSymbolPath(),x=_.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:b}),x&&x.animateFrom({style:{opacity:0}},{duration:300,delay:b}),_.disableLabelAnimation=!0}}))},t.prototype._initOrUpdateEndLabel=function(e,t,n){var r=e.getModel("endLabel");if(qP(e)){var o=e.getData(),i=this._polyline,a=o.getLayout("points");if(!a)return i.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||(s=this._endLabel=new jc({z2:200}),s.ignoreClip=!0,i.setTextContent(this._endLabel),i.disableLabelAnimation=!0);var l=XP(a);l>=0&&(mh(i,vh(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:l,defaultText:function(e,t,n){return null!=n?dP(o,n):cP(o,e)},enableTextSetter:!0},JP(r,t)),i.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,t,n,r,o,i,a){var s=this._endLabel,l=this._polyline;if(s){e<1&&null==r.originalX&&(r.originalX=s.x,r.originalY=s.y);var u=n.getLayout("points"),c=n.hostModel,d=c.get("connectNulls"),h=i.get("precision"),p=i.get("distance")||0,f=a.getBaseAxis(),g=f.isHorizontal(),m=f.inverse,v=t.shape,y=m?g?v.x:v.y+v.height:g?v.x+v.width:v.y,b=(g?p:0)*(m?-1:1),_=(g?0:-p)*(m?-1:1),x=g?"x":"y",w=YP(u,y,x),O=w.range,S=O[1]-O[0],A=void 0;if(S>=1){if(S>1&&!d){var k=UP(u,O[0]);s.attr({x:k[0]+b,y:k[1]+_}),o&&(A=c.getRawValue(O[0]))}else{k=l.getPointOn(y,x);k&&s.attr({x:k[0]+b,y:k[1]+_});var C=c.getRawValue(O[0]),M=c.getRawValue(O[1]);o&&(A=il(n,h,C,M,w.t))}r.lastFrameIndex=O[0]}else{var T=1===e||r.lastFrameIndex>0?O[0]:0;k=UP(u,T);o&&(A=c.getRawValue(T)),s.attr({x:k[0]+b,y:k[1]+_})}if(o){var P=Ch(s);"function"===typeof P.setLabelText&&P.setLabelText(A)}}},t.prototype._doUpdateAnimation=function(e,t,n,r,o,i,a){var s=this._polyline,l=this._polygon,u=e.hostModel,c=SP(this._data,e,this._stackedOnPoints,t,this._coordSys,n,this._valueOrigin,i),d=c.current,h=c.stackedOnCurrent,p=c.next,f=c.stackedOnNext;if(o&&(d=QP(c.current,n,o,a),h=QP(c.stackedOnCurrent,n,o,a),p=QP(c.next,n,o,a),f=QP(c.stackedOnNext,n,o,a)),VP(d,p)>3e3||l&&VP(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(),ih(s,g,u),l&&(l.setShape({points:d,stackedOnPoints:h}),l.stopAnimation(),ih(l,{shape:{stackedOnPoints:f}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var m=[],v=c.status,y=0;y<v.length;y++){var b=v[y].cmd;if("="===b){var _=e.getItemGraphicEl(v[y].idx1);_&&m.push({el:_,ptIdx:y})}}s.animators&&s.animators.length&&s.animators[0].during((function(){l&&l.dirtyShape();for(var e=s.shape.__points,t=0;t<m.length;t++){var n=m[t].el,r=2*m[t].ptIdx;n.x=e[r],n.y=e[r+1],n.markRedraw()}}))},t.prototype.remove=function(e){var t=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl((function(e,r){e.__temp&&(t.remove(e),n.setItemGraphicEl(r,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(c_),tI=eI;function nI(e,t){return{seriesType:e,plan:Wv(),reset:function(e){var n=e.getData(),r=e.coordinateSystem,o=e.pipelineContext,i=t||o.large;if(r){var a=Te(r.dimensions,(function(e){return n.mapDimension(e)})).slice(0,2),s=a.length,l=n.getCalculationInfo("stackResultDimension");rA(n,a[0])&&(a[0]=l),rA(n,a[1])&&(a[1]=l);var u=n.getStore(),c=n.getDimensionIndex(a[0]),d=n.getDimensionIndex(a[1]);return s&&{progress:function(e,t){for(var n=e.end-e.start,o=i&&EA(n*s),a=[],l=[],h=e.start,p=0;h<e.end;h++){var f=void 0;if(1===s){var g=u.get(c,h);f=r.dataToPoint(g,null,l)}else a[0]=u.get(c,h),a[1]=u.get(d,h),f=r.dataToPoint(a,null,l);i?(o[p++]=f[0],o[p++]=f[1]):t.setItemLayout(h,f.slice())}i&&t.setLayout("points",o)}}}}}}var rI={average:function(e){for(var t=0,n=0,r=0;r<e.length;r++)isNaN(e[r])||(t+=e[r],n++);return 0===n?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},minmax:function(e){for(var t=-1/0,n=-1/0,r=0;r<e.length;r++){var o=e[r],i=Math.abs(o);i>t&&(t=i,n=o)}return isFinite(n)?n:NaN},nearest:function(e){return e[0]}},oI=function(e){return Math.round(e.length/2)};function iI(e){return{seriesType:e,reset:function(e,t,n){var r=e.getData(),o=e.get("sampling"),i=e.coordinateSystem,a=r.count();if(a>10&&"cartesian2d"===i.type&&o){var s=i.getBaseAxis(),l=i.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"===o&&e.setData(r.lttbDownSample(r.mapDimension(l.dim),1/h));var p=void 0;Ve(o)?p=rI[o]:ze(o)&&(p=o),p&&e.setData(r.downSample(r.mapDimension(l.dim),1/h,p,oI))}}}}}function aI(e){e.registerChartView(tI),e.registerSeriesModel(uP),e.registerLayout(nI("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,iI("line"))}var sI=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Q(t,e),t.prototype.getInitialData=function(e,t){return cA(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,t,n){var r=this.coordinateSystem;if(r&&r.clampData){var o=r.clampData(e),i=r.dataToPoint(o);if(n)Me(r.getAxes(),(function(e,n){if("category"===e.type&&null!=t){var r=e.getTicksCoords(),a=e.getTickModel().get("alignWithLabel"),s=o[n],l="x1"===t[n]||"y1"===t[n];if(l&&!a&&(s+=1),r.length<2)return;if(2===r.length)return void(i[n]=e.toGlobalCoord(e.getExtent()[l?1:0]));for(var u=void 0,c=void 0,d=1,h=0;h<r.length;h++){var p=r[h].coord,f=h===r.length-1?r[h-1].tickValue+d:r[h].tickValue;if(f===s){c=p;break}if(f<s)u=p;else if(null!=u&&f>s){c=(p+u)/2;break}1===h&&(d=f-r[0].tickValue)}null==c&&(u?u&&(c=r[r.length-1].coord):c=r[0].coord),i[n]=e.toGlobalCoord(c)}}));else{var a=this.getData(),s=a.getLayout("offset"),l=a.getLayout("size"),u=r.getBaseAxis().isHorizontal()?0:1;i[u]+=s+l/2}return i}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(jv);jv.registerClass(sI);var lI=sI,uI=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Q(t,e),t.prototype.getInitialData=function(){return cA(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),t=this.get("largeThreshold");return t>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=Gh(lI.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}(lI),cI=uI,dI=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}(),hI=function(e){function t(t){var n=e.call(this,t)||this;return n.type="sausage",n}return Q(t,e),t.prototype.getDefaultShape=function(){return new dI},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,o=Math.max(t.r0||0,0),i=Math.max(t.r,0),a=.5*(i-o),s=o+a,l=t.startAngle,u=t.endAngle,c=t.clockwise,d=2*Math.PI,h=c?u-l<d:l-u<d;h||(l=u-(c?d:-d));var p=Math.cos(l),f=Math.sin(l),g=Math.cos(u),m=Math.sin(u);h?(e.moveTo(p*o+n,f*o+r),e.arc(p*s+n,f*s+r,a,-Math.PI+l,l,!c)):e.moveTo(p*i+n,f*i+r),e.arc(n,r,i,l,u,!c),e.arc(g*s+n,m*s+r,a,u-2*Math.PI,u-Math.PI,!c),0!==o&&e.arc(n,r,o,u,l,c)},t}(ac),pI=hI;function fI(e,t){t=t||{};var n=t.isRoundCap;return function(t,r,o){var i=r.position;if(!i||i instanceof Array)return ya(t,r,o);var a=e(i),s=null!=r.distance?r.distance:5,l=this.shape,u=l.cx,c=l.cy,d=l.r,h=l.r0,p=(d+h)/2,f=l.startAngle,g=l.endAngle,m=(f+g)/2,v=n?Math.abs(d-h)/2:0,y=Math.cos,b=Math.sin,_=u+d*y(f),x=c+d*b(f),w="left",O="top";switch(a){case"startArc":_=u+(h-s)*y(m),x=c+(h-s)*b(m),w="center",O="top";break;case"insideStartArc":_=u+(h+s)*y(m),x=c+(h+s)*b(m),w="center",O="bottom";break;case"startAngle":_=u+p*y(f)+mI(f,s+v,!1),x=c+p*b(f)+vI(f,s+v,!1),w="right",O="middle";break;case"insideStartAngle":_=u+p*y(f)+mI(f,-s+v,!1),x=c+p*b(f)+vI(f,-s+v,!1),w="left",O="middle";break;case"middle":_=u+p*y(m),x=c+p*b(m),w="center",O="middle";break;case"endArc":_=u+(d+s)*y(m),x=c+(d+s)*b(m),w="center",O="bottom";break;case"insideEndArc":_=u+(d-s)*y(m),x=c+(d-s)*b(m),w="center",O="top";break;case"endAngle":_=u+p*y(g)+mI(g,s+v,!0),x=c+p*b(g)+vI(g,s+v,!0),w="left",O="middle";break;case"insideEndAngle":_=u+p*y(g)+mI(g,-s+v,!0),x=c+p*b(g)+vI(g,-s+v,!0),w="right",O="middle";break;default:return ya(t,r,o)}return t=t||{},t.x=_,t.y=x,t.align=w,t.verticalAlign=O,t}}function gI(e,t,n,r){if(je(r))e.setTextConfig({rotation:r});else if(Le(t))e.setTextConfig({rotation:0});else{var o,i=e.shape,a=i.clockwise?i.startAngle:i.endAngle,s=i.clockwise?i.endAngle:i.startAngle,l=(a+s)/2,u=n(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":o=l;break;case"startAngle":case"insideStartAngle":o=a;break;case"endAngle":case"insideEndAngle":o=s;break;default:return void e.setTextConfig({rotation:0})}var c=1.5*Math.PI-o;"middle"===u&&c>Math.PI/2&&c<1.5*Math.PI&&(c-=Math.PI),e.setTextConfig({rotation:c})}}function mI(e,t,n){return t*Math.sin(e)*(n?-1:1)}function vI(e,t,n){return t*Math.cos(e)*(n?1:-1)}function yI(e,t,n){var r=e.get("borderRadius");if(null==r)return n?{cornerRadius:0}:null;Le(r)||(r=[r,r,r,r]);var o=Math.abs(t.r||0-t.r0||0);return{cornerRadius:Te(r,(function(e){return va(e,o)}))}}var bI=Math.max,_I=Math.min;function xI(e,t){var n=e.getArea&&e.getArea();if(NP(e,"cartesian2d")){var r=e.getBaseAxis();if("category"!==r.type||!r.onBand){var o=t.getLayout("bandWidth");r.isHorizontal()?(n.x-=o,n.width+=2*o):(n.y-=o,n.height+=2*o)}}return n}var wI=function(e){function t(){var n=e.call(this)||this;return n.type=t.type,n._isFirstFrame=!0,n}return Q(t,e),t.prototype.render=function(e,t,n,r){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var o=e.get("coordinateSystem");("cartesian2d"===o||"polar"===o)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,t,n):this._renderNormal(e,t,n,r))},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){t_(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,r){var o,i=this.group,a=e.getData(),s=this._data,l=e.coordinateSystem,u=l.getBaseAxis();"cartesian2d"===l.type?o=u.isHorizontal():"polar"===l.type&&(o="angle"===u.dim);var c=e.isAnimationEnabled()?e:null,d=AI(e,l);d&&this._enableRealtimeSort(d,a,n);var h=e.get("clip",!0)||d,p=xI(l,a);i.removeClipPath();var f=e.get("roundCap",!0),g=e.get("showBackground",!0),m=e.getModel("backgroundStyle"),v=m.get("borderRadius")||0,y=[],b=this._backgroundEls,_=r&&r.isInitSort,x=r&&"changeAxisOrder"===r.type;function w(e){var t=II[l.type](a,e),n=QI(l,o,t);return n.useStyle(m.getItemStyle()),"cartesian2d"===l.type?n.setShape("r",v):n.setShape("cornerRadius",v),y[e]=n,n}a.diff(s).add((function(t){var n=a.getItemModel(t),r=II[l.type](a,t,n);if(g&&w(t),a.hasValue(t)&&PI[l.type](r)){var s=!1;h&&(s=OI[l.type](p,r));var m=SI[l.type](e,a,t,r,o,c,u.model,!1,f);d&&(m.forceLabelAnimation=!0),DI(m,a,t,n,r,e,o,"polar"===l.type),_?m.attr({shape:r}):d?kI(d,c,m,r,t,o,!1,!1):ah(m,{shape:r},e,t),a.setItemGraphicEl(t,m),i.add(m),m.ignore=s}})).update((function(t,n){var r=a.getItemModel(t),O=II[l.type](a,t,r);if(g){var S=void 0;0===b.length?S=w(n):(S=b[n],S.useStyle(m.getItemStyle()),"cartesian2d"===l.type?S.setShape("r",v):S.setShape("cornerRadius",v),y[t]=S);var A=II[l.type](a,t),k=jI(o,A,l);ih(S,{shape:k},c,t)}var C=s.getItemGraphicEl(n);if(a.hasValue(t)&&PI[l.type](O)){var M=!1;if(h&&(M=OI[l.type](p,O),M&&i.remove(C)),C?dh(C):C=SI[l.type](e,a,t,O,o,c,u.model,!!C,f),d&&(C.forceLabelAnimation=!0),x){var T=C.getTextContent();if(T){var P=Ch(T);null!=P.prevValue&&(P.prevValue=P.value)}}else DI(C,a,t,r,O,e,o,"polar"===l.type);_?C.attr({shape:O}):d?kI(d,c,C,O,t,o,!0,x):ih(C,{shape:O},e,t,null),a.setItemGraphicEl(t,C),C.ignore=M,i.add(C)}else i.remove(C)})).remove((function(t){var n=s.getItemGraphicEl(t);n&&ch(n,e,t)})).execute();var O=this._backgroundGroup||(this._backgroundGroup=new Da);O.removeAll();for(var S=0;S<y.length;++S)O.add(y[S]);i.add(O),this._backgroundEls=y,this._data=a},t.prototype._renderLarge=function(e,t,n){this._clear(),zI(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,t){this._removeBackground(),zI(t,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var t=e.get("clip",!0)&&RP(e.coordinateSystem,!1,e),n=this.group;t?n.setClipPath(t):n.removeClipPath()},t.prototype._enableRealtimeSort=function(e,t,n){var r=this;if(t.count()){var o=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(t,e,n),this._isFirstFrame=!1;else{var i=function(e){var n=t.getItemGraphicEl(e),r=n&&n.shape;return r&&Math.abs(o.isHorizontal()?r.height:r.width)||0};this._onRendered=function(){r._updateSortWithinSameData(t,i,o,n)},n.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,t,n){var r=[];return e.each(e.mapDimension(t.dim),(function(e,t){var o=n(t);o=null==o?NaN:o,r.push({dataIndex:t,mappedValue:o,ordinalNumber:e})})),r.sort((function(e,t){return t.mappedValue-e.mappedValue})),{ordinalNumbers:Te(r,(function(e){return e.ordinalNumber}))}},t.prototype._isOrderChangedWithinSameData=function(e,t,n){for(var r=n.scale,o=e.mapDimension(n.dim),i=Number.MAX_VALUE,a=0,s=r.getOrdinalMeta().categories.length;a<s;++a){var l=e.rawIndexOf(o,r.getRawOrdinalNumber(a)),u=l<0?Number.MIN_VALUE:t(e.indexOfRawIndex(l));if(u>i)return!0;i=u}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,r=n.getExtent(),o=Math.max(0,r[0]),i=Math.min(r[1],n.getOrdinalMeta().categories.length-1);o<=i;++o)if(e.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,r){if(this._isOrderChangedWithinSameData(e,t,n)){var o=this._dataSort(e,n,t);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,t,n){var r=t.baseAxis,o=this._dataSort(e,r,(function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:r.dim+"Axis",isInitSort:!0,axisId:r.index,sortInfo:o})},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){ch(t,e,Qc(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}(c_),OI={cartesian2d:function(e,t){var n=t.width<0?-1:1,r=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var o=e.x+e.width,i=e.y+e.height,a=bI(t.x,e.x),s=_I(t.x+t.width,o),l=bI(t.y,e.y),u=_I(t.y+t.height,i),c=s<a,d=u<l;return t.x=c&&a>o?s:a,t.y=d&&l>i?u:l,t.width=c?0:s-a,t.height=d?0:u-l,n<0&&(t.x+=t.width,t.width=-t.width),r<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 r=t.r;t.r=t.r0,t.r0=r}var o=_I(t.r,e.r),i=bI(t.r0,e.r0);t.r=o,t.r0=i;var a=o-i<0;if(n<0){r=t.r;t.r=t.r0,t.r0=r}return a}},SI={cartesian2d:function(e,t,n,r,o,i,a,s,l){var u=new Oc({shape:xe({},r),z2:1});if(u.__dataIndex=n,u.name="item",i){var c=u.shape,d=o?"height":"width";c[d]=0}return u},polar:function(e,t,n,r,o,i,a,s,l){var u=!o&&l?pI:Ly,c=new u({shape:r,z2:1});c.name="item";var d=EI(o);if(c.calculateTextPosition=fI(d,{isRoundCap:u===pI}),i){var h=c.shape,p=o?"r":"endAngle",f={};h[p]=o?r.r0:r.startAngle,f[p]=r[p],(s?ih:ah)(c,{shape:f},i)}return c}};function AI(e,t){var n=e.get("realtimeSort",!0),r=t.getBaseAxis();if(n&&"category"===r.type&&"cartesian2d"===t.type)return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}function kI(e,t,n,r,o,i,a,s){var l,u;i?(u={x:r.x,width:r.width},l={y:r.y,height:r.height}):(u={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(a?ih:ah)(n,{shape:l},t,o,null);var c=t?e.baseAxis.model:null;(a?ih:ah)(n,{shape:u},c,o)}function CI(e,t){for(var n=0;n<t.length;n++)if(!isFinite(e[t[n]]))return!0;return!1}var MI=["x","y","width","height"],TI=["cx","cy","r","startAngle","endAngle"],PI={cartesian2d:function(e){return!CI(e,MI)},polar:function(e){return!CI(e,TI)}},II={cartesian2d:function(e,t,n){var r=e.getItemLayout(t),o=n?RI(n,r):0,i=r.width>0?1:-1,a=r.height>0?1:-1;return{x:r.x+i*o/2,y:r.y+a*o/2,width:r.width-i*o,height:r.height-a*o}},polar:function(e,t,n){var r=e.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function $I(e){return null!=e.startAngle&&null!=e.endAngle&&e.startAngle===e.endAngle}function EI(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 DI(e,t,n,r,o,i,a,s){var l=t.getItemVisual(n,"style");if(s){if(!i.get("roundCap")){var u=e.shape,c=yI(r.getModel("itemStyle"),u,!0);xe(u,c),e.setShape(u)}}else{var d=r.get(["itemStyle","borderRadius"])||0;e.setShape("r",d)}e.useStyle(l);var h=r.getShallow("cursor");h&&e.attr("cursor",h);var p=s?a?o.r>=o.r0?"endArc":"startArc":o.endAngle>=o.startAngle?"endAngle":"startAngle":a?o.height>=0?"bottom":"top":o.width>=0?"right":"left",f=vh(r);mh(e,f,{labelFetcher:i,labelDataIndex:n,defaultText:cP(i.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:p});var g=e.getTextContent();if(s&&g){var m=r.get(["label","position"]);e.textConfig.inside="middle"===m||null,gI(e,"outside"===m?p:m,EI(a),r.get(["label","rotate"]))}Mh(g,f,i.getRawValue(n),(function(e){return dP(t,e)}));var v=r.getModel(["emphasis"]);Wd(e,v.get("focus"),v.get("blurScope"),v.get("disabled")),Xd(e,r),$I(o)&&(e.style.fill="none",e.style.stroke="none",Me(e.states,(function(e){e.style&&(e.style.fill=e.style.stroke="none")})))}function RI(e,t){var n=e.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var r=e.get(["itemStyle","borderWidth"])||0,o=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),i=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,o,i)}var NI=function(){function e(){}return e}(),LI=function(e){function t(t){var n=e.call(this,t)||this;return n.type="largeBar",n}return Q(t,e),t.prototype.getDefaultShape=function(){return new NI},t.prototype.buildPath=function(e,t){for(var n=t.points,r=this.baseDimIdx,o=1-this.baseDimIdx,i=[],a=[],s=this.barWidth,l=0;l<n.length;l+=3)a[r]=s,a[o]=n[l+2],i[r]=n[l+r],i[o]=n[l+o],e.rect(i[0],i[1],a[0],a[1])},t}(ac);function zI(e,t,n,r){var o=e.getData(),i=o.getLayout("valueAxisHorizontal")?1:0,a=o.getLayout("largeDataIndices"),s=o.getLayout("size"),l=e.getModel("backgroundStyle"),u=o.getLayout("largeBackgroundPoints");if(u){var c=new LI({shape:{points:u},incremental:!!r,silent:!0,z2:0});c.baseDimIdx=i,c.largeDataIndices=a,c.barWidth=s,c.useStyle(l.getItemStyle()),t.add(c),n&&n.push(c)}var d=new LI({shape:{points:o.getLayout("largePoints")},incremental:!!r,ignoreCoarsePointer:!0,z2:1});d.baseDimIdx=i,d.largeDataIndices=a,d.barWidth=s,t.add(d),d.useStyle(o.getVisual("style")),Qc(d).seriesIndex=e.seriesIndex,e.get("silent")||(d.on("mousedown",VI),d.on("mousemove",VI)),n&&n.push(d)}var VI=f_((function(e){var t=this,n=BI(t,e.offsetX,e.offsetY);Qc(t).dataIndex=n>=0?n:null}),30,!1);function BI(e,t,n){for(var r=e.baseDimIdx,o=1-r,i=e.shape.points,a=e.largeDataIndices,s=[],l=[],u=e.barWidth,c=0,d=i.length/3;c<d;c++){var h=3*c;if(l[r]=u,l[o]=i[h+2],s[r]=i[h+r],s[o]=i[h+o],l[o]<0&&(s[o]+=l[o],l[o]=-l[o]),t>=s[0]&&t<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[c]}return-1}function jI(e,t,n){if(NP(n,"cartesian2d")){var r=t,o=n.getArea();return{x:e?r.x:o.x,y:e?o.y:r.y,width:e?r.width:o.width,height:e?o.height:r.height}}o=n.getArea();var i=t;return{cx:o.cx,cy:o.cy,r0:e?o.r0:i.r0,r:e?o.r:i.r,startAngle:e?i.startAngle:0,endAngle:e?i.endAngle:2*Math.PI}}function QI(e,t,n){var r="polar"===e.type?Ly:Oc;return new r({shape:jI(t,n,e),silent:!0,z2:0})}var FI=wI;function WI(e){e.registerChartView(FI),e.registerSeriesModel(cI),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Ne(FA,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,WA("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,iI("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 HI=2*Math.PI,ZI=Math.PI/180;function GI(e,t){return rf(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function XI(e,t){var n=GI(e,t),r=e.get("center"),o=e.get("radius");Le(o)||(o=[0,o]);var i,a,s=Ja(n.width,t.getWidth()),l=Ja(n.height,t.getHeight()),u=Math.min(s,l),c=Ja(o[0],u/2),d=Ja(o[1],u/2),h=e.coordinateSystem;if(h){var p=h.dataToPoint(r);i=p[0]||0,a=p[1]||0}else Le(r)||(r=[r,r]),i=Ja(r[0],s)+n.x,a=Ja(r[1],l)+n.y;return{cx:i,cy:a,r0:c,r:d}}function UI(e,t,n){t.eachSeriesByType(e,(function(e){var t=e.getData(),r=t.mapDimension("value"),o=GI(e,n),i=XI(e,n),a=i.cx,s=i.cy,l=i.r,u=i.r0,c=-e.get("startAngle")*ZI,d=e.get("endAngle"),h=e.get("padAngle")*ZI;d="auto"===d?c-HI:-d*ZI;var p=e.get("minAngle")*ZI,f=p+h,g=0;t.each(r,(function(e){!isNaN(e)&&g++}));var m=t.getSum(r),v=Math.PI/(m||g)*2,y=e.get("clockwise"),b=e.get("roseType"),_=e.get("stillShowZeroSum"),x=t.getDataExtent(r);x[0]=0;var w=y?1:-1,O=[c,d],S=w*h/2;$u(O,!y),c=O[0],d=O[1];var A=YI(e);A.startAngle=c,A.endAngle=d,A.clockwise=y;var k=Math.abs(d-c),C=k,M=0,T=c;if(t.setLayout({viewRect:o,r:l}),t.each(r,(function(e,n){var r;if(isNaN(e))t.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:y,cx:a,cy:s,r0:u,r:b?NaN:l});else{r="area"!==b?0===m&&_?v:e*v:k/g,r<f?(r=f,C-=f):M+=e;var o=T+w*r,i=0,c=0;h>r?(i=T+w*r/2,c=i):(i=T+S,c=o-S),t.setItemLayout(n,{angle:r,startAngle:i,endAngle:c,clockwise:y,cx:a,cy:s,r0:u,r:b?Ka(e,x,[u,l]):l}),T=o}})),C<HI&&g)if(C<=.001){var P=k/g;t.each(r,(function(e,n){if(!isNaN(e)){var r=t.getItemLayout(n);r.angle=P;var o=0,i=0;P<h?(o=c+w*(n+.5)*P,i=o):(o=c+w*n*P+S,i=c+w*(n+1)*P-S),r.startAngle=o,r.endAngle=i}}))}else v=C/M,T=c,t.each(r,(function(e,n){if(!isNaN(e)){var r=t.getItemLayout(n),o=r.angle===f?f:e*v,i=0,a=0;o<h?(i=T+w*o/2,a=i):(i=T+S,a=T+w*o-S),r.startAngle=i,r.endAngle=a,T+=w*o}}))}))}var YI=Xs();function qI(e){return{seriesType:e,reset:function(e,t){var n=t.findComponents({mainType:"legend"});if(n&&n.length){var r=e.getData();r.filterSelf((function(e){for(var t=r.getName(e),o=0;o<n.length;o++)if(!n[o].isSelected(t))return!1;return!0}))}}}}var KI=Math.PI/180;function JI(e,t,n,r,o,i,a,s,l,u){if(!(e.length<2)){for(var c=e.length,d=0;d<c;d++)if("outer"===e[d].position&&"labelLine"===e[d].labelAlignTo){var h=e[d].label.x-u;e[d].linePoints[1][0]+=h,e[d].label.x=u}nM(e,l,l+a)&&f(e)}function p(e){for(var i=e.rB,a=i*i,s=0;s<e.list.length;s++){var l=e.list[s],u=Math.abs(l.label.y-n),c=r+l.len,d=c*c,h=Math.sqrt((1-Math.abs(u*u/a))*d),p=t+(h+l.len2)*o,f=p-l.label.x,g=l.targetTextWidth-f*o;t$(l,g,!0),l.label.x=p}}function f(e){for(var i={list:[],maxY:0},a={list:[],maxY:0},s=0;s<e.length;s++)if("none"===e[s].labelAlignTo){var l=e[s],u=l.label.y>n?a:i,c=Math.abs(l.label.y-n);if(c>=u.maxY){var d=l.label.x-t-l.len2*o,h=r+l.len,f=Math.abs(d)<h?Math.sqrt(c*c/(1-d*d/h/h)):h;u.rB=f,u.maxY=c}u.list.push(l)}p(i),p(a)}}function e$(e,t,n,r,o,i,a,s){for(var l=[],u=[],c=Number.MAX_VALUE,d=-Number.MAX_VALUE,h=0;h<e.length;h++){var p=e[h].label;n$(e[h])||(p.x<t?(c=Math.min(c,p.x),l.push(e[h])):(d=Math.max(d,p.x),u.push(e[h])))}for(h=0;h<e.length;h++){var f=e[h];if(!n$(f)&&f.linePoints){if(null!=f.labelStyleWidth)continue;p=f.label;var g=f.linePoints,m=void 0;m="edge"===f.labelAlignTo?p.x<t?g[2][0]-f.labelDistance-a-f.edgeDistance:a+o-f.edgeDistance-g[2][0]-f.labelDistance:"labelLine"===f.labelAlignTo?p.x<t?c-a-f.bleedMargin:a+o-d-f.bleedMargin:p.x<t?p.x-a-f.bleedMargin:a+o-p.x-f.bleedMargin,f.targetTextWidth=m,t$(f,m)}}JI(u,t,n,r,1,o,i,a,s,d),JI(l,t,n,r,-1,o,i,a,s,c);for(h=0;h<e.length;h++){f=e[h];if(!n$(f)&&f.linePoints){p=f.label,g=f.linePoints;var v="edge"===f.labelAlignTo,y=p.style.padding,b=y?y[1]+y[3]:0,_=p.style.backgroundColor?0:b,x=f.rect.width+_,w=g[1][0]-g[2][0];v?p.x<t?g[2][0]=a+f.edgeDistance+x+f.labelDistance:g[2][0]=a+o-f.edgeDistance-x-f.labelDistance:(p.x<t?g[2][0]=p.x+f.labelDistance:g[2][0]=p.x-f.labelDistance,g[1][0]=g[2][0]+w),g[1][1]=g[2][1]=p.y}}}function t$(e,t,n){if(void 0===n&&(n=!1),null==e.labelStyleWidth){var r=e.label,o=r.style,i=e.rect,a=o.backgroundColor,s=o.padding,l=s?s[1]+s[3]:0,u=o.overflow,c=i.width+(a?0:l);if(t<c||n){var d=i.height;if(u&&u.match("break")){r.setStyle("backgroundColor",null),r.setStyle("width",t-l);var h=r.getBoundingRect();r.setStyle("width",Math.ceil(h.width)),r.setStyle("backgroundColor",a)}else{var p=t-l,f=t<c?p:n?p>e.unconstrainedWidth?null:p:null;r.setStyle("width",f)}var g=r.getBoundingRect();i.width=g.width;var m=(r.style.margin||0)+2.1;i.height=g.height+m,i.y-=(i.height-d)/2}}}function n$(e){return"center"===e.position}function r$(e){var t,n,r=e.getData(),o=[],i=!1,a=(e.get("minShowLabelAngle")||0)*KI,s=r.getLayout("viewRect"),l=r.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}r.each((function(e){var s=r.getItemGraphicEl(e),d=s.shape,h=s.getTextContent(),g=s.getTextGuideLine(),m=r.getItemModel(e),v=m.getModel("label"),y=v.get("position")||m.get(["emphasis","label","position"]),b=v.get("distanceToLabelLine"),_=v.get("alignTo"),x=Ja(v.get("edgeDistance"),u),w=v.get("bleedMargin"),O=m.getModel("labelLine"),S=O.get("length");S=Ja(S,u);var A=O.get("length2");if(A=Ja(A,u),Math.abs(d.endAngle-d.startAngle)<a)return Me(h.states,p),h.ignore=!0,void(g&&(Me(g.states,p),g.ignore=!0));if(f(h)){var k,C,M,T,P=(d.startAngle+d.endAngle)/2,I=Math.cos(P),$=Math.sin(P);t=d.cx,n=d.cy;var E="inside"===y||"inner"===y;if("center"===y)k=d.cx,C=d.cy,T="center";else{var D=(E?(d.r+d.r0)/2*I:d.r*I)+t,R=(E?(d.r+d.r0)/2*$:d.r*$)+n;if(k=D+3*I,C=R+3*$,!E){var N=D+I*(S+l-d.r),L=R+$*(S+l-d.r),z=N+(I<0?-1:1)*A,V=L;k="edge"===_?I<0?c+x:c+u-x:z+(I<0?-b:b),C=V,M=[[D,R],[N,L],[z,V]]}T=E?"center":"edge"===_?I>0?"right":"left":I>0?"left":"right"}var B=Math.PI,j=0,Q=v.get("rotate");if(je(Q))j=Q*(B/180);else if("center"===y)j=0;else if("radial"===Q||!0===Q){var F=I<0?-P+B:-P;j=F}else if("tangential"===Q&&"outside"!==y&&"outer"!==y){var W=Math.atan2(I,$);W<0&&(W=2*B+W);var H=$>0;H&&(W=B+W),j=W-B}if(i=!!j,h.x=k,h.y=C,h.rotation=j,h.setStyle({verticalAlign:"middle"}),E){h.setStyle({align:T});var Z=h.states.select;Z&&(Z.x+=h.x,Z.y+=h.y)}else{var G=h.getBoundingRect().clone();G.applyTransform(h.getComputedTransform());var X=(h.style.margin||0)+2.1;G.y-=X/2,G.height+=X,o.push({label:h,labelLine:g,position:y,len:S,len2:A,minTurnAngle:O.get("minTurnAngle"),maxSurfaceAngle:O.get("maxSurfaceAngle"),surfaceNormal:new En(I,$),linePoints:M,textAlign:T,labelDistance:b,labelAlignTo:_,edgeDistance:x,bleedMargin:w,rect:G,unconstrainedWidth:G.width,labelStyleWidth:h.style.width})}s.setTextConfig({inside:E})}})),!i&&e.get("avoidLabelOverlap")&&e$(o,t,n,l,u,h,c,d);for(var g=0;g<o.length;g++){var m=o[g],v=m.label,y=m.labelLine,b=isNaN(v.x)||isNaN(v.y);if(v){v.setStyle({align:m.textAlign}),b&&(Me(v.states,p),v.ignore=!0);var _=v.states.select;_&&(_.x+=v.x,_.y+=v.y)}if(y){var x=m.linePoints;b||!x?(Me(y.states,p),y.ignore=!0):(GC(x,m.minTurnAngle),XC(x,m.surfaceNormal,m.maxSurfaceAngle),y.setShape({points:x}),v.__hostTarget.textGuideLineConfig={anchor:new En(x[0][0],x[0][1])})}}}var o$=function(e){function t(t,n,r){var o=e.call(this)||this;o.z2=2;var i=new jc;return o.setTextContent(i),o.updateData(t,n,r,!0),o}return Q(t,e),t.prototype.updateData=function(e,t,n,r){var o=this,i=e.hostModel,a=e.getItemModel(t),s=a.getModel("emphasis"),l=e.getItemLayout(t),u=xe(yI(a.getModel("itemStyle"),l,!0),l);if(isNaN(u.startAngle))o.setShape(u);else{if(r){o.setShape(u);var c=i.getShallow("animationType");i.ecModel.ssr?(ah(o,{scaleX:0,scaleY:0},i,{dataIndex:t,isFrom:!0}),o.originX=u.cx,o.originY=u.cy):"scale"===c?(o.shape.r=l.r0,ah(o,{shape:{r:l.r}},i,t)):null!=n?(o.setShape({startAngle:n,endAngle:n}),ah(o,{shape:{startAngle:l.startAngle,endAngle:l.endAngle}},i,t)):(o.shape.endAngle=l.startAngle,ih(o,{shape:{endAngle:l.endAngle}},i,t))}else dh(o),ih(o,{shape:u},i,t);o.useStyle(e.getItemVisual(t,"style")),Xd(o,a);var d=(l.startAngle+l.endAngle)/2,h=i.get("selectedOffset"),p=Math.cos(d)*h,f=Math.sin(d)*h,g=a.getShallow("cursor");g&&o.attr("cursor",g),this._updateLabel(i,e,t),o.ensureState("emphasis").shape=xe({r:l.r+(s.get("scale")&&s.get("scaleSize")||0)},yI(s.getModel("itemStyle"),l)),xe(o.ensureState("select"),{x:p,y:f,shape:yI(a.getModel(["select","itemStyle"]),l)}),xe(o.ensureState("blur"),{shape:yI(a.getModel(["blur","itemStyle"]),l)});var m=o.getTextGuideLine(),v=o.getTextContent();m&&xe(m.ensureState("select"),{x:p,y:f}),xe(v.ensureState("select"),{x:p,y:f}),Wd(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))}},t.prototype._updateLabel=function(e,t,n){var r=this,o=t.getItemModel(n),i=o.getModel("labelLine"),a=t.getItemVisual(n,"style"),s=a&&a.fill,l=a&&a.opacity;mh(r,vh(o),{labelFetcher:t.hostModel,labelDataIndex:n,inheritColor:s,defaultOpacity:l,defaultText:e.getFormattedLabel(n,"normal")||t.getName(n)});var u=r.getTextContent();r.setTextConfig({position:null,rotation:null}),u.attr({z2:10});var c=e.get(["label","position"]);if("outside"!==c&&"outer"!==c)r.removeTextGuideLine();else{var d=this.getTextGuideLine();d||(d=new Xy,this.setTextGuideLine(d)),qC(this,KC(o),{stroke:s,opacity:Ke(i.get(["lineStyle","opacity"]),l,1)})}},t}(Ly),i$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return Q(t,e),t.prototype.render=function(e,t,n,r){var o,i=e.getData(),a=this._data,s=this.group;if(!a&&i.count()>0){for(var l=i.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u<i.count();++u)l=i.getItemLayout(u);l&&(o=l.startAngle)}if(this._emptyCircleSector&&s.remove(this._emptyCircleSector),0===i.count()&&e.get("showEmptyCircle")){var c=YI(e),d=new Ly({shape:xe(XI(e,n),c)});d.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=d,s.add(d)}i.diff(a).add((function(e){var t=new o$(i,e,o);i.setItemGraphicEl(e,t),s.add(t)})).update((function(e,t){var n=a.getItemGraphicEl(t);n.updateData(i,e,o),n.off("click"),s.add(n),i.setItemGraphicEl(e,n)})).remove((function(t){var n=a.getItemGraphicEl(t);ch(n,e,t)})).execute(),r$(e),"expansion"!==e.get("animationTypeUpdate")&&(this._data=i)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,t){var n=t.getData(),r=n.getItemLayout(0);if(r){var o=e[0]-r.cx,i=e[1]-r.cy,a=Math.sqrt(o*o+i*i);return a<=r.r&&a>=r.r0}},t.type="pie",t}(c_),a$=i$;function s$(e,t,n){t=Le(t)&&{coordDimensions:t}||xe({encodeDefine:e.getEncode()},t);var r=e.getSource(),o=GS(r,t).dimensions,i=new HS(o,e);return i.initData(r,n),i}var l$=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}(),u$=l$,c$=Xs(),d$=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Q(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new u$(Re(this.getData,this),Re(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return s$(this,{coordDimensions:["value"],encodeDefaulter:Ne(If,this)})},t.prototype.getDataParams=function(t){var n=this.getData(),r=c$(n),o=r.seats;if(!o){var i=[];n.each(n.mapDimension("value"),(function(e){i.push(e)})),o=r.seats=as(i,n.hostModel.get("percentPrecision"))}var a=e.prototype.getDataParams.call(this,t);return a.percent=o[t]||0,a.$vars.push("percent"),a},t.prototype._defaultLabelLine=function(e){Cs(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,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(jv),h$=d$;function p$(e){return{seriesType:e,reset:function(e,t){var n=e.getData();n.filterSelf((function(e){var t=n.mapDimension("value"),r=n.get(t,e);return!(je(r)&&!isNaN(r)&&r<0)}))}}}function f$(e){e.registerChartView(a$),e.registerSeriesModel(h$),ax("pie",e.registerAction),e.registerLayout(Ne(UI,"pie")),e.registerProcessor(qI("pie")),e.registerProcessor(p$("pie"))}var g$=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return Q(t,e),t.prototype.getInitialData=function(e,t){return cA(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}(jv),m$=g$,v$=4,y$=function(){function e(){}return e}(),b$=function(e){function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return Q(t,e),t.prototype.getDefaultShape=function(){return new y$},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,t){var n,r=t.points,o=t.size,i=this.symbolProxy,a=i.shape,s=e.getContext?e.getContext():e,l=s&&o[0]<v$,u=this.softClipShape;if(l)this._ctx=s;else{for(this._ctx=null,n=this._off;n<r.length;){var c=r[n++],d=r[n++];isNaN(c)||isNaN(d)||(u&&!u.contain(c,d)||(a.x=c-o[0]/2,a.y=d-o[1]/2,a.width=o[0],a.height=o[1],i.buildPath(e,a,!0)))}this.incremental&&(this._off=n,this.notClear=!0)}},t.prototype.afterBrush=function(){var e,t=this.shape,n=t.points,r=t.size,o=this._ctx,i=this.softClipShape;if(o){for(e=this._off;e<n.length;){var a=n[e++],s=n[e++];isNaN(a)||isNaN(s)||(i&&!i.contain(a,s)||o.fillRect(a-r[0]/2,s-r[1]/2,r[0],r[1]))}this.incremental&&(this._off=e,this.notClear=!0)}},t.prototype.findDataIndex=function(e,t){for(var n=this.shape,r=n.points,o=n.size,i=Math.max(o[0],4),a=Math.max(o[1],4),s=r.length/2-1;s>=0;s--){var l=2*s,u=r[l]-i/2,c=r[l+1]-a/2;if(e>=u&&t>=c&&e<=u+i&&t<=c+a)return s}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect();if(e=n[0],t=n[1],r.contain(e,t)){var o=this.hoverDataIdx=this.findDataIndex(e,t);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape,n=t.points,r=t.size,o=r[0],i=r[1],a=1/0,s=1/0,l=-1/0,u=-1/0,c=0;c<n.length;){var d=n[c++],h=n[c++];a=Math.min(d,a),l=Math.max(d,l),s=Math.min(h,s),u=Math.max(h,u)}e=this._rect=new Fn(a-o/2,s-i/2,l-a+o,u-s+i)}return e},t}(ac),_$=function(){function e(){this.group=new Da}return e.prototype.updateData=function(e,t){this._clear();var n=this._create();n.setShape({points:e.getLayout("points")}),this._setCommon(n,e,t)},e.prototype.updateLayout=function(e){var t=e.getLayout("points");this.group.eachChild((function(e){if(null!=e.startIndex){var n=2*(e.endIndex-e.startIndex),r=4*e.startIndex*2;t=new Float32Array(t.buffer,r,n)}e.setShape("points",t),e.reset()}))},e.prototype.incrementalPrepareUpdate=function(e){this._clear()},e.prototype.incrementalUpdate=function(e,t,n){var r=this._newAdded[0],o=t.getLayout("points"),i=r&&r.shape.points;if(i&&i.length<2e4){var a=i.length,s=new Float32Array(a+o.length);s.set(i),s.set(o,a),r.endIndex=e.end,r.setShape({points:s})}else{this._newAdded=[];var l=this._create();l.startIndex=e.start,l.endIndex=e.end,l.incremental=!0,l.setShape({points:o}),this._setCommon(l,t,n)}},e.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},e.prototype._create=function(){var e=new b$({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},e.prototype._setCommon=function(e,t,n){var r=t.hostModel;n=n||{};var o=t.getVisual("symbolSize");e.setShape("size",o instanceof Array?o:[o,o]),e.softClipShape=n.clipShape||null,e.symbolProxy=Sx(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var i=e.shape.size[0]<v$;e.useStyle(r.getModel("itemStyle").getItemStyle(i?["color","shadowBlur","shadowColor"]:["color"]));var a=t.getVisual("style"),s=a&&a.fill;s&&e.setColor(s);var l=Qc(e);l.seriesIndex=r.seriesIndex,e.on("mousemove",(function(t){l.dataIndex=null;var n=e.hoverDataIdx;n>=0&&(l.dataIndex=n+(e.startIndex||0))}))},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),x$=_$,w$=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Q(t,e),t.prototype.render=function(e,t,n){var r=e.getData(),o=this._updateSymbolDraw(r,e);o.updateData(r,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var r=e.getData(),o=this._updateSymbolDraw(r,e);o.incrementalPrepareUpdate(r),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 r=e.getData();if(this.group.dirty(),!this._finished||r.count()>1e4)return{update:!0};var o=nI("").reset(e,t,n);o.progress&&o.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout(r)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){if(e.get("clip",!0)){var t=e.coordinateSystem;return t&&t.getArea&&t.getArea(.1)}},t.prototype._updateSymbolDraw=function(e,t){var n=this._symbolDraw,r=t.pipelineContext,o=r.large;return n&&o===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=o?new x$:new bP,this._isLargeDraw=o,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}(c_),O$=w$,S$=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Q(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}(ff),A$=S$,k$=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Q(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Ks).models[0]},t.type="cartesian2dAxis",t}(ff);ke(k$,Rk);var C$={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)"]}}},M$=be({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},C$),T$=be({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},C$),P$=be({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},T$),I$=we({logBase:10},T$),$$={category:M$,value:T$,time:P$,log:I$},E$={value:1,category:1,time:1,log:1};function D$(e,t,n,r){Me(E$,(function(o,i){var a=be(be({},$$[i],!0),r,!0),s=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t+"Axis."+i,n}return Q(n,e),n.prototype.mergeDefaultAndTheme=function(e,t){var n=sf(this),r=n?uf(e):{},o=t.getTheme();be(e,o.get(i+"Axis")),be(e,this.getDefaultOption()),e.type=R$(e),n&&lf(e,r,n)},n.prototype.optionUpdated=function(){var e=this.option;"category"===e.type&&(this.__ordinalMeta=mA.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."+i,n.defaultOption=a,n}(n);e.registerComponentModel(s)})),e.registerSubTypeDefaulter(t+"Axis",R$)}function R$(e){return e.type||(e.data?"category":"value")}var N$=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 Te(this._dimList,(function(e){return this._axes[e]}),this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Ie(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}(),L$=N$,z$=["x","y"];function V$(e){return"interval"===e.type||"time"===e.type}var B$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=z$,t}return Q(t,e),t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,t=this.getAxis("y").scale;if(V$(e)&&V$(t)){var n=e.getExtent(),r=t.getExtent(),o=this.dataToPoint([n[0],r[0]]),i=this.dataToPoint([n[1],r[1]]),a=n[1]-n[0],s=r[1]-r[0];if(a&&s){var l=(i[0]-o[0])/a,u=(i[1]-o[1])/s,c=o[0]-n[0]*l,d=o[1]-r[0]*u,h=this._transform=[l,0,0,u,c,d];this._invTransform=Pn([],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),r=this.dataToPoint(t),o=this.getArea(),i=new Fn(n[0],n[1],r[0]-n[0],r[1]-n[1]);return o.intersect(i)},t.prototype.dataToPoint=function(e,t,n){n=n||[];var r=e[0],o=e[1];if(this._transform&&null!=r&&isFinite(r)&&null!=o&&isFinite(o))return Vt(n,e,this._transform);var i=this.getAxis("x"),a=this.getAxis("y");return n[0]=i.toGlobalCoord(i.dataToCoord(r,t)),n[1]=a.toGlobalCoord(a.dataToCoord(o,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis("x").scale,r=this.getAxis("y").scale,o=n.getExtent(),i=r.getExtent(),a=n.parse(e[0]),s=r.parse(e[1]);return t=t||[],t[0]=Math.min(Math.max(Math.min(o[0],o[1]),a),Math.max(o[0],o[1])),t[1]=Math.min(Math.max(Math.min(i[0],i[1]),s),Math.max(i[0],i[1])),t},t.prototype.pointToData=function(e,t){var n=[];if(this._invTransform)return Vt(n,e,this._invTransform);var r=this.getAxis("x"),o=this.getAxis("y");return n[0]=r.coordToData(r.toLocalCoord(e[0]),t),n[1]=o.coordToData(o.toLocalCoord(e[1]),t),n},t.prototype.getOtherAxis=function(e){return this.getAxis("x"===e.dim?"y":"x")},t.prototype.getArea=function(e){e=e||0;var t=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),r=Math.min(t[0],t[1])-e,o=Math.min(n[0],n[1])-e,i=Math.max(t[0],t[1])-r+e,a=Math.max(n[0],n[1])-o+e;return new Fn(r,o,i,a)},t}(L$),j$=B$,Q$=function(e){function t(t,n,r,o,i){var a=e.call(this,t,n,r)||this;return a.index=0,a.type=o||"value",a.position=i||"bottom",a}return Q(t,e),t.prototype.isHorizontal=function(){var e=this.position;return"top"===e||"bottom"===e},t.prototype.getGlobalExtent=function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[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}(SC),F$=Q$;function W$(e,t,n){n=n||{};var r=e.coordinateSystem,o=t.axis,i={},a=o.getAxesOnZeroOf()[0],s=o.position,l=a?"onZero":s,u=o.dim,c=r.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])}i.position=["y"===u?f[h[l]]:d[0],"x"===u?f[h[l]]:d[3]],i.rotation=Math.PI/2*("x"===u?0:1);var m={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=m[s],i.labelOffset=a?f[h[s]]-f[h.onZero]:0,t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Ye(n.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var v=t.get(["axisLabel","rotate"]);return i.labelRotate="top"===l?-v:v,i.z2=1,i}function H$(e){return"cartesian2d"===e.get("coordinateSystem")}function Z$(e){var t={xAxisModel:null,yAxisModel:null};return Me(t,(function(n,r){var o=r.replace(/Model$/,""),i=e.getReferringComponents(o,Ks).models[0];t[r]=i})),t}var G$=Math.log;function X$(e,t,n){var r=PA.prototype,o=r.getTicks.call(n),i=r.getTicks.call(n,!0),a=o.length-1,s=r.getInterval.call(n),l=wk(e,t),u=l.extent,c=l.fixMin,d=l.fixMax;if("log"===e.type){var h=G$(e.base);u=[G$(u[0])/h,G$(u[1])/h]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:d});var p=r.getExtent.call(e);c&&(u[0]=p[0]),d&&(u[1]=p[1]);var f=r.getInterval.call(e),g=u[0],m=u[1];if(c&&d)f=(m-g)/a;else if(c){m=u[0]+f*a;while(m<u[1]&&isFinite(m)&&isFinite(u[1]))f=bA(f),m=u[0]+f*a}else if(d){g=u[1]-f*a;while(g>u[0]&&isFinite(g)&&isFinite(u[0]))f=bA(f),g=u[1]-f*a}else{var v=e.getTicks().length-1;v>a&&(f=bA(f));var y=f*a;m=Math.ceil(u[1]/f)*f,g=es(m-y),g<0&&u[0]>=0?(g=0,m=es(y)):m>0&&u[1]<=0&&(m=0,g=-es(y))}var b=(o[0].value-i[0].value)/s,_=(o[a].value-i[a].value)/s;r.setExtent.call(e,g+f*b,m+f*_),r.setInterval.call(e,f),(b||_)&&r.setNiceExtent.call(e,g+f,m-f)}var U$=function(){function e(e,t,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=z$,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 r(e){var t,n=Ee(e),r=n.length;if(r){for(var o=[],i=r-1;i>=0;i--){var a=+n[i],s=e[a],l=s.model,u=s.scale;vA(u)&&l.get("alignTicks")&&null==l.get("interval")?o.push(s):(Sk(u,l),vA(u)&&(t=s))}o.length&&(t||(t=o.pop(),Sk(t.scale,t.model)),Me(o,(function(e){X$(e.scale,e.model,t.scale)})))}}this._updateScale(e,this.model),r(n.x),r(n.y);var o={};Me(n.x,(function(e){q$(n,"y",e,o)})),Me(n.y,(function(e){q$(n,"x",e,o)})),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var r=e.getBoxLayoutParams(),o=!n&&e.get("containLabel"),i=rf(r,{width:t.getWidth(),height:t.getHeight()});this._rect=i;var a=this._axesList;function s(){Me(a,(function(e){var t=e.isHorizontal(),n=t?[0,i.width]:[0,i.height],r=e.inverse?1:0;e.setExtent(n[r],n[1-r]),J$(e,t?i.x:i.y)}))}s(),o&&(Me(a,(function(e){if(!e.model.get(["axisLabel","inside"])){var t=Tk(e);if(t){var n=e.isHorizontal()?"height":"width",r=e.model.get(["axisLabel","margin"]);i[n]-=t[n]+r,"top"===e.position?i.y+=t.height+r:"left"===e.position&&(i.x+=t.width+r)}}})),s()),Me(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]}Qe(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var r=0,o=this._coordsList;r<o.length;r++)if(o[r].getAxis("x").index===e||o[r].getAxis("y").index===t)return o[r]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.dataToPoint(n):r.axis?r.axis.toGlobalCoord(r.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.pointToData(n):r.axis?r.axis.coordToData(r.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(e){var t,n,r=e.seriesModel,o=e.xAxisModel||r&&r.getReferringComponents("xAxis",Ks).models[0],i=e.yAxisModel||r&&r.getReferringComponents("yAxis",Ks).models[0],a=e.gridModel,s=this._coordsList;if(r)t=r.coordinateSystem,Se(s,t)<0&&(t=null);else if(o&&i)t=this.getCartesian(o.componentIndex,i.componentIndex);else if(o)n=this.getAxis("x",o.componentIndex);else if(i)n=this.getAxis("y",i.componentIndex);else if(a){var l=a.coordinateSystem;l===this&&(t=this._coordsList[0])}return{cartesian:t,axis:n}},e.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},e.prototype._initCartesian=function(e,t,n){var r=this,o=this,i={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};if(t.eachComponent("xAxis",l("x"),this),t.eachComponent("yAxis",l("y"),this),!s.x||!s.y)return this._axesMap={},void(this._axesList=[]);function l(t){return function(n,r){if(Y$(n,e)){var l=n.get("position");"x"===t?"top"!==l&&"bottom"!==l&&(l=i.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=i.left?"right":"left"),i[l]=!0;var u=new F$(t,Ak(n),[0,0],n.get("type"),l),c="category"===u.type;u.onBand=c&&n.get("boundaryGap"),u.inverse=n.get("inverse"),n.axis=u,u.model=n,u.grid=o,u.index=r,o._axesList.push(u),a[t][r]=u,s[t]++}}}this._axesMap=a,Me(a.x,(function(t,n){Me(a.y,(function(o,i){var a="x"+n+"y"+i,s=new j$(a);s.master=r,s.model=e,r._coordsMap[a]=s,r._coordsList.push(s),s.addAxis(t),s.addAxis(o)}))}))},e.prototype._updateScale=function(e,t){function n(e,t){Me(Ek(e,t.dim),(function(n){t.scale.unionExtentFromData(e,n)}))}Me(this._axesList,(function(e){if(e.scale.setExtent(1/0,-1/0),"category"===e.type){var t=e.model.get("categorySortInfo");e.scale.setSortInfo(t)}})),e.eachSeries((function(e){if(H$(e)){var r=Z$(e),o=r.xAxisModel,i=r.yAxisModel;if(!Y$(o,t)||!Y$(i,t))return;var a=this.getCartesian(o.componentIndex,i.componentIndex),s=e.getData(),l=a.getAxis("x"),u=a.getAxis("y");n(s,l),n(s,u)}}),this)},e.prototype.getTooltipAxes=function(e){var t=[],n=[];return Me(this.getCartesians(),(function(r){var o=null!=e&&"auto"!==e?r.getAxis(e):r.getBaseAxis(),i=r.getOtherAxis(o);Se(t,o)<0&&t.push(o),Se(n,i)<0&&n.push(i)})),{baseAxes:t,otherAxes:n}},e.create=function(t,n){var r=[];return t.eachComponent("grid",(function(o,i){var a=new e(o,t,n);a.name="grid_"+i,a.resize(o,n,!0),o.coordinateSystem=a,r.push(a)})),t.eachSeries((function(e){if(H$(e)){var t=Z$(e),n=t.xAxisModel,r=t.yAxisModel,o=n.getCoordSysModel();0;var i=o.coordinateSystem;e.coordinateSystem=i.getCartesian(n.componentIndex,r.componentIndex)}})),r},e.dimensions=z$,e}();function Y$(e,t){return e.getCoordSysModel()===t}function q$(e,t,n,r){n.getAxesOnZeroOf=function(){return o?[o]:[]};var o,i=e[t],a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)K$(i[l])&&(o=i[l]);else for(var u in i)if(i.hasOwnProperty(u)&&K$(i[u])&&!r[c(i[u])]){o=i[u];break}o&&(r[c(o)]=!0)}function c(e){return e.dim+"_"+e.index}}function K$(e){return e&&"category"!==e.type&&"time"!==e.type&&kk(e)}function J$(e,t){var n=e.getExtent(),r=n[0]+n[1];e.toGlobalCoord="x"===e.dim?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord="x"===e.dim?function(e){return e-t}:function(e){return r-e+t}}var eE=U$,tE=Math.PI,nE=function(){function e(e,t){this.group=new Da,this.opt=t,this.axisModel=e,we(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new Da({x:t.position[0],y:t.position[1],rotation:t.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(e){return!!rE[e]},e.prototype.add=function(e){rE[e](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(e,t,n){var r,o,i=us(t-e);return cs(i)?(o=n>0?"top":"bottom",r="center"):cs(i-tE)?(o=n>0?"bottom":"top",r="center"):(o="middle",r=i>0&&i<tE?n>0?"right":"left":n>0?"left":"right"),{rotation:i,textAlign:r,textVerticalAlign:o}},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}(),rE={axisLine:function(e,t,n,r){var o=t.get(["axisLine","show"]);if("auto"===o&&e.handleAutoShown&&(o=e.handleAutoShown("axisLine")),o){var i=t.axis.getExtent(),a=r.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];a&&(Vt(s,s,a),Vt(l,l,a));var c=xe({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),d=new Ky({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});Lb(d.shape,d.style.lineWidth),d.anid="line",n.add(d);var h=t.get(["axisLine","symbol"]);if(null!=h){var p=t.get(["axisLine","symbolSize"]);Ve(h)&&(h=[h,h]),(Ve(p)||je(p))&&(p=[p,p]);var f=kx(t.get(["axisLine","symbolOffset"])||0,p),g=p[0],m=p[1];Me([{rotate:e.rotation+Math.PI/2,offset:f[0],r:0},{rotate:e.rotation-Math.PI/2,offset:f[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],(function(t,r){if("none"!==h[r]&&null!=h[r]){var o=Sx(h[r],-g/2,-m/2,g,m,c.stroke,!0),i=t.r+t.offset,a=u?l:s;o.attr({rotation:t.rotate,x:a[0]+i*Math.cos(e.rotation),y:a[1]-i*Math.sin(e.rotation),silent:!0,z2:11}),n.add(o)}}))}}},axisTickLabel:function(e,t,n,r){var o=cE(n,r,t,e),i=hE(n,r,t,e);if(iE(t,i,o),dE(n,r,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var a=JC(Te(i,(function(e){return{label:e,priority:e.z2,defaultAttr:{ignore:e.ignore}}})));rM(a)}},axisName:function(e,t,n,r){var o=Ye(e.axisName,t.get("name"));if(o){var i,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,lE(s)?e.labelOffset+l*c:0],f=t.get("nameRotate");null!=f&&(f=f*tE/180),lE(s)?i=nE.innerTextLayout(e.rotation,null!=f?f:e.rotation,l):(i=oE(e.rotation,s,f||0,d),a=e.axisNameAvailableWidth,null!=a&&(a=Math.abs(a/Math.sin(i.rotation)),!isFinite(a)&&(a=null)));var g=u.getFont(),m=t.get("nameTruncate",!0)||{},v=m.ellipsis,y=Ye(e.nameTruncateMaxWidth,m.maxWidth,a),b=new jc({x:p[0],y:p[1],rotation:i.rotation,silent:nE.isLabelSilent(t),style:yh(u,{text:o,font:g,overflow:"truncate",width:y,ellipsis:v,fill:u.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:u.get("align")||i.textAlign,verticalAlign:u.get("verticalAlign")||i.textVerticalAlign}),z2:1});if(Jb({el:b,componentModel:t,itemName:o}),b.__fullText=o,b.anid="name",t.get("triggerEvent")){var _=nE.makeAxisEventDataBase(t);_.targetType="axisName",_.name=o,Qc(b).eventData=_}r.add(b),b.updateTransform(),n.add(b),b.decomposeTransform()}}};function oE(e,t,n,r){var o,i,a=us(n-e),s=r[0]>r[1],l="start"===t&&!s||"start"!==t&&s;return cs(a-tE/2)?(i=l?"bottom":"top",o="center"):cs(a-1.5*tE)?(i=l?"top":"bottom",o="center"):(i="middle",o=a<1.5*tE&&a>tE/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:o,textVerticalAlign:i}}function iE(e,t,n){if(!$k(e.axis)){var r=e.get(["axisLabel","showMinLabel"]),o=e.get(["axisLabel","showMaxLabel"]);t=t||[],n=n||[];var i=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===r?(aE(i),aE(u)):sE(i,a)&&(r?(aE(a),aE(c)):(aE(i),aE(u))),!1===o?(aE(s),aE(d)):sE(l,s)&&(o?(aE(l),aE(h)):(aE(s),aE(d)))}}function aE(e){e&&(e.ignore=!0)}function sE(e,t){var n=e&&e.getBoundingRect().clone(),r=t&&t.getBoundingRect().clone();if(n&&r){var o=Sn([]);return Mn(o,o,-e.rotation),n.applyTransform(kn([],o,e.getLocalTransform())),r.applyTransform(kn([],o,t.getLocalTransform())),n.intersect(r)}}function lE(e){return"middle"===e||"center"===e}function uE(e,t,n,r,o){for(var i=[],a=[],s=[],l=0;l<e.length;l++){var u=e[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=n,t&&(Vt(a,a,t),Vt(s,s,t));var c=new Ky({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});Lb(c.shape,c.style.lineWidth),c.anid=o+"_"+e[l].tickValue,i.push(c)}return i}function cE(e,t,n,r){var o=n.axis,i=n.getModel("axisTick"),a=i.get("show");if("auto"===a&&r.handleAutoShown&&(a=r.handleAutoShown("axisTick")),a&&!o.scale.isBlank()){for(var s=i.getModel("lineStyle"),l=r.tickDirection*i.get("length"),u=o.getTicksCoords(),c=uE(u,t.transform,l,we(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),d=0;d<c.length;d++)e.add(c[d]);return c}}function dE(e,t,n,r){var o=n.axis,i=n.getModel("minorTick");if(i.get("show")&&!o.scale.isBlank()){var a=o.getMinorTicksCoords();if(a.length)for(var s=i.getModel("lineStyle"),l=r*i.get("length"),u=we(s.getLineStyle(),we(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<a.length;c++)for(var d=uE(a[c],t.transform,l,u,"minorticks_"+c),h=0;h<d.length;h++)e.add(d[h])}}function hE(e,t,n,r){var o=n.axis,i=Ye(r.axisLabelShow,n.get(["axisLabel","show"]));if(i&&!o.scale.isBlank()){var a=n.getModel("axisLabel"),s=a.get("margin"),l=o.getViewLabels(),u=(Ye(r.labelRotate,a.get("rotate"))||0)*tE/180,c=nE.innerTextLayout(r.rotation,u,r.labelDirection),d=n.getCategories&&n.getCategories(!0),h=[],p=nE.isLabelSilent(n),f=n.get("triggerEvent");return Me(l,(function(i,u){var g="ordinal"===o.scale.type?o.scale.getRawOrdinalNumber(i.tickValue):i.tickValue,m=i.formattedLabel,v=i.rawLabel,y=a;if(d&&d[g]){var b=d[g];Qe(b)&&b.textStyle&&(y=new Qh(b.textStyle,a,n.ecModel))}var _=y.getTextColor()||n.get(["axisLine","lineStyle","color"]),x=o.dataToCoord(g),w=y.getShallow("align",!0)||c.textAlign,O=qe(y.getShallow("alignMinLabel",!0),w),S=qe(y.getShallow("alignMaxLabel",!0),w),A=y.getShallow("verticalAlign",!0)||y.getShallow("baseline",!0)||c.textVerticalAlign,k=qe(y.getShallow("verticalAlignMinLabel",!0),A),C=qe(y.getShallow("verticalAlignMaxLabel",!0),A),M=new jc({x:x,y:r.labelOffset+r.labelDirection*s,rotation:c.rotation,silent:p,z2:10+(i.level||0),style:yh(y,{text:m,align:0===u?O:u===l.length-1?S:w,verticalAlign:0===u?k:u===l.length-1?C:A,fill:ze(_)?_("category"===o.type?v:"value"===o.type?g+"":g,u):_})});if(M.anid="label_"+g,f){var T=nE.makeAxisEventDataBase(n);T.targetType="axisLabel",T.value=v,T.tickIndex=u,"category"===o.type&&(T.dataIndex=g),Qc(M).eventData=T}t.add(M),M.updateTransform(),h.push(M),e.add(M),M.decomposeTransform()})),h}}var pE=nE;function fE(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return gE(n,e,t),n.seriesInvolved&&vE(n,e),n}function gE(e,t,n){var r=t.getComponent("tooltip"),o=t.getComponent("axisPointer"),i=o.get("link",!0)||[],a=[];Me(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var s=SE(n.model),l=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var u=n.model,c=u.getModel("tooltip",r);if(Me(n.getAxes(),Ne(f,!1,null)),n.getTooltipAxes&&r&&c.get("show")){var d="axis"===c.get("trigger"),h="cross"===c.get(["axisPointer","type"]),p=n.getTooltipAxes(c.get(["axisPointer","axis"]));(d||h)&&Me(p.baseAxes,Ne(f,!h||"cross",d)),h&&Me(p.otherAxes,Ne(f,"cross",!1))}}function f(r,s,u){var d=u.model.getModel("axisPointer",o),h=d.get("show");if(h&&("auto"!==h||r||OE(d))){null==s&&(s=d.get("triggerTooltip")),d=r?mE(u,c,o,t,r,s):d;var p=d.get("snap"),f=d.get("triggerEmphasis"),g=SE(u.model),m=s||p||"category"===u.type,v=e.axesInfo[g]={key:g,axis:u,coordSys:n,axisPointerModel:d,triggerTooltip:s,triggerEmphasis:f,involveSeries:m,snap:p,useHandle:OE(d),seriesModels:[],linkGroup:null};l[g]=v,e.seriesInvolved=e.seriesInvolved||m;var y=yE(i,u);if(null!=y){var b=a[y]||(a[y]={axesInfo:{}});b.axesInfo[g]=v,b.mapper=i[y].mapper,v.linkGroup=b}}}}))}function mE(e,t,n,r,o,i){var a=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};Me(s,(function(e){l[e]=ye(a.get(e))})),l.snap="category"!==e.type&&!!i,"cross"===a.get("type")&&(l.type="line");var u=l.label||(l.label={});if(null==u.show&&(u.show=!1),"cross"===o){var c=a.get(["label","show"]);if(u.show=null==c||c,!i){var d=l.lineStyle=a.get("crossStyle");d&&we(u,d.textStyle)}}return e.model.getModel("axisPointer",new Qh(l,n,r))}function vE(e,t){t.eachSeries((function(t){var n=t.coordinateSystem,r=t.get(["tooltip","trigger"],!0),o=t.get(["tooltip","show"],!0);n&&"none"!==r&&!1!==r&&"item"!==r&&!1!==o&&!1!==t.get(["axisPointer","show"],!0)&&Me(e.coordSysAxesInfo[SE(n.model)],(function(e){var r=e.axis;n.getAxis(r.dim)===r&&(e.seriesModels.push(t),null==e.seriesDataCount&&(e.seriesDataCount=0),e.seriesDataCount+=t.getData().count())}))}))}function yE(e,t){for(var n=t.model,r=t.dim,o=0;o<e.length;o++){var i=e[o]||{};if(bE(i[r+"AxisId"],n.id)||bE(i[r+"AxisIndex"],n.componentIndex)||bE(i[r+"AxisName"],n.name))return o}}function bE(e,t){return"all"===e||Le(e)&&Se(e,t)>=0||e===t}function _E(e){var t=xE(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,o=n.option,i=n.get("status"),a=n.get("value");null!=a&&(a=r.parse(a));var s=OE(n);null==i&&(o.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),o.value=a,s&&(o.status=t.axis.scale.isBlank()?"hide":"show")}}function xE(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[SE(e)]}function wE(e){var t=xE(e);return t&&t.axisPointerModel}function OE(e){return!!e.get(["handle","show"])}function SE(e){return e.type+"||"+e.id}var AE={},kE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Q(t,e),t.prototype.render=function(t,n,r,o){this.axisPointerClass&&_E(t),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,r,!0)},t.prototype.updateAxisPointer=function(e,t,n,r){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,t){var n=this._axisPointer;n&&n.remove(t)},t.prototype.dispose=function(t,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,r){var o=t.getAxisPointerClass(this.axisPointerClass);if(o){var i=wE(e);i?(this._axisPointer||(this._axisPointer=new o)).render(e,i,n,r):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,t){AE[e]=t},t.getAxisPointerClass=function(e){return e&&AE[e]},t.type="axis",t}(Fv),CE=kE,ME=Xs();function TE(e,t,n,r){var o=n.axis;if(!o.scale.isBlank()){var i=n.getModel("splitArea"),a=i.getModel("areaStyle"),s=a.get("color"),l=r.coordinateSystem.getRect(),u=o.getTicksCoords({tickModel:i,clamp:!0});if(u.length){var c=s.length,d=ME(e).splitAreaColors,h=ct(),p=0;if(d)for(var f=0;f<u.length;f++){var g=d.get(u[f].tickValue);if(null!=g){p=(g+(c-1)*f)%c;break}}var m=o.toGlobalCoord(u[0].coord),v=a.getAreaStyle();s=Le(s)?s:[s];for(f=1;f<u.length;f++){var y=o.toGlobalCoord(u[f].coord),b=void 0,_=void 0,x=void 0,w=void 0;o.isHorizontal()?(b=m,_=l.y,x=y-b,w=l.height,m=b+x):(b=l.x,_=m,x=l.width,w=y-_,m=_+w);var O=u[f-1].tickValue;null!=O&&h.set(O,p),t.add(new Oc({anid:null!=O?"area_"+O:null,shape:{x:b,y:_,width:x,height:w},style:we({fill:s[p]},v),autoBatch:!0,silent:!0})),p=(p+1)%c}ME(e).splitAreaColors=h}}}function PE(e){ME(e).splitAreaColors=null}var IE=["axisLine","axisTickLabel","axisName"],$E=["splitArea","splitLine","minorSplitLine"],EE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="CartesianAxisPointer",n}return Q(t,e),t.prototype.render=function(t,n,r,o){this.group.removeAll();var i=this._axisGroup;if(this._axisGroup=new Da,this.group.add(this._axisGroup),t.get("show")){var a=t.getCoordSysModel(),s=W$(a,t),l=new pE(t,xe({handleAutoShown:function(e){for(var n=a.coordinateSystem.getCartesians(),r=0;r<n.length;r++)if(vA(n[r].getOtherAxis(t.axis).scale))return!0;return!1}},s));Me(IE,l.add,l),this._axisGroup.add(l.getGroup()),Me($E,(function(e){t.get([e,"show"])&&DE[e](this,this._axisGroup,t,a)}),this);var u=o&&"changeAxisOrder"===o.type&&o.isInitSort;u||Hb(i,this._axisGroup,t),e.prototype.render.call(this,t,n,r,o)}},t.prototype.remove=function(){PE(this)},t.type="cartesianAxis",t}(CE),DE={splitLine:function(e,t,n,r){var o=n.axis;if(!o.scale.isBlank()){var i=n.getModel("splitLine"),a=i.getModel("lineStyle"),s=a.get("color");s=Le(s)?s:[s];for(var l=r.coordinateSystem.getRect(),u=o.isHorizontal(),c=0,d=o.getTicksCoords({tickModel:i}),h=[],p=[],f=a.getLineStyle(),g=0;g<d.length;g++){var m=o.toGlobalCoord(d[g].coord);u?(h[0]=m,h[1]=l.y,p[0]=m,p[1]=l.y+l.height):(h[0]=l.x,h[1]=m,p[0]=l.x+l.width,p[1]=m);var v=c++%s.length,y=d[g].tickValue,b=new Ky({anid:null!=y?"line_"+d[g].tickValue:null,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:p[0],y2:p[1]},style:we({stroke:s[v]},f),silent:!0});Lb(b.shape,f.lineWidth),t.add(b)}}},minorSplitLine:function(e,t,n,r){var o=n.axis,i=n.getModel("minorSplitLine"),a=i.getModel("lineStyle"),s=r.coordinateSystem.getRect(),l=o.isHorizontal(),u=o.getMinorTicksCoords();if(u.length)for(var c=[],d=[],h=a.getLineStyle(),p=0;p<u.length;p++)for(var f=0;f<u[p].length;f++){var g=o.toGlobalCoord(u[p][f].coord);l?(c[0]=g,c[1]=s.y,d[0]=g,d[1]=s.y+s.height):(c[0]=s.x,c[1]=g,d[0]=s.x+s.width,d[1]=g);var m=new Ky({anid:"minor_line_"+u[p][f].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:d[0],y2:d[1]},style:h,silent:!0});Lb(m.shape,h.lineWidth),t.add(m)}},splitArea:function(e,t,n,r){TE(e,t,n,r)}},RE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Q(t,e),t.type="xAxis",t}(EE),NE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=RE.type,t}return Q(t,e),t.type="yAxis",t}(EE),LE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="grid",t}return Q(t,e),t.prototype.render=function(e,t){this.group.removeAll(),e.get("show")&&this.group.add(new Oc({shape:e.coordinateSystem.getRect(),style:we({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(Fv),zE={offset:0};function VE(e){e.registerComponentView(LE),e.registerComponentModel(A$),e.registerCoordinateSystem("cartesian2d",eE),D$(e,"x",k$,zE),D$(e,"y",k$,zE),e.registerComponentView(RE),e.registerComponentView(NE),e.registerPreprocessor((function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})}))}function BE(e){dS(VE),e.registerSeriesModel(m$),e.registerChartView(O$),e.registerLayout(nI("scatter"))}function jE(e){e.eachSeriesByType("radar",(function(e){var t=e.getData(),n=[],r=e.coordinateSystem;if(r){var o=r.getIndicatorAxes();Me(o,(function(e,i){t.each(t.mapDimension(o[i].dim),(function(e,t){n[t]=n[t]||[];var o=r.dataToPoint(e,i);n[t][i]=QE(o)?o:FE(r)}))})),t.each((function(e){var o=$e(n[e],(function(e){return QE(e)}))||FE(r);n[e].push(o.slice()),t.setItemLayout(e,n[e])}))}}))}function QE(e){return!isNaN(e[0])&&!isNaN(e[1])}function FE(e){return[e.cx,e.cy]}function WE(e){var t=e.polar;if(t){Le(t)||(t=[t]);var n=[];Me(t,(function(t,r){t.indicator?(t.type&&!t.shape&&(t.shape=t.type),e.radar=e.radar||[],Le(e.radar)||(e.radar=[e.radar]),e.radar.push(t)):n.push(t)})),e.polar=n}Me(e.series,(function(e){e&&"radar"===e.type&&e.polarIndex&&(e.radarIndex=e.polarIndex)}))}var HE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Q(t,e),t.prototype.render=function(e,t,n){var r=e.coordinateSystem,o=this.group,i=e.getData(),a=this._data;function s(e,t){var n=e.getItemVisual(t,"symbol")||"circle";if("none"!==n){var r=Ax(e.getItemVisual(t,"symbolSize")),o=Sx(n,-1,-1,2,2),i=e.getItemVisual(t,"symbolRotate")||0;return o.attr({style:{strokeNoScale:!0},z2:100,scaleX:r[0]/2,scaleY:r[1]/2,rotation:i*Math.PI/180||0}),o}}function u(t,n,r,o,i,a){r.removeAll();for(var u=0;u<n.length-1;u++){var c=s(o,i);c&&(c.__dimIdx=u,t[u]?(c.setPosition(t[u]),l[a?"initProps":"updateProps"](c,{x:n[u][0],y:n[u][1]},e,i)):c.setPosition(n[u]),r.add(c))}}function c(e){return Te(e,(function(e){return[r.cx,r.cy]}))}i.diff(a).add((function(t){var n=i.getItemLayout(t);if(n){var r=new Hy,o=new Xy,a={shape:{points:n}};r.shape.points=c(n),o.shape.points=c(n),ah(r,a,e,t),ah(o,a,e,t);var s=new Da,l=new Da;s.add(o),s.add(r),s.add(l),u(o.shape.points,n,l,i,t,!0),i.setItemGraphicEl(t,s)}})).update((function(t,n){var r=a.getItemGraphicEl(n),o=r.childAt(0),s=r.childAt(1),l=r.childAt(2),c={shape:{points:i.getItemLayout(t)}};c.shape.points&&(u(o.shape.points,c.shape.points,l,i,t,!1),dh(s),dh(o),ih(o,c,e),ih(s,c,e),i.setItemGraphicEl(t,r))})).remove((function(e){o.remove(a.getItemGraphicEl(e))})).execute(),i.eachItemGraphicEl((function(e,t){var n=i.getItemModel(t),r=e.childAt(0),a=e.childAt(1),s=e.childAt(2),l=i.getItemVisual(t,"style"),u=l.fill;o.add(e),r.useStyle(we(n.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:u})),Xd(r,n,"lineStyle"),Xd(a,n,"areaStyle");var c=n.getModel("areaStyle"),d=c.isEmpty()&&c.parentModel.isEmpty();a.ignore=d,Me(["emphasis","select","blur"],(function(e){var t=n.getModel([e,"areaStyle"]),r=t.isEmpty()&&t.parentModel.isEmpty();a.ensureState(e).ignore=r&&d})),a.useStyle(we(c.getAreaStyle(),{fill:u,opacity:.7,decal:l.decal}));var h=n.getModel("emphasis"),p=h.getModel("itemStyle").getItemStyle();s.eachChild((function(e){if(e instanceof fc){var r=e.style;e.useStyle(xe({image:r.image,x:r.x,y:r.y,width:r.width,height:r.height},l))}else e.useStyle(l),e.setColor(u),e.style.strokeNoScale=!0;var o=e.ensureState("emphasis");o.style=ye(p);var a=i.getStore().get(i.getDimensionIndex(e.__dimIdx),t);(null==a||isNaN(a))&&(a=""),mh(e,vh(n),{labelFetcher:i.hostModel,labelDataIndex:t,labelDimIndex:e.__dimIdx,defaultText:a,inheritColor:u,defaultOpacity:l.opacity})})),Wd(e,h.get("focus"),h.get("blurScope"),h.get("disabled"))})),this._data=i},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t}(c_),ZE=HE,GE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return Q(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new u$(Re(this.getData,this),Re(this.getRawData,this))},t.prototype.getInitialData=function(e,t){return s$(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),o=this.coordinateSystem,i=o.getIndicatorAxes(),a=this.getData().getName(e),s=""===a?this.name:a,l=Sv(this,e);return dv("section",{header:s,sortBlocks:!0,blocks:Te(i,(function(t){var n=r.get(r.mapDimension(t.dim),e);return dv("nameValue",{markerType:"subItem",markerColor:l,name:t.name,value:n,sortParam:n})}))})},t.prototype.getTooltipPosition=function(e){if(null!=e)for(var t=this.getData(),n=this.coordinateSystem,r=t.getValues(Te(n.dimensions,(function(e){return t.mapDimension(e)})),e),o=0,i=r.length;o<i;o++)if(!isNaN(r[o])){var a=n.getIndicatorAxes();return n.coordToPoint(a[o].dataToCoord(r[o]),o)}},t.type="series.radar",t.dependencies=["radar"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},t}(jv),XE=GE,UE=$$.value;function YE(e,t){return we({show:t},e)}var qE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Q(t,e),t.prototype.optionUpdated=function(){var e=this.get("boundaryGap"),t=this.get("splitNumber"),n=this.get("scale"),r=this.get("axisLine"),o=this.get("axisTick"),i=this.get("axisLabel"),a=this.get("axisName"),s=this.get(["axisName","show"]),l=this.get(["axisName","formatter"]),u=this.get("axisNameGap"),c=this.get("triggerEvent"),d=Te(this.get("indicator")||[],(function(d){null!=d.max&&d.max>0&&!d.min?d.min=0:null!=d.min&&d.min<0&&!d.max&&(d.max=0);var h=a;null!=d.color&&(h=we({color:d.color},a));var p=be(ye(d),{boundaryGap:e,splitNumber:t,scale:n,axisLine:r,axisTick:o,axisLabel:i,name:d.text,showName:s,nameLocation:"end",nameGap:u,nameTextStyle:h,triggerEvent:c},!1);if(Ve(l)){var f=p.name;p.name=l.replace("{value}",null!=f?f:"")}else ze(l)&&(p.name=l(p.name,p));var g=new Qh(p,null,this.ecModel);return ke(g,Rk.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:be({lineStyle:{color:"#bbb"}},UE.axisLine),axisLabel:YE(UE.axisLabel,!1),axisTick:YE(UE.axisTick,!1),splitLine:YE(UE.splitLine,!0),splitArea:YE(UE.splitArea,!0),indicator:[]},t}(ff),KE=qE,JE=["axisLine","axisTickLabel","axisName"],eD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Q(t,e),t.prototype.render=function(e,t,n){var r=this.group;r.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes(),r=Te(n,(function(e){var n=e.model.get("showName")?e.name:"",r=new pE(e.model,{axisName:n,position:[t.cx,t.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return r}));Me(r,(function(e){Me(JE,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 r=e.get("shape"),o=e.getModel("splitLine"),i=e.getModel("splitArea"),a=o.getModel("lineStyle"),s=i.getModel("areaStyle"),l=o.get("show"),u=i.get("show"),c=a.get("color"),d=s.get("color"),h=Le(c)?c:[c],p=Le(d)?d:[d],f=[],g=[];if("circle"===r)for(var m=n[0].getTicksCoords(),v=t.cx,y=t.cy,b=0;b<m.length;b++){if(l){var _=M(f,h,b);f[_].push(new my({shape:{cx:v,cy:y,r:m[b].coord}}))}if(u&&b<m.length-1){_=M(g,p,b);g[_].push(new By({shape:{cx:v,cy:y,r0:m[b].coord,r:m[b+1].coord}}))}}else{var x,w=Te(n,(function(e,n){var r=e.getTicksCoords();return x=null==x?r.length-1:Math.min(r.length-1,x),Te(r,(function(e){return t.coordToPoint(e.coord,n)}))})),O=[];for(b=0;b<=x;b++){for(var S=[],A=0;A<n.length;A++)S.push(w[A][b]);if(S[0]&&S.push(S[0].slice()),l){_=M(f,h,b);f[_].push(new Xy({shape:{points:S}}))}if(u&&O){_=M(g,p,b-1);g[_].push(new Hy({shape:{points:S.concat(O)}}))}O=S.slice().reverse()}}var k=a.getLineStyle(),C=s.getAreaStyle();Me(g,(function(e,t){this.group.add(Rb(e,{style:we({stroke:"none",fill:p[t%p.length]},C),silent:!0}))}),this),Me(f,(function(e,t){this.group.add(Rb(e,{style:we({fill:"none",stroke:h[t%h.length]},k),silent:!0}))}),this)}function M(e,t,n){var r=n%t.length;return e[r]=e[r]||[],r}},t.type="radar",t}(Fv),tD=eD,nD=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o.type="value",o.angle=0,o.name="",o}return Q(t,e),t}(SC),rD=nD,oD=function(){function e(e,t,n){this.dimensions=[],this._model=e,this._indicatorAxes=Te(e.getIndicatorModels(),(function(e,t){var n="indicator_"+t,r=new rD(n,new PA);return r.name=e.get("name"),r.model=e,e.axis=r,this.dimensions.push(n),r}),this),this.resize(e,n)}return e.prototype.getIndicatorAxes=function(){return this._indicatorAxes},e.prototype.dataToPoint=function(e,t){var n=this._indicatorAxes[t];return this.coordToPoint(n.dataToCoord(e),t)},e.prototype.coordToPoint=function(e,t){var n=this._indicatorAxes[t],r=n.angle,o=this.cx+e*Math.cos(r),i=this.cy-e*Math.sin(r);return[o,i]},e.prototype.pointToData=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,r=Math.sqrt(t*t+n*n);t/=r,n/=r;for(var o,i=Math.atan2(-n,t),a=1/0,s=-1,l=0;l<this._indicatorAxes.length;l++){var u=this._indicatorAxes[l],c=Math.abs(i-u.angle);c<a&&(o=u,s=l,a=c)}return[s,+(o&&o.coordToData(r))]},e.prototype.resize=function(e,t){var n=e.get("center"),r=t.getWidth(),o=t.getHeight(),i=Math.min(r,o)/2;this.cx=Ja(n[0],r),this.cy=Ja(n[1],o),this.startAngle=e.get("startAngle")*Math.PI/180;var a=e.get("radius");(Ve(a)||je(a))&&(a=[0,a]),this.r0=Ja(a[0],i),this.r=Ja(a[1],i),Me(this._indicatorAxes,(function(e,t){e.setExtent(this.r0,this.r);var n=this.startAngle+t*Math.PI*2/this._indicatorAxes.length;n=Math.atan2(Math.sin(n),Math.cos(n)),e.angle=n}),this)},e.prototype.update=function(e,t){var n=this._indicatorAxes,r=this._model;Me(n,(function(e){e.scale.setExtent(1/0,-1/0)})),e.eachSeriesByType("radar",(function(t,o){if("radar"===t.get("coordinateSystem")&&e.getComponent("radar",t.get("radarIndex"))===r){var i=t.getData();Me(n,(function(e){e.scale.unionExtentFromData(i,i.mapDimension(e.dim))}))}}),this);var o=r.get("splitNumber"),i=new PA;i.setExtent(0,o),i.setInterval(1),Me(n,(function(e,t){X$(e.scale,e.model,i)}))},e.prototype.convertToPixel=function(e,t,n){return console.warn("Not implemented."),null},e.prototype.convertFromPixel=function(e,t,n){return console.warn("Not implemented."),null},e.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},e.create=function(t,n){var r=[];return t.eachComponent("radar",(function(o){var i=new e(o,t,n);r.push(i),o.coordinateSystem=i})),t.eachSeriesByType("radar",(function(e){"radar"===e.get("coordinateSystem")&&(e.coordinateSystem=r[e.get("radarIndex")||0])})),r},e.dimensions=[],e}(),iD=oD;function aD(e){e.registerCoordinateSystem("radar",iD),e.registerComponentModel(KE),e.registerComponentView(tD),e.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each((function(e){t.setItemVisual(e,"legendIcon","roundRect")})),t.setVisual("legendIcon","roundRect")}})}function sD(e){dS(aD),e.registerChartView(ZE),e.registerSeriesModel(XE),e.registerLayout(jE),e.registerProcessor(qI("radar")),e.registerPreprocessor(WE)}var lD="\0_ec_interaction_mutex";function uD(e,t,n){var r=hD(e);r[t]=n}function cD(e,t,n){var r=hD(e),o=r[t];o===n&&(r[t]=null)}function dD(e,t){return!!hD(e)[t]}function hD(e){return e[lD]||(e[lD]={})}YO({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},gt);var pD=function(e){function t(t){var n=e.call(this)||this;n._zr=t;var r=Re(n._mousedownHandler,n),o=Re(n._mousemoveHandler,n),i=Re(n._mouseupHandler,n),a=Re(n._mousewheelHandler,n),s=Re(n._pinchHandler,n);return n.enable=function(e,n){this.disable(),this._opt=we(ye(n)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==e&&(e=!0),!0!==e&&"move"!==e&&"pan"!==e||(t.on("mousedown",r),t.on("mousemove",o),t.on("mouseup",i)),!0!==e&&"scale"!==e&&"zoom"!==e||(t.on("mousewheel",a),t.on("pinch",s))},n.disable=function(){t.off("mousedown",r),t.off("mousemove",o),t.off("mouseup",i),t.off("mousewheel",a),t.off("pinch",s)},n}return Q(t,e),t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(e){this.pointerChecker=e},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!yn(e)){var t=e.target;while(t){if(t.draggable)return;t=t.__hostTarget||t.parent}var n=e.offsetX,r=e.offsetY;this.pointerChecker&&this.pointerChecker(e,n,r)&&(this._x=n,this._y=r,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){if(this._dragging&&mD("moveOnMouseMove",e,this._opt)&&"pinch"!==e.gestureEvent&&!dD(this._zr,"globalPan")){var t=e.offsetX,n=e.offsetY,r=this._x,o=this._y,i=t-r,a=n-o;this._x=t,this._y=n,this._opt.preventDefaultMouseMove&&vn(e.event),gD(this,"pan","moveOnMouseMove",e,{dx:i,dy:a,oldX:r,oldY:o,newX:t,newY:n,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){yn(e)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(e){var t=mD("zoomOnMouseWheel",e,this._opt),n=mD("moveOnMouseWheel",e,this._opt),r=e.wheelDelta,o=Math.abs(r),i=e.offsetX,a=e.offsetY;if(0!==r&&(t||n)){if(t){var s=o>3?1.4:o>1?1.2:1.1,l=r>0?s:1/s;fD(this,"zoom","zoomOnMouseWheel",e,{scale:l,originX:i,originY:a,isAvailableBehavior:null})}if(n){var u=Math.abs(r),c=(r>0?1:-1)*(u>3?.4:u>1?.15:.05);fD(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:c,originX:i,originY:a,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!dD(this._zr,"globalPan")){var t=e.pinchScale>1?1.1:1/1.1;fD(this,"zoom",null,e,{scale:t,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}(Zt);function fD(e,t,n,r,o){e.pointerChecker&&e.pointerChecker(r,o.originX,o.originY)&&(vn(r.event),gD(e,t,n,r,o))}function gD(e,t,n,r,o){o.isAvailableBehavior=Re(mD,null,n,r),e.trigger(t,o)}function mD(e,t,n){var r=n[e];return!e||r&&(!Ve(r)||t.event[r+"Key"])}var vD=pD;function yD(e,t,n){var r=e.target;r.x+=t,r.y+=n,r.dirty()}function bD(e,t,n,r){var o=e.target,i=e.zoomLimit,a=e.zoom=e.zoom||1;if(a*=t,i){var s=i.min||0,l=i.max||1/0;a=Math.max(Math.min(l,a),s)}var u=a/e.zoom;e.zoom=a,o.x-=(n-o.x)*(u-1),o.y-=(r-o.y)*(u-1),o.scaleX*=u,o.scaleY*=u,o.dirty()}var _D,xD={axisPointer:1,tooltip:1,brush:1};function wD(e,t,n){var r=t.getComponentByElement(e.topTarget),o=r&&r.coordinateSystem;return r&&r!==n&&!xD.hasOwnProperty(r.mainType)&&o&&o.model!==n}function OD(e){if(Ve(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 SD={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},AD=Ee(SD),kD={"alignment-baseline":"textBaseline","stop-color":"stopColor"},CD=Ee(kD),MD=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(e,t){t=t||{};var n=OD(e);this._defsUsePending=[];var r=new Da;this._root=r;var o=[],i=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),DD(n,r,null,!0,!1);var l,u,c=n.firstChild;while(c)this._parseNode(c,r,o,null,!1,!1),c=c.nextSibling;if(zD(this._defs,this._defsUsePending),this._defsUsePending=[],i){var d=BD(i);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=GD(l,{x:0,y:0,width:a,height:s}),!t.ignoreViewBox)){var h=r;r=new Da,r.add(h),h.scaleX=h.scaleY=u.scale,h.x=u.x,h.y=u.y}return t.ignoreRootClip||null==a||null==s||r.setClipPath(new Oc({shape:{x:0,y:0,width:a,height:s}})),{root:r,width:a,height:s,viewBoxRect:l,viewBoxTransform:u,named:o}},e.prototype._parseNode=function(e,t,n,r,o,i){var a,s=e.nodeName.toLowerCase(),l=r;if("defs"===s&&(o=!0),"text"===s&&(i=!0),"defs"===s||"switch"===s)a=t;else{if(!o){var u=_D[s];if(u&&ft(_D,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 r&&n.push({name:r.name,namedFrom:r,svgNodeTagLower:s,el:a});t.add(a)}}var h=TD[s];if(h&&ft(TD,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,o,i):3===g.nodeType&&i&&this._parseText(g,a),g=g.nextSibling}},e.prototype._parseText=function(e,t){var n=new uc({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});$D(t,n),DD(e,n,this._defsUsePending,!1,!1),RD(n,t);var r=n.style,o=r.fontSize;o&&o<9&&(r.fontSize=9,n.scaleX*=o/9,n.scaleY*=o/9);var i=(r.fontSize||r.fontFamily)&&[r.fontStyle,r.fontWeight,(r.fontSize||12)+"px",r.fontFamily||"sans-serif"].join(" ");r.font=i;var a=n.getBoundingRect();return this._textX+=a.width,t.add(n),n},e.internalField=function(){_D={g:function(e,t){var n=new Da;return $D(t,n),DD(e,n,this._defsUsePending,!1,!1),n},rect:function(e,t){var n=new Oc;return $D(t,n),DD(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 my;return $D(t,n),DD(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 Ky;return $D(t,n),DD(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 by;return $D(t,n),DD(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,r=e.getAttribute("points");r&&(n=ED(r));var o=new Hy({shape:{points:n||[]},silent:!0});return $D(t,o),DD(e,o,this._defsUsePending,!1,!1),o},polyline:function(e,t){var n,r=e.getAttribute("points");r&&(n=ED(r));var o=new Xy({shape:{points:n||[]},silent:!0});return $D(t,o),DD(e,o,this._defsUsePending,!1,!1),o},image:function(e,t){var n=new fc;return $D(t,n),DD(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",r=e.getAttribute("y")||"0",o=e.getAttribute("dx")||"0",i=e.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(o),this._textY=parseFloat(r)+parseFloat(i);var a=new Da;return $D(t,a),DD(e,a,this._defsUsePending,!1,!0),a},tspan:function(e,t){var n=e.getAttribute("x"),r=e.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=r&&(this._textY=parseFloat(r));var o=e.getAttribute("dx")||"0",i=e.getAttribute("dy")||"0",a=new Da;return $D(t,a),DD(e,a,this._defsUsePending,!1,!0),this._textX+=parseFloat(o),this._textY+=parseFloat(i),a},path:function(e,t){var n=e.getAttribute("d")||"",r=cy(n);return $D(t,r),DD(e,r,this._defsUsePending,!1,!1),r.silent=!0,r}}}(),e}(),TD={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),n=parseInt(e.getAttribute("y1")||"0",10),r=parseInt(e.getAttribute("x2")||"10",10),o=parseInt(e.getAttribute("y2")||"0",10),i=new hb(t,n,r,o);return PD(e,i),ID(e,i),i},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),n=parseInt(e.getAttribute("cy")||"0",10),r=parseInt(e.getAttribute("r")||"0",10),o=new fb(t,n,r);return PD(e,o),ID(e,o),o}};function PD(e,t){var n=e.getAttribute("gradientUnits");"userSpaceOnUse"===n&&(t.global=!0)}function ID(e,t){var n=e.firstChild;while(n){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var r=n.getAttribute("offset"),o=void 0;o=r&&r.indexOf("%")>0?parseInt(r,10)/100:r?parseFloat(r):0;var i={};HD(n,i,i);var a=i.stopColor||n.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:o,color:a})}n=n.nextSibling}}function $D(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),we(t.__inheritedStyle,e.__inheritedStyle))}function ED(e){for(var t=BD(e),n=[],r=0;r<t.length;r+=2){var o=parseFloat(t[r]),i=parseFloat(t[r+1]);n.push([o,i])}return n}function DD(e,t,n,r,o){var i=t,a=i.__inheritedStyle=i.__inheritedStyle||{},s={};1===e.nodeType&&(FD(e,t),HD(e,a,s),r||ZD(e,a,s)),i.style=i.style||{},null!=a.fill&&(i.style.fill=LD(i,"fill",a.fill,n)),null!=a.stroke&&(i.style.stroke=LD(i,"stroke",a.stroke,n)),Me(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],(function(e){null!=a[e]&&(i.style[e]=parseFloat(a[e]))})),Me(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],(function(e){null!=a[e]&&(i.style[e]=a[e])})),o&&(i.__selfStyle=s),a.lineDash&&(i.style.lineDash=Te(BD(a.lineDash),(function(e){return parseFloat(e)}))),"hidden"!==a.visibility&&"collapse"!==a.visibility||(i.invisible=!0),"none"===a.display&&(i.ignore=!0)}function RD(e,t){var n=t.__selfStyle;if(n){var r=n.textBaseline,o=r;r&&"auto"!==r?"baseline"===r?o="alphabetic":"before-edge"===r||"text-before-edge"===r?o="top":"after-edge"===r||"text-after-edge"===r?o="bottom":"central"!==r&&"mathematical"!==r||(o="middle"):o="alphabetic",e.style.textBaseline=o}var i=t.__inheritedStyle;if(i){var a=i.textAlign,s=a;a&&("middle"===a&&(s="center"),e.style.textAlign=s)}}var ND=/^url\(\s*#(.*?)\)/;function LD(e,t,n,r){var o=n&&n.match(ND);if(!o)return"none"===n&&(n=null),n;var i=nt(o[1]);r.push([e,t,i])}function zD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r[0].style[r[1]]=e[r[2]]}}var VD=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function BD(e){return e.match(VD)||[]}var jD=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,QD=Math.PI/180;function FD(e,t){var n=e.getAttribute("transform");if(n){n=n.replace(/,/g," ");var r=[],o=null;n.replace(jD,(function(e,t,n){return r.push(t,n),""}));for(var i=r.length-1;i>0;i-=2){var a=r[i],s=r[i-1],l=BD(a);switch(o=o||On(),s){case"translate":Cn(o,o,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Tn(o,o,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Mn(o,o,-parseFloat(l[0])*QD,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*QD);kn(o,[1,0,u,1,0,0],o);break;case"skewY":var c=Math.tan(parseFloat(l[0])*QD);kn(o,[1,c,0,1,0,0],o);break;case"matrix":o[0]=parseFloat(l[0]),o[1]=parseFloat(l[1]),o[2]=parseFloat(l[2]),o[3]=parseFloat(l[3]),o[4]=parseFloat(l[4]),o[5]=parseFloat(l[5]);break}}t.setLocalTransform(o)}}var WD=/([^\s:;]+)\s*:\s*([^:;]+)/g;function HD(e,t,n){var r=e.getAttribute("style");if(r){var o;WD.lastIndex=0;while(null!=(o=WD.exec(r))){var i=o[1],a=ft(SD,i)?SD[i]:null;a&&(t[a]=o[2]);var s=ft(kD,i)?kD[i]:null;s&&(n[s]=o[2])}}}function ZD(e,t,n){for(var r=0;r<AD.length;r++){var o=AD[r],i=e.getAttribute(o);null!=i&&(t[SD[o]]=i)}for(r=0;r<CD.length;r++){o=CD[r],i=e.getAttribute(o);null!=i&&(n[kD[o]]=i)}}function GD(e,t){var n=t.width/e.width,r=t.height/e.height,o=Math.min(n,r);return{scale:o,x:-(e.x+e.width/2)*o+(t.x+t.width/2),y:-(e.y+e.height/2)*o+(t.y+t.height/2)}}function XD(e,t){var n=new MD;return n.parse(e,t)}var UD=ct(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),YD=function(){function e(e,t){this.type="geoSVG",this._usedGraphicMap=ct(),this._freedGraphics=[],this._mapName=e,this._parsedXML=OD(t)}return e.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var t=KD(e.named),n=t.regions,r=t.regionsMap;this._regions=n,this._regionsMap=r}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},e.prototype._buildGraphic=function(e){var t,n;try{t=e&&XD(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=t.root,tt(null!=n)}catch(Py){throw new Error("Invalid svg format\n"+Py.message)}var r=new Da;r.add(n),r.isGeoSVGGraphicRoot=!0;var o=t.width,i=t.height,a=t.viewBoxRect,s=this._boundingRect;if(!s){var l=void 0,u=void 0,c=void 0,d=void 0;if(null!=o?(l=0,c=o):a&&(l=a.x,c=a.width),null!=i?(u=0,d=i):a&&(u=a.y,d=a.height),null==l||null==u){var h=n.getBoundingRect();null==l&&(l=h.x,c=h.width),null==u&&(u=h.y,d=h.height)}s=this._boundingRect=new Fn(l,u,c,d)}if(a){var p=GD(a,s);n.scaleX=n.scaleY=p.scale,n.x=p.x,n.y=p.y}r.setClipPath(new Oc({shape:s.plain()}));var f=[];return Me(t.named,(function(e){null!=UD.get(e.svgNodeTagLower)&&(f.push(e),qD(e.el))})),{root:r,boundingRect:s,named:f}},e.prototype.useGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,n),n)},e.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);n&&(t.removeKey(e),this._freedGraphics.push(n))},e}();function qD(e){e.silent=!1,e.isGroup&&e.traverse((function(e){e.silent=!1}))}function KD(e){var t=[],n=ct();return Me(e,(function(e){if(null==e.namedFrom){var r=new Kk(e.name,e.el);t.push(r),n.set(e.name,r)}})),{regions:t,regionsMap:n}}for(var JD=[126,25],eR="南海诸岛",tR=[[[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]]],nR=0;nR<tR.length;nR++)for(var rR=0;rR<tR[nR].length;rR++)tR[nR][rR][0]/=10.5,tR[nR][rR][1]/=-14,tR[nR][rR][0]+=JD[0],tR[nR][rR][1]+=JD[1];function oR(e,t){if("china"===e){for(var n=0;n<t.length;n++)if(t[n].name===eR)return;t.push(new qk(eR,Te(tR,(function(e){return{type:"polygon",exterior:e}})),JD))}}var iR={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};function aR(e,t){if("china"===e){var n=iR[t.name];if(n){var r=t.getCenter();r[0]+=n[0]/10.5,r[1]+=-n[1]/14,t.setCenter(r)}}}var sR=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function lR(e,t){"china"===e&&"台湾"===t.name&&t.geometries.push({type:"polygon",exterior:sR[0]})}var uR="name",cR=function(){function e(e,t,n){this.type="geoJSON",this._parsedMap=ct(),this._mapName=e,this._specialAreas=n,this._geoJSON=hR(t)}return e.prototype.load=function(e,t){t=t||uR;var n=this._parsedMap.get(t);if(!n){var r=this._parseToRegions(t);n=this._parsedMap.set(t,{regions:r,boundingRect:dR(r)})}var o=ct(),i=[];return Me(n.regions,(function(t){var n=t.name;e&&ft(e,n)&&(t=t.cloneShallow(n=e[n])),i.push(t),o.set(n,t)})),{regions:i,boundingRect:n.boundingRect||new Fn(0,0,0,0),regionsMap:o}},e.prototype._parseToRegions=function(e){var t,n=this._mapName,r=this._geoJSON;try{t=r?nC(r,e):[]}catch(Py){throw new Error("Invalid geoJson format\n"+Py.message)}return oR(n,t),Me(t,(function(e){var t=e.name;aR(n,e),lR(n,e);var r=this._specialAreas&&this._specialAreas[t];r&&e.transformTo(r.left,r.top,r.width,r.height)}),this),t},e.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},e}();function dR(e){for(var t,n=0;n<e.length;n++){var r=e[n].getBoundingRect();t=t||r.clone(),t.union(r)}return t}function hR(e){return Ve(e)?"undefined"!==typeof JSON&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")():e}var pR=ct(),fR={registerMap:function(e,t,n){if(t.svg){var r=new YD(e,t.svg);pR.set(e,r)}else{var o=t.geoJson||t.geoJSON;o&&!t.features?n=t.specialAreas:o=t;r=new cR(e,o,n);pR.set(e,r)}},getGeoResource:function(e){return pR.get(e)},getMapForUser:function(e){var t=pR.get(e);return t&&"geoJSON"===t.type&&t.getMapForUser()},load:function(e,t,n){var r=pR.get(e);if(r)return r.load(t,n)}},gR=["rect","circle","line","ellipse","polygon","polyline","path"],mR=ct(gR),vR=ct(gR.concat(["g"])),yR=ct(gR.concat(["g"])),bR=Xs();function _R(e){var t=e.getItemStyle(),n=e.get("areaColor");return null!=n&&(t.fill=n),t}function xR(e){var t=e.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var wR=function(){function e(e){var t=new Da;this.uid=Wh("ec_map_draw"),this._controller=new vD(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new Da),t.add(this._svgGroup=new Da)}return e.prototype.draw=function(e,t,n,r,o){var i="geo"===e.mainType,a=e.getData&&e.getData();i&&t.eachComponent({mainType:"series",subType:"map"},(function(t){a||t.getHostGeoModel()!==e||(a=t.getData())}));var s=e.coordinateSystem,l=this._regionsGroup,u=this.group,c=s.getTransformInfo(),d=c.raw,h=c.roam,p=!l.childAt(0)||o;p?(u.x=h.x,u.y=h.y,u.scaleX=h.scaleX,u.scaleY=h.scaleY,u.dirty()):ih(u,h,e);var f=a&&a.getVisual("visualMeta")&&a.getVisual("visualMeta").length>0,g={api:n,geo:s,mapOrGeoModel:e,data:a,isVisualEncodedByVisualMap:f,isGeo:i,transformInfoRaw:d};"geoJSON"===s.resourceType?this._buildGeoJSON(g):"geoSVG"===s.resourceType&&this._buildSVG(g),this._updateController(e,t,n),this._updateMapSelectHandler(e,l,n,r)},e.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=ct(),n=ct(),r=this._regionsGroup,o=e.transformInfoRaw,i=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]*o.scaleX+o.x,e[1]*o.scaleY+o.y]}function c(e){for(var t=[],n=!l&&s&&s.project,r=0;r<e.length;++r){var o=u(e[r],n);o&&t.push(o)}return t}function d(e){return{shape:{points:c(e)}}}r.removeAll(),Me(e.geo.regions,(function(o){var c=o.name,h=t.get(c),p=n.get(c)||{},f=p.dataIdx,g=p.regionModel;h||(h=t.set(c,new Da),r.add(h),f=a?a.indexOfName(c):null,g=e.isGeo?i.getRegionModel(c):a?a.getItemModel(f):null,n.set(c,{dataIdx:f,regionModel:g}));var m=[],v=[];Me(o.geometries,(function(e){if("polygon"===e.type){var t=[e.exterior].concat(e.interiors||[]);l&&(t=MR(t,l)),Me(t,(function(e){m.push(new Hy(d(e)))}))}else{var n=e.points;l&&(n=MR(n,l,!0)),Me(n,(function(e){v.push(new Xy(d(e)))}))}}));var y=u(o.getCenter(),s&&s.project);function b(t,n){if(t.length){var r=new lb({culling:!0,segmentIgnoreThreshold:1,shape:{paths:t}});h.add(r),OR(e,r,f,g),SR(e,r,c,g,i,f,y),n&&(xR(r),Me(r.states,xR))}}b(m),b(v,!0)})),t.each((function(t,r){var o=n.get(r),a=o.dataIdx,s=o.regionModel;AR(e,t,r,s,i,a),kR(e,t,r,s,i),CR(e,t,r,s,i)}),this)},e.prototype._buildSVG=function(e){var t=e.geo.map,n=e.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var r=this._svgDispatcherMap=ct(),o=!1;Me(this._svgGraphicRecord.named,(function(t){var n=t.name,i=e.mapOrGeoModel,a=e.data,s=t.svgNodeTagLower,l=t.el,u=a?a.indexOfName(n):null,c=i.getRegionModel(n);if(null!=mR.get(s)&&l instanceof Jl&&OR(e,l,u,c),l instanceof Jl&&(l.culling=!0),l.z2EmphasisLift=0,!t.namedFrom&&(null!=yR.get(s)&&SR(e,l,n,c,i,u,null),AR(e,l,n,c,i,u),kR(e,l,n,c,i),null!=vR.get(s))){var d=CR(e,l,n,c,i);"self"===d&&(o=!0);var h=r.get(n)||r.set(n,[]);h.push(l)}}),this),this._enableBlurEntireSVG(o,e)},e.prototype._enableBlurEntireSVG=function(e,t){if(e&&t.isGeo){var n=t.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),r=n.opacity;this._svgGraphicRecord.root.traverse((function(e){if(!e.isGroup){wd(e);var t=e.ensureState("blur").style||{};null==t.opacity&&null!=r&&(t.opacity=r),e.ensureState("emphasis")}}))}},e.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},e.prototype.findHighDownDispatchers=function(e,t){if(null==e)return[];var n=t.coordinateSystem;if("geoJSON"===n.resourceType){var r=this._regionsGroupByName;if(r){var o=r.get(e);return o?[o]:[]}}else if("geoSVG"===n.resourceType)return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},e.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},e.prototype._useSVG=function(e){var t=fR.getGeoResource(e);if(t&&"geoSVG"===t.type){var n=t.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=e}},e.prototype._freeSVG=function(){var e=this._svgMapName;if(null!=e){var t=fR.getGeoResource(e);t&&"geoSVG"===t.type&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},e.prototype._updateController=function(e,t,n){var r=e.coordinateSystem,o=this._controller,i=this._controllerHost;i.zoomLimit=e.get("scaleLimit"),i.zoom=r.getZoom(),o.enable(e.get("roam")||!1);var a=e.mainType;function s(){var t={type:"geoRoam",componentType:a};return t[a+"Id"]=e.id,t}o.off("pan").on("pan",(function(e){this._mouseDownFlag=!1,yD(i,e.dx,e.dy),n.dispatchAction(xe(s(),{dx:e.dx,dy:e.dy,animation:{duration:0}}))}),this),o.off("zoom").on("zoom",(function(e){this._mouseDownFlag=!1,bD(i,e.scale,e.originX,e.originY),n.dispatchAction(xe(s(),{totalZoom:i.zoom,zoom:e.scale,originX:e.originX,originY:e.originY,animation:{duration:0}}))}),this),o.setPointerChecker((function(t,o,i){return r.containPoint([o,i])&&!wD(t,n,e)}))},e.prototype.resetForLabelLayout=function(){this.group.traverse((function(e){var t=e.getTextContent();t&&(t.ignore=bR(t).ignore)}))},e.prototype._updateMapSelectHandler=function(e,t,n,r){var o=this;t.off("mousedown"),t.off("click"),e.get("selectedMode")&&(t.on("mousedown",(function(){o._mouseDownFlag=!0})),t.on("click",(function(e){o._mouseDownFlag&&(o._mouseDownFlag=!1)})))},e}();function OR(e,t,n,r){var o=r.getModel("itemStyle"),i=r.getModel(["emphasis","itemStyle"]),a=r.getModel(["blur","itemStyle"]),s=r.getModel(["select","itemStyle"]),l=_R(o),u=_R(i),c=_R(s),d=_R(a),h=e.data;if(h){var p=h.getItemVisual(n,"style"),f=h.getItemVisual(n,"decal");e.isVisualEncodedByVisualMap&&p.fill&&(l.fill=p.fill),f&&(l.decal=pw(f,e.api))}t.setStyle(l),t.style.strokeNoScale=!0,t.ensureState("emphasis").style=u,t.ensureState("select").style=c,t.ensureState("blur").style=d,wd(t)}function SR(e,t,n,r,o,i,a){var s=e.data,l=e.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),i)),c=s&&s.getItemLayout(i);if(l||u||c&&c.showLabel){var d=l?n:i,h=void 0;(!s||i>=0)&&(h=o);var p=a?{normal:{align:"center",verticalAlign:"middle"}}:null;mh(t,vh(r),{labelFetcher:h,labelDataIndex:d,defaultText:n},p);var f=t.getTextContent();if(f&&(bR(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 AR(e,t,n,r,o,i){e.data?e.data.setItemGraphicEl(i,t):Qc(t).eventData={componentType:"geo",componentIndex:o.componentIndex,geoIndex:o.componentIndex,name:n,region:r&&r.option||{}}}function kR(e,t,n,r,o){e.data||Jb({el:t,componentModel:o,itemName:n,itemTooltipOption:r.get("tooltip")})}function CR(e,t,n,r,o){t.highDownSilentOnTouch=!!o.get("selectedMode");var i=r.getModel("emphasis"),a=i.get("focus");return Wd(t,a,i.get("blurScope"),i.get("disabled")),e.isGeo&&qd(t,o,n),a}function MR(e,t,n){var r,o=[];function i(){r=[]}function a(){r.length&&(o.push(r),r=[])}var s=t({polygonStart:i,polygonEnd:a,lineStart:i,lineEnd:a,point:function(e,t){isFinite(e)&&isFinite(t)&&r.push([e,t])},sphere:function(){}});return!n&&s.polygonStart(),Me(e,(function(e){s.lineStart();for(var t=0;t<e.length;t++)s.point(e[t][0],e[t][1]);s.lineEnd()})),!n&&s.polygonEnd(),o}var TR=wR,PR=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Q(t,e),t.prototype.render=function(e,t,n,r){if(!r||"mapToggleSelect"!==r.type||r.from!==this.uid){var o=this.group;if(o.removeAll(),!e.getHostGeoModel()){if(this._mapDraw&&r&&"geoRoam"===r.type&&this._mapDraw.resetForLabelLayout(),r&&"geoRoam"===r.type&&"series"===r.componentType&&r.seriesId===e.id){i=this._mapDraw;i&&o.add(i.group)}else if(e.needsDrawMap){var i=this._mapDraw||new TR(n);o.add(i.group),i.draw(e,t,n,this,r),this._mapDraw=i}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&t.getComponent("legend")&&this._renderSymbols(e,t,n)}}},t.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(e,t,n){var r=e.originalData,o=this.group;r.each(r.mapDimension("value"),(function(t,n){if(!isNaN(t)){var i=r.getItemLayout(n);if(i&&i.point){var a=i.point,s=i.offset,l=new my({style:{fill:e.getData().getVisual("style").fill},shape:{cx:a[0]+9*s,cy:a[1],r:3},silent:!0,z2:8+(s?0:Jc+1)});if(!s){var u=e.mainSeries.getData(),c=r.getName(n),d=u.indexOfName(c),h=r.getItemModel(n),p=h.getModel("label"),f=u.getItemGraphicEl(d);mh(l,vh(h),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(d,n)}},defaultText:c}),l.disableLabelAnimation=!0,p.get("position")||l.setTextConfig({position:"bottom"}),f.onHoverStateChange=function(e){md(l,e)}}o.add(l)}}}))},t.type="map",t}(c_),IR=PR,$R=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.needsDrawMap=!1,n.seriesGroup=[],n.getTooltipPosition=function(e){if(null!=e){var t=this.getData().getName(e),n=this.coordinateSystem,r=n.getRegion(t);return r&&n.dataToPoint(r.getCenter())}},n}return Q(t,e),t.prototype.getInitialData=function(e){for(var t=s$(this,{coordDimensions:["value"],encodeDefaulter:Ne(If,this)}),n=ct(),r=[],o=0,i=t.count();o<i;o++){var a=t.getName(o);n.set(a,!0)}var s=fR.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return Me(s.regions,(function(e){var t=e.name;n.get(t)||r.push(t)})),t.appendValues([],r),t},t.prototype.getHostGeoModel=function(){var e=this.option.geoIndex;return null!=e?this.ecModel.getComponent("geo",e):null},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(e){var t=this.getData();return t.get(t.mapDimension("value"),e)},t.prototype.getRegionModel=function(e){var t=this.getData();return t.getItemModel(t.indexOfName(e))},t.prototype.formatTooltip=function(e,t,n){for(var r=this.getData(),o=this.getRawValue(e),i=r.getName(e),a=this.seriesGroup,s=[],l=0;l<a.length;l++){var u=a[l].originalData.indexOfName(i),c=r.mapDimension("value");isNaN(a[l].originalData.get(c,u))||s.push(a[l].name)}return dv("section",{header:s.join(", "),noHeader:!s.length,blocks:[dv("nameValue",{name:i,value:o})]})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.getLegendIcon=function(e){var t=e.icon||"roundRect",n=Sx(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill);return n.setStyle(e.itemStyle),n.style.stroke="none",t.indexOf("empty")>-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}(jv),ER=$R;function DR(e,t){var n={};return Me(e,(function(e){e.each(e.mapDimension("value"),(function(t,r){var o="ec-"+e.getName(r);n[o]=n[o]||[],isNaN(t)||n[o].push(t)}))})),e[0].map(e[0].mapDimension("value"),(function(r,o){for(var i,a="ec-"+e[0].getName(o),s=0,l=1/0,u=-1/0,c=n[a].length,d=0;d<c;d++)l=Math.min(l,n[a][d]),u=Math.max(u,n[a][d]),s+=n[a][d];return i="min"===t?l:"max"===t?u:"average"===t?s/c:s,0===c?NaN:i}))}function RR(e){var t={};e.eachSeriesByType("map",(function(e){var n=e.getHostGeoModel(),r=n?"o"+n.id:"i"+e.getMapType();(t[r]=t[r]||[]).push(e)})),Me(t,(function(e,t){for(var n=DR(Te(e,(function(e){return e.getData()})),e[0].get("mapValueCalculation")),r=0;r<e.length;r++)e[r].originalData=e[r].getData();for(r=0;r<e.length;r++)e[r].seriesGroup=e,e[r].needsDrawMap=0===r&&!e[r].getHostGeoModel(),e[r].setData(n.cloneShallow()),e[r].mainSeries=e[0]}))}function NR(e){var t={};e.eachSeriesByType("map",(function(n){var r=n.getMapType();if(!n.getHostGeoModel()&&!t[r]){var o={};Me(n.seriesGroup,(function(t){var n=t.coordinateSystem,r=t.originalData;t.get("showLegendSymbol")&&e.getComponent("legend")&&r.each(r.mapDimension("value"),(function(e,t){var i=r.getName(t),a=n.getRegion(i);if(a&&!isNaN(e)){var s=o[i]||0,l=n.dataToPoint(a.getCenter());o[i]=s+1,r.setItemLayout(t,{point:l,offset:s})}}))}));var i=n.getData();i.each((function(e){var t=i.getName(e),n=i.getItemLayout(e)||{};n.showLabel=!o[t],i.setItemLayout(e,n)})),t[r]=!0}}))}var LR=Vt,zR=function(e){function t(t){var n=e.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new ua,n._rawTransformable=new ua,n.name=t,n}return Q(t,e),t.prototype.setBoundingRect=function(e,t,n,r){return this._rect=new Fn(e,t,n,r),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(e,t,n,r){this._transformTo(e,t,n,r),this._viewRect=new Fn(e,t,n,r)},t.prototype._transformTo=function(e,t,n,r){var o=this.getBoundingRect(),i=this._rawTransformable;i.transform=o.calculateTransform(new Fn(e,t,n,r));var a=i.parent;i.parent=null,i.decomposeTransform(),i.parent=a,this._updateTransform()},t.prototype.setCenter=function(e,t){e&&(this._center=[Ja(e[0],t.getWidth()),Ja(e[1],t.getHeight())],this._updateCenterAndZoom())},t.prototype.setZoom=function(e){e=e||1;var t=this.zoomLimit;t&&(null!=t.max&&(e=Math.min(t.max,e)),null!=t.min&&(e=Math.max(t.min,e))),this._zoom=e,this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var e=this.getBoundingRect(),t=e.x+e.width/2,n=e.y+e.height/2;return[t,n]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var e=this._rawTransformable.getLocalTransform(),t=this._roamTransformable,n=this.getDefaultCenter(),r=this.getCenter(),o=this.getZoom();r=Vt([],r,e),n=Vt([],n,e),t.originX=r[0],t.originY=r[1],t.x=n[0]-r[0],t.y=n[1]-r[1],t.scaleX=t.scaleY=o,this._updateTransform()},t.prototype._updateTransform=function(){var e=this._roamTransformable,t=this._rawTransformable;t.parent=e,e.updateTransform(),t.updateTransform(),An(this.transform||(this.transform=[]),t.transform||On()),this._rawTransform=t.getLocalTransform(),this.invTransform=this.invTransform||[],Pn(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var e=this._rawTransformable,t=this._roamTransformable,n=new ua;return n.transform=t.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:e.x,y:e.y,scaleX:e.scaleX,scaleY:e.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var e=this.getBoundingRect().clone();return e.applyTransform(this.transform),e},t.prototype.dataToPoint=function(e,t,n){var r=t?this._rawTransform:this.transform;return n=n||[],r?LR(n,e,r):yt(n,e)},t.prototype.pointToData=function(e){var t=this.invTransform;return t?LR([],e,t):[e[0],e[1]]},t.prototype.convertToPixel=function(e,t,n){var r=VR(t);return r===this?r.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var r=VR(t);return r===this?r.pointToData(n):null},t.prototype.containPoint=function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])},t.dimensions=["x","y"],t}(ua);function VR(e){var t=e.seriesModel;return t?t.coordinateSystem:null}var BR=zR,jR={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},QR=["lng","lat"],FR=function(e){function t(t,n,r){var o=e.call(this,t)||this;o.dimensions=QR,o.type="geo",o._nameCoordMap=ct(),o.map=n;var i,a=r.projection,s=fR.load(n,r.nameMap,r.nameProperty),l=fR.getGeoResource(n),u=(o.resourceType=l?l.type:null,o.regions=s.regions),c=jR[l.type];if(o._regionsMap=s.regionsMap,o.regions=s.regions,o.projection=a,a)for(var d=0;d<u.length;d++){var h=u[d].getBoundingRect(a);i=i||h.clone(),i.union(h)}else i=s.boundingRect;return o.setBoundingRect(i.x,i.y,i.width,i.height),o.aspectScale=a?1:qe(r.aspectScale,c.aspectScale),o._invertLongitute=!a&&c.invertLongitute,o}return Q(t,e),t.prototype._transformTo=function(e,t,n,r){var o=this.getBoundingRect(),i=this._invertLongitute;o=o.clone(),i&&(o.y=-o.y-o.height);var a=this._rawTransformable;a.transform=o.calculateTransform(new Fn(e,t,n,r));var s=a.parent;a.parent=null,a.decomposeTransform(),a.parent=s,i&&(a.scaleY=-a.scaleY),this._updateTransform()},t.prototype.getRegion=function(e){return this._regionsMap.get(e)},t.prototype.getRegionByCoord=function(e){for(var t=this.regions,n=0;n<t.length;n++){var r=t[n];if("geoJSON"===r.type&&r.contain(e))return t[n]}},t.prototype.addGeoCoord=function(e,t){this._nameCoordMap.set(e,t)},t.prototype.getGeoCoord=function(e){var t=this._regionsMap.get(e);return this._nameCoordMap.get(e)||t&&t.getCenter()},t.prototype.dataToPoint=function(e,t,n){if(Ve(e)&&(e=this.getGeoCoord(e)),e){var r=this.projection;return r&&(e=r.project(e)),e&&this.projectedToPoint(e,t,n)}},t.prototype.pointToData=function(e){var t=this.projection;return t&&(e=t.unproject(e)),e&&this.pointToProjected(e)},t.prototype.pointToProjected=function(t){return e.prototype.pointToData.call(this,t)},t.prototype.projectedToPoint=function(t,n,r){return e.prototype.dataToPoint.call(this,t,n,r)},t.prototype.convertToPixel=function(e,t,n){var r=WR(t);return r===this?r.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var r=WR(t);return r===this?r.pointToData(n):null},t}(BR);function WR(e){var t=e.geoModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",Ks).models[0]||{}).coordinateSystem:null}ke(FR,BR);var HR=FR;function ZR(e,t){var n=e.get("boundingCoords");if(null!=n){var r=n[0],o=n[1];if(isFinite(r[0])&&isFinite(r[1])&&isFinite(o[0])&&isFinite(o[1])){var i=this.projection;if(i){var a=r[0],s=r[1],l=o[0],u=o[1];r=[1/0,1/0],o=[-1/0,-1/0];var c=function(e,t,n,a){for(var s=n-e,l=a-t,u=0;u<=100;u++){var c=u/100,d=i.project([e+s*c,t+l*c]);Bt(r,r,d),jt(o,o,d)}};c(a,s,l,s),c(l,s,l,u),c(l,u,a,u),c(a,u,l,s)}this.setBoundingRect(r[0],r[1],o[0]-r[0],o[1]-r[1])}else 0}var d,h,p,f=this.getBoundingRect(),g=e.get("layoutCenter"),m=e.get("layoutSize"),v=t.getWidth(),y=t.getHeight(),b=f.width/f.height*this.aspectScale,_=!1;if(g&&m&&(d=[Ja(g[0],v),Ja(g[1],y)],h=Ja(m,Math.min(v,y)),isNaN(d[0])||isNaN(d[1])||isNaN(h)||(_=!0)),_)p={},b>1?(p.width=h,p.height=h/b):(p.height=h,p.width=h*b),p.y=d[1]-p.height/2,p.x=d[0]-p.width/2;else{var x=e.getBoxLayoutParams();x.aspect=b,p=rf(x,{width:v,height:y})}this.setViewRect(p.x,p.y,p.width,p.height),this.setCenter(e.get("center"),t),this.setZoom(e.get("zoom"))}function GR(e,t){Me(t.get("geoCoord"),(function(t,n){e.addGeoCoord(n,t)}))}var XR=function(){function e(){this.dimensions=QR}return e.prototype.create=function(e,t){var n=[];function r(e){return{nameProperty:e.get("nameProperty"),aspectScale:e.get("aspectScale"),projection:e.get("projection")}}e.eachComponent("geo",(function(e,o){var i=e.get("map"),a=new HR(i+o,i,xe({nameMap:e.get("nameMap")},r(e)));a.zoomLimit=e.get("scaleLimit"),n.push(a),e.coordinateSystem=a,a.model=e,a.resize=ZR,a.resize(e,t)})),e.eachSeries((function(e){var t=e.get("coordinateSystem");if("geo"===t){var r=e.get("geoIndex")||0;e.coordinateSystem=n[r]}}));var o={};return e.eachSeriesByType("map",(function(e){if(!e.getHostGeoModel()){var t=e.getMapType();o[t]=o[t]||[],o[t].push(e)}})),Me(o,(function(e,o){var i=Te(e,(function(e){return e.get("nameMap")})),a=new HR(o,o,xe({nameMap:_e(i)},r(e[0])));a.zoomLimit=Ye.apply(null,Te(e,(function(e){return e.get("scaleLimit")}))),n.push(a),a.resize=ZR,a.resize(e[0],t),Me(e,(function(e){e.coordinateSystem=a,GR(a,e)}))})),n},e.prototype.getFilledRegions=function(e,t,n,r){for(var o=(e||[]).slice(),i=ct(),a=0;a<o.length;a++)i.set(o[a].name,o[a]);var s=fR.load(t,n,r);return Me(s.regions,(function(e){var t=e.name;!i.get(t)&&o.push({name:t})})),o},e}(),UR=new XR,YR=UR,qR=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Q(t,e),t.prototype.init=function(e,t,n){var r=fR.getGeoResource(e.map);if(r&&"geoJSON"===r.type){var o=e.itemStyle=e.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(e,n),Cs(e,"label",["show"])},t.prototype.optionUpdated=function(){var e=this,t=this.option;t.regions=YR.getFilledRegions(t.regions,t.map,t.nameMap,t.nameProperty);var n={};this._optionModelMap=Pe(t.regions||[],(function(t,r){var o=r.name;return o&&(t.set(o,new Qh(r,e,e.ecModel)),r.selected&&(n[o]=!0)),t}),ct()),t.selectedMap||(t.selectedMap=n)},t.prototype.getRegionModel=function(e){return this._optionModelMap.get(e)||new Qh(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(e,t){var n=this.getRegionModel(e),r="normal"===t?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),o={name:e};return ze(r)?(o.status=t,r(o)):Ve(r)?r.replace("{a}",null!=e?e:""):void 0},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.select=function(e){var t=this.option,n=t.selectedMode;if(n){"multiple"!==n&&(t.selectedMap=null);var r=t.selectedMap||(t.selectedMap={});r[e]=!0}},t.prototype.unSelect=function(e){var t=this.option.selectedMap;t&&(t[e]=!1)},t.prototype.toggleSelected=function(e){this[this.isSelected(e)?"unSelect":"select"](e)},t.prototype.isSelected=function(e){var t=this.option.selectedMap;return!(!t||!t[e])},t.type="geo",t.layoutMode="box",t.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},t}(ff),KR=qR;function JR(e,t){return e.pointToProjected?e.pointToProjected(t):e.pointToData(t)}function eN(e,t,n,r){var o=e.getZoom(),i=e.getCenter(),a=t.zoom,s=e.projectedToPoint?e.projectedToPoint(i):e.dataToPoint(i);if(null!=t.dx&&null!=t.dy&&(s[0]-=t.dx,s[1]-=t.dy,e.setCenter(JR(e,s),r)),null!=a){if(n){var l=n.min||0,u=n.max||1/0;a=Math.max(Math.min(o*a,u),l)/o}e.scaleX*=a,e.scaleY*=a;var c=(t.originX-e.x)*(a-1),d=(t.originY-e.y)*(a-1);e.x-=c,e.y-=d,e.updateTransform(),e.setCenter(JR(e,s),r),e.setZoom(a*o)}return{center:e.getCenter(),zoom:e.getZoom()}}var tN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.focusBlurEnabled=!0,n}return Q(t,e),t.prototype.init=function(e,t){this._api=t},t.prototype.render=function(e,t,n,r){if(this._model=e,!e.get("show"))return this._mapDraw&&this._mapDraw.remove(),void(this._mapDraw=null);this._mapDraw||(this._mapDraw=new TR(n));var o=this._mapDraw;o.draw(e,t,n,this,r),o.group.on("click",this._handleRegionClick,this),o.group.silent=e.get("silent"),this.group.add(o.group),this.updateSelectStatus(e,t,n)},t.prototype._handleRegionClick=function(e){var t;ux(e.target,(function(e){return null!=(t=Qc(e).eventData)}),!0),t&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:t.name})},t.prototype.updateSelectStatus=function(e,t,n){var r=this;this._mapDraw.group.traverse((function(e){var t=Qc(e).eventData;if(t)return r._model.isSelected(t.name)?n.enterSelect(e):n.leaveSelect(e),!0}))},t.prototype.findHighDownDispatchers=function(e){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(e,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type="geo",t}(Fv),nN=tN;function rN(e,t,n){fR.registerMap(e,t,n)}function oN(e){function t(t,n){n.update="geo:updateSelectStatus",e.registerAction(n,(function(e,n){var r={},o=[];return n.eachComponent({mainType:"geo",query:e},(function(n){n[t](e.name);var i=n.coordinateSystem;Me(i.regions,(function(e){r[e.name]=n.isSelected(e.name)||!1}));var a=[];Me(r,(function(e,t){r[t]&&a.push(t)})),o.push({geoIndex:n.componentIndex,name:a})})),{selected:r,allSelected:o,name:e.name}}))}e.registerCoordinateSystem("geo",YR),e.registerComponentModel(KR),e.registerComponentView(nN),e.registerImpl("registerMap",rN),e.registerImpl("getMap",(function(e){return fR.getMapForUser(e)})),t("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),t("select",{type:"geoSelect",event:"geoselected"}),t("unSelect",{type:"geoUnSelect",event:"geounselected"}),e.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},(function(e,t,n){var r=e.componentType||"series";t.eachComponent({mainType:r,query:e},(function(t){var o=t.coordinateSystem;if("geo"===o.type){var i=eN(o,e,t.get("scaleLimit"),n);t.setCenter&&t.setCenter(i.center),t.setZoom&&t.setZoom(i.zoom),"series"===r&&Me(t.seriesGroup,(function(e){e.setCenter(i.center),e.setZoom(i.zoom)}))}}))}))}function iN(e){dS(oN),e.registerChartView(IR),e.registerSeriesModel(ER),e.registerLayout(NR),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,RR),ax("map",e.registerAction)}function aN(e){var t=e;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};var n,r,o=[t];while(n=o.pop())if(r=n.children,n.isExpand&&r.length)for(var i=r.length,a=i-1;a>=0;a--){var s=r[a];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:a,thread:null},o.push(s)}}function sN(e,t){var n=e.isExpand?e.children:[],r=e.parentNode.children,o=e.hierNode.i?r[e.hierNode.i-1]:null;if(n.length){hN(e);var i=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;o?(e.hierNode.prelim=o.hierNode.prelim+t(e,o),e.hierNode.modifier=e.hierNode.prelim-i):e.hierNode.prelim=i}else o&&(e.hierNode.prelim=o.hierNode.prelim+t(e,o));e.parentNode.hierNode.defaultAncestor=pN(e,o,e.parentNode.hierNode.defaultAncestor||r[0],t)}function lN(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function uN(e){return arguments.length?e:yN}function cN(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function dN(e,t){return rf(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function hN(e){var t=e.children,n=t.length,r=0,o=0;while(--n>=0){var i=t[n];i.hierNode.prelim+=r,i.hierNode.modifier+=r,o+=i.hierNode.change,r+=i.hierNode.shift+o}}function pN(e,t,n,r){if(t){var o=e,i=e,a=i.parentNode.children[0],s=t,l=o.hierNode.modifier,u=i.hierNode.modifier,c=a.hierNode.modifier,d=s.hierNode.modifier;while(s=fN(s),i=gN(i),s&&i){o=fN(o),a=gN(a),o.hierNode.ancestor=e;var h=s.hierNode.prelim+d-i.hierNode.prelim-u+r(s,i);h>0&&(vN(mN(s,e,n),e,h),u+=h,l+=h),d+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=o.hierNode.modifier,c+=a.hierNode.modifier}s&&!fN(o)&&(o.hierNode.thread=s,o.hierNode.modifier+=d-l),i&&!gN(a)&&(a.hierNode.thread=i,a.hierNode.modifier+=u-c,n=e)}return n}function fN(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function gN(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function mN(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function vN(e,t,n){var r=n/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=r,t.hierNode.shift+=n,t.hierNode.modifier+=n,t.hierNode.prelim+=n,e.hierNode.change+=r}function yN(e,t){return e.parentNode===t.parentNode?1:2}var bN=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),_N=function(e){function t(t){return e.call(this,t)||this}return Q(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new bN},t.prototype.buildPath=function(e,t){var n=t.childPoints,r=n.length,o=t.parentPoint,i=n[0],a=n[r-1];if(1===r)return e.moveTo(o[0],o[1]),void e.lineTo(i[0],i[1]);var s=t.orient,l="TB"===s||"BT"===s?0:1,u=1-l,c=Ja(t.forkPosition,1),d=[];d[l]=o[l],d[u]=o[u]+(a[u]-o[u])*c,e.moveTo(o[0],o[1]),e.lineTo(d[0],d[1]),e.moveTo(i[0],i[1]),d[l]=i[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;h<r-1;h++){var p=n[h];e.moveTo(p[0],p[1]),d[l]=p[l],e.lineTo(d[0],d[1])}},t}(ac),xN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._mainGroup=new Da,n}return Q(t,e),t.prototype.init=function(e,t){this._controller=new vD(t.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(e,t,n){var r=e.getData(),o=e.layoutInfo,i=this._mainGroup,a=e.get("layout");"radial"===a?(i.x=o.x+o.width/2,i.y=o.y+o.height/2):(i.x=o.x,i.y=o.y),this._updateViewCoordSys(e,n),this._updateController(e,t,n);var s=this._data;r.diff(s).add((function(t){wN(r,t)&&ON(r,t,null,i,e)})).update((function(t,n){var o=s.getItemGraphicEl(n);wN(r,t)?ON(r,t,o,i,e):o&&CN(s,n,o,i,e)})).remove((function(t){var n=s.getItemGraphicEl(t);n&&CN(s,t,n,i,e)})).execute(),this._nodeScaleRatio=e.get("nodeScaleRatio"),this._updateNodeAndLinkScale(e),!0===e.get("expandAndCollapse")&&r.eachItemGraphicEl((function(t,r){t.off("click").on("click",(function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:e.id,dataIndex:r})}))})),this._data=r},t.prototype._updateViewCoordSys=function(e,t){var n=e.getData(),r=[];n.each((function(e){var t=n.getItemLayout(e);!t||isNaN(t.x)||isNaN(t.y)||r.push([+t.x,+t.y])}));var o=[],i=[];lu(r,o,i);var a=this._min,s=this._max;i[0]-o[0]===0&&(o[0]=a?a[0]:o[0]-1,i[0]=s?s[0]:i[0]+1),i[1]-o[1]===0&&(o[1]=a?a[1]:o[1]-1,i[1]=s?s[1]:i[1]+1);var l=e.coordinateSystem=new BR;l.zoomLimit=e.get("scaleLimit"),l.setBoundingRect(o[0],o[1],i[0]-o[0],i[1]-o[1]),l.setCenter(e.get("center"),t),l.setZoom(e.get("zoom")),this.group.attr({x:l.x,y:l.y,scaleX:l.scaleX,scaleY:l.scaleY}),this._min=o,this._max=i},t.prototype._updateController=function(e,t,n){var r=this,o=this._controller,i=this._controllerHost,a=this.group;o.setPointerChecker((function(t,r,o){var i=a.getBoundingRect();return i.applyTransform(a.transform),i.contain(r,o)&&!wD(t,n,e)})),o.enable(e.get("roam")),i.zoomLimit=e.get("scaleLimit"),i.zoom=e.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",(function(t){yD(i,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"treeRoam",dx:t.dx,dy:t.dy})})).on("zoom",(function(t){bD(i,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"treeRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),r._updateNodeAndLinkScale(e),n.updateLabelLayout()}))},t.prototype._updateNodeAndLinkScale=function(e){var t=e.getData(),n=this._getNodeGlobalScale(e);t.eachItemGraphicEl((function(e,t){e.setSymbolScale(n)}))},t.prototype._getNodeGlobalScale=function(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var n=this._nodeScaleRatio,r=t.scaleX||1,o=t.getZoom(),i=(o-1)*n+1;return i/r},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type="tree",t}(c_);function wN(e,t){var n=e.getItemLayout(t);return n&&!isNaN(n.x)&&!isNaN(n.y)}function ON(e,t,n,r,o){var i=!n,a=e.tree.getNodeByDataIndex(t),s=a.getModel(),l=a.getVisual("style").fill,u=!1===a.isExpand&&0!==a.children.length?l:"#fff",c=e.tree.root,d=a.parentNode===c?a:a.parentNode||a,h=e.getItemGraphicEl(d.dataIndex),p=d.getLayout(),f=h?{x:h.__oldX,y:h.__oldY,rawX:h.__radialOldRawX,rawY:h.__radialOldRawY}:p,g=a.getLayout();i?(n=new fP(e,t,null,{symbolInnerColor:u,useNameLabel:!0}),n.x=f.x,n.y=f.y):n.updateData(e,t,null,{symbolInnerColor:u,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=g.rawX,n.__radialRawY=g.rawY,r.add(n),e.setItemGraphicEl(t,n),n.__oldX=n.x,n.__oldY=n.y,ih(n,{x:g.x,y:g.y},o);var m=n.getSymbolPath();if("radial"===o.get("layout")){var v=c.children[0],y=v.getLayout(),b=v.children.length,_=void 0,x=void 0;if(g.x===y.x&&!0===a.isExpand&&v.children.length){var w={x:(v.children[0].getLayout().x+v.children[b-1].getLayout().x)/2,y:(v.children[0].getLayout().y+v.children[b-1].getLayout().y)/2};_=Math.atan2(w.y-y.y,w.x-y.x),_<0&&(_=2*Math.PI+_),x=w.x<y.x,x&&(_-=Math.PI)}else _=Math.atan2(g.y-y.y,g.x-y.x),_<0&&(_=2*Math.PI+_),0===a.children.length||0!==a.children.length&&!1===a.isExpand?(x=g.x<y.x,x&&(_-=Math.PI)):(x=g.x>y.x,x||(_-=Math.PI));var O=x?"left":"right",S=s.getModel("label"),A=S.get("rotate"),k=A*(Math.PI/180),C=m.getTextContent();C&&(m.setTextConfig({position:S.get("position")||O,rotation:null==A?-_:k,origin:"center"}),C.setStyle("verticalAlign","middle"))}var M=s.get(["emphasis","focus"]),T="relative"===M?dt(a.getAncestorsIndices(),a.getDescendantIndices()):"ancestor"===M?a.getAncestorsIndices():"descendant"===M?a.getDescendantIndices():null;T&&(Qc(n).focus=T),SN(o,a,c,n,f,p,g,r),n.__edge&&(n.onHoverStateChange=function(t){if("blur"!==t){var r=a.parentNode&&e.getItemGraphicEl(a.parentNode.dataIndex);r&&r.hoverState===Uc||md(n.__edge,t)}})}function SN(e,t,n,r,o,i,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=r.__edge;if("curve"===u)t.parentNode&&t.parentNode!==n&&(g||(g=r.__edge=new rb({shape:MN(c,d,h,o,o)})),ih(g,{shape:MN(c,d,h,i,a)},e));else if("polyline"===u)if("orthogonal"===c){if(t!==n&&t.children&&0!==t.children.length&&!0===t.isExpand){for(var m=t.children,v=[],y=0;y<m.length;y++){var b=m[y].getLayout();v.push([b.x,b.y])}g||(g=r.__edge=new _N({shape:{parentPoint:[a.x,a.y],childPoints:[[a.x,a.y]],orient:d,forkPosition:p}})),ih(g,{shape:{parentPoint:[a.x,a.y],childPoints:v}},e)}}else 0;g&&("polyline"!==u||t.isExpand)&&(g.useStyle(we({strokeNoScale:!0,fill:null},f)),Xd(g,l,"lineStyle"),wd(g),s.add(g))}function AN(e,t,n,r,o){var i=t.tree.root,a=kN(i,e),s=a.source,l=a.sourceLayout,u=t.getItemGraphicEl(e.dataIndex);if(u){var c=t.getItemGraphicEl(s.dataIndex),d=c.__edge,h=u.__edge||(!1===s.isExpand||1===s.children.length?d:void 0),p=r.get("edgeShape"),f=r.get("layout"),g=r.get("orient"),m=r.get(["lineStyle","curveness"]);h&&("curve"===p?lh(h,{shape:MN(f,g,m,l,l),style:{opacity:0}},r,{cb:function(){n.remove(h)},removeOpt:o}):"polyline"===p&&"orthogonal"===r.get("layout")&&lh(h,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},r,{cb:function(){n.remove(h)},removeOpt:o}))}}function kN(e,t){var n,r=t.parentNode===e?t:t.parentNode||t;while(n=r.getLayout(),null==n)r=r.parentNode===e?r:r.parentNode||r;return{source:r,sourceLayout:n}}function CN(e,t,n,r,o){var i=e.tree.getNodeByDataIndex(t),a=e.tree.root,s=kN(a,i).sourceLayout,l={duration:o.get("animationDurationUpdate"),easing:o.get("animationEasingUpdate")};lh(n,{x:s.x+1,y:s.y+1},o,{cb:function(){r.remove(n),e.setItemGraphicEl(t,null)},removeOpt:l}),n.fadeOut(null,e.hostModel,{fadeLabel:!0,animation:l}),i.children.forEach((function(t){AN(t,e,r,o,l)})),AN(i,e,r,o,l)}function MN(e,t,n,r,o){var i,a,s,l,u,c,d,h;if("radial"===e){u=r.rawX,d=r.rawY,c=o.rawX,h=o.rawY;var p=cN(u,d),f=cN(u,d+(h-d)*n),g=cN(c,h+(d-h)*n),m=cN(c,h);return{x1:p.x||0,y1:p.y||0,x2:m.x||0,y2:m.y||0,cpx1:f.x||0,cpy1:f.y||0,cpx2:g.x||0,cpy2:g.y||0}}return u=r.x,d=r.y,c=o.x,h=o.y,"LR"!==t&&"RL"!==t||(i=u+(c-u)*n,a=d,s=c+(u-c)*n,l=h),"TB"!==t&&"BT"!==t||(i=u,a=d+(h-d)*n,s=c,l=h+(d-h)*n),{x1:u,y1:d,x2:c,y2:h,cpx1:i,cpy1:a,cpx2:s,cpy2:l}}var TN=xN,PN=Xs();function IN(e){var t=e.mainData,n=e.datas;n||(n={main:t},e.datasAttr={main:"data"}),e.datas=e.mainData=null,zN(t,n,e),Me(n,(function(n){Me(t.TRANSFERABLE_METHODS,(function(t){n.wrapMethod(t,Ne($N,e))}))})),t.wrapMethod("cloneShallow",Ne(DN,e)),Me(t.CHANGABLE_METHODS,(function(n){t.wrapMethod(n,Ne(EN,e))})),tt(n[t.dataType]===t)}function $N(e,t){if(LN(this)){var n=xe({},PN(this).datas);n[this.dataType]=t,zN(t,n,e)}else VN(t,this.dataType,PN(this).mainData,e);return t}function EN(e,t){return e.struct&&e.struct.update(),t}function DN(e,t){return Me(PN(t).datas,(function(n,r){n!==t&&VN(n.cloneShallow(),r,t,e)})),t}function RN(e){var t=PN(this).mainData;return null==e||null==t?t:PN(t).datas[e]}function NN(){var e=PN(this).mainData;return null==e?[{data:e}]:Te(Ee(PN(e).datas),(function(t){return{type:t,data:PN(e).datas[t]}}))}function LN(e){return PN(e).mainData===e}function zN(e,t,n){PN(e).datas={},Me(t,(function(t,r){VN(t,r,e,n)}))}function VN(e,t,n,r){PN(n).datas[t]=e,PN(e).mainData=n,e.dataType=t,r.struct&&(e[r.structAttr]=r.struct,r.struct[r.datasAttr[t]]=e),e.getLinkedData=RN,e.getLinkedDataAll=NN}var BN=IN,jN=function(){function e(e,t){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=t}return e.prototype.isRemoved=function(){return this.dataIndex<0},e.prototype.eachNode=function(e,t,n){ze(e)&&(n=t,t=e,e=null),e=e||{},Ve(e)&&(e={order:e});var r,o=e.order||"preorder",i=this[e.attr||"children"];"preorder"===o&&(r=t.call(n,this));for(var a=0;!r&&a<i.length;a++)i[a].eachNode(e,t,n);"postorder"===o&&t.call(n,this)},e.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var n=0;n<this.children.length;n++){var r=this.children[n];r.updateDepthAndHeight(e+1),r.height>t&&(t=r.height)}this.height=t+1},e.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,r=n.length;t<r;t++){var o=n[t].getNodeById(e);if(o)return o}},e.prototype.contains=function(e){if(e===this)return!0;for(var t=0,n=this.children,r=n.length;t<r;t++){var o=n[t].contains(e);if(o)return o}},e.prototype.getAncestors=function(e){var t=[],n=e?this:this.parentNode;while(n)t.push(n),n=n.parentNode;return t.reverse(),t},e.prototype.getAncestorsIndices=function(){var e=[],t=this;while(t)e.push(t.dataIndex),t=t.parentNode;return e.reverse(),e},e.prototype.getDescendantIndices=function(){var e=[];return this.eachNode((function(t){e.push(t.dataIndex)})),e},e.prototype.getValue=function(e){var t=this.hostTree.data;return t.getStore().get(t.getDimensionIndex(e||"value"),this.dataIndex)},e.prototype.setLayout=function(e,t){this.dataIndex>=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<e.length;++t)if(e[t]===this)return t;return-1}return-1},e.prototype.isAncestorOf=function(e){var t=e.parentNode;while(t){if(t===this)return!0;t=t.parentNode}return!1},e.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},e}(),QN=function(){function e(e){this.type="tree",this._nodes=[],this.hostModel=e}return e.prototype.eachNode=function(e,t,n){this.root.eachNode(e,t,n)},e.prototype.getNodeByDataIndex=function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},e.prototype.getNodeById=function(e){return this.root.getNodeById(e)},e.prototype.update=function(){for(var e=this.data,t=this._nodes,n=0,r=t.length;n<r;n++)t[n].dataIndex=-1;for(n=0,r=e.count();n<r;n++)t[e.getRawIndex(n)].dataIndex=n},e.prototype.clearLayouts=function(){this.data.clearItemLayouts()},e.createTree=function(t,n,r){var o=new e(n),i=[],a=1;function s(e,t){var n=e.value;a=Math.max(a,Le(n)?n.length:1),i.push(e);var r=new jN(Bs(e.name,""),o);t?FN(r,t):o.root=r,o._nodes.push(r);var l=e.children;if(l)for(var u=0;u<l.length;u++)s(l[u],r)}s(t),o.root.updateDepthAndHeight(0);var l=GS(i,{coordDimensions:["value"],dimensionsCount:a}).dimensions,u=new HS(l,n);return u.initData(i),r&&r(u),BN({mainData:u,struct:o,structAttr:"tree"}),o.update(),o},e}();function FN(e,t){var n=t.children;e.parentNode!==t&&(n.push(e),e.parentNode=t)}var WN=QN;function HN(e,t,n){if(e&&Se(t,e.type)>=0){var r=n.getData().tree.root,o=e.targetNode;if(Ve(o)&&(o=r.getNodeById(o)),o&&r.contains(o))return{node:o};var i=e.targetNodeId;if(null!=i&&(o=r.getNodeById(i)))return{node:o}}}function ZN(e){var t=[];while(e)e=e.parentNode,e&&t.push(e);return t.reverse()}function GN(e,t){var n=ZN(e);return Se(n,t)>=0}function XN(e,t){var n=[];while(e){var r=e.dataIndex;n.push({name:e.name,dataIndex:r,value:t.getRawValue(r)}),e=e.parentNode}return n.reverse(),n}var UN=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return Q(t,e),t.prototype.getInitialData=function(e){var t={name:e.name,children:e.data},n=e.leaves||{},r=new Qh(n,this,this.ecModel),o=WN.createTree(t,this,i);function i(e){e.wrapMethod("getItemModel",(function(e,t){var n=o.getNodeByDataIndex(t);return n&&n.children.length&&n.isExpand||(e.parentModel=r),e}))}var a=0;o.eachNode("preorder",(function(e){e.depth>a&&(a=e.depth)}));var s=e.expandAndCollapse,l=s&&e.initialTreeDepth>=0?e.initialTreeDepth:a;return o.root.eachNode("preorder",(function(e){var t=e.hostTree.data.getRawDataItem(e.dataIndex);e.isExpand=t&&null!=t.collapsed?!t.collapsed:e.depth<=l})),o.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 r=this.getData().tree,o=r.root.children[0],i=r.getNodeByDataIndex(e),a=i.getValue(),s=i.name;while(i&&i!==o)s=i.parentNode.name+"."+s,i=i.parentNode;return dv("nameValue",{name:s,value:a,noValue:isNaN(a)||null==a})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=XN(r,this),n.collapsed=!r.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}(jv),YN=UN;function qN(e,t,n){var r,o=[e],i=[];while(r=o.pop())if(i.push(r),r.isExpand){var a=r.children;if(a.length)for(var s=0;s<a.length;s++)o.push(a[s])}while(r=i.pop())t(r,n)}function KN(e,t){var n,r=[e];while(n=r.pop())if(t(n),n.isExpand){var o=n.children;if(o.length)for(var i=o.length-1;i>=0;i--)r.push(o[i])}}function JN(e,t){e.eachSeriesByType("tree",(function(e){eL(e,t)}))}function eL(e,t){var n=dN(e,t);e.layoutInfo=n;var r=e.get("layout"),o=0,i=0,a=null;"radial"===r?(o=2*Math.PI,i=Math.min(n.height,n.width)/2,a=uN((function(e,t){return(e.parentNode===t.parentNode?1:2)/e.depth}))):(o=n.width,i=n.height,a=uN());var s=e.getData().tree.root,l=s.children[0];if(l){aN(s),qN(l,sN,a),s.hierNode.modifier=-l.hierNode.prelim,KN(l,lN);var u=l,c=l,d=l;KN(l,(function(e){var t=e.getLayout().x;t<u.getLayout().x&&(u=e),t>c.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,m=0,v=0;if("radial"===r)f=o/(c.getLayout().x+h+p),g=i/(d.depth-1||1),KN(l,(function(e){m=(e.getLayout().x+p)*f,v=(e.depth-1)*g;var t=cN(m,v);e.setLayout({x:t.x,y:t.y,rawX:m,rawY:v},!0)}));else{var y=e.getOrient();"RL"===y||"LR"===y?(g=i/(c.getLayout().x+h+p),f=o/(d.depth-1||1),KN(l,(function(e){v=(e.getLayout().x+p)*g,m="LR"===y?(e.depth-1)*f:o-(e.depth-1)*f,e.setLayout({x:m,y:v},!0)}))):"TB"!==y&&"BT"!==y||(f=o/(c.getLayout().x+h+p),g=i/(d.depth-1||1),KN(l,(function(e){m=(e.getLayout().x+p)*f,v="TB"===y?(e.depth-1)*g:i-(e.depth-1)*g,e.setLayout({x:m,y:v},!0)})))}}}function tL(e){e.eachSeriesByType("tree",(function(e){var t=e.getData(),n=t.tree;n.eachNode((function(e){var n=e.getModel(),r=n.getModel("itemStyle").getItemStyle(),o=t.ensureUniqueItemVisual(e.dataIndex,"style");xe(o,r)}))}))}function nL(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,r=t.getData().tree,o=r.getNodeByDataIndex(n);o.isExpand=!o.isExpand}))})),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(e,t,n){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var r=t.coordinateSystem,o=eN(r,e,void 0,n);t.setCenter&&t.setCenter(o.center),t.setZoom&&t.setZoom(o.zoom)}))}))}function rL(e){e.registerChartView(TN),e.registerSeriesModel(YN),e.registerLayout(JN),e.registerVisual(tL),nL(e)}var oL=["treemapZoomToNode","treemapRender","treemapMove"];function iL(e){for(var t=0;t<oL.length;t++)e.registerAction({type:oL[t],update:"updateView"},gt);e.registerAction({type:"treemapRootToNode",update:"updateView"},(function(e,t){function n(t,n){var r=["treemapZoomToNode","treemapRootToNode"],o=HN(e,r,t);if(o){var i=t.getViewRoot();i&&(e.direction=GN(i,o.node)?"rollUp":"drillDown"),t.resetViewRoot(o.node)}}t.eachComponent({mainType:"series",subType:"treemap",query:e},n)}))}function aL(e){var t=e.getData(),n=t.tree,r={};n.eachNode((function(t){var n=t;while(n&&n.depth>1)n=n.parentNode;var o=Hf(e.ecModel,n.name||n.dataIndex+"",r);t.setVisual("decal",o)}))}var sL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.preventUsingHoverLayer=!0,n}return Q(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};lL(n);var r=e.levels||[],o=this.designatedVisualItemStyle={},i=new Qh({itemStyle:o},this,t);r=e.levels=uL(r,t);var a=Te(r||[],(function(e){return new Qh(e,i,t)}),this),s=WN.createTree(n,this,l);function l(e){e.wrapMethod("getItemModel",(function(e,t){var n=s.getNodeByDataIndex(t),r=n?a[n.depth]:null;return e.parentModel=r||i,e}))}return s.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),o=this.getRawValue(e),i=r.getName(e);return dv("nameValue",{name:i,value:o})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=XN(r,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},xe(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var t=this._idIndexMap;t||(t=this._idIndexMap=ct(),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(){aL(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,scaleLimit:null,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(jv);function lL(e){var t=0;Me(e.children,(function(e){lL(e);var n=e.value;Le(n)&&(n=n[0]),t+=n}));var n=e.value;Le(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),n<0&&(n=0),Le(e.value)?e.value[0]=n:e.value=n}function uL(e,t){var n=ks(t.get("color")),r=ks(t.get(["aria","decal","decals"]));if(n){var o,i;e=e||[],Me(e,(function(e){var t=new Qh(e),n=t.get("color"),r=t.get("decal");(t.get(["itemStyle","color"])||n&&"none"!==n)&&(o=!0),(t.get(["itemStyle","decal"])||r&&"none"!==r)&&(i=!0)}));var a=e[0]||(e[0]={});return o||(a.color=n.slice()),!i&&r&&(a.decal=r.slice()),e}}var cL=sL,dL=8,hL=8,pL=5,fL=function(){function e(e){this.group=new Da,e.add(this.group)}return e.prototype.render=function(e,t,n,r){var o=e.getModel("breadcrumb"),i=this.group;if(i.removeAll(),o.get("show")&&n){var a=o.getModel("itemStyle"),s=o.getModel("emphasis"),l=a.getModel("textStyle"),u=s.getModel(["itemStyle","textStyle"]),c={pos:{left:o.get("left"),right:o.get("right"),top:o.get("top"),bottom:o.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:o.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,c,l),this._renderContent(e,c,a,s,l,u,r),of(i,c.pos,c.box)}},e.prototype._prepare=function(e,t,n){for(var r=e;r;r=r.parentNode){var o=Bs(r.getModel().get("name"),""),i=n.getTextRect(o),a=Math.max(i.width+2*dL,t.emptyItemWidth);t.totalWidth+=a+hL,t.renderList.push({node:r,text:o,width:a})}},e.prototype._renderContent=function(e,t,n,r,o,i,a){for(var s=0,l=t.emptyItemWidth,u=e.get(["breadcrumb","height"]),c=nf(t.pos,t.box),d=t.totalWidth,h=t.renderList,p=r.getModel("itemStyle").getItemStyle(),f=h.length-1;f>=0;f--){var g=h[f],m=g.node,v=g.width,y=g.text;d>c.width&&(d-=v-l,v=l,y=null);var b=new Hy({shape:{points:gL(s,0,v,u,f===h.length-1,0===f)},style:we(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new jc({style:yh(o,{text:y})}),textConfig:{position:"inside"},z2:1e4*Jc,onclick:Ne(a,m)});b.disableLabelAnimation=!0,b.getTextContent().ensureState("emphasis").style=yh(i,{text:y}),b.ensureState("emphasis").style=p,Wd(b,r.get("focus"),r.get("blurScope"),r.get("disabled")),this.group.add(b),mL(b,e,m),s+=v+hL}},e.prototype.remove=function(){this.group.removeAll()},e}();function gL(e,t,n,r,o,i){var a=[[o?e:e-pL,t],[e+n,t],[e+n,t+r],[o?e:e-pL,t+r]];return!i&&a.splice(2,0,[e+n+pL,t+r/2]),!o&&a.push([e,t+r/2]),a}function mL(e,t,n){Qc(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&&XN(n,t)}}var vL=fL,yL=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(e,t,n,r,o){return!this._elExistsMap[e.id]&&(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:n,delay:r,easing:o}),!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())},r=0,o=this._storage.length;r<o;r++){var i=this._storage[r];i.el.animateTo(i.target,{duration:i.duration,delay:i.delay,easing:i.easing,setToFinal:!0,done:n,aborted:n})}return this},e}();function bL(){return new yL}var _L=Da,xL=Oc,wL=3,OL="label",SL="upperLabel",AL=10*Jc,kL=2*Jc,CL=3*Jc,ML=_l([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),TL=function(e){var t=ML(e);return t.stroke=t.fill=t.lineWidth=null,t},PL=Xs(),IL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._state="ready",n._storage=$L(),n}return Q(t,e),t.prototype.render=function(e,t,n,r){var o=t.findComponents({mainType:"series",subType:"treemap",query:r});if(!(Se(o,e)<0)){this.seriesModel=e,this.api=n,this.ecModel=t;var i=["treemapZoomToNode","treemapRootToNode"],a=HN(r,i,e),s=r&&r.type,l=e.layoutInfo,u=!this._oldTree,c=this._storage,d="treemapRootToNode"===s&&a&&c?{rootNodeGroup:c.nodeGroup[a.node.getRawIndex()],direction:r.direction}:null,h=this._giveContainerGroup(l),p=e.get("animation"),f=this._doRender(h,e,d);!p||u||s&&"treemapZoomToNode"!==s&&"treemapRootToNode"!==s?f.renderFinally():this._doAnimation(h,f,e,d),this._resetController(n),this._renderBreadcrumb(e,n,a)}},t.prototype._giveContainerGroup=function(e){var t=this._containerGroup;return t||(t=this._containerGroup=new _L,this._initEvents(t),this.group.add(t)),t.x=e.x,t.y=e.y,t},t.prototype._doRender=function(e,t,n){var r=t.getData().tree,o=this._oldTree,i=$L(),a=$L(),s=this._storage,l=[];function u(e,r,o,u){return EL(t,a,s,n,i,l,e,r,o,u)}p(r.root?[r.root]:[],o&&o.root?[o.root]:[],e,r===o||!o,0);var c=f(s);if(this._oldTree=r,this._storage=a,this._controllerHost){var d=this.seriesModel.layoutInfo,h=r.root.getLayout();h.width===d.width&&h.height===d.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:i,willDeleteEls:c,renderFinally:g};function p(e,t,n,r,o){function i(e){return e.getId()}function a(i,a){var s=null!=i?e[i]:null,l=null!=a?t[a]:null,c=u(s,l,n,o);c&&p(s&&s.viewChildren||[],l&&l.viewChildren||[],c,r,o+1)}r?(t=e,Me(e,(function(e,t){!e.isRemoved()&&a(t,t)}))):new gS(t,e,i,i).add(a).update(a).remove(Ne(a,null)).execute()}function f(e){var t=$L();return e&&Me(e,(function(e,n){var r=t[n];Me(e,(function(e){e&&(r.push(e),PL(e).willDelete=!0)}))})),t}function g(){Me(c,(function(e){Me(e,(function(e){e.parent&&e.parent.remove(e)}))})),Me(l,(function(e){e.invisible=!0,e.dirty()}))}},t.prototype._doAnimation=function(e,t,n,r){var o=n.get("animationDurationUpdate"),i=n.get("animationEasing"),a=(ze(o)?0:o)||0,s=(ze(i)?null:i)||"cubicOut",l=bL();Me(t.willDeleteEls,(function(e,t){Me(e,(function(e,n){if(!e.invisible){var o,i=e.parent,u=PL(i);if(r&&"drillDown"===r.direction)o=i===r.rootNodeGroup?{shape:{x:0,y:0,width:u.nodeWidth,height:u.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var c=0,d=0;u.willDelete||(c=u.nodeWidth/2,d=u.nodeHeight/2),o="nodeGroup"===t?{x:c,y:d,style:{opacity:0}}:{shape:{x:c,y:d,width:0,height:0},style:{opacity:0}}}o&&l.add(e,o,a,0,s)}}))})),Me(this._storage,(function(e,n){Me(e,(function(e,r){var o=t.lastsForAnimation[n][r],i={};o&&(e instanceof Da?null!=o.oldX&&(i.x=e.x,i.y=e.y,e.x=o.oldX,e.y=o.oldY):(o.oldShape&&(i.shape=xe({},e.shape),e.setShape(o.oldShape)),o.fadein?(e.setStyle("opacity",0),i.style={opacity:1}):1!==e.style.opacity&&(i.style={opacity:1})),l.add(e,i,a,0,s))}))}),this),this._state="animating",l.finished(Re((function(){this._state="ready",t.renderFinally()}),this)).start()},t.prototype._resetController=function(e){var t=this._controller,n=this._controllerHost;n||(this._controllerHost={target:this.group},n=this._controllerHost),t||(t=this._controller=new vD(e.getZr()),t.enable(this.seriesModel.get("roam")),n.zoomLimit=this.seriesModel.get("scaleLimit"),n.zoom=this.seriesModel.get("zoom"),t.on("pan",Re(this._onPan,this)),t.on("zoom",Re(this._onZoom,this)));var r=new Fn(0,0,e.getWidth(),e.getHeight());t.setPointerChecker((function(e,t,n){return r.contain(t,n)}))},t.prototype._clearController=function(){var e=this._controller;this._controllerHost=null,e&&(e.dispose(),e=null)},t.prototype._onPan=function(e){if("animating"!==this._state&&(Math.abs(e.dx)>wL||Math.abs(e.dy)>wL)){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,r=e.scale;if("animating"!==this._state){var o=this.seriesModel.getData().tree.root;if(!o)return;var i=o.getLayout();if(!i)return;var a=new Fn(i.x,i.y,i.width,i.height),s=null,l=this._controllerHost;s=l.zoomLimit;var u=l.zoom=l.zoom||1;if(u*=r,s){var c=s.min||0,d=s.max||1/0;u=Math.max(Math.min(d,u),c)}var h=u/l.zoom;l.zoom=u;var p=this.seriesModel.layoutInfo;t-=p.x,n-=p.y;var f=On();Cn(f,f,[-t,-n]),Tn(f,f,[h,h]),Cn(f,f,[t,n]),a.applyTransform(f),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x,y:a.y,width:a.width,height:a.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 r=t.findTarget(e.offsetX,e.offsetY);if(r){var o=r.node;if(o.getLayout().isLeafRoot)t._rootToNode(r);else if("zoomToNode"===n)t._zoomToNode(r);else if("link"===n){var i=o.hostTree.data.getItemModel(o.dataIndex),a=i.get("link",!0),s=i.get("target",!0)||"blank";a&&Yp(a,s)}}}}}),this)},t.prototype._renderBreadcrumb=function(e,t,n){var r=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 vL(this.group))).render(e,t,n.node,(function(t){"animating"!==r._state&&(GN(e.getViewRoot(),t)?r._rootToNode({node:t}):r._zoomToNode({node:t}))}))},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=$L(),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,r=this.seriesModel.getViewRoot();return r.eachNode({attr:"viewChildren",order:"preorder"},(function(r){var o=this._storage.background[r.getRawIndex()];if(o){var i=o.transformCoordToLocal(e,t),a=o.shape;if(!(a.x<=i[0]&&i[0]<=a.x+a.width&&a.y<=i[1]&&i[1]<=a.y+a.height))return!1;n={node:r,offsetX:i[0],offsetY:i[1]}}}),this),n},t.type="treemap",t}(c_);function $L(){return{nodeGroup:[],background:[],content:[]}}function EL(e,t,n,r,o,i,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,m=c.invisible,v=a.getRawIndex(),y=s&&s.getRawIndex(),b=a.viewChildren,_=c.upperHeight,x=b&&b.length,w=h.getModel("itemStyle"),O=h.getModel(["emphasis","itemStyle"]),S=h.getModel(["blur","itemStyle"]),A=h.getModel(["select","itemStyle"]),k=w.get("borderRadius")||0,C=B("nodeGroup",_L);if(C){if(l.add(C),C.x=c.x||0,C.y=c.y||0,C.markRedraw(),PL(C).nodeWidth=p,PL(C).nodeHeight=f,c.isAboveViewRoot)return C;var M=B("background",xL,u,kL);M&&R(C,M,x&&c.upperLabelHeight);var T=h.getModel("emphasis"),P=T.get("focus"),I=T.get("blurScope"),$=T.get("disabled"),E="ancestor"===P?a.getAncestorsIndices():"descendant"===P?a.getDescendantIndices():P;if(x)Yd(C)&&Ud(C,!1),M&&(Ud(M,!$),d.setItemGraphicEl(a.dataIndex,M),Hd(M,E,I));else{var D=B("content",xL,u,CL);D&&N(C,D),M.disableMorphing=!0,M&&Yd(M)&&Ud(M,!1),Ud(C,!$),d.setItemGraphicEl(a.dataIndex,C),Hd(C,E,I)}return C}}}function R(t,n,r){var o=Qc(n);if(o.dataIndex=a.dataIndex,o.seriesIndex=e.seriesIndex,n.setShape({x:0,y:0,width:p,height:f,r:k}),m)L(n);else{n.invisible=!1;var i=a.getVisual("style"),s=i.stroke,l=TL(w);l.fill=s;var u=ML(O);u.fill=O.get("borderColor");var c=ML(S);c.fill=S.get("borderColor");var d=ML(A);if(d.fill=A.get("borderColor"),r){var h=p-2*g;z(n,s,i.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,wd(n)}t.add(n)}function N(t,n){var r=Qc(n);r.dataIndex=a.dataIndex,r.seriesIndex=e.seriesIndex;var o=Math.max(p-2*g,0),i=Math.max(f-2*g,0);if(n.culling=!0,n.setShape({x:g,y:g,width:o,height:i,r:k}),m)L(n);else{n.invisible=!1;var s=a.getVisual("style"),l=s.fill,u=TL(w);u.fill=l,u.decal=s.decal;var c=ML(O),d=ML(S),h=ML(A);z(n,l,s.opacity,null),n.setStyle(u),n.ensureState("emphasis").style=c,n.ensureState("blur").style=d,n.ensureState("select").style=h,wd(n)}t.add(n)}function L(e){!e.invisible&&i.push(e)}function z(t,n,r,o){var i=h.getModel(o?SL:OL),s=Bs(h.get("name"),null),l=i.getShallow("show");mh(t,vh(h,o?SL:OL),{defaultText:l?s:null,inheritColor:n,defaultOpacity:r,labelFetcher:e,labelDataIndex:a.dataIndex});var u=t.getTextContent();if(u){var d=u.style,p=et(d.padding||0);o&&(t.setTextConfig({layoutRect:o}),u.disableLabelLayout=!0),u.beforeUpdate=function(){var e=Math.max((o?o.width:t.shape.width)-p[1]-p[3],0),n=Math.max((o?o.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",V(d,o,c);var f=u.getState("emphasis");V(f?f.style:null,o,c)}}function V(t,n,r){var o=t?t.text:null;if(!n&&r.isLeafRoot&&null!=o){var i=e.get("drillDownIcon",!0);t.text=i?i+" "+o:o}}function B(e,r,i,a){var s=null!=y&&n[e][y],l=o[e];return s?(n[e][y]=null,j(l,s)):m||(s=new r,s instanceof Jl&&(s.z2=DL(i,a)),Q(l,s)),t[e][v]=s}function j(e,t){var n=e[v]={};t instanceof _L?(n.oldX=t.x,n.oldY=t.y):n.oldShape=xe({},t.shape)}function Q(e,t){var n=e[v]={},i=a.parentNode,s=t instanceof Da;if(i&&(!r||"drillDown"===r.direction)){var l=0,u=0,c=o.background[i.getRawIndex()];!r&&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 DL(e,t){return e*AL+t}var RL=IL,NL=Me,LL=Qe,zL=-1,VL=function(){function e(t){var n=t.mappingMethod,r=t.type,o=this.option=ye(t);this.type=r,this.mappingMethod=n,this._normalizeData=qL[n];var i=e.visualHandlers[r];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[n],"piecewise"===n?(QL(o),BL(o)):"category"===n?o.categories?jL(o):QL(o,!0):(tt("linear"!==n||o.dataExtent),QL(o))}return e.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},e.prototype.getNormalizer=function(){return Re(this._normalizeData,this)},e.listVisualTypes=function(){return Ee(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(e,t,n){Qe(e)?Me(e,t,n):t.call(n,e)},e.mapVisual=function(t,n,r){var o,i=Le(t)?[]:Qe(t)?{}:(o=!0,null);return e.eachVisual(t,(function(e,t){var a=n.call(r,e,t);o?i=a:i[t]=a})),i},e.retrieveVisuals=function(t){var n,r={};return t&&NL(e.visualHandlers,(function(e,o){t.hasOwnProperty(o)&&(r[o]=t[o],n=!0)})),n?r:null},e.prepareVisualTypes=function(e){if(Le(e))e=e.slice();else{if(!LL(e))return[];var t=[];NL(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 r,o=1/0,i=0,a=t.length;i<a;i++){var s=t[i].value;if(null!=s){if(s===e||Ve(s)&&s===e+"")return i;n&&d(s,i)}}for(i=0,a=t.length;i<a;i++){var l=t[i],u=l.interval,c=l.close;if(u){if(u[0]===-1/0){if(KL(c[1],e,u[1]))return i}else if(u[1]===1/0){if(KL(c[0],u[0],e))return i}else if(KL(c[0],u[0],e)&&KL(c[1],e,u[1]))return i;n&&d(u[0],i),n&&d(u[1],i)}}if(n)return e===1/0?t.length-1:e===-1/0?0:r;function d(t,n){var i=Math.abs(t-e);i<o&&(o=i,r=n)}},e.visualHandlers={color:{applyVisual:HL("color"),getColorMapper:function(){var e=this.option;return Re("category"===e.mappingMethod?function(e,t){return!t&&(e=this._normalizeData(e)),ZL.call(this,e)}:function(t,n,r){var o=!!r;return!n&&(t=this._normalizeData(t)),r=wo(t,e.parsedVisual,r),o?r:Mo(r,"rgba")},this)},_normalizedToVisual:{linear:function(e){return Mo(wo(e,this.option.parsedVisual),"rgba")},category:ZL,piecewise:function(e,t){var n=UL.call(this,t);return null==n&&(n=Mo(wo(e,this.option.parsedVisual),"rgba")),n},fixed:GL}},colorHue:FL((function(e,t){return ko(e,t)})),colorSaturation:FL((function(e,t){return ko(e,null,t)})),colorLightness:FL((function(e,t){return ko(e,null,null,t)})),colorAlpha:FL((function(e,t){return Co(e,t)})),decal:{applyVisual:HL("decal"),_normalizedToVisual:{linear:null,category:ZL,piecewise:null,fixed:null}},opacity:{applyVisual:HL("opacity"),_normalizedToVisual:XL([0,1])},liftZ:{applyVisual:HL("liftZ"),_normalizedToVisual:{linear:GL,category:GL,piecewise:GL,fixed:GL}},symbol:{applyVisual:function(e,t,n){var r=this.mapValueToVisual(e);n("symbol",r)},_normalizedToVisual:{linear:WL,category:ZL,piecewise:function(e,t){var n=UL.call(this,t);return null==n&&(n=WL.call(this,e)),n},fixed:GL}},symbolSize:{applyVisual:HL("symbolSize"),_normalizedToVisual:XL([0,1])}},e}();function BL(e){var t=e.pieceList;e.hasSpecialVisual=!1,Me(t,(function(t,n){t.originIndex=n,null!=t.visual&&(e.hasSpecialVisual=!0)}))}function jL(e){var t=e.categories,n=e.categoryMap={},r=e.visual;if(NL(t,(function(e,t){n[e]=t})),!Le(r)){var o=[];Qe(r)?NL(r,(function(e,t){var r=n[t];o[null!=r?r:zL]=e})):o[zL]=r,r=YL(e,o)}for(var i=t.length-1;i>=0;i--)null==r[i]&&(delete n[t[i]],t.pop())}function QL(e,t){var n=e.visual,r=[];Qe(n)?NL(n,(function(e){r.push(e)})):null!=n&&r.push(n);var o={color:1,symbol:1};t||1!==r.length||o.hasOwnProperty(e.type)||(r[1]=r[0]),YL(e,r)}function FL(e){return{applyVisual:function(t,n,r){var o=this.mapValueToVisual(t);r("color",e(n("color"),o))},_normalizedToVisual:XL([0,1])}}function WL(e){var t=this.option.visual;return t[Math.round(Ka(e,[0,1],[0,t.length-1],!0))]||{}}function HL(e){return function(t,n,r){r(e,this.mapValueToVisual(t))}}function ZL(e){var t=this.option.visual;return t[this.option.loop&&e!==zL?e%t.length:e]}function GL(){return this.option.visual[0]}function XL(e){return{linear:function(t){return Ka(t,e,this.option.visual,!0)},category:ZL,piecewise:function(t,n){var r=UL.call(this,n);return null==r&&(r=Ka(t,e,this.option.visual,!0)),r},fixed:GL}}function UL(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var r=VL.findPieceIndex(e,n),o=n[r];if(o&&o.visual)return o.visual[this.type]}}function YL(e,t){return e.visual=t,"color"===e.type&&(e.parsedVisual=Te(t,(function(e){var t=vo(e);return t||[0,0,0,1]}))),t}var qL={linear:function(e){return Ka(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=VL.findPieceIndex(e,t,!0);if(null!=n)return Ka(n,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return null==t?zL:t},fixed:gt};function KL(e,t,n){return e?t<=n:t<n}var JL=VL,ez="itemStyle",tz=Xs(),nz={seriesType:"treemap",reset:function(e){var t=e.getData().tree,n=t.root;n.isRemoved()||rz(n,{},e.getViewRoot().getAncestors(),e)}};function rz(e,t,n,r){var o=e.getModel(),i=e.getLayout(),a=e.hostTree.data;if(i&&!i.invisible&&i.isInView){var s,l=o.getModel(ez),u=oz(l,t,r),c=a.ensureUniqueItemVisual(e.dataIndex,"style"),d=l.get("borderColor"),h=l.get("borderColorSaturation");null!=h&&(s=iz(u),d=az(h,s)),c.stroke=d;var p=e.viewChildren;if(p&&p.length){var f=lz(e,o,i,l,u,p);Me(p,(function(e,t){if(e.depth>=n.length||e===n[e.depth]){var i=cz(o,u,e,t,f,r);rz(e,i,n,r)}}))}else s=iz(u),c.fill=s}}function oz(e,t,n){var r=xe({},t),o=n.designatedVisualItemStyle;return Me(["color","colorAlpha","colorSaturation"],(function(n){o[n]=t[n];var i=e.get(n);o[n]=null,null!=i&&(r[n]=i)})),r}function iz(e){var t=sz(e,"color");if(t){var n=sz(e,"colorAlpha"),r=sz(e,"colorSaturation");return r&&(t=ko(t,null,null,r)),n&&(t=Co(t,n)),t}}function az(e,t){return null!=t?ko(t,null,null,e):null}function sz(e,t){var n=e[t];if(null!=n&&"none"!==n)return n}function lz(e,t,n,r,o,i){if(i&&i.length){var a=uz(t,"color")||null!=o.color&&"none"!==o.color&&(uz(t,"colorAlpha")||uz(t,"colorSaturation"));if(a){var s=t.get("visualMin"),l=t.get("visualMax"),u=n.dataExtent.slice();null!=s&&s<u[0]&&(u[0]=s),null!=l&&l>u[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 JL(d);return tz(h).drColorMappingBy=c,h}}}function uz(e,t){var n=e.get(t);return Le(n)&&n.length?{name:t,range:n}:null}function cz(e,t,n,r,o,i){var a=xe({},t);if(o){var s=o.type,l="color"===s&&tz(o).drColorMappingBy,u="index"===l?r:"id"===l?i.mapIdToIndex(n.getId()):n.getValue(e.get("visualDimension"));a[s]=o.mapValueToVisual(u)}return a}var dz=Math.max,hz=Math.min,pz=Ye,fz=Me,gz=["itemStyle","borderWidth"],mz=["itemStyle","gapWidth"],vz=["upperLabel","show"],yz=["upperLabel","height"],bz={seriesType:"treemap",reset:function(e,t,n,r){var o=n.getWidth(),i=n.getHeight(),a=e.option,s=rf(e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=a.size||[],u=Ja(pz(s.width,l[0]),o),c=Ja(pz(s.height,l[1]),i),d=r&&r.type,h=["treemapZoomToNode","treemapRootToNode"],p=HN(r,h,e),f="treemapRender"===d||"treemapMove"===d?r.rootRect:null,g=e.getViewRoot(),m=ZN(g);if("treemapMove"!==d){var v="treemapZoomToNode"===d?Cz(e,p,g,u,c):f?[f.width,f.height]:[u,c],y=a.sort;y&&"asc"!==y&&"desc"!==y&&(y="desc");var b={squareRatio:a.squareRatio,sort:y,leafDepth:a.leafDepth};g.hostTree.clearLayouts();var _={x:0,y:0,width:v[0],height:v[1],area:v[0]*v[1]};g.setLayout(_),_z(g,b,!1,0),_=g.getLayout(),fz(m,(function(e,t){var n=(m[t+1]||g).getValue();e.setLayout(xe({dataExtent:[n,n],borderWidth:0,upperHeight:0},_))}))}var x=e.getData().tree.root;x.setLayout(Mz(s,f,p),!0),e.setLayoutInfo(s),Tz(x,new Fn(-s.x,-s.y,o,i),m,g,0)}};function _z(e,t,n,r){var o,i;if(!e.isRemoved()){var a=e.getLayout();o=a.width,i=a.height;var s=e.getModel(),l=s.get(gz),u=s.get(mz)/2,c=Pz(s),d=Math.max(l,c),h=l-u,p=d-u;e.setLayout({borderWidth:l,upperHeight:d,upperLabelHeight:c},!0),o=dz(o-2*h,0),i=dz(i-h-p,0);var f=o*i,g=xz(e,s,f,t,n,r);if(g.length){var m={x:h,y:p,width:o,height:i},v=hz(o,i),y=1/0,b=[];b.area=0;for(var _=0,x=g.length;_<x;){var w=g[_];b.push(w),b.area+=w.getLayout().area;var O=Az(b,v,t.squareRatio);O<=y?(_++,y=O):(b.area-=b.pop().getLayout().area,kz(b,v,m,u,!1),v=hz(m.width,m.height),b.length=b.area=0,y=1/0)}if(b.length&&kz(b,v,m,u,!0),!n){var S=s.get("childrenVisibleMin");null!=S&&f<S&&(n=!0)}for(_=0,x=g.length;_<x;_++)_z(g[_],t,n,r+1)}}}function xz(e,t,n,r,o,i){var a=e.children||[],s=r.sort;"asc"!==s&&"desc"!==s&&(s=null);var l=null!=r.leafDepth&&r.leafDepth<=i;if(o&&!l)return e.viewChildren=[];a=Ie(a,(function(e){return!e.isRemoved()})),Oz(a,s);var u=Sz(t,a,s);if(0===u.sum)return e.viewChildren=[];if(u.sum=wz(t,n,u.sum,s,a),0===u.sum)return e.viewChildren=[];for(var c=0,d=a.length;c<d;c++){var h=a[c].getValue()/u.sum*n;a[c].setLayout({area:h})}return l&&(a.length&&e.setLayout({isLeafRoot:!0},!0),a.length=0),e.viewChildren=a,e.setLayout({dataExtent:u.dataExtent},!0),a}function wz(e,t,n,r,o){if(!r)return n;for(var i=e.get("visibleMin"),a=o.length,s=a,l=a-1;l>=0;l--){var u=o["asc"===r?a-l-1:l].getValue();u/n*t<i&&(s=l,n-=u)}return"asc"===r?o.splice(0,a-s):o.splice(s,a-s),n}function Oz(e,t){return t&&e.sort((function(e,n){var r="asc"===t?e.getValue()-n.getValue():n.getValue()-e.getValue();return 0===r?"asc"===t?e.dataIndex-n.dataIndex:n.dataIndex-e.dataIndex:r})),e}function Sz(e,t,n){for(var r=0,o=0,i=t.length;o<i;o++)r+=t[o].getValue();var a,s=e.get("visualDimension");return t&&t.length?"value"===s&&n?(a=[t[t.length-1].getValue(),t[0].getValue()],"asc"===n&&a.reverse()):(a=[1/0,-1/0],fz(t,(function(e){var t=e.getValue(s);t<a[0]&&(a[0]=t),t>a[1]&&(a[1]=t)}))):a=[NaN,NaN],{sum:r,dataExtent:a}}function Az(e,t,n){for(var r=0,o=1/0,i=0,a=void 0,s=e.length;i<s;i++)a=e[i].getLayout().area,a&&(a<o&&(o=a),a>r&&(r=a));var l=e.area*e.area,u=t*t*n;return l?dz(u*r/l,l/(u*o)):1/0}function kz(e,t,n,r,o){var i=t===n.width?0:1,a=1-i,s=["x","y"],l=["width","height"],u=n[s[i]],c=t?e.area/t:0;(o||c>n[l[a]])&&(c=n[l[a]]);for(var d=0,h=e.length;d<h;d++){var p=e[d],f={},g=c?p.getLayout().area/c:0,m=f[l[a]]=dz(c-2*r,0),v=n[s[i]]+n[l[i]]-u,y=d===h-1||v<g?v:g,b=f[l[i]]=dz(y-2*r,0);f[s[a]]=n[s[a]]+hz(r,m/2),f[s[i]]=u+hz(r,b/2),u+=y,p.setLayout(f,!0)}n[s[a]]+=c,n[l[a]]-=c}function Cz(e,t,n,r,o){var i,a=(t||{}).node,s=[r,o];if(!a||a===n)return s;var l=r*o,u=l*e.option.zoomToNodeRatio;while(i=a.parentNode){for(var c=0,d=i.children,h=0,p=d.length;h<p;h++)c+=d[h].getValue();var f=a.getValue();if(0===f)return s;u*=c/f;var g=i.getModel(),m=g.get(gz),v=Math.max(m,Pz(g));u+=4*m*m+(3*m+v)*Math.pow(u,.5),u>ls&&(u=ls),a=i}u<l&&(u=l);var y=Math.pow(u/l,.5);return[r*y,o*y]}function Mz(e,t,n){if(t)return{x:t.x,y:t.y};var r={x:0,y:0};if(!n)return r;var o=n.node,i=o.getLayout();if(!i)return r;var a=[i.width/2,i.height/2],s=o;while(s){var l=s.getLayout();a[0]+=l.x,a[1]+=l.y,s=s.parentNode}return{x:e.width/2-a[0],y:e.height/2-a[1]}}function Tz(e,t,n,r,o){var i=e.getLayout(),a=n[o],s=a&&a===e;if(!(a&&!s||o===n.length&&e!==r)){e.setLayout({isInView:!0,invisible:!s&&!t.intersect(i),isAboveViewRoot:s},!0);var l=new Fn(t.x-i.x,t.y-i.y,t.width,t.height);fz(e.viewChildren||[],(function(e){Tz(e,l,n,r,o+1)}))}}function Pz(e){return e.get(vz)?e.get(yz):0}function Iz(e){e.registerSeriesModel(cL),e.registerChartView(RL),e.registerVisual(nz),e.registerLayout(bz),iL(e)}function $z(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.eachSeriesByType("graph",(function(e){var n=e.getCategoriesData(),r=e.getGraph(),o=r.data,i=n.mapArray(n.getName);o.filterSelf((function(e){var n=o.getItemModel(e),r=n.getShallow("category");if(null!=r){je(r)&&(r=i[r]);for(var a=0;a<t.length;a++)if(!t[a].isSelected(r))return!1}return!0}))}))}function Ez(e){var t={};e.eachSeriesByType("graph",(function(e){var n=e.getCategoriesData(),r=e.getData(),o={};n.each((function(r){var i=n.getName(r);o["ec-"+i]=r;var a=n.getItemModel(r),s=a.getModel("itemStyle").getItemStyle();s.fill||(s.fill=e.getColorFromPalette(i,t)),n.setItemVisual(r,"style",s);for(var l=["symbol","symbolSize","symbolKeepAspect"],u=0;u<l.length;u++){var c=a.getShallow(l[u],!0);null!=c&&n.setItemVisual(r,l[u],c)}})),n.count()&&r.each((function(e){var t=r.getItemModel(e),i=t.getShallow("category");if(null!=i){Ve(i)&&(i=o["ec-"+i]);var a=n.getItemVisual(i,"style"),s=r.ensureUniqueItemVisual(e,"style");xe(s,a);for(var l=["symbol","symbolSize","symbolKeepAspect"],u=0;u<l.length;u++)r.setItemVisual(e,l[u],n.getItemVisual(i,l[u]))}}))}))}function Dz(e){return e instanceof Array||(e=[e,e]),e}function Rz(e){e.eachSeriesByType("graph",(function(e){var t=e.getGraph(),n=e.getEdgeData(),r=Dz(e.get("edgeSymbol")),o=Dz(e.get("edgeSymbolSize"));n.setVisual("fromSymbol",r&&r[0]),n.setVisual("toSymbol",r&&r[1]),n.setVisual("fromSymbolSize",o&&o[0]),n.setVisual("toSymbolSize",o&&o[1]),n.setVisual("style",e.getModel("lineStyle").getLineStyle()),n.each((function(e){var r=n.getItemModel(e),o=t.getEdgeByIndex(e),i=Dz(r.getShallow("symbol",!0)),a=Dz(r.getShallow("symbolSize",!0)),s=r.getModel("lineStyle").getLineStyle(),l=n.ensureUniqueItemVisual(e,"style");switch(xe(l,s),l.stroke){case"source":var u=o.node1.getVisual("style");l.stroke=u&&u.fill;break;case"target":u=o.node2.getVisual("style");l.stroke=u&&u.fill;break}i[0]&&o.setVisual("fromSymbol",i[0]),i[1]&&o.setVisual("toSymbol",i[1]),a[0]&&o.setVisual("fromSymbolSize",a[0]),a[1]&&o.setVisual("toSymbolSize",a[1])}))}))}var Nz="--\x3e",Lz=function(e){return e.get("autoCurveness")||null},zz=function(e,t){var n=Lz(e),r=20,o=[];if(je(n))r=n;else if(Le(n))return void(e.__curvenessList=n);t>r&&(r=t);var i=r%2?r+2:r+3;o=[];for(var a=0;a<i;a++)o.push((a%2?a+1:a)/10*(a%2?-1:1));e.__curvenessList=o},Vz=function(e,t,n){var r=[e.id,e.dataIndex].join("."),o=[t.id,t.dataIndex].join(".");return[n.uid,r,o].join(Nz)},Bz=function(e){var t=e.split(Nz);return[t[0],t[2],t[1]].join(Nz)},jz=function(e,t){var n=Vz(e.node1,e.node2,t);return t.__edgeMap[n]},Qz=function(e,t){var n=Fz(Vz(e.node1,e.node2,t),t),r=Fz(Vz(e.node2,e.node1,t),t);return n+r},Fz=function(e,t){var n=t.__edgeMap;return n[e]?n[e].length:0};function Wz(e){Lz(e)&&(e.__curvenessList=[],e.__edgeMap={},zz(e))}function Hz(e,t,n,r){if(Lz(n)){var o=Vz(e,t,n),i=n.__edgeMap,a=i[Bz(o)];i[o]&&!a?i[o].isForward=!0:a&&i[o]&&(a.isForward=!0,i[o].isForward=!1),i[o]=i[o]||[],i[o].push(r)}}function Zz(e,t,n,r){var o=Lz(t),i=Le(o);if(!o)return null;var a=jz(e,t);if(!a)return null;for(var s=-1,l=0;l<a.length;l++)if(a[l]===n){s=l;break}var u=Qz(e,t);zz(t,u),e.lineStyle=e.lineStyle||{};var c=Vz(e.node1,e.node2,t),d=t.__curvenessList,h=i||u%2?0:1;if(a.isForward)return d[h+s];var p=Bz(c),f=Fz(p,t),g=d[s+f+h];return r?i?o&&0===o[0]?(f+h)%2?g:-g:((f%2?0:1)+h)%2?g:-g:(f+h)%2?g:-g:d[s+f+h]}function Gz(e){var t=e.coordinateSystem;if(!t||"view"===t.type){var n=e.getGraph();n.eachNode((function(e){var t=e.getModel();e.setLayout([+t.get("x"),+t.get("y")])})),Xz(n,e)}}function Xz(e,t){e.eachEdge((function(e,n){var r=Ke(e.getModel().get(["lineStyle","curveness"]),-Zz(e,t,n,!0),0),o=bt(e.node1.getLayout()),i=bt(e.node2.getLayout()),a=[o,i];+r&&a.push([(o[0]+i[0])/2-(o[1]-i[1])*r,(o[1]+i[1])/2-(i[0]-o[0])*r]),e.setLayout(a)}))}function Uz(e,t){e.eachSeriesByType("graph",(function(e){var t=e.get("layout"),n=e.coordinateSystem;if(n&&"view"!==n.type){var r=e.getData(),o=[];Me(n.dimensions,(function(e){o=o.concat(r.mapDimensionsAll(e))}));for(var i=0;i<r.count();i++){for(var a=[],s=!1,l=0;l<o.length;l++){var u=r.get(o[l],i);isNaN(u)||(s=!0),a.push(u)}s?r.setItemLayout(i,n.dataToPoint(a)):r.setItemLayout(i,[NaN,NaN])}Xz(r.graph,e)}else t&&"none"!==t||Gz(e)}))}function Yz(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var n=e.option.nodeScaleRatio,r=t.scaleX,o=t.getZoom(),i=(o-1)*n+1;return i/r}function qz(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var Kz=Math.PI,Jz=[];function eV(e,t,n,r){var o=e.coordinateSystem;if(!o||"view"===o.type){var i=o.getBoundingRect(),a=e.getData(),s=a.graph,l=i.width/2+i.x,u=i.height/2+i.y,c=Math.min(i.width,i.height)/2,d=a.count();if(a.setLayout({cx:l,cy:u}),d){if(n){var h=o.pointToData(r),p=h[0],f=h[1],g=[p-l,f-u];$t(g,g),It(g,g,c),n.setLayout([l+g[0],u+g[1]],!0);var m=e.get(["circular","rotateLabel"]);nV(n,m,l,u)}tV[t](e,s,a,c,l,u,d),s.eachEdge((function(t,n){var r,o=Ke(t.getModel().get(["lineStyle","curveness"]),Zz(t,e,n),0),i=bt(t.node1.getLayout()),a=bt(t.node2.getLayout()),s=(i[0]+a[0])/2,c=(i[1]+a[1])/2;+o&&(o*=3,r=[l*o+s*(1-o),u*o+c*(1-o)]),t.setLayout([i,a,r])}))}}}var tV={value:function(e,t,n,r,o,i,a){var s=0,l=n.getSum("value"),u=2*Math.PI/(l||a);t.eachNode((function(e){var t=e.getValue("value"),n=u*(l?t:1)/2;s+=n,e.setLayout([r*Math.cos(s)+o,r*Math.sin(s)+i]),s+=n}))},symbolSize:function(e,t,n,r,o,i,a){var s=0;Jz.length=a;var l=Yz(e);t.eachNode((function(e){var t=qz(e);isNaN(t)&&(t=2),t<0&&(t=0),t*=l;var n=Math.asin(t/2/r);isNaN(n)&&(n=Kz/2),Jz[e.dataIndex]=n,s+=2*n}));var u=(2*Kz-s)/a/2,c=0;t.eachNode((function(e){var t=u+Jz[e.dataIndex];c+=t,(!e.getLayout()||!e.getLayout().fixed)&&e.setLayout([r*Math.cos(c)+o,r*Math.sin(c)+i]),c+=t}))}};function nV(e,t,n,r){var o=e.getGraphicEl();if(o){var i=e.getModel(),a=i.get(["label","rotate"])||0,s=o.getSymbolPath();if(t){var l=e.getLayout(),u=Math.atan2(l[1]-r,l[0]-n);u<0&&(u=2*Math.PI+u);var c=l[0]<n;c&&(u-=Math.PI);var d=c?"left":"right";s.setTextConfig({rotation:-u,position:d,origin:"center"});var h=s.ensureState("emphasis");xe(h.textConfig||(h.textConfig={}),{position:d})}else s.setTextConfig({rotation:a*=Math.PI/180})}}function rV(e){e.eachSeriesByType("graph",(function(e){"circular"===e.get("layout")&&eV(e,"symbolSize")}))}var oV=wt;function iV(e,t,n){for(var r=e,o=t,i=n.rect,a=i.width,s=i.height,l=[i.x+a/2,i.y+s/2],u=null==n.gravity?.1:n.gravity,c=0;c<r.length;c++){var d=r[c];d.p||(d.p=vt(a*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),d.pp=bt(d.p),d.edges=null}var h,p,f=null==n.friction?.6:n.friction,g=f;return{warmUp:function(){g=.8*f},setFixed:function(e){r[e].fixed=!0},setUnfixed:function(e){r[e].fixed=!1},beforeStep:function(e){h=e},afterStep:function(e){p=e},step:function(e){h&&h(r,o);for(var t=[],n=r.length,i=0;i<o.length;i++){var a=o[i];if(!a.ignoreForceLayout){var s=a.n1,c=a.n2;Ot(t,c.p,s.p);var d=St(t)-a.d,f=c.w/(s.w+c.w);isNaN(f)&&(f=0),$t(t,t),!s.fixed&&oV(s.p,s.p,t,f*d*g),!c.fixed&&oV(c.p,c.p,t,-(1-f)*d*g)}}for(i=0;i<n;i++){var m=r[i];m.fixed||(Ot(t,l,m.p),oV(m.p,m.p,t,u*g))}for(i=0;i<n;i++){s=r[i];for(var v=i+1;v<n;v++){c=r[v];Ot(t,c.p,s.p);d=St(t);0===d&&(_t(t,Math.random()-.5,Math.random()-.5),d=1);var y=(s.rep+c.rep)/d/d;!s.fixed&&oV(s.pp,s.pp,t,y),!c.fixed&&oV(c.pp,c.pp,t,-y)}}var b=[];for(i=0;i<n;i++){m=r[i];m.fixed||(Ot(b,m.p,m.pp),oV(m.p,m.p,b,g),yt(m.pp,m.p))}g*=.992;var _=g<.01;p&&p(r,o,_),e&&e(_)}}}function aV(e){e.eachSeriesByType("graph",(function(e){var t=e.coordinateSystem;if(!t||"view"===t.type)if("force"===e.get("layout")){var n=e.preservedPoints||{},r=e.getGraph(),o=r.data,i=r.edgeData,a=e.getModel("force"),s=a.get("initLayout");e.preservedPoints?o.each((function(e){var t=o.getId(e);o.setItemLayout(e,n[t]||[NaN,NaN])})):s&&"none"!==s?"circular"===s&&eV(e,"value"):Gz(e);var l=o.getDataExtent("value"),u=i.getDataExtent("value"),c=a.get("repulsion"),d=a.get("edgeLength"),h=Le(c)?c:[c,c],p=Le(d)?d:[d,d];p=[p[1],p[0]];var f=o.mapArray("value",(function(e,t){var n=o.getItemLayout(t),r=Ka(e,l,h);return isNaN(r)&&(r=(h[0]+h[1])/2),{w:r,rep:r,fixed:o.getItemModel(t).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}})),g=i.mapArray("value",(function(t,n){var o=r.getEdgeByIndex(n),i=Ka(t,u,p);isNaN(i)&&(i=(p[0]+p[1])/2);var a=o.getModel(),s=Ke(o.getModel().get(["lineStyle","curveness"]),-Zz(o,e,n,!0),0);return{n1:f[o.node1.dataIndex],n2:f[o.node2.dataIndex],d:i,curveness:s,ignoreForceLayout:a.get("ignoreForceLayout")}})),m=t.getBoundingRect(),v=iV(f,g,{rect:m,gravity:a.get("gravity"),friction:a.get("friction")});v.beforeStep((function(e,t){for(var n=0,o=e.length;n<o;n++)e[n].fixed&&yt(e[n].p,r.getNodeByIndex(n).getLayout())})),v.afterStep((function(e,t,i){for(var a=0,s=e.length;a<s;a++)e[a].fixed||r.getNodeByIndex(a).setLayout(e[a].p),n[o.getId(a)]=e[a].p;for(a=0,s=t.length;a<s;a++){var l=t[a],u=r.getEdgeByIndex(a),c=l.n1.p,d=l.n2.p,h=u.getLayout();h=h?h.slice():[],h[0]=h[0]||[],h[1]=h[1]||[],yt(h[0],c),yt(h[1],d),+l.curveness&&(h[2]=[(c[0]+d[0])/2-(c[1]-d[1])*l.curveness,(c[1]+d[1])/2-(d[0]-c[0])*l.curveness]),u.setLayout(h)}})),e.forceLayout=v,e.preservedPoints=n,v.step()}else e.forceLayout=null}))}function sV(e,t,n){var r=xe(e.getBoxLayoutParams(),{aspect:n});return rf(r,{width:t.getWidth(),height:t.getHeight()})}function lV(e,t){var n=[];return e.eachSeriesByType("graph",(function(e){var r=e.get("coordinateSystem");if(!r||"view"===r){var o=e.getData(),i=o.mapArray((function(e){var t=o.getItemModel(e);return[+t.get("x"),+t.get("y")]})),a=[],s=[];lu(i,a,s),s[0]-a[0]===0&&(s[0]+=1,a[0]-=1),s[1]-a[1]===0&&(s[1]+=1,a[1]-=1);var l=(s[0]-a[0])/(s[1]-a[1]),u=sV(e,t,l);isNaN(l)&&(a=[u.x,u.y],s=[u.x+u.width,u.y+u.height]);var c=s[0]-a[0],d=s[1]-a[1],h=u.width,p=u.height,f=e.coordinateSystem=new BR;f.zoomLimit=e.get("scaleLimit"),f.setBoundingRect(a[0],a[1],c,d),f.setViewRect(u.x,u.y,h,p),f.setCenter(e.get("center"),t),f.setZoom(e.get("zoom")),n.push(f)}})),n}var uV=Ky.prototype,cV=rb.prototype,dV=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}();(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}Q(t,e)})(dV);function hV(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var pV=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-line",n}return Q(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new dV},t.prototype.buildPath=function(e,t){hV(t)?uV.buildPath.call(this,e,t):cV.buildPath.call(this,e,t)},t.prototype.pointAt=function(e){return hV(this.shape)?uV.pointAt.call(this,e):cV.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var t=this.shape,n=hV(t)?[t.x2-t.x1,t.y2-t.y1]:cV.tangentAt.call(this,e);return $t(n,n)},t}(ac),fV=pV,gV=["fromSymbol","toSymbol"];function mV(e){return"_"+e+"Type"}function vV(e,t,n){var r=t.getItemVisual(n,e);if(!r||"none"===r)return r;var o=t.getItemVisual(n,e+"Size"),i=t.getItemVisual(n,e+"Rotate"),a=t.getItemVisual(n,e+"Offset"),s=t.getItemVisual(n,e+"KeepAspect"),l=Ax(o),u=kx(a||0,l);return r+l+u+(i||"")+(s||"")}function yV(e,t,n){var r=t.getItemVisual(n,e);if(r&&"none"!==r){var o=t.getItemVisual(n,e+"Size"),i=t.getItemVisual(n,e+"Rotate"),a=t.getItemVisual(n,e+"Offset"),s=t.getItemVisual(n,e+"KeepAspect"),l=Ax(o),u=kx(a||0,l),c=Sx(r,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=null==i||isNaN(i)?void 0:+i*Math.PI/180||0,c.name=e,c}}function bV(e){var t=new fV({name:"line",subPixelOptimize:!0});return _V(t.shape,e),t}function _V(e,t){e.x1=t[0][0],e.y1=t[0][1],e.x2=t[1][0],e.y2=t[1][1],e.percent=1;var n=t[2];n?(e.cpx1=n[0],e.cpy1=n[1]):(e.cpx1=NaN,e.cpy1=NaN)}var xV=function(e){function t(t,n,r){var o=e.call(this)||this;return o._createLine(t,n,r),o}return Q(t,e),t.prototype._createLine=function(e,t,n){var r=e.hostModel,o=e.getItemLayout(t),i=bV(o);i.shape.percent=0,ah(i,{shape:{percent:1}},r,t),this.add(i),Me(gV,(function(n){var r=yV(n,e,t);this.add(r),this[mV(n)]=vV(n,e,t)}),this),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var r=e.hostModel,o=this.childOfName("line"),i=e.getItemLayout(t),a={shape:{}};_V(a.shape,i),ih(o,a,r,t),Me(gV,(function(n){var r=vV(n,e,t),o=mV(n);if(this[o]!==r){this.remove(this.childOfName(n));var i=yV(n,e,t);this.add(i)}this[o]=r}),this),this._updateCommonStl(e,t,n)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(e,t,n){var r=e.hostModel,o=this.childOfName("line"),i=n&&n.emphasisLineStyle,a=n&&n.blurLineStyle,s=n&&n.selectLineStyle,l=n&&n.labelStatesModels,u=n&&n.emphasisDisabled,c=n&&n.focus,d=n&&n.blurScope;if(!n||e.hasItemOption){var h=e.getItemModel(t),p=h.getModel("emphasis");i=p.getModel("lineStyle").getLineStyle(),a=h.getModel(["blur","lineStyle"]).getLineStyle(),s=h.getModel(["select","lineStyle"]).getLineStyle(),u=p.get("disabled"),c=p.get("focus"),d=p.get("blurScope"),l=vh(h)}var f=e.getItemVisual(t,"style"),g=f.stroke;o.useStyle(f),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=i,o.ensureState("blur").style=a,o.ensureState("select").style=s,Me(gV,(function(e){var t=this.childOfName(e);if(t){t.setColor(g),t.style.opacity=f.opacity;for(var n=0;n<qc.length;n++){var r=qc[n],i=o.getState(r);if(i){var a=i.style||{},s=t.ensureState(r),l=s.style||(s.style={});null!=a.stroke&&(l[t.__isEmptyBrush?"stroke":"fill"]=a.stroke),null!=a.opacity&&(l.opacity=a.opacity)}}t.markRedraw()}}),this);var m=r.getRawValue(t);mh(this,l,{labelDataIndex:t,labelFetcher:{getFormattedLabel:function(t,n){return r.getFormattedLabel(t,n,e.dataType)}},inheritColor:g||"#000",defaultOpacity:f.opacity,defaultText:(null==m?e.getName(t):isFinite(m)?es(m):m)+""});var v=this.getTextContent();if(v){var y=l.normal;v.__align=v.style.align,v.__verticalAlign=v.style.verticalAlign,v.__position=y.get("position")||"middle";var b=y.get("distance");Le(b)||(b=[b,b]),v.__labelDistance=b}this.setTextConfig({position:null,local:!0,inside:!1}),Wd(this,c,d,u)},t.prototype.highlight=function(){Ad(this)},t.prototype.downplay=function(){kd(this)},t.prototype.updateLayout=function(e,t){this.setLinePoints(e.getItemLayout(t))},t.prototype.setLinePoints=function(e){var t=this.childOfName("line");_V(t.shape,e),t.dirty()},t.prototype.beforeUpdate=function(){var e=this,t=e.childOfName("fromSymbol"),n=e.childOfName("toSymbol"),r=e.getTextContent();if(t||n||r&&!r.ignore){var o=1,i=this.parent;while(i)i.scaleX&&(o/=i.scaleX),i=i.parent;var a=e.childOfName("line");if(this.__dirty||a.__dirty){var s=a.shape.percent,l=a.pointAt(0),u=a.pointAt(s),c=Ot([],u,l);if($t(c,c),t&&(t.setPosition(l),O(t,0),t.scaleX=t.scaleY=o*s,t.markRedraw()),n&&(n.setPosition(u),O(n,1),n.scaleX=n.scaleY=o*s,n.markRedraw()),r&&!r.ignore){r.x=r.y=0,r.originX=r.originY=0;var d=void 0,h=void 0,p=r.__labelDistance,f=p[0]*o,g=p[1]*o,m=s/2,v=a.tangentAt(m),y=[v[1],-v[0]],b=a.pointAt(m);y[1]>0&&(y[0]=-y[0],y[1]=-y[1]);var _=v[0]<0?-1:1;if("start"!==r.__position&&"end"!==r.__position){var x=-Math.atan2(v[1],v[0]);u[0]<l[0]&&(x=Math.PI+x),r.rotation=x}var w=void 0;switch(r.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":w=-g,h="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":w=g,h="top";break;default:w=0,h="middle"}switch(r.__position){case"end":r.x=c[0]*f+u[0],r.y=c[1]*g+u[1],d=c[0]>.8?"left":c[0]<-.8?"right":"center",h=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":r.x=-c[0]*f+l[0],r.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":r.x=f*_+l[0],r.y=l[1]+w,d=v[0]<0?"right":"left",r.originX=-f*_,r.originY=-w;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":r.x=b[0],r.y=b[1]+w,d="center",r.originY=-w;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":r.x=-f*_+u[0],r.y=u[1]+w,d=v[0]>=0?"right":"left",r.originX=f*_,r.originY=-w;break}r.scaleX=r.scaleY=o,r.setStyle({verticalAlign:r.__verticalAlign||h,align:r.__align||d})}}}function O(e,t){var n=e.__specifiedRotation;if(null==n){var r=a.tangentAt(t);e.attr("rotation",(1===t?-1:1)*Math.PI/2-Math.atan2(r[1],r[0]))}else e.attr("rotation",n)}},t}(Da),wV=xV,OV=function(){function e(e){this.group=new Da,this._LineCtor=e||wV}return e.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var n=this,r=n.group,o=n._lineData;n._lineData=e,o||r.removeAll();var i=AV(e);e.diff(o).add((function(n){t._doAdd(e,n,i)})).update((function(n,r){t._doUpdate(o,e,r,n,i)})).remove((function(e){r.remove(o.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=AV(e),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t){function n(e){e.isGroup||SV(e)||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var r=e.start;r<e.end;r++){var o=t.getItemLayout(r);if(CV(o)){var i=new this._LineCtor(t,r,this._seriesScope);i.traverse(n),this.group.add(i),t.setItemGraphicEl(r,i),this._progressiveEls.push(i)}}},e.prototype.remove=function(){this.group.removeAll()},e.prototype.eachRendered=function(e){t_(this._progressiveEls||this.group,e)},e.prototype._doAdd=function(e,t,n){var r=e.getItemLayout(t);if(CV(r)){var o=new this._LineCtor(e,t,n);e.setItemGraphicEl(t,o),this.group.add(o)}},e.prototype._doUpdate=function(e,t,n,r,o){var i=e.getItemGraphicEl(n);CV(t.getItemLayout(r))?(i?i.updateData(t,r,o):i=new this._LineCtor(t,r,o),t.setItemGraphicEl(r,i),this.group.add(i)):this.group.remove(i)},e}();function SV(e){return e.animators&&e.animators.length>0}function AV(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:vh(t)}}function kV(e){return isNaN(e[0])||isNaN(e[1])}function CV(e){return e&&!kV(e[0])&&!kV(e[1])}var MV=OV,TV=[],PV=[],IV=[],$V=Qr,EV=Nt,DV=Math.abs;function RV(e,t,n){for(var r,o=e[0],i=e[1],a=e[2],s=1/0,l=n*n,u=.1,c=.1;c<=.9;c+=.1){TV[0]=$V(o[0],i[0],a[0],c),TV[1]=$V(o[1],i[1],a[1],c);var d=DV(EV(TV,t)-l);d<s&&(s=d,r=c)}for(var h=0;h<32;h++){var p=r+u;PV[0]=$V(o[0],i[0],a[0],r),PV[1]=$V(o[1],i[1],a[1],r),IV[0]=$V(o[0],i[0],a[0],p),IV[1]=$V(o[1],i[1],a[1],p);d=EV(PV,t)-l;if(DV(d)<.01)break;var f=EV(IV,t)-l;u/=2,d<0?f>=0?r+=u:r-=u:f>=0?r-=u:r+=u}return r}function NV(e,t){var n=[],r=Zr,o=[[],[],[]],i=[[],[]],a=[];t/=2,e.eachEdge((function(e,s){var l=e.getLayout(),u=e.getVisual("fromSymbol"),c=e.getVisual("toSymbol");l.__original||(l.__original=[bt(l[0]),bt(l[1])],l[2]&&l.__original.push(bt(l[2])));var d=l.__original;if(null!=l[2]){if(yt(o[0],d[0]),yt(o[1],d[2]),yt(o[2],d[1]),u&&"none"!==u){var h=qz(e.node1),p=RV(o,d[0],h*t);r(o[0][0],o[1][0],o[2][0],p,n),o[0][0]=n[3],o[1][0]=n[4],r(o[0][1],o[1][1],o[2][1],p,n),o[0][1]=n[3],o[1][1]=n[4]}if(c&&"none"!==c){h=qz(e.node2),p=RV(o,d[1],h*t);r(o[0][0],o[1][0],o[2][0],p,n),o[1][0]=n[1],o[2][0]=n[2],r(o[0][1],o[1][1],o[2][1],p,n),o[1][1]=n[1],o[2][1]=n[2]}yt(l[0],o[0]),yt(l[1],o[2]),yt(l[2],o[1])}else{if(yt(i[0],d[0]),yt(i[1],d[1]),Ot(a,i[1],i[0]),$t(a,a),u&&"none"!==u){h=qz(e.node1);wt(i[0],i[0],a,h*t)}if(c&&"none"!==c){h=qz(e.node2);wt(i[1],i[1],a,-h*t)}yt(l[0],i[0]),yt(l[1],i[1])}}))}function LV(e){return"view"===e.type}var zV=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Q(t,e),t.prototype.init=function(e,t){var n=new bP,r=new MV,o=this.group;this._controller=new vD(t.getZr()),this._controllerHost={target:o},o.add(n.group),o.add(r.group),this._symbolDraw=n,this._lineDraw=r,this._firstRender=!0},t.prototype.render=function(e,t,n){var r=this,o=e.coordinateSystem;this._model=e;var i=this._symbolDraw,a=this._lineDraw,s=this.group;if(LV(o)){var l={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?s.attr(l):ih(s,l,e)}NV(e.getGraph(),Yz(e));var u=e.getData();i.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);var p=e.get("layout");u.graph.eachNode((function(t){var n=t.dataIndex,o=t.getGraphicEl(),i=t.getModel();if(o){o.off("drag").off("dragend");var a=i.get("draggable");a&&o.on("drag",(function(i){switch(p){case"force":d.warmUp(),!r._layouting&&r._startForceLayoutIteration(d,h),d.setFixed(n),u.setItemLayout(n,[o.x,o.y]);break;case"circular":u.setItemLayout(n,[o.x,o.y]),t.setLayout({fixed:!0},!0),eV(e,"symbolSize",t,[i.offsetX,i.offsetY]),r.updateLayout(e);break;case"none":default:u.setItemLayout(n,[o.x,o.y]),Xz(e.getGraph(),e),r.updateLayout(e);break}})).on("dragend",(function(){d&&d.setUnfixed(n)})),o.setDraggable(a,!!i.get("cursor"));var s=i.get(["emphasis","focus"]);"adjacency"===s&&(Qc(o).focus=t.getAdjacentDataIndices())}})),u.graph.eachEdge((function(e){var t=e.getGraphicEl(),n=e.getModel().get(["emphasis","focus"]);t&&"adjacency"===n&&(Qc(t).focus={edge:[e.dataIndex],node:[e.node1.dataIndex,e.node2.dataIndex]})}));var f="circular"===e.get("layout")&&e.get(["circular","rotateLabel"]),g=u.getLayout("cx"),m=u.getLayout("cy");u.graph.eachNode((function(e){nV(e,f,g,m)})),this._firstRender=!1},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,t){var n=this;(function r(){e.step((function(e){n.updateLayout(n._model),(n._layouting=!e)&&(t?n._layoutTimeout=setTimeout(r,16):r())}))})()},t.prototype._updateController=function(e,t,n){var r=this,o=this._controller,i=this._controllerHost,a=this.group;o.setPointerChecker((function(t,r,o){var i=a.getBoundingRect();return i.applyTransform(a.transform),i.contain(r,o)&&!wD(t,n,e)})),LV(e.coordinateSystem)?(o.enable(e.get("roam")),i.zoomLimit=e.get("scaleLimit"),i.zoom=e.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",(function(t){yD(i,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"graphRoam",dx:t.dx,dy:t.dy})})).on("zoom",(function(t){bD(i,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),r._updateNodeAndLinkScale(),NV(e.getGraph(),Yz(e)),r._lineDraw.updateLayout(),n.updateLabelLayout()}))):o.disable()},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,t=e.getData(),n=Yz(e);t.eachItemGraphicEl((function(e,t){e&&e.setSymbolScale(n)}))},t.prototype.updateLayout=function(e){NV(e.getGraph(),Yz(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(c_),VV=zV;function BV(e){return"_EC_"+e}var jV=function(){function e(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(e,t){e=null==e?""+t:""+e;var n=this._nodesMap;if(!n[BV(e)]){var r=new QV(e,t);return r.hostGraph=this,this.nodes.push(r),n[BV(e)]=r,r}},e.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},e.prototype.getNodeById=function(e){return this._nodesMap[BV(e)]},e.prototype.addEdge=function(e,t,n){var r=this._nodesMap,o=this._edgesMap;if(je(e)&&(e=this.nodes[e]),je(t)&&(t=this.nodes[t]),e instanceof QV||(e=r[BV(e)]),t instanceof QV||(t=r[BV(t)]),e&&t){var i=e.id+"-"+t.id,a=new FV(e,t,n);return a.hostGraph=this,this._directed&&(e.outEdges.push(a),t.inEdges.push(a)),e.edges.push(a),e!==t&&t.edges.push(a),this.edges.push(a),o[i]=a,a}},e.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},e.prototype.getEdge=function(e,t){e instanceof QV&&(e=e.id),t instanceof QV&&(t=t.id);var n=this._edgesMap;return this._directed?n[e+"-"+t]:n[e+"-"+t]||n[t+"-"+e]},e.prototype.eachNode=function(e,t){for(var n=this.nodes,r=n.length,o=0;o<r;o++)n[o].dataIndex>=0&&e.call(t,n[o],o)},e.prototype.eachEdge=function(e,t){for(var n=this.edges,r=n.length,o=0;o<r;o++)n[o].dataIndex>=0&&n[o].node1.dataIndex>=0&&n[o].node2.dataIndex>=0&&e.call(t,n[o],o)},e.prototype.breadthFirstTraverse=function(e,t,n,r){if(t instanceof QV||(t=this._nodesMap[BV(t)]),t){for(var o="out"===n?"outEdges":"in"===n?"inEdges":"edges",i=0;i<this.nodes.length;i++)this.nodes[i].__visited=!1;if(!e.call(r,t,null)){var a=[t];while(a.length){var s=a.shift(),l=s[o];for(i=0;i<l.length;i++){var u=l[i],c=u.node1===s?u.node2:u.node1;if(!c.__visited){if(e.call(r,c,s))return;a.push(c),c.__visited=!0}}}}}},e.prototype.update=function(){for(var e=this.data,t=this.edgeData,n=this.nodes,r=this.edges,o=0,i=n.length;o<i;o++)n[o].dataIndex=-1;for(o=0,i=e.count();o<i;o++)n[e.getRawIndex(o)].dataIndex=o;t.filterSelf((function(e){var n=r[t.getRawIndex(e)];return n.node1.dataIndex>=0&&n.node2.dataIndex>=0}));for(o=0,i=r.length;o<i;o++)r[o].dataIndex=-1;for(o=0,i=t.count();o<i;o++)r[t.getRawIndex(o)].dataIndex=o},e.prototype.clone=function(){for(var t=new e(this._directed),n=this.nodes,r=this.edges,o=0;o<n.length;o++)t.addNode(n[o].id,n[o].dataIndex);for(o=0;o<r.length;o++){var i=r[o];t.addEdge(i.node1.id,i.node2.id,i.dataIndex)}return t},e}(),QV=function(){function e(e,t){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=null==e?"":e,this.dataIndex=null==t?-1:t}return e.prototype.degree=function(){return this.edges.length},e.prototype.inDegree=function(){return this.inEdges.length},e.prototype.outDegree=function(){return this.outEdges.length},e.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,n=t.data.getItemModel(this.dataIndex);return n.getModel(e)}},e.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},t=0;t<this.edges.length;t++){var n=this.edges[t];n.dataIndex<0||(e.edge.push(n.dataIndex),e.node.push(n.node1.dataIndex,n.node2.dataIndex))}return e},e.prototype.getTrajectoryDataIndices=function(){for(var e=ct(),t=ct(),n=0;n<this.edges.length;n++){var r=this.edges[n];if(!(r.dataIndex<0)){e.set(r.dataIndex,!0);var o=[r.node1],i=[r.node2],a=0;while(a<o.length){var s=o[a];a++,t.set(s.dataIndex,!0);for(var l=0;l<s.inEdges.length;l++)e.set(s.inEdges[l].dataIndex,!0),o.push(s.inEdges[l].node1)}a=0;while(a<i.length){var u=i[a];a++,t.set(u.dataIndex,!0);for(l=0;l<u.outEdges.length;l++)e.set(u.outEdges[l].dataIndex,!0),i.push(u.outEdges[l].node2)}}}return{edge:e.keys(),node:t.keys()}},e}(),FV=function(){function e(e,t,n){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=null==n?-1:n}return e.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,n=t.edgeData.getItemModel(this.dataIndex);return n.getModel(e)}},e.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},e.prototype.getTrajectoryDataIndices=function(){var e=ct(),t=ct();e.set(this.dataIndex,!0);var n=[this.node1],r=[this.node2],o=0;while(o<n.length){var i=n[o];o++,t.set(i.dataIndex,!0);for(var a=0;a<i.inEdges.length;a++)e.set(i.inEdges[a].dataIndex,!0),n.push(i.inEdges[a].node1)}o=0;while(o<r.length){var s=r[o];o++,t.set(s.dataIndex,!0);for(a=0;a<s.outEdges.length;a++)e.set(s.outEdges[a].dataIndex,!0),r.push(s.outEdges[a].node2)}return{edge:e.keys(),node:t.keys()}},e}();function WV(e,t){return{getValue:function(n){var r=this[e][t];return r.getStore().get(r.getDimensionIndex(n||"value"),this.dataIndex)},setVisual:function(n,r){this.dataIndex>=0&&this[e][t].setItemVisual(this.dataIndex,n,r)},getVisual:function(n){return this[e][t].getItemVisual(this.dataIndex,n)},setLayout:function(n,r){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,n,r)},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)}}}ke(QV,WV("hostGraph","data")),ke(FV,WV("hostGraph","edgeData"));var HV=jV;function ZV(e,t,n,r,o){for(var i=new HV(r),a=0;a<e.length;a++)i.addNode(Ye(e[a].id,e[a].name,a),a);var s=[],l=[],u=0;for(a=0;a<t.length;a++){var c=t[a],d=c.source,h=c.target;i.addEdge(d,h,u)&&(l.push(c),s.push(Ye(Bs(c.id,null),d+" > "+h)),u++)}var p,f=n.get("coordinateSystem");if("cartesian2d"===f||"polar"===f)p=cA(e,n);else{var g=ug.get(f),m=g&&g.dimensions||[];Se(m,"value")<0&&m.concat(["value"]);var v=GS(e,{coordDimensions:m,encodeDefine:n.getEncode()}).dimensions;p=new HS(v,n),p.initData(e)}var y=new HS(["value"],n);return y.initData(l,s),o&&o(p,y),BN({mainData:p,struct:i,structAttr:"graph",datas:{node:p,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var GV=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return Q(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments);var n=this;function r(){return n._categoriesData}this.legendVisualProvider=new u$(r,r),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),Cs(t,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,t){var n=e.edges||e.links||[],r=e.data||e.nodes||[],o=this;if(r&&n){Wz(this);var i=ZV(r,n,this,!0,a);return Me(i.edges,(function(e){Hz(e.node1,e.node2,this,e.dataIndex)}),this),i.data}function a(e,t){e.wrapMethod("getItemModel",(function(e){var t=o._categoriesModels,n=e.getShallow("category"),r=t[n];return r&&(r.parentModel=e.parentModel,e.parentModel=r),e}));var n=Qh.prototype.getModel;function r(e,t){var r=n.call(this,e,t);return r.resolveParentPath=i,r}function i(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=i,e.getModel=r,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 r=this.getData(),o=this.getDataParams(e,n),i=r.graph.getEdgeByIndex(e),a=r.getName(i.node1.dataIndex),s=r.getName(i.node2.dataIndex),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),dv("nameValue",{name:l.join(" > "),value:o.value,noValue:null==o.value})}var u=Cv({series:this,dataIndex:e,multipleSeries:t});return u},t.prototype._updateCategoriesData=function(){var e=Te(this.option.categories||[],(function(e){return null!=e.value?e:xe({value:0},e)})),t=new HS(["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}(jv),XV=GV,UV={type:"graphRoam",event:"graphRoam",update:"none"};function YV(e){e.registerChartView(VV),e.registerSeriesModel(XV),e.registerProcessor($z),e.registerVisual(Ez),e.registerVisual(Rz),e.registerLayout(Uz),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,rV),e.registerLayout(aV),e.registerCoordinateSystem("graphView",{dimensions:BR.dimensions,create:lV}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},gt),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},gt),e.registerAction(UV,(function(e,t,n){t.eachComponent({mainType:"series",query:e},(function(t){var r=t.coordinateSystem,o=eN(r,e,void 0,n);t.setCenter&&t.setCenter(o.center),t.setZoom&&t.setZoom(o.zoom)}))}))}var qV=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),KV=function(e){function t(t){var n=e.call(this,t)||this;return n.type="pointer",n}return Q(t,e),t.prototype.getDefaultShape=function(){return new qV},t.prototype.buildPath=function(e,t){var n=Math.cos,r=Math.sin,o=t.r,i=t.width,a=t.angle,s=t.x-n(a)*i*(i>=o/3?1:2),l=t.y-r(a)*i*(i>=o/3?1:2);a=t.angle-Math.PI/2,e.moveTo(s,l),e.lineTo(t.x+n(a)*i,t.y+r(a)*i),e.lineTo(t.x+n(t.angle)*o,t.y+r(t.angle)*o),e.lineTo(t.x-n(a)*i,t.y-r(a)*i),e.lineTo(s,l)},t}(ac),JV=KV;function eB(e,t){var n=e.get("center"),r=t.getWidth(),o=t.getHeight(),i=Math.min(r,o),a=Ja(n[0],t.getWidth()),s=Ja(n[1],t.getHeight()),l=Ja(e.get("radius"),i/2);return{cx:a,cy:s,r:l}}function tB(e,t){var n=null==e?"":e+"";return t&&(Ve(t)?n=t.replace("{value}",n):ze(t)&&(n=t(e))),n}var nB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Q(t,e),t.prototype.render=function(e,t,n){this.group.removeAll();var r=e.get(["axisLine","lineStyle","color"]),o=eB(e,n);this._renderMain(e,t,n,r,o),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,t,n,r,o){var i=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?pI:Ly,h=u.get("show"),p=u.getModel("lineStyle"),f=p.get("width"),g=[s,l];$u(g,!a),s=g[0],l=g[1];for(var m=l-s,v=s,y=[],b=0;h&&b<r.length;b++){var _=Math.min(Math.max(r[b][0],0),1);l=s+m*_;var x=new d({shape:{startAngle:v,endAngle:l,cx:o.cx,cy:o.cy,clockwise:a,r0:o.r-f,r:o.r},silent:!0});x.setStyle({fill:r[b][1]}),x.setStyle(p.getLineStyle(["color","width"])),y.push(x),v=l}y.reverse(),Me(y,(function(e){return i.add(e)}));var w=function(e){if(e<=0)return r[0][1];var t;for(t=0;t<r.length;t++)if(r[t][0]>=e&&(0===t?0:r[t-1][0])<e)return r[t][1];return r[t-1][1]};this._renderTicks(e,t,n,w,o,s,l,a,f),this._renderTitleAndDetail(e,t,n,w,o),this._renderAnchor(e,o),this._renderPointer(e,t,n,w,o,s,l,a,f)},t.prototype._renderTicks=function(e,t,n,r,o,i,a,s,l){for(var u,c,d=this.group,h=o.cx,p=o.cy,f=o.r,g=+e.get("min"),m=+e.get("max"),v=e.getModel("splitLine"),y=e.getModel("axisTick"),b=e.getModel("axisLabel"),_=e.get("splitNumber"),x=y.get("splitNumber"),w=Ja(v.get("length"),f),O=Ja(y.get("length"),f),S=i,A=(a-i)/_,k=A/x,C=v.getModel("lineStyle").getLineStyle(),M=y.getModel("lineStyle").getLineStyle(),T=v.get("distance"),P=0;P<=_;P++){if(u=Math.cos(S),c=Math.sin(S),v.get("show")){var I=T?T+l:l,$=new Ky({shape:{x1:u*(f-I)+h,y1:c*(f-I)+p,x2:u*(f-w-I)+h,y2:c*(f-w-I)+p},style:C,silent:!0});"auto"===C.stroke&&$.setStyle({stroke:r(P/_)}),d.add($)}if(b.get("show")){I=b.get("distance")+T;var E=tB(es(P/_*(m-g)+g),b.get("formatter")),D=r(P/_),R=u*(f-w-I)+h,N=c*(f-w-I)+p,L=b.get("rotate"),z=0;"radial"===L?(z=-S+2*Math.PI,z>Math.PI/2&&(z+=Math.PI)):"tangential"===L?z=-S-Math.PI/2:je(L)&&(z=L*Math.PI/180),0===z?d.add(new jc({style:yh(b,{text:E,x:R,y:N,verticalAlign:c<-.8?"top":c>.8?"bottom":"middle",align:u<-.4?"left":u>.4?"right":"center"},{inheritColor:D}),silent:!0})):d.add(new jc({style:yh(b,{text:E,x:R,y:N,verticalAlign:"middle",align:"center"},{inheritColor:D}),silent:!0,originX:R,originY:N,rotation:z}))}if(y.get("show")&&P!==_){I=y.get("distance");I=I?I+l:l;for(var V=0;V<=x;V++){u=Math.cos(S),c=Math.sin(S);var B=new Ky({shape:{x1:u*(f-I)+h,y1:c*(f-I)+p,x2:u*(f-O-I)+h,y2:c*(f-O-I)+p},silent:!0,style:M});"auto"===M.stroke&&B.setStyle({stroke:r((P+V/x)/_)}),d.add(B),S+=k}S-=k}else S+=A}},t.prototype._renderPointer=function(e,t,n,r,o,i,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"),m=e.getData(),v=m.mapDimension("value"),y=+e.get("min"),b=+e.get("max"),_=[y,b],x=[i,a];function w(t,n){var r,i=m.getItemModel(t),a=i.getModel("pointer"),s=Ja(a.get("width"),o.r),l=Ja(a.get("length"),o.r),u=e.get(["pointer","icon"]),c=a.get("offsetCenter"),d=Ja(c[0],o.r),h=Ja(c[1],o.r),p=a.get("keepAspect");return r=u?Sx(u,d-s/2,h-l,s,l,null,p):new JV({shape:{angle:-Math.PI/2,width:s,r:l,x:d,y:h}}),r.rotation=-(n+Math.PI/2),r.x=o.cx,r.y=o.cy,r}function O(e,t){var n=f.get("roundCap"),r=n?pI:Ly,a=f.get("overlap"),u=a?f.get("width"):l/m.count(),c=a?o.r-u:o.r-(e+1)*u,d=a?o.r:o.r-e*u,h=new r({shape:{startAngle:i,endAngle:t,cx:o.cx,cy:o.cy,clockwise:s,r0:c,r:d}});return a&&(h.z2=b-m.get(v,e)%b),h}(g||p)&&(m.diff(c).add((function(t){var n=m.get(v,t);if(p){var r=w(t,i);ah(r,{rotation:-((isNaN(+n)?x[0]:Ka(n,_,x,!0))+Math.PI/2)},e),u.add(r),m.setItemGraphicEl(t,r)}if(g){var o=O(t,i),a=f.get("clip");ah(o,{shape:{endAngle:Ka(n,_,x,a)}},e),u.add(o),Fc(e.seriesIndex,m.dataType,t,o),h[t]=o}})).update((function(t,n){var r=m.get(v,t);if(p){var o=c.getItemGraphicEl(n),a=o?o.rotation:i,s=w(t,a);s.rotation=a,ih(s,{rotation:-((isNaN(+r)?x[0]:Ka(r,_,x,!0))+Math.PI/2)},e),u.add(s),m.setItemGraphicEl(t,s)}if(g){var l=d[n],y=l?l.shape.endAngle:i,b=O(t,y),S=f.get("clip");ih(b,{shape:{endAngle:Ka(r,_,x,S)}},e),u.add(b),Fc(e.seriesIndex,m.dataType,t,b),h[t]=b}})).execute(),m.each((function(e){var t=m.getItemModel(e),n=t.getModel("emphasis"),o=n.get("focus"),i=n.get("blurScope"),a=n.get("disabled");if(p){var s=m.getItemGraphicEl(e),l=m.getItemVisual(e,"style"),u=l.fill;if(s instanceof fc){var c=s.style;s.useStyle(xe({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",r(Ka(m.get(v,e),_,[0,1],!0))),s.z2EmphasisLift=0,Xd(s,t),Wd(s,o,i,a)}if(g){var d=h[e];d.useStyle(m.getItemVisual(e,"style")),d.setStyle(t.getModel(["progress","itemStyle"]).getItemStyle()),d.z2EmphasisLift=0,Xd(d,t),Wd(d,o,i,a)}})),this._progressEls=h)},t.prototype._renderAnchor=function(e,t){var n=e.getModel("anchor"),r=n.get("show");if(r){var o=n.get("size"),i=n.get("icon"),a=n.get("offsetCenter"),s=n.get("keepAspect"),l=Sx(i,t.cx-o/2+Ja(a[0],t.r),t.cy-o/2+Ja(a[1],t.r),o,o,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,r,o){var i=this,a=e.getData(),s=a.mapDimension("value"),l=+e.get("min"),u=+e.get("max"),c=new Da,d=[],h=[],p=e.isAnimationEnabled(),f=e.get(["pointer","showAbove"]);a.diff(this._data).add((function(e){d[e]=new jc({silent:!0}),h[e]=new jc({silent:!0})})).update((function(e,t){d[e]=i._titleEls[t],h[e]=i._detailEls[t]})).execute(),a.each((function(t){var n=a.getItemModel(t),i=a.get(s,t),g=new Da,m=r(Ka(i,[l,u],[0,1],!0)),v=n.getModel("title");if(v.get("show")){var y=v.get("offsetCenter"),b=o.cx+Ja(y[0],o.r),_=o.cy+Ja(y[1],o.r),x=d[t];x.attr({z2:f?0:2,style:yh(v,{x:b,y:_,text:a.getName(t),align:"center",verticalAlign:"middle"},{inheritColor:m})}),g.add(x)}var w=n.getModel("detail");if(w.get("show")){var O=w.get("offsetCenter"),S=o.cx+Ja(O[0],o.r),A=o.cy+Ja(O[1],o.r),k=Ja(w.get("width"),o.r),C=Ja(w.get("height"),o.r),M=e.get(["progress","show"])?a.getItemVisual(t,"style").fill:m,T=(x=h[t],w.get("formatter"));x.attr({z2:f?0:2,style:yh(w,{x:S,y:A,text:tB(i,T),width:isNaN(k)?null:k,height:isNaN(C)?null:C,align:"center",verticalAlign:"middle"},{inheritColor:M})}),Mh(x,{normal:w},i,(function(e){return tB(e,T)})),p&&Th(x,t,a,e,{getFormattedLabel:function(e,t,n,r,o,a){return tB(a?a.interpolatedValue:i,T)}}),g.add(x)}c.add(g)})),this.group.add(c),this._titleEls=d,this._detailEls=h},t.type="gauge",t}(c_),rB=nB,oB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="itemStyle",n}return Q(t,e),t.prototype.getInitialData=function(e,t){return s$(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,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(jv),iB=oB;function aB(e){e.registerChartView(rB),e.registerSeriesModel(iB)}var sB=["itemStyle","opacity"],lB=function(e){function t(t,n){var r=e.call(this)||this,o=r,i=new Xy,a=new jc;return o.setTextContent(a),r.setTextGuideLine(i),r.updateData(t,n,!0),r}return Q(t,e),t.prototype.updateData=function(e,t,n){var r=this,o=e.hostModel,i=e.getItemModel(t),a=e.getItemLayout(t),s=i.getModel("emphasis"),l=i.get(sB);l=null==l?1:l,n||dh(r),r.useStyle(e.getItemVisual(t,"style")),r.style.lineJoin="round",n?(r.setShape({points:a.points}),r.style.opacity=0,ah(r,{style:{opacity:l}},o,t)):ih(r,{style:{opacity:l},shape:{points:a.points}},o,t),Xd(r,i),this._updateLabel(e,t),Wd(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))},t.prototype._updateLabel=function(e,t){var n=this,r=this.getTextGuideLine(),o=n.getTextContent(),i=e.hostModel,a=e.getItemModel(t),s=e.getItemLayout(t),l=s.label,u=e.getItemVisual(t,"style"),c=u.fill;mh(o,vh(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;r.setShape({points:d}),n.textGuideLineConfig={anchor:d?new En(d[0][0],d[0][1]):null},ih(o,{style:{x:l.x,y:l.y}},i,t),o.attr({rotation:l.rotation,originX:l.x,originY:l.y,z2:10}),qC(n,KC(a),{stroke:c})},t}(Hy),uB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreLabelLineUpdate=!0,n}return Q(t,e),t.prototype.render=function(e,t,n){var r=e.getData(),o=this._data,i=this.group;r.diff(o).add((function(e){var t=new lB(r,e);r.setItemGraphicEl(e,t),i.add(t)})).update((function(e,t){var n=o.getItemGraphicEl(t);n.updateData(r,e),i.add(n),r.setItemGraphicEl(e,n)})).remove((function(t){var n=o.getItemGraphicEl(t);ch(n,e,t)})).execute(),this._data=r},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(c_),cB=uB,dB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Q(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new u$(Re(this.getData,this),Re(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.getInitialData=function(e,t){return s$(this,{coordDimensions:["value"],encodeDefaulter:Ne(If,this)})},t.prototype._defaultLabelLine=function(e){Cs(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(),r=e.prototype.getDataParams.call(this,t),o=n.mapDimension("value"),i=n.getSum(o);return r.percent=i?+(n.get(o,t)/i*100).toFixed(2):0,r.$vars.push("percent"),r},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}(jv),hB=dB;function pB(e,t){return rf(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function fB(e,t){for(var n=e.mapDimension("value"),r=e.mapArray(n,(function(e){return e})),o=[],i="ascending"===t,a=0,s=e.count();a<s;a++)o[a]=a;return ze(t)?o.sort(t):"none"!==t&&o.sort((function(e,t){return i?r[e]-r[t]:r[t]-r[e]})),o}function gB(e){var t=e.hostModel,n=t.get("orient");e.each((function(t){var r,o,i,a,s=e.getItemModel(t),l=s.getModel("label"),u=l.get("position"),c=s.getModel("labelLine"),d=e.getItemLayout(t),h=d.points,p="inner"===u||"inside"===u||"center"===u||"insideLeft"===u||"insideRight"===u;if(p)"insideLeft"===u?(o=(h[0][0]+h[3][0])/2+5,i=(h[0][1]+h[3][1])/2,r="left"):"insideRight"===u?(o=(h[1][0]+h[2][0])/2-5,i=(h[1][1]+h[2][1])/2,r="right"):(o=(h[0][0]+h[1][0]+h[2][0]+h[3][0])/4,i=(h[0][1]+h[1][1]+h[2][1]+h[3][1])/4,r="center"),a=[[o,i],[o,i]];else{var f=void 0,g=void 0,m=void 0,v=void 0,y=c.get("length");0,"left"===u?(f=(h[3][0]+h[0][0])/2,g=(h[3][1]+h[0][1])/2,m=f-y,o=m-5,r="right"):"right"===u?(f=(h[1][0]+h[2][0])/2,g=(h[1][1]+h[2][1])/2,m=f+y,o=m+5,r="left"):"top"===u?(f=(h[3][0]+h[0][0])/2,g=(h[3][1]+h[0][1])/2,v=g-y,i=v-5,r="center"):"bottom"===u?(f=(h[1][0]+h[2][0])/2,g=(h[1][1]+h[2][1])/2,v=g+y,i=v+5,r="center"):"rightTop"===u?(f="horizontal"===n?h[3][0]:h[1][0],g="horizontal"===n?h[3][1]:h[1][1],"horizontal"===n?(v=g-y,i=v-5,r="center"):(m=f+y,o=m+5,r="top")):"rightBottom"===u?(f=h[2][0],g=h[2][1],"horizontal"===n?(v=g+y,i=v+5,r="center"):(m=f+y,o=m+5,r="bottom")):"leftTop"===u?(f=h[0][0],g="horizontal"===n?h[0][1]:h[1][1],"horizontal"===n?(v=g-y,i=v-5,r="center"):(m=f-y,o=m-5,r="right")):"leftBottom"===u?(f="horizontal"===n?h[1][0]:h[3][0],g="horizontal"===n?h[1][1]:h[2][1],"horizontal"===n?(v=g+y,i=v+5,r="center"):(m=f-y,o=m-5,r="right")):(f=(h[1][0]+h[2][0])/2,g=(h[1][1]+h[2][1])/2,"horizontal"===n?(v=g+y,i=v+5,r="center"):(m=f+y,o=m+5,r="left")),"horizontal"===n?(m=f,o=m):(v=g,i=v),a=[[f,g],[m,v]]}d.label={linePoints:a,x:o,y:i,verticalAlign:"middle",textAlign:r,inside:p}}))}function mB(e,t){e.eachSeriesByType("funnel",(function(e){var n=e.getData(),r=n.mapDimension("value"),o=e.get("sort"),i=pB(e,t),a=e.get("orient"),s=i.width,l=i.height,u=fB(n,o),c=i.x,d=i.y,h="horizontal"===a?[Ja(e.get("minSize"),l),Ja(e.get("maxSize"),l)]:[Ja(e.get("minSize"),s),Ja(e.get("maxSize"),s)],p=n.getDataExtent(r),f=e.get("min"),g=e.get("max");null==f&&(f=Math.min(p[0],0)),null==g&&(g=p[1]);var m=e.get("funnelAlign"),v=e.get("gap"),y="horizontal"===a?s:l,b=(y-v*(n.count()-1))/n.count(),_=function(e,t){if("horizontal"===a){var o=n.get(r,e)||0,i=Ka(o,[f,g],h,!0),u=void 0;switch(m){case"top":u=d;break;case"center":u=d+(l-i)/2;break;case"bottom":u=d+(l-i);break}return[[t,u],[t,u+i]]}var p,v=n.get(r,e)||0,y=Ka(v,[f,g],h,!0);switch(m){case"left":p=c;break;case"center":p=c+(s-y)/2;break;case"right":p=c+s-y;break}return[[p,t],[p+y,t]]};"ascending"===o&&(b=-b,v=-v,"horizontal"===a?c+=s:d+=l,u=u.reverse());for(var x=0;x<u.length;x++){var w=u[x],O=u[x+1],S=n.getItemModel(w);if("horizontal"===a){var A=S.get(["itemStyle","width"]);null==A?A=b:(A=Ja(A,s),"ascending"===o&&(A=-A));var k=_(w,c),C=_(O,c+A);c+=A+v,n.setItemLayout(w,{points:k.concat(C.slice().reverse())})}else{var M=S.get(["itemStyle","height"]);null==M?M=b:(M=Ja(M,l),"ascending"===o&&(M=-M));k=_(w,d),C=_(O,d+M);d+=M+v,n.setItemLayout(w,{points:k.concat(C.slice().reverse())})}}gB(n)}))}function vB(e){e.registerChartView(cB),e.registerSeriesModel(hB),e.registerLayout(mB),e.registerProcessor(qI("funnel"))}var yB=.3,bB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._dataGroup=new Da,n._initialized=!1,n}return Q(t,e),t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(e,t,n,r){this._progressiveEls=null;var o=this._dataGroup,i=e.getData(),a=this._data,s=e.coordinateSystem,l=s.dimensions,u=OB(e);function c(e){var t=wB(i,o,e,l,s);SB(t,i,e,u)}function d(t,n){var r=a.getItemGraphicEl(n),o=xB(i,t,l,s);i.setItemGraphicEl(t,r),ih(r,{shape:{points:o}},e,t),dh(r),SB(r,i,t,u)}function h(e){var t=a.getItemGraphicEl(e);o.remove(t)}if(i.diff(a).add(c).update(d).remove(h).execute(),!this._initialized){this._initialized=!0;var p=_B(s,e,(function(){setTimeout((function(){o.removeClipPath()}))}));o.setClipPath(p)}this._data=i},t.prototype.incrementalPrepareRender=function(e,t,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(e,t,n){for(var r=t.getData(),o=t.coordinateSystem,i=o.dimensions,a=OB(t),s=this._progressiveEls=[],l=e.start;l<e.end;l++){var u=wB(r,this._dataGroup,l,i,o);u.incremental=!0,SB(u,r,l,a),s.push(u)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t}(c_);function _B(e,t,n){var r=e.model,o=e.getRect(),i=new Oc({shape:{x:o.x,y:o.y,width:o.width,height:o.height}}),a="horizontal"===r.get("layout")?"width":"height";return i.setShape(a,0),ah(i,{shape:{width:o.width,height:o.height}},t,n),i}function xB(e,t,n,r){for(var o=[],i=0;i<n.length;i++){var a=n[i],s=e.get(e.mapDimension(a),t);AB(s,r.getAxis(a).type)||o.push(r.dataToPoint(s,a))}return o}function wB(e,t,n,r,o){var i=xB(e,n,r,o),a=new Xy({shape:{points:i},z2:10});return t.add(a),e.setItemGraphicEl(n,a),a}function OB(e){var t=e.get("smooth",!0);return!0===t&&(t=yB),t=ys(t),Ue(t)&&(t=0),{smooth:t}}function SB(e,t,n,r){e.useStyle(t.getItemVisual(n,"style")),e.style.fill=null,e.setShape("smooth",r.smooth);var o=t.getItemModel(n),i=o.getModel("emphasis");Xd(e,o,"lineStyle"),Wd(e,i.get("focus"),i.get("blurScope"),i.get("disabled"))}function AB(e,t){return"category"===t?null==e:null==e||isNaN(e)}var kB=bB,CB=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 Q(t,e),t.prototype.getInitialData=function(e,t){return cA(null,this,{useEncodeDefaulter:Re(MB,null,this)})},t.prototype.getRawIndicesByActiveState=function(e){var t=this.coordinateSystem,n=this.getData(),r=[];return t.eachActiveState(n,(function(t,o){e===t&&r.push(n.getRawIndex(o))})),r},t.type="series.parallel",t.dependencies=["parallel"],t.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},t}(jv);function MB(e){var t=e.ecModel.getComponent("parallel",e.get("parallelIndex"));if(t){var n={};return Me(t.dimensions,(function(e){var t=TB(e);n[e]=t})),n}}function TB(e){return+e.replace("dim","")}var PB=CB,IB=["lineStyle","opacity"],$B={seriesType:"parallel",reset:function(e,t){var n=e.coordinateSystem,r={normal:e.get(["lineStyle","opacity"]),active:e.get("activeOpacity"),inactive:e.get("inactiveOpacity")};return{progress:function(e,t){n.eachActiveState(t,(function(e,n){var o=r[e];if("normal"===e&&t.hasItemOption){var i=t.getItemModel(n).get(IB,!0);null!=i&&(o=i)}var a=t.ensureUniqueItemVisual(n,"style");a.opacity=o}),e.start,e.end)}}}},EB=$B;function DB(e){RB(e),NB(e)}function RB(e){if(!e.parallel){var t=!1;Me(e.series,(function(e){e&&"parallel"===e.type&&(t=!0)})),t&&(e.parallel=[{}])}}function NB(e){var t=ks(e.parallelAxis);Me(t,(function(t){if(Qe(t)){var n=t.parallelIndex||0,r=ks(e.parallel)[n];r&&r.parallelAxisDefault&&be(t,r.parallelAxisDefault,!1)}}))}var LB=5,zB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Q(t,e),t.prototype.render=function(e,t,n){this._model=e,this._api=n,this._handlers||(this._handlers={},Me(VB,(function(e,t){n.getZr().on(t,this._handlers[t]=Re(e,this))}),this)),g_(this,"_throttledDispatchExpand",e.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(e,t){m_(this,"_throttledDispatchExpand"),Me(this._handlers,(function(e,n){t.getZr().off(n,e)})),this._handlers=null},t.prototype._throttledDispatchExpand=function(e){this._dispatchExpand(e)},t.prototype._dispatchExpand=function(e){e&&this._api.dispatchAction(xe({type:"parallelAxisExpand"},e))},t.type="parallel",t}(Fv),VB={mousedown:function(e){BB(this,"click")&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(BB(this,"click")&&t){var n=[e.offsetX,e.offsetY],r=Math.pow(t[0]-n[0],2)+Math.pow(t[1]-n[1],2);if(r>LB)return;var o=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);"none"!==o.behavior&&this._dispatchExpand({axisExpandWindow:o.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!this._mouseDownPoint&&BB(this,"mousemove")){var t=this._model,n=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),r=n.behavior;"jump"===r&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===r?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===r?null:{duration:0}})}}};function BB(e,t){var n=e._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===t}var jB=zB,QB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Q(t,e),t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var t=this.option;e&&be(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){Me(["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=Ie(this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(e){return(e.get("parallelIndex")||0)===this.componentIndex}),this);Me(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}(ff),FB=QB,WB=function(e){function t(t,n,r,o,i){var a=e.call(this,t,n,r)||this;return a.type=o||"value",a.axisIndex=i,a}return Q(t,e),t.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},t}(SC),HB=WB;function ZB(e,t,n,r,o,i){e=e||0;var a=n[1]-n[0];if(null!=o&&(o=XB(o,[0,a])),null!=i&&(i=Math.max(i,null!=o?o:0)),"all"===r){var s=Math.abs(t[1]-t[0]);s=XB(s,[0,a]),o=i=XB(s,[o,i]),r=0}t[0]=XB(t[0],n),t[1]=XB(t[1],n);var l=GB(t,r);t[r]+=e;var u,c=o||0,d=n.slice();return l.sign<0?d[0]+=c:d[1]-=c,t[r]=XB(t[r],d),u=GB(t,r),null!=o&&(u.sign!==l.sign||u.span<o)&&(t[1-r]=t[r]+l.sign*o),u=GB(t,r),null!=i&&u.span>i&&(t[1-r]=t[r]+u.sign*i),t}function GB(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 XB(e,t){return Math.min(null!=t[1]?t[1]:1/0,Math.max(null!=t[0]?t[0]:-1/0,e))}var UB=Me,YB=Math.min,qB=Math.max,KB=Math.floor,JB=Math.ceil,ej=es,tj=Math.PI,nj=function(){function e(e,t,n){this.type="parallel",this._axesMap=ct(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var r=e.dimensions,o=e.parallelAxisIndex;UB(r,(function(e,n){var r=o[n],i=t.getComponent("parallelAxis",r),a=this._axesMap.set(e,new HB(e,Ak(i),[0,0],i.get("type"),r)),s="category"===a.type;a.onBand=s&&i.get("boundaryGap"),a.inverse=i.get("inverse"),i.axis=a,a.model=i,a.coordinateSystem=i.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,r=t.layoutBase,o=t.pixelDimIndex,i=e[1-o],a=e[o];return i>=n&&i<=n+t.axisLength&&a>=r&&a<=r+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 r=n.getData();UB(this.dimensions,(function(e){var t=this._axesMap.get(e);t.scale.unionExtentFromData(r,r.mapDimension(e)),Sk(t.scale,t.model)}),this)}}),this)},e.prototype.resize=function(e,t){this._rect=rf(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,r=["x","y"],o=["width","height"],i=t.get("layout"),a="horizontal"===i?0:1,s=n[o[a]],l=[0,s],u=this.dimensions.length,c=rj(t.get("axisExpandWidth"),l),d=rj(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=rj(p[1]-p[0],l),p[1]=p[0]+e;else{e=rj(c*(d-1),l);var f=t.get("axisExpandCenter")||KB(u/2);p=[c*f-e/2],p[1]=p[0]+e}var g=(s-e)/(u-d);g<3&&(g=0);var m=[KB(ej(p[0]/c,1))+1,JB(ej(p[1]/c,1))-1],v=g/c*p[0];return{layout:i,pixelDimIndex:a,layoutBase:n[r[a]],layoutLength:s,axisBase:n[r[1-a]],axisLength:n[o[1-a]],axisExpandable:h,axisExpandWidth:c,axisCollapseWidth:g,axisExpandWindow:p,axisCount:u,winInnerIndices:m,axisExpandWindow0Pos:v}},e.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,n=this.dimensions,r=this._makeLayoutInfo(),o=r.layout;t.each((function(e){var t=[0,r.axisLength],n=e.inverse?1:0;e.setExtent(t[n],t[1-n])})),UB(n,(function(t,n){var i=(r.axisExpandable?ij:oj)(n,r),a={horizontal:{x:i.position,y:r.axisLength},vertical:{x:0,y:i.position}},s={horizontal:tj/2,vertical:0},l=[a[o].x+e.x,a[o].y+e.y],u=s[o],c=On();Mn(c,c,u),Cn(c,c,l),this._axesLayout[t]={position:l,rotation:u,transform:c,axisNameAvailableWidth:i.axisNameAvailableWidth,axisLabelShow:i.axisLabelShow,nameTruncateMaxWidth:i.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,r){null==n&&(n=0),null==r&&(r=e.count());var o=this._axesMap,i=this.dimensions,a=[],s=[];Me(i,(function(t){a.push(e.mapDimension(t)),s.push(o.get(t).model)}));for(var l=this.hasAxisBrushed(),u=n;u<r;u++){var c=void 0;if(l){c="active";for(var d=e.getValues(a,u),h=0,p=i.length;h<p;h++){var f=s[h].getActiveState(d[h]);if("inactive"===f){c="inactive";break}}}else c="normal";t(c,u)}},e.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,n=!1,r=0,o=e.length;r<o;r++)"normal"!==t.get(e[r]).model.getActiveState()&&(n=!0);return n},e.prototype.axisCoordToPoint=function(e,t){var n=this._axesLayout[t];return jb([e,0],n.transform)},e.prototype.getAxisLayout=function(e){return ye(this._axesLayout[e])},e.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),n=t.pixelDimIndex,r=t.axisExpandWindow.slice(),o=r[1]-r[0],i=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:r};var a,s=e[n]-t.layoutBase-t.axisExpandWindow0Pos,l="slide",u=t.axisCollapseWidth,c=this._model.get("axisExpandSlideTriggerArea"),d=null!=c[0];if(u)d&&u&&s<o*c[0]?(l="jump",a=s-o*c[2]):d&&u&&s>o*(1-c[0])?(l="jump",a=s-o*(1-c[2])):(a=s-o*c[1])>=0&&(a=s-o*(1-c[1]))<=0&&(a=0),a*=t.axisExpandWidth/u,a?ZB(a,r,i,"all"):l="none";else{var h=r[1]-r[0],p=i[1]*s/h;r=[qB(0,p-h/2)],r[1]=YB(i[1],r[0]+h),r[0]=r[1]-h}return{axisExpandWindow:r,behavior:l}},e}();function rj(e,t){return YB(qB(e,t[0]),t[1])}function oj(e,t){var n=t.layoutLength/(t.axisCount-1);return{position:n*e,axisNameAvailableWidth:n,axisLabelShow:!0}}function ij(e,t){var n,r,o=t.layoutLength,i=t.axisExpandWidth,a=t.axisCount,s=t.axisCollapseWidth,l=t.winInnerIndices,u=s,c=!1;return e<l[0]?(n=e*s,r=s):e<=l[1]?(n=t.axisExpandWindow0Pos+e*i-t.axisExpandWindow[0],u=i,c=!0):(n=o-(a-1-e)*s,r=s),{position:n,axisNameAvailableWidth:u,axisLabelShow:c,nameTruncateMaxWidth:r}}var aj=nj;function sj(e,t){var n=[];return e.eachComponent("parallel",(function(r,o){var i=new aj(r,e,t);i.name="parallel_"+o,i.resize(r,t),r.coordinateSystem=i,i.model=r,n.push(i)})),e.eachSeries((function(e){if("parallel"===e.get("coordinateSystem")){var t=e.getReferringComponents("parallel",Ks).models[0];e.coordinateSystem=t.coordinateSystem}})),n}var lj={create:sj},uj=lj,cj=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.activeIntervals=[],n}return Q(t,e),t.prototype.getAreaSelectStyle=function(){return _l([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(e){var t=this.activeIntervals=ye(e);if(t)for(var n=t.length-1;n>=0;n--)ts(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 r=0,o=t.length;r<o;r++)if(t[r][0]<=e&&e<=t[r][1])return"active";return"inactive"},t}(ff);ke(cj,Rk);var dj=cj,hj=!0,pj=Math.min,fj=Math.max,gj=Math.pow,mj=1e4,vj=6,yj=6,bj="globalPan",_j={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},xj={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},wj={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},Oj=0,Sj=function(e){function t(t){var n=e.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=t,n.group=new Da,n._uid="brushController_"+Oj++,Me(nQ,(function(e,t){this._handlers[t]=Re(e,this)}),n),n}return Q(t,e),t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var t=this._zr;this._enableGlobalPan||uD(t,bj,this._uid),Me(this._handlers,(function(e,n){t.on(n,e)})),this._brushType=e.brushType,this._brushOption=be(ye(wj),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;cD(e,bj,this._uid),Me(this._handlers,(function(t,n){e.off(n,t)})),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var t=this._panels={};Me(e,(function(e){t[e.panelId]=ye(e)}))}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var t=this.group;return this._zr.add(t),t.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=t.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=Te(e,(function(e){return be(ye(wj),e,!0)}));var t="\0-brush-index-",n=this._covers,r=this._covers=[],o=this,i=this._creatingCover;return new gS(n,e,s,a).add(l).update(l).remove(u).execute(),this;function a(e,n){return(null!=e.id?e.id:t+n)+"-"+e.brushType}function s(e,t){return a(e.__brushOption,t)}function l(t,a){var s=e[t];if(null!=a&&n[a]===i)r[t]=n[a];else{var l=r[t]=null!=a?(n[a].__brushOption=s,n[a]):kj(o,Aj(o,s));Tj(o,l)}}function u(e){n[e]!==i&&o.group.remove(n[e])}},t.prototype.unmount=function(){return this.enableBrush(!1),Ej(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(Zt);function Aj(e,t){var n=iQ[t.brushType].createCover(e,t);return n.__brushOption=t,Mj(n,t),e.group.add(n),n}function kj(e,t){var n=Pj(t);return n.endCreating&&(n.endCreating(e,t),Mj(t,t.__brushOption)),t}function Cj(e,t){var n=t.__brushOption;Pj(t).updateCoverShape(e,t,n.range,n)}function Mj(e,t){var n=t.z;null==n&&(n=mj),e.traverse((function(e){e.z=n,e.z2=n}))}function Tj(e,t){Pj(t).updateCommon(e,t),Cj(e,t)}function Pj(e){return iQ[e.__brushOption.brushType]}function Ij(e,t,n){var r,o=e._panels;if(!o)return hj;var i=e._transform;return Me(o,(function(e){e.isTargetByCursor(t,n,i)&&(r=e)})),r}function $j(e,t){var n=e._panels;if(!n)return hj;var r=t.__brushOption.panelId;return null!=r?n[r]:hj}function Ej(e){var t=e._covers,n=t.length;return Me(t,(function(t){e.group.remove(t)}),e),t.length=0,!!n}function Dj(e,t){var n=Te(e._covers,(function(e){var t=e.__brushOption,n=ye(t.range);return{brushType:t.brushType,panelId:t.panelId,range:n}}));e.trigger("brush",{areas:n,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function Rj(e){var t=e._track;if(!t.length)return!1;var n=t[t.length-1],r=t[0],o=n[0]-r[0],i=n[1]-r[1],a=gj(o*o+i*i,.5);return a>vj}function Nj(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function Lj(e,t,n,r){var o=new Da;return o.add(new Oc({name:"main",style:jj(n),silent:!0,draggable:!0,cursor:"move",drift:Ne(Zj,e,t,o,["n","s","w","e"]),ondragend:Ne(Dj,t,{isEnd:!0})})),Me(r,(function(n){o.add(new Oc({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Ne(Zj,e,t,o,n),ondragend:Ne(Dj,t,{isEnd:!0})}))})),o}function zj(e,t,n,r){var o=r.brushStyle.lineWidth||0,i=fj(o,yj),a=n[0][0],s=n[1][0],l=a-o/2,u=s-o/2,c=n[0][1],d=n[1][1],h=c-i+o/2,p=d-i+o/2,f=c-a,g=d-s,m=f+o,v=g+o;Bj(e,t,"main",a,s,f,g),r.transformable&&(Bj(e,t,"w",l,u,i,v),Bj(e,t,"e",h,u,i,v),Bj(e,t,"n",l,u,m,i),Bj(e,t,"s",l,p,m,i),Bj(e,t,"nw",l,u,i,i),Bj(e,t,"ne",h,u,i,i),Bj(e,t,"sw",l,p,i,i),Bj(e,t,"se",h,p,i,i))}function Vj(e,t){var n=t.__brushOption,r=n.transformable,o=t.childAt(0);o.useStyle(jj(n)),o.attr({silent:!r,cursor:r?"move":"default"}),Me([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(n){var o=t.childOfName(n.join("")),i=1===n.length?Wj(e,n[0]):Hj(e,n);o&&o.attr({silent:!r,invisible:!r,cursor:r?xj[i]+"-resize":null})}))}function Bj(e,t,n,r,o,i,a){var s=t.childOfName(n);s&&s.setShape(Yj(Uj(e,t,[[r,o],[r+i,o+a]])))}function jj(e){return we({strokeNoScale:!0},e.brushStyle)}function Qj(e,t,n,r){var o=[pj(e,n),pj(t,r)],i=[fj(e,n),fj(t,r)];return[[o[0],i[0]],[o[1],i[1]]]}function Fj(e){return Bb(e.group)}function Wj(e,t){var n={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},o=Qb(n[t],Fj(e));return r[o]}function Hj(e,t){var n=[Wj(e,t[0]),Wj(e,t[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}function Zj(e,t,n,r,o,i){var a=n.__brushOption,s=e.toRectRange(a.range),l=Xj(t,o,i);Me(r,(function(e){var t=_j[e];s[t[0]][t[1]]+=l[t[0]]})),a.range=e.fromRectRange(Qj(s[0][0],s[1][0],s[0][1],s[1][1])),Tj(t,n),Dj(t,{isEnd:!1})}function Gj(e,t,n,r){var o=t.__brushOption.range,i=Xj(e,n,r);Me(o,(function(e){e[0]+=i[0],e[1]+=i[1]})),Tj(e,t),Dj(e,{isEnd:!1})}function Xj(e,t,n){var r=e.group,o=r.transformCoordToLocal(t,n),i=r.transformCoordToLocal(0,0);return[o[0]-i[0],o[1]-i[1]]}function Uj(e,t,n){var r=$j(e,t);return r&&r!==hj?r.clipPath(n,e._transform):ye(n)}function Yj(e){var t=pj(e[0][0],e[1][0]),n=pj(e[0][1],e[1][1]),r=fj(e[0][0],e[1][0]),o=fj(e[0][1],e[1][1]);return{x:t,y:n,width:r-t,height:o-n}}function qj(e,t,n){if(e._brushType&&!oQ(e,t.offsetX,t.offsetY)){var r=e._zr,o=e._covers,i=Ij(e,t,n);if(!e._dragging)for(var a=0;a<o.length;a++){var s=o[a].__brushOption;if(i&&(i===hj||s.panelId===i.panelId)&&iQ[s.brushType].contain(o[a],n[0],n[1]))return}i&&r.setCursorStyle("crosshair")}}function Kj(e){var t=e.event;t.preventDefault&&t.preventDefault()}function Jj(e,t,n){return e.childOfName("main").contain(t,n)}function eQ(e,t,n,r){var o,i=e._creatingCover,a=e._creatingPanel,s=e._brushOption;if(e._track.push(n.slice()),Rj(e)||i){if(a&&!i){"single"===s.brushMode&&Ej(e);var l=ye(s);l.brushType=tQ(l.brushType,a),l.panelId=a===hj?null:a.panelId,i=e._creatingCover=Aj(e,l),e._covers.push(i)}if(i){var u=iQ[tQ(e._brushType,a)],c=i.__brushOption;c.range=u.getCreatingRange(Uj(e,i,e._track)),r&&(kj(e,i),u.updateCommon(e,i)),Cj(e,i),o={isEnd:r}}}else r&&"single"===s.brushMode&&s.removeOnClick&&Ij(e,t,n)&&Ej(e)&&(o={isEnd:r,removeOnClick:!0});return o}function tQ(e,t){return"auto"===e?t.defaultBrushType:e}var nQ={mousedown:function(e){if(this._dragging)rQ(this,e);else if(!e.target||!e.target.draggable){Kj(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null;var n=this._creatingPanel=Ij(this,e,t);n&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,n=e.offsetY,r=this.group.transformCoordToLocal(t,n);if(qj(this,e,r),this._dragging){Kj(e);var o=eQ(this,e,r,!1);o&&Dj(this,o)}},mouseup:function(e){rQ(this,e)}};function rQ(e,t){if(e._dragging){Kj(t);var n=t.offsetX,r=t.offsetY,o=e.group.transformCoordToLocal(n,r),i=eQ(e,t,o,!0);e._dragging=!1,e._track=[],e._creatingCover=null,i&&Dj(e,i)}}function oQ(e,t,n){var r=e._zr;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var iQ={lineX:aQ(0),lineY:aQ(1),rect:{createCover:function(e,t){function n(e){return e}return Lj({toRectRange:n,fromRectRange:n},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=Nj(e);return Qj(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,r){zj(e,t,n,r)},updateCommon:Vj,contain:Jj},polygon:{createCover:function(e,t){var n=new Da;return n.add(new Xy({name:"main",style:jj(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new Hy({name:"main",draggable:!0,drift:Ne(Gj,e,t),ondragend:Ne(Dj,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,r){t.childAt(0).setShape({points:Uj(e,t,n)})},updateCommon:Vj,contain:Jj}};function aQ(e){return{createCover:function(t,n){return Lj({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=Nj(t),r=pj(n[0][e],n[1][e]),o=fj(n[0][e],n[1][e]);return[r,o]},updateCoverShape:function(t,n,r,o){var i,a=$j(t,n);if(a!==hj&&a.getLinearBrushOtherExtent)i=a.getLinearBrushOtherExtent(e);else{var s=t._zr;i=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[r,i];e&&l.reverse(),zj(t,n,l,o)},updateCommon:Vj,contain:Jj}}var sQ=Sj;function lQ(e){return e=dQ(e),function(t){return Zb(t,e)}}function uQ(e,t){return e=dQ(e),function(n){var r=null!=t?t:n,o=r?e.width:e.height,i=r?e.x:e.y;return[i,i+(o||0)]}}function cQ(e,t,n){var r=dQ(e);return function(e,o){return r.contain(o[0],o[1])&&!wD(e,t,n)}}function dQ(e){return Fn.create(e)}var hQ=["axisLine","axisTickLabel","axisName"],pQ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Q(t,e),t.prototype.init=function(t,n){e.prototype.init.apply(this,arguments),(this._brushController=new sQ(n.getZr())).on("brush",Re(this._onBrush,this))},t.prototype.render=function(e,t,n,r){if(!fQ(e,t,r)){this.axisModel=e,this.api=n,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Da,this.group.add(this._axisGroup),e.get("show")){var i=mQ(e,t),a=i.coordinateSystem,s=e.getAreaSelectStyle(),l=s.width,u=e.axis.dim,c=a.getAxisLayout(u),d=xe({strokeContainThreshold:l},c),h=new pE(e,d);Me(hQ,h.add,h),this._axisGroup.add(h.getGroup()),this._refreshBrushController(d,s,e,i,l,n),Hb(o,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,t,n,r,o,i){var a=n.axis.getExtent(),s=a[1]-a[0],l=Math.min(30,.1*Math.abs(s)),u=Fn.create({x:a[0],y:-o/2,width:s,height:o});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:lQ(u),isTargetByCursor:cQ(u,i,r),getLinearBrushOtherExtent:uQ(u,0)}]).enableBrush({brushType:"lineX",brushStyle:t,removeOnClick:!0}).updateCovers(gQ(n))},t.prototype._onBrush=function(e){var t=e.areas,n=this.axisModel,r=n.axis,o=Te(t,(function(e){return[r.coordToData(e.range[0],!0),r.coordToData(e.range[1],!0)]}));(!n.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(Fv);function fQ(e,t,n){return n&&"axisAreaSelect"===n.type&&t.findComponents({mainType:"parallelAxis",query:n})[0]===e}function gQ(e){var t=e.axis;return Te(e.activeIntervals,(function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}}))}function mQ(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}var vQ=pQ,yQ={type:"axisAreaSelect",event:"axisAreaSelected"};function bQ(e){e.registerAction(yQ,(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 _Q={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function xQ(e){e.registerComponentView(jB),e.registerComponentModel(FB),e.registerCoordinateSystem("parallel",uj),e.registerPreprocessor(DB),e.registerComponentModel(dj),e.registerComponentView(vQ),D$(e,"parallel",dj,_Q),bQ(e)}function wQ(e){dS(xQ),e.registerChartView(kB),e.registerSeriesModel(PB),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,EB)}var OQ=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}(),SQ=function(e){function t(t){return e.call(this,t)||this}return Q(t,e),t.prototype.getDefaultShape=function(){return new OQ},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(){Ad(this)},t.prototype.downplay=function(){kd(this)},t}(ac),AQ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._focusAdjacencyDisabled=!1,n}return Q(t,e),t.prototype.render=function(e,t,n){var r=this,o=e.getGraph(),i=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,i.removeAll(),i.x=a.x,i.y=a.y,o.eachEdge((function(t){var n=new SQ,r=Qc(n);r.dataIndex=t.dataIndex,r.seriesIndex=e.seriesIndex,r.dataType="edge";var o,a,u,h,p,f,g,m,v=t.getModel(),y=v.getModel("lineStyle"),b=y.get("curveness"),_=t.node1.getLayout(),x=t.node1.getModel(),w=x.get("localX"),O=x.get("localY"),S=t.node2.getLayout(),A=t.node2.getModel(),k=A.get("localX"),C=A.get("localY"),M=t.getLayout();n.shape.extent=Math.max(1,M.dy),n.shape.orient=d,"vertical"===d?(o=(null!=w?w*s:_.x)+M.sy,a=(null!=O?O*l:_.y)+_.dy,u=(null!=k?k*s:S.x)+M.ty,h=null!=C?C*l:S.y,p=o,f=a*(1-b)+h*b,g=u,m=a*b+h*(1-b)):(o=(null!=w?w*s:_.x)+_.dx,a=(null!=O?O*l:_.y)+M.sy,u=null!=k?k*s:S.x,h=(null!=C?C*l:S.y)+M.ty,p=o*(1-b)+u*b,f=a,g=o*b+u*(1-b),m=h),n.setShape({x1:o,y1:a,x2:u,y2:h,cpx1:p,cpy1:f,cpx2:g,cpy2:m}),n.useStyle(y.getItemStyle()),kQ(n.style,d,t);var T=""+v.get("value"),P=vh(v,"edgeLabel");mh(n,P,{labelFetcher:{getFormattedLabel:function(t,n,r,o,i,a){return e.getFormattedLabel(t,n,"edge",o,Ke(i,P.normal&&P.normal.get("formatter"),T),a)}},labelDataIndex:t.dataIndex,defaultText:T}),n.setTextConfig({position:"inside"});var I=v.getModel("emphasis");Xd(n,v,"lineStyle",(function(e){var n=e.getItemStyle();return kQ(n,d,t),n})),i.add(n),c.setItemGraphicEl(t.dataIndex,n);var $=I.get("focus");Wd(n,"adjacency"===$?t.getAdjacentDataIndices():"trajectory"===$?t.getTrajectoryDataIndices():$,I.get("blurScope"),I.get("disabled"))})),o.eachNode((function(t){var n=t.getLayout(),r=t.getModel(),o=r.get("localX"),a=r.get("localY"),c=r.getModel("emphasis"),d=r.get(["itemStyle","borderRadius"])||0,h=new Oc({shape:{x:null!=o?o*s:n.x,y:null!=a?a*l:n.y,width:n.dx,height:n.dy,r:d},style:r.getModel("itemStyle").getItemStyle(),z2:10});mh(h,vh(r),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(t,n,"node")}},labelDataIndex:t.dataIndex,defaultText:t.id}),h.disableLabelAnimation=!0,h.setStyle("fill",t.getVisual("color")),h.setStyle("decal",t.getVisual("style").decal),Xd(h,r),i.add(h),u.setItemGraphicEl(t.dataIndex,h),Qc(h).dataType="node";var p=c.get("focus");Wd(h,"adjacency"===p?t.getAdjacentDataIndices():"trajectory"===p?t.getTrajectoryDataIndices():p,c.get("blurScope"),c.get("disabled"))})),u.eachItemGraphicEl((function(t,o){var i=u.getItemModel(o);i.get("draggable")&&(t.drift=function(t,i){r._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=i,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:u.getRawIndex(o),localX:this.shape.x/s,localY:this.shape.y/l})},t.ondragend=function(){r._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor="move")})),!this._data&&e.isAnimationEnabled()&&i.setClipPath(CQ(i.getBoundingRect(),e,(function(){i.removeClipPath()}))),this._data=e.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(c_);function kQ(e,t,n){switch(e.fill){case"source":e.fill=n.node1.getVisual("color"),e.decal=n.node1.getVisual("style").decal;break;case"target":e.fill=n.node2.getVisual("color"),e.decal=n.node2.getVisual("style").decal;break;case"gradient":var r=n.node1.getVisual("color"),o=n.node2.getVisual("color");Ve(r)&&Ve(o)&&(e.fill=new hb(0,0,+("horizontal"===t),+("vertical"===t),[{color:r,offset:0},{color:o,offset:1}]))}}function CQ(e,t,n){var r=new Oc({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return ah(r,{shape:{width:e.width+20}},t,n),r}var MQ=AQ,TQ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Q(t,e),t.prototype.getInitialData=function(e,t){var n=e.edges||e.links,r=e.data||e.nodes,o=e.levels;this.levelModels=[];for(var i=this.levelModels,a=0;a<o.length;a++)null!=o[a].depth&&o[a].depth>=0&&(i[o[a].depth]=new Qh(o[a],this,t));if(r&&n){var s=ZV(r,n,this,!0,l);return s.data}function l(e,t){e.wrapMethod("getItemModel",(function(e,t){var n=e.parentModel,r=n.getData().getItemLayout(t);if(r){var o=r.depth,i=n.levelModels[o];i&&(e.parentModel=i)}return e})),t.wrapMethod("getItemModel",(function(e,t){var n=e.parentModel,r=n.getGraph().getEdgeByIndex(t),o=r.node1.getLayout();if(o){var i=o.depth,a=n.levelModels[i];a&&(e.parentModel=a)}return e}))}},t.prototype.setNodePosition=function(e,t){var n=this.option.data||this.option.nodes,r=n[e];r.localX=t[0],r.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 r(e){return isNaN(e)||null==e}if("edge"===n){var o=this.getDataParams(e,n),i=o.data,a=o.value,s=i.source+" -- "+i.target;return dv("nameValue",{name:s,value:a,noValue:r(a)})}var l=this.getGraph().getNodeByIndex(e),u=l.getLayout().value,c=this.getDataParams(e,n).data.name;return dv("nameValue",{name:null!=c?c+"":null,value:u,noValue:r(u)})},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(t,n){var r=e.prototype.getDataParams.call(this,t,n);if(null==r.value&&"node"===n){var o=this.getGraph().getNodeByIndex(t),i=o.getLayout().value;r.value=i}return r},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},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}(jv),PQ=TQ;function IQ(e,t){e.eachSeriesByType("sankey",(function(e){var n=e.get("nodeWidth"),r=e.get("nodeGap"),o=$Q(e,t);e.layoutInfo=o;var i=o.width,a=o.height,s=e.getGraph(),l=s.nodes,u=s.edges;DQ(l);var c=Ie(l,(function(e){return 0===e.getLayout().value})),d=0!==c.length?0:e.get("layoutIterations"),h=e.get("orient"),p=e.get("nodeAlign");EQ(l,u,n,r,i,a,d,h,p)}))}function $Q(e,t){return rf(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function EQ(e,t,n,r,o,i,a,s,l){RQ(e,t,n,o,i,s,l),BQ(e,t,i,o,r,a,s),JQ(e,s)}function DQ(e){Me(e,(function(e){var t=qQ(e.outEdges,YQ),n=qQ(e.inEdges,YQ),r=e.getValue()||0,o=Math.max(t,n,r);e.setLayout({value:o},!0)}))}function RQ(e,t,n,r,o,i,a){for(var s=[],l=[],u=[],c=[],d=0,h=0;h<t.length;h++)s[h]=1;for(h=0;h<e.length;h++)l[h]=e[h].inEdges.length,0===l[h]&&u.push(e[h]);var p=-1;while(u.length){for(var f=0;f<u.length;f++){var g=u[f],m=g.hostGraph.data.getRawDataItem(g.dataIndex),v=null!=m.depth&&m.depth>=0;v&&m.depth>p&&(p=m.depth),g.setLayout({depth:v?m.depth:d},!0),"vertical"===i?g.setLayout({dy:n},!0):g.setLayout({dx:n},!0);for(var y=0;y<g.outEdges.length;y++){var b=g.outEdges[y],_=t.indexOf(b);s[_]=0;var x=b.node2,w=e.indexOf(x);0===--l[w]&&c.indexOf(x)<0&&c.push(x)}}++d,u=c,c=[]}for(h=0;h<s.length;h++)if(1===s[h])throw new Error("Sankey is a DAG, the original data has cycle!");var O=p>d-1?p:d-1;a&&"left"!==a&&LQ(e,a,i,O);var S="vertical"===i?(o-n)/O:(r-n)/O;VQ(e,S,i)}function NQ(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return null!=t.depth&&t.depth>=0}function LQ(e,t,n,r){if("right"===t){var o=[],i=e,a=0;while(i.length){for(var s=0;s<i.length;s++){var l=i[s];l.setLayout({skNodeHeight:a},!0);for(var u=0;u<l.inEdges.length;u++){var c=l.inEdges[u];o.indexOf(c.node1)<0&&o.push(c.node1)}}i=o,o=[],++a}Me(e,(function(e){NQ(e)||e.setLayout({depth:Math.max(0,r-e.getLayout().skNodeHeight)},!0)}))}else"justify"===t&&zQ(e,r)}function zQ(e,t){Me(e,(function(e){NQ(e)||e.outEdges.length||e.setLayout({depth:t},!0)}))}function VQ(e,t,n){Me(e,(function(e){var r=e.getLayout().depth*t;"vertical"===n?e.setLayout({y:r},!0):e.setLayout({x:r},!0)}))}function BQ(e,t,n,r,o,i,a){var s=jQ(e,a);QQ(s,t,n,r,o,a),FQ(s,o,n,r,a);for(var l=1;i>0;i--)l*=.99,WQ(s,l,a),FQ(s,o,n,r,a),KQ(s,l,a),FQ(s,o,n,r,a)}function jQ(e,t){var n=[],r="vertical"===t?"y":"x",o=ol(e,(function(e){return e.getLayout()[r]}));return o.keys.sort((function(e,t){return e-t})),Me(o.keys,(function(e){n.push(o.buckets.get(e))})),n}function QQ(e,t,n,r,o,i){var a=1/0;Me(e,(function(e){var t=e.length,s=0;Me(e,(function(e){s+=e.getLayout().value}));var l="vertical"===i?(r-(t-1)*o)/s:(n-(t-1)*o)/s;l<a&&(a=l)})),Me(e,(function(e){Me(e,(function(e,t){var n=e.getLayout().value*a;"vertical"===i?(e.setLayout({x:t},!0),e.setLayout({dx:n},!0)):(e.setLayout({y:t},!0),e.setLayout({dy:n},!0))}))})),Me(t,(function(e){var t=+e.getValue()*a;e.setLayout({dy:t},!0)}))}function FQ(e,t,n,r,o){var i="vertical"===o?"x":"y";Me(e,(function(e){var a,s,l;e.sort((function(e,t){return e.getLayout()[i]-t.getLayout()[i]}));for(var u=0,c=e.length,d="vertical"===o?"dx":"dy",h=0;h<c;h++)s=e[h],l=u-s.getLayout()[i],l>0&&(a=s.getLayout()[i]+l,"vertical"===o?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[i]+s.getLayout()[d]+t;var p="vertical"===o?r:n;if(l=u-t-p,l>0){a=s.getLayout()[i]-l,"vertical"===o?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()[i]+s.getLayout()[d]+t-u,l>0&&(a=s.getLayout()[i]-l,"vertical"===o?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[i]}}))}function WQ(e,t,n){Me(e.slice().reverse(),(function(e){Me(e,(function(e){if(e.outEdges.length){var r=qQ(e.outEdges,HQ,n)/qQ(e.outEdges,YQ);if(isNaN(r)){var o=e.outEdges.length;r=o?qQ(e.outEdges,ZQ,n)/o:0}if("vertical"===n){var i=e.getLayout().x+(r-UQ(e,n))*t;e.setLayout({x:i},!0)}else{var a=e.getLayout().y+(r-UQ(e,n))*t;e.setLayout({y:a},!0)}}}))}))}function HQ(e,t){return UQ(e.node2,t)*e.getValue()}function ZQ(e,t){return UQ(e.node2,t)}function GQ(e,t){return UQ(e.node1,t)*e.getValue()}function XQ(e,t){return UQ(e.node1,t)}function UQ(e,t){return"vertical"===t?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function YQ(e){return e.getValue()}function qQ(e,t,n){var r=0,o=e.length,i=-1;while(++i<o){var a=+t(e[i],n);isNaN(a)||(r+=a)}return r}function KQ(e,t,n){Me(e,(function(e){Me(e,(function(e){if(e.inEdges.length){var r=qQ(e.inEdges,GQ,n)/qQ(e.inEdges,YQ);if(isNaN(r)){var o=e.inEdges.length;r=o?qQ(e.inEdges,XQ,n)/o:0}if("vertical"===n){var i=e.getLayout().x+(r-UQ(e,n))*t;e.setLayout({x:i},!0)}else{var a=e.getLayout().y+(r-UQ(e,n))*t;e.setLayout({y:a},!0)}}}))}))}function JQ(e,t){var n="vertical"===t?"x":"y";Me(e,(function(e){e.outEdges.sort((function(e,t){return e.node2.getLayout()[n]-t.node2.getLayout()[n]})),e.inEdges.sort((function(e,t){return e.node1.getLayout()[n]-t.node1.getLayout()[n]}))})),Me(e,(function(e){var t=0,n=0;Me(e.outEdges,(function(e){e.setLayout({sy:t},!0),t+=e.getLayout().dy})),Me(e.inEdges,(function(e){e.setLayout({ty:n},!0),n+=e.getLayout().dy}))}))}function eF(e){e.eachSeriesByType("sankey",(function(e){var t=e.getGraph(),n=t.nodes,r=t.edges;if(n.length){var o=1/0,i=-1/0;Me(n,(function(e){var t=e.getLayout().value;t<o&&(o=t),t>i&&(i=t)})),Me(n,(function(t){var n=new JL({type:"color",mappingMethod:"linear",dataExtent:[o,i],visual:e.get("color")}),r=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",r),t.setVisual("style",{fill:r}))}))}r.length&&Me(r,(function(e){var t=e.getModel().get("lineStyle");e.setVisual("style",t)}))}))}function tF(e){e.registerChartView(MQ),e.registerSeriesModel(PQ),e.registerLayout(IQ),e.registerVisual(eF),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 nF=function(){function e(){}return e.prototype.getInitialData=function(e,t){var n,r,o=t.getComponent("xAxis",this.get("xAxisIndex")),i=t.getComponent("yAxis",this.get("yAxisIndex")),a=o.get("type"),s=i.get("type");"category"===a?(e.layout="horizontal",n=o.getOrdinalMeta(),r=!0):"category"===s?(e.layout="vertical",n=i.getOrdinalMeta(),r=!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=[o,i],p=h[u].get("type"),f=h[1-u].get("type"),g=e.data;if(g&&r){var m=[];Me(g,(function(e,t){var n;Le(e)?(n=e.slice(),e.unshift(t)):Le(e.value)?(n=xe({},e),n.value=n.value.slice(),e.value.unshift(t)):n=e,m.push(n)})),e.data=m}var v=this.defaultValueDimensions,y=[{name:c,type:bS(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:bS(f),dimsDef:v.slice()}];return s$(this,{coordDimensions:y,dimensionsCount:v.length+1,encodeDefaulter:Ne(Pf,y,this)})},e.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},e}(),rF=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 Q(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}(jv);ke(rF,nF,!0);var oF=rF,iF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Q(t,e),t.prototype.render=function(e,t,n){var r=e.getData(),o=this.group,i=this._data;this._data||o.removeAll();var a="horizontal"===e.get("layout")?1:0;r.diff(i).add((function(e){if(r.hasValue(e)){var t=r.getItemLayout(e),n=lF(t,r,e,a,!0);r.setItemGraphicEl(e,n),o.add(n)}})).update((function(e,t){var n=i.getItemGraphicEl(t);if(r.hasValue(e)){var s=r.getItemLayout(e);n?(dh(n),uF(s,n,r,e)):n=lF(s,r,e,a),o.add(n),r.setItemGraphicEl(e,n)}else o.remove(n)})).remove((function(e){var t=i.getItemGraphicEl(e);t&&o.remove(t)})).execute(),this._data=r},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}(c_),aF=function(){function e(){}return e}(),sF=function(e){function t(t){var n=e.call(this,t)||this;return n.type="boxplotBoxPath",n}return Q(t,e),t.prototype.getDefaultShape=function(){return new aF},t.prototype.buildPath=function(e,t){var n=t.points,r=0;for(e.moveTo(n[r][0],n[r][1]),r++;r<4;r++)e.lineTo(n[r][0],n[r][1]);for(e.closePath();r<n.length;r++)e.moveTo(n[r][0],n[r][1]),r++,e.lineTo(n[r][0],n[r][1])},t}(ac);function lF(e,t,n,r,o){var i=e.ends,a=new sF({shape:{points:o?cF(i,r,e):i}});return uF(e,a,t,n,o),a}function uF(e,t,n,r,o){var i=n.hostModel,a=l[o?"initProps":"updateProps"];a(t,{shape:{points:e.ends}},i,r),t.useStyle(n.getItemVisual(r,"style")),t.style.strokeNoScale=!0,t.z2=100;var s=n.getItemModel(r),u=s.getModel("emphasis");Xd(t,s),Wd(t,u.get("focus"),u.get("blurScope"),u.get("disabled"))}function cF(e,t,n){return Te(e,(function(e){return e=e.slice(),e[t]=n.initBaseline,e}))}var dF=iF,hF=Me;function pF(e){var t=fF(e);hF(t,(function(e){var t=e.seriesModels;t.length&&(gF(e),hF(t,(function(t,n){mF(t,e.boxOffsetList[n],e.boxWidthList[n])})))}))}function fF(e){var t=[],n=[];return e.eachSeriesByType("boxplot",(function(e){var r=e.getBaseAxis(),o=Se(n,r);o<0&&(o=n.length,n[o]=r,t[o]={axis:r,seriesModels:[]}),t[o].seriesModels.push(e)})),t}function gF(e){var t,n=e.axis,r=e.seriesModels,o=r.length,i=e.boxWidthList=[],a=e.boxOffsetList=[],s=[];if("category"===n.type)t=n.getBandWidth();else{var l=0;hF(r,(function(e){l=Math.max(l,e.getData().count())}));var u=n.getExtent();t=Math.abs(u[1]-u[0])/l}hF(r,(function(e){var n=e.get("boxWidth");Le(n)||(n=[n,n]),s.push([Ja(n[0],t)||0,Ja(n[1],t)||0])}));var c=.8*t-2,d=c/o*.3,h=(c-d*(o-1))/o,p=h/2-c/2;hF(r,(function(e,t){a.push(p),p+=d+h,i.push(Math.min(Math.max(h,s[t][0]),s[t][1]))}))}function mF(e,t,n){var r=e.coordinateSystem,o=e.getData(),i=n/2,a="horizontal"===e.get("layout")?0:1,s=1-a,l=["x","y"],u=o.mapDimension(l[a]),c=o.mapDimensionsAll(l[s]);if(!(null==u||c.length<5))for(var d=0;d<o.count();d++){var h=o.get(u,d),p=b(h,c[2],d),f=b(h,c[0],d),g=b(h,c[1],d),m=b(h,c[3],d),v=b(h,c[4],d),y=[];_(y,g,!1),_(y,m,!0),y.push(f,g,v,m),x(y,f),x(y,v),x(y,p),o.setItemLayout(d,{initBaseline:p[s],ends:y})}function b(e,n,i){var l,u=o.get(n,i),c=[];return c[a]=e,c[s]=u,isNaN(e)||isNaN(u)?l=[NaN,NaN]:(l=r.dataToPoint(c),l[a]+=t),l}function _(e,t,n){var r=t.slice(),o=t.slice();r[a]+=i,o[a]-=i,n?e.push(r,o):e.push(o,r)}function x(e,t){var n=t.slice(),r=t.slice();n[a]-=i,r[a]+=i,e.push(n,r)}}function vF(e,t){t=t||{};for(var n=[],r=[],o=t.boundIQR,i="none"===o||0===o,a=0;a<e.length;a++){var s=ts(e[a].slice()),l=ms(s,.25),u=ms(s,.5),c=ms(s,.75),d=s[0],h=s[s.length-1],p=(null==o?1.5:o)*(c-l),f=i?d:Math.max(d,l-p),g=i?h:Math.min(h,c+p),m=t.itemNameFormatter,v=ze(m)?m({value:a}):Ve(m)?m.replace("{value}",a+""):a+"";n.push([v,f,l,u,c,g]);for(var y=0;y<s.length;y++){var b=s[y];if(b<f||b>g){var _=[v,b];r.push(_)}}}return{boxData:n,outliers:r}}var yF={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==_f){var n="";0,Sm(n)}var r=vF(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:r.boxData},{data:r.outliers}]}};function bF(e){e.registerSeriesModel(oF),e.registerChartView(dF),e.registerLayout(pF),e.registerTransform(yF)}var _F=["color","borderColor"],xF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Q(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,r){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,t):this._incrementalRenderNormal(e,t)},t.prototype.eachRendered=function(e){t_(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,r=this.group,o=t.getLayout("isSimpleBox"),i=e.get("clip",!0),a=e.coordinateSystem,s=a.getArea&&a.getArea();this._data||r.removeAll(),t.diff(n).add((function(n){if(t.hasValue(n)){var a=t.getItemLayout(n);if(i&&AF(s,a))return;var l=SF(a,n,!0);ah(l,{shape:{points:a.ends}},e,n),kF(l,t,n,o),r.add(l),t.setItemGraphicEl(n,l)}})).update((function(a,l){var u=n.getItemGraphicEl(l);if(t.hasValue(a)){var c=t.getItemLayout(a);i&&AF(s,c)?r.remove(u):(u?(ih(u,{shape:{points:c.ends}},e,a),dh(u)):u=SF(c,a),kF(u,t,a,o),r.add(u),t.setItemGraphicEl(a,u))}else r.remove(u)})).remove((function(e){var t=n.getItemGraphicEl(e);t&&r.remove(t)})).execute(),this._data=t},t.prototype._renderLarge=function(e){this._clear(),PF(e,this.group);var t=e.get("clip",!0)?RP(e.coordinateSystem,!1,e):null;t?this.group.setClipPath(t):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,t){var n,r=t.getData(),o=r.getLayout("isSimpleBox");while(null!=(n=e.next())){var i=r.getItemLayout(n),a=SF(i,n);kF(a,r,n,o),a.incremental=!0,this.group.add(a),this._progressiveEls.push(a)}},t.prototype._incrementalRenderLarge=function(e,t){PF(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}(c_),wF=function(){function e(){}return e}(),OF=function(e){function t(t){var n=e.call(this,t)||this;return n.type="normalCandlestickBox",n}return Q(t,e),t.prototype.getDefaultShape=function(){return new wF},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}(ac);function SF(e,t,n){var r=e.ends;return new OF({shape:{points:n?CF(r,e):r},z2:100})}function AF(e,t){for(var n=!0,r=0;r<t.ends.length;r++)if(e.contain(t.ends[r][0],t.ends[r][1])){n=!1;break}return n}function kF(e,t,n,r){var o=t.getItemModel(n);e.useStyle(t.getItemVisual(n,"style")),e.style.strokeNoScale=!0,e.__simpleBox=r,Xd(e,o)}function CF(e,t){return Te(e,(function(e){return e=e.slice(),e[1]=t.initBaseline,e}))}var MF=function(){function e(){}return e}(),TF=function(e){function t(t){var n=e.call(this,t)||this;return n.type="largeCandlestickBox",n}return Q(t,e),t.prototype.getDefaultShape=function(){return new MF},t.prototype.buildPath=function(e,t){for(var n=t.points,r=0;r<n.length;)if(this.__sign===n[r++]){var o=n[r++];e.moveTo(o,n[r++]),e.lineTo(o,n[r++])}else r+=3},t}(ac);function PF(e,t,n,r){var o=e.getData(),i=o.getLayout("largePoints"),a=new TF({shape:{points:i},__sign:1,ignoreCoarsePointer:!0});t.add(a);var s=new TF({shape:{points:i},__sign:-1,ignoreCoarsePointer:!0});t.add(s);var l=new TF({shape:{points:i},__sign:0,ignoreCoarsePointer:!0});t.add(l),IF(1,a,e,o),IF(-1,s,e,o),IF(0,l,e,o),r&&(a.incremental=!0,s.incremental=!0),n&&n.push(a,s)}function IF(e,t,n,r){var o=n.get(["itemStyle",e>0?"borderColor":"borderColor0"])||n.get(["itemStyle",e>0?"color":"color0"]);0===e&&(o=n.get(["itemStyle","borderColorDoji"]));var i=n.getModel("itemStyle").getItemStyle(_F);t.useStyle(i),t.style.fill=null,t.style.stroke=o}var $F=xF,EF=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 Q(t,e),t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,t,n){var r=t.getItemLayout(e);return r&&n.rect(r.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",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(jv);ke(EF,nF,!0);var DF=EF;function RF(e){e&&Le(e.series)&&Me(e.series,(function(e){Qe(e)&&"k"===e.type&&(e.type="candlestick")}))}var NF=["itemStyle","borderColor"],LF=["itemStyle","borderColor0"],zF=["itemStyle","borderColorDoji"],VF=["itemStyle","color"],BF=["itemStyle","color0"],jF={seriesType:"candlestick",plan:Wv(),performRawSeries:!0,reset:function(e,t){function n(e,t){return t.get(e>0?VF:BF)}function r(e,t){return t.get(0===e?zF:e>0?NF:LF)}if(!t.isSeriesFiltered(e)){var o=e.pipelineContext.large;return!o&&{progress:function(e,t){var o;while(null!=(o=e.next())){var i=t.getItemModel(o),a=t.getItemLayout(o).sign,s=i.getItemStyle();s.fill=n(a,i),s.stroke=r(a,i)||s.fill;var l=t.ensureUniqueItemVisual(o,"style");xe(l,s)}}}}}},QF=jF,FF={seriesType:"candlestick",plan:Wv(),reset:function(e){var t=e.coordinateSystem,n=e.getData(),r=HF(e,n),o=0,i=1,a=["x","y"],s=n.getDimensionIndex(n.mapDimension(a[o])),l=Te(n.mapDimensionsAll(a[i]),n.getDimensionIndex,n),u=l[0],c=l[1],d=l[2],h=l[3];if(n.setLayout({candleWidth:r,isSimpleBox:r<=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),m=l.get(d,a),v=l.get(h,a),y=Math.min(f,g),b=Math.max(f,g),_=C(y,p),x=C(b,p),w=C(m,p),O=C(v,p),S=[];M(S,x,0),M(S,_,1),S.push(P(O),P(x),P(w),P(_));var A=n.getItemModel(a),k=!!A.get(["itemStyle","borderColorDoji"]);n.setItemLayout(a,{sign:WF(l,a,f,g,c,k),initBaseline:f>g?x[i]:_[i],ends:S,brushRect:T(m,v,p)})}function C(e,n){var r=[];return r[o]=n,r[i]=e,isNaN(n)||isNaN(e)?[NaN,NaN]:t.dataToPoint(r)}function M(e,t,n){var i=t.slice(),a=t.slice();i[o]=Vb(i[o]+r/2,1,!1),a[o]=Vb(a[o]-r/2,1,!0),n?e.push(i,a):e.push(a,i)}function T(e,t,n){var a=C(e,n),s=C(t,n);return a[o]-=r/2,s[o]-=r/2,{x:a[0],y:a[1],width:i?r:s[0]-a[0],height:i?s[1]-a[1]:r}}function P(e){return e[o]=Vb(e[o],1),e}}function f(n,r){var a,l,p=EA(4*n.count),f=0,g=[],m=[],v=r.getStore(),y=!!e.get(["itemStyle","borderColorDoji"]);while(null!=(l=n.next())){var b=v.get(s,l),_=v.get(u,l),x=v.get(c,l),w=v.get(d,l),O=v.get(h,l);isNaN(b)||isNaN(w)||isNaN(O)?(p[f++]=NaN,f+=3):(p[f++]=WF(v,l,_,x,c,y),g[o]=b,g[i]=w,a=t.dataToPoint(g,null,m),p[f++]=a?a[0]:NaN,p[f++]=a?a[1]:NaN,g[i]=O,a=t.dataToPoint(g,null,m),p[f++]=a?a[1]:NaN)}r.setLayout("largePoints",p)}}};function WF(e,t,n,r,o,i){var a;return a=n>r?-1:n<r?1:i?0:t>0?e.get(o,t-1)<=r?1:-1:1,a}function HF(e,t){var n,r=e.getBaseAxis(),o="category"===r.type?r.getBandWidth():(n=r.getExtent(),Math.abs(n[1]-n[0])/t.count()),i=Ja(qe(e.get("barMaxWidth"),o),o),a=Ja(qe(e.get("barMinWidth"),1),o),s=e.get("barWidth");return null!=s?Ja(s,o):Math.max(Math.min(o/2,i),a)}var ZF=FF;function GF(e){e.registerChartView($F),e.registerSeriesModel(DF),e.registerPreprocessor(RF),e.registerVisual(QF),e.registerLayout(ZF)}function XF(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 UF=function(e){function t(t,n){var r=e.call(this)||this,o=new fP(t,n),i=new Da;return r.add(o),r.add(i),r.updateData(t,n),r}return Q(t,e),t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var t=e.symbolType,n=e.color,r=e.rippleNumber,o=this.childAt(1),i=0;i<r;i++){var a=Sx(t,-1,-1,2,2,n);a.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var s=-i/r*e.period+e.effectOffset;a.animate("",!0).when(e.period,{scaleX:e.rippleScale/2,scaleY:e.rippleScale/2}).delay(s).start(),a.animateStyle(!0).when(e.period,{opacity:0}).delay(s).start(),o.add(a)}XF(o,e)},t.prototype.updateEffectAnimation=function(e){for(var t=this._effectCfg,n=this.childAt(1),r=["symbolType","period","rippleScale","rippleNumber"],o=0;o<r.length;o++){var i=r[o];if(t[i]!==e[i])return this.stopEffectAnimation(),void this.startEffectAnimation(e)}XF(n,e)},t.prototype.highlight=function(){Ad(this)},t.prototype.downplay=function(){kd(this)},t.prototype.getSymbolType=function(){var e=this.childAt(0);return e&&e.getSymbolType()},t.prototype.updateData=function(e,t){var n=this,r=e.hostModel;this.childAt(0).updateData(e,t);var o=this.childAt(1),i=e.getItemModel(t),a=e.getItemVisual(t,"symbol"),s=Ax(e.getItemVisual(t,"symbolSize")),l=e.getItemVisual(t,"style"),u=l&&l.fill,c=i.getModel("emphasis");o.setScale(s),o.traverse((function(e){e.setStyle("fill",u)}));var d=kx(e.getItemVisual(t,"symbolOffset"),s);d&&(o.x=d[0],o.y=d[1]);var h=e.getItemVisual(t,"symbolRotate");o.rotation=(h||0)*Math.PI/180||0;var p={};p.showEffectOn=r.get("showEffectOn"),p.rippleScale=i.get(["rippleEffect","scale"]),p.brushType=i.get(["rippleEffect","brushType"]),p.period=1e3*i.get(["rippleEffect","period"]),p.effectOffset=t/e.count(),p.z=r.getShallow("z")||0,p.zlevel=r.getShallow("zlevel")||0,p.symbolType=a,p.color=u,p.rippleEffectColor=i.get(["rippleEffect","color"]),p.rippleNumber=i.get(["rippleEffect","number"]),"render"===p.showEffectOn?(this._effectCfg?this.updateEffectAnimation(p):this.startEffectAnimation(p),this._effectCfg=p):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(e){"emphasis"===e?"render"!==p.showEffectOn&&n.startEffectAnimation(p):"normal"===e&&"render"!==p.showEffectOn&&n.stopEffectAnimation()}),this._effectCfg=p,Wd(this,c.get("focus"),c.get("blurScope"),c.get("disabled"))},t.prototype.fadeOut=function(e){e&&e()},t}(Da),YF=UF,qF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Q(t,e),t.prototype.init=function(){this._symbolDraw=new bP(YF)},t.prototype.render=function(e,t,n){var r=e.getData(),o=this._symbolDraw;o.updateData(r,{clipShape:this._getClipShape(e)}),this.group.add(o.group)},t.prototype._getClipShape=function(e){var t=e.coordinateSystem,n=t&&t.getArea&&t.getArea();return e.get("clip",!0)?n:null},t.prototype.updateTransform=function(e,t,n){var r=e.getData();this.group.dirty();var o=nI("").reset(e,t,n);o.progress&&o.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout()},t.prototype._updateGroupTransform=function(e){var t=e.coordinateSystem;t&&t.getRoamTransform&&(this.group.transform=In(t.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t}(c_),KF=qF,JF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return Q(t,e),t.prototype.getInitialData=function(e,t){return cA(null,this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.type="series.effectScatter",t.dependencies=["grid","polar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},t}(jv),eW=JF;function tW(e){e.registerChartView(KF),e.registerSeriesModel(eW),e.registerLayout(nI("effectScatter"))}var nW=function(e){function t(t,n,r){var o=e.call(this)||this;return o.add(o.createLine(t,n,r)),o._updateEffectSymbol(t,n),o}return Q(t,e),t.prototype.createLine=function(e,t,n){return new wV(e,t,n)},t.prototype._updateEffectSymbol=function(e,t){var n=e.getItemModel(t),r=n.getModel("effect"),o=r.get("symbolSize"),i=r.get("symbol");Le(o)||(o=[o,o]);var a=e.getItemVisual(t,"style"),s=r.get("color")||a&&a.stroke,l=this.childAt(1);this._symbolType!==i&&(this.remove(l),l=Sx(i,-.5,-.5,1,1,s),l.z2=100,l.culling=!0,this.add(l)),l&&(l.setStyle("shadowColor",s),l.setStyle(r.getItemStyle(["color"])),l.scaleX=o[0],l.scaleY=o[1],l.setColor(s),this._symbolType=i,this._symbolScale=o,this._updateEffectAnimation(e,r,t))},t.prototype._updateEffectAnimation=function(e,t,n){var r=this.childAt(1);if(r){var o=e.getItemLayout(n),i=1e3*t.get("period"),a=t.get("loop"),s=t.get("roundTrip"),l=t.get("constantSpeed"),u=Ye(t.get("delay"),(function(t){return t/e.count()*i/3}));if(r.ignore=!0,this._updateAnimationPoints(r,o),l>0&&(i=this._getLineLength(r)/l*1e3),i!==this._period||a!==this._loop||s!==this._roundTrip){r.stopAnimation();var c=void 0;c=ze(u)?u(n):u,r.__t>0&&(c=-i*r.__t),this._animateSymbol(r,i,c,a,s)}this._period=i,this._loop=a,this._roundTrip=s}},t.prototype._animateSymbol=function(e,t,n,r,o){if(t>0){e.__t=0;var i=this,a=e.animate("",r).when(o?2*t:t,{__t:o?2:1}).delay(n).during((function(){i._updateSymbolPosition(e)}));r||a.done((function(){i.remove(e)})),a.start()}},t.prototype._getLineLength=function(e){return Dt(e.__p1,e.__cp1)+Dt(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,r=e.__cp1,o=e.__t<1?e.__t:2-e.__t,i=[e.x,e.y],a=i.slice(),s=Qr,l=Fr;i[0]=s(t[0],r[0],n[0],o),i[1]=s(t[1],r[1],n[1],o);var u=e.__t<1?l(t[0],r[0],n[0],o):l(n[0],r[0],t[0],1-o),c=e.__t<1?l(t[1],r[1],n[1],o):l(n[1],r[1],t[1],1-o);e.rotation=-Math.atan2(c,u)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==e.__lastT&&e.__lastT<e.__t?(e.scaleY=1.05*Dt(a,i),1===o&&(i[0]=a[0]+(i[0]-a[0])/2,i[1]=a[1]+(i[1]-a[1])/2)):1===e.__lastT?e.scaleY=2*Dt(t,i):e.scaleY=this._symbolScale[1]),e.__lastT=e.__t,e.ignore=!1,e.x=i[0],e.y=i[1]},t.prototype.updateLayout=function(e,t){this.childAt(0).updateLayout(e,t);var n=e.getItemModel(t).getModel("effect");this._updateEffectAnimation(e,n,t)},t}(Da),rW=nW,oW=function(e){function t(t,n,r){var o=e.call(this)||this;return o._createPolyline(t,n,r),o}return Q(t,e),t.prototype._createPolyline=function(e,t,n){var r=e.getItemLayout(t),o=new Xy({shape:{points:r}});this.add(o),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var r=e.hostModel,o=this.childAt(0),i={shape:{points:e.getItemLayout(t)}};ih(o,i,r,t),this._updateCommonStl(e,t,n)},t.prototype._updateCommonStl=function(e,t,n){var r=this.childAt(0),o=e.getItemModel(t),i=n&&n.emphasisLineStyle,a=n&&n.focus,s=n&&n.blurScope,l=n&&n.emphasisDisabled;if(!n||e.hasItemOption){var u=o.getModel("emphasis");i=u.getModel("lineStyle").getLineStyle(),l=u.get("disabled"),a=u.get("focus"),s=u.get("blurScope")}r.useStyle(e.getItemVisual(t,"style")),r.style.fill=null,r.style.strokeNoScale=!0;var c=r.ensureState("emphasis");c.style=i,Wd(this,a,s,l)},t.prototype.updateLayout=function(e,t){var n=this.childAt(0);n.setShape("points",e.getItemLayout(t))},t}(Da),iW=oW,aW=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}return Q(t,e),t.prototype.createLine=function(e,t,n){return new iW(e,t,n)},t.prototype._updateAnimationPoints=function(e,t){this._points=t;for(var n=[0],r=0,o=1;o<t.length;o++){var i=t[o-1],a=t[o];r+=Dt(i,a),n.push(r)}if(0!==r){for(o=0;o<n.length;o++)n[o]/=r;this._offsets=n,this._length=r}else this._length=0},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(e){var t=e.__t<1?e.__t:2-e.__t,n=this._points,r=this._offsets,o=n.length;if(r){var i,a=this._lastFrame;if(t<this._lastFramePercent){var s=Math.min(a+1,o-1);for(i=s;i>=0;i--)if(r[i]<=t)break;i=Math.min(i,o-2)}else{for(i=a;i<o;i++)if(r[i]>t)break;i=Math.min(i-1,o-2)}var l=(t-r[i])/(r[i+1]-r[i]),u=n[i],c=n[i+1];e.x=u[0]*(1-l)+l*c[0],e.y=u[1]*(1-l)+l*c[1];var d=e.__t<1?c[0]-u[0]:u[0]-c[0],h=e.__t<1?c[1]-u[1]:u[1]-c[1];e.rotation=-Math.atan2(h,d)-Math.PI/2,this._lastFrame=i,this._lastFramePercent=t,e.ignore=!1}},t}(rW),sW=aW,lW=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),uW=function(e){function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return Q(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 lW},t.prototype.buildPath=function(e,t){var n,r=t.segs,o=t.curveness;if(t.polyline)for(n=this._off;n<r.length;){var i=r[n++];if(i>0){e.moveTo(r[n++],r[n++]);for(var a=1;a<i;a++)e.lineTo(r[n++],r[n++])}}else for(n=this._off;n<r.length;){var s=r[n++],l=r[n++],u=r[n++],c=r[n++];if(e.moveTo(s,l),o>0){var d=(s+u)/2-(l-c)*o,h=(l+c)/2-(u-s)*o;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,r=n.segs,o=n.curveness,i=this.style.lineWidth;if(n.polyline)for(var a=0,s=0;s<r.length;){var l=r[s++];if(l>0)for(var u=r[s++],c=r[s++],d=1;d<l;d++){var h=r[s++],p=r[s++];if(Ru(u,c,h,p,i,e,t))return a}a++}else for(a=0,s=0;s<r.length;){u=r[s++],c=r[s++],h=r[s++],p=r[s++];if(o>0){var f=(u+h)/2-(c-p)*o,g=(c+p)/2-(h-u)*o;if(Lu(u,c,f,g,h,p,i,e,t))return a}else if(Ru(u,c,h,p,i,e,t))return a;a++}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect();if(e=n[0],t=n[1],r.contain(e,t)){var o=this.hoverDataIdx=this.findDataIndex(e,t);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape,n=t.segs,r=1/0,o=1/0,i=-1/0,a=-1/0,s=0;s<n.length;){var l=n[s++],u=n[s++];r=Math.min(l,r),i=Math.max(l,i),o=Math.min(u,o),a=Math.max(u,a)}e=this._rect=new Fn(r,o,i,a)}return e},t}(ac),cW=function(){function e(){this.group=new Da}return e.prototype.updateData=function(e){this._clear();var t=this._create();t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e)},e.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clear()},e.prototype.incrementalUpdate=function(e,t){var n=this._newAdded[0],r=t.getLayout("linesPoints"),o=n&&n.shape.segs;if(o&&o.length<2e4){var i=o.length,a=new Float32Array(i+r.length);a.set(o),a.set(r,i),n.setShape({segs:a})}else{this._newAdded=[];var s=this._create();s.incremental=!0,s.setShape({segs:r}),this._setCommon(s,t),s.__startIndex=e.start}},e.prototype.remove=function(){this._clear()},e.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},e.prototype._create=function(){var e=new uW({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(e),this.group.add(e),e},e.prototype._setCommon=function(e,t,n){var r=t.hostModel;e.setShape({polyline:r.get("polyline"),curveness:r.get(["lineStyle","curveness"])}),e.useStyle(r.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var o=t.getVisual("style");o&&o.stroke&&e.setStyle("stroke",o.stroke),e.setStyle("fill",null);var i=Qc(e);i.seriesIndex=r.seriesIndex,e.on("mousemove",(function(t){i.dataIndex=null;var n=e.hoverDataIdx;n>0&&(i.dataIndex=n+e.__startIndex)}))},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),dW=cW,hW={seriesType:"lines",plan:Wv(),reset:function(e){var t=e.coordinateSystem;if(t){var n=e.get("polyline"),r=e.pipelineContext.large;return{progress:function(o,i){var a=[];if(r){var s=void 0,l=o.end-o.start;if(n){for(var u=0,c=o.start;c<o.end;c++)u+=e.getLineCoordsCount(c);s=new Float32Array(l+2*u)}else s=new Float32Array(4*l);var d=0,h=[];for(c=o.start;c<o.end;c++){var p=e.getLineCoords(c,a);n&&(s[d++]=p);for(var f=0;f<p;f++)h=t.dataToPoint(a[f],!1,h),s[d++]=h[0],s[d++]=h[1]}i.setLayout("linesPoints",s)}else for(c=o.start;c<o.end;c++){var g=i.getItemModel(c),m=(p=e.getLineCoords(c,a),[]);if(n)for(var v=0;v<p;v++)m.push(t.dataToPoint(a[v]));else{m[0]=t.dataToPoint(a[0]),m[1]=t.dataToPoint(a[1]);var y=g.get(["lineStyle","curveness"]);+y&&(m[2]=[(m[0][0]+m[1][0])/2-(m[0][1]-m[1][1])*y,(m[0][1]+m[1][1])/2-(m[1][0]-m[0][0])*y])}i.setItemLayout(c,m)}}}}}},pW=hW,fW=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Q(t,e),t.prototype.render=function(e,t,n){var r=e.getData(),o=this._updateLineDraw(r,e),i=e.get("zlevel"),a=e.get(["effect","trailLength"]),s=n.getZr(),l="svg"===s.painter.getType();l||s.painter.getLayer(i).clear(!0),null==this._lastZlevel||l||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(e)&&a>0&&(l||s.configLayer(i,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)})),o.updateData(r);var u=e.get("clip",!0)&&RP(e.coordinateSystem,!1,e);u?this.group.setClipPath(u):this.group.removeClipPath(),this._lastZlevel=i,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var r=e.getData(),o=this._updateLineDraw(r,e);o.incrementalPrepareUpdate(r),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 r=e.getData(),o=e.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var i=pW.reset(e,t,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._lineDraw.updateLayout(),this._clearLayer(n)},t.prototype._updateLineDraw=function(e,t){var n=this._lineDraw,r=this._showEffect(t),o=!!t.get("polyline"),i=t.pipelineContext,a=i.large;return n&&r===this._hasEffet&&o===this._isPolyline&&a===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=a?new dW:new MV(o?r?sW:iW:r?rW:wV),this._hasEffet=r,this._isPolyline=o,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}(c_),gW=fW,mW="undefined"===typeof Uint32Array?Array:Uint32Array,vW="undefined"===typeof Float64Array?Array:Float64Array;function yW(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=Te(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),_e([n,e[0],e[1]])})))}var bW=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 Q(t,e),t.prototype.init=function(t){t.data=t.data||[],yW(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(yW(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=dt(this._flatCoords,t.flatCoords),this._flatCoordsOffset=dt(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],r=this._flatCoordsOffset[2*e+1],o=0;o<r;o++)t[o]=t[o]||[],t[o][0]=this._flatCoords[n+2*o],t[o][1]=this._flatCoords[n+2*o+1];return r}var i=this._getCoordsFromItemModel(e);for(o=0;o<i.length;o++)t[o]=t[o]||[],t[o][0]=i[o][0],t[o][1]=i[o][1];return i.length},t.prototype._processFlatCoordsArray=function(e){var t=0;if(this._flatCoords&&(t=this._flatCoords.length),je(e[0])){for(var n=e.length,r=new mW(n),o=new vW(n),i=0,a=0,s=0,l=0;l<n;){s++;var u=e[l++];r[a++]=i+t,r[a++]=u;for(var c=0;c<u;c++){var d=e[l++],h=e[l++];o[i++]=d,o[i++]=h}}return{flatCoordsOffset:new Uint32Array(r.buffer,0,a),flatCoords:o,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:e.length}},t.prototype.getInitialData=function(e,t){var n=new HS(["value"],this);return n.hasItemOption=!1,n.initData(e.data,[],(function(e,t,r,o){if(e instanceof Array)return NaN;n.hasItemOption=!0;var i=e.value;return null!=i?i instanceof Array?i[o]:i:void 0})),n},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),o=r.getItemModel(e),i=o.get("name");if(i)return i;var a=o.get("fromName"),s=o.get("toName"),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),dv("nameValue",{name:l.join(" > ")})},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}(jv),_W=bW;function xW(e){return e instanceof Array||(e=[e,e]),e}var wW={seriesType:"lines",reset:function(e){var t=xW(e.get("symbol")),n=xW(e.get("symbolSize")),r=e.getData();function o(e,t){var n=e.getItemModel(t),r=xW(n.getShallow("symbol",!0)),o=xW(n.getShallow("symbolSize",!0));r[0]&&e.setItemVisual(t,"fromSymbol",r[0]),r[1]&&e.setItemVisual(t,"toSymbol",r[1]),o[0]&&e.setItemVisual(t,"fromSymbolSize",o[0]),o[1]&&e.setItemVisual(t,"toSymbolSize",o[1])}return r.setVisual("fromSymbol",t&&t[0]),r.setVisual("toSymbol",t&&t[1]),r.setVisual("fromSymbolSize",n&&n[0]),r.setVisual("toSymbolSize",n&&n[1]),{dataEach:r.hasItemOption?o:null}}},OW=wW;function SW(e){e.registerChartView(gW),e.registerSeriesModel(_W),e.registerLayout(pW),e.registerVisual(OW)}var AW=256,kW=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=ne.createCanvas();this.canvas=e}return e.prototype.update=function(e,t,n,r,o,i){var a=this._getBrush(),s=this._getGradient(o,"inRange"),l=this._getGradient(o,"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;p<h;++p){var f=e[p],g=f[0],m=f[1],v=f[2],y=r(v);d.globalAlpha=y,d.drawImage(a,g-u,m-u)}if(!c.width||!c.height)return c;var b=d.getImageData(0,0,c.width,c.height),_=b.data,x=0,w=_.length,O=this.minOpacity,S=this.maxOpacity,A=S-O;while(x<w){y=_[x+3]/256;var k=4*Math.floor(y*(AW-1));if(y>0){var C=i(y)?s:l;y>0&&(y=y*A+O),_[x++]=C[k],_[x++]=C[k+1],_[x++]=C[k+2],_[x++]=C[k+3]*y*256}else x+=4}return d.putImageData(b,0,0),c},e.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=ne.createCanvas()),t=this.pointSize+this.blurSize,n=2*t;e.width=n,e.height=n;var r=e.getContext("2d");return r.clearRect(0,0,n,n),r.shadowOffsetX=n,r.shadowBlur=this.blurSize,r.shadowColor="#000",r.beginPath(),r.arc(-t,t,this.pointSize,0,2*Math.PI,!0),r.closePath(),r.fill(),e},e.prototype._getGradient=function(e,t){for(var n=this._gradientPixels,r=n[t]||(n[t]=new Uint8ClampedArray(1024)),o=[0,0,0,0],i=0,a=0;a<256;a++)e[t](a/255,!0,o),r[i++]=o[0],r[i++]=o[1],r[i++]=o[2],r[i++]=o[3];return r},e}(),CW=kW;function MW(e,t,n){var r=e[1]-e[0];t=Te(t,(function(t){return{interval:[(t.interval[0]-e[0])/r,(t.interval[1]-e[0])/r]}}));var o=t.length,i=0;return function(e){var r;for(r=i;r<o;r++){var a=t[r].interval;if(a[0]<=e&&e<=a[1]){i=r;break}}if(r===o)for(r=i-1;r>=0;r--){a=t[r].interval;if(a[0]<=e&&e<=a[1]){i=r;break}}return r>=0&&r<o&&n[r]}}function TW(e,t){var n=e[1]-e[0];return t=[(t[0]-e[0])/n,(t[1]-e[0])/n],function(e){return e>=t[0]&&e<=t[1]}}function PW(e){var t=e.dimensions;return"lng"===t[0]&&"lat"===t[1]}var IW=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Q(t,e),t.prototype.render=function(e,t,n){var r;t.eachComponent("visualMap",(function(t){t.eachTargetSeries((function(n){n===e&&(r=t)}))})),this._progressiveEls=null,this.group.removeAll();var o=e.coordinateSystem;"cartesian2d"===o.type||"calendar"===o.type?this._renderOnCartesianAndCalendar(e,n,0,e.getData().count()):PW(o)&&this._renderOnGeo(o,e,r,n)},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll()},t.prototype.incrementalRender=function(e,t,n,r){var o=t.coordinateSystem;o&&(PW(o)?this.render(t,n,r):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(t,r,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){t_(this._progressiveEls||this.group,e)},t.prototype._renderOnCartesianAndCalendar=function(e,t,n,r,o){var i,a,s,l,u=e.coordinateSystem,c=NP(u,"cartesian2d");if(c){var d=u.getAxis("x"),h=u.getAxis("y");0,i=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(),m=e.getModel(["blur","itemStyle"]).getItemStyle(),v=e.getModel(["select","itemStyle"]).getItemStyle(),y=e.get(["itemStyle","borderRadius"]),b=vh(e),_=e.getModel("emphasis"),x=_.get("focus"),w=_.get("blurScope"),O=_.get("disabled"),S=c?[f.mapDimension("x"),f.mapDimension("y"),f.mapDimension("value")]:[f.mapDimension("time"),f.mapDimension("value")],A=n;A<r;A++){var k=void 0,C=f.getItemVisual(A,"style");if(c){var M=f.get(S[0],A),T=f.get(S[1],A);if(isNaN(f.get(S[2],A))||isNaN(M)||isNaN(T)||M<s[0]||M>s[1]||T<l[0]||T>l[1])continue;var P=u.dataToPoint([M,T]);k=new Oc({shape:{x:P[0]-i/2,y:P[1]-a/2,width:i,height:a},style:C})}else{if(isNaN(f.get(S[1],A)))continue;k=new Oc({z2:1,shape:u.dataToRect([f.get(S[0],A)]).contentShape,style:C})}if(f.hasItemOption){var I=f.getItemModel(A),$=I.getModel("emphasis");g=$.getModel("itemStyle").getItemStyle(),m=I.getModel(["blur","itemStyle"]).getItemStyle(),v=I.getModel(["select","itemStyle"]).getItemStyle(),y=I.get(["itemStyle","borderRadius"]),x=$.get("focus"),w=$.get("blurScope"),O=$.get("disabled"),b=vh(I)}k.shape.r=y;var E=e.getRawValue(A),D="-";E&&null!=E[2]&&(D=E[2]+""),mh(k,b,{labelFetcher:e,labelDataIndex:A,defaultOpacity:C.opacity,defaultText:D}),k.ensureState("emphasis").style=g,k.ensureState("blur").style=m,k.ensureState("select").style=v,Wd(k,x,w,O),k.incremental=o,o&&(k.states.emphasis.hoverLayer=!0),p.add(k),f.setItemGraphicEl(A,k),this._progressiveEls&&this._progressiveEls.push(k)}},t.prototype._renderOnGeo=function(e,t,n,r){var o=n.targetVisuals.inRange,i=n.targetVisuals.outOfRange,a=t.getData(),s=this._hmLayer||this._hmLayer||new CW;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,r.getWidth()),p=Math.min(l.height+l.y,r.getHeight()),f=h-c,g=p-d,m=[a.mapDimension("lng"),a.mapDimension("lat"),a.mapDimension("value")],v=a.mapArray(m,(function(t,n,r){var o=e.dataToPoint([t,n]);return o[0]-=c,o[1]-=d,o.push(r),o})),y=n.getExtent(),b="visualMap.continuous"===n.type?TW(y,n.option.range):MW(y,n.getPieceList(),n.option.selected);s.update(v,f,g,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:i.color.getColorMapper()},b);var _=new fc({style:{width:f,height:g,x:c,y:d,image:s.canvas},silent:!0});this.group.add(_)},t.type="heatmap",t}(c_),$W=IW,EW=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Q(t,e),t.prototype.getInitialData=function(e,t){return cA(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=ug.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}(jv),DW=EW;function RW(e){e.registerChartView($W),e.registerSeriesModel(DW)}var NW=["itemStyle","borderWidth"],LW=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],zW=new my,VW=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Q(t,e),t.prototype.render=function(e,t,n){var r=this.group,o=e.getData(),i=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:LW[+l],categoryDim:LW[1-+l]};o.diff(i).add((function(e){if(o.hasValue(e)){var t=qW(o,e),n=BW(o,e,t,c),i=eH(o,c,n);o.setItemGraphicEl(e,i),r.add(i),aH(i,c,n)}})).update((function(e,t){var n=i.getItemGraphicEl(t);if(o.hasValue(e)){var a=qW(o,e),s=BW(o,e,a,c),l=rH(o,s);n&&l!==n.__pictorialShapeStr&&(r.remove(n),o.setItemGraphicEl(e,null),n=null),n?tH(n,c,s):n=eH(o,c,s,!0),o.setItemGraphicEl(e,n),n.__pictorialSymbolMeta=s,r.add(n),aH(n,c,s)}else r.remove(n)})).remove((function(e){var t=i.getItemGraphicEl(e);t&&nH(i,e,t.__pictorialSymbolMeta.animationModel,t)})).execute();var d=e.get("clip",!0)?RP(e.coordinateSystem,!1,e):null;return d?r.setClipPath(d):r.removeClipPath(),this._data=o,this.group},t.prototype.remove=function(e,t){var n=this.group,r=this._data;e.get("animation")?r&&r.eachItemGraphicEl((function(t){nH(r,Qc(t).dataIndex,e,t)})):n.removeAll()},t.type="pictorialBar",t}(c_);function BW(e,t,n,r){var o=e.getItemLayout(t),i=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:o,itemModel:n,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:a,symbolRepeat:i,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:d?n:null,hoverScale:d&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};jW(n,i,o,r,h),FW(e,t,o,i,a,h.boundingLength,h.pxSign,c,r,h),WW(n,h.symbolScale,u,r,h);var p=h.symbolSize,f=kx(n.get("symbolOffset"),p);return HW(n,p,o,i,a,f,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,r,h),h}function jW(e,t,n,r,o){var i,a=r.valueDim,s=e.get("symbolBoundingData"),l=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),u=l.toGlobalCoord(l.dataToCoord(0)),c=1-+(n[a.wh]<=0);if(Le(s)){var d=[QW(l,s[0])-u,QW(l,s[1])-u];d[1]<d[0]&&d.reverse(),i=d[c]}else i=null!=s?QW(l,s)-u:t?r.coordSysExtent[a.index][c]-u:n[a.wh];o.boundingLength=i,t&&(o.repeatCutLength=n[a.wh]),o.pxSign=i>0?1:-1}function QW(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function FW(e,t,n,r,o,i,a,s,l,u){var c,d=l.valueDim,h=l.categoryDim,p=Math.abs(n[h.wh]),f=e.getItemVisual(t,"symbolSize");c=Le(f)?f.slice():null==f?["100%","100%"]:[f,f],c[h.index]=Ja(c[h.index],p),c[d.index]=Ja(c[d.index],r?p:Math.abs(i)),u.symbolSize=c;var g=u.symbolScale=[c[0]/s,c[1]/s];g[d.index]*=(l.isHorizontal?-1:1)*a}function WW(e,t,n,r,o){var i=e.get(NW)||0;i&&(zW.attr({scaleX:t[0],scaleY:t[1],rotation:n}),zW.updateTransform(),i/=zW.getLineScale(),i*=t[r.valueDim.index]),o.valueLineWidth=i||0}function HW(e,t,n,r,o,i,a,s,l,u,c,d){var h=c.categoryDim,p=c.valueDim,f=d.pxSign,g=Math.max(t[p.index]+s,0),m=g;if(r){var v=Math.abs(l),y=Ye(e.get("symbolMargin"),"15%")+"",b=!1;y.lastIndexOf("!")===y.length-1&&(b=!0,y=y.slice(0,y.length-1));var _=Ja(y,t[p.index]),x=Math.max(g+2*_,0),w=b?0:2*_,O=bs(r),S=O?r:sH((v+w)/x),A=v-S*g;_=A/2/(b?S:Math.max(S-1,1)),x=g+2*_,w=b?0:2*_,O||"fixed"===r||(S=u?sH((Math.abs(u)+w)/x):0),m=S*x-w,d.repeatTimes=S,d.symbolMargin=_}var k=f*(m/2),C=d.pathPosition=[];C[h.index]=n[h.wh]/2,C[p.index]="start"===a?k:"end"===a?l-k:l/2,i&&(C[0]+=i[0],C[1]+=i[1]);var M=d.bundlePosition=[];M[h.index]=n[h.xy],M[p.index]=n[p.xy];var T=d.barRectShape=xe({},n);T[p.wh]=f*Math.max(Math.abs(n[p.wh]),Math.abs(C[p.index]+k)),T[h.wh]=n[h.wh];var P=d.clipShape={};P[h.xy]=-n[h.xy],P[h.wh]=c.ecSize[h.wh],P[p.xy]=0,P[p.wh]=n[p.wh]}function ZW(e){var t=e.symbolPatternSize,n=Sx(e.symbolType,-t/2,-t/2,t,t);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function GW(e,t,n,r){var o=e.__pictorialBundle,i=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,l=t.valueDim,u=n.repeatTimes||0,c=0,d=i[t.valueDim.index]+a+2*n.symbolMargin;for(oH(e,(function(e){e.__pictorialAnimationIndex=c,e.__pictorialRepeatTimes=u,c<u?iH(e,null,f(c),n,r):iH(e,null,{scaleX:0,scaleY:0},n,r,(function(){o.remove(e)})),c++}));c<u;c++){var h=ZW(n);h.__pictorialAnimationIndex=c,h.__pictorialRepeatTimes=u,o.add(h);var p=f(c);iH(h,{x:p.x,y:p.y,scaleX:0,scaleY:0},{scaleX:p.scaleX,scaleY:p.scaleY,rotation:p.rotation},n,r)}function f(e){var t=s.slice(),r=n.pxSign,o=e;return("start"===n.symbolRepeatDirection?r>0:r<0)&&(o=u-1-e),t[l.index]=d*(o-u/2+.5)+s[l.index],{x:t[0],y:t[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function XW(e,t,n,r){var o=e.__pictorialBundle,i=e.__pictorialMainPath;i?iH(i,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,r):(i=e.__pictorialMainPath=ZW(n),o.add(i),iH(i,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,r))}function UW(e,t,n){var r=xe({},t.barRectShape),o=e.__pictorialBarRect;o?iH(o,null,{shape:r},t,n):(o=e.__pictorialBarRect=new Oc({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),o.disableMorphing=!0,e.add(o))}function YW(e,t,n,r){if(n.symbolClip){var o=e.__pictorialClipPath,i=xe({},n.clipShape),a=t.valueDim,s=n.animationModel,u=n.dataIndex;if(o)ih(o,{shape:i},s,u);else{i[a.wh]=0,o=new Oc({shape:i}),e.__pictorialBundle.setClipPath(o),e.__pictorialClipPath=o;var c={};c[a.wh]=n.clipShape[a.wh],l[r?"updateProps":"initProps"](o,{shape:c},s,u)}}}function qW(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=KW,n.isAnimationEnabled=JW,n}function KW(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function JW(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function eH(e,t,n,r){var o=new Da,i=new Da;return o.add(i),o.__pictorialBundle=i,i.x=n.bundlePosition[0],i.y=n.bundlePosition[1],n.symbolRepeat?GW(o,t,n):XW(o,t,n),UW(o,n,r),YW(o,t,n,r),o.__pictorialShapeStr=rH(e,n),o.__pictorialSymbolMeta=n,o}function tH(e,t,n){var r=n.animationModel,o=n.dataIndex,i=e.__pictorialBundle;ih(i,{x:n.bundlePosition[0],y:n.bundlePosition[1]},r,o),n.symbolRepeat?GW(e,t,n,!0):XW(e,t,n,!0),UW(e,n,!0),YW(e,t,n,!0)}function nH(e,t,n,r){var o=r.__pictorialBarRect;o&&o.removeTextContent();var i=[];oH(r,(function(e){i.push(e)})),r.__pictorialMainPath&&i.push(r.__pictorialMainPath),r.__pictorialClipPath&&(n=null),Me(i,(function(e){lh(e,{scaleX:0,scaleY:0},n,t,(function(){r.parent&&r.parent.remove(r)}))})),e.setItemGraphicEl(t,null)}function rH(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function oH(e,t,n){Me(e.__pictorialBundle.children(),(function(r){r!==e.__pictorialBarRect&&t.call(n,r)}))}function iH(e,t,n,r,o,i){t&&e.attr(t),r.symbolClip&&!o?n&&e.attr(n):n&&l[o?"updateProps":"initProps"](e,n,r.animationModel,r.dataIndex,i)}function aH(e,t,n){var r=n.dataIndex,o=n.itemModel,i=o.getModel("emphasis"),a=i.getModel("itemStyle").getItemStyle(),s=o.getModel(["blur","itemStyle"]).getItemStyle(),l=o.getModel(["select","itemStyle"]).getItemStyle(),u=o.getShallow("cursor"),c=i.get("focus"),d=i.get("blurScope"),h=i.get("scale");oH(e,(function(e){if(e instanceof fc){var t=e.style;e.useStyle(xe({image:t.image,x:t.x,y:t.y,width:t.width,height:t.height},n.style))}else e.useStyle(n.style);var r=e.ensureState("emphasis");r.style=a,h&&(r.scaleX=1.1*e.scaleX,r.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;f.ignoreClip=!0,mh(f,vh(o),{labelFetcher:t.seriesModel,labelDataIndex:r,defaultText:cP(t.seriesModel.getData(),r),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:p}),Wd(e,c,d,i.get("disabled"))}function sH(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var lH=VW,uH=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 Q(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=Gh(lI.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(lI),cH=uH;function dH(e){e.registerChartView(lH),e.registerSeriesModel(cH),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Ne(FA,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,WA("pictorialBar"))}var hH=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._layers=[],n}return Q(t,e),t.prototype.render=function(e,t,n){var r=e.getData(),o=this,i=this.group,a=e.getLayerSeries(),s=r.getLayout("layoutInfo"),l=s.rect,u=s.boundaryGap;function c(e){return e.name}i.x=0,i.y=l.y+u[0];var d=new gS(this._layersSeries||[],a,c,c),h=[];function p(t,n,s){var l=o._layers;if("remove"!==t){for(var u,c,d=[],p=[],f=a[n].indices,g=0;g<f.length;g++){var m=r.getItemLayout(f[g]),v=m.x,y=m.y0,b=m.y;d.push(v,y),p.push(v,y+b),u=r.getItemVisual(f[g],"style")}var _=r.getItemLayout(f[0]),x=e.getModel("label"),w=x.get("margin"),O=e.getModel("emphasis");if("add"===t){var S=h[n]=new Da;c=new $P({shape:{points:d,stackedOnPoints:p,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),S.add(c),i.add(S),e.isAnimationEnabled()&&c.setClipPath(pH(c.getBoundingRect(),e,(function(){c.removeClipPath()})))}else{S=l[s];c=S.childAt(0),i.add(S),h[n]=S,ih(c,{shape:{points:d,stackedOnPoints:p}},e),dh(c)}mh(c,vh(e),{labelDataIndex:f[g-1],defaultText:r.getName(f[g-1]),inheritColor:u.fill},{normal:{verticalAlign:"middle"}}),c.setTextConfig({position:null,local:!0});var A=c.getTextContent();A&&(A.x=_.x-w,A.y=_.y0+_.y/2),c.useStyle(u),r.setItemGraphicEl(n,c),Xd(c,e),Wd(c,O.get("focus"),O.get("blurScope"),O.get("disabled"))}else i.remove(l[n])}d.add(Re(p,this,"add")).update(Re(p,this,"update")).remove(Re(p,this,"remove")).execute(),this._layersSeries=a,this._layers=h},t.type="themeRiver",t}(c_);function pH(e,t,n){var r=new Oc({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return ah(r,{shape:{x:e.x-50,width:e.width+100,height:e.height+20}},t,n),r}var fH=hH,gH=2,mH=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Q(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new u$(Re(this.getData,this),Re(this.getRawData,this))},t.prototype.fixData=function(e){var t=e.length,n={},r=ol(e,(function(e){return n.hasOwnProperty(e[0]+"")||(n[e[0]+""]=-1),e[2]})),o=[];r.buckets.each((function(e,t){o.push({name:t,dataList:e})}));for(var i=o.length,a=0;a<i;++a){for(var s=o[a].name,l=0;l<o[a].dataList.length;++l){var u=o[a].dataList[l][0]+"";n[u]=a}for(var u in n)n.hasOwnProperty(u)&&n[u]!==a&&(n[u]=a,e[t]=[u,0,s],t++)}return e},t.prototype.getInitialData=function(e,t){for(var n=this.getReferringComponents("singleAxis",Ks).models[0],r=n.get("type"),o=Ie(e.data,(function(e){return void 0!==e[2]})),i=this.fixData(o||[]),a=[],s=this.nameMap=ct(),l=0,u=0;u<i.length;++u)a.push(i[u][gH]),s.get(i[u][gH])||(s.set(i[u][gH],l),l++);var c=GS(i,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:bS(r)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,d=new HS(c,this);return d.initData(i),d},t.prototype.getLayerSeries=function(){for(var e=this.getData(),t=e.count(),n=[],r=0;r<t;++r)n[r]=r;var o=e.mapDimension("single"),i=ol(n,(function(t){return e.get("name",t)})),a=[];return i.buckets.each((function(t,n){t.sort((function(t,n){return e.get(o,t)-e.get(o,n)})),a.push({name:n,indices:t})})),a},t.prototype.getAxisTooltipData=function(e,t,n){Le(e)||(e=e?[e]:[]);for(var r,o=this.getData(),i=this.getLayerSeries(),a=[],s=i.length,l=0;l<s;++l){for(var u=Number.MAX_VALUE,c=-1,d=i[l].indices.length,h=0;h<d;++h){var p=o.get(e[0],i[l].indices[h]),f=Math.abs(p-t);f<=u&&(r=p,u=f,c=i[l].indices[h])}a.push(c)}return{dataIndices:a,nestestValue:r}},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),o=r.getName(e),i=r.get(r.mapDimension("value"),e);return dv("nameValue",{name:o,value:i})},t.type="series.themeRiver",t.dependencies=["singleAxis"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},t}(jv),vH=mH;function yH(e,t){e.eachSeriesByType("themeRiver",(function(e){var t=e.getData(),n=e.coordinateSystem,r={},o=n.getRect();r.rect=o;var i=e.get("boundaryGap"),a=n.getAxis();if(r.boundaryGap=i,"horizontal"===a.orient){i[0]=Ja(i[0],o.height),i[1]=Ja(i[1],o.height);var s=o.height-i[0]-i[1];bH(t,e,s)}else{i[0]=Ja(i[0],o.width),i[1]=Ja(i[1],o.width);var l=o.width-i[0]-i[1];bH(t,e,l)}t.setLayout("layoutInfo",r)}))}function bH(e,t,n){if(e.count())for(var r,o=t.coordinateSystem,i=t.getLayerSeries(),a=e.mapDimension("single"),s=e.mapDimension("value"),l=Te(i,(function(t){return Te(t.indices,(function(t){var n=o.dataToPoint(e.get(a,t));return n[1]=e.get(s,t),n}))})),u=_H(l),c=u.y0,d=n/u.max,h=i.length,p=i[0].indices.length,f=0;f<p;++f){r=c[f]*d,e.setItemLayout(i[0].indices[f],{layerIndex:0,x:l[0][f][0],y0:r,y:l[0][f][1]*d});for(var g=1;g<h;++g)r+=l[g-1][f][1]*d,e.setItemLayout(i[g].indices[f],{layerIndex:g,x:l[g][f][0],y0:r,y:l[g][f][1]*d})}}function _H(e){for(var t=e.length,n=e[0].length,r=[],o=[],i=0,a=0;a<n;++a){for(var s=0,l=0;l<t;++l)s+=e[l][a][1];s>i&&(i=s),r.push(s)}for(var u=0;u<n;++u)o[u]=(i-r[u])/2;i=0;for(var c=0;c<n;++c){var d=r[c]+o[c];d>i&&(i=d)}return{y0:o,max:i}}function xH(e){e.registerChartView(fH),e.registerSeriesModel(vH),e.registerLayout(yH),e.registerProcessor(qI("themeRiver"))}var wH=2,OH=4,SH=function(e){function t(t,n,r,o){var i=e.call(this)||this;i.z2=wH,i.textConfig={inside:!0},Qc(i).seriesIndex=n.seriesIndex;var a=new jc({z2:OH,silent:t.getModel().get(["label","silent"])});return i.setTextContent(a),i.updateData(!0,t,n,r,o),i}return Q(t,e),t.prototype.updateData=function(e,t,n,r,o){this.node=t,t.piece=this,n=n||this._seriesModel,r=r||this._ecModel;var i=this;Qc(i).dataIndex=t.dataIndex;var a=t.getModel(),s=a.getModel("emphasis"),l=t.getLayout(),u=xe({},l);u.label=null;var c=t.getVisual("style");c.lineJoin="bevel";var d=t.getVisual("decal");d&&(c.decal=pw(d,o));var h=yI(a.getModel("itemStyle"),u,!0);xe(u,h),Me(qc,(function(e){var t=i.ensureState(e),n=a.getModel([e,"itemStyle"]);t.style=n.getItemStyle();var r=yI(n,u);r&&(t.shape=r)})),e?(i.setShape(u),i.shape.r=l.r0,ah(i,{shape:{r:l.r}},n,t.dataIndex)):(ih(i,{shape:u},n),dh(i)),i.useStyle(c),this._updateLabel(n);var p=a.getShallow("cursor");p&&i.attr("cursor",p),this._seriesModel=n||this._seriesModel,this._ecModel=r||this._ecModel;var f=s.get("focus"),g="ancestor"===f?t.getAncestorsIndices():"descendant"===f?t.getDescendantIndices():f;Wd(this,g,s.get("blurScope"),s.get("disabled"))},t.prototype._updateLabel=function(e){var t=this,n=this.node.getModel(),r=n.getModel("label"),o=this.node.getLayout(),i=o.endAngle-o.startAngle,a=(o.startAngle+o.endAngle)/2,s=Math.cos(a),l=Math.sin(a),u=this,c=u.getTextContent(),d=this.node.dataIndex,h=r.get("minAngle")/180*Math.PI,p=r.get("show")&&!(null!=h&&Math.abs(i)<h);function f(e,t){var n=e.get(t);return null==n?r.get(t):n}c.ignore=!p,Me(Kc,(function(r){var h="normal"===r?n.getModel("label"):n.getModel([r,"label"]),p="normal"===r,g=p?c:c.ensureState(r),m=e.getFormattedLabel(d,r);p&&(m=m||t.node.name),g.style=yh(h,{},null,"normal"!==r,!0),m&&(g.style.text=m);var v=h.get("show");null==v||p||(g.ignore=!v);var y,b=f(h,"position"),_=p?u:u.states[r],x=_.style.fill;_.textConfig={outsideFill:"inherit"===h.get("color")?x:null,inside:"outside"!==b};var w=f(h,"distance")||0,O=f(h,"align"),S=f(h,"rotate"),A=.5*Math.PI,k=1.5*Math.PI,C=Vu("tangential"===S?Math.PI/2-a:a),M=C>A&&!cs(C-A)&&C<k;"outside"===b?(y=o.r+w,O=M?"right":"left"):O&&"center"!==O?"left"===O?(y=o.r0+w,O=M?"right":"left"):"right"===O&&(y=o.r-w,O=M?"left":"right"):(y=i===2*Math.PI&&0===o.r0?0:(o.r+o.r0)/2,O="center"),g.style.align=O,g.style.verticalAlign=f(h,"verticalAlign")||"middle",g.x=y*s+o.cx,g.y=y*l+o.cy;var T=0;"radial"===S?T=Vu(-a)+(M?Math.PI:0):"tangential"===S?T=Vu(Math.PI/2-a)+(M?Math.PI:0):je(S)&&(T=S*Math.PI/180),g.rotation=Vu(T)})),c.dirtyStyle()},t}(Ly),AH=SH,kH="sunburstRootToNode",CH="sunburstHighlight",MH="sunburstUnhighlight";function TH(e){e.registerAction({type:kH,update:"updateView"},(function(e,t){function n(t,n){var r=HN(e,[kH],t);if(r){var o=t.getViewRoot();o&&(e.direction=GN(o,r.node)?"rollUp":"drillDown"),t.resetViewRoot(r.node)}}t.eachComponent({mainType:"series",subType:"sunburst",query:e},n)})),e.registerAction({type:CH,update:"none"},(function(e,t,n){function r(t){var n=HN(e,[CH],t);n&&(e.dataIndex=n.node.dataIndex)}e=xe({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},r),n.dispatchAction(xe(e,{type:"highlight"}))})),e.registerAction({type:MH,update:"updateView"},(function(e,t,n){e=xe({},e),n.dispatchAction(xe(e,{type:"downplay"}))}))}var PH=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Q(t,e),t.prototype.render=function(e,t,n,r){var o=this;this.seriesModel=e,this.api=n,this.ecModel=t;var i=e.getData(),a=i.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 r(n,r){var o=null==n?null:e[n],i=null==r?null:t[r];p(o,i)}0===e.length&&0===t.length||new gS(t,e,n,n).add(r).update(r).remove(Ne(r,null)).execute()}function p(r,o){if(u||!r||r.getValue()||(r=null),r!==a&&o!==a)if(o&&o.piece)r?(o.piece.updateData(!1,r,e,t,n),i.setItemGraphicEl(r.dataIndex,o.piece)):f(o);else if(r){var s=new AH(r,e,t,n);l.add(s),i.setItemGraphicEl(r.dataIndex,s)}}function f(e){e&&e.piece&&(l.remove(e.piece),e.piece=null)}function g(r,i){i.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,r,e,t,n):(o.virtualPiece=new AH(r,e,t,n),l.add(o.virtualPiece)),i.piece.off("click"),o.virtualPiece.on("click",(function(e){o._rootToNode(i.parentNode)}))):o.virtualPiece&&(l.remove(o.virtualPiece),o.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,r=e.seriesModel.getViewRoot();r.eachNode((function(r){if(!n&&r.piece&&r.piece===t.target){var o=r.getModel().get("nodeClick");if("rootToNode"===o)e._rootToNode(r);else if("link"===o){var i=r.getModel(),a=i.get("link");if(a){var s=i.get("target",!0)||"_blank";Yp(a,s)}}n=!0}}))}))},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:kH,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,t){var n=t.getData(),r=n.getItemLayout(0);if(r){var o=e[0]-r.cx,i=e[1]-r.cy,a=Math.sqrt(o*o+i*i);return a<=r.r&&a>=r.r0}},t.type="sunburst",t}(c_),IH=PH,$H=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreStyleOnData=!0,n}return Q(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};EH(n);var r=this._levelModels=Te(e.levels||[],(function(e){return new Qh(e,this,t)}),this),o=WN.createTree(n,this,i);function i(e){e.wrapMethod("getItemModel",(function(e,t){var n=o.getNodeByDataIndex(t),i=r[n.depth];return i&&(e.parentModel=i),e}))}return o.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(t);return n.treePathInfo=XN(r,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(){aL(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}(jv);function EH(e){var t=0;Me(e.children,(function(e){EH(e);var n=e.value;Le(n)&&(n=n[0]),t+=n}));var n=e.value;Le(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),n<0&&(n=0),Le(e.value)?e.value[0]=n:e.value=n}var DH=$H,RH=Math.PI/180;function NH(e,t,n){t.eachSeriesByType(e,(function(e){var t=e.get("center"),r=e.get("radius");Le(r)||(r=[0,r]),Le(t)||(t=[t,t]);var o=n.getWidth(),i=n.getHeight(),a=Math.min(o,i),s=Ja(t[0],o),l=Ja(t[1],i),u=Ja(r[0],a/2),c=Ja(r[1],a/2),d=-e.get("startAngle")*RH,h=e.get("minAngle")*RH,p=e.getData().tree.root,f=e.getViewRoot(),g=f.depth,m=e.get("sort");null!=m&&LH(f,m);var v=0;Me(f.children,(function(e){!isNaN(e.getValue())&&v++}));var y=f.getValue(),b=Math.PI/(y||v)*2,_=f.depth>0,x=f.height-(_?-1:1),w=(c-u)/(x||1),O=e.get("clockwise"),S=e.get("stillShowZeroSum"),A=O?1:-1,k=function(t,n){if(t){var r=n;if(t!==p){var o=t.getValue(),i=0===y&&S?b:o*b;i<h&&(i=h),r=n+A*i;var c=t.depth-g-(_?-1:1),d=u+w*c,f=u+w*(c+1),m=e.getLevelModel(t);if(m){var v=m.get("r0",!0),x=m.get("r",!0),C=m.get("radius",!0);null!=C&&(v=C[0],x=C[1]),null!=v&&(d=Ja(v,a/2)),null!=x&&(f=Ja(x,a/2))}t.setLayout({angle:i,startAngle:n,endAngle:r,clockwise:O,cx:s,cy:l,r0:d,r:f})}if(t.children&&t.children.length){var M=0;Me(t.children,(function(e){M+=k(e,n+M)}))}return r-n}};if(_){var C=u,M=u+w,T=2*Math.PI;p.setLayout({angle:T,startAngle:d,endAngle:d+T,clockwise:O,cx:s,cy:l,r0:C,r:M})}k(f,d)}))}function LH(e,t){var n=e.children||[];e.children=zH(n,t),n.length&&Me(e.children,(function(e){LH(e,t)}))}function zH(e,t){if(ze(t)){var n=Te(e,(function(e,t){var n=e.getValue();return{params:{depth:e.depth,height:e.height,dataIndex:e.dataIndex,getValue:function(){return n}},index:t}}));return n.sort((function(e,n){return t(e.params,n.params)})),Te(n,(function(t){return e[t.index]}))}var r="asc"===t;return e.sort((function(e,t){var n=(e.getValue()-t.getValue())*(r?1:-1);return 0===n?(e.dataIndex-t.dataIndex)*(r?-1:1):n}))}function VH(e){var t={};function n(e,n,r){var o=e;while(o&&o.depth>1)o=o.parentNode;var i=n.getColorFromPalette(o.name||o.dataIndex+"",t);return e.depth>1&&Ve(i)&&(i=_o(i,(e.depth-1)/(r-1)*.5)),i}e.eachSeriesByType("sunburst",(function(e){var t=e.getData(),r=t.tree;r.eachNode((function(o){var i=o.getModel(),a=i.getModel("itemStyle").getItemStyle();a.fill||(a.fill=n(o,e,r.root.height));var s=t.ensureUniqueItemVisual(o.dataIndex,"style");xe(s,a)}))}))}function BH(e){e.registerChartView(IH),e.registerSeriesModel(DH),e.registerLayout(Ne(NH,"sunburst")),e.registerProcessor(Ne(qI,"sunburst")),e.registerVisual(VH),TH(e)}var jH={color:"fill",borderColor:"stroke"},QH={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},FH=Xs(),WH=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Q(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 cA(null,this)},t.prototype.getDataParams=function(t,n,r){var o=e.prototype.getDataParams.call(this,t,n);return r&&(o.info=FH(r).info),o},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(jv),HH=WH;function ZH(e,t){return t=t||[0,0],Te(["x","y"],(function(n,r){var o=this.getAxis(n),i=t[r],a=e[r]/2;return"category"===o.type?o.getBandWidth():Math.abs(o.dataToCoord(i-a)-o.dataToCoord(i+a))}),this)}function GH(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:Re(ZH,e)}}}function XH(e,t){return t=t||[0,0],Te([0,1],(function(n){var r=t[n],o=e[n]/2,i=[],a=[];return i[n]=r-o,a[n]=r+o,i[1-n]=a[1-n]=t[1-n],Math.abs(this.dataToPoint(i)[n]-this.dataToPoint(a)[n])}),this)}function UH(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:Re(XH,e)}}}function YH(e,t){var n=this.getAxis(),r=t instanceof Array?t[0]:t,o=(e instanceof Array?e[0]:e)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(r-o)-n.dataToCoord(r+o))}function qH(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:Re(YH,e)}}}function KH(e,t){return t=t||[0,0],Te(["Radius","Angle"],(function(n,r){var o="get"+n+"Axis",i=this[o](),a=t[r],s=e[r]/2,l="category"===i.type?i.getBandWidth():Math.abs(i.dataToCoord(a-s)-i.dataToCoord(a+s));return"Angle"===n&&(l=l*Math.PI/180),l}),this)}function JH(e){var t=e.getRadiusAxis(),n=e.getAngleAxis(),r=t.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:r[1],r0:r[0]},api:{coord:function(r){var o=t.dataToRadius(r[0]),i=n.dataToAngle(r[1]),a=e.coordToPoint([o,i]);return a.push(o,i*Math.PI/180),a},size:Re(KH,e)}}}function eZ(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 tZ(e,t,n,r){return e&&(e.legacy||!1!==e.legacy&&!n&&!r&&"tspan"!==t&&("text"===t||ft(e,"text")))}function nZ(e,t,n){var r,o,i,a=e;if("text"===t)i=a;else{i={},ft(a,"text")&&(i.text=a.text),ft(a,"rich")&&(i.rich=a.rich),ft(a,"textFill")&&(i.fill=a.textFill),ft(a,"textStroke")&&(i.stroke=a.textStroke),ft(a,"fontFamily")&&(i.fontFamily=a.fontFamily),ft(a,"fontSize")&&(i.fontSize=a.fontSize),ft(a,"fontStyle")&&(i.fontStyle=a.fontStyle),ft(a,"fontWeight")&&(i.fontWeight=a.fontWeight),o={type:"text",style:i,silent:!0},r={};var s=ft(a,"textPosition");n?r.position=s?a.textPosition:"inside":s&&(r.position=a.textPosition),ft(a,"textPosition")&&(r.position=a.textPosition),ft(a,"textOffset")&&(r.offset=a.textOffset),ft(a,"textRotation")&&(r.rotation=a.textRotation),ft(a,"textDistance")&&(r.distance=a.textDistance)}return rZ(i,e),Me(i.rich,(function(e){rZ(e,e)})),{textConfig:r,textContent:o}}function rZ(e,t){t&&(t.font=t.textFont||t.font,ft(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),ft(t,"textAlign")&&(e.align=t.textAlign),ft(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),ft(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),ft(t,"textWidth")&&(e.width=t.textWidth),ft(t,"textHeight")&&(e.height=t.textHeight),ft(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),ft(t,"textPadding")&&(e.padding=t.textPadding),ft(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),ft(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),ft(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),ft(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),ft(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),ft(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),ft(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function oZ(e,t,n){var r=e;r.textPosition=r.textPosition||n.position||"inside",null!=n.offset&&(r.textOffset=n.offset),null!=n.rotation&&(r.textRotation=n.rotation),null!=n.distance&&(r.textDistance=n.distance);var o=r.textPosition.indexOf("inside")>=0,i=e.fill||"#000";iZ(r,t);var a=null==r.textFill;return o?a&&(r.textFill=n.insideFill||"#fff",!r.textStroke&&n.insideStroke&&(r.textStroke=n.insideStroke),!r.textStroke&&(r.textStroke=i),null==r.textStrokeWidth&&(r.textStrokeWidth=2)):(a&&(r.textFill=e.fill||n.outsideFill||"#000"),!r.textStroke&&n.outsideStroke&&(r.textStroke=n.outsideStroke)),r.text=t.text,r.rich=t.rich,Me(t.rich,(function(e){iZ(e,e)})),r}function iZ(e,t){t&&(ft(t,"fill")&&(e.textFill=t.fill),ft(t,"stroke")&&(e.textStroke=t.fill),ft(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),ft(t,"font")&&(e.font=t.font),ft(t,"fontStyle")&&(e.fontStyle=t.fontStyle),ft(t,"fontWeight")&&(e.fontWeight=t.fontWeight),ft(t,"fontSize")&&(e.fontSize=t.fontSize),ft(t,"fontFamily")&&(e.fontFamily=t.fontFamily),ft(t,"align")&&(e.textAlign=t.align),ft(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),ft(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),ft(t,"width")&&(e.textWidth=t.width),ft(t,"height")&&(e.textHeight=t.height),ft(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),ft(t,"padding")&&(e.textPadding=t.padding),ft(t,"borderColor")&&(e.textBorderColor=t.borderColor),ft(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),ft(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),ft(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),ft(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),ft(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),ft(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),ft(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),ft(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),ft(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),ft(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var aZ={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},sZ=Ee(aZ),lZ=(Pe(sa,(function(e,t){return e[t]=1,e}),{}),sa.join(", "),["","style","shape","extra"]),uZ=Xs();function cZ(e,t,n,r,o){var i=e+"Animation",a=rh(e,r,o)||{},s=uZ(t).userDuring;return a.duration>0&&(a.during=s?Re(_Z,{el:t,userDuring:s}):null,a.setToFinal=!0,a.scope=e),xe(a,n[i]),a}function dZ(e,t,n,r){r=r||{};var o=r.dataIndex,i=r.isInit,a=r.clearStyle,s=n.isAnimationEnabled(),l=uZ(e),u=t.style;l.userDuring=t.during;var c={},d={};if(SZ(e,t,d),wZ("shape",t,d),wZ("extra",t,d),!i&&s&&(OZ(e,t,c),xZ("shape",e,t,c),xZ("extra",e,t,c),AZ(e,t,u,c)),d.style=u,gZ(e,d,a),vZ(e,t),s)if(i){var h={};Me(lZ,(function(e){var n=e?t[e]:t;n&&n.enterFrom&&(e&&(h[e]=h[e]||{}),xe(e?h[e]:h,n.enterFrom))}));var p=cZ("enter",e,t,n,o);p.duration>0&&e.animateFrom(h,p)}else mZ(e,t,o||0,n,c);hZ(e,t),u?e.dirty():e.markRedraw()}function hZ(e,t){for(var n=uZ(e).leaveToProps,r=0;r<lZ.length;r++){var o=lZ[r],i=o?t[o]:t;i&&i.leaveTo&&(n||(n=uZ(e).leaveToProps={}),o&&(n[o]=n[o]||{}),xe(o?n[o]:n,i.leaveTo))}}function pZ(e,t,n,r){if(e){var o=e.parent,i=uZ(e).leaveToProps;if(i){var a=cZ("update",e,t,n,0);a.done=function(){o.remove(e),r&&r()},e.animateTo(i,a)}else o.remove(e),r&&r()}}function fZ(e){return"all"===e}function gZ(e,t,n){var r=t.style;if(!e.isGroup&&r){if(n){e.useStyle({});for(var o=e.animators,i=0;i<o.length;i++){var a=o[i];"style"===a.targetName&&a.changeTarget(e.style)}}e.setStyle(r)}t&&(t.style=null,t&&e.attr(t),t.style=r)}function mZ(e,t,n,r,o){if(o){var i=cZ("update",e,t,r,n);i.duration>0&&e.animateFrom(o,i)}}function vZ(e,t){ft(t,"silent")&&(e.silent=t.silent),ft(t,"ignore")&&(e.ignore=t.ignore),e instanceof Jl&&ft(t,"invisible")&&(e.invisible=t.invisible),e instanceof ac&&ft(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var yZ={},bZ={setTransform:function(e,t){return yZ.el[e]=t,this},getTransform:function(e){return yZ.el[e]},setShape:function(e,t){var n=yZ.el,r=n.shape||(n.shape={});return r[e]=t,n.dirtyShape&&n.dirtyShape(),this},getShape:function(e){var t=yZ.el.shape;if(t)return t[e]},setStyle:function(e,t){var n=yZ.el,r=n.style;return r&&(r[e]=t,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(e){var t=yZ.el.style;if(t)return t[e]},setExtra:function(e,t){var n=yZ.el.extra||(yZ.el.extra={});return n[e]=t,this},getExtra:function(e){var t=yZ.el.extra;if(t)return t[e]}};function _Z(){var e=this,t=e.el;if(t){var n=uZ(t).userDuring,r=e.userDuring;n===r?(yZ.el=t,r(bZ)):e.el=e.userDuring=null}}function xZ(e,t,n,r){var o=n[e];if(o){var i,a=t[e];if(a){var s=n.transition,l=o.transition;if(l)if(!i&&(i=r[e]={}),fZ(l))xe(i,a);else for(var u=ks(l),c=0;c<u.length;c++){var d=u[c],h=a[d];i[d]=h}else if(fZ(s)||Se(s,e)>=0){!i&&(i=r[e]={});var p=Ee(a);for(c=0;c<p.length;c++){d=p[c],h=a[d];kZ(o[d],h)&&(i[d]=h)}}}}}function wZ(e,t,n){var r=t[e];if(r)for(var o=n[e]={},i=Ee(r),a=0;a<i.length;a++){var s=i[a];o[s]=li(r[s])}}function OZ(e,t,n){for(var r=t.transition,o=fZ(r)?sa:ks(r||[]),i=0;i<o.length;i++){var a=o[i];if("style"!==a&&"shape"!==a&&"extra"!==a){var s=e[a];0,n[a]=s}}}function SZ(e,t,n){for(var r=0;r<sZ.length;r++){var o=sZ[r],i=aZ[o],a=t[o];a&&(n[i[0]]=a[0],n[i[1]]=a[1])}for(r=0;r<sa.length;r++){var s=sa[r];null!=t[s]&&(n[s]=t[s])}}function AZ(e,t,n,r){if(n){var o,i=e.style;if(i){var a=n.transition,s=t.transition;if(a&&!fZ(a)){var l=ks(a);!o&&(o=r.style={});for(var u=0;u<l.length;u++){var c=l[u],d=i[c];o[c]=d}}else if(e.getAnimationStyleProps&&(fZ(s)||fZ(a)||Se(s,"style")>=0)){var h=e.getAnimationStyleProps(),p=h?h.style:null;if(p){!o&&(o=r.style={});var f=Ee(n);for(u=0;u<f.length;u++){c=f[u];if(p[c]){d=i[c];o[c]=d}}}}}}}function kZ(e,t){return Ce(e)?e!==t:null!=e&&isFinite(e)}var CZ=Xs(),MZ=["percent","easing","shape","style","extra"];function TZ(e){e.stopAnimation("keyframe"),e.attr(CZ(e))}function PZ(e,t,n){if(n.isAnimationEnabled()&&t)if(Le(t))Me(t,(function(t){PZ(e,t,n)}));else{var r=t.keyframes,o=t.duration;if(n&&null==o){var i=rh("enter",n,0);o=i&&i.duration}if(r&&o){var a=CZ(e);Me(lZ,(function(n){if(!n||e[n]){var i;r.sort((function(e,t){return e.percent-t.percent})),Me(r,(function(r){var s=e.animators,l=n?r[n]:r;if(l){var u=Ee(l);if(n||(u=Ie(u,(function(e){return Se(MZ,e)<0}))),u.length){i||(i=e.animate(n,t.loop,!0),i.scope="keyframe");for(var c=0;c<s.length;c++)s[c]!==i&&s[c].targetName===i.targetName&&s[c].stopTracks(u);n&&(a[n]=a[n]||{});var d=n?a[n]:a;Me(u,(function(t){d[t]=((n?e[n]:e)||{})[t]})),i.whenWithKeys(o*r.percent,l,u,r.easing)}}})),i&&i.delay(t.delay||0).duration(o).start(t.easing)}}))}}}var IZ="emphasis",$Z="normal",EZ="blur",DZ="select",RZ=[$Z,IZ,EZ,DZ],NZ={normal:["itemStyle"],emphasis:[IZ,"itemStyle"],blur:[EZ,"itemStyle"],select:[DZ,"itemStyle"]},LZ={normal:["label"],emphasis:[IZ,"label"],blur:[EZ,"label"],select:[DZ,"label"]},zZ=["x","y"],VZ="e\0\0",BZ={normal:{},emphasis:{},blur:{},select:{}},jZ={cartesian2d:GH,geo:UH,single:qH,polar:JH,calendar:eZ};function QZ(e){return e instanceof ac}function FZ(e){return e instanceof Jl}function WZ(e,t){t.copyTransform(e),FZ(t)&&FZ(e)&&(t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel,t.invisible=e.invisible,t.ignore=e.ignore,QZ(t)&&QZ(e)&&t.setShape(e.shape))}var HZ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Q(t,e),t.prototype.render=function(e,t,n,r){this._progressiveEls=null;var o=this._data,i=e.getData(),a=this.group,s=KZ(e,i,t,n);o||a.removeAll(),i.diff(o).add((function(t){eG(n,null,t,s(t,r),e,a,i)})).remove((function(t){var n=o.getItemGraphicEl(t);n&&pZ(n,FH(n).option,e)})).update((function(t,l){var u=o.getItemGraphicEl(l);eG(n,u,t,s(t,r),e,a,i)})).execute();var l=e.get("clip",!0)?RP(e.coordinateSystem,!1,e):null;l?a.setClipPath(l):a.removeClipPath(),this._data=i},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(e,t,n,r,o){var i=t.getData(),a=KZ(t,i,n,r),s=this._progressiveEls=[];function l(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}for(var u=e.start;u<e.end;u++){var c=eG(null,null,u,a(u,o),t,this.group,i);c&&(c.traverse(l),s.push(c))}},t.prototype.eachRendered=function(e){t_(this._progressiveEls||this.group,e)},t.prototype.filterForExposedEvent=function(e,t,n,r){var o=t.element;if(null==o||n.name===o)return!0;while((n=n.__hostTarget||n.parent)&&n!==this.group)if(n.name===o)return!0;return!1},t.type="custom",t}(c_),ZZ=HZ;function GZ(e){var t,n=e.type;if("path"===n){var r=e.shape,o=null!=r.width&&null!=r.height?{x:r.x||0,y:r.y||0,width:r.width,height:r.height}:null,i=fG(r);t=$b(i,null,o,r.layout||"center"),FH(t).customPathData=i}else if("image"===n)t=new fc({}),FH(t).customImagePath=e.style.image;else if("text"===n)t=new jc({});else if("group"===n)t=new Da;else{if("compoundPath"===n)throw new Error('"compoundPath" is not supported yet.');var a=Ib(n);if(!a){var s="";0,Sm(s)}t=new a}return FH(t).customGraphicType=n,t.name=e.name,t.z2EmphasisLift=1,t.z2SelectLift=1,t}function XZ(e,t,n,r,o,i,a){TZ(t);var s=o&&o.normal.cfg;s&&t.setTextConfig(s),r&&null==r.transition&&(r.transition=zZ);var l=r&&r.style;if(l){if("text"===t.type){var u=l;ft(u,"textFill")&&(u.fill=u.textFill),ft(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,d=QZ(t)?l.decal:null;e&&d&&(d.dirty=!0,c=pw(d,e)),l.__decalPattern=c}if(FZ(t)&&l){c=l.__decalPattern;c&&(l.decal=c)}dZ(t,r,i,{dataIndex:n,isInit:a,clearStyle:!0}),PZ(t,r.keyframeAnimation,i)}function UZ(e,t,n,r,o){var i=t.isGroup?null:t,a=o&&o[e].cfg;if(i){var s=i.ensureState(e);if(!1===r){var l=i.getState(e);l&&(l.style=null)}else s.style=r||null;a&&(s.textConfig=a),wd(i)}}function YZ(e,t,n){if(!e.isGroup){var r=e,o=n.currentZ,i=n.currentZLevel;r.z=o,r.zlevel=i;var a=t.z2;null!=a&&(r.z2=a||0);for(var s=0;s<RZ.length;s++)qZ(r,t,RZ[s])}}function qZ(e,t,n){var r,o=n===$Z,i=o?t:aG(t,n),a=i?i.z2:null;null!=a&&(r=o?e:e.ensureState(n),r.z2=a||0)}function KZ(e,t,n,r){var o=e.get("renderItem"),i=e.coordinateSystem,a={};i&&(a=i.prepareCustoms?i.prepareCustoms(i):jZ[i.type](i));for(var s,l,u=we({getWidth:r.getWidth,getHeight:r.getHeight,getZr:r.getZr,getDevicePixelRatio:r.getDevicePixelRatio,value:_,style:w,ordinalRawValue:x,styleEmphasis:O,visual:k,barLayout:C,currentSeriesIndices:M,font:T},a.api||{}),c={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:a.coordSys,dataInsideLength:t.count(),encode:JZ(e.getData())},d={},h={},p={},f={},g=0;g<RZ.length;g++){var m=RZ[g];p[m]=e.getModel(NZ[m]),f[m]=e.getModel(LZ[m])}function v(e){return e===s?l||(l=t.getItemModel(e)):t.getItemModel(e)}function y(e,n){return t.hasItemOption?e===s?d[n]||(d[n]=v(e).getModel(NZ[n])):v(e).getModel(NZ[n]):p[n]}function b(e,n){return t.hasItemOption?e===s?h[n]||(h[n]=v(e).getModel(LZ[n])):v(e).getModel(LZ[n]):f[n]}return function(e,n){return s=e,l=null,d={},h={},o&&o(we({dataIndexInside:e,dataIndex:t.getRawIndex(e),actionType:n?n.type:null},c),u)};function _(e,n){return null==n&&(n=s),t.getStore().get(t.getDimensionIndex(e||0),n)}function x(e,n){null==n&&(n=s),e=e||0;var r=t.getDimensionInfo(e);if(!r){var o=t.getDimensionIndex(e);return o>=0?t.getStore().get(o,n):void 0}var i=t.get(r.name,n),a=r&&r.ordinalMeta;return a?a.categories[i]:i}function w(n,r){null==r&&(r=s);var o=t.getItemVisual(r,"style"),i=o&&o.fill,a=o&&o.opacity,l=y(r,$Z).getItemStyle();null!=i&&(l.fill=i),null!=a&&(l.opacity=a);var u={inheritColor:Ve(i)?i:"#000"},c=b(r,$Z),d=yh(c,null,u,!1,!0);d.text=c.getShallow("show")?qe(e.getFormattedLabel(r,$Z),cP(t,r)):null;var h=bh(c,u,!1);return A(n,l),l=oZ(l,d,h),n&&S(l,n),l.legacy=!0,l}function O(n,r){null==r&&(r=s);var o=y(r,IZ).getItemStyle(),i=b(r,IZ),a=yh(i,null,null,!0,!0);a.text=i.getShallow("show")?Ke(e.getFormattedLabel(r,IZ),e.getFormattedLabel(r,$Z),cP(t,r)):null;var l=bh(i,null,!0);return A(n,o),o=oZ(o,a,l),n&&S(o,n),o.legacy=!0,o}function S(e,t){for(var n in t)ft(t,n)&&(e[n]=t[n])}function A(e,t){e&&(e.textFill&&(t.textFill=e.textFill),e.textPosition&&(t.textPosition=e.textPosition))}function k(e,n){if(null==n&&(n=s),ft(jH,e)){var r=t.getItemVisual(n,"style");return r?r[jH[e]]:null}if(ft(QH,e))return t.getItemVisual(n,e)}function C(e){if("cartesian2d"===i.type){var t=i.getBaseAxis();return LA(we({axis:t},e))}}function M(){return n.getCurrentSeriesIndices()}function T(e){return kh(e,n)}}function JZ(e){var t={};return Me(e.dimensions,(function(n){var r=e.getDimensionInfo(n);if(!r.isExtraCoord){var o=r.coordDim,i=t[o]=t[o]||[];i[r.coordDimIndex]=e.getDimensionIndex(n)}})),t}function eG(e,t,n,r,o,i,a){if(r){var s=tG(e,t,n,r,o,i);return s&&a.setItemGraphicEl(n,s),s&&Wd(s,r.focus,r.blurScope,r.emphasisDisabled),s}i.remove(t)}function tG(e,t,n,r,o,i){var a=-1,s=t;t&&nG(t,r,o)&&(a=Se(i.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=GZ(r),s&&WZ(s,u)),!1===r.morph?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),BZ.normal.cfg=BZ.normal.conOpt=BZ.emphasis.cfg=BZ.emphasis.conOpt=BZ.blur.cfg=BZ.blur.conOpt=BZ.select.cfg=BZ.select.conOpt=null,BZ.isLegacy=!1,oG(u,n,r,o,l,BZ),rG(u,n,r,o,l),XZ(e,u,n,r,BZ,o,l),ft(r,"info")&&(FH(u).info=r.info);for(var c=0;c<RZ.length;c++){var d=RZ[c];if(d!==$Z){var h=aG(r,d),p=sG(r,h,d);UZ(d,u,h,p,BZ)}}return YZ(u,r,o),"group"===r.type&&lG(e,u,n,r,o),a>=0?i.replaceAt(u,a):i.add(u),u}function nG(e,t,n){var r=FH(e),o=t.type,i=t.shape,a=t.style;return n.isUniversalTransitionEnabled()||null!=o&&o!==r.customGraphicType||"path"===o&&gG(i)&&fG(i)!==r.customPathData||"image"===o&&ft(a,"image")&&a.image!==r.customImagePath}function rG(e,t,n,r,o){var i=n.clipPath;if(!1===i)e&&e.getClipPath()&&e.removeClipPath();else if(i){var a=e.getClipPath();a&&nG(a,i,r)&&(a=null),a||(a=GZ(i),e.setClipPath(a)),XZ(null,a,t,i,null,r,o)}}function oG(e,t,n,r,o,i){if(!e.isGroup){iG(n,null,i),iG(n,IZ,i);var a=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(null!=a||null!=s||null!=u||null!=l){var c=e.getTextContent();if(!1===a)c&&e.removeTextContent();else{a=i.normal.conOpt=a||{type:"text"},c?c.clearStates():(c=GZ(a),e.setTextContent(c)),XZ(null,c,t,a,null,r,o);for(var d=a&&a.style,h=0;h<RZ.length;h++){var p=RZ[h];if(p!==$Z){var f=i[p].conOpt;UZ(p,c,f,sG(a,f,p),null)}}d?c.dirty():c.markRedraw()}}}}function iG(e,t,n){var r=t?aG(e,t):e,o=t?sG(e,r,IZ):e.style,i=e.type,a=r?r.textConfig:null,s=e.textContent,l=s?t?aG(s,t):s:null;if(o&&(n.isLegacy||tZ(o,i,!!a,!!l))){n.isLegacy=!0;var u=nZ(o,i,!t);!a&&u.textConfig&&(a=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!t&&l){var c=l;!c.type&&(c.type="text")}var d=t?n[t]:n.normal;d.cfg=a,d.conOpt=l}function aG(e,t){return t?e?e[t]:null:e}function sG(e,t,n){var r=t&&t.style;return null==r&&n===IZ&&e&&(r=e.styleEmphasis),r}function lG(e,t,n,r,o){var i=r.children,a=i?i.length:0,s=r.$mergeChildren,l="byName"===s||r.diffChildrenByName,u=!1===s;if(a||l||u)if(l)cG({api:e,oldChildren:t.children()||[],newChildren:i||[],dataIndex:n,seriesModel:o,group:t});else{u&&t.removeAll();for(var c=0;c<a;c++){var d=i[c],h=t.childAt(c);d?(null==d.ignore&&(d.ignore=!1),tG(e,h,n,d,o,t)):h.ignore=!0}for(var p=t.childCount()-1;p>=c;p--){var f=t.childAt(p);uG(t,f,o)}}}function uG(e,t,n){t&&pZ(t,FH(e).option,n)}function cG(e){new gS(e.oldChildren,e.newChildren,dG,dG,e).add(hG).update(hG).remove(pG).execute()}function dG(e,t){var n=e&&e.name;return null!=n?n:VZ+t}function hG(e,t){var n=this.context,r=null!=e?n.newChildren[e]:null,o=null!=t?n.oldChildren[t]:null;tG(n.api,o,n.dataIndex,r,n.seriesModel,n.group)}function pG(e){var t=this.context,n=t.oldChildren[e];n&&pZ(n,FH(n).option,t.seriesModel)}function fG(e){return e&&(e.pathData||e.d)}function gG(e){return e&&(ft(e,"pathData")||ft(e,"d"))}function mG(e){e.registerChartView(ZZ),e.registerSeriesModel(HH)}var vG=Xs(),yG=ye,bG=Re,_G=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,r){var o=t.get("value"),i=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=n,r||this._lastValue!==o||this._lastStatus!==i){this._lastValue=o,this._lastStatus=i;var a=this._group,s=this._handle;if(!i||"hide"===i)return a&&a.hide(),void(s&&s.hide());a&&a.show(),s&&s.show();var l={};this.makeElOption(l,o,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=Ne(xG,t,c);this.updatePointerEl(a,l,d),this.updateLabelEl(a,l,d,t)}else a=this._group=new Da,this.createPointerEl(a,l,e,t),this.createLabelEl(a,l,e,t),n.getZr().add(a);AG(a,t,!0),this._renderHandle(o)}},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"),r=e.axis,o="category"===r.type,i=t.get("snap");if(!i&&!o)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(o&&r.getBandWidth()>a)return!0;if(i){var s=xE(e).seriesDataCount,l=r.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},e.prototype.makeElOption=function(e,t,n,r,o){},e.prototype.createPointerEl=function(e,t,n,r){var o=t.pointer;if(o){var i=vG(e).pointerEl=new l[o.type](yG(t.pointer));e.add(i)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var o=vG(e).labelEl=new jc(yG(t.label));e.add(o),OG(o,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=vG(e).pointerEl;r&&t.pointer&&(r.setStyle(t.pointer.style),n(r,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,r){var o=vG(e).labelEl;o&&(o.setStyle(t.label.style),n(o,{x:t.label.x,y:t.label.y}),OG(o,r))},e.prototype._renderHandle=function(e){if(!this._dragging&&this.updateHandleTransform){var t,n=this._axisPointerModel,r=this._api.getZr(),o=this._handle,i=n.getModel("handle"),a=n.get("status");if(!i.get("show")||!a||"hide"===a)return o&&r.remove(o),void(this._handle=null);this._handle||(t=!0,o=this._handle=Xb(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(e){vn(e.event)},onmousedown:bG(this._onHandleDragMove,this,0,0),drift:bG(this._onHandleDragMove,this),ondragend:bG(this._onHandleDragEnd,this)}),r.add(o)),AG(o,n,!1),o.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=i.get("size");Le(s)||(s=[s,s]),o.scaleX=s[0]/2,o.scaleY=s[1]/2,g_(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,t)}},e.prototype._moveHandleToValue=function(e,t){xG(this._axisPointerModel,!t&&this._moveAnimation,this._handle,SG(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(SG(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(SG(r)),vG(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,r=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),r&&t.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),m_(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 xG(e,t,n,r){wG(vG(n).lastProp,r)||(vG(n).lastProp=r,t?ih(n,r,e):(n.stopAnimation(),n.attr(r)))}function wG(e,t){if(Qe(e)&&Qe(t)){var n=!0;return Me(t,(function(t,r){n=n&&wG(e[r],t)})),!!n}return e===t}function OG(e,t){e[t.get(["label","show"])?"show":"hide"]()}function SG(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function AG(e,t,n){var r=t.get("z"),o=t.get("zlevel");e&&e.traverse((function(e){"group"!==e.type&&(null!=r&&(e.z=r),null!=o&&(e.zlevel=o),e.silent=n)}))}var kG=_G;function CG(e){var t,n=e.get("type"),r=e.getModel(n+"Style");return"line"===n?(t=r.getLineStyle(),t.fill=null):"shadow"===n&&(t=r.getAreaStyle(),t.stroke=null),t}function MG(e,t,n,r,o){var i=n.get("value"),a=PG(i,t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=Bp(s.get("padding")||0),u=s.getFont(),c=pa(a,u),d=o.position,h=c.width+l[1]+l[3],p=c.height+l[0]+l[2],f=o.align;"right"===f&&(d[0]-=h),"center"===f&&(d[0]-=h/2);var g=o.verticalAlign;"bottom"===g&&(d[1]-=p),"middle"===g&&(d[1]-=p/2),TG(d,h,p,r);var m=s.get("backgroundColor");m&&"auto"!==m||(m=t.get(["axisLine","lineStyle","color"])),e.label={x:d[0],y:d[1],style:yh(s,{text:a,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function TG(e,t,n,r){var o=r.getWidth(),i=r.getHeight();e[0]=Math.min(e[0]+t,o)-t,e[1]=Math.min(e[1]+n,i)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function PG(e,t,n,r,o){e=t.scale.parse(e);var i=t.scale.getLabel({value:e},{precision:o.precision}),a=o.formatter;if(a){var s={value:Mk(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};Me(r,(function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,o=t&&t.getDataParams(r);o&&s.seriesData.push(o)})),Ve(a)?i=a.replace("{value}",i):ze(a)&&(i=a(s))}return i}function IG(e,t,n){var r=On();return Mn(r,r,n.rotation),Cn(r,r,n.position),jb([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function $G(e,t,n,r,o,i){var a=pE.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=o.get(["label","margin"]),MG(t,r,o,i,{position:IG(r.axis,e,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function EG(e,t,n){return n=n||0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function DG(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function RG(e,t,n,r,o,i){return{cx:e,cy:t,r0:n,r:r,startAngle:o,endAngle:i,clockwise:!0}}var NG=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Q(t,e),t.prototype.makeElOption=function(e,t,n,r,o){var i=n.axis,a=i.grid,s=r.get("type"),l=LG(a,i).getOtherAxis(i).getGlobalExtent(),u=i.toGlobalCoord(i.dataToCoord(t,!0));if(s&&"none"!==s){var c=CG(r),d=zG[s](i,u,l);d.style=c,e.graphicKey=d.type,e.pointer=d}var h=W$(a.model,n);$G(t,e,h,n,r,o)},t.prototype.getHandleTransform=function(e,t,n){var r=W$(t.axis.grid.model,t,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var o=IG(t.axis,e,r);return{x:o[0],y:o[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var o=n.axis,i=o.grid,a=o.getGlobalExtent(!0),s=LG(i,o).getOtherAxis(o).getGlobalExtent(),l="x"===o.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}(kG);function LG(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var zG={line:function(e,t,n){var r=EG([t,n[0]],[t,n[1]],VG(e));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(e,t,n){var r=Math.max(1,e.getBandWidth()),o=n[1]-n[0];return{type:"Rect",shape:DG([t-r/2,n[0]],[r,o],VG(e))}}};function VG(e){return"x"===e.dim?0:1}var BG=NG,jG=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Q(t,e),t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(ff),QG=jG,FG=Xs(),WG=Me;function HG(e,t,n){if(!G.node){var r=t.getZr();FG(r).records||(FG(r).records={}),ZG(r,t);var o=FG(r).records[e]||(FG(r).records[e]={});o.handler=n}}function ZG(e,t){function n(n,r){e.on(n,(function(n){var o=YG(t);WG(FG(e).records,(function(e){e&&r(e,n,o.dispatchAction)})),GG(o.pendings,t)}))}FG(e).initialized||(FG(e).initialized=!0,n("click",Ne(UG,"click")),n("mousemove",Ne(UG,"mousemove")),n("globalout",XG))}function GG(e,t){var n,r=e.showTip.length,o=e.hideTip.length;r?n=e.showTip[r-1]:o&&(n=e.hideTip[o-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}function XG(e,t,n){e.handler("leave",null,n)}function UG(e,t,n,r){t.handler(e,n,r)}function YG(e){var t={showTip:[],hideTip:[]},n=function(r){var o=t[r.type];o?o.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}function qG(e,t){if(!G.node){var n=t.getZr(),r=(FG(n).records||{})[e];r&&(FG(n).records[e]=null)}}var KG=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Q(t,e),t.prototype.render=function(e,t,n){var r=t.getComponent("tooltip"),o=e.get("triggerOn")||r&&r.get("triggerOn")||"mousemove|click";HG("axisPointer",n,(function(e,t,n){"none"!==o&&("leave"===e||o.indexOf(e)>=0)&&n({type:"updateAxisPointer",currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})}))},t.prototype.remove=function(e,t){qG("axisPointer",t)},t.prototype.dispose=function(e,t){qG("axisPointer",t)},t.type="axisPointer",t}(Fv),JG=KG;function eX(e,t){var n,r=[],o=e.seriesIndex;if(null==o||!(n=t.getSeriesByIndex(o)))return{point:[]};var i=n.getData(),a=Gs(i,e);if(null==a||a<0||Le(a))return{point:[]};var s=i.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)r=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=i.mapDimension(h),g=[];g[p]=i.get(f,a),g[1-p]=i.get(i.getCalculationInfo("stackResultDimension"),a),r=l.dataToPoint(g)||[]}else r=l.dataToPoint(i.getValues(Te(l.dimensions,(function(e){return i.mapDimension(e)})),a))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),r=[m.x+m.width/2,m.y+m.height/2]}return{point:r,el:s}}var tX=Xs();function nX(e,t,n){var r=e.currTrigger,o=[e.x,e.y],i=e,a=e.dispatchAction||Re(n.dispatchAction,n),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){hX(o)&&(o=eX({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=hX(o),u=i.axesInfo,c=s.axesInfo,d="leave"===r||hX(o),h={},p={},f={list:[],map:{}},g={showPointer:Ne(iX,p),showTooltip:Ne(aX,f)};Me(s.coordSysMap,(function(e,t){var n=l||e.containPoint(o);Me(s.coordSysAxesInfo[t],(function(e,t){var r=e.axis,i=cX(u,e);if(!d&&n&&(!u||i)){var a=i&&i.value;null!=a||l||(a=r.pointToData(o)),null!=a&&rX(e,a,g,!1,h)}}))}));var m={};return Me(c,(function(e,t){var n=e.linkGroup;n&&!p[t]&&Me(n.axesInfo,(function(t,r){var o=p[r];if(t!==e&&o){var i=o.value;n.mapper&&(i=e.axis.scale.parse(n.mapper(i,dX(t),dX(e)))),m[e.key]=i}}))})),Me(m,(function(e,t){rX(c[t],e,g,!0,h)})),sX(p,c,h),lX(f,o,e,a),uX(c,a,n),h}}function rX(e,t,n,r,o){var i=e.axis;if(!i.scale.isBlank()&&i.containData(t))if(e.involveSeries){var a=oX(t,e),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==o.seriesIndex&&xe(o,s[0]),!r&&e.snap&&i.containData(l)&&null!=l&&(t=l),n.showPointer(e,t,s),n.showTooltip(e,a,l)}else n.showPointer(e,t)}function oX(e,t){var n=t.axis,r=n.dim,o=e,i=[],a=Number.MAX_VALUE,s=-1;return Me(t.seriesModels,(function(t,l){var u,c,d=t.getData().mapDimensionsAll(r);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<a||p>=0&&s<0)&&(a=f,s=p,o=u,i.length=0),Me(c,(function(e){i.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})})))}})),{payloadBatch:i,snapToValue:o}}function iX(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function aX(e,t,n,r){var o=n.payloadBatch,i=t.axis,a=i.model,s=t.axisPointerModel;if(t.triggerTooltip&&o.length){var l=t.coordSys.model,u=SE(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:i.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:o.slice()})}}function sX(e,t,n){var r=n.axesInfo=[];Me(t,(function(t,n){var o=t.axisPointerModel.option,i=e[n];i?(!t.useHandle&&(o.status="show"),o.value=i.value,o.seriesDataIndices=(i.payloadBatch||[]).slice()):!t.useHandle&&(o.status="hide"),"show"===o.status&&r.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:o.value})}))}function lX(e,t,n,r){if(!hX(t)&&e.list.length){var o=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:o.dataIndexInside,dataIndex:o.dataIndex,seriesIndex:o.seriesIndex,dataByCoordSys:e.list})}else r({type:"hideTip"})}function uX(e,t,n){var r=n.getZr(),o="axisPointerLastHighlights",i=tX(r)[o]||{},a=tX(r)[o]={};Me(e,(function(e,t){var n=e.axisPointerModel.option;"show"===n.status&&e.triggerEmphasis&&Me(n.seriesDataIndices,(function(e){var t=e.seriesIndex+" | "+e.dataIndex;a[t]=e}))}));var s=[],l=[];Me(i,(function(e,t){!a[t]&&l.push(e)})),Me(a,(function(e,t){!i[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 cX(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}function dX(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=t.componentIndex,n.axisName=n[r+"AxisName"]=t.name,n.axisId=n[r+"AxisId"]=t.id,n}function hX(e){return!e||null==e[0]||isNaN(e[0])||null==e[1]||isNaN(e[1])}function pX(e){CE.registerAxisPointerClass("CartesianAxisPointer",BG),e.registerComponentModel(QG),e.registerComponentView(JG),e.registerPreprocessor((function(e){if(e){(!e.axisPointer||0===e.axisPointer.length)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!Le(t)&&(e.axisPointer.link=[t])}})),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,(function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=fE(e,t)})),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},nX)}function fX(e){dS(VE),dS(pX)}var gX=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Q(t,e),t.prototype.makeElOption=function(e,t,n,r,o){var i=n.axis;"angle"===i.dim&&(this.animationThreshold=Math.PI/18);var a=i.polar,s=a.getOtherAxis(i),l=s.getExtent(),u=i.dataToCoord(t),c=r.get("type");if(c&&"none"!==c){var d=CG(r),h=vX[c](i,a,u,l);h.style=d,e.graphicKey=h.type,e.pointer=h}var p=r.get(["label","margin"]),f=mX(t,n,r,a,p);MG(e,n,r,o,f)},t}(kG);function mX(e,t,n,r,o){var i=t.axis,a=i.dataToCoord(e),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,u,c,d=r.getRadiusAxis().getExtent();if("radius"===i.dim){var h=On();Mn(h,h,s),Cn(h,h,[r.cx,r.cy]),l=jb([a,-o],h);var p=t.getModel("axisLabel").get("rotate")||0,f=pE.innerTextLayout(s,p*Math.PI/180,-1);u=f.textAlign,c=f.textVerticalAlign}else{var g=d[1];l=r.coordToPoint([g+o,a]);var m=r.cx,v=r.cy;u=Math.abs(l[0]-m)/g<.3?"center":l[0]>m?"left":"right",c=Math.abs(l[1]-v)/g<.3?"middle":l[1]>v?"top":"bottom"}return{position:l,align:u,verticalAlign:c}}var vX={line:function(e,t,n,r){return"angle"===e.dim?{type:"Line",shape:EG(t.coordToPoint([r[0],n]),t.coordToPoint([r[1],n]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:n}}},shadow:function(e,t,n,r){var o=Math.max(1,e.getBandWidth()),i=Math.PI/180;return"angle"===e.dim?{type:"Sector",shape:RG(t.cx,t.cy,r[0],r[1],(-n-o/2)*i,(o/2-n)*i)}:{type:"Sector",shape:RG(t.cx,t.cy,n-o/2,n+o/2,0,2*Math.PI)}}},yX=gX,bX=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Q(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}(ff),_X=bX,xX=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Q(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Ks).models[0]},t.type="polarAxis",t}(ff);ke(xX,Rk);var wX=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Q(t,e),t.type="angleAxis",t}(xX),OX=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Q(t,e),t.type="radiusAxis",t}(xX),SX=function(e){function t(t,n){return e.call(this,"radius",t,n)||this}return Q(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t}(SC);SX.prototype.dataToRadius=SC.prototype.dataToCoord,SX.prototype.radiusToData=SC.prototype.coordToData;var AX=SX,kX=Xs(),CX=function(e){function t(t,n){return e.call(this,"angle",t,n||[0,360])||this}return Q(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,r=n.getExtent(),o=n.count();if(r[1]-r[0]<1)return 0;var i=r[0],a=e.dataToCoord(i+1)-e.dataToCoord(i),s=Math.abs(a),l=pa(null==i?"":i+"",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=kX(e.model),p=h.lastAutoInterval,f=h.lastTickCount;return null!=p&&null!=f&&Math.abs(p-d)<=1&&Math.abs(f-o)<=1&&p>d?d=p:(h.lastTickCount=o,h.lastAutoInterval=d),d},t}(SC);CX.prototype.dataToAngle=SC.prototype.dataToCoord,CX.prototype.angleToData=SC.prototype.coordToData;var MX=CX,TX=["radius","angle"],PX=function(){function e(e){this.dimensions=TX,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new AX,this._angleAxis=new MX,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,r=this._radiusAxis;return n.scale.type===e&&t.push(n),r.scale.type===e&&t.push(r),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,r=this.getAngleAxis(),o=r.getExtent(),i=Math.min(o[0],o[1]),a=Math.max(o[0],o[1]);r.inverse?i=a-360:a=i+360;var s=Math.sqrt(t*t+n*n);t/=s,n/=s;var l=Math.atan2(-n,t)/Math.PI*180,u=l<i?1:-1;while(l<i||l>a)l+=360*u;return[s,l]},e.prototype.coordToPoint=function(e){var t=e[0],n=e[1]/180*Math.PI,r=Math.cos(n)*t+this.cx,o=-Math.sin(n)*t+this.cy;return[r,o]},e.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),n=t.getExtent().slice();n[0]>n[1]&&n.reverse();var r=e.getExtent(),o=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-r[0]*o,endAngle:-r[1]*o,clockwise:e.inverse,contain:function(e,t){var n=e-this.cx,r=t-this.cy,o=n*n+r*r-1e-4,i=this.r,a=this.r0;return o<=i*i&&o>=a*a}}},e.prototype.convertToPixel=function(e,t,n){var r=IX(t);return r===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var r=IX(t);return r===this?this.pointToData(n):null},e}();function IX(e){var t=e.seriesModel,n=e.polarModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}var $X=PX;function EX(e,t,n){var r=t.get("center"),o=n.getWidth(),i=n.getHeight();e.cx=Ja(r[0],o),e.cy=Ja(r[1],i);var a=e.getRadiusAxis(),s=Math.min(o,i)/2,l=t.get("radius");null==l?l=[0,"100%"]:Le(l)||(l=[0,l]);var u=[Ja(l[0],s),Ja(l[1],s)];a.inverse?a.setExtent(u[1],u[0]):a.setExtent(u[0],u[1])}function DX(e,t){var n=this,r=n.getAngleAxis(),o=n.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),o.scale.setExtent(1/0,-1/0),e.eachSeries((function(e){if(e.coordinateSystem===n){var t=e.getData();Me(Ek(t,"radius"),(function(e){o.scale.unionExtentFromData(t,e)})),Me(Ek(t,"angle"),(function(e){r.scale.unionExtentFromData(t,e)}))}})),Sk(r.scale,r.model),Sk(o.scale,o.model),"category"===r.type&&!r.onBand){var i=r.getExtent(),a=360/r.scale.count();r.inverse?i[1]+=a:i[1]-=a,r.setExtent(i[0],i[1])}}function RX(e){return"angleAxis"===e.mainType}function NX(e,t){var n;if(e.type=t.get("type"),e.scale=Ak(t),e.onBand=t.get("boundaryGap")&&"category"===e.type,e.inverse=t.get("inverse"),RX(t)){e.inverse=e.inverse!==t.get("clockwise");var r=t.get("startAngle"),o=null!==(n=t.get("endAngle"))&&void 0!==n?n:r+(e.inverse?-360:360);e.setExtent(r,o)}t.axis=e,e.model=t}var LX={dimensions:TX,create:function(e,t){var n=[];return e.eachComponent("polar",(function(e,r){var o=new $X(r+"");o.update=DX;var i=o.getRadiusAxis(),a=o.getAngleAxis(),s=e.findAxisModel("radiusAxis"),l=e.findAxisModel("angleAxis");NX(i,s),NX(a,l),EX(o,e,t),n.push(o),e.coordinateSystem=o,o.model=e})),e.eachSeries((function(e){if("polar"===e.get("coordinateSystem")){var t=e.getReferringComponents("polar",Ks).models[0];0,e.coordinateSystem=t.coordinateSystem}})),n}},zX=LX,VX=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function BX(e,t,n){t[1]>t[0]&&(t=t.slice().reverse());var r=e.coordToPoint([t[0],n]),o=e.coordToPoint([t[1],n]);return{x1:r[0],y1:r[1],x2:o[0],y2:o[1]}}function jX(e){var t=e.getRadiusAxis();return t.inverse?0:1}function QX(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 FX=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return Q(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var n=e.axis,r=n.polar,o=r.getRadiusAxis().getExtent(),i=n.getTicksCoords(),a=n.getMinorTicksCoords(),s=Te(n.getViewLabels(),(function(e){e=ye(e);var t=n.scale,r="ordinal"===t.type?t.getRawOrdinalNumber(e.tickValue):e.tickValue;return e.coord=n.dataToCoord(r),e}));QX(s),QX(i),Me(VX,(function(t){!e.get([t,"show"])||n.scale.isBlank()&&"axisLine"!==t||WX[t](this.group,e,r,i,a,o,s)}),this)}},t.type="angleAxis",t}(CE),WX={axisLine:function(e,t,n,r,o,i){var a,s=t.getModel(["axisLine","lineStyle"]),u=n.getAngleAxis(),c=Math.PI/180,d=u.getExtent(),h=jX(n),p=h?0:1,f=360===Math.abs(d[1]-d[0])?"Circle":"Arc";a=0===i[p]?new l[f]({shape:{cx:n.cx,cy:n.cy,r:i[h],startAngle:-d[0]*c,endAngle:-d[1]*c,clockwise:u.inverse},style:s.getLineStyle(),z2:1,silent:!0}):new By({shape:{cx:n.cx,cy:n.cy,r:i[h],r0:i[p]},style:s.getLineStyle(),z2:1,silent:!0}),a.style.fill=null,e.add(a)},axisTick:function(e,t,n,r,o,i){var a=t.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=i[jX(n)],u=Te(r,(function(e){return new Ky({shape:BX(n,[l,l+s],e.coord)})}));e.add(Rb(u,{style:we(a.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,n,r,o,i){if(o.length){for(var a=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(a.get("inside")?-1:1)*s.get("length"),u=i[jX(n)],c=[],d=0;d<o.length;d++)for(var h=0;h<o[d].length;h++)c.push(new Ky({shape:BX(n,[u,u+l],o[d][h].coord)}));e.add(Rb(c,{style:we(s.getModel("lineStyle").getLineStyle(),we(a.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(e,t,n,r,o,i,a){var s=t.getCategories(!0),l=t.getModel("axisLabel"),u=l.get("margin"),c=t.get("triggerEvent");Me(a,(function(r,o){var a=l,d=r.tickValue,h=i[jX(n)],p=n.coordToPoint([h+u,r.coord]),f=n.cx,g=n.cy,m=Math.abs(p[0]-f)/h<.3?"center":p[0]>f?"left":"right",v=Math.abs(p[1]-g)/h<.3?"middle":p[1]>g?"top":"bottom";if(s&&s[d]){var y=s[d];Qe(y)&&y.textStyle&&(a=new Qh(y.textStyle,l,l.ecModel))}var b=new jc({silent:pE.isLabelSilent(t),style:yh(a,{x:p[0],y:p[1],fill:a.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:r.formattedLabel,align:m,verticalAlign:v})});if(e.add(b),c){var _=pE.makeAxisEventDataBase(t);_.targetType="axisLabel",_.value=r.rawLabel,Qc(b).eventData=_}}),this)},splitLine:function(e,t,n,r,o,i){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<r.length;d++){var h=u++%l.length;c[h]=c[h]||[],c[h].push(new Ky({shape:BX(n,i,r[d].coord)}))}for(d=0;d<c.length;d++)e.add(Rb(c[d],{style:we({stroke:l[d%l.length]},s.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(e,t,n,r,o,i){if(o.length){for(var a=t.getModel("minorSplitLine"),s=a.getModel("lineStyle"),l=[],u=0;u<o.length;u++)for(var c=0;c<o[u].length;c++)l.push(new Ky({shape:BX(n,i,o[u][c].coord)}));e.add(Rb(l,{style:s.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(e,t,n,r,o,i){if(r.length){var a=t.getModel("splitArea"),s=a.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],d=Math.PI/180,h=-r[0].coord*d,p=Math.min(i[0],i[1]),f=Math.max(i[0],i[1]),g=t.get("clockwise"),m=1,v=r.length;m<=v;m++){var y=m===v?r[0].coord:r[m].coord,b=u++%l.length;c[b]=c[b]||[],c[b].push(new Ly({shape:{cx:n.cx,cy:n.cy,r0:p,r:f,startAngle:h,endAngle:-y*d,clockwise:g},silent:!0})),h=-y*d}for(m=0;m<c.length;m++)e.add(Rb(c[m],{style:we({fill:l[m%l.length]},s.getAreaStyle()),silent:!0}))}}},HX=FX,ZX=["axisLine","axisTickLabel","axisName"],GX=["splitLine","splitArea","minorSplitLine"],XX=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return Q(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var n=this._axisGroup,r=this._axisGroup=new Da;this.group.add(r);var o=e.axis,i=o.polar,a=i.getAngleAxis(),s=o.getTicksCoords(),l=o.getMinorTicksCoords(),u=a.getExtent()[0],c=o.getExtent(),d=YX(i,e,u),h=new pE(e,d);Me(ZX,h.add,h),r.add(h.getGroup()),Hb(n,r,e),Me(GX,(function(t){e.get([t,"show"])&&!o.scale.isBlank()&&UX[t](this.group,e,i,u,c,s,l)}),this)}},t.type="radiusAxis",t}(CE),UX={splitLine:function(e,t,n,r,o,i){var a=t.getModel("splitLine"),s=a.getModel("lineStyle"),u=s.get("color"),c=0,d=n.getAngleAxis(),h=Math.PI/180,p=d.getExtent(),f=360===Math.abs(p[1]-p[0])?"Circle":"Arc";u=u instanceof Array?u:[u];for(var g=[],m=0;m<i.length;m++){var v=c++%u.length;g[v]=g[v]||[],g[v].push(new l[f]({shape:{cx:n.cx,cy:n.cy,r:Math.max(i[m].coord,0),startAngle:-p[0]*h,endAngle:-p[1]*h,clockwise:d.inverse}}))}for(m=0;m<g.length;m++)e.add(Rb(g[m],{style:we({stroke:u[m%u.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(e,t,n,r,o,i,a){if(a.length){for(var s=t.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],c=0;c<a.length;c++)for(var d=0;d<a[c].length;d++)u.push(new my({shape:{cx:n.cx,cy:n.cy,r:a[c][d].coord}}));e.add(Rb(u,{style:we({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(e,t,n,r,o,i){if(i.length){var a=t.getModel("splitArea"),s=a.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],d=i[0].coord,h=1;h<i.length;h++){var p=u++%l.length;c[p]=c[p]||[],c[p].push(new Ly({shape:{cx:n.cx,cy:n.cy,r0:d,r:i[h].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),d=i[h].coord}for(h=0;h<c.length;h++)e.add(Rb(c[h],{style:we({fill:l[h%l.length]},s.getAreaStyle()),silent:!0}))}}};function YX(e,t,n){return{position:[e.cx,e.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}var qX=XX;function KX(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function JX(e,t){return t.dim+e.model.componentIndex}function eU(e,t,n){var r={},o=tU(Ie(t.getSeriesByType(e),(function(e){return!t.isSeriesFiltered(e)&&e.coordinateSystem&&"polar"===e.coordinateSystem.type})));t.eachSeriesByType(e,(function(e){if("polar"===e.coordinateSystem.type){var t=e.getData(),n=e.coordinateSystem,i=n.getBaseAxis(),a=JX(n,i),s=KX(e),l=o[a][s],u=l.offset,c=l.width,d=n.getOtherAxis(i),h=e.coordinateSystem.cx,p=e.coordinateSystem.cy,f=e.get("barMinHeight")||0,g=e.get("barMinAngle")||0;r[s]=r[s]||[];for(var m=t.mapDimension(d.dim),v=t.mapDimension(i.dim),y=rA(t,m),b="radius"!==i.dim||!e.get("roundCap",!0),_=d.model,x=_.get("startValue"),w=d.dataToCoord(x||0),O=0,S=t.count();O<S;O++){var A=t.get(m,O),k=t.get(v,O),C=A>=0?"p":"n",M=w;y&&(r[s][k]||(r[s][k]={p:w,n:w}),M=r[s][k][C]);var T=void 0,P=void 0,I=void 0,$=void 0;if("radius"===d.dim){var E=d.dataToCoord(A)-w,D=i.dataToCoord(k);Math.abs(E)<f&&(E=(E<0?-1:1)*f),T=M,P=M+E,I=D-u,$=I-c,y&&(r[s][k][C]=P)}else{var R=d.dataToCoord(A,b)-w,N=i.dataToCoord(k);Math.abs(R)<g&&(R=(R<0?-1:1)*g),T=N+u,P=T+c,I=M,$=M+R,y&&(r[s][k][C]=$)}t.setItemLayout(O,{cx:h,cy:p,r0:T,r:P,startAngle:-I*Math.PI/180,endAngle:-$*Math.PI/180,clockwise:I>=$})}}}))}function tU(e){var t={};Me(e,(function(e,n){var r=e.getData(),o=e.coordinateSystem,i=o.getBaseAxis(),a=JX(o,i),s=i.getExtent(),l="category"===i.type?i.getBandWidth():Math.abs(s[1]-s[0])/r.count(),u=t[a]||{bandWidth:l,remainedWidth:l,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},c=u.stacks;t[a]=u;var d=KX(e);c[d]||u.autoWidthCount++,c[d]=c[d]||{width:0,maxWidth:0};var h=Ja(e.get("barWidth"),l),p=Ja(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 Me(t,(function(e,t){n[t]={};var r=e.stacks,o=e.bandWidth,i=Ja(e.categoryGap,o),a=Ja(e.gap,1),s=e.remainedWidth,l=e.autoWidthCount,u=(s-i)/(l+(l-1)*a);u=Math.max(u,0),Me(r,(function(e,t){var n=e.maxWidth;n&&n<u&&(n=Math.min(n,s),e.width&&(n=Math.min(n,e.width)),s-=n,e.width=n,l--)})),u=(s-i)/(l+(l-1)*a),u=Math.max(u,0);var c,d=0;Me(r,(function(e,t){e.width||(e.width=u),c=e,d+=e.width*(1+a)})),c&&(d-=c.width*a);var h=-d/2;Me(r,(function(e,r){n[t][r]=n[t][r]||{offset:h,width:e.width},h+=e.width*(1+a)}))})),n}var nU=eU,rU={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},oU={splitNumber:5},iU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Q(t,e),t.type="polar",t}(Fv);function aU(e){dS(pX),CE.registerAxisPointerClass("PolarAxisPointer",yX),e.registerCoordinateSystem("polar",zX),e.registerComponentModel(_X),e.registerComponentView(iU),D$(e,"angle",wX,rU),D$(e,"radius",OX,oU),e.registerComponentView(HX),e.registerComponentView(qX),e.registerLayout(Ne(nU,"bar"))}function sU(e,t){t=t||{};var n=e.coordinateSystem,r=e.axis,o={},i=r.position,a=r.orient,s=n.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};o.position=["vertical"===a?u.vertical[i]:l[0],"horizontal"===a?u.horizontal[i]:l[3]];var c={horizontal:0,vertical:1};o.rotation=Math.PI/2*c[a];var d={top:-1,bottom:1,right:1,left:-1};o.labelDirection=o.tickDirection=o.nameDirection=d[i],e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),Ye(t.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var h=t.rotate;return null==h&&(h=e.get(["axisLabel","rotate"])),o.labelRotation="top"===i?-h:h,o.z2=1,o}var lU=["axisLine","axisTickLabel","axisName"],uU=["splitArea","splitLine"],cU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="SingleAxisPointer",n}return Q(t,e),t.prototype.render=function(t,n,r,o){var i=this.group;i.removeAll();var a=this._axisGroup;this._axisGroup=new Da;var s=sU(t),l=new pE(t,s);Me(lU,l.add,l),i.add(this._axisGroup),i.add(l.getGroup()),Me(uU,(function(e){t.get([e,"show"])&&dU[e](this,this.group,this._axisGroup,t)}),this),Hb(a,this._axisGroup,t),e.prototype.render.call(this,t,n,r,o)},t.prototype.remove=function(){PE(this)},t.type="singleAxis",t}(CE),dU={splitLine:function(e,t,n,r){var o=r.axis;if(!o.scale.isBlank()){var i=r.getModel("splitLine"),a=i.getModel("lineStyle"),s=a.get("color");s=s instanceof Array?s:[s];for(var l=a.get("width"),u=r.coordinateSystem.getRect(),c=o.isHorizontal(),d=[],h=0,p=o.getTicksCoords({tickModel:i}),f=[],g=[],m=0;m<p.length;++m){var v=o.toGlobalCoord(p[m].coord);c?(f[0]=v,f[1]=u.y,g[0]=v,g[1]=u.y+u.height):(f[0]=u.x,f[1]=v,g[0]=u.x+u.width,g[1]=v);var y=new Ky({shape:{x1:f[0],y1:f[1],x2:g[0],y2:g[1]},silent:!0});Lb(y.shape,l);var b=h++%s.length;d[b]=d[b]||[],d[b].push(y)}var _=a.getLineStyle(["color"]);for(m=0;m<d.length;++m)t.add(Rb(d[m],{style:we({stroke:s[m%s.length]},_),silent:!0}))}},splitArea:function(e,t,n,r){TE(e,n,r,r)}},hU=cU,pU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Q(t,e),t.prototype.getCoordSysModel=function(){return this},t.type="singleAxis",t.layoutMode="box",t.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},t}(ff);ke(pU,Rk.prototype);var fU=pU,gU=function(e){function t(t,n,r,o,i){var a=e.call(this,t,n,r)||this;return a.type=o||"value",a.position=i||"bottom",a}return Q(t,e),t.prototype.isHorizontal=function(){var e=this.position;return"top"===e||"bottom"===e},t.prototype.pointToData=function(e,t){return this.coordinateSystem.pointToData(e)[0]},t}(SC),mU=gU,vU=["single"],yU=function(){function e(e,t,n){this.type="single",this.dimension="single",this.dimensions=vU,this.axisPointerEnabled=!0,this.model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var r=this.dimension,o=new mU(r,Ak(e),[0,0],e.get("type"),e.get("position")),i="category"===o.type;o.onBand=i&&e.get("boundaryGap"),o.inverse=e.get("inverse"),o.orient=e.get("orient"),e.axis=o,o.model=e,o.coordinateSystem=this,this._axis=o},e.prototype.update=function(e,t){e.eachSeries((function(e){if(e.coordinateSystem===this){var t=e.getData();Me(t.mapDimensionsAll(this.dimension),(function(e){this._axis.scale.unionExtentFromData(t,e)}),this),Sk(this._axis.scale,this._axis.model)}}),this)},e.prototype.resize=function(e,t){this._rect=rf({left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")},{width:t.getWidth(),height:t.getHeight()}),this._adjustAxis()},e.prototype.getRect=function(){return this._rect},e.prototype._adjustAxis=function(){var e=this._rect,t=this._axis,n=t.isHorizontal(),r=n?[0,e.width]:[0,e.height],o=t.inverse?1:0;t.setExtent(r[o],r[1-o]),this._updateAxisTransform(t,n?e.x:e.y)},e.prototype._updateAxisTransform=function(e,t){var n=e.getExtent(),r=n[0]+n[1],o=e.isHorizontal();e.toGlobalCoord=o?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord=o?function(e){return e-t}:function(e){return r-e+t}},e.prototype.getAxis=function(){return this._axis},e.prototype.getBaseAxis=function(){return this._axis},e.prototype.getAxes=function(){return[this._axis]},e.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},e.prototype.containPoint=function(e){var t=this.getRect(),n=this.getAxis(),r=n.orient;return"horizontal"===r?n.contain(n.toLocalCoord(e[0]))&&e[1]>=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(),r=[],o="horizontal"===t.orient?0:1;return e instanceof Array&&(e=e[0]),r[o]=t.toGlobalCoord(t.dataToCoord(+e)),r[1-o]=0===o?n.y+n.height/2:n.x+n.width/2,r},e.prototype.convertToPixel=function(e,t,n){var r=bU(t);return r===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var r=bU(t);return r===this?this.pointToData(n):null},e}();function bU(e){var t=e.seriesModel,n=e.singleAxisModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}var _U=yU;function xU(e,t){var n=[];return e.eachComponent("singleAxis",(function(r,o){var i=new _U(r,e,t);i.name="single_"+o,i.resize(r,t),r.coordinateSystem=i,n.push(i)})),e.eachSeries((function(e){if("singleAxis"===e.get("coordinateSystem")){var t=e.getReferringComponents("singleAxis",Ks).models[0];e.coordinateSystem=t&&t.coordinateSystem}})),n}var wU={create:xU,dimensions:vU},OU=wU,SU=["x","y"],AU=["width","height"],kU=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Q(t,e),t.prototype.makeElOption=function(e,t,n,r,o){var i=n.axis,a=i.coordinateSystem,s=TU(a,1-MU(i)),l=a.dataToPoint(t)[0],u=r.get("type");if(u&&"none"!==u){var c=CG(r),d=CU[u](i,l,s);d.style=c,e.graphicKey=d.type,e.pointer=d}var h=sU(n);$G(t,e,h,n,r,o)},t.prototype.getHandleTransform=function(e,t,n){var r=sU(t,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var o=IG(t.axis,e,r);return{x:o[0],y:o[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var o=n.axis,i=o.coordinateSystem,a=MU(o),s=TU(i,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=TU(i,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}(kG),CU={line:function(e,t,n){var r=EG([t,n[0]],[t,n[1]],MU(e));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(e,t,n){var r=e.getBandWidth(),o=n[1]-n[0];return{type:"Rect",shape:DG([t-r/2,n[0]],[r,o],MU(e))}}};function MU(e){return e.isHorizontal()?0:1}function TU(e,t){var n=e.getRect();return[n[SU[t]],n[SU[t]]+n[AU[t]]]}var PU=kU,IU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Q(t,e),t.type="single",t}(Fv);function $U(e){dS(pX),CE.registerAxisPointerClass("SingleAxisPointer",PU),e.registerComponentView(IU),e.registerComponentView(hU),e.registerComponentModel(fU),D$(e,"single",fU,fU.defaultOption),e.registerCoordinateSystem("single",OU)}var EU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Q(t,e),t.prototype.init=function(t,n,r){var o=uf(t);e.prototype.init.apply(this,arguments),DU(t,o)},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),DU(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}(ff);function DU(e,t){var n,r=e.cellSize;n=Le(r)?r:e.cellSize=[r,r],1===n.length&&(n[1]=n[0]);var o=Te([0,1],(function(e){return af(t,e)&&(n[e]="auto"),null!=n[e]&&"auto"!==n[e]}));lf(e,t,{type:"box",ignoreSize:o})}var RU=EU,NU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Q(t,e),t.prototype.render=function(e,t,n){var r=this.group;r.removeAll();var o=e.coordinateSystem,i=o.getRangeInfo(),a=o.getOrient(),s=t.getLocaleModel();this._renderDayRect(e,i,r),this._renderLines(e,i,a,r),this._renderYearText(e,i,a,r),this._renderMonthText(e,s,a,r),this._renderWeekText(e,s,i,a,r)},t.prototype._renderDayRect=function(e,t,n){for(var r=e.coordinateSystem,o=e.getModel("itemStyle").getItemStyle(),i=r.getCellWidth(),a=r.getCellHeight(),s=t.start.time;s<=t.end.time;s=r.getNextNDay(s,1).time){var l=r.dataToRect([s],!1).tl,u=new Oc({shape:{x:l[0],y:l[1],width:i,height:a},cursor:"default",style:o});n.add(u)}},t.prototype._renderLines=function(e,t,n,r){var o=this,i=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=i.getDateInfo(t.start.y+"-"+t.start.m));var d=u.date;d.setMonth(d.getMonth()+1),u=i.getDateInfo(d)}function h(t){o._firstDayOfMonth.push(i.getDateInfo(t)),o._firstDayPoints.push(i.dataToRect([t],!1).tl);var l=o._getLinePointsOfOneWeek(e,t,n);o._tlpoints.push(l[0]),o._blpoints.push(l[l.length-1]),s&&o._drawSplitline(l,a,r)}h(i.getNextNDay(t.end.time,1).formatedDate),s&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,l,n),a,r),s&&this._drawSplitline(o._getEdgesPoints(o._blpoints,l,n),a,r)},t.prototype._getEdgesPoints=function(e,t,n){var r=[e[0].slice(),e[e.length-1].slice()],o="horizontal"===n?0:1;return r[0][o]=r[0][o]-t/2,r[1][o]=r[1][o]+t/2,r},t.prototype._drawSplitline=function(e,t,n){var r=new Xy({z2:20,shape:{points:e},style:t});n.add(r)},t.prototype._getLinePointsOfOneWeek=function(e,t,n){for(var r=e.coordinateSystem,o=r.getDateInfo(t),i=[],a=0;a<7;a++){var s=r.getNextNDay(o.time,a),l=r.dataToRect([s.time],!1);i[2*s.day]=l.tl,i[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return i},t.prototype._formatterLabel=function(e,t){return Ve(e)&&e?Hp(e,t):ze(e)?e(t):t.nameMap},t.prototype._yearTextPositionControl=function(e,t,n,r,o){var i=t[0],a=t[1],s=["center","bottom"];"bottom"===r?(a+=o,s=["center","top"]):"left"===r?i-=o:"right"===r?(i+=o,s=["center","top"]):a-=o;var l=0;return"left"!==r&&"right"!==r||(l=Math.PI/2),{rotation:l,x:i,y:a,style:{align:s[0],verticalAlign:s[1]}}},t.prototype._renderYearText=function(e,t,n,r){var o=e.getModel("yearLabel");if(o.get("show")){var i=o.get("margin"),a=o.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=o.get("formatter"),f={start:t.start.y,end:t.end.y,nameMap:h},g=this._formatterLabel(p,f),m=new jc({z2:30,style:yh(o,{text:g})});m.attr(this._yearTextPositionControl(m,d[a],n,a,i)),r.add(m)}},t.prototype._monthTextPositionControl=function(e,t,n,r,o){var i="left",a="top",s=e[0],l=e[1];return"horizontal"===n?(l+=o,t&&(i="center"),"start"===r&&(a="bottom")):(s+=o,t&&(a="middle"),"start"===r&&(i="right")),{x:s,y:l,align:i,verticalAlign:a}},t.prototype._renderMonthText=function(e,t,n,r){var o=e.getModel("monthLabel");if(o.get("show")){var i=o.get("nameMap"),a=o.get("margin"),s=o.get("position"),l=o.get("align"),u=[this._tlpoints,this._blpoints];i&&!Ve(i)||(i&&(t=op(i)||t),i=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<u[c].length-1;p++){var f=u[c][p].slice(),g=this._firstDayOfMonth[p];if(h){var m=this._firstDayPoints[p];f[d]=(m[d]+u[0][p+1][d])/2}var v=o.get("formatter"),y=i[+g.m-1],b={yyyy:g.y,yy:(g.y+"").slice(2),MM:g.m,M:+g.m,nameMap:y},_=this._formatterLabel(v,b),x=new jc({z2:30,style:xe(yh(o,{text:_}),this._monthTextPositionControl(f,h,n,s,a))});r.add(x)}}},t.prototype._weekTextPositionControl=function(e,t,n,r,o){var i="center",a="middle",s=e[0],l=e[1],u="start"===n;return"horizontal"===t?(s=s+r+(u?1:-1)*o[0]/2,i=u?"right":"left"):(l=l+r+(u?1:-1)*o[1]/2,a=u?"bottom":"top"),{x:s,y:l,align:i,verticalAlign:a}},t.prototype._renderWeekText=function(e,t,n,r,o){var i=e.getModel("dayLabel");if(i.get("show")){var a=e.coordinateSystem,s=i.get("position"),l=i.get("nameMap"),u=i.get("margin"),c=a.getFirstDayOfWeek();if(!l||Ve(l)){l&&(t=op(l)||t);var d=t.get(["time","dayOfWeekShort"]);l=d||Te(t.get(["time","dayOfWeekAbbr"]),(function(e){return e[0]}))}var h=a.getNextNDay(n.end.time,7-n.lweek).time,p=[a.getCellWidth(),a.getCellHeight()];u=Ja(u,Math.min(p[1],p[0])),"start"===s&&(h=a.getNextNDay(n.start.time,-(7+n.fweek)).time,u=-u);for(var f=0;f<7;f++){var g=a.getNextNDay(h,f),m=a.dataToRect([g.time],!1).center,v=f;v=Math.abs((f+c)%7);var y=new jc({z2:30,style:xe(yh(i,{text:l[v]}),this._weekTextPositionControl(m,r,s,u,p))});o.add(y)}}},t.type="calendar",t}(Fv),LU=NU,zU=864e5,VU=function(){function e(t,n,r){this.type="calendar",this.dimensions=e.dimensions,this.getDimensionsInfo=e.getDimensionsInfo,this._model=t}return e.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},e.prototype.getRangeInfo=function(){return this._rangeInfo},e.prototype.getModel=function(){return this._model},e.prototype.getRect=function(){return this._rect},e.prototype.getCellWidth=function(){return this._sw},e.prototype.getCellHeight=function(){return this._sh},e.prototype.getOrient=function(){return this._orient},e.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},e.prototype.getDateInfo=function(e){e=hs(e);var t=e.getFullYear(),n=e.getMonth()+1,r=n<10?"0"+n:""+n,o=e.getDate(),i=o<10?"0"+o:""+o,a=e.getDay();return a=Math.abs((a+7-this.getFirstDayOfWeek())%7),{y:t+"",m:r,d:i,day:a,time:e.getTime(),formatedDate:t+"-"+r+"-"+i,date:e}},e.prototype.getNextNDay=function(e,t){return t=t||0,0===t||(e=new Date(this.getDateInfo(e).time),e.setDate(e.getDate()+t)),this.getDateInfo(e)},e.prototype.update=function(e,t){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,r=["width","height"],o=this._model.getCellSize().slice(),i=this._model.getBoxLayoutParams(),a="horizontal"===this._orient?[n,7]:[7,n];Me([0,1],(function(e){u(o,e)&&(i[r[e]]=o[e]*a[e])}));var s={width:t.getWidth(),height:t.getHeight()},l=this._rect=rf(i,s);function u(e,t){return null!=e[t]&&"auto"!==e[t]}Me([0,1],(function(e){u(o,e)||(o[e]=l[r[e]]/a[e])})),this._sw=o[0],this._sh=o[1]},e.prototype.dataToPoint=function(e,t){Le(e)&&(e=e[0]),null==t&&(t=!0);var n=this.getDateInfo(e),r=this._rangeInfo,o=n.formatedDate;if(t&&!(n.time>=r.start.time&&n.time<r.end.time+zU))return[NaN,NaN];var i=n.day,a=this._getRangeInfo([r.start.time,o]).nthWeek;return"vertical"===this._orient?[this._rect.x+i*this._sw+this._sw/2,this._rect.y+a*this._sh+this._sh/2]:[this._rect.x+a*this._sw+this._sw/2,this._rect.y+i*this._sh+this._sh/2]},e.prototype.pointToData=function(e){var t=this.pointToDate(e);return t&&t.time},e.prototype.dataToRect=function(e,t){var n=this.dataToPoint(e,t);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},e.prototype.pointToDate=function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,n=Math.floor((e[1]-this._rect.y)/this._sh)+1,r=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(n,t-1,r):this._getDateByWeeksAndDay(t,n-1,r)},e.prototype.convertToPixel=function(e,t,n){var r=BU(t);return r===this?r.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var r=BU(t);return r===this?r.pointToData(n):null},e.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},e.prototype._initRangeOption=function(){var e,t=this._model.get("range");if(Le(t)&&1===t.length&&(t=t[0]),Le(t))e=t;else{var n=t.toString();if(/^\d{4}$/.test(n)&&(e=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var r=this.getDateInfo(n),o=r.date;o.setMonth(o.getMonth()+1);var i=this.getNextNDay(o,-1);e=[r.formatedDate,i.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(e=[n,n])}if(!e)return t;var a=this._getRangeInfo(e);return a.start.time>a.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 r=Math.floor(n[1].time/zU)-Math.floor(n[0].time/zU)+1,o=new Date(n[0].time),i=o.getDate(),a=n[1].date.getDate();o.setDate(i+r-1);var s=o.getDate();if(s!==a){var l=o.getTime()-n[1].time>0?1:-1;while((s=o.getDate())!==a&&(o.getTime()-n[1].time)*l>0)r-=l,o.setDate(s-l)}var u=Math.floor((r+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:r,weeks:u,nthWeek:c,fweek:n[0].day,lweek:n[1].day}},e.prototype._getDateByWeeksAndDay=function(e,t,n){var r=this._getRangeInfo(n);if(e>r.weeks||0===e&&t<r.fweek||e===r.weeks&&t>r.lweek)return null;var o=7*(e-1)-r.fweek+t,i=new Date(r.start.time);return i.setDate(+r.start.d+o),this.getDateInfo(i)},e.create=function(t,n){var r=[];return t.eachComponent("calendar",(function(o){var i=new e(o,t,n);r.push(i),o.coordinateSystem=i})),t.eachSeries((function(e){"calendar"===e.get("coordinateSystem")&&(e.coordinateSystem=r[e.get("calendarIndex")||0])})),r},e.dimensions=["time","value"],e}();function BU(e){var t=e.calendarModel,n=e.seriesModel,r=t?t.coordinateSystem:n?n.coordinateSystem:null;return r}var jU=VU;function QU(e){e.registerComponentModel(RU),e.registerComponentView(LU),e.registerCoordinateSystem("calendar",jU)}function FU(e,t){var n=e.existing;if(t.id=e.keyInfo.id,!t.type&&n&&(t.type=n.type),null==t.parentId){var r=t.parentOption;r?t.parentId=r.id:n&&(t.parentId=n.parentId)}t.parentOption=null}function WU(e,t){var n;return Me(t,(function(t){null!=e[t]&&"auto"!==e[t]&&(n=!0)})),n}function HU(e,t,n){var r=xe({},n),o=e[t],i=n.$action||"merge";"merge"===i?o?(be(o,r,!0),lf(o,r,{ignoreSize:!0}),cf(n,o),XU(n,o),XU(n,o,"shape"),XU(n,o,"style"),XU(n,o,"extra"),n.clipPath=o.clipPath):e[t]=r:"replace"===i?e[t]=r:"remove"===i&&o&&(e[t]=null)}var ZU=["transition","enterFrom","leaveTo"],GU=ZU.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function XU(e,t,n){if(n&&(!e[n]&&t[n]&&(e[n]={}),e=e[n],t=t[n]),e&&t)for(var r=n?ZU:GU,o=0;o<r.length;o++){var i=r[o];null==e[i]&&null!=t[i]&&(e[i]=t[i])}}function UU(e,t){if(e&&(e.hv=t.hv=[WU(t,["left","right"]),WU(t,["top","bottom"])],"group"===e.type)){var n=e,r=t;null==n.width&&(n.width=r.width=0),null==n.height&&(n.height=r.height=0)}}var YU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.preventAutoZ=!0,n}return Q(t,e),t.prototype.mergeOption=function(t,n){var r=this.option.elements;this.option.elements=null,e.prototype.mergeOption.call(this,t,n),this.option.elements=r},t.prototype.optionUpdated=function(e,t){var n=this.option,r=(t?n:e).elements,o=n.elements=t?[]:n.elements,i=[];this._flatten(r,i,null);var a=Is(o,i,"normalMerge"),s=this._elOptionsToUpdate=[];Me(a,(function(e,t){var n=e.newOption;n&&(s.push(n),FU(e,n),HU(o,t,n),UU(o[t],n))}),this),n.elements=Ie(o,(function(e){return e&&delete e.$action,null!=e}))},t.prototype._flatten=function(e,t,n){Me(e,(function(e){if(e){n&&(e.parentOption=n),t.push(e);var r=e.children;r&&r.length&&this._flatten(r,t,e),delete e.children}}),this)},t.prototype.useElOptionsToUpdate=function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e},t.type="graphic",t.defaultOption={elements:[]},t}(ff),qU={path:null,compoundPath:null,group:Da,image:fc,text:jc},KU=Xs(),JU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Q(t,e),t.prototype.init=function(){this._elMap=ct()},t.prototype.render=function(e,t,n){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,n)},t.prototype._updateElements=function(e){var t=e.useElOptionsToUpdate();if(t){var n=this._elMap,r=this.group,o=e.get("z"),i=e.get("zlevel");Me(t,(function(t){var a=Bs(t.id,null),s=null!=a?n.get(a):null,l=Bs(t.parentId,null),u=null!=l?n.get(l):r,c=t.type,d=t.style;"text"===c&&d&&t.hv&&t.hv[1]&&(d.textVerticalAlign=d.textBaseline=d.verticalAlign=d.align=null);var h=t.textContent,p=t.textConfig;if(d&&tZ(d,c,!!p,!!h)){var f=nZ(d,c,!0);!p&&f.textConfig&&(p=t.textConfig=f.textConfig),!h&&f.textContent&&(h=f.textContent)}var g=oY(t);var m=t.$action||"merge",v="merge"===m,y="replace"===m;if(v){var b=!s,_=s;b?_=tY(a,u,t.type,n):(_&&(KU(_).isNew=!1),TZ(_)),_&&(dZ(_,g,e,{isInit:b}),rY(_,t,o,i))}else if(y){nY(s,t,n,e);var x=tY(a,u,t.type,n);x&&(dZ(x,g,e,{isInit:!0}),rY(x,t,o,i))}else"remove"===m&&(hZ(s,t),nY(s,t,n,e));var w=n.get(a);if(w&&h)if(v){var O=w.getTextContent();O?O.attr(h):w.setTextContent(new jc(h))}else y&&w.setTextContent(new jc(h));if(w){var S=t.clipPath;if(S){var A=S.type,k=void 0;b=!1;if(v){var C=w.getClipPath();b=!C||KU(C).type!==A,k=b?eY(A):C}else y&&(b=!0,k=eY(A));w.setClipPath(k),dZ(k,S,e,{isInit:b}),PZ(k,S.keyframeAnimation,e)}var M=KU(w);w.setTextConfig(p),M.option=t,iY(w,e,t),Jb({el:w,componentModel:e,itemName:w.name,itemTooltipOption:t.tooltip}),PZ(w,t.keyframeAnimation,e)}}))}},t.prototype._relocate=function(e,t){for(var n=e.option.elements,r=this.group,o=this._elMap,i=t.getWidth(),a=t.getHeight(),s=["x","y"],l=0;l<n.length;l++){var u=n[l],c=Bs(u.id,null),d=null!=c?o.get(c):null;if(d&&d.isGroup){var h=d.parent,p=h===r,f=KU(d),g=KU(h);f.width=Ja(f.option.width,p?i:g.width)||0,f.height=Ja(f.option.height,p?a:g.height)||0}}for(l=n.length-1;l>=0;l--){u=n[l],c=Bs(u.id,null),d=null!=c?o.get(c):null;if(d){h=d.parent,g=KU(h);var m=h===r?{width:i,height:a}:{width:g.width,height:g.height},v={},y=of(d,u,m,null,{hv:u.hv,boundingMode:u.bounding},v);if(!KU(d).isNew&&y){for(var b=u.transition,_={},x=0;x<s.length;x++){var w=s[x],O=v[w];b&&(fZ(b)||Se(b,w)>=0)?_[w]=O:d[w]=O}ih(d,_,e,0)}else d.attr(v)}}},t.prototype._clear=function(){var e=this,t=this._elMap;t.each((function(n){nY(n,KU(n).option,t,e._lastGraphicModel)})),this._elMap=ct()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(Fv);function eY(e){var t=ft(qU,e)?qU[e]:Ib(e);var n=new t({});return KU(n).type=e,n}function tY(e,t,n,r){var o=eY(n);return t.add(o),r.set(e,o),KU(o).id=e,KU(o).isNew=!0,o}function nY(e,t,n,r){var o=e&&e.parent;o&&("group"===e.type&&e.traverse((function(e){nY(e,t,n,r)})),pZ(e,t,r),n.removeKey(KU(e).id))}function rY(e,t,n,r){e.isGroup||Me([["cursor",Jl.prototype.cursor],["zlevel",r||0],["z",n||0],["z2",0]],(function(n){var r=n[0];ft(t,r)?e[r]=qe(t[r],n[1]):null==e[r]&&(e[r]=n[1])})),Me(Ee(t),(function(n){if(0===n.indexOf("on")){var r=t[n];e[n]=ze(r)?r:null}})),ft(t,"draggable")&&(e.draggable=t.draggable),null!=t.name&&(e.name=t.name),null!=t.id&&(e.id=t.id)}function oY(e){return e=xe({},e),Me(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Kp),(function(t){delete e[t]})),e}function iY(e,t,n){var r=Qc(e).eventData;e.silent||e.ignore||r||(r=Qc(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),r&&(r.info=n.info)}function aY(e){e.registerComponentModel(YU),e.registerComponentView(JU),e.registerPreprocessor((function(e){var t=e.graphic;Le(t)?t[0]&&t[0].elements?e.graphic=[e.graphic[0]]:e.graphic=[{elements:t}]:t&&!t.elements&&(e.graphic=[{elements:[t]}])}))}var sY=["x","y","radius","angle","single"],lY=["cartesian2d","polar","singleAxis"];function uY(e){var t=e.get("coordinateSystem");return Se(lY,t)>=0}function cY(e){return e+"Axis"}function dY(e,t){var n,r=ct(),o=[],i=ct();e.eachComponent({mainType:"dataZoom",query:t},(function(e){i.get(e.uid)||s(e)}));do{n=!1,e.eachComponent("dataZoom",a)}while(n);function a(e){!i.get(e.uid)&&l(e)&&(s(e),n=!0)}function s(e){i.set(e.uid,!0),o.push(e),u(e)}function l(e){var t=!1;return e.eachTargetAxis((function(e,n){var o=r.get(e);o&&o[n]&&(t=!0)})),t}function u(e){e.eachTargetAxis((function(e,t){(r.get(e)||r.set(e,[]))[t]=!0}))}return o}function hY(e){var t=e.ecModel,n={infoList:[],infoMap:ct()};return e.eachTargetAxis((function(e,r){var o=t.getComponent(cY(e),r);if(o){var i=o.getCoordSysModel();if(i){var a=i.uid,s=n.infoMap.get(a);s||(s={model:i,axisModels:[]},n.infoList.push(s),n.infoMap.set(a,s)),s.axisModels.push(o)}}})),n}var pY=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}(),fY=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 Q(t,e),t.prototype.init=function(e,t,n){var r=gY(e);this.settledOption=r,this.mergeDefaultAndTheme(e,n),this._doInit(r)},t.prototype.mergeOption=function(e){var t=gY(e);be(this.option,e,!0),be(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;Me([["start","startValue"],["end","endValue"]],(function(e,r){"value"===this._rangePropMode[r]&&(t[e[0]]=n[e[0]]=null)}),this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),t=this._targetAxisInfoMap=ct(),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 Me(sY,(function(n){var r=this.getReferringComponents(cY(n),Js);if(r.specified){t=!0;var o=new pY;Me(r.models,(function(e){o.add(e.componentIndex)})),e.set(n,o)}}),this),t},t.prototype._fillAutoTargetAxisByOrient=function(e,t){var n=this.ecModel,r=!0;if(r){var o="vertical"===t?"y":"x",i=n.findComponents({mainType:o+"Axis"});a(i,o)}if(r){i=n.findComponents({mainType:"singleAxis",filter:function(e){return e.get("orient",!0)===t}});a(i,"single")}function a(t,n){var o=t[0];if(o){var i=new pY;if(i.add(o.componentIndex),e.set(n,i),r=!1,"x"===n||"y"===n){var a=o.getReferringComponents("grid",Ks).models[0];a&&Me(t,(function(e){o.componentIndex!==e.componentIndex&&a===e.getReferringComponents("grid",Ks).models[0]&&i.add(e.componentIndex)}))}}}r&&Me(sY,(function(t){if(r){var o=n.findComponents({mainType:cY(t),filter:function(e){return"category"===e.get("type",!0)}});if(o[0]){var i=new pY;i.add(o[0].componentIndex),e.set(t,i),r=!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");Me([["start","startValue"],["end","endValue"]],(function(r,o){var i=null!=e[r[0]],a=null!=e[r[1]];i&&!a?t[o]="percent":!i&&a?t[o]="value":n?t[o]=n[o]:i&&(t[o]="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(cY(t),n))}),this),e},t.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each((function(n,r){Me(n.indexList,(function(n){e.call(t,r,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(cY(e),t)},t.prototype.setRawRange=function(e){var t=this.option,n=this.settledOption;Me([["start","startValue"],["end","endValue"]],(function(r){null==e[r[0]]&&null==e[r[1]]||(t[r[0]]=n[r[0]]=e[r[0]],t[r[1]]=n[r[1]]=e[r[1]])}),this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var t=this.option;Me(["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(),r=0;r<n.length;r++)for(var o=n[r],i=this._targetAxisInfoMap.get(o),a=0;a<i.indexList.length;a++){var s=this.getAxisProxy(o,i.indexList[a]);if(s.hostedBy(this))return s;t||(t=s)}return t},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t}(ff);function gY(e){var t={};return Me(["start","end","startValue","endValue","throttle"],(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}var mY=fY,vY=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Q(t,e),t.type="dataZoom.select",t}(mY),yY=vY,bY=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Q(t,e),t.prototype.render=function(e,t,n,r){this.dataZoomModel=e,this.ecModel=t,this.api=n},t.type="dataZoom",t}(Fv),_Y=bY,xY=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Q(t,e),t.type="dataZoom.select",t}(_Y),wY=xY,OY=Me,SY=ts,AY=function(){function e(e,t,n,r){this._dimName=e,this._axisIndex=t,this.ecModel=r,this._dataZoomModel=n}return e.prototype.hostedBy=function(e){return this._dataZoomModel===e},e.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},e.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},e.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries((function(t){if(uY(t)){var n=cY(this._dimName),r=t.getReferringComponents(n,Ks).models[0];r&&this._axisIndex===r.componentIndex&&e.push(t)}}),this),e},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},e.prototype.getMinMaxSpan=function(){return ye(this._minMaxSpan)},e.prototype.calculateDataWindow=function(e){var t,n=this._dataExtent,r=this.getAxisModel(),o=r.axis.scale,i=this._dataZoomModel.getRangePropMode(),a=[0,100],s=[],l=[];OY(["start","end"],(function(r,u){var c=e[r],d=e[r+"Value"];"percent"===i[u]?(null==c&&(c=a[u]),d=o.parse(Ka(c,a,n))):(t=!0,d=null==d?n[u]:o.parse(d),c=Ka(d,n,a)),l[u]=null==d||isNaN(d)?n[u]:d,s[u]=null==c||isNaN(c)?a[u]:c})),SY(l),SY(s);var u=this._minMaxSpan;function c(e,t,n,r,i){var a=i?"Span":"ValueSpan";ZB(0,e,n,"all",u["min"+a],u["max"+a]);for(var s=0;s<2;s++)t[s]=Ka(e[s],n,r,!0),i&&(t[s]=o.parse(t[s]))}return t?c(l,s,n,a,!1):c(s,l,a,n,!0),{valueWindow:l,percentWindow:s}},e.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=kY(this,this._dimName,t),this._updateMinMaxSpan();var n=this.calculateDataWindow(e.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},e.prototype.filterData=function(e,t){if(e===this._dataZoomModel){var n=this._dimName,r=this.getTargetSeriesModels(),o=e.get("filterMode"),i=this._valueWindow;"none"!==o&&OY(r,(function(e){var t=e.getData(),r=t.mapDimensionsAll(n);if(r.length){if("weakFilter"===o){var s=t.getStore(),l=Te(r,(function(e){return t.getDimensionIndex(e)}),t);t.filterSelf((function(e){for(var t,n,o,a=0;a<r.length;a++){var u=s.get(l[a],e),c=!isNaN(u),d=u<i[0],h=u>i[1];if(c&&!d&&!h)return!0;c&&(o=!0),d&&(t=!0),h&&(n=!0)}return o&&t&&n}))}else OY(r,(function(n){if("empty"===o)e.setData(t=t.map(n,(function(e){return a(e)?e:NaN})));else{var r={};r[n]=i,t.selectRange(r)}}));OY(r,(function(e){t.setApproximateExtent(i,e)}))}}))}function a(e){return e>=i[0]&&e<=i[1]}},e.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._dataExtent;OY(["min","max"],(function(r){var o=t.get(r+"Span"),i=t.get(r+"ValueSpan");null!=i&&(i=this.getAxisModel().axis.scale.parse(i)),null!=i?o=Ka(n[0]+i,n,[0,100],!0):null!=o&&(i=Ka(o,[0,100],n,!0)-n[0]),e[r+"Span"]=o,e[r+"ValueSpan"]=i}),this)},e.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,n=this._valueWindow;if(t){var r=os(n,[0,500]);r=Math.min(r,20);var o=e.axis.scale.rawExtentInfo;0!==t[0]&&o.setDeterminedMinMax("min",+n[0].toFixed(r)),100!==t[1]&&o.setDeterminedMinMax("max",+n[1].toFixed(r)),o.freeze()}},e}();function kY(e,t,n){var r=[1/0,-1/0];OY(n,(function(e){Dk(r,e.getData(),t)}));var o=e.getAxisModel(),i=_k(o.axis.scale,o,r).calculate();return[i.min,i.max]}var CY=AY,MY={getTargetSeries:function(e){function t(t){e.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(r,o){var i=e.getComponent(cY(r),o);t(r,o,i,n)}))}))}t((function(e,t,n,r){n.__dzAxisProxy=null}));var n=[];t((function(t,r,o,i){o.__dzAxisProxy||(o.__dzAxisProxy=new CY(t,r,i,e),n.push(o.__dzAxisProxy))}));var r=ct();return Me(n,(function(e){Me(e.getTargetSeriesModels(),(function(e){r.set(e.uid,e)}))})),r},overallReset:function(e,t){e.eachComponent("dataZoom",(function(e){e.eachTargetAxis((function(t,n){e.getAxisProxy(t,n).reset(e)})),e.eachTargetAxis((function(n,r){e.getAxisProxy(n,r).filterData(e,t)}))})),e.eachComponent("dataZoom",(function(e){var t=e.findRepresentativeAxisProxy();if(t){var n=t.getDataPercentWindow(),r=t.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:r[0],endValue:r[1]})}}))}},TY=MY;function PY(e){e.registerAction("dataZoom",(function(e,t){var n=dY(t,e);Me(n,(function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})}))}))}var IY=!1;function $Y(e){IY||(IY=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,TY),PY(e),e.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function EY(e){e.registerComponentModel(yY),e.registerComponentView(wY),$Y(e)}var DY=function(){function e(){}return e}(),RY={};function NY(e,t){RY[e]=t}function LY(e){return RY[e]}var zY=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Q(t,e),t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;Me(this.option.feature,(function(e,n){var r=LY(n);r&&(r.getDefaultOption&&(r.defaultOption=r.getDefaultOption(t)),be(e,r.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}(ff),VY=zY;function BY(e,t,n){var r=t.getBoxLayoutParams(),o=t.get("padding"),i={width:n.getWidth(),height:n.getHeight()},a=rf(r,i,o);tf(t.get("orient"),e,t.get("itemGap"),a.width,a.height),of(e,r,i,o)}function jY(e,t){var n=Bp(t.get("padding")),r=t.getItemStyle(["color","opacity"]);return r.fill=t.get("backgroundColor"),e=new Oc({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:r,silent:!0,z2:-1}),e}var QY=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Q(t,e),t.prototype.render=function(e,t,n,r){var o=this.group;if(o.removeAll(),e.get("show")){var i=+e.get("itemSize"),a="vertical"===e.get("orient"),s=e.get("feature")||{},l=this._features||(this._features={}),u=[];Me(s,(function(e,t){u.push(t)})),new gS(this._featureNames||[],u).add(c).update(c).remove(Ne(c,null)).execute(),this._featureNames=u,BY(o,e,n),o.add(jY(o.getBoundingRect(),e)),a||o.eachChild((function(e){var t=e.__title,r=e.ensureState("emphasis"),a=r.textConfig||(r.textConfig={}),s=e.getTextContent(),l=s&&s.ensureState("emphasis");if(l&&!ze(l)&&t){var u=l.style||(l.style={}),c=pa(t,jc.makeFont(u)),d=e.x+o.x,h=e.y+o.y+i,p=!1;h+c.height>n.getHeight()&&(a.position="top",p=!0);var f=p?-5-c.height:i+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(o,i){var a,c=u[o],h=u[i],p=s[c],f=new Qh(p,e,e.ecModel);if(r&&null!=r.newTitle&&r.featureName===c&&(p.title=r.newTitle),c&&!h){if(FY(c))a={onclick:f.option.onclick,featureName:c};else{var g=LY(c);if(!g)return;a=new g}l[c]=a}else if(a=l[h],!a)return;a.uid=Wh("toolbox-feature"),a.model=f,a.ecModel=t,a.api=n;var m=a instanceof DY;c||!h?!f.get("show")||m&&a.unusable?m&&a.remove&&a.remove(t,n):(d(f,a,c),f.setIconStatus=function(e,t){var n=this.option,r=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,r[e]&&("emphasis"===t?Ad:kd)(r[e])},a instanceof DY&&a.render&&a.render(f,t,n,r)):m&&a.dispose&&a.dispose(t,n)}function d(r,s,l){var u,c,d=r.getModel("iconStyle"),h=r.getModel(["emphasis","iconStyle"]),p=s instanceof DY&&s.getIcons?s.getIcons():r.get("icon"),f=r.get("title")||{};Ve(p)?(u={},u[l]=p):u=p,Ve(f)?(c={},c[l]=f):c=f;var g=r.iconPaths={};Me(u,(function(l,u){var p=Xb(l,{},{x:-i/2,y:-i/2,width:i,height:i});p.setStyle(d.getItemStyle());var f=p.ensureState("emphasis");f.style=h.getItemStyle();var m=new jc({style:{text:c[u],align:h.get("textAlign"),borderRadius:h.get("textBorderRadius"),padding:h.get("textPadding"),fill:null,font:kh({fontStyle:h.get("textFontStyle"),fontFamily:h.get("textFontFamily"),fontSize:h.get("textFontSize"),fontWeight:h.get("textFontWeight")},t)},ignore:!0});p.setTextContent(m),Jb({el:p,componentModel:e,itemName:u,formatterParamsExtra:{title:c[u]}}),p.__title=c[u],p.on("mouseover",(function(){var t=h.getItemStyle(),r=a?null==e.get("right")&&"right"!==e.get("left")?"right":"left":null==e.get("bottom")&&"bottom"!==e.get("top")?"bottom":"top";m.setStyle({fill:h.get("textFill")||t.fill||t.stroke||"#000",backgroundColor:h.get("textBackgroundColor")}),p.setTextConfig({position:h.get("textPosition")||r}),m.ignore=!e.get("showTitle"),n.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==r.get(["iconStatus",u])&&n.leaveEmphasis(this),m.hide()})),("emphasis"===r.get(["iconStatus",u])?Ad:kd)(p),o.add(p),p.on("click",Re(s.onclick,s,t,n,u)),g[u]=p}))}},t.prototype.updateView=function(e,t,n,r){Me(this._features,(function(e){e instanceof DY&&e.updateView&&e.updateView(e.model,t,n,r)}))},t.prototype.remove=function(e,t){Me(this._features,(function(n){n instanceof DY&&n.remove&&n.remove(e,t)})),this.group.removeAll()},t.prototype.dispose=function(e,t){Me(this._features,(function(n){n instanceof DY&&n.dispose&&n.dispose(e,t)}))},t.type="toolbox",t}(Fv);function FY(e){return 0===e.indexOf("my")}var WY=QY,HY=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Q(t,e),t.prototype.onclick=function(e,t){var n=this.model,r=n.get("name")||e.get("title.0.text")||"echarts",o="svg"===t.getZr().painter.getType(),i=o?"svg":n.get("type",!0)||"png",a=t.getConnectedDataURL({type:i,backgroundColor:n.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),s=G.browser;if("function"!==typeof MouseEvent||!s.newEdge&&(s.ie||s.edge))if(window.navigator.msSaveOrOpenBlob||o){var l=a.split(","),u=l[0].indexOf("base64")>-1,c=o?decodeURIComponent(l[1]):l[1];u&&(c=window.atob(c));var d=r+"."+i;if(window.navigator.msSaveOrOpenBlob){var h=c.length,p=new Uint8Array(h);while(h--)p[h]=c.charCodeAt(h);var f=new Blob([p]);window.navigator.msSaveOrOpenBlob(f,d)}else{var g=document.createElement("iframe");document.body.appendChild(g);var m=g.contentWindow,v=m.document;v.open("image/svg+xml","replace"),v.write(c),v.close(),m.focus(),v.execCommand("SaveAs",!0,d),document.body.removeChild(g)}}else{var y=n.get("lang"),b='<body style="margin:0;"><img src="'+a+'" style="max-width:100%;" title="'+(y&&y[0]||"")+'" /></body>',_=window.open();_.document.write(b),_.document.title=r}else{var x=document.createElement("a");x.download=r+"."+i,x.target="_blank",x.href=a;var w=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});x.dispatchEvent(w)}},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}(DY),ZY=HY,GY="__ec_magicType_stack__",XY=[["line","bar"],["stack"]],UY=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Q(t,e),t.prototype.getIcons=function(){var e=this.model,t=e.get("icon"),n={};return Me(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 r=this.model,o=r.get(["seriesIndex",n]);if(YY[n]){var i,a={series:[]},s=function(e){var t=e.subType,o=e.id,i=YY[n](t,o,e,r);i&&(we(i,e.option),a.series.push(i));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,Ks).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}}};Me(XY,(function(e){Se(e,n)>=0&&Me(e,(function(e){r.setIconStatus(e,"normal")}))})),r.setIconStatus(n,"emphasis"),e.eachComponent({mainType:"series",query:null==o?null:{seriesIndex:o}},s);var l=n;"stack"===n&&(i=be({stack:r.option.title.tiled,tiled:r.option.title.stack},r.option.title),"emphasis"!==r.get(["iconStatus",n])&&(l="tiled")),t.dispatchAction({type:"changeMagicType",currentType:l,newOption:a,newTitle:i,featureName:"magicType"})}},t}(DY),YY={line:function(e,t,n,r){if("bar"===e)return be({id:t,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","line"])||{},!0)},bar:function(e,t,n,r){if("line"===e)return be({id:t,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","bar"])||{},!0)},stack:function(e,t,n,r){var o=n.get("stack")===GY;if("line"===e||"bar"===e)return r.setIconStatus("stack",o?"normal":"emphasis"),be({id:t,stack:o?"":GY},r.get(["option","stack"])||{},!0)}};YO({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(e,t){t.mergeOption(e.newOption)}));var qY=UY,KY=new Array(60).join("-"),JY="\t";function eq(e){var t={},n=[],r=[];return e.eachRawSeries((function(e){var o=e.coordinateSystem;if(!o||"cartesian2d"!==o.type&&"polar"!==o.type)n.push(e);else{var i=o.getBaseAxis();if("category"===i.type){var a=i.dim+"_"+i.index;t[a]||(t[a]={categoryAxis:i,valueAxis:o.getOtherAxis(i),series:[]},r.push({axisDim:i.dim,axisIndex:i.index})),t[a].series.push(e)}else n.push(e)}})),{seriesGroupByCategoryAxis:t,other:n,meta:r}}function tq(e){var t=[];return Me(e,(function(e,n){var r=e.categoryAxis,o=e.valueAxis,i=o.dim,a=[" "].concat(Te(e.series,(function(e){return e.name}))),s=[r.model.getCategories()];Me(e.series,(function(e){var t=e.getRawData();s.push(e.getRawData().mapArray(t.mapDimension(i),(function(e){return e})))}));for(var l=[a.join(JY)],u=0;u<s[0].length;u++){for(var c=[],d=0;d<s.length;d++)c.push(s[d][u]);l.push(c.join(JY))}t.push(l.join("\n"))})),t.join("\n\n"+KY+"\n\n")}function nq(e){return Te(e,(function(e){var t=e.getRawData(),n=[e.name],r=[];return t.each(t.dimensions,(function(){for(var e=arguments.length,o=arguments[e-1],i=t.getName(o),a=0;a<e-1;a++)r[a]=arguments[a];n.push((i?i+JY:"")+r.join(JY))})),n.join("\n")})).join("\n\n"+KY+"\n\n")}function rq(e){var t=eq(e);return{value:Ie([tq(t.seriesGroupByCategoryAxis),nq(t.other)],(function(e){return!!e.replace(/[\n\t\s]/g,"")})).join("\n\n"+KY+"\n\n"),meta:t.meta}}function oq(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function iq(e){var t=e.slice(0,e.indexOf("\n"));if(t.indexOf(JY)>=0)return!0}var aq=new RegExp("["+JY+"]+","g");function sq(e){for(var t=e.split(/\n+/g),n=oq(t.shift()).split(aq),r=[],o=Te(n,(function(e){return{name:e,data:[]}})),i=0;i<t.length;i++){var a=oq(t[i]).split(aq);r.push(a.shift());for(var s=0;s<a.length;s++)o[s]&&(o[s].data[i]=a[s])}return{series:o,categories:r}}function lq(e){for(var t=e.split(/\n+/g),n=oq(t.shift()),r=[],o=0;o<t.length;o++){var i=oq(t[o]);if(i){var a=i.split(aq),s="",l=void 0,u=!1;isNaN(a[0])?(u=!0,s=a[0],a=a.slice(1),r[o]={name:s,value:[]},l=r[o].value):l=r[o]=[];for(var c=0;c<a.length;c++)l.push(+a[c]);1===l.length&&(u?r[o].value=l[0]:r[o]=l[0])}}return{name:n,data:r}}function uq(e,t){var n=e.split(new RegExp("\n*"+KY+"\n*","g")),r={series:[]};return Me(n,(function(e,n){if(iq(e)){var o=sq(e),i=t[n],a=i.axisDim+"Axis";i&&(r[a]=r[a]||[],r[a][i.axisIndex]={data:o.categories},r.series=r.series.concat(o.series))}else{o=lq(e);r.series.push(o)}})),r}var cq=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Q(t,e),t.prototype.onclick=function(e,t){setTimeout((function(){t.dispatchAction({type:"hideTip"})}));var n=t.getDom(),r=this.model;this._dom&&n.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=r.get("backgroundColor")||"#fff";var i=document.createElement("h4"),a=r.get("lang")||[];i.innerHTML=a[0]||r.get("title"),i.style.cssText="margin:10px 20px",i.style.color=r.get("textColor");var s=document.createElement("div"),l=document.createElement("textarea");s.style.cssText="overflow:auto";var u=r.get("optionToContent"),c=r.get("contentToOption"),d=rq(e);if(ze(u)){var h=u(t.getOption());Ve(h)?s.innerHTML=h:He(h)&&s.appendChild(h)}else{l.readOnly=r.get("readOnly");var p=l.style;p.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",p.color=r.get("textColor"),p.borderColor=r.get("textareaBorderColor"),p.backgroundColor=r.get("textareaColor"),l.value=d.value,s.appendChild(l)}var f=d.meta,g=document.createElement("div");g.style.cssText="position:absolute;bottom:5px;left:0;right:0";var m="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",v=document.createElement("div"),y=document.createElement("div");m+=";background-color:"+r.get("buttonColor"),m+=";color:"+r.get("buttonTextColor");var b=this;function _(){n.removeChild(o),b._dom=null}gn(v,"click",_),gn(y,"click",(function(){if(null==c&&null!=u||null!=c&&null==u)_();else{var e;try{e=ze(c)?c(s,t.getOption()):uq(l.value,f)}catch(Py){throw _(),new Error("Data view format error "+Py)}e&&t.dispatchAction({type:"changeDataView",newOption:e}),_()}})),v.innerHTML=a[1],y.innerHTML=a[2],y.style.cssText=v.style.cssText=m,!r.get("readOnly")&&g.appendChild(y),g.appendChild(v),o.appendChild(i),o.appendChild(s),o.appendChild(g),s.style.height=n.clientHeight-80+"px",n.appendChild(o),this._dom=o},t.prototype.remove=function(e,t){this._dom&&t.getDom().removeChild(this._dom)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.getDefaultOption=function(e){var t={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:e.getLocaleModel().get(["toolbox","dataView","title"]),lang:e.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return t},t}(DY);function dq(e,t){return Te(e,(function(e,n){var r=t&&t[n];if(Qe(r)&&!Le(r)){var o=Qe(e)&&!Le(e);o||(e={value:e});var i=null!=r.name&&null==e.name;return e=we(e,r),i&&delete e.name,e}return e}))}YO({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},(function(e,t){var n=[];Me(e.newOption.series,(function(e){var r=t.getSeriesByName(e.name)[0];if(r){var o=r.get("data");n.push({name:e.name,data:dq(e.data,o)})}else n.push(xe({type:"scatter"},e))})),t.mergeOption(we({series:n},e.newOption))}));var hq=cq,pq=Me,fq=Xs();function gq(e,t){var n=bq(e);pq(t,(function(t,r){for(var o=n.length-1;o>=0;o--){var i=n[o];if(i[r])break}if(o<0){var a=e.queryComponents({mainType:"dataZoom",subType:"select",id:r})[0];if(a){var s=a.getPercentRange();n[0][r]={dataZoomId:r,start:s[0],end:s[1]}}}})),n.push(t)}function mq(e){var t=bq(e),n=t[t.length-1];t.length>1&&t.pop();var r={};return pq(n,(function(e,n){for(var o=t.length-1;o>=0;o--)if(e=t[o][n],e){r[n]=e;break}})),r}function vq(e){fq(e).snapshots=null}function yq(e){return bq(e).length}function bq(e){var t=fq(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var _q=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Q(t,e),t.prototype.onclick=function(e,t){vq(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}(DY);YO({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(e,t){t.resetOption("recreate")}));var xq=_q,wq=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],Oq=function(){function e(e,t,n){var r=this;this._targetInfoList=[];var o=Aq(t,e);Me(kq,(function(e,t){(!n||!n.include||Se(n.include,t)>=0)&&e(o,r._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 r=Tq[e.brushType](0,n,t);e.__rangeOffset={offset:Iq[e.brushType](r.values,e.range,[1,1]),xyMinMax:r.xyMinMax}}})),e},e.prototype.matchOutputRanges=function(e,t,n){Me(e,(function(e){var r=this.findTargetInfo(e,t);r&&!0!==r&&Me(r.coordSyses,(function(r){var o=Tq[e.brushType](1,r,e.range,!0);n(e,o.values,r,t)}))}),this)},e.prototype.setInputRanges=function(e,t){Me(e,(function(e){var n=this.findTargetInfo(e,t);if(e.range=e.range||[],n&&!0!==n){e.panelId=n.panelId;var r=Tq[e.brushType](0,n.coordSys,e.coordRange),o=e.__rangeOffset;e.range=o?Iq[e.brushType](r.values,o.offset,Eq(r.xyMinMax,o.xyMinMax)):r.values}}),this)},e.prototype.makePanelOpts=function(e,t){return Te(this._targetInfoList,(function(n){var r=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:lQ(r),isTargetByCursor:cQ(r,e,n.coordSysModel),getLinearBrushOtherExtent:uQ(r)}}))},e.prototype.controlSeries=function(e,t,n){var r=this.findTargetInfo(e,n);return!0===r||r&&Se(r.coordSyses,t.coordinateSystem)>=0},e.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,r=Aq(t,e),o=0;o<n.length;o++){var i=n[o],a=e.panelId;if(a){if(i.panelId===a)return i}else for(var s=0;s<Cq.length;s++)if(Cq[s](r,i))return i}return!0},e}();function Sq(e){return e[0]>e[1]&&e.reverse(),e}function Aq(e,t){return Ys(e,t,{includeMainTypes:wq})}var kq={grid:function(e,t){var n=e.xAxisModels,r=e.yAxisModels,o=e.gridModels,i=ct(),a={},s={};(n||r||o)&&(Me(n,(function(e){var t=e.axis.grid.model;i.set(t.id,t),a[t.id]=!0})),Me(r,(function(e){var t=e.axis.grid.model;i.set(t.id,t),s[t.id]=!0})),Me(o,(function(e){i.set(e.id,e),a[e.id]=!0,s[e.id]=!0})),i.each((function(e){var o=e.coordinateSystem,i=[];Me(o.getCartesians(),(function(e,t){(Se(n,e.getAxis("x").model)>=0||Se(r,e.getAxis("y").model)>=0)&&i.push(e)})),t.push({panelId:"grid--"+e.id,gridModel:e,coordSysModel:e,coordSys:i[0],coordSyses:i,getPanelRect:Mq.grid,xAxisDeclared:a[e.id],yAxisDeclared:s[e.id]})})))},geo:function(e,t){Me(e.geoModels,(function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:Mq.geo})}))}},Cq=[function(e,t){var n=e.xAxisModel,r=e.yAxisModel,o=e.gridModel;return!o&&n&&(o=n.axis.grid.model),!o&&r&&(o=r.axis.grid.model),o&&o===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],Mq={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(Bb(e)),t}},Tq={lineX:Ne(Pq,0),lineY:Ne(Pq,1),rect:function(e,t,n,r){var o=e?t.pointToData([n[0][0],n[1][0]],r):t.dataToPoint([n[0][0],n[1][0]],r),i=e?t.pointToData([n[0][1],n[1][1]],r):t.dataToPoint([n[0][1],n[1][1]],r),a=[Sq([o[0],i[0]]),Sq([o[1],i[1]])];return{values:a,xyMinMax:a}},polygon:function(e,t,n,r){var o=[[1/0,-1/0],[1/0,-1/0]],i=Te(n,(function(n){var i=e?t.pointToData(n,r):t.dataToPoint(n,r);return o[0][0]=Math.min(o[0][0],i[0]),o[1][0]=Math.min(o[1][0],i[1]),o[0][1]=Math.max(o[0][1],i[0]),o[1][1]=Math.max(o[1][1],i[1]),i}));return{values:i,xyMinMax:o}}};function Pq(e,t,n,r){var o=n.getAxis(["x","y"][e]),i=Sq(Te([0,1],(function(e){return t?o.coordToData(o.toLocalCoord(r[e]),!0):o.toGlobalCoord(o.dataToCoord(r[e]))}))),a=[];return a[e]=i,a[1-e]=[NaN,NaN],{values:i,xyMinMax:a}}var Iq={lineX:Ne($q,0),lineY:Ne($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 Te(e,(function(e,r){return[e[0]-n[0]*t[r][0],e[1]-n[1]*t[r][1]]}))}};function $q(e,t,n,r){return[t[0]-r[e]*n[0],t[1]-r[e]*n[1]]}function Eq(e,t){var n=Dq(e),r=Dq(t),o=[n[0]/r[0],n[1]/r[1]];return isNaN(o[0])&&(o[0]=1),isNaN(o[1])&&(o[1]=1),o}function Dq(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var Rq=Oq,Nq=Me,Lq=Fs("toolbox-dataZoom_"),zq=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Q(t,e),t.prototype.render=function(e,t,n,r){this._brushController||(this._brushController=new sQ(n.getZr()),this._brushController.on("brush",Re(this._onBrush,this)).mount()),Qq(e,t,this,r,n),jq(e,t)},t.prototype.onclick=function(e,t,n){Vq[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={},r=this.ecModel;this._brushController.updateCovers([]);var o=new Rq(Bq(this.model),r,{include:["grid"]});o.matchOutputRanges(t,r,(function(e,t,n){if("cartesian2d"===n.type){var r=e.brushType;"rect"===r?(i("x",n,t[0]),i("y",n,t[1])):i({lineX:"x",lineY:"y"}[r],n,t)}})),gq(r,n),this._dispatchZoomAction(n)}function i(e,t,o){var i=t.getAxis(e),s=i.model,l=a(e,s,r),u=l.findRepresentativeAxisProxy(s).getMinMaxSpan();null==u.minValueSpan&&null==u.maxValueSpan||(o=ZB(0,o.slice(),i.scale.getExtent(),0,u.minValueSpan,u.maxValueSpan)),l&&(n[l.id]={dataZoomId:l.id,startValue:o[0],endValue:o[1]})}function a(e,t,n){var r;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){var o=n.getAxisModel(e,t.componentIndex);o&&(r=n)})),r}},t.prototype._dispatchZoomAction=function(e){var t=[];Nq(e,(function(e,n){t.push(ye(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}(DY),Vq={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(mq(this.ecModel))}};function Bq(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 jq(e,t){e.setIconStatus("back",yq(t)>1?"emphasis":"normal")}function Qq(e,t,n,r,o){var i=n._isZoomActive;r&&"takeGlobalCursor"===r.type&&(i="dataZoomSelect"===r.key&&r.dataZoomSelectActive),n._isZoomActive=i,e.setIconStatus("zoom",i?"emphasis":"normal");var a=new Rq(Bq(e),t,{include:["grid"]}),s=a.makePanelOpts(o,(function(e){return e.xAxisDeclared&&!e.yAxisDeclared?"lineX":!e.xAxisDeclared&&e.yAxisDeclared?"lineY":"rect"}));n._brushController.setPanels(s).enableBrush(!(!i||!s.length)&&{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()})}Lf("dataZoom",(function(e){var t=e.getComponent("toolbox",0),n=["feature","dataZoom"];if(t&&null!=t.get(n)){var r=t.getModel(n),o=[],i=Bq(r),a=Ys(e,i);return Nq(a.xAxisModels,(function(e){return s(e,"xAxis","xAxisIndex")})),Nq(a.yAxisModels,(function(e){return s(e,"yAxis","yAxisIndex")})),o}function s(e,t,n){var i=e.componentIndex,a={type:"select",$fromToolbox:!0,filterMode:r.get("filterMode",!0)||"filter",id:Lq+t+i};a[n]=i,o.push(a)}}));var Fq=zq;function Wq(e){e.registerComponentModel(VY),e.registerComponentView(WY),NY("saveAsImage",ZY),NY("magicType",qY),NY("dataView",hq),NY("dataZoom",Fq),NY("restore",xq),dS(EY)}var Hq=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Q(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}(ff),Zq=Hq;function Gq(e){var t=e.get("confine");return null!=t?!!t:"richText"===e.get("renderMode")}function Xq(e){if(G.domSupported)for(var t=document.documentElement.style,n=0,r=e.length;n<r;n++)if(e[n]in t)return e[n]}var Uq=Xq(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Yq=Xq(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function qq(e,t){if(!e)return t;t=Vp(t,!0);var n=e.indexOf(t);return e=-1===n?t:"-"+e.slice(0,n)+"-"+t,e.toLowerCase()}function Kq(e,t){var n=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return n?t?n[t]:n:null}var Jq=qq(Yq,"transition"),eK=qq(Uq,"transform"),tK="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(G.transform3dSupported?"will-change:transform;":"");function nK(e){return e="left"===e?"right":"right"===e?"left":"top"===e?"bottom":"top",e}function rK(e,t,n){if(!Ve(n)||"inside"===n)return"";var r=e.get("backgroundColor"),o=e.get("borderWidth");t=Up(t);var i,a=nK(n),s=Math.max(1.5*Math.round(o),6),l="",u=eK+":";Se(["left","right"],a)>-1?(l+="top:50%",u+="translateY(-50%) rotate("+(i="left"===a?-225:-45)+"deg)"):(l+="left:50%",u+="translateX(-50%) rotate("+(i="top"===a?225:45)+"deg)");var c=i*Math.PI/180,d=s+o,h=d*Math.abs(Math.cos(c))+d*Math.abs(Math.sin(c)),p=Math.round(100*((h-Math.SQRT2*o)/2+Math.SQRT2*o-(h-d)/2))/100;l+=";"+a+":-"+p+"px";var f=t+" solid "+o+"px;",g=["position:absolute;width:"+s+"px;height:"+s+"px;z-index:-1;",l+";"+u+";","border-bottom:"+f,"border-right:"+f,"background-color:"+r+";"];return'<div style="'+g.join("")+'"></div>'}function oK(e,t){var n="cubic-bezier(0.23,1,0.32,1)",r=" "+e/2+"s "+n,o="opacity"+r+",visibility"+r;return t||(r=" "+e+"s "+n,o+=G.transformSupported?","+eK+r:",left"+r+",top"+r),Jq+":"+o}function iK(e,t,n){var r=e.toFixed(0)+"px",o=t.toFixed(0)+"px";if(!G.transformSupported)return n?"top:"+o+";left:"+r+";":[["top",o],["left",r]];var i=G.transform3dSupported,a="translate"+(i?"3d":"")+"("+r+","+o+(i?",0":"")+")";return n?"top:0;left:0;"+eK+":"+a+";":[["top",0],["left",0],[Uq,a]]}function aK(e){var t=[],n=e.get("fontSize"),r=e.getTextColor();r&&t.push("color:"+r),t.push("font:"+e.getFont()),n&&t.push("line-height:"+Math.round(3*n/2)+"px");var o=e.get("textShadowColor"),i=e.get("textShadowBlur")||0,a=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return o&&i&&t.push("text-shadow:"+a+"px "+s+"px "+i+"px "+o),Me(["decoration","align"],(function(n){var r=e.get(n);r&&t.push("text-"+n+":"+r)})),t.join(";")}function sK(e,t,n){var r=[],o=e.get("transitionDuration"),i=e.get("backgroundColor"),a=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),c=e.getModel("textStyle"),d=Av(e,"html"),h=l+"px "+u+"px "+a+"px "+s;return r.push("box-shadow:"+h),t&&o&&r.push(oK(o,n)),i&&r.push("background-color:"+i),Me(["width","color","radius"],(function(t){var n="border-"+t,o=Vp(n),i=e.get(o);null!=i&&r.push(n+":"+i+("color"===t?"":"px"))})),r.push(aK(c)),null!=d&&r.push("padding:"+Bp(d).join("px ")+"px"),r.join(";")+";"}function lK(e,t,n,r,o){var i=t&&t.painter;if(n){var a=i&&i.getViewportRoot();a&&Kt(e,a,n,r,o)}else{e[0]=r,e[1]=o;var s=i&&i.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var uK=function(){function e(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,G.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var r=this._zr=e.getZr(),o=t.appendTo,i=o&&(Ve(o)?document.querySelector(o):He(o)?o:ze(o)&&o(e.getDom()));lK(this._styleCoord,r,i,e.getWidth()/2,e.getHeight()/2),(i||e.getDom()).appendChild(n),this._api=e,this._container=i;var a=this;n.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},n.onmousemove=function(e){if(e=e||window.event,!a._enterable){var t=r.handler,n=r.painter.getViewportRoot();pn(n,e,!0),t.dispatch("mousemove",e)}},n.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return e.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=Kq(t,"position"),r=t.style;"absolute"!==r.position&&"absolute"!==n&&(r.position="relative")}var o=e.get("alwaysShowContent");o&&this._moveIfResized(),this._alwaysShowContent=o,this.el.className=e.get("className")||""},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,o=this._styleCoord;n.innerHTML?r.cssText=tK+sK(e,!this._firstShow,this._longHide)+iK(o[0],o[1],!0)+"border-color:"+Up(t)+";"+(e.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):r.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,r,o){var i=this.el;if(null!=e){var a="";if(Ve(o)&&"item"===n.get("trigger")&&!Gq(n)&&(a=rK(n,r,o)),Ve(e))i.innerHTML=e+a;else if(e){i.innerHTML="",Le(e)||(e=[e]);for(var s=0;s<e.length;s++)He(e[s])&&e[s].parentNode!==i&&i.appendChild(e[s]);if(a&&i.childNodes.length){var l=document.createElement("div");l.innerHTML=a,i.appendChild(l)}}}else i.innerHTML=""},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el;return[e.offsetWidth,e.offsetHeight]},e.prototype.moveTo=function(e,t){var n=this._styleCoord;if(lK(n,this._zr,this._container,e,t),null!=n[0]&&null!=n[1]){var r=this.el.style,o=iK(n[0],n[1]);Me(o,(function(e){r[e[0]]=e[1]}))}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){var e=this,t=this.el.style;t.visibility="hidden",t.opacity="0",G.transform3dSupported&&(t.willChange=""),this._show=!1,this._longHideTimeout=setTimeout((function(){return e._longHide=!0}),500)},e.prototype.hideLater=function(e){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Re(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this.el.parentNode;e&&e.removeChild(this.el),this.el=this._container=null},e}(),cK=uK,dK=function(){function e(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),fK(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return e.prototype.update=function(e){var t=e.get("alwaysShowContent");t&&this._moveIfResized(),this._alwaysShowContent=t},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(e,t,n,r,o){var i=this;Qe(e)&&Sm(""),this.el&&this._zr.remove(this.el);var a=n.getModel("textStyle");this.el=new jc({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Av(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),Me(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],(function(e){i.el.style[e]=n.get(e)})),Me(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],(function(e){i.el.style[e]=a.get(e)||0})),this._zr.add(this.el);var s=this;this.el.on("mouseover",(function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0})),this.el.on("mouseout",(function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1}))},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),n=pK(e.style);return[t.width+n.left+n.right,t.height+n.top+n.bottom]},e.prototype.moveTo=function(e,t){var n=this.el;if(n){var r=this._styleCoord;fK(r,this._zr,e,t),e=r[0],t=r[1];var o=n.style,i=hK(o.borderWidth||0),a=pK(o);n.x=e+i+a.left,n.y=t+i+a.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(e){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Re(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function hK(e){return Math.max(0,e)}function pK(e){var t=hK(e.shadowBlur||0),n=hK(e.shadowOffsetX||0),r=hK(e.shadowOffsetY||0);return{left:hK(t-n),right:hK(t+n),top:hK(t-r),bottom:hK(t+r)}}function fK(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var gK=dK,mK=new Oc({shape:{x:-1,y:-1,width:2,height:2}}),vK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Q(t,e),t.prototype.init=function(e,t){if(!G.node&&t.getDom()){var n=e.getComponent("tooltip"),r=this._renderMode=rl(n.get("renderMode"));this._tooltipContent="richText"===r?new gK(t):new cK(t,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},t.prototype.render=function(e,t,n){if(!G.node&&n.getDom()){this.group.removeAll(),this._tooltipModel=e,this._ecModel=t,this._api=n;var r=this._tooltipContent;r.update(e),r.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&e.get("transitionDuration")?g_(this,"_updatePosition",50,"fixRate"):m_(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel,t=e.get("triggerOn");HG("itemTooltip",this._api,Re((function(e,n,r){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(n,r):"leave"===e&&this._hide(r))}),this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api,r=e.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==r&&"click"!==r){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&o.manuallyShowTip(e,t,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})}))}},t.prototype.manuallyShowTip=function(e,t,n,r){if(r.from!==this.uid&&!G.node&&n.getDom()){var o=bK(r,n);this._ticket="";var i=r.dataByCoordSys,a=SK(r,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:r.position,positionDefault:"bottom"},o)}else if(r.tooltip&&null!=r.x&&null!=r.y){var l=mK;l.x=r.x,l.y=r.y,l.update(),Qc(l).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:l},o)}else if(i)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:i,tooltipOption:r.tooltipOption},o);else if(null!=r.seriesIndex){if(this._manuallyAxisShowTip(e,t,n,r))return;var u=eX(r,t),c=u.point[0],d=u.point[1];null!=c&&null!=d&&this._tryShow({offsetX:c,offsetY:d,target:u.el,position:r.position,positionDefault:"bottom"},o)}else null!=r.x&&null!=r.y&&(n.dispatchAction({type:"updateAxisPointer",x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},o))}},t.prototype.manuallyHideTip=function(e,t,n,r){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,r.from!==this.uid&&this._hide(bK(r,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,r){var o=r.seriesIndex,i=r.dataIndex,a=t.getComponent("axisPointer").coordSysAxesInfo;if(null!=o&&null!=i&&null!=a){var s=t.getSeriesByIndex(o);if(s){var l=s.getData(),u=yK([l.getItemModel(i),s,(s.coordinateSystem||{}).model],this._tooltipModel);if("axis"===u.get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:i,position:r.position}),!0}}},t.prototype._tryShow=function(e,t){var n=e.target,r=this._tooltipModel;if(r){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(n){var i,a,s=Qc(n);if("legend"===s.ssrType)return;this._lastDataByCoordSys=null,ux(n,(function(e){return null!=Qc(e).dataIndex?(i=e,!0):null!=Qc(e).tooltipConfig?(a=e,!0):void 0}),!0),i?this._showSeriesItemTooltip(e,i,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=Re(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,r=this._tooltipModel,o=[t.offsetX,t.offsetY],i=yK([t.tooltipOption],r),a=this._renderMode,s=[],l=dv("section",{blocks:[],noHeader:!0}),u=[],c=new kv;Me(e,(function(e){Me(e.dataByAxis,(function(e){var t=n.getComponent(e.axisDim+"Axis",e.axisIndex),o=e.value;if(t&&null!=o){var i=PG(o,t.axis,n,e.seriesDataIndices,e.valueLabelOpt),d=dv("section",{header:i,noHeader:!nt(i),sortBlocks:!0,blocks:[]});l.blocks.push(d),Me(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=Mk(t.axis,{value:o}),f.axisValueLabel=i,f.marker=c.makeTooltipMarker("item",Up(f.color),a);var g=bm(h.formatTooltip(p,!0,null)),m=g.frag;if(m){var v=yK([h],r).get("valueFormatter");d.blocks.push(v?xe({valueFormatter:v},m):m)}g.text&&u.push(g.text),s.push(f)}}))}}))})),l.blocks.reverse(),u.reverse();var d=t.position,h=i.get("order"),p=vv(l,c,a,h,n.get("useUTC"),i.get("textStyle"));p&&u.unshift(p);var f="richText"===a?"\n\n":"<br/>",g=u.join(f);this._showOrMove(i,(function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(i,d,o[0],o[1],this._tooltipContent,s):this._showTooltipContent(i,g,s,Math.random()+"",o[0],o[1],d,null,c)}))},t.prototype._showSeriesItemTooltip=function(e,t,n){var r=this._ecModel,o=Qc(t),i=o.seriesIndex,a=r.getSeriesByIndex(i),s=o.dataModel||a,l=o.dataIndex,u=o.dataType,c=s.getData(u),d=this._renderMode,h=e.positionDefault,p=yK([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),m=new kv;g.marker=m.makeTooltipMarker("item",Up(g.color),d);var v=bm(s.formatTooltip(l,!1,u)),y=p.get("order"),b=p.get("valueFormatter"),_=v.frag,x=_?vv(b?xe({valueFormatter:b},_):_,m,d,y,r.get("useUTC"),p.get("textStyle")):v.text,w="item_"+s.name+"_"+l;this._showOrMove(p,(function(){this._showTooltipContent(p,x,g,w,e.offsetX,e.offsetY,e.position,e.target,m)})),n({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:i,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var r="html"===this._renderMode,o=Qc(t),i=o.tooltipConfig,a=i.option||{},s=a.encodeHTMLContent;if(Ve(a)){var l=a;a={content:l,formatter:l},s=!0}s&&r&&a.content&&(a=ye(a),a.content=an(a.content));var u=[a],c=this._ecModel.getComponent(o.componentMainType,o.componentIndex);c&&u.push(c),u.push({formatter:a.content});var d=e.positionDefault,h=yK(u,this._tooltipModel,d?{position:d}:null),p=h.get("content"),f=Math.random()+"",g=new kv;this._showOrMove(h,(function(){var n=ye(h.get("formatterParams")||{});this._showTooltipContent(h,p,n,f,e.offsetX,e.offsetY,e.position,t,g)})),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,r,o,i,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([o,i],n,e.get("trigger"),e.get("borderColor")),p=h.color;if(c)if(Ve(c)){var f=e.ecModel.get("useUTC"),g=Le(n)?n[0]:n,m=g&&g.axisType&&g.axisType.indexOf("time")>=0;d=c,m&&(d=_p(g.axisValue,d,f)),d=Wp(d,n,!0)}else if(ze(c)){var v=Re((function(t,r){t===this._ticket&&(u.setContent(r,l,e,p,a),this._updatePosition(e,a,o,i,u,n,s))}),this);this._ticket=r,d=c(n,r,v)}else d=c;u.setContent(d,l,e,p,a),u.show(e,p),this._updatePosition(e,a,o,i,u,n,s)}},t.prototype._getNearestPoint=function(e,t,n,r){return"axis"===n||Le(t)?{color:r||("html"===this._renderMode?"#fff":"none")}:Le(t)?void 0:{color:r||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,r,o,i,a){var s=this._api.getWidth(),l=this._api.getHeight();t=t||e.get("position");var u=o.getSize(),c=e.get("align"),d=e.get("verticalAlign"),h=a&&a.getBoundingRect().clone();if(a&&h.applyTransform(a.transform),ze(t)&&(t=t([n,r],i,o.el,h,{viewSize:[s,l],contentSize:u.slice()})),Le(t))n=Ja(t[0],s),r=Ja(t[1],l);else if(Qe(t)){var p=t;p.width=u[0],p.height=u[1];var f=rf(p,{width:s,height:l});n=f.x,r=f.y,c=null,d=null}else if(Ve(t)&&a){var g=wK(t,h,u,e.get("borderWidth"));n=g[0],r=g[1]}else{g=_K(n,r,o,s,l,c?null:20,d?null:20);n=g[0],r=g[1]}if(c&&(n-=OK(c)?u[0]/2:"right"===c?u[0]:0),d&&(r-=OK(d)?u[1]/2:"bottom"===d?u[1]:0),Gq(e)){g=xK(n,r,o,s,l);n=g[0],r=g[1]}o.moveTo(n,r)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,r=this._cbParamsList,o=!!n&&n.length===e.length;return o&&Me(n,(function(n,i){var a=n.dataByAxis||[],s=e[i]||{},l=s.dataByAxis||[];o=o&&a.length===l.length,o&&Me(a,(function(e,n){var i=l[n]||{},a=e.seriesDataIndices||[],s=i.seriesDataIndices||[];o=o&&e.value===i.value&&e.axisType===i.axisType&&e.axisId===i.axisId&&a.length===s.length,o&&Me(a,(function(e,t){var n=s[t];o=o&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex})),r&&Me(e.seriesDataIndices,(function(e){var n=e.seriesIndex,i=t[n],a=r[n];i&&a&&a.data!==i.data&&(o=!1)}))}))})),this._lastDataByCoordSys=e,this._cbParamsList=t,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,t){!G.node&&t.getDom()&&(m_(this,"_updatePosition"),this._tooltipContent.dispose(),qG("itemTooltip",t))},t.type="tooltip",t}(Fv);function yK(e,t,n){var r,o=t.ecModel;n?(r=new Qh(n,o,o),r=new Qh(t.option,r,o)):r=t;for(var i=e.length-1;i>=0;i--){var a=e[i];a&&(a instanceof Qh&&(a=a.get("tooltip",!0)),Ve(a)&&(a={formatter:a}),a&&(r=new Qh(a,r,o)))}return r}function bK(e,t){return e.dispatchAction||Re(t.dispatchAction,t)}function _K(e,t,n,r,o,i,a){var s=n.getSize(),l=s[0],u=s[1];return null!=i&&(e+l+i+2>r?e-=l+i:e+=i),null!=a&&(t+u+a>o?t-=u+a:t+=a),[e,t]}function xK(e,t,n,r,o){var i=n.getSize(),a=i[0],s=i[1];return e=Math.min(e+a,r)-a,t=Math.min(t+s,o)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function wK(e,t,n,r){var o=n[0],i=n[1],a=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=t.width,c=t.height;switch(e){case"inside":s=t.x+u/2-o/2,l=t.y+c/2-i/2;break;case"top":s=t.x+u/2-o/2,l=t.y-i-a;break;case"bottom":s=t.x+u/2-o/2,l=t.y+c+a;break;case"left":s=t.x-o-a,l=t.y+c/2-i/2;break;case"right":s=t.x+u+a,l=t.y+c/2-i/2}return[s,l]}function OK(e){return"center"===e||"middle"===e}function SK(e,t,n){var r=qs(e).queryOptionMap,o=r.keys()[0];if(o&&"series"!==o){var i=el(t,o,r.get(o),{useDefault:!1,enableAll:!1,enableNone:!1}),a=i.models[0];if(a){var s,l=n.getViewOfComponentModel(a);return l.group.traverse((function(t){var n=Qc(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0})),s?{componentMainType:o,componentIndex:a.componentIndex,el:s}:void 0}}}var AK=vK;function kK(e){dS(pX),e.registerComponentModel(Zq),e.registerComponentView(AK),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},gt),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},gt)}var CK=["rect","polygon","keep","clear"];function MK(e,t){var n=ks(e?e.brush:[]);if(n.length){var r=[];Me(n,(function(e){var t=e.hasOwnProperty("toolbox")?e.toolbox:[];t instanceof Array&&(r=r.concat(t))}));var o=e&&e.toolbox;Le(o)&&(o=o[0]),o||(o={feature:{}},e.toolbox=[o]);var i=o.feature||(o.feature={}),a=i.brush||(i.brush={}),s=a.type||(a.type=[]);s.push.apply(s,r),TK(s),t&&!s.length&&s.push.apply(s,CK)}}function TK(e){var t={};Me(e,(function(e){t[e]=1})),e.length=0,Me(t,(function(t,n){e.push(n)}))}var PK=Me;function IK(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!0}function $K(e,t,n){var r={};return PK(t,(function(t){var i=r[t]=o();PK(e[t],(function(e,r){if(JL.isValidType(r)){var o={type:r,visual:e};n&&n(o,t),i[r]=new JL(o),"opacity"===r&&(o=ye(o),o.type="colorAlpha",i.__hidden.__alphaForOpacity=new JL(o))}}))})),r;function o(){var e=function(){};e.prototype.__hidden=e.prototype;var t=new e;return t}}function EK(e,t,n){var r;Me(n,(function(e){t.hasOwnProperty(e)&&IK(t[e])&&(r=!0)})),r&&Me(n,(function(n){t.hasOwnProperty(n)&&IK(t[n])?e[n]=ye(t[n]):delete e[n]}))}function DK(e,t,n,r,o,i){var a,s={};function l(e){return rx(n,a,e)}function u(e,t){ix(n,a,e,t)}function c(e,c){a=null==i?e:c;var d=n.getRawDataItem(a);if(!d||!1!==d.visualMap)for(var h=r.call(o,e),p=t[h],f=s[h],g=0,m=f.length;g<m;g++){var v=f[g];p[v]&&p[v].applyVisual(e,l,u)}}Me(e,(function(e){var n=JL.prepareVisualTypes(t[e]);s[e]=n})),null==i?n.each(c):n.each([i],c)}function RK(e,t,n,r){var o={};return Me(e,(function(e){var n=JL.prepareVisualTypes(t[e]);o[e]=n})),{progress:function(e,i){var a,s;function l(e){return rx(i,s,e)}function u(e,t){ix(i,s,e,t)}null!=r&&(a=i.getDimensionIndex(r));var c=i.getStore();while(null!=(s=e.next())){var d=i.getRawDataItem(s);if(!d||!1!==d.visualMap)for(var h=null!=r?c.get(a,s):s,p=n(h),f=t[p],g=o[p],m=0,v=g.length;m<v;m++){var y=g[m];f[y]&&f[y].applyVisual(h,l,u)}}}}}function NK(e){var t=e.brushType,n={point:function(r){return LK[t].point(r,n,e)},rect:function(r){return LK[t].rect(r,n,e)}};return n}var LK={lineX:zK(0),lineY:zK(1),rect:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])},rect:function(e,t,n){return e&&n.boundingRect.intersect(e)}},polygon:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])&&Fk(n.range,e[0],e[1])},rect:function(e,t,n){var r=n.range;if(!e||r.length<=1)return!1;var o=e.x,i=e.y,a=e.width,s=e.height,l=r[0];return!!(Fk(r,o,i)||Fk(r,o+a,i)||Fk(r,o,i+s)||Fk(r,o+a,i+s)||Fn.create(e).contain(l[0],l[1])||Ub(o,i,o+a,i,r)||Ub(o,i,o,i+s,r)||Ub(o+a,i,o+a,i+s,r)||Ub(o,i+s,o+a,i+s,r))||void 0}}};function zK(e){var t=["x","y"],n=["width","height"];return{point:function(t,n,r){if(t){var o=r.range,i=t[e];return VK(i,o)}},rect:function(r,o,i){if(r){var a=i.range,s=[r[t[e]],r[t[e]]+r[n[e]]];return s[1]<s[0]&&s.reverse(),VK(s[0],a)||VK(s[1],a)||VK(a[0],s)||VK(a[1],s)}}}}function VK(e,t){return t[0]<=e&&e<=t[1]}var BK=["inBrush","outOfBrush"],jK="__ecBrushSelect",QK="__ecInBrushSelectEvent";function FK(e){e.eachComponent({mainType:"brush"},(function(t){var n=t.brushTargetManager=new Rq(t.option,e);n.setInputRanges(t.areas,e)}))}function WK(e,t,n){var r,o,i=[];e.eachComponent({mainType:"brush"},(function(e){n&&"takeGlobalCursor"===n.type&&e.setBrushOption("brush"===n.key?n.brushOption:{brushType:!1})})),FK(e),e.eachComponent({mainType:"brush"},(function(t,n){var a={brushId:t.id,brushIndex:n,brushName:t.name,areas:ye(t.areas),selected:[]};i.push(a);var s=t.option,l=s.brushLink,u=[],c=[],d=[],h=!1;n||(r=s.throttleType,o=s.throttleDelay);var p=Te(t.areas,(function(e){var t=UK[e.brushType],n=we({boundingRect:t?t(e):void 0},e);return n.selectors=NK(n),n})),f=$K(t.option,BK,(function(e){e.mappingMethod="fixed"}));function g(e){return"all"===l||!!u[e]}function m(e){return!!e.length}function v(e,t){var n=e.coordinateSystem;h=h||n.hasAxisBrushed(),g(t)&&n.eachActiveState(e.getData(),(function(e,t){"active"===e&&(c[t]=1)}))}function y(n,r,o){if(n.brushSelector&&!XK(t,r)&&(Me(p,(function(r){t.brushTargetManager.controlSeries(r,n,e)&&o.push(r),h=h||m(o)})),g(r)&&m(o))){var i=n.getData();i.each((function(e){GK(n,o,i,e)&&(c[e]=1)}))}}Le(l)&&Me(l,(function(e){u[e]=1})),e.eachSeries((function(e,t){var n=d[t]=[];"parallel"===e.subType?v(e,t):y(e,t,n)})),e.eachSeries((function(e,t){var n={seriesId:e.id,seriesIndex:t,seriesName:e.name,dataIndex:[]};a.selected.push(n);var r=d[t],o=e.getData(),i=g(t)?function(e){return c[e]?(n.dataIndex.push(o.getRawIndex(e)),"inBrush"):"outOfBrush"}:function(t){return GK(e,r,o,t)?(n.dataIndex.push(o.getRawIndex(t)),"inBrush"):"outOfBrush"};(g(t)?h:m(r))&&DK(BK,f,o,i)}))})),HK(t,r,o,i,n)}function HK(e,t,n,r,o){if(o){var i=e.getZr();if(!i[QK]){i[jK]||(i[jK]=ZK);var a=g_(i,jK,n,t);a(e,r)}}}function ZK(e,t){if(!e.isDisposed()){var n=e.getZr();n[QK]=!0,e.dispatchAction({type:"brushSelect",batch:t}),n[QK]=!1}}function GK(e,t,n,r){for(var o=0,i=t.length;o<i;o++){var a=t[o];if(e.brushSelector(r,n,a.selectors,a))return!0}}function XK(e,t){var n=e.option.seriesIndex;return null!=n&&"all"!==n&&(Le(n)?Se(n,t)<0:t!==n)}var UK={rect:function(e){return YK(e.range)},polygon:function(e){for(var t,n=e.range,r=0,o=n.length;r<o;r++){t=t||[[1/0,-1/0],[1/0,-1/0]];var i=n[r];i[0]<t[0][0]&&(t[0][0]=i[0]),i[0]>t[0][1]&&(t[0][1]=i[0]),i[1]<t[1][0]&&(t[1][0]=i[1]),i[1]>t[1][1]&&(t[1][1]=i[1])}return t&&YK(t)}};function YK(e){return new Fn(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var qK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Q(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t,this.model,(this._brushController=new sQ(t.getZr())).on("brush",Re(this._onBrush,this)).mount()},t.prototype.render=function(e,t,n,r){this.model=e,this._updateController(e,t,n,r)},t.prototype.updateTransform=function(e,t,n,r){FK(t),this._updateController(e,t,n,r)},t.prototype.updateVisual=function(e,t,n,r){this.updateTransform(e,t,n,r)},t.prototype.updateView=function(e,t,n,r){this._updateController(e,t,n,r)},t.prototype._updateController=function(e,t,n,r){(!r||r.$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:ye(n),$from:t}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:t,areas:ye(n),$from:t})},t.type="brush",t}(Fv),KK=qK,JK="#ddd",eJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.areas=[],n.brushOption={},n}return Q(t,e),t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&EK(n,e,["inBrush","outOfBrush"]);var r=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:JK},r.hasOwnProperty("liftZ")||(r.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=Te(e,(function(e){return tJ(this.option,e)}),this))},t.prototype.setBrushOption=function(e){this.brushOption=tJ(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}(ff);function tJ(e,t){return be({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new Qh(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var nJ=eJ,rJ=["rect","polygon","lineX","lineY","keep","clear"],oJ=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Q(t,e),t.prototype.render=function(e,t,n){var r,o,i;t.eachComponent({mainType:"brush"},(function(e){r=e.brushType,o=e.brushOption.brushMode||"single",i=i||!!e.areas.length})),this._brushType=r,this._brushMode=o,Me(e.get("type",!0),(function(t){e.setIconStatus(t,("keep"===t?"multiple"===o:"clear"===t?i:t===r)?"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 Me(e.get("type",!0),(function(e){t[e]&&(n[e]=t[e])})),n},t.prototype.onclick=function(e,t,n){var r=this._brushType,o=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?r:r!==n&&n,brushMode:"keep"===n?"multiple"===o?"single":"multiple":o}})},t.getDefaultOption=function(e){var t={show:!0,type:rJ.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}(DY),iJ=oJ;function aJ(e){e.registerComponentView(KK),e.registerComponentModel(nJ),e.registerPreprocessor(MK),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,WK),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"},gt),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},gt),NY("brush",iJ)}var sJ=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 Q(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}(ff),lJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Q(t,e),t.prototype.render=function(e,t,n){if(this.group.removeAll(),e.get("show")){var r=this.group,o=e.getModel("textStyle"),i=e.getModel("subtextStyle"),a=e.get("textAlign"),s=qe(e.get("textBaseline"),e.get("textVerticalAlign")),l=new jc({style:yh(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),c=e.get("subtext"),d=new jc({style:yh(i,{text:c,fill:i.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(){Yp(h,"_"+e.get("target"))})),p&&d.on("click",(function(){Yp(p,"_"+e.get("subtarget"))})),Qc(l).eventData=Qc(d).eventData=f?{componentType:"title",componentIndex:e.componentIndex}:null,r.add(l),c&&r.add(d);var g=r.getBoundingRect(),m=e.getBoxLayoutParams();m.width=g.width,m.height=g.height;var v=rf(m,{width:n.getWidth(),height:n.getHeight()},e.get("padding"));a||(a=e.get("left")||e.get("right"),"middle"===a&&(a="center"),"right"===a?v.x+=v.width:"center"===a&&(v.x+=v.width/2)),s||(s=e.get("top")||e.get("bottom"),"center"===s&&(s="middle"),"bottom"===s?v.y+=v.height:"middle"===s&&(v.y+=v.height/2),s=s||"top"),r.x=v.x,r.y=v.y,r.markRedraw();var y={align:a,verticalAlign:s};l.setStyle(y),d.setStyle(y),g=r.getBoundingRect();var b=v.margin,_=e.getItemStyle(["color","opacity"]);_.fill=e.get("backgroundColor");var x=new Oc({shape:{x:g.x-b[3],y:g.y-b[0],width:g.width+b[1]+b[3],height:g.height+b[0]+b[2],r:e.get("borderRadius")},style:_,subPixelOptimize:!0,silent:!0});r.add(x)}},t.type="title",t}(Fv);function uJ(e){e.registerComponentModel(sJ),e.registerComponentView(lJ)}var cJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode="box",n}return Q(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||[],r=t.axisType,o=this._names=[];"category"===r?(e=[],Me(n,(function(t,n){var r,i=Bs(Ts(t),"");Qe(t)?(r=ye(t),r.value=n):r=n,e.push(r),o.push(i)}))):e=n;var i={category:"ordinal",time:"time",value:"number"}[r]||"number",a=this._data=new HS([{name:"value",type:i}],this);a.initData(e,o)},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}(ff),dJ=cJ,hJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Q(t,e),t.type="timeline.slider",t.defaultOption=Gh(dJ.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}(dJ);ke(hJ,ym.prototype);var pJ=hJ,fJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Q(t,e),t.type="timeline",t}(Fv),gJ=fJ,mJ=function(e){function t(t,n,r,o){var i=e.call(this,t,n,r)||this;return i.type=o||"value",i}return Q(t,e),t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},t}(SC),vJ=mJ,yJ=Math.PI,bJ=Xs(),_J=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Q(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 r=this._layout(e,n),o=this._createGroup("_mainGroup"),i=this._createGroup("_labelGroup"),a=this._axis=this._createAxis(r,e);e.formatTooltip=function(e){var t=a.scale.getLabel({value:e});return dv("nameValue",{noName:!0,value:t})},Me(["AxisLine","AxisTick","Control","CurrentPointer"],(function(t){this["_render"+t](r,o,a,e)}),this),this._renderAxisLabel(r,i,a,e),this._position(r,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,r=e.get(["label","position"]),o=e.get("orient"),i=wJ(e,t);n=null==r||"auto"===r?"horizontal"===o?i.y+i.height/2<t.getHeight()/2?"-":"+":i.x+i.width/2<t.getWidth()/2?"+":"-":Ve(r)?{horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[o][r]:r;var a,s,l,u={horizontal:"center",vertical:n>=0||"+"===n?"left":"right"},c={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},d={horizontal:0,vertical:yJ/2},h="vertical"===o?i.height:i.width,p=e.getModel("controlStyle"),f=p.get("show",!0),g=f?p.get("itemSize"):0,m=f?p.get("itemGap"):0,v=g+m,y=e.get(["label","rotate"])||0;y=y*yJ/180;var b=p.get("position",!0),_=f&&p.get("showPlayBtn",!0),x=f&&p.get("showPrevBtn",!0),w=f&&p.get("showNextBtn",!0),O=0,S=h;"left"===b||"bottom"===b?(_&&(a=[0,0],O+=v),x&&(s=[O,0],O+=v),w&&(l=[S-g,0],S-=v)):(_&&(a=[S-g,0],S-=v),x&&(s=[0,0],O+=v),w&&(l=[S-g,0],S-=v));var A=[O,S];return e.get("inverse")&&A.reverse(),{viewRect:i,mainLength:h,orient:o,rotation:d[o],labelRotation:y,labelPosOpt:n,labelAlign:e.get(["label","align"])||u[o],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||c[o],playPosition:a,prevBtnPosition:s,nextBtnPosition:l,axisExtent:A,controlSize:g,controlGap:m}},t.prototype._position=function(e,t){var n=this._mainGroup,r=this._labelGroup,o=e.viewRect;if("vertical"===e.orient){var i=On(),a=o.x,s=o.y+o.height;Cn(i,i,[-a,-s]),Mn(i,i,-yJ/2),Cn(i,i,[a,s]),o=o.clone(),o.applyTransform(i)}var l=m(o),u=m(n.getBoundingRect()),c=m(r.getBoundingRect()),d=[n.x,n.y],h=[r.x,r.y];h[0]=d[0]=l[0][0];var p=e.labelPosOpt;if(null==p||Ve(p)){var f="+"===p?0:1;v(d,u,l,1,f),v(h,c,l,1,1-f)}else{f=p>=0?0:1;v(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 m(e){return[[e.x,e.x+e.width],[e.y,e.y+e.height]]}function v(e,t,n,r,o){e[r]+=n[r][o]-t[r][o]}n.setPosition(d),r.setPosition(h),n.rotation=r.rotation=e.rotation,g(n),g(r)},t.prototype._createAxis=function(e,t){var n=t.getData(),r=t.get("axisType"),o=xJ(t,r);o.getTicks=function(){return n.mapArray(["value"],(function(e){return{value:e}}))};var i=n.getDataExtent("value");o.setExtent(i[0],i[1]),o.calcNiceTicks();var a=new vJ("value",o,e.axisExtent,r);return a.model=t,a},t.prototype._createGroup=function(e){var t=this[e]=new Da;return this.group.add(t),t},t.prototype._renderAxisLine=function(e,t,n,r){var o=n.getExtent();if(r.get(["lineStyle","show"])){var i=new Ky({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:xe({lineCap:"round"},r.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});t.add(i);var a=this._progressLine=new Ky({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:we({lineCap:"round",lineWidth:i.style.lineWidth},r.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});t.add(a)}},t.prototype._renderAxisTick=function(e,t,n,r){var o=this,i=r.getData(),a=n.scale.getTicks();this._tickSymbols=[],Me(a,(function(e){var a=n.dataToCoord(e.value),s=i.getItemModel(e.value),l=s.getModel("itemStyle"),u=s.getModel(["emphasis","itemStyle"]),c=s.getModel(["progress","itemStyle"]),d={x:a,y:0,onclick:Re(o._changeTimeline,o,e.value)},h=SJ(s,l,t,d);h.ensureState("emphasis").style=u.getItemStyle(),h.ensureState("progress").style=c.getItemStyle(),Qd(h);var p=Qc(h);s.get("tooltip")?(p.dataIndex=e.value,p.dataModel=r):p.dataIndex=p.dataModel=null,o._tickSymbols.push(h)}))},t.prototype._renderAxisLabel=function(e,t,n,r){var o=this,i=n.getLabelModel();if(i.get("show")){var a=r.getData(),s=n.getViewLabels();this._tickLabels=[],Me(s,(function(r){var i=r.tickValue,s=a.getItemModel(i),l=s.getModel("label"),u=s.getModel(["emphasis","label"]),c=s.getModel(["progress","label"]),d=n.dataToCoord(r.tickValue),h=new jc({x:d,y:0,rotation:e.labelRotation-e.rotation,onclick:Re(o._changeTimeline,o,i),silent:!1,style:yh(l,{text:r.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});h.ensureState("emphasis").style=yh(u),h.ensureState("progress").style=yh(c),t.add(h),Qd(h),bJ(h).dataIndex=i,o._tickLabels.push(h)}))}},t.prototype._renderControl=function(e,t,n,r){var o=e.controlSize,i=e.rotation,a=r.getModel("controlStyle").getItemStyle(),s=r.getModel(["emphasis","controlStyle"]).getItemStyle(),l=r.getPlayState(),u=r.get("inverse",!0);function c(e,n,l,u){if(e){var c=va(qe(r.get(["controlStyle",n+"BtnSize"]),o),o),d=[0,-c/2,c,c],h=OJ(r,n+"Icon",d,{x:e[0],y:e[1],originX:o/2,originY:0,rotation:u?-i:0,rectHover:!0,style:a,onclick:l});h.ensureState("emphasis").style=s,t.add(h),Qd(h)}}c(e.nextBtnPosition,"next",Re(this._changeTimeline,this,u?"-":"+")),c(e.prevBtnPosition,"prev",Re(this._changeTimeline,this,u?"+":"-")),c(e.playPosition,l?"stop":"play",Re(this._handlePlayClick,this,!l),!0)},t.prototype._renderCurrentPointer=function(e,t,n,r){var o=r.getData(),i=r.getCurrentIndex(),a=o.getItemModel(i).getModel("checkpointStyle"),s=this,l={onCreate:function(e){e.draggable=!0,e.drift=Re(s._handlePointerDrag,s),e.ondragend=Re(s._handlePointerDragend,s),AJ(e,s._progressLine,i,n,r,!0)},onUpdate:function(e){AJ(e,s._progressLine,i,n,r)}};this._currentPointer=SJ(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],r=this._axis,o=ts(r.getExtent().slice());n>o[1]&&(n=o[1]),n<o[0]&&(n=o[0]),this._currentPointer.x=n,this._currentPointer.markRedraw();var i=this._progressLine;i&&(i.shape.x2=n,i.dirty());var a=this._findNearestTick(n),s=this.model;(t||a!==s.getCurrentIndex()&&s.get("realtime"))&&this._changeTimeline(a)},t.prototype._doPlayStop=function(){var e=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout((function(){var t=e.model;e._changeTimeline(t.getCurrentIndex()+(t.get("rewind",!0)?-1:1))}),this.model.get("playInterval")))},t.prototype._toAxisCoord=function(e){var t=this._mainGroup.getLocalTransform();return jb(e,t,!0)},t.prototype._findNearestTick=function(e){var t,n=this.model.getData(),r=1/0,o=this._axis;return n.each(["value"],(function(n,i){var a=o.dataToCoord(n),s=Math.abs(a-e);s<r&&(r=s,t=i)})),t},t.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},t.prototype._changeTimeline=function(e){var t=this.model.getCurrentIndex();"+"===e?e=t+1:"-"===e&&(e=t-1),this.api.dispatchAction({type:"timelineChange",currentIndex:e,from:this.uid})},t.prototype._updateTicksStatus=function(){var e=this.model.getCurrentIndex(),t=this._tickSymbols,n=this._tickLabels;if(t)for(var r=0;r<t.length;r++)t&&t[r]&&t[r].toggleState("progress",r<e);if(n)for(r=0;r<n.length;r++)n&&n[r]&&n[r].toggleState("progress",bJ(n[r]).dataIndex<=e)},t.type="timeline.slider",t}(gJ);function xJ(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new CA({ordinalMeta:e.getCategories(),extent:[1/0,-1/0]});case"time":return new ik({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new PA}}function wJ(e,t){return rf(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},e.get("padding"))}function OJ(e,t,n,r){var o=r.style,i=Xb(e.get(["controlStyle",t]),r||{},new Fn(n[0],n[1],n[2],n[3]));return o&&i.setStyle(o),i}function SJ(e,t,n,r,o,i){var a=t.get("color");if(o)o.setColor(a),n.add(o),i&&i.onUpdate(o);else{var s=e.get("symbol");o=Sx(s,-1,-1,2,2,a),o.setStyle("strokeNoScale",!0),n.add(o),i&&i.onCreate(o)}var l=t.getItemStyle(["color"]);o.setStyle(l),r=be({rectHover:!0,z2:100},r,!0);var u=Ax(e.get("symbolSize"));r.scaleX=u[0]/2,r.scaleY=u[1]/2;var c=kx(e.get("symbolOffset"),u);c&&(r.x=(r.x||0)+c[0],r.y=(r.y||0)+c[1]);var d=e.get("symbolRotate");return r.rotation=(d||0)*Math.PI/180||0,o.attr(r),o.updateTransform(),o}function AJ(e,t,n,r,o,i){if(!e.dragging){var a=o.getModel("checkpointStyle"),s=r.dataToCoord(o.getData().get("value",n));if(i||!a.get("animation",!0))e.attr({x:s,y:0}),t&&t.attr({shape:{x2:s}});else{var l={duration:a.get("animationDuration",!0),easing:a.get("animationEasing",!0)};e.stopAnimation(null,!0),e.animateTo({x:s,y:0},l),t&&t.animateTo({shape:{x2:s}},l)}}}var kJ=_J;function CJ(e){e.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},(function(e,t,n){var r=t.getComponent("timeline");return r&&null!=e.currentIndex&&(r.setCurrentIndex(e.currentIndex),!r.get("loop",!0)&&r.isIndexMax()&&r.getPlayState()&&(r.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),t.resetOption("timeline",{replaceMerge:r.get("replaceMerge",!0)}),we({currentIndex:r.option.currentIndex},e)})),e.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},(function(e,t){var n=t.getComponent("timeline");n&&null!=e.playState&&n.setPlayState(e.playState)}))}function MJ(e){var t=e&&e.timeline;Le(t)||(t=t?[t]:[]),Me(t,(function(e){e&&TJ(e)}))}function TJ(e){var t=e.type,n={number:"value",time:"time"};if(n[t]&&(e.axisType=n[t],delete e.type),PJ(e),IJ(e,"controlPosition")){var r=e.controlStyle||(e.controlStyle={});IJ(r,"position")||(r.position=e.controlPosition),"none"!==r.position||IJ(r,"show")||(r.show=!1,delete r.position),delete e.controlPosition}Me(e.data||[],(function(e){Qe(e)&&!Le(e)&&(!IJ(e,"value")&&IJ(e,"name")&&(e.value=e.name),PJ(e))}))}function PJ(e){var t=e.itemStyle||(e.itemStyle={}),n=t.emphasis||(t.emphasis={}),r=e.label||e.label||{},o=r.normal||(r.normal={}),i={normal:1,emphasis:1};Me(r,(function(e,t){i[t]||IJ(o,t)||(o[t]=e)})),n.label&&!IJ(r,"emphasis")&&(r.emphasis=n.label,delete n.label)}function IJ(e,t){return e.hasOwnProperty(t)}function $J(e){e.registerComponentModel(pJ),e.registerComponentView(kJ),e.registerSubTypeDefaulter("timeline",(function(){return"slider"})),CJ(e),e.registerPreprocessor(MJ)}function EJ(e,t){if(!e)return!1;for(var n=Le(e)?e:[e],r=0;r<n.length;r++)if(n[r]&&n[r][t])return!0;return!1}function DJ(e){Cs(e,"label",["show"])}var RJ=Xs(),NJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.createdBySelf=!1,n}return Q(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._mergeOption(e,n,!1,!0)},t.prototype.isAnimationEnabled=function(){if(G.node)return!1;var e=this.__hostSeries;return this.getShallow("animation")&&e&&e.isAnimationEnabled()},t.prototype.mergeOption=function(e,t){this._mergeOption(e,t,!1,!1)},t.prototype._mergeOption=function(e,t,n,r){var o=this.mainType;n||t.eachSeries((function(e){var n=e.get(this.mainType,!0),i=RJ(e)[o];n&&n.data?(i?i._mergeOption(n,t,!0):(r&&DJ(n),Me(n.data,(function(e){e instanceof Array?(DJ(e[0]),DJ(e[1])):DJ(e)})),i=this.createMarkerModelFromSeries(n,this,t),xe(i,{mainType:this.mainType,seriesIndex:e.seriesIndex,name:e.name,createdBySelf:!0}),i.__hostSeries=e),RJ(e)[o]=i):RJ(e)[o]=null}),this)},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),o=this.getRawValue(e),i=r.getName(e);return dv("section",{header:this.name,blocks:[dv("nameValue",{name:i,value:o,noName:!i,noValue:null==o})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(e){this._data=e},t.prototype.getDataParams=function(e,t){var n=ym.prototype.getDataParams.call(this,e,t),r=this.__hostSeries;return r&&(n.seriesId=r.id,n.seriesName=r.name,n.seriesType=r.subType),n},t.getMarkerModelFromSeries=function(e,t){return RJ(e)[t]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(ff);ke(NJ,ym.prototype);var LJ=NJ,zJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Q(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},t.type="markPoint",t.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},t}(LJ),VJ=zJ;function BJ(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function jJ(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function QJ(e,t,n,r,o,i){var a=[],s=rA(t,r),l=s?t.getCalculationInfo("stackResultDimension"):r,u=YJ(t,l,e),c=t.indicesOfNearest(l,u)[0];a[o]=t.get(n,c),a[i]=t.get(l,c);var d=t.get(r,c),h=ns(t.get(r,c));return h=Math.min(h,20),h>=0&&(a[i]=+a[i].toFixed(h)),[a,d]}var FJ={min:Ne(QJ,"min"),max:Ne(QJ,"max"),average:Ne(QJ,"average"),median:Ne(QJ,"median")};function WJ(e,t){if(t){var n=e.getData(),r=e.coordinateSystem,o=r&&r.dimensions;if(!jJ(t)&&!Le(t.coord)&&Le(o)){var i=HJ(t,n,r,e);if(t=ye(t),t.type&&FJ[t.type]&&i.baseAxis&&i.valueAxis){var a=Se(o,i.baseAxis.dim),s=Se(o,i.valueAxis.dim),l=FJ[t.type](n,i.baseDataDim,i.valueDataDim,a,s);t.coord=l[0],t.value=l[1]}else t.coord=[null!=t.xAxis?t.xAxis:t.radiusAxis,null!=t.yAxis?t.yAxis:t.angleAxis]}if(null!=t.coord&&Le(o))for(var u=t.coord,c=0;c<2;c++)FJ[u[c]]&&(u[c]=YJ(n,n.mapDimension(o[c]),u[c]));else t.coord=[];return t}}function HJ(e,t,n,r){var o={};return null!=e.valueIndex||null!=e.valueDim?(o.valueDataDim=null!=e.valueIndex?t.getDimension(e.valueIndex):e.valueDim,o.valueAxis=n.getAxis(ZJ(r,o.valueDataDim)),o.baseAxis=n.getOtherAxis(o.valueAxis),o.baseDataDim=t.mapDimension(o.baseAxis.dim)):(o.baseAxis=r.getBaseAxis(),o.valueAxis=n.getOtherAxis(o.baseAxis),o.baseDataDim=t.mapDimension(o.baseAxis.dim),o.valueDataDim=t.mapDimension(o.valueAxis.dim)),o}function ZJ(e,t){var n=e.getData().getDimensionInfo(t);return n&&n.coordDim}function GJ(e,t){return!(e&&e.containData&&t.coord&&!BJ(t))||e.containData(t.coord)}function XJ(e,t,n){return!(e&&e.containZone&&t.coord&&n.coord&&!BJ(t)&&!BJ(n))||e.containZone(t.coord,n.coord)}function UJ(e,t){return e?function(e,n,r,o){var i=o<2?e.coord&&e.coord[o]:e.value;return Am(i,t[o])}:function(e,n,r,o){return Am(e.value,t[o])}}function YJ(e,t,n){if("average"===n){var r=0,o=0;return e.each(t,(function(e,t){isNaN(e)||(r+=e,o++)})),r/o}return"median"===n?e.getMedian(t):e.getDataExtent(t)["max"===n?1:0]}var qJ=Xs(),KJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Q(t,e),t.prototype.init=function(){this.markerGroupMap=ct()},t.prototype.render=function(e,t,n){var r=this,o=this.markerGroupMap;o.each((function(e){qJ(e).keep=!1})),t.eachSeries((function(e){var o=LJ.getMarkerModelFromSeries(e,r.type);o&&r.renderSeries(e,o,t,n)})),o.each((function(e){!qJ(e).keep&&r.group.remove(e.group)}))},t.prototype.markKeep=function(e){qJ(e).keep=!0},t.prototype.toggleBlurSeries=function(e,t){var n=this;Me(e,(function(e){var r=LJ.getMarkerModelFromSeries(e,n.type);if(r){var o=r.getData();o.eachItemGraphicEl((function(e){e&&(t?Cd(e):Md(e))}))}}))},t.type="marker",t}(Fv),JJ=KJ;function e0(e,t,n){var r=t.coordinateSystem;e.each((function(o){var i,a=e.getItemModel(o),s=Ja(a.get("x"),n.getWidth()),l=Ja(a.get("y"),n.getHeight());if(isNaN(s)||isNaN(l)){if(t.getMarkerPosition)i=t.getMarkerPosition(e.getValues(e.dimensions,o));else if(r){var u=e.get(r.dimensions[0],o),c=e.get(r.dimensions[1],o);i=r.dataToPoint([u,c])}}else i=[s,l];isNaN(s)||(i[0]=s),isNaN(l)||(i[1]=l),e.setItemLayout(o,i)}))}var t0=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Q(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=LJ.getMarkerModelFromSeries(e,"markPoint");t&&(e0(t.getData(),e,n),this.markerGroupMap.get(e.id).updateLayout())}),this)},t.prototype.renderSeries=function(e,t,n,r){var o=e.coordinateSystem,i=e.id,a=e.getData(),s=this.markerGroupMap,l=s.get(i)||s.set(i,new bP),u=n0(o,e,t);t.setData(u),e0(t.getData(),e,r),u.each((function(e){var n=u.getItemModel(e),r=n.getShallow("symbol"),o=n.getShallow("symbolSize"),i=n.getShallow("symbolRotate"),s=n.getShallow("symbolOffset"),l=n.getShallow("symbolKeepAspect");if(ze(r)||ze(o)||ze(i)||ze(s)){var c=t.getRawValue(e),d=t.getDataParams(e);ze(r)&&(r=r(c,d)),ze(o)&&(o=o(c,d)),ze(i)&&(i=i(c,d)),ze(s)&&(s=s(c,d))}var h=n.getModel("itemStyle").getItemStyle(),p=ox(a,"color");h.fill||(h.fill=p),u.setItemVisual(e,{symbol:r,symbolSize:o,symbolRotate:i,symbolOffset:s,symbolKeepAspect:l,style:h})})),l.updateData(u),this.group.add(l.group),u.eachItemGraphicEl((function(e){e.traverse((function(e){Qc(e).dataModel=t}))})),this.markKeep(l),l.group.silent=t.get("silent")||e.get("silent")},t.type="markPoint",t}(JJ);function n0(e,t,n){var r;r=e?Te(e&&e.dimensions,(function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return xe(xe({},n),{name:e,ordinalMeta:null})})):[{name:"value",type:"float"}];var o=new HS(r,n),i=Te(n.get("data"),Ne(WJ,t));e&&(i=Ie(i,Ne(GJ,e)));var a=UJ(!!e,r);return o.initData(i,null,a),o}var r0=t0;function o0(e){e.registerComponentModel(VJ),e.registerComponentView(r0),e.registerPreprocessor((function(e){EJ(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})}))}var i0=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Q(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},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}(LJ),a0=i0,s0=Xs(),l0=function(e,t,n,r){var o,i=e.getData();if(Le(r))o=r;else{var a=r.type;if("min"===a||"max"===a||"average"===a||"median"===a||null!=r.xAxis||null!=r.yAxis){var s=void 0,l=void 0;if(null!=r.yAxis||null!=r.xAxis)s=t.getAxis(null!=r.yAxis?"y":"x"),l=Ye(r.yAxis,r.xAxis);else{var u=HJ(r,i,t,e);s=u.valueAxis;var c=oA(i,u.valueDataDim);l=YJ(i,c,a)}var d="x"===s.dim?0:1,h=1-d,p=ye(r),f={coord:[]};p.type=null,p.coord=[],p.coord[h]=-1/0,f.coord[h]=1/0;var g=n.get("precision");g>=0&&je(l)&&(l=+l.toFixed(Math.min(g,20))),p.coord[d]=f.coord[d]=l,o=[p,f,{type:a,valueIndex:r.valueIndex,value:l}]}else o=[]}var m=[WJ(e,o[0]),WJ(e,o[1]),xe({},o[2])];return m[2].type=m[2].type||null,be(m[2],m[0]),be(m[2],m[1]),m};function u0(e){return!isNaN(e)&&!isFinite(e)}function c0(e,t,n,r){var o=1-e,i=r.dimensions[e];return u0(t[o])&&u0(n[o])&&t[e]===n[e]&&r.getAxis(i).containData(t[e])}function d0(e,t){if("cartesian2d"===e.type){var n=t[0].coord,r=t[1].coord;if(n&&r&&(c0(1,n,r,e)||c0(0,n,r,e)))return!0}return GJ(e,t[0])&&GJ(e,t[1])}function h0(e,t,n,r,o){var i,a=r.coordinateSystem,s=e.getItemModel(t),l=Ja(s.get("x"),o.getWidth()),u=Ja(s.get("y"),o.getHeight());if(isNaN(l)||isNaN(u)){if(r.getMarkerPosition)i=r.getMarkerPosition(e.getValues(e.dimensions,t));else{var c=a.dimensions,d=e.get(c[0],t),h=e.get(c[1],t);i=a.dataToPoint([d,h])}if(NP(a,"cartesian2d")){var p=a.getAxis("x"),f=a.getAxis("y");c=a.dimensions;u0(e.get(c[0],t))?i[0]=p.toGlobalCoord(p.getExtent()[n?0:1]):u0(e.get(c[1],t))&&(i[1]=f.toGlobalCoord(f.getExtent()[n?0:1]))}isNaN(l)||(i[0]=l),isNaN(u)||(i[1]=u)}else i=[l,u];e.setItemLayout(t,i)}var p0=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Q(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=LJ.getMarkerModelFromSeries(e,"markLine");if(t){var r=t.getData(),o=s0(t).from,i=s0(t).to;o.each((function(t){h0(o,t,!0,e,n),h0(i,t,!1,e,n)})),r.each((function(e){r.setItemLayout(e,[o.getItemLayout(e),i.getItemLayout(e)])})),this.markerGroupMap.get(e.id).updateLayout()}}),this)},t.prototype.renderSeries=function(e,t,n,r){var o=e.coordinateSystem,i=e.id,a=e.getData(),s=this.markerGroupMap,l=s.get(i)||s.set(i,new MV);this.group.add(l.group);var u=f0(o,e,t),c=u.from,d=u.to,h=u.line;s0(t).from=c,s0(t).to=d,t.setData(h);var p=t.get("symbol"),f=t.get("symbolSize"),g=t.get("symbolRotate"),m=t.get("symbolOffset");function v(t,n,o){var i=t.getItemModel(n);h0(t,n,o,e,r);var s=i.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=ox(a,"color")),t.setItemVisual(n,{symbolKeepAspect:i.get("symbolKeepAspect"),symbolOffset:qe(i.get("symbolOffset",!0),m[o?0:1]),symbolRotate:qe(i.get("symbolRotate",!0),g[o?0:1]),symbolSize:qe(i.get("symbolSize"),f[o?0:1]),symbol:qe(i.get("symbol",!0),p[o?0:1]),style:s})}Le(p)||(p=[p,p]),Le(f)||(f=[f,f]),Le(g)||(g=[g,g]),Le(m)||(m=[m,m]),u.from.each((function(e){v(c,e,!0),v(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){Qc(e).dataModel=t,e.traverse((function(e){Qc(e).dataModel=t}))})),this.markKeep(l),l.group.silent=t.get("silent")||e.get("silent")},t.type="markLine",t}(JJ);function f0(e,t,n){var r;r=e?Te(e&&e.dimensions,(function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return xe(xe({},n),{name:e,ordinalMeta:null})})):[{name:"value",type:"float"}];var o=new HS(r,n),i=new HS(r,n),a=new HS([],n),s=Te(n.get("data"),Ne(l0,t,e,n));e&&(s=Ie(s,Ne(d0,e)));var l=UJ(!!e,r);return o.initData(Te(s,(function(e){return e[0]})),null,l),i.initData(Te(s,(function(e){return e[1]})),null,l),a.initData(Te(s,(function(e){return e[2]}))),a.hasItemOption=!0,{from:o,to:i,line:a}}var g0=p0;function m0(e){e.registerComponentModel(a0),e.registerComponentView(g0),e.registerPreprocessor((function(e){EJ(e.series,"markLine")&&(e.markLine=e.markLine||{})}))}var v0=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Q(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},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}(LJ),y0=v0,b0=Xs(),_0=function(e,t,n,r){var o=r[0],i=r[1];if(o&&i){var a=WJ(e,o),s=WJ(e,i),l=a.coord,u=s.coord;l[0]=Ye(l[0],-1/0),l[1]=Ye(l[1],-1/0),u[0]=Ye(u[0],1/0),u[1]=Ye(u[1],1/0);var c=_e([{},a,s]);return c.coord=[a.coord,s.coord],c.x0=a.x,c.y0=a.y,c.x1=s.x,c.y1=s.y,c}};function x0(e){return!isNaN(e)&&!isFinite(e)}function w0(e,t,n,r){var o=1-e;return x0(t[o])&&x0(n[o])}function O0(e,t){var n=t.coord[0],r=t.coord[1],o={coord:n,x:t.x0,y:t.y0},i={coord:r,x:t.x1,y:t.y1};return NP(e,"cartesian2d")?!(!n||!r||!w0(1,n,r,e)&&!w0(0,n,r,e))||XJ(e,o,i):GJ(e,o)||GJ(e,i)}function S0(e,t,n,r,o){var i,a=r.coordinateSystem,s=e.getItemModel(t),l=Ja(s.get(n[0]),o.getWidth()),u=Ja(s.get(n[1]),o.getHeight());if(isNaN(l)||isNaN(u)){if(r.getMarkerPosition){var c=e.getValues(["x0","y0"],t),d=e.getValues(["x1","y1"],t),h=a.clampData(c),p=a.clampData(d),f=[];"x0"===n[0]?f[0]=h[0]>p[0]?d[0]:c[0]:f[0]=h[0]>p[0]?c[0]:d[0],"y0"===n[1]?f[1]=h[1]>p[1]?d[1]:c[1]:f[1]=h[1]>p[1]?c[1]:d[1],i=r.getMarkerPosition(f,n,!0)}else{var g=e.get(n[0],t),m=e.get(n[1],t),v=[g,m];a.clampData&&a.clampData(v,v),i=a.dataToPoint(v,!0)}if(NP(a,"cartesian2d")){var y=a.getAxis("x"),b=a.getAxis("y");g=e.get(n[0],t),m=e.get(n[1],t);x0(g)?i[0]=y.toGlobalCoord(y.getExtent()["x0"===n[0]?0:1]):x0(m)&&(i[1]=b.toGlobalCoord(b.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(i[0]=l),isNaN(u)||(i[1]=u)}else i=[l,u];return i}var A0=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],k0=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Q(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=LJ.getMarkerModelFromSeries(e,"markArea");if(t){var r=t.getData();r.each((function(t){var o=Te(A0,(function(o){return S0(r,t,o,e,n)}));r.setItemLayout(t,o);var i=r.getItemGraphicEl(t);i.setShape("points",o)}))}}),this)},t.prototype.renderSeries=function(e,t,n,r){var o=e.coordinateSystem,i=e.id,a=e.getData(),s=this.markerGroupMap,l=s.get(i)||s.set(i,{group:new Da});this.group.add(l.group),this.markKeep(l);var u=C0(o,e,t);t.setData(u),u.each((function(t){var n=Te(A0,(function(n){return S0(u,t,n,e,r)})),i=o.getAxis("x").scale,s=o.getAxis("y").scale,l=i.getExtent(),c=s.getExtent(),d=[i.parse(u.get("x0",t)),i.parse(u.get("x1",t))],h=[s.parse(u.get("y0",t)),s.parse(u.get("y1",t))];ts(d),ts(h);var p=!(l[0]>d[1]||l[1]<d[0]||c[0]>h[1]||c[1]<h[0]),f=!p;u.setItemLayout(t,{points:n,allClipped:f});var g=u.getItemModel(t).getModel("itemStyle").getItemStyle(),m=ox(a,"color");g.fill||(g.fill=m,Ve(g.fill)&&(g.fill=Co(g.fill,.4))),g.stroke||(g.stroke=m),u.setItemVisual(t,"style",g)})),u.diff(b0(l).data).add((function(e){var t=u.getItemLayout(e);if(!t.allClipped){var n=new Hy({shape:{points:t.points}});u.setItemGraphicEl(e,n),l.group.add(n)}})).update((function(e,n){var r=b0(l).data.getItemGraphicEl(n),o=u.getItemLayout(e);o.allClipped?r&&l.group.remove(r):(r?ih(r,{shape:{points:o.points}},t,e):r=new Hy({shape:{points:o.points}}),u.setItemGraphicEl(e,r),l.group.add(r))})).remove((function(e){var t=b0(l).data.getItemGraphicEl(e);l.group.remove(t)})).execute(),u.eachItemGraphicEl((function(e,n){var r=u.getItemModel(n),o=u.getItemVisual(n,"style");e.useStyle(u.getItemVisual(n,"style")),mh(e,vh(r),{labelFetcher:t,labelDataIndex:n,defaultText:u.getName(n)||"",inheritColor:Ve(o.fill)?Co(o.fill,1):"#000"}),Xd(e,r),Wd(e,null,null,r.get(["emphasis","disabled"])),Qc(e).dataModel=t})),b0(l).data=u,l.group.silent=t.get("silent")||e.get("silent")},t.type="markArea",t}(JJ);function C0(e,t,n){var r,o,i=["x0","y0","x1","y1"];if(e){var a=Te(e&&e.dimensions,(function(e){var n=t.getData(),r=n.getDimensionInfo(n.mapDimension(e))||{};return xe(xe({},r),{name:e,ordinalMeta:null})}));o=Te(i,(function(e,t){return{name:e,type:a[t%2].type}})),r=new HS(o,n)}else o=[{name:"value",type:"float"}],r=new HS(o,n);var s=Te(n.get("data"),Ne(_0,t,e,n));e&&(s=Ie(s,Ne(O0,e)));var l=e?function(e,t,n,r){var i=e.coord[Math.floor(r/2)][r%2];return Am(i,o[r])}:function(e,t,n,r){return Am(e.value,o[r])};return r.initData(s,null,l),r.hasItemOption=!0,r}var M0=k0;function T0(e){e.registerComponentModel(y0),e.registerComponentView(M0),e.registerPreprocessor((function(e){EJ(e.series,"markArea")&&(e.markArea=e.markArea||{})}))}var P0=function(e,t){return"all"===t?{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])}:"inverse"===t?{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}:void 0},I0=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 Q(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},t.prototype._updateSelector=function(e){var t=e.selector,n=this.ecModel;!0===t&&(t=e.selector=["all","inverse"]),Le(t)&&Me(t,(function(e,r){Ve(e)&&(e={type:e}),t[r]=be(e,P0(n,e.type))}))},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&"single"===this.get("selectedMode")){for(var t=!1,n=0;n<e.length;n++){var r=e[n].get("name");if(this.isSelected(r)){this.select(r),t=!0;break}}!t&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var t=[],n=[];e.eachRawSeries((function(r){var o,i=r.name;if(n.push(i),r.legendVisualProvider){var a=r.legendVisualProvider,s=a.getAllNames();e.isSeriesFiltered(r)||(n=n.concat(s)),s.length?t=t.concat(s):o=!0}else o=!0;o&&js(r)&&t.push(r.name)})),this._availableNames=n;var r=this.get("data")||t,o=ct(),i=Te(r,(function(e){return(Ve(e)||je(e))&&(e={name:e}),o.get(e.name)?null:(o.set(e.name,!0),new Qh(e,this,this.ecModel))}),this);this._data=Ie(i,(function(e){return!!e}))},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var t=this.option.selected,n=this.get("selectedMode");if("single"===n){var r=this._data;Me(r,(function(e){t[e.get("name")]=!1}))}t[e]=!0},t.prototype.unSelect=function(e){"single"!==this.get("selectedMode")&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var t=this.option.selected;t.hasOwnProperty(e)||(t[e]=!0),this[t[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,t=this.option.selected;Me(e,(function(e){t[e.get("name",!0)]=!0}))},t.prototype.inverseSelect=function(){var e=this._data,t=this.option.selected;Me(e,(function(e){var n=e.get("name",!0);t.hasOwnProperty(n)||(t[n]=!0),t[n]=!t[n]}))},t.prototype.isSelected=function(e){var t=this.option.selected;return!(t.hasOwnProperty(e)&&!t[e])&&Se(this._availableNames,e)>=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}(ff),$0=I0,E0=Ne,D0=Me,R0=Da,N0=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return Q(t,e),t.prototype.init=function(){this.group.add(this._contentGroup=new R0),this.group.add(this._selectorGroup=new R0),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 r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get("show",!0)){var o=e.get("align"),i=e.get("orient");o&&"auto"!==o||(o="right"===e.get("left")&&"vertical"===i?"right":"left");var a=e.get("selector",!0),s=e.get("selectorPosition",!0);!a||s&&"auto"!==s||(s="horizontal"===i?"end":"start"),this.renderInner(o,e,t,n,a,i,s);var l=e.getBoxLayoutParams(),u={width:n.getWidth(),height:n.getHeight()},c=e.get("padding"),d=rf(l,u,c),h=this.layoutInner(e,o,d,r,a,s),p=rf(we({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=jY(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,r,o,i,a){var s=this.getContentGroup(),l=ct(),u=t.get("selectedMode"),c=[];n.eachRawSeries((function(e){!e.get("legendHoverLink")&&c.push(e.id)})),D0(t.getData(),(function(o,i){var a=o.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var d=new R0;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"),m=p.getVisual("style"),v=this._createItem(h,a,i,o,t,e,f,m,g,u,r);v.on("click",E0(V0,a,null,r,c)).on("mouseover",E0(j0,h.name,null,r,c)).on("mouseout",E0(Q0,h.name,null,r,c)),n.ssr&&v.eachChild((function(e){var t=Qc(e);t.seriesIndex=h.seriesIndex,t.dataIndex=i,t.ssrType="legend"})),l.set(a,!0)}else n.eachRawSeries((function(s){if(!l.get(a)&&s.legendVisualProvider){var d=s.legendVisualProvider;if(!d.containName(a))return;var h=d.indexOfName(a),p=d.getItemVisual(h,"style"),f=d.getItemVisual(h,"legendIcon"),g=vo(p.fill);g&&0===g[3]&&(g[3]=.2,p=xe(xe({},p),{fill:Mo(g,"rgba")}));var m=this._createItem(s,a,i,o,t,e,{},p,f,u,r);m.on("click",E0(V0,null,a,r,c)).on("mouseover",E0(j0,null,a,r,c)).on("mouseout",E0(Q0,null,a,r,c)),n.ssr&&m.eachChild((function(e){var t=Qc(e);t.seriesIndex=s.seriesIndex,t.dataIndex=i,t.ssrType="legend"})),l.set(a,!0)}}),this);0}}),this),o&&this._createSelector(o,t,r,i,a)},t.prototype._createSelector=function(e,t,n,r,o){var i=this.getSelectorGroup();D0(e,(function(e){var r=e.type,o=new jc({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===r?"legendAllSelect":"legendInverseSelect"})}});i.add(o);var a=t.getModel("selectorLabel"),s=t.getModel(["emphasis","selectorLabel"]);mh(o,{normal:a,emphasis:s},{defaultText:e.title}),Qd(o)}))},t.prototype._createItem=function(e,t,n,r,o,i,a,s,l,u,c){var d=e.visualDrawType,h=o.get("itemWidth"),p=o.get("itemHeight"),f=o.isSelected(t),g=r.get("symbolRotate"),m=r.get("symbolKeepAspect"),v=r.get("icon");l=v||l||"roundRect";var y=L0(l,r,a,s,d,f,c),b=new R0,_=r.getModel("textStyle");if(!ze(e.getLegendIcon)||v&&"inherit"!==v){var x="inherit"===v&&e.getData().getVisual("symbol")?"inherit"===g?e.getData().getVisual("symbolRotate"):g:0;b.add(z0({itemWidth:h,itemHeight:p,icon:l,iconRotate:x,itemStyle:y.itemStyle,lineStyle:y.lineStyle,symbolKeepAspect:m}))}else b.add(e.getLegendIcon({itemWidth:h,itemHeight:p,icon:l,iconRotate:g,itemStyle:y.itemStyle,lineStyle:y.lineStyle,symbolKeepAspect:m}));var w="left"===i?h+5:-5,O=i,S=o.get("formatter"),A=t;Ve(S)&&S?A=S.replace("{name}",null!=t?t:""):ze(S)&&(A=S(t));var k=f?_.getTextColor():r.get("inactiveColor");b.add(new jc({style:yh(_,{text:A,x:w,y:p/2,fill:k,align:O,verticalAlign:"middle"},{inheritColor:k})}));var C=new Oc({shape:b.getBoundingRect(),style:{fill:"transparent"}}),M=r.getModel("tooltip");return M.get("show")&&Jb({el:C,componentModel:o,itemName:t,itemTooltipOption:M.option}),b.add(C),b.eachChild((function(e){e.silent=!0})),C.silent=!u,this.getContentGroup().add(b),Qd(b),b.__legendDataIndex=n,b},t.prototype.layoutInner=function(e,t,n,r,o,i){var a=this.getContentGroup(),s=this.getSelectorGroup();tf(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(),o){tf("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",m=0===p?"y":"x";"end"===i?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 v={x:0,y:0};return v[f]=l[f]+h+c[f],v[g]=Math.max(l[g],c[g]),v[m]=Math.min(0,c[m]+d[1-p]),v}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}(Fv);function L0(e,t,n,r,o,i,a){function s(e,t){"auto"===e.lineWidth&&(e.lineWidth=t.lineWidth>0?2:0),D0(e,(function(n,r){"inherit"===e[r]&&(e[r]=t[r])}))}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?pw(d,a):r.decal,"inherit"===u.fill&&(u.fill=r[o]),"inherit"===u.stroke&&(u.stroke=r[c]),"inherit"===u.opacity&&(u.opacity=("fill"===o?r:n).opacity),s(u,r);var h=t.getModel("lineStyle"),p=h.getLineStyle();if(s(p,n),"auto"===u.fill&&(u.fill=r.fill),"auto"===u.stroke&&(u.stroke=r.fill),"auto"===p.stroke&&(p.stroke=r.fill),!i){var f=t.get("inactiveBorderWidth"),g=u[c];u.lineWidth="auto"===f?r.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 z0(e){var t=e.icon||"roundRect",n=Sx(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 V0(e,t,n,r){Q0(e,t,n,r),n.dispatchAction({type:"legendToggleSelect",name:null!=e?e:t}),j0(e,t,n,r)}function B0(e){var t,n=e.getZr().storage.getDisplayList(),r=0,o=n.length;while(r<o&&!(t=n[r].states.emphasis))r++;return t&&t.hoverLayer}function j0(e,t,n,r){B0(n)||n.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:r})}function Q0(e,t,n,r){B0(n)||n.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:r})}var F0=N0;function W0(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries((function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0}))}function H0(e,t,n){var r,o={},i="toggleSelected"===e;return n.eachComponent("legend",(function(n){i&&null!=r?n[r?"select":"unSelect"](t.name):"allSelect"===e||"inverseSelect"===e?n[e]():(n[e](t.name),r=n.isSelected(t.name));var a=n.getData();Me(a,(function(e){var t=e.get("name");if("\n"!==t&&""!==t){var r=n.isSelected(t);o.hasOwnProperty(t)?o[t]=o[t]&&r:o[t]=r}}))})),"allSelect"===e||"inverseSelect"===e?{selected:o}:{name:t.name,selected:o}}function Z0(e){e.registerAction("legendToggleSelect","legendselectchanged",Ne(H0,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",Ne(H0,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",Ne(H0,"inverseSelect")),e.registerAction("legendSelect","legendselected",Ne(H0,"select")),e.registerAction("legendUnSelect","legendunselected",Ne(H0,"unSelect"))}function G0(e){e.registerComponentModel($0),e.registerComponentView(F0),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,W0),e.registerSubTypeDefaulter("legend",(function(){return"plain"})),Z0(e)}var X0=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Q(t,e),t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(t,n,r){var o=uf(t);e.prototype.init.call(this,t,n,r),U0(this,t,o)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),U0(this,this.option,t)},t.type="legend.scroll",t.defaultOption=Gh($0.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}($0);function U0(e,t,n){var r=e.getOrient(),o=[1,1];o[r.index]=0,lf(t,n,{type:"box",ignoreSize:!!o})}var Y0=X0,q0=Da,K0=["width","height"],J0=["x","y"],e1=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return Q(t,e),t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new q0),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new q0)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(t,n,r,o,i,a,s){var l=this;e.prototype.renderInner.call(this,t,n,r,o,i,a,s);var u=this._controllerGroup,c=n.get("pageIconSize",!0),d=Le(c)?c:[c,c];p("pagePrev",0);var h=n.getModel("pageTextStyle");function p(e,t){var r=e+"DataIndex",i=Xb(n.get("pageIcons",!0)[n.getOrient().name][t],{onclick:Re(l._pageGo,l,r,n,o)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});i.name=e,u.add(i)}u.add(new jc({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1)},t.prototype.layoutInner=function(e,t,n,r,o,i){var a=this.getSelectorGroup(),s=e.getOrient().index,l=K0[s],u=J0[s],c=K0[1-s],d=J0[1-s];o&&tf("horizontal",a,e.get("selectorItemGap",!0));var h=e.get("selectorButtonGap",!0),p=a.getBoundingRect(),f=[-p.x,-p.y],g=ye(n);o&&(g[l]=n[l]-p[l]-h);var m=this._layoutContentAndController(e,r,g,s,l,c,d,u);if(o){if("end"===i)f[s]+=m[l]+h;else{var v=p[l]+h;f[s]-=v,m[u]-=v}m[l]+=p[l]+h,f[1-s]+=m[d]+m[c]/2-p[c]/2,m[c]=Math.max(m[c],p[c]),m[d]=Math.min(m[d],p[d]+f[1-s]),a.x=f[0],a.y=f[1],a.markRedraw()}return m},t.prototype._layoutContentAndController=function(e,t,n,r,o,i,a,s){var l=this.getContentGroup(),u=this._containerGroup,c=this._controllerGroup;tf(e.get("orient"),l,e.get("itemGap"),r?n.width:null,r?null:n.height),tf("horizontal",c,e.get("pageButtonItemGap",!0));var d=l.getBoundingRect(),h=c.getBoundingRect(),p=this._showController=d[o]>n[o],f=[-d.x,-d.y];t||(f[r]=l[s]);var g=[0,0],m=[-h.x,-h.y],v=qe(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(p){var y=e.get("pageButtonPosition",!0);"end"===y?m[r]+=n[o]-h[o]:g[r]+=h[o]+v}m[1-r]+=d[i]/2-h[i]/2,l.setPosition(f),u.setPosition(g),c.setPosition(m);var b={x:0,y:0};if(b[o]=p?n[o]:d[o],b[i]=Math.max(d[i],h[i]),b[a]=Math.min(0,h[a]+m[1-r]),u.__rectSize=n[o],p){var _={x:0,y:0};_[o]=Math.max(n[o]-h[o]-v,0),_[i]=b[i],u.setClipPath(new Oc({shape:_})),u.__rectSize=_[o]}else c.eachChild((function(e){e.attr({invisible:!0,silent:!0})}));var x=this._getPageInfo(e);return null!=x.pageIndex&&ih(l,{x:x.contentPosition[0],y:x.contentPosition[1]},p?e:null),this._updatePageInfoView(e,x),b},t.prototype._pageGo=function(e,t,n){var r=this._getPageInfo(t)[e];null!=r&&n.dispatchAction({type:"legendScroll",scrollDataIndex:r,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;Me(["pagePrev","pageNext"],(function(r){var o=r+"DataIndex",i=null!=t[o],a=n.childOfName(r);a&&(a.setStyle("fill",i?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),a.cursor=i?"pointer":"default")}));var r=n.childOfName("pageText"),o=e.get("pageFormatter"),i=t.pageIndex,a=null!=i?i+1:0,s=t.pageCount;r&&o&&r.setStyle("text",Ve(o)?o.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):o({current:a,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get("scrollDataIndex",!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,o=e.getOrient().index,i=K0[o],a=J0[o],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[o]=-p.s;for(var f=s+1,g=p,m=p,v=null;f<=c;++f)v=y(l[f]),(!v&&m.e>g.s+r||v&&!b(v,g.s))&&(g=m.i>g.i?m:v,g&&(null==h.pageNextDataIndex&&(h.pageNextDataIndex=g.i),++h.pageCount)),m=v;for(f=s-1,g=p,m=p,v=null;f>=-1;--f)v=y(l[f]),v&&b(m,v.s)||!(g.i<m.i)||(m=g,null==h.pagePrevDataIndex&&(h.pagePrevDataIndex=g.i),++h.pageCount,++h.pageIndex),g=v;return h;function y(e){if(e){var t=e.getBoundingRect(),n=t[a]+e[a];return{s:n,e:n+t[i],i:e.__legendDataIndex}}}function b(e,t){return e.e>=t&&e.s<=t+r}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var t,n,r=this.getContentGroup();return r.eachChild((function(r,o){var i=r.__legendDataIndex;null==n&&null!=i&&(n=o),i===e&&(t=o)})),null!=t?t:n},t.type="legend.scroll",t}(F0),t1=e1;function n1(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 r1(e){dS(G0),e.registerComponentModel(Y0),e.registerComponentView(t1),n1(e)}function o1(e){dS(G0),dS(r1)}var i1=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Q(t,e),t.type="dataZoom.inside",t.defaultOption=Gh(mY.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(mY),a1=i1,s1=Xs();function l1(e,t,n){s1(e).coordSysRecordMap.each((function(e){var r=e.dataZoomInfoMap.get(t.uid);r&&(r.getRange=n)}))}function u1(e,t){for(var n=s1(e).coordSysRecordMap,r=n.keys(),o=0;o<r.length;o++){var i=r[o],a=n.get(i),s=a.dataZoomInfoMap;if(s){var l=t.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||c1(n,a))}}}function c1(e,t){if(t){e.removeKey(t.model.uid);var n=t.controller;n&&n.dispose()}}function d1(e,t){var n={model:t,containsPoint:Ne(p1,t),dispatchAction:Ne(h1,e),dataZoomInfoMap:null,controller:null},r=n.controller=new vD(e.getZr());return Me(["pan","zoom","scrollMove"],(function(e){r.on(e,(function(t){var r=[];n.dataZoomInfoMap.each((function(o){if(t.isAvailableBehavior(o.model.option)){var i=(o.getRange||{})[e],a=i&&i(o.dzReferCoordSysInfo,n.model.mainType,n.controller,t);!o.model.get("disabled",!0)&&a&&r.push({dataZoomId:o.model.id,start:a[0],end:a[1]})}})),r.length&&n.dispatchAction(r)}))})),n}function h1(e,t){e.isDisposed()||e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function p1(e,t,n,r){return e.coordinateSystem.containPoint([n,r])}function f1(e){var t,n="type_",r={type_true:2,type_move:1,type_false:0,type_undefined:-1},o=!0;return e.each((function(e){var i=e.model,a=!i.get("disabled",!0)&&(!i.get("zoomLock",!0)||"move");r[n+a]>r[n+t]&&(t=a),o=o&&i.get("preventDefaultMouseMove",!0)})),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o}}}function g1(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,(function(e,t){var n=s1(t),r=n.coordSysRecordMap||(n.coordSysRecordMap=ct());r.each((function(e){e.dataZoomInfoMap=null})),e.eachComponent({mainType:"dataZoom",subType:"inside"},(function(e){var n=hY(e);Me(n.infoList,(function(n){var o=n.model.uid,i=r.get(o)||r.set(o,d1(t,n.model)),a=i.dataZoomInfoMap||(i.dataZoomInfoMap=ct());a.set(e.uid,{dzReferCoordSysInfo:n,model:e,getRange:null})}))})),r.each((function(e){var t,n=e.controller,o=e.dataZoomInfoMap;if(o){var i=o.keys()[0];null!=i&&(t=o.get(i))}if(t){var a=f1(o);n.enable(a.controlType,a.opt),n.setPointerChecker(e.containsPoint),g_(e,"dispatchAction",t.model.get("throttle",!0),"fixRate")}else c1(r,e)}))}))}var m1=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return Q(t,e),t.prototype.render=function(t,n,r){e.prototype.render.apply(this,arguments),t.noTarget()?this._clear():(this.range=t.getPercentRange(),l1(r,t,{pan:Re(v1.pan,this),zoom:Re(v1.zoom,this),scrollMove:Re(v1.scrollMove,this)}))},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){u1(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(_Y),v1={zoom:function(e,t,n,r){var o=this.range,i=o.slice(),a=e.axisModels[0];if(a){var s=b1[t](null,[r.originX,r.originY],a,n,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/r.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return ZB(0,i,[0,100],0,c.minSpan,c.maxSpan),this.range=i,o[0]!==i[0]||o[1]!==i[1]?i:void 0}},pan:y1((function(e,t,n,r,o,i){var a=b1[r]([i.oldX,i.oldY],[i.newX,i.newY],t,o,n);return a.signal*(e[1]-e[0])*a.pixel/a.pixelLength})),scrollMove:y1((function(e,t,n,r,o,i){var a=b1[r]([0,0],[i.scrollDelta,i.scrollDelta],t,o,n);return a.signal*(e[1]-e[0])*i.scrollDelta}))};function y1(e){return function(t,n,r,o){var i=this.range,a=i.slice(),s=t.axisModels[0];if(s){var l=e(a,s,t,n,r,o);return ZB(l,a,[0,100],"all"),this.range=a,i[0]!==a[0]||i[1]!==a[1]?a:void 0}}}var b1={grid:function(e,t,n,r,o){var i=n.axis,a={},s=o.model.coordinateSystem.getRect();return e=e||[0,0],"x"===i.dim?(a.pixel=t[0]-e[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=i.inverse?1:-1):(a.pixel=t[1]-e[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=i.inverse?-1:1),a},polar:function(e,t,n,r,o){var i=n.axis,a={},s=o.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=i.inverse?1:-1):(a.pixel=t[1]-e[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=i.inverse?-1:1),a},singleAxis:function(e,t,n,r,o){var i=n.axis,a=o.model.coordinateSystem.getRect(),s={};return e=e||[0,0],"horizontal"===i.orient?(s.pixel=t[0]-e[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=i.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=i.inverse?-1:1),s}},_1=m1;function x1(e){$Y(e),e.registerComponentModel(a1),e.registerComponentView(_1),g1(e)}var w1=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Q(t,e),t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=Gh(mY.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}(mY),O1=w1,S1=Oc,A1=7,k1=1,C1=30,M1=7,T1="horizontal",P1="vertical",I1=5,$1=["line","bar","candlestick","scatter"],E1={easing:"cubicOut",duration:100,delay:0},D1=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return Q(t,e),t.prototype.init=function(e,t){this.api=t,this._onBrush=Re(this._onBrush,this),this._onBrushEnd=Re(this._onBrushEnd,this)},t.prototype.render=function(t,n,r,o){if(e.prototype.render.apply(this,arguments),g_(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),!1!==t.get("show")){if(t.noTarget())return this._clear(),void this.group.removeAll();o&&"dataZoom"===o.type&&o.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(){m_(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 Da;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"),r=n?M1:0,o=this._findCoordRect(),i={width:t.getWidth(),height:t.getHeight()},a=this._orient===T1?{right:i.width-o.x-o.width,top:i.height-C1-A1-r,width:o.width,height:C1}:{right:A1,top:o.y,width:C1,height:o.height},s=uf(e.option);Me(["right","top","width","height"],(function(e){"ph"===s[e]&&(s[e]=a[e])}));var l=rf(s,i);this._location={x:l.x,y:l.y},this._size=[l.width,l.height],this._orient===P1&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,t=this._location,n=this._orient,r=this.dataZoomModel.getFirstTargetAxisModel(),o=r&&r.get("inverse"),i=this._displayables.sliderGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;i.attr(n!==T1||o?n===T1&&o?{scaleY:a?1:-1,scaleX:-1}:n!==P1||o?{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([i]);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,r=e.get("brushSelect");n.add(new S1({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var o=new S1({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:"transparent"},z2:0,onclick:Re(this._onClickPanel,this)}),i=this.api.getZr();r?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",i.on("mousemove",this._onBrush),i.on("mouseup",this._onBrushEnd)):(i.off("mousemove",this._onBrush),i.off("mouseup",this._onBrushEnd)),n.add(o)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],e){var t=this._size,n=this._shadowSize||[],r=e.series,o=r.getRawData(),i=r.getShadowDim&&r.getShadowDim(),a=i&&o.getDimensionInfo(i)?r.getShadowDim():e.otherDim;if(null!=a){var s=this._shadowPolygonPts,l=this._shadowPolylinePts;if(o!==this._shadowData||a!==this._shadowDim||t[0]!==n[0]||t[1]!==n[1]){var u=o.getDataExtent(a),c=.3*(u[1]-u[0]);u=[u[0]-c,u[1]+c];var d,h=[0,t[1]],p=[0,t[0]],f=[[t[0],0],[0,0]],g=[],m=p[1]/(o.count()-1),v=0,y=Math.round(o.count()/t[0]);o.each([a],(function(e,t){if(y>0&&t%y)v+=m;else{var n=null==e||isNaN(e)||""===e,r=n?0:Ka(e,u,h,!0);n&&!d&&t?(f.push([f[f.length-1][0],0]),g.push([g[g.length-1][0],0])):!n&&d&&(f.push([v,0]),g.push([v,0])),f.push([v,r]),g.push([v,r]),v+=m,d=n}})),s=this._shadowPolygonPts=f,l=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=a,this._shadowSize=[t[0],t[1]];for(var b=this.dataZoomModel,_=0;_<3;_++){var x=w(1===_);this._displayables.sliderGroup.add(x),this._displayables.dataShadowSegs.push(x)}}}function w(e){var t=b.getModel(e?"selectedDataBackground":"dataBackground"),n=new Da,r=new Hy({shape:{points:s},segmentIgnoreThreshold:1,style:t.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),o=new Xy({shape:{points:l},segmentIgnoreThreshold:1,style:t.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(r),n.add(o),n}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,t=e.get("showDataShadow");if(!1!==t){var n,r=this.ecModel;return e.eachTargetAxis((function(o,i){var a=e.getAxisProxy(o,i).getTargetSeriesModels();Me(a,(function(e){if(!n&&!(!0!==t&&Se($1,e.get("type"))<0)){var a,s=r.getComponent(cY(o),i).axis,l=R1(o),u=e.coordinateSystem;null!=l&&u.getOtherAxis&&(a=u.getOtherAxis(s).inverse),l=e.getData().mapDimension(l),n={thisAxis:s,series:e,thisDim:o,otherDim:l,otherAxisInverse:a}}}),this)}),this),n}},t.prototype._renderHandle=function(){var e=this.group,t=this._displayables,n=t.handles=[null,null],r=t.handleLabels=[null,null],o=this._displayables.sliderGroup,i=this._size,a=this.dataZoomModel,s=this.api,l=a.get("borderRadius")||0,u=a.get("brushSelect"),c=t.filler=new S1({silent:u,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});o.add(c),o.add(new S1({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:i[0],height:i[1],r:l},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:k1,fill:"rgba(0,0,0,0)"}})),Me([0,1],(function(t){var i=a.get("handleIcon");!_x[i]&&i.indexOf("path://")<0&&i.indexOf("image://")<0&&(i="path://"+i);var s=Sx(i,-1,0,2,2,null,!0);s.attr({cursor:N1(this._orient),draggable:!0,drift:Re(this._onDragMove,this,t),ondragend:Re(this._onDragEnd,this),onmouseover:Re(this._showDataInfo,this,!0),onmouseout:Re(this._showDataInfo,this,!1),z2:5});var l=s.getBoundingRect(),u=a.get("handleSize");this._handleHeight=Ja(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(),Qd(s);var c=a.get("handleColor");null!=c&&(s.style.fill=c),o.add(n[t]=s);var d=a.getModel("textStyle");e.add(r[t]=new jc({silent:!0,invisible:!0,style:yh(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=Ja(a.get("moveHandleSize"),i[1]),p=t.moveHandle=new Oc({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:i[1]-.5,height:h}}),f=.8*h,g=t.moveHandleIcon=Sx(a.get("moveHandleIcon"),-f/2,-f/2,f,f,"#fff",!0);g.silent=!0,g.y=i[1]+h/2-.5,p.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(i[1]/2,Math.max(h,10));d=t.moveZone=new Oc({invisible:!0,shape:{y:i[1]-m,height:h+m}}),d.on("mouseover",(function(){s.enterEmphasis(p)})).on("mouseout",(function(){s.leaveEmphasis(p)})),o.add(p),o.add(g),o.add(d)}d.attr({draggable:!0,cursor:N1(this._orient),drift:Re(this._onDragMove,this,"all"),ondragstart:Re(this._showDataInfo,this,!0),ondragend:Re(this._onDragEnd,this),onmouseover:Re(this._showDataInfo,this,!0),onmouseout:Re(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[Ka(e[0],[0,100],t,!0),Ka(e[1],[0,100],t,!0)]},t.prototype._updateInterval=function(e,t){var n=this.dataZoomModel,r=this._handleEnds,o=this._getViewExtent(),i=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];ZB(t,r,o,n.get("zoomLock")?"all":e,null!=i.minSpan?Ka(i.minSpan,a,o,!0):null,null!=i.maxSpan?Ka(i.maxSpan,a,o,!0):null);var s=this._range,l=this._range=ts([Ka(r[0],o,a,!0),Ka(r[1],o,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},t.prototype._updateView=function(e){var t=this._displayables,n=this._handleEnds,r=ts(n.slice()),o=this._size;Me([0,1],(function(e){var r=t.handles[e],i=this._handleHeight;r.attr({scaleX:i/2,scaleY:i/2,x:n[e]+(e?-1:1),y:o[1]/2-i/2})}),this),t.filler.setShape({x:r[0],y:0,width:r[1]-r[0],height:o[1]});var i={x:r[0],width:r[1]-r[0]};t.moveHandle&&(t.moveHandle.setShape(i),t.moveZone.setShape(i),t.moveZone.getBoundingRect(),t.moveHandleIcon&&t.moveHandleIcon.attr("x",i.x+i.width/2));for(var a=t.dataShadowSegs,s=[0,r[0],r[1],o[0]],l=0;l<a.length;l++){var u=a[l],c=u.getClipPath();c||(c=new Oc,u.setClipPath(c)),c.setShape({x:s[l],y:0,width:s[l+1]-s[l],height:o[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var t=this.dataZoomModel,n=this._displayables,r=n.handleLabels,o=this._orient,i=["",""];if(t.get("showDetail")){var a=t.findRepresentativeAxisProxy();if(a){var s=a.getAxisModel().axis,l=this._range,u=e?a.calculateDataWindow({start:l[0],end:l[1]}).valueWindow:a.getDataValueWindow();i=[this._formatLabel(u[0],s),this._formatLabel(u[1],s)]}}var c=ts(this._handleEnds.slice());function d(e){var t=Bb(n.handles[e].parent,this.group),a=Qb(0===e?"right":"left",t),s=this._handleWidth/2+I1,l=jb([c[e]+(0===e?-s:s),this._size[1]/2],t);r[e].setStyle({x:l[0],y:l[1],verticalAlign:o===T1?"middle":a,align:o===T1?a:"center",text:i[e]})}d.call(this,0),d.call(this,1)},t.prototype._formatLabel=function(e,t){var n=this.dataZoomModel,r=n.get("labelFormatter"),o=n.get("labelPrecision");null!=o&&"auto"!==o||(o=t.getPixelPrecision());var i=null==e||isNaN(e)?"":"category"===t.type||"time"===t.type?t.scale.getLabel({value:Math.round(e)}):e.toFixed(Math.min(o,20));return ze(r)?r(e,i):Ve(r)?r.replace("{value}",i):i},t.prototype._showDataInfo=function(e){e=this._dragging||e;var t=this._displayables,n=t.handleLabels;n[0].attr("invisible",!e),n[1].attr("invisible",!e),t.moveHandle&&this.api[e?"enterEmphasis":"leaveEmphasis"](t.moveHandle,1)},t.prototype._onDragMove=function(e,t,n,r){this._dragging=!0,vn(r.event);var o=this._displayables.sliderGroup.getLocalTransform(),i=jb([t,n],o,!0),a=this._updateInterval(e,i[0]),s=this.dataZoomModel.get("realtime");this._updateView(!s),a&&s&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var e=this.dataZoomModel.get("realtime");!e&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var t=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(n[0]<0||n[0]>t[0]||n[1]<0||n[1]>t[1])){var r=this._handleEnds,o=(r[0]+r[1])/2,i=this._updateInterval("all",n[0]-o);this._updateView(),i&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var t=e.offsetX,n=e.offsetY;this._brushStart=new En(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,r=+new Date;if(!(r-this._brushStartTime<200&&Math.abs(n.width)<5)){var o=this._getViewExtent(),i=[0,100];this._range=ts([Ka(n.x,o,i,!0),Ka(n.x+n.width,o,i,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(vn(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,t){var n=this._displayables,r=this.dataZoomModel,o=n.brushRect;o||(o=n.brushRect=new S1({silent:!0,style:r.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o)),o.attr("ignore",!1);var i=this._brushStart,a=this._displayables.sliderGroup,s=a.transformCoordToLocal(e,t),l=a.transformCoordToLocal(i.x,i.y),u=this._size;s[0]=Math.max(Math.min(u[0],s[0]),0),o.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?E1:null,start:t[0],end:t[1]})},t.prototype._findCoordRect=function(){var e,t=hY(this.dataZoomModel).infoList;if(!e&&t.length){var n=t[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var r=this.api.getWidth(),o=this.api.getHeight();e={x:.2*r,y:.2*o,width:.6*r,height:.6*o}}return e},t.type="dataZoom.slider",t}(_Y);function R1(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function N1(e){return"vertical"===e?"ns-resize":"ew-resize"}var L1=D1;function z1(e){e.registerComponentModel(O1),e.registerComponentView(L1),$Y(e)}function V1(e){dS(x1),dS(z1)}var B1={get:function(e,t,n){var r=ye((j1[e]||{})[t]);return n&&Le(r)?r[r.length-1]:r}},j1={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]}},Q1=B1,F1=JL.mapVisual,W1=JL.eachVisual,H1=Le,Z1=Me,G1=ts,X1=Ka,U1=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 Q(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&EK(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=Re(e,this),this.controllerVisuals=$K(this.option.controller,t,e),this.targetVisuals=$K(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=ks(e),t},t.prototype.eachTargetSeries=function(e,t){Me(this.getTargetSeriesIndices(),(function(n){var r=this.ecModel.getSeriesByIndex(n);r&&e.call(t,r)}),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 r,o=this.option,i=o.precision,a=this.dataBound,s=o.formatter;n=n||["<",">"],Le(e)&&(e=e.slice(),r=!0);var l=t?e:r?[u(e[0]),u(e[1])]:u(e);return Ve(s)?s.replace("{value}",r?l[0]:l).replace("{value2}",r?l[1]:l):ze(s)?r?s(e[0],e[1]):s(e):r?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(i,20))}},t.prototype.resetExtent=function(){var e=this.option,t=G1([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,r=n.length-1;r>=0;r--){var o=n[r],i=e.getDimensionInfo(o);if(!i.isCalculationCoord)return i.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},r=t.target||(t.target={}),o=t.controller||(t.controller={});be(r,n),be(o,n);var i=this.isCategory();function a(n){H1(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 r=e[t],o=e[n];r&&!o&&(o=e[n]={},Z1(r,(function(e,t){if(JL.isValidType(t)){var n=Q1.get(t,"inactive",i);null!=n&&(o[t]=n,"color"!==t||o.hasOwnProperty("opacity")||o.hasOwnProperty("colorAlpha")||(o.opacity=[0,0]))}})))}function l(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,r=this.get("inactiveColor"),o=this.getItemSymbol(),a=o||"roundRect";Z1(this.stateList,(function(o){var s=this.itemSize,l=e[o];l||(l=e[o]={color:i?r:[r]}),null==l.symbol&&(l.symbol=t&&ye(t)||(i?a:[a])),null==l.symbolSize&&(l.symbolSize=n&&ye(n)||(i?s[0]:[s[0],s[0]])),l.symbol=F1(l.symbol,(function(e){return"none"===e?a:e}));var u=l.symbolSize;if(null!=u){var c=-1/0;W1(u,(function(e){e>c&&(c=e)})),l.symbolSize=F1(u,(function(e){return X1(e,[0,c],[0,s[0]],!0)}))}}),this)}a.call(this,r),a.call(this,o),s.call(this,r,"inRange","outOfRange"),l.call(this,o)},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}(ff),Y1=U1,q1=[20,140],K1=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Q(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]=q1[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=q1[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):Le(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),Me(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=ts((this.get("range")||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]<e[0]&&(t[0]=e[0]),t[1]<e[0]&&(t[1]=e[0]),t},t.prototype.getValueState=function(e){var t=this.option.range,n=this.getExtent();return(t[0]<=n[0]||t[0]<=e)&&(t[1]>=n[1]||e<=t[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries((function(n){var r=[],o=n.getData();o.each(this.getDataDimensionIndex(o),(function(t,n){e[0]<=t&&t<=e[1]&&r.push(n)}),this),t.push({seriesId:n.id,dataIndex:r})}),this),t},t.prototype.getVisualMeta=function(e){var t=J1(this,"outOfRange",this.getExtent()),n=J1(this,"inRange",this.option.range.slice()),r=[];function o(t,n){r.push({value:t,color:e(t,n)})}for(var i=0,a=0,s=n.length,l=t.length;a<l&&(!n.length||t[a]<=n[0]);a++)t[a]<n[i]&&o(t[a],"outOfRange");for(var u=1;i<s;i++,u=0)u&&r.length&&o(n[i],"outOfRange"),o(n[i],"inRange");for(u=1;a<l;a++)(!n.length||n[n.length-1]<t[a])&&(u&&(r.length&&o(r[r.length-1].value,"outOfRange"),u=0),o(t[a],"outOfRange"));var c=r.length;return{stops:r,outerColors:[c?r[0].color:"transparent",c?r[c-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=Gh(Y1.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),t}(Y1);function J1(e,t,n){if(n[0]===n[1])return n.slice();for(var r=200,o=(n[1]-n[0])/r,i=n[0],a=[],s=0;s<=r&&i<n[1];s++)a.push(i),i+=o;return a.push(n[1]),a}var e2=K1,t2=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return Q(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t},t.prototype.render=function(e,t,n,r){this.visualMapModel=e,!1!==e.get("show")?this.doRender(e,t,n,r):this.group.removeAll()},t.prototype.renderBackground=function(e){var t=this.visualMapModel,n=Bp(t.get("padding")||0),r=e.getBoundingRect();e.add(new Oc({z2:-1,silent:!0,shape:{x:r.x-n[3],y:r.y-n[0],width:r.width+n[3]+n[1],height:r.height+n[0]+n[2]},style:{fill:t.get("backgroundColor"),stroke:t.get("borderColor"),lineWidth:t.get("borderWidth")}}))},t.prototype.getControllerVisual=function(e,t,n){n=n||{};var r=n.forceState,o=this.visualMapModel,i={};if("color"===t){var a=o.get("contentColor");i.color=a}function s(e){return i[e]}function l(e,t){i[e]=t}var u=o.controllerVisuals[r||o.getValueState(e)],c=JL.prepareVisualTypes(u);return Me(c,(function(r){var o=u[r];n.convertOpacityToAlpha&&"opacity"===r&&(r="colorAlpha",o=u.__alphaForOpacity),JL.dependsOn(r,t)&&o&&o.applyVisual(e,s,l)})),i[t]},t.prototype.positionGroup=function(e){var t=this.visualMapModel,n=this.api;of(e,t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},t.prototype.doRender=function(e,t,n,r){},t.type="visualMap",t}(Fv),n2=t2,r2=[["left","right","width"],["top","bottom","height"]];function o2(e,t,n){var r=e.option,o=r.align;if(null!=o&&"auto"!==o)return o;for(var i={width:t.getWidth(),height:t.getHeight()},a="horizontal"===r.orient?1:0,s=r2[a],l=[0,null,10],u={},c=0;c<3;c++)u[r2[1-a][c]]=l[c],u[s[c]]=2===c?n[0]:r[s[c]];var d=[["x","width",3],["y","height",0]][a],h=rf(u,i,r.padding);return s[(h.margin[d[2]]||0)+h[d[0]]+.5*h[d[1]]<.5*i[d[1]]?0:1]}function i2(e,t){return Me(e||[],(function(e){null!=e.dataIndex&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")})),e}var a2=Ka,s2=Me,l2=Math.min,u2=Math.max,c2=12,d2=6,h2=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return Q(t,e),t.prototype.init=function(t,n){e.prototype.init.call(this,t,n),this._hoverLinkFromSeriesMouseOver=Re(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=Re(this._hideIndicator,this)},t.prototype.doRender=function(e,t,n,r){r&&"selectDataRange"===r.type&&r.from===this.uid||this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var e=this.visualMapModel,t=this.group;this._orient=e.get("orient"),this._useHandle=e.get("calculable"),this._resetInterval(),this._renderBar(t);var n=e.get("text");this._renderEndsText(t,n,0),this._renderEndsText(t,n,1),this._updateView(!0),this.renderBackground(t),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(t)},t.prototype._renderEndsText=function(e,t,n){if(t){var r=t[1-n];r=null!=r?r+"":"";var o=this.visualMapModel,i=o.get("textGap"),a=o.itemSize,s=this._shapes.mainGroup,l=this._applyTransform([a[0]/2,0===n?-i:a[1]+i],s),u=this._applyTransform(0===n?"bottom":"top",s),c=this._orient,d=this.visualMapModel.textStyleModel;this.group.add(new jc({style:yh(d,{x:l[0],y:l[1],verticalAlign:"horizontal"===c?"middle":u,align:"horizontal"===c?u:"center",text:r})}))}},t.prototype._renderBar=function(e){var t=this.visualMapModel,n=this._shapes,r=t.itemSize,o=this._orient,i=this._useHandle,a=o2(t,this.api,r),s=n.mainGroup=this._createBarGroup(a),l=new Da;s.add(l),l.add(n.outOfRange=p2()),l.add(n.inRange=p2(null,i?m2(this._orient):null,Re(this._dragHandle,this,"all",!1),Re(this._dragHandle,this,"all",!0))),l.setClipPath(new Oc({shape:{x:0,y:0,width:r[0],height:r[1],r:3}}));var u=t.textStyleModel.getTextRect("国"),c=u2(u.width,u.height);i&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(t,s,0,r,c,o),this._createHandle(t,s,1,r,c,o)),this._createIndicator(t,s,r,c,o),e.add(s)},t.prototype._createHandle=function(e,t,n,r,o,i){var a=Re(this._dragHandle,this,n,!1),s=Re(this._dragHandle,this,n,!0),l=va(e.get("handleSize"),r[0]),u=Sx(e.get("handleIcon"),-l/2,-l/2,l,l,null,!0),c=m2(this._orient);u.attr({cursor:c,draggable:!0,drift:a,ondragend:s,onmousemove:function(e){vn(e.event)}}),u.x=r[0]/2,u.useStyle(e.getModel("handleStyle").getItemStyle()),u.setStyle({strokeNoScale:!0,strokeFirst:!0}),u.style.lineWidth*=2,u.ensureState("emphasis").style=e.getModel(["emphasis","handleStyle"]).getItemStyle(),Ud(u,!0),t.add(u);var d=this.visualMapModel.textStyleModel,h=new jc({cursor:c,draggable:!0,drift:a,onmousemove:function(e){vn(e.event)},ondragend:s,style:yh(d,{x:0,y:0,text:""})});h.ensureState("blur").style={opacity:.1},h.stateTransition={duration:200},this.group.add(h);var p=[l,0],f=this._shapes;f.handleThumbs[n]=u,f.handleLabelPoints[n]=p,f.handleLabels[n]=h},t.prototype._createIndicator=function(e,t,n,r,o){var i=va(e.get("indicatorSize"),n[0]),a=Sx(e.get("indicatorIcon"),-i/2,-i/2,i,i,null,!0);a.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var s=e.getModel("indicatorStyle").getItemStyle();if(a instanceof fc){var l=a.style;a.useStyle(xe({image:l.image,x:l.x,y:l.y,width:l.width,height:l.height},s))}else a.useStyle(s);t.add(a);var u=this.visualMapModel.textStyleModel,c=new jc({silent:!0,invisible:!0,style:yh(u,{x:0,y:0,text:""})});this.group.add(c);var d=[("horizontal"===o?r/2:d2)+n[0]/2,0],h=this._shapes;h.indicator=a,h.indicatorLabel=c,h.indicatorLabelPoint=d,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,t,n,r){if(this._useHandle){if(this._dragging=!t,!t){var o=this._applyTransform([n,r],this._shapes.mainGroup,!0);this._updateInterval(e,o[1]),this._hideIndicator(),this._updateView()}t===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),t?!this._hovering&&this._clearHoverLinkToSeries():g2(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},t.prototype._resetInterval=function(){var e=this.visualMapModel,t=this._dataInterval=e.getSelected(),n=e.getExtent(),r=[0,e.itemSize[1]];this._handleEnds=[a2(t[0],n,r,!0),a2(t[1],n,r,!0)]},t.prototype._updateInterval=function(e,t){t=t||0;var n=this.visualMapModel,r=this._handleEnds,o=[0,n.itemSize[1]];ZB(t,r,o,e,0);var i=n.getExtent();this._dataInterval=[a2(r[0],o,i,!0),a2(r[1],o,i,!0)]},t.prototype._updateView=function(e){var t=this.visualMapModel,n=t.getExtent(),r=this._shapes,o=[0,t.itemSize[1]],i=e?o:this._handleEnds,a=this._createBarVisual(this._dataInterval,n,i,"inRange"),s=this._createBarVisual(n,n,o,"outOfRange");r.inRange.setStyle({fill:a.barColor}).setShape("points",a.barPoints),r.outOfRange.setStyle({fill:s.barColor}).setShape("points",s.barPoints),this._updateHandle(i,a)},t.prototype._createBarVisual=function(e,t,n,r){var o={forceState:r,convertOpacityToAlpha:!0},i=this._makeColorGradient(e,o),a=[this.getControllerVisual(e[0],"symbolSize",o),this.getControllerVisual(e[1],"symbolSize",o)],s=this._createBarPoints(n,a);return{barColor:new hb(0,0,0,1,i),barPoints:s,handlesColor:[i[0].color,i[i.length-1].color]}},t.prototype._makeColorGradient=function(e,t){var n=100,r=[],o=(e[1]-e[0])/n;r.push({color:this.getControllerVisual(e[0],"color",t),offset:0});for(var i=1;i<n;i++){var a=e[0]+o*i;if(a>e[1])break;r.push({color:this.getControllerVisual(a,"color",t),offset:i/n})}return r.push({color:this.getControllerVisual(e[1],"color",t),offset:1}),r},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 Da("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,r=this.visualMapModel,o=n.handleThumbs,i=n.handleLabels,a=r.itemSize,s=r.getExtent();s2([0,1],(function(l){var u=o[l];u.setStyle("fill",t.handlesColor[l]),u.y=e[l];var c=a2(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=jb(n.handleLabelPoints[l],Bb(u,this.group));i[l].setStyle({x:h[0],y:h[1],text:r.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this)}},t.prototype._showIndicator=function(e,t,n,r){var o=this.visualMapModel,i=o.getExtent(),a=o.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=a2(e,i,s,!0),f=a[0]-h/2,g={x:u.x,y:u.y};u.y=p,u.x=f;var m=jb(l.indicatorLabelPoint,Bb(u,this.group)),v=l.indicatorLabel;v.attr("invisible",!1);var y=this._applyTransform("left",l.mainGroup),b=this._orient,_="horizontal"===b;v.setStyle({text:(n||"")+o.formatValueText(t),verticalAlign:_?y:"middle",align:_?"center":y});var x={x:f,y:p,style:{fill:d}},w={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var O={duration:100,easing:"cubicInOut",additive:!0};u.x=g.x,u.y=g.y,u.animateTo(x,O),v.animateTo(w,O)}else u.attr(x),v.attr(w);this._firstShowIndicator=!1;var S=this._shapes.handleLabels;if(S)for(var A=0;A<S.length;A++)this.api.enterBlur(S[A])}},t.prototype._enableHoverLinkToSeries=function(){var e=this;this._shapes.mainGroup.on("mousemove",(function(t){if(e._hovering=!0,!e._dragging){var n=e.visualMapModel.itemSize,r=e._applyTransform([t.offsetX,t.offsetY],e._shapes.mainGroup,!0,!0);r[1]=l2(u2(0,r[1]),n[1]),e._doHoverLinkToSeries(r[1],0<=r[0]&&r[0]<=n[0])}})).on("mouseout",(function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()}))},t.prototype._enableHoverLinkFromSeries=function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),e.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(e,t){var n=this.visualMapModel,r=n.itemSize;if(n.option.hoverLink){var o=[0,r[1]],i=n.getExtent();e=l2(u2(o[0],e),o[1]);var a=f2(n,i,o),s=[e-a,e+a],l=a2(e,o,i,!0),u=[a2(s[0],o,i,!0),a2(s[1],o,i,!0)];s[0]<o[0]&&(u[0]=-1/0),s[1]>o[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||g2(n))&&(d=this._hoverLinkDataIndices=n.findTargetDataIndices(u));var h=Zs(c,d);this._dispatchHighDown("downplay",i2(h[0],n)),this._dispatchHighDown("highlight",i2(h[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t;if(ux(e.target,(function(e){var n=Qc(e);if(null!=n.dataIndex)return t=n,!0}),!0),t){var n=this.ecModel.getSeriesByIndex(t.seriesIndex),r=this.visualMapModel;if(r.isTargetSeries(n)){var o=n.getData(t.dataType),i=o.getStore().get(r.getDataDimensionIndex(o),t.dataIndex);isNaN(i)||this._showIndicator(i,i)}}},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<t.length;n++)this.api.leaveBlur(t[n])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",i2(e,this.visualMapModel)),e.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var e=this.api.getZr();e.off("mouseover",this._hoverLinkFromSeriesMouseOver),e.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(e,t,n,r){var o=Bb(t,r?null:this.group);return Le(e)?jb(e,o,n):Qb(e,o,n)},t.prototype._dispatchHighDown=function(e,t){t&&t.length&&this.api.dispatchAction({type:e,batch:t})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}(n2);function p2(e,t,n,r){return new Hy({shape:{points:e},draggable:!!n,cursor:t,drift:n,onmousemove:function(e){vn(e.event)},ondragend:r})}function f2(e,t,n){var r=c2/2,o=e.get("hoverLinkDataSize");return o&&(r=a2(o,t,n,!0)/2),r}function g2(e){var t=e.get("hoverLinkOnHandle");return!!(null==t?e.get("realtime"):t)}function m2(e){return"vertical"===e?"ns-resize":"ew-resize"}var v2=h2,y2={type:"selectDataRange",event:"dataRangeSelected",update:"update"},b2=function(e,t){t.eachComponent({mainType:"visualMap",query:e},(function(t){t.setSelected(e.selected)}))},_2=[{createOnAllSeries:!0,reset:function(e,t){var n=[];return t.eachComponent("visualMap",(function(t){var r=e.pipelineContext;!t.isTargetSeries(e)||r&&r.large||n.push(RK(t.stateList,t.targetVisuals,Re(t.getValueState,t),t.getDataDimensionIndex(e.getData())))})),n}},{createOnAllSeries:!0,reset:function(e,t){var n=e.getData(),r=[];t.eachComponent("visualMap",(function(t){if(t.isTargetSeries(e)){var o=t.getVisualMeta(Re(x2,null,e,t))||{stops:[],outerColors:[]},i=t.getDataDimensionIndex(n);i>=0&&(o.dimension=i,r.push(o))}})),e.getData().setVisual("visualMeta",r)}}];function x2(e,t,n,r){for(var o=t.targetVisuals[r],i=JL.prepareVisualTypes(o),a={color:ox(e.getData(),"color")},s=0,l=i.length;s<l;s++){var u=i[s],c=o["opacity"===u?"__alphaForOpacity":u];c&&c.applyVisual(n,d,h)}return a.color;function d(e){return a[e]}function h(e,t){a[e]=t}}var w2=Me;function O2(e){var t=e&&e.visualMap;Le(t)||(t=t?[t]:[]),w2(t,(function(e){if(e){S2(e,"splitList")&&!S2(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var t=e.pieces;t&&Le(t)&&w2(t,(function(e){Qe(e)&&(S2(e,"start")&&!S2(e,"min")&&(e.min=e.start),S2(e,"end")&&!S2(e,"max")&&(e.max=e.end))}))}}))}function S2(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var A2=!1;function k2(e){A2||(A2=!0,e.registerSubTypeDefaulter("visualMap",(function(e){return e.categories||(e.pieces?e.pieces.length>0:e.splitNumber>0)&&!e.calculable?"piecewise":"continuous"})),e.registerAction(y2,b2),Me(_2,(function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)})),e.registerPreprocessor(O2))}function C2(e){e.registerComponentModel(e2),e.registerComponentView(v2),k2(e)}var M2=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return Q(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var r=this._mode=this._determineMode();this._pieceList=[],T2[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var o=this.option.categories;this.resetVisual((function(e,t){"categories"===r?(e.mappingMethod="category",e.categories=ye(o)):(e.dataExtent=this.getExtent(),e.mappingMethod="piecewise",e.pieceList=Te(this._pieceList,(function(e){return e=ye(e),"inRange"!==t&&(e.visual=null),e})))}))},t.prototype.completeVisualOption=function(){var t=this.option,n={},r=JL.listVisualTypes(),o=this.isCategory();function i(e,t,n){return e&&e[t]&&e[t].hasOwnProperty(n)}Me(t.pieces,(function(e){Me(r,(function(t){e.hasOwnProperty(t)&&(n[t]=1)}))})),Me(n,(function(e,n){var r=!1;Me(this.stateList,(function(e){r=r||i(t,e,n)||i(t.target,e,n)}),this),!r&&Me(this.stateList,(function(e){(t[e]||(t[e]={}))[n]=Q1.get(n,"inRange"===e?"active":"inactive",o)}))}),this),e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var n=this.option,r=this._pieceList,o=(t?n:e).selected||{};if(n.selected=o,Me(r,(function(e,t){var n=this.getSelectedMapKey(e);o.hasOwnProperty(n)||(o[n]=!0)}),this),"single"===n.selectedMode){var i=!1;Me(r,(function(e,t){var n=this.getSelectedMapKey(e);o[n]&&(i?o[n]=!1:i=!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=ye(e)},t.prototype.getValueState=function(e){var t=JL.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(r){var o=[],i=r.getData();i.each(this.getDataDimensionIndex(i),(function(t,r){var i=JL.findPieceIndex(t,n);i===e&&o.push(r)}),this),t.push({seriesId:r.id,dataIndex:o})}),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=["",""],r=this,o=this._pieceList.slice();if(o.length){var i=o[0].interval[0];i!==-1/0&&o.unshift({interval:[-1/0,i]}),i=o[o.length-1].interval[1],i!==1/0&&o.push({interval:[i,1/0]})}else o.push({interval:[-1/0,1/0]});var a=-1/0;return Me(o,(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(o,i){var a=r.getRepresentValue({interval:o});i||(i=r.getValueState(a));var s=e(a,i);o[0]===-1/0?n[0]=s:o[1]===1/0?n[1]=s:t.push({value:o[0],color:s},{value:o[1],color:s})}},t.type="visualMap.piecewise",t.defaultOption=Gh(Y1.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}(Y1),T2={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),r=this.getExtent(),o=t.splitNumber;o=Math.max(parseInt(o,10),1),t.splitNumber=o;var i=(r[1]-r[0])/o;while(+i.toFixed(n)!==i&&n<5)n++;t.precision=n,i=+i.toFixed(n),t.minOpen&&e.push({interval:[-1/0,r[0]],close:[0,0]});for(var a=0,s=r[0];a<o;s+=i,a++){var l=a===o-1?r[1]:s+i;e.push({interval:[s,l],close:[1,1]})}t.maxOpen&&e.push({interval:[r[1],1/0],close:[0,0]}),vs(e),Me(e,(function(e,t){e.index=t,e.text=this.formatValueText(e.interval)}),this)},categories:function(e){var t=this.option;Me(t.categories,(function(t){e.push({text:this.formatValueText(t,!0),value:t})}),this),P2(t,e)},pieces:function(e){var t=this.option;Me(t.pieces,(function(t,n){Qe(t)||(t={value:t});var r={text:"",index:n};if(null!=t.label&&(r.text=t.label),t.hasOwnProperty("value")){var o=r.value=t.value;r.interval=[o,o],r.close=[1,1]}else{for(var i=r.interval=[],a=r.close=[0,0],s=[1,0,1],l=[-1/0,1/0],u=[],c=0;c<2;c++){for(var d=[["gte","gt","min"],["lte","lt","max"]][c],h=0;h<3&&null==i[c];h++)i[c]=t[d[h]],a[c]=s[h],u[c]=2===h;null==i[c]&&(i[c]=l[c])}u[0]&&i[1]===1/0&&(a[0]=0),u[1]&&i[0]===-1/0&&(a[1]=0),i[0]===i[1]&&a[0]&&a[1]&&(r.value=i[0])}r.visual=JL.retrieveVisuals(t),e.push(r)}),this),P2(t,e),vs(e),Me(e,(function(e){var t=e.close,n=[["<","≤"][t[1]],[">","≥"][t[0]]];e.text=e.text||this.formatValueText(null!=e.value?e.value:e.interval,!1,n)}),this)}};function P2(e,t){var n=e.inverse;("vertical"===e.orient?!n:n)&&t.reverse()}var I2=M2,$2=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Q(t,e),t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get("textGap"),r=t.textStyleModel,o=r.getFont(),i=r.getTextColor(),a=this._getItemAlign(),s=t.itemSize,l=this._getViewData(),u=l.endsText,c=Ye(t.get("showLabel",!0),!u);u&&this._renderEndsText(e,u[0],s,c,a),Me(l.viewPieceList,(function(r){var l=r.piece,u=new Da;u.onclick=Re(this._onItemClick,this,l),this._enableHoverLink(u,r.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 jc({style:{x:"right"===a?-n:s[0]+n,y:s[1]/2,text:l.text,verticalAlign:"middle",align:a,font:o,fill:i,opacity:"outOfRange"===h?.5:1}}))}e.add(u)}),this),u&&this._renderEndsText(e,u[1],s,c,a),tf(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 r("highlight")})).on("mouseout",(function(){return r("downplay")}));var r=function(e){var r=n.visualMapModel;r.option.hoverLink&&n.api.dispatchAction({type:e,batch:i2(r.findTargetDataIndices(t),r)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if("vertical"===t.orient)return o2(e,this.api,e.itemSize);var n=t.align;return n&&"auto"!==n||(n="left"),n},t.prototype._renderEndsText=function(e,t,n,r,o){if(t){var i=new Da,a=this.visualMapModel.textStyleModel;i.add(new jc({style:yh(a,{x:r?"right"===o?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:r?o:"center",text:t})})),e.add(i)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=Te(e.getPieceList(),(function(e,t){return{piece:e,indexInModelPieceList:t}})),n=e.get("text"),r=e.get("orient"),o=e.get("inverse");return("horizontal"===r?o:!o)?t.reverse():n&&(n=n.slice().reverse()),{viewPieceList:t,endsText:n}},t.prototype._createItemSymbol=function(e,t,n){e.add(Sx(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,r=n.selectedMode;if(r){var o=ye(n.selected),i=t.getSelectedMapKey(e);"single"===r||!0===r?(o[i]=!0,Me(o,(function(e,t){o[t]=t===i}))):o[i]=!o[i],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t}(n2),E2=$2;function D2(e){e.registerComponentModel(I2),e.registerComponentView(E2),k2(e)}function R2(e){dS(C2),dS(D2)}var N2={label:{enabled:!0},decal:{show:!1}},L2=Xs(),z2={};function V2(e,t){var n=e.getModel("aria");if(n.get("enabled")){var r=ye(N2);be(r.label,e.getLocaleModel().get("aria"),!1),be(n.option,r,!1),o(),i()}function o(){var t=n.getModel("decal"),r=t.get("show");if(r){var o=ct();e.eachSeries((function(e){if(!e.isColorBySeries()){var t=o.get(e.type);t||(t={},o.set(e.type,t)),L2(e).scope=t}})),e.eachRawSeries((function(t){if(!e.isSeriesFiltered(t))if(ze(t.enableAriaDecal))t.enableAriaDecal();else{var n=t.getData();if(t.isColorBySeries()){var r=Hf(t.ecModel,t.name,z2,e.getSeriesCount()),o=n.getVisual("decal");n.setVisual("decal",u(o,r))}else{var i=t.getRawData(),a={},s=L2(t).scope;n.each((function(e){var t=n.getRawIndex(e);a[t]=e}));var l=i.count();i.each((function(e){var r=a[e],o=i.getName(e)||e+"",c=Hf(t.ecModel,o,s,l),d=n.getItemVisual(r,"decal");n.setItemVisual(r,"decal",u(d,c))}))}}function u(e,t){var n=e?xe(xe({},t),e):t;return n.dirty=!0,n}}))}}function i(){var r=t.getZr().dom;if(r){var o=e.getLocaleModel().get("aria"),i=n.getModel("label");if(i.option=we(i.option,o),i.get("enabled"))if(i.get("description"))r.setAttribute("aria-label",i.get("description"));else{var u,c=e.getSeriesCount(),d=i.get(["data","maxCount"])||10,h=i.get(["series","maxCount"])||10,p=Math.min(c,h);if(!(c<1)){var f=s();if(f){var g=i.get(["general","withTitle"]);u=a(g,{title:f})}else u=i.get(["general","withoutTitle"]);var m=[],v=c>1?i.get(["series","multiple","prefix"]):i.get(["series","single","prefix"]);u+=a(v,{seriesCount:c}),e.eachSeries((function(e,t){if(t<p){var n=void 0,r=e.get("name"),o=r?"withName":"withoutName";n=c>1?i.get(["series","multiple",o]):i.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=i.get(["data","partialData"]);n+=a(u,{displayCnt:d})}else n+=i.get(["data","allData"]);for(var h=i.get(["data","separator","middle"]),f=i.get(["data","separator","end"]),g=[],v=0;v<s.count();v++)if(v<d){var y=s.getName(v),b=s.getValues(v),_=i.get(["data",y?"withName":"withoutName"]);g.push(a(_,{name:y,value:b.join(h)}))}n+=g.join(h)+f,m.push(n)}}));var y=i.getModel(["series","multiple","separator"]),b=y.get("middle"),_=y.get("end");u+=m.join(b)+_,r.setAttribute("aria-label",u)}}}}function a(e,t){if(!Ve(e))return e;var n=e;return Me(t,(function(e,t){n=n.replace(new RegExp("\\{\\s*"+t+"\\s*\\}","g"),e)})),n}function s(){var t=e.get("title");return t&&t.length&&(t=t[0]),t&&t.text}function l(t){var n=e.getLocaleModel().get(["series","typeNames"]);return n[t]||n.chart}}function B2(e){if(e&&e.aria){var t=e.aria;null!=t.show&&(t.enabled=t.show),t.label=t.label||{},Me(["description","general","series","data"],(function(e){null!=t[e]&&(t.label[e]=t[e])}))}}function j2(e){e.registerPreprocessor(B2),e.registerVisual(e.PRIORITY.VISUAL.ARIA,V2)}var Q2={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},F2=function(){function e(e){var t=this._condVal=Ve(e)?new RegExp(e):Xe(e)?e:null;if(null==t){var n="";0,Sm(n)}}return e.prototype.evaluate=function(e){var t=typeof e;return Ve(t)?this._condVal.test(e):!!je(t)&&this._condVal.test(e+"")},e}(),W2=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),H2=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(!e[t].evaluate())return!1;return!0},e}(),Z2=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(e[t].evaluate())return!0;return!1},e}(),G2=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),X2=function(){function e(){}return e.prototype.evaluate=function(){for(var e=!!this.valueParser,t=this.getValue,n=t(this.valueGetterParam),r=e?this.valueParser(n):null,o=0;o<this.subCondList.length;o++)if(!this.subCondList[o].evaluate(e?r:n))return!1;return!0},e}();function U2(e,t){if(!0===e||!1===e){var n=new W2;return n.value=e,n}var r="";return J2(e)||Sm(r),e.and?Y2("and",e,t):e.or?Y2("or",e,t):e.not?q2(e,t):K2(e,t)}function Y2(e,t,n){var r=t[e],o="";Le(r)||Sm(o),r.length||Sm(o);var i="and"===e?new H2:new Z2;return i.children=Te(r,(function(e){return U2(e,n)})),i.children.length||Sm(o),i}function q2(e,t){var n=e.not,r="";J2(n)||Sm(r);var o=new G2;return o.child=U2(n,t),o.child||Sm(r),o}function K2(e,t){for(var n="",r=t.prepareGetValue(e),o=[],i=Ee(e),a=e.parser,s=a?Cm(a):null,l=0;l<i.length;l++){var u=i[l];if("parser"!==u&&!t.valueGetterAttrMap.get(u)){var c=ft(Q2,u)?Q2[u]:u,d=e[u],h=s?s(d):d,p=$m(c,h)||"reg"===c&&new F2(h);p||Sm(n),o.push(p)}}o.length||Sm(n);var f=new X2;return f.valueGetterParam=r,f.valueParser=s,f.getValue=t.getValue,f.subCondList=o,f}function J2(e){return Qe(e)&&!Ce(e)}var e5=function(){function e(e,t){this._cond=U2(e,t)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}();function t5(e,t){return new e5(e,t)}var n5={type:"echarts:filter",transform:function(e){for(var t,n=e.upstream,r=t5(e.config,{valueGetterAttrMap:ct({dimension:!0}),prepareGetValue:function(e){var t="",r=e.dimension;ft(e,"dimension")||Sm(t);var o=n.getDimensionInfo(r);return o||Sm(t),{dimIdx:o.index}},getValue:function(e){return n.retrieveValueFromItem(t,e.dimIdx)}}),o=[],i=0,a=n.count();i<a;i++)t=n.getRawDataItem(i),r.evaluate()&&o.push(t);return{data:o}}};var r5={type:"echarts:sort",transform:function(e){var t=e.upstream,n=e.config,r="",o=ks(n);o.length||Sm(r);var i=[];Me(o,(function(e){var n=e.dimension,o=e.order,a=e.parser,s=e.incomparable;if(null==n&&Sm(r),"asc"!==o&&"desc"!==o&&Sm(r),s&&"min"!==s&&"max"!==s){var l="";0,Sm(l)}if("asc"!==o&&"desc"!==o){var u="";0,Sm(u)}var c=t.getDimensionInfo(n);c||Sm(r);var d=a?Cm(a):null;a&&!d&&Sm(r),i.push({dimIdx:c.index,parser:d,comparator:new Pm(o,s)})}));var a=t.sourceFormat;a!==_f&&a!==xf&&Sm(r);for(var s=[],l=0,u=t.count();l<u;l++)s.push(t.getRawDataItem(l));return s.sort((function(e,n){for(var r=0;r<i.length;r++){var o=i[r],a=t.retrieveValueFromItem(e,o.dimIdx),s=t.retrieveValueFromItem(n,o.dimIdx);o.parser&&(a=o.parser(a),s=o.parser(s));var l=o.comparator.evaluate(a,s);if(0!==l)return l}return 0})),{data:s}}};function o5(e){e.registerTransform(n5),e.registerTransform(r5)}var i5=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataset",t}return Q(t,e),t.prototype.init=function(t,n,r){e.prototype.init.call(this,t,n,r),this._sourceManager=new rv(this),ov(this)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),ov(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:Af},t}(ff),a5=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataset",t}return Q(t,e),t.type="dataset",t}(Fv);function s5(e){e.registerComponentModel(i5),e.registerComponentView(a5)}var l5=Du.CMD;function u5(e,t){return Math.abs(e-t)<1e-5}function c5(e){var t,n,r,o,i,a=e.data,s=e.len(),l=[],u=0,c=0,d=0,h=0;function p(e,n){t&&t.length>2&&l.push(t),t=[e,n]}function f(e,n,r,o){u5(e,r)&&u5(n,o)||t.push(e,n,r,o,r,o)}function g(e,n,r,o,i,a){var s=Math.abs(n-e),l=4*Math.tan(s/4)/3,u=n<e?-1:1,c=Math.cos(e),d=Math.sin(e),h=Math.cos(n),p=Math.sin(n),f=c*i+r,g=d*a+o,m=h*i+r,v=p*a+o,y=i*l*u,b=a*l*u;t.push(f-y*d,g+b*c,m+y*p,v-b*h,m,v)}for(var m=0;m<s;){var v=a[m++],y=1===m;switch(y&&(u=a[m],c=a[m+1],d=u,h=c,v!==l5.L&&v!==l5.C&&v!==l5.Q||(t=[d,h])),v){case l5.M:u=d=a[m++],c=h=a[m++],p(d,h);break;case l5.L:n=a[m++],r=a[m++],f(u,c,n,r),u=n,c=r;break;case l5.C:t.push(a[m++],a[m++],a[m++],a[m++],u=a[m++],c=a[m++]);break;case l5.Q:n=a[m++],r=a[m++],o=a[m++],i=a[m++],t.push(u+2/3*(n-u),c+2/3*(r-c),o+2/3*(n-o),i+2/3*(r-i),o,i),u=o,c=i;break;case l5.A:var b=a[m++],_=a[m++],x=a[m++],w=a[m++],O=a[m++],S=a[m++]+O;m+=1;var A=!a[m++];n=Math.cos(O)*x+b,r=Math.sin(O)*w+_,y?(d=n,h=r,p(d,h)):f(u,c,n,r),u=Math.cos(S)*x+b,c=Math.sin(S)*w+_;for(var k=(A?-1:1)*Math.PI/2,C=O;A?C>S:C<S;C+=k){var M=A?Math.max(C+k,S):Math.min(C+k,S);g(C,M,b,_,x,w)}break;case l5.R:d=u=a[m++],h=c=a[m++],n=d+a[m++],r=h+a[m++],p(n,h),f(n,h,n,r),f(n,r,d,r),f(d,r,d,h),f(d,h,n,h);break;case l5.Z:t&&f(u,c,d,h),u=d,c=h;break}}return t&&t.length>2&&l.push(t),l}function d5(e,t,n,r,o,i,a,s,l,u){if(u5(e,n)&&u5(t,r)&&u5(o,a)&&u5(i,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,m=r-t,v=o-a,y=i-s,b=g*g+m*m,_=v*v+y*y;if(b<d&&_<d)l.push(a,s);else{var x=h*g+p*m,w=-h*v-p*y,O=b-x*x,S=_-w*w;if(O<d&&x>=0&&S<d&&w>=0)l.push(a,s);else{var A=[],k=[];Vr(e,n,o,a,.5,A),Vr(t,r,i,s,.5,k),d5(A[0],k[0],A[1],k[1],A[2],k[2],A[3],k[3],l,u),d5(A[4],k[4],A[5],k[5],A[6],k[6],A[7],k[7],l,u)}}}}function h5(e,t){var n=c5(e),r=[];t=t||1;for(var o=0;o<n.length;o++){var i=n[o],a=[],s=i[0],l=i[1];a.push(s,l);for(var u=2;u<i.length;){var c=i[u++],d=i[u++],h=i[u++],p=i[u++],f=i[u++],g=i[u++];d5(s,l,c,d,h,p,f,g,a,t),s=f,l=g}r.push(a)}return r}function p5(e,t,n){var r=e[t],o=e[1-t],i=Math.abs(r/o),a=Math.ceil(Math.sqrt(i*n)),s=Math.floor(n/a);0===s&&(s=1,a=n);for(var l=[],u=0;u<a;u++)l.push(s);var c=a*s,d=n-c;if(d>0)for(u=0;u<d;u++)l[u%a]+=1;return l}function f5(e,t,n){for(var r=e.r0,o=e.r,i=e.startAngle,a=e.endAngle,s=Math.abs(a-i),l=s*o,u=o-r,c=l>Math.abs(u),d=p5([l,u],c?0:1,t),h=(c?s:u)/d.length,p=0;p<d.length;p++)for(var f=(c?u:s)/d[p],g=0;g<d[p];g++){var m={};c?(m.startAngle=i+h*p,m.endAngle=i+h*(p+1),m.r0=r+f*g,m.r=r+f*(g+1)):(m.startAngle=i+f*g,m.endAngle=i+f*(g+1),m.r0=r+h*p,m.r=r+h*(p+1)),m.clockwise=e.clockwise,m.cx=e.cx,m.cy=e.cy,n.push(m)}}function g5(e,t,n){for(var r=e.width,o=e.height,i=r>o,a=p5([r,o],i?0:1,t),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",c=i?"y":"x",d=e[s]/a.length,h=0;h<a.length;h++)for(var p=e[l]/a[h],f=0;f<a[h];f++){var g={};g[u]=h*d,g[c]=f*p,g[s]=d,g[l]=p,g.x+=e.x,g.y+=e.y,n.push(g)}}function m5(e,t,n,r){return e*r-n*t}function v5(e,t,n,r,o,i,a,s){var l=n-e,u=r-t,c=a-o,d=s-i,h=m5(c,d,l,u);if(Math.abs(h)<1e-6)return null;var p=e-o,f=t-i,g=m5(p,f,c,d)/h;return g<0||g>1?null:new En(g*l+e,g*u+t)}function y5(e,t,n){var r=new En;En.sub(r,n,t),r.normalize();var o=new En;En.sub(o,e,t);var i=o.dot(r);return i}function b5(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function _5(e,t,n){for(var r=e.length,o=[],i=0;i<r;i++){var a=e[i],s=e[(i+1)%r],l=v5(a[0],a[1],s[0],s[1],t.x,t.y,n.x,n.y);l&&o.push({projPt:y5(l,t,n),pt:l,idx:i})}if(o.length<2)return[{points:e},{points:e}];o.sort((function(e,t){return e.projPt-t.projPt}));var u=o[0],c=o[o.length-1];if(c.idx<u.idx){var d=u;u=c,c=d}var h=[u.pt.x,u.pt.y],p=[c.pt.x,c.pt.y],f=[h],g=[p];for(i=u.idx+1;i<=c.idx;i++)b5(f,e[i].slice());b5(f,p),b5(f,h);for(i=c.idx+1;i<=u.idx+r;i++)b5(g,e[i%r].slice());return b5(g,h),b5(g,p),[{points:f},{points:g}]}function x5(e){var t=e.points,n=[],r=[];lu(t,n,r);var o=new Fn(n[0],n[1],r[0]-n[0],r[1]-n[1]),i=o.width,a=o.height,s=o.x,l=o.y,u=new En,c=new En;return i>a?(u.x=c.x=s+i/2,u.y=l,c.y=l+a):(u.y=c.y=l+a/2,u.x=s,c.x=s+i),_5(t,u,c)}function w5(e,t,n,r){if(1===n)r.push(t);else{var o=Math.floor(n/2),i=e(t);w5(e,i[0],o,r),w5(e,i[1],n-o,r)}return r}function O5(e,t){for(var n=[],r=0;r<t;r++)n.push(py(e));return n}function S5(e,t){t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel}function A5(e){for(var t=[],n=0;n<e.length;)t.push([e[n++],e[n++]]);return t}function k5(e,t){var n,r=[],o=e.shape;switch(e.type){case"rect":g5(o,t,r),n=Oc;break;case"sector":f5(o,t,r),n=Ly;break;case"circle":f5({r0:0,r:o.r,startAngle:0,endAngle:2*Math.PI,cx:o.cx,cy:o.cy},t,r),n=Ly;break;default:var i=e.getComputedTransform(),a=i?Math.sqrt(Math.max(i[0]*i[0]+i[1]*i[1],i[2]*i[2]+i[3]*i[3])):1,s=Te(h5(e.getUpdatedPathProxy(),a),(function(e){return A5(e)})),l=s.length;if(0===l)w5(x5,{points:s[0]},t,r);else if(l===t)for(var u=0;u<l;u++)r.push({points:s[u]});else{var c=0,d=Te(s,(function(e){var t=[],n=[];lu(e,t,n);var r=(n[1]-t[1])*(n[0]-t[0]);return c+=r,{poly:e,area:r}}));d.sort((function(e,t){return t.area-e.area}));var h=t;for(u=0;u<l;u++){var p=d[u];if(h<=0)break;var f=u===l-1?h:Math.ceil(p.area/c*t);f<0||(w5(x5,{points:p.poly},f,r),h-=f)}}n=Hy;break}if(!n)return O5(e,t);var g=[];for(u=0;u<r.length;u++){var m=new n;m.setShape(r[u]),S5(e,m),g.push(m)}return g}function C5(e,t){var n=e.length,r=t.length;if(n===r)return[e,t];for(var o=[],i=[],a=n<r?e:t,s=Math.min(n,r),l=Math.abs(r-n)/6,u=(s-2)/6,c=Math.ceil(l/u)+1,d=[a[0],a[1]],h=l,p=2;p<s;){var f=a[p-2],g=a[p-1],m=a[p++],v=a[p++],y=a[p++],b=a[p++],_=a[p++],x=a[p++];if(h<=0)d.push(m,v,y,b,_,x);else{for(var w=Math.min(h,c-1)+1,O=1;O<=w;O++){var S=O/w;Vr(f,m,y,_,S,o),Vr(g,v,b,x,S,i),f=o[3],g=i[3],d.push(o[1],i[1],o[2],i[2],f,g),m=o[5],v=i[5],y=o[6],b=i[6]}h-=w-1}}return a===e?[d,t]:[e,d]}function M5(e,t){for(var n=e.length,r=e[n-2],o=e[n-1],i=[],a=0;a<t.length;)i[a++]=r,i[a++]=o;return i}function T5(e,t){for(var n,r,o,i=[],a=[],s=0;s<Math.max(e.length,t.length);s++){var l=e[s],u=t[s],c=void 0,d=void 0;l?u?(n=C5(l,u),c=n[0],d=n[1],r=c,o=d):(d=M5(o||l,l),c=l):(c=M5(r||u,u),d=u),i.push(c),a.push(d)}return[i,a]}function P5(e){for(var t=0,n=0,r=0,o=e.length,i=0,a=o-2;i<o;a=i,i+=2){var s=e[a],l=e[a+1],u=e[i],c=e[i+1],d=s*c-u*l;t+=d,n+=(s+u)*d,r+=(l+c)*d}return 0===t?[e[0]||0,e[1]||0]:[n/t/3,r/t/3,t]}function I5(e,t,n,r){for(var o=(e.length-2)/6,i=1/0,a=0,s=e.length,l=s-2,u=0;u<o;u++){for(var c=6*u,d=0,h=0;h<s;h+=2){var p=0===h?c:(c+h-2)%l+2,f=e[p]-n[0],g=e[p+1]-n[1],m=t[h]-r[0],v=t[h+1]-r[1],y=m-f,b=v-g;d+=y*y+b*b}d<i&&(i=d,a=u)}return a}function $5(e){for(var t=[],n=e.length,r=0;r<n;r+=2)t[r]=e[n-r-2],t[r+1]=e[n-r-1];return t}function E5(e,t,n,r){for(var o,i=[],a=0;a<e.length;a++){var s=e[a],l=t[a],u=P5(s),c=P5(l);null==o&&(o=u[2]<0!==c[2]<0);var d=[],h=[],p=0,f=1/0,g=[],m=s.length;o&&(s=$5(s));for(var v=6*I5(s,l,u,c),y=m-2,b=0;b<y;b+=2){var _=(v+b)%y+2;d[b+2]=s[_]-u[0],d[b+3]=s[_+1]-u[1]}if(d[0]=s[v]-u[0],d[1]=s[v+1]-u[1],n>0)for(var x=r/n,w=-r/2;w<=r/2;w+=x){var O=Math.sin(w),S=Math.cos(w),A=0;for(b=0;b<s.length;b+=2){var k=d[b],C=d[b+1],M=l[b]-c[0],T=l[b+1]-c[1],P=M*S-T*O,I=M*O+T*S;g[b]=P,g[b+1]=I;var $=P-k,E=I-C;A+=$*$+E*E}if(A<f){f=A,p=w;for(var D=0;D<g.length;D++)h[D]=g[D]}}else for(var R=0;R<m;R+=2)h[R]=l[R]-c[0],h[R+1]=l[R+1]-c[1];i.push({from:d,to:h,fromCp:u,toCp:c,rotation:-p})}return i}function D5(e){return e.__isCombineMorphing}var R5="__mOriginal_";function N5(e,t,n){var r=R5+t,o=e[r]||e[t];e[r]||(e[r]=e[t]);var i=n.replace,a=n.after,s=n.before;e[t]=function(){var e,t=arguments;return s&&s.apply(this,t),e=i?i.apply(this,t):o.apply(this,t),a&&a.apply(this,t),e}}function L5(e,t){var n=R5+t;e[n]&&(e[t]=e[n],e[n]=null)}function z5(e,t){for(var n=0;n<e.length;n++)for(var r=e[n],o=0;o<r.length;){var i=r[o],a=r[o+1];r[o++]=t[0]*i+t[2]*a+t[4],r[o++]=t[1]*i+t[3]*a+t[5]}}function V5(e,t){var n=e.getUpdatedPathProxy(),r=t.getUpdatedPathProxy(),o=T5(c5(n),c5(r)),i=o[0],a=o[1],s=e.getComputedTransform(),l=t.getComputedTransform();function u(){this.transform=null}s&&z5(i,s),l&&z5(a,l),N5(t,"updateTransform",{replace:u}),t.transform=null;var c=E5(i,a,10,Math.PI),d=[];N5(t,"buildPath",{replace:function(e){for(var n=t.__morphT,r=1-n,o=[],i=0;i<c.length;i++){var a=c[i],s=a.from,l=a.to,u=a.rotation*n,h=a.fromCp,p=a.toCp,f=Math.sin(u),g=Math.cos(u);zt(o,h,p,n);for(var m=0;m<s.length;m+=2){var v=s[m],y=s[m+1],b=l[m],_=l[m+1],x=v*r+b*n,w=y*r+_*n;d[m]=x*g-w*f+o[0],d[m+1]=x*f+w*g+o[1]}var O=d[0],S=d[1];e.moveTo(O,S);for(m=2;m<s.length;){b=d[m++],_=d[m++];var A=d[m++],k=d[m++],C=d[m++],M=d[m++];O===b&&S===_&&A===C&&k===M?e.lineTo(C,M):e.bezierCurveTo(b,_,A,k,C,M),O=C,S=M}}}})}function B5(e,t,n){if(!e||!t)return t;var r=n.done,o=n.during;function i(){L5(t,"buildPath"),L5(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return V5(e,t),t.__morphT=0,t.animateTo({__morphT:1},we({during:function(e){t.dirtyShape(),o&&o(e)},done:function(){i(),r&&r()}},n)),t}function j5(e,t,n,r,o,i){var a=16;e=o===n?0:Math.round(32767*(e-n)/(o-n)),t=i===r?0:Math.round(32767*(t-r)/(i-r));for(var s,l=0,u=(1<<a)/2;u>0;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 Q5(e){var t=1/0,n=1/0,r=-1/0,o=-1/0,i=Te(e,(function(e){var i=e.getBoundingRect(),a=e.getComputedTransform(),s=i.x+i.width/2+(a?a[4]:0),l=i.y+i.height/2+(a?a[5]:0);return t=Math.min(s,t),n=Math.min(l,n),r=Math.max(s,r),o=Math.max(l,o),[s,l]})),a=Te(i,(function(i,a){return{cp:i,z:j5(i[0],i[1],t,n,r,o),path:e[a]}}));return a.sort((function(e,t){return e.z-t.z})).map((function(e){return e.path}))}function F5(e){return k5(e.path,e.count)}function W5(){return{fromIndividuals:[],toIndividuals:[],count:0}}function H5(e,t,n){var r=[];function o(e){for(var t=0;t<e.length;t++){var n=e[t];D5(n)?o(n.childrenRef()):n instanceof ac&&r.push(n)}}o(e);var i=r.length;if(!i)return W5();var a=n.dividePath||F5,s=a({path:t,count:i});if(s.length!==i)return console.error("Invalid morphing: unmatched splitted path"),W5();r=Q5(r),s=Q5(s);for(var l=n.done,u=n.during,c=n.individualDelay,d=new ua,h=0;h<i;h++){var p=r[h],f=s[h];f.parent=t,f.copyTransform(d),c||V5(p,f)}function g(e){for(var t=0;t<s.length;t++)s[t].addSelfToZr(e)}function m(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,L5(t,"addSelfToZr"),L5(t,"removeSelfFromZr")}t.__isCombineMorphing=!0,t.childrenRef=function(){return s},N5(t,"addSelfToZr",{after:function(e){g(e)}}),N5(t,"removeSelfFromZr",{after:function(e){for(var t=0;t<s.length;t++)s[t].removeSelfFromZr(e)}});var v=s.length;if(c){var y=v,b=function(){y--,0===y&&(m(),l&&l())};for(h=0;h<v;h++){var _=c?we({delay:(n.delay||0)+c(h,v,r[h],s[h]),done:b},n):n;B5(r[h],s[h],_)}}else t.__morphT=0,t.animateTo({__morphT:1},we({during:function(e){for(var n=0;n<v;n++){var r=s[n];r.__morphT=t.__morphT,r.dirtyShape()}u&&u(e)},done:function(){m();for(var t=0;t<e.length;t++)L5(e[t],"updateTransform");l&&l()}},n));return t.__zr&&g(t.__zr),{fromIndividuals:r,toIndividuals:s,count:v}}function Z5(e,t,n){var r=t.length,o=[],i=n.dividePath||F5;function a(e){for(var t=0;t<e.length;t++){var n=e[t];D5(n)?a(n.childrenRef()):n instanceof ac&&o.push(n)}}if(D5(e)){a(e.childrenRef());var s=o.length;if(s<r)for(var l=0,u=s;u<r;u++)o.push(py(o[l++%s]));o.length=r}else{o=i({path:e,count:r});var c=e.getComputedTransform();for(u=0;u<o.length;u++)o[u].setLocalTransform(c);if(o.length!==r)return console.error("Invalid morphing: unmatched splitted path"),W5()}o=Q5(o),t=Q5(t);var d=n.individualDelay;for(u=0;u<r;u++){var h=d?we({delay:(n.delay||0)+d(u,r,o[u],t[u])},n):n;B5(o[u],t[u],h)}return{fromIndividuals:o,toIndividuals:t,count:t.length}}function G5(e){return Le(e[0])}function X5(e,t){for(var n=[],r=e.length,o=0;o<r;o++)n.push({one:e[o],many:[]});for(o=0;o<t.length;o++){var i=t[o].length,a=void 0;for(a=0;a<i;a++)n[a%r].many.push(t[o][a])}var s=0;for(o=r-1;o>=0;o--)if(!n[o].many.length){var l=n[s].many;if(l.length<=1){if(!s)return n;s=0}i=l.length;var u=Math.ceil(i/2);n[o].many=l.slice(u,i),n[s].many=l.slice(0,u),s++}return n}var U5={clone:function(e){for(var t=[],n=1-Math.pow(1-e.path.style.opacity,1/e.count),r=0;r<e.count;r++){var o=py(e.path);o.setStyle("opacity",n),t.push(o)}return t},split:null};function Y5(e,t,n,r,o,i){if(e.length&&t.length){var a=rh("update",r,o);if(a&&a.duration>0){var s,l,u=r.getModel("universalTransition").get("delay"),c=Object.assign({setToFinal:!0},a);G5(e)&&(s=e,l=t),G5(t)&&(s=t,l=e);for(var d=s?s===e:e.length>t.length,h=s?X5(l,s):X5(d?t:e,[d?e:t]),p=0,f=0;f<h.length;f++)p+=h[f].many.length;var g=0;for(f=0;f<h.length;f++)m(h[f],d,g,p),g+=h[f].many.length}}function m(e,t,r,o,a){var s=e.many,l=e.one;if(1!==s.length||a)for(var d=we({dividePath:U5[n],individualDelay:u&&function(e,t,n,i){return u(e+r,o)}},c),h=t?H5(s,l,d):Z5(l,s,d),p=h.fromIndividuals,f=h.toIndividuals,g=p.length,v=0;v<g;v++){_=u?we({delay:u(v,g)},c):c;i(p[v],f[v],t?s[v]:e.one,t?e.one:s[v],_)}else{var y=t?s[0]:l,b=t?l:s[0];if(D5(y))m({many:[y],one:b},!0,r,o,!0);else{var _=u?we({delay:u(r,o)},c):c;B5(y,b,_),i(y,b,y,b,_)}}}}function q5(e){if(!e)return[];if(Le(e)){for(var t=[],n=0;n<e.length;n++)t.push(q5(e[n]));return t}var r=[];return e.traverse((function(e){e instanceof ac&&!e.disableMorphing&&!e.invisible&&!e.ignore&&r.push(e)})),r}var K5=1e4,J5=0,e4=1,t4=2,n4=Xs();function r4(e,t){for(var n=e.dimensions,r=0;r<n.length;r++){var o=e.getDimensionInfo(n[r]);if(o&&0===o.otherDims[t])return n[r]}}function o4(e,t,n){var r=e.getDimensionInfo(n),o=r&&r.ordinalMeta;if(r){var i=e.get(r.name,t);return o&&o.categories[i]||i+""}}function i4(e,t,n,r){var o=r?"itemChildGroupId":"itemGroupId",i=r4(e,o);if(i){var a=o4(e,t,i);return a}var s=e.getRawDataItem(t),l=r?"childGroupId":"groupId";return s&&s[l]?s[l]+"":r?void 0:n||e.getId(t)}function a4(e){var t=[];return Me(e,(function(e){var n=e.data,r=e.dataGroupId;if(!(n.count()>K5))for(var o=n.getIndices(),i=0;i<o.length;i++)t.push({data:n,groupId:i4(n,i,r,!1),childGroupId:i4(n,i,r,!0),divide:e.divide,dataIndex:i})})),t}function s4(e,t,n){e.traverse((function(e){e instanceof ac&&ah(e,{style:{opacity:0}},t,{dataIndex:n,isFrom:!0})}))}function l4(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function u4(e){e.stopAnimation(),e.isGroup&&e.traverse((function(e){e.stopAnimation()}))}function c4(e,t,n){var r=rh("update",n,t);r&&e.traverse((function(e){if(e instanceof Jl){var t=hh(e);t&&e.animateFrom({style:t},r)}}))}function d4(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++){var o=e[r],i=t[r];if(o.data.getId(o.dataIndex)!==i.data.getId(i.dataIndex))return!1}return!0}function h4(e,t,n){var r=a4(e),o=a4(t);function i(e,t,n,r,o){(n||e)&&t.animateFrom({style:n&&n!==e?xe(xe({},n.style),e.style):e.style},o)}var a=!1,s=J5,l=ct(),u=ct();r.forEach((function(e){e.groupId&&l.set(e.groupId,!0),e.childGroupId&&u.set(e.childGroupId,!0)}));for(var c=0;c<o.length;c++){var d=o[c].groupId;if(u.get(d)){s=e4;break}var h=o[c].childGroupId;if(h&&l.get(h)){s=t4;break}}function p(e,t){return function(n){var r=n.data,o=n.dataIndex;return t?r.getId(o):e?s===e4?n.childGroupId:n.groupId:s===t4?n.childGroupId:n.groupId}}var f=d4(r,o),g={};if(!f)for(c=0;c<o.length;c++){var m=o[c],v=m.data.getItemGraphicEl(m.dataIndex);v&&(g[v.id]=!0)}function y(e,t){var n=r[t],s=o[e],l=s.data.hostModel,u=n.data.getItemGraphicEl(n.dataIndex),c=s.data.getItemGraphicEl(s.dataIndex);u!==c?u&&g[u.id]||c&&(u4(c),u?(u4(u),l4(u),a=!0,Y5(q5(u),q5(c),s.divide,l,e,i)):s4(c,l,e)):c&&c4(c,s.dataIndex,l)}new gS(r,o,p(!0,f),p(!1,f),null,"multiple").update(y).updateManyToOne((function(e,t){var n=o[e],s=n.data,l=s.hostModel,u=s.getItemGraphicEl(n.dataIndex),c=Ie(Te(t,(function(e){return r[e].data.getItemGraphicEl(r[e].dataIndex)})),(function(e){return e&&e!==u&&!g[e.id]}));u&&(u4(u),c.length?(Me(c,(function(e){u4(e),l4(e)})),a=!0,Y5(q5(c),q5(u),n.divide,l,e,i)):s4(u,l,n.dataIndex))})).updateOneToMany((function(e,t){var n=r[t],s=n.data.getItemGraphicEl(n.dataIndex);if(!s||!g[s.id]){var l=Ie(Te(e,(function(e){return o[e].data.getItemGraphicEl(o[e].dataIndex)})),(function(e){return e&&e!==s})),u=o[e[0]].data.hostModel;l.length&&(Me(l,(function(e){return u4(e)})),s?(u4(s),l4(s),a=!0,Y5(q5(s),q5(l),n.divide,u,e[0],i)):Me(l,(function(t){return s4(t,u,e[0])})))}})).updateManyToMany((function(e,t){new gS(t,e,(function(e){return r[e].data.getId(r[e].dataIndex)}),(function(e){return o[e].data.getId(o[e].dataIndex)})).update((function(n,r){y(e[n],t[r])})).execute()})).execute(),a&&Me(t,(function(e){var t=e.data,r=t.hostModel,o=r&&n.getViewOfSeriesModel(r),i=rh("update",r,0);o&&r.isAnimationEnabled()&&i&&i.duration>0&&o.group.traverse((function(e){e instanceof ac&&!e.animators.length&&e.animateFrom({style:{opacity:0}},i)}))}))}function p4(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function f4(e){return Le(e)?e.sort().join(","):e}function g4(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function m4(e,t){var n=ct(),r=ct(),o=ct();return Me(e.oldSeries,(function(t,n){var i=e.oldDataGroupIds[n],a=e.oldData[n],s=p4(t),l=f4(s);r.set(l,{dataGroupId:i,data:a}),Le(s)&&Me(s,(function(e){o.set(e,{key:l,dataGroupId:i,data:a})}))})),Me(t.updatedSeries,(function(e){if(e.isUniversalTransitionEnabled()&&e.isAnimationEnabled()){var t=e.get("dataGroupId"),i=e.getData(),a=p4(e),s=f4(a),l=r.get(s);if(l)n.set(s,{oldSeries:[{dataGroupId:l.dataGroupId,divide:g4(l.data),data:l.data}],newSeries:[{dataGroupId:t,divide:g4(i),data:i}]});else if(Le(a)){0;var u=[];Me(a,(function(e){var t=r.get(e);t.data&&u.push({dataGroupId:t.dataGroupId,divide:g4(t.data),data:t.data})})),u.length&&n.set(s,{oldSeries:u,newSeries:[{dataGroupId:t,data:i,divide:g4(i)}]})}else{var c=o.get(a);if(c){var d=n.get(c.key);d||(d={oldSeries:[{dataGroupId:c.dataGroupId,data:c.data,divide:g4(c.data)}],newSeries:[]},n.set(c.key,d)),d.newSeries.push({dataGroupId:t,data:i,divide:g4(i)})}}}})),n}function v4(e,t){for(var n=0;n<e.length;n++){var r=null!=t.seriesIndex&&t.seriesIndex===e[n].seriesIndex||null!=t.seriesId&&t.seriesId===e[n].id;if(r)return n}}function y4(e,t,n,r){var o=[],i=[];Me(ks(e.from),(function(e){var n=v4(t.oldSeries,e);n>=0&&o.push({dataGroupId:t.oldDataGroupIds[n],data:t.oldData[n],divide:g4(t.oldData[n]),groupIdDim:e.dimension})})),Me(ks(e.to),(function(e){var r=v4(n.updatedSeries,e);if(r>=0){var o=n.updatedSeries[r].getData();i.push({dataGroupId:t.oldDataGroupIds[r],data:o,divide:g4(o),groupIdDim:e.dimension})}})),o.length>0&&i.length>0&&h4(o,i,r)}function b4(e){e.registerUpdateLifecycle("series:beforeupdate",(function(e,t,n){Me(ks(n.seriesTransition),(function(e){Me(ks(e.to),(function(e){for(var t=n.updatedSeries,r=0;r<t.length;r++)(null!=e.seriesIndex&&e.seriesIndex===t[r].seriesIndex||null!=e.seriesId&&e.seriesId===t[r].id)&&(t[r][Iv]=!0)}))}))})),e.registerUpdateLifecycle("series:transition",(function(e,t,n){var r=n4(t);if(r.oldSeries&&n.updatedSeries&&n.optionChanged){var o=n.seriesTransition;if(o)Me(ks(o),(function(e){y4(e,r,n,t)}));else{var i=m4(r,n);Me(i.keys(),(function(e){var n=i.get(e);h4(n.oldSeries,n.newSeries,t)}))}Me(n.updatedSeries,(function(e){e[Iv]&&(e[Iv]=!1)}))}for(var a=e.getSeries(),s=r.oldSeries=[],l=r.oldDataGroupIds=[],u=r.oldData=[],c=0;c<a.length;c++){var d=a[c].getData();d.count()<K5&&(s.push(a[c]),l.push(a[c].get("dataGroupId")),u.push(d))}}))}dS([CM]),dS([sP]),dS([aI,WI,f$,BE,sD,iN,rL,Iz,YV,aB,vB,wQ,tF,bF,GF,tW,SW,RW,dH,xH,BH,mG]),dS(fX),dS(aU),dS(oN),dS($U),dS(xQ),dS(QU),dS(aY),dS(Wq),dS(kK),dS(pX),dS(aJ),dS(uJ),dS($J),dS(o0),dS(m0),dS(T0),dS(o1),dS(V1),dS(x1),dS(z1),dS(R2),dS(C2),dS(D2),dS(j2),dS(o5),dS(s5),dS(b4),dS(gM);n(85194),n(27092),n(68925),n(31796),n(21467),n(22064),n(92114);var _4=n(57352);function x4(e){return!!(0,_4.getCurrentScope)()&&((0,_4.onScopeDispose)(e),!0)}function w4(e){return"function"===typeof e?e():(0,_4.unref)(e)}const O4="undefined"!==typeof window&&"undefined"!==typeof document,S4=("undefined"!==typeof WorkerGlobalScope&&(globalThis,WorkerGlobalScope),Object.prototype.toString),A4=e=>"[object Object]"===S4.call(e),k4=()=>{};function C4(e,t){function n(...n){return new Promise(((r,o)=>{Promise.resolve(e((()=>t.apply(this,n)),{fn:t,thisArg:this,args:n})).then(r).catch(o)}))}return n}function M4(e,t={}){let n,r,o=k4;const i=e=>{clearTimeout(e),o(),o=k4},a=a=>{const s=w4(e),l=w4(t.maxWait);return n&&i(n),s<=0||void 0!==l&&l<=0?(r&&(i(r),r=null),Promise.resolve(a())):new Promise(((e,u)=>{o=t.rejectOnCancel?u:e,l&&!r&&(r=setTimeout((()=>{n&&i(n),r=null,e(a())}),l)),n=setTimeout((()=>{r&&i(r),r=null,e(a())}),s)}))};return a}_4.isVue3,_4.isVue3,_4.isVue3;function T4(e){const t=Object.create(null);return n=>{const r=t[n];return r||(t[n]=e(n))}}const P4=/\B([A-Z])/g,I4=(T4((e=>e.replace(P4,"-$1").toLowerCase())),/-(\w)/g);T4((e=>e.replace(I4,((e,t)=>t?t.toUpperCase():""))));function $4(e){return e||(0,_4.getCurrentInstance)()}function E4(e,t=200,n={}){return C4(M4(t,n),e)}function D4(e,t){const n=$4(t);n&&(0,_4.onUnmounted)(e,t)}n(60726),n(82765),n(13312);function R4(e){var t;const n=w4(e);return null!=(t=null==n?void 0:n.$el)?t:n}const N4=O4?window:void 0;O4&&window.document,O4&&window.navigator,O4&&window.location;function L4(...e){let t,n,r,o;if("string"===typeof e[0]||Array.isArray(e[0])?([n,r,o]=e,t=N4):[t,n,r,o]=e,!t)return k4;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const i=[],a=()=>{i.forEach((e=>e())),i.length=0},s=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),l=(0,_4.watch)((()=>[R4(t),w4(o)]),(([e,t])=>{if(a(),!e)return;const o=A4(t)?{...t}:t;i.push(...n.flatMap((t=>r.map((n=>s(e,t,n,o))))))}),{immediate:!0,flush:"post"}),u=()=>{l(),a()};return x4(u),u}"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self&&self;Number.POSITIVE_INFINITY;function z4(e,t="default"){let n=null,r=s;const o=(0,m.ref)({});let i;const a=(0,m.computed)((()=>o.value));function s(){n?.resize({animation:{duration:300,easing:"quadraticIn"}})}function l(o=t){const a=(0,m.unref)(e);if(!a||!(0,m.unref)(a))return;n=LO(a,o);const s=L4(window,"resize",r);i=s}function u(t,r=!1){return o.value=t,new Promise((t=>{0===(0,m.unref)(e)?.offsetHeight&&setTimeout((()=>{u((0,m.unref)(a)),t(null)}),30),(0,m.nextTick)((()=>{setTimeout((()=>{(n||(l("default"),n))&&(r&&n?.clear(),n?.setOption((0,m.unref)(a)),t(null))}),30)}))}))}function c(){return n||l("default"),n}return r=E4(s,200),(0,m.watch)((()=>t),(e=>{n&&(n.dispose(),l(e),u(o.value))})),D4((()=>{n&&(i(),n.dispose(),n=null)})),{setOptions:u,resize:s,echarts:g,getInstance:c}}var V4=n(58554),B4=n(48508),j4="Expected a function";function Q4(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError(j4);return(0,B4.A)(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),(0,V4.A)(e,t,{leading:r,maxWait:t,trailing:o})}var F4=Q4,W4=(0,m.defineComponent)({__name:"Charts",props:{echartsOptions:{},width:{},height:{},loading:{type:Boolean}},setup(e){const t=e,n=(0,m.ref)(null),{setOptions:r,resize:o}=z4(n),i=(0,m.h)(B.A,{style:{fontSize:"24px"}});return(0,m.watch)((()=>[t.width,t.height]),F4((async()=>{o()}),200)),(0,m.watch)((()=>t),(async()=>{await(0,m.nextTick)();const{echartsOptions:e}=t;r(e)}),{immediate:!0,deep:!0}),(e,t)=>((0,m.openBlock)(),(0,m.createBlock)((0,m.unref)(V),{spinning:e.loading,indicator:(0,m.unref)(i)},{default:(0,m.withCtx)((()=>[(0,m.createElementVNode)("div",{ref_key:"chartRef",ref:n,style:(0,m.normalizeStyle)({width:e.width+"px",height:e.height+"px"})},null,4)])),_:1},8,["spinning","indicator"]))}});const H4=W4;var Z4=H4},55673:function(e,t,n){"use strict";n.d(t,{A:function(){return G_}});var r=n(9274),o=n(41145),i=n(83436),a=n(18918),s=n(58412),l=n(45776),u=n(46808),c=n(15240);u.A.Group=l.A,u.A.Button=c.A,u.A.install=function(e){return e.component(u.A.name,u.A),e.component(u.A.Group.name,u.A.Group),e.component(u.A.Button.name,u.A.Button),e};var d=u.A,h=n(26347),p=n(83848),f=n(98657),g=n(69751),m=n(13389),v=n(1592),y=n(5530),b=n(74220),_=n(23273),x=n(85545),w=n(53775),O=n(47960),S=n(66041),A=n(97369),k=n(3551),C=n(41038),M=n(18765),T=n(54183),P=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};let I;const $=e=>{I={x:e.pageX,y:e.pageY},setTimeout((()=>I=null),100)};(0,A.qz)()&&(0,b.A)(document.documentElement,"click",$,!0);const E=()=>({prefixCls:String,visible:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},confirmLoading:{type:Boolean,default:void 0},title:y.A.any,closable:{type:Boolean,default:void 0},closeIcon:y.A.any,onOk:Function,onCancel:Function,"onUpdate:visible":Function,"onUpdate:open":Function,onChange:Function,afterClose:Function,centered:{type:Boolean,default:void 0},width:[String,Number],footer:y.A.any,okText:y.A.any,okType:String,cancelText:y.A.any,icon:y.A.any,maskClosable:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},okButtonProps:(0,S.ge)(),cancelButtonProps:(0,S.ge)(),destroyOnClose:{type:Boolean,default:void 0},wrapClassName:String,maskTransitionName:String,transitionName:String,getContainer:{type:[String,Function,Boolean,Object],default:void 0},zIndex:Number,bodyStyle:(0,S.ge)(),maskStyle:(0,S.ge)(),mask:{type:Boolean,default:void 0},keyboard:{type:Boolean,default:void 0},wrapProps:Object,focusTriggerAfterClose:{type:Boolean,default:void 0},modalRender:Function,mousePosition:(0,S.ge)()});var D=(0,r.defineComponent)({compatConfig:{MODE:3},name:"AModal",inheritAttrs:!1,props:(0,O.A)(E(),{width:520,confirmLoading:!1,okType:"primary"}),setup(e,t){let{emit:n,slots:o,attrs:i}=t;const[s]=(0,w.n)("Modal"),{prefixCls:l,rootPrefixCls:u,direction:c,getPopupContainer:d}=(0,k.A)("modal",e),[h,p]=(0,T.A)(l);(0,M.Ay)(void 0===e.visible,"Modal","`visible` will be removed in next major version, please use `open` instead.");const y=e=>{n("update:visible",!1),n("update:open",!1),n("cancel",e),n("change",!1)},b=e=>{n("ok",e)},O=()=>{var t,n;const{okText:i=(null===(t=o.okText)||void 0===t?void 0:t.call(o)),okType:l,cancelText:u=(null===(n=o.cancelText)||void 0===n?void 0:n.call(o)),confirmLoading:c}=e;return(0,r.createVNode)(r.Fragment,null,[(0,r.createVNode)(a.A,(0,g.A)({onClick:y},e.cancelButtonProps),{default:()=>[u||s.value.cancelText]}),(0,r.createVNode)(a.A,(0,g.A)((0,g.A)({},(0,x.DU)(l)),{},{loading:c,onClick:b},e.okButtonProps),{default:()=>[i||s.value.okText]})])};return()=>{var t,n;const{prefixCls:a,visible:s,open:b,wrapClassName:x,centered:w,getContainer:S,closeIcon:A=(null===(t=o.closeIcon)||void 0===t?void 0:t.call(o)),focusTriggerAfterClose:k=!0}=e,M=P(e,["prefixCls","visible","open","wrapClassName","centered","getContainer","closeIcon","focusTriggerAfterClose"]),T=(0,m.A)(x,{[`${l.value}-centered`]:!!w,[`${l.value}-wrap-rtl`]:"rtl"===c.value});return h((0,r.createVNode)(v.A,(0,g.A)((0,g.A)((0,g.A)({},M),i),{},{rootClassName:p.value,class:(0,m.A)(p.value,i.class),getContainer:S||(null===d||void 0===d?void 0:d.value),prefixCls:l.value,wrapClassName:T,visible:null!==b&&void 0!==b?b:s,onClose:y,focusTriggerAfterClose:k,transitionName:(0,C.by)(u.value,"zoom",e.transitionName),maskTransitionName:(0,C.by)(u.value,"fade",e.maskTransitionName),mousePosition:null!==(n=M.mousePosition)&&void 0!==n?n:I}),(0,f.A)((0,f.A)({},o),{footer:o.footer||O,closeIcon:()=>(0,r.createVNode)("span",{class:`${l.value}-close-x`},[A||(0,r.createVNode)(_.A,{class:`${l.value}-close-icon`},null)])})))}}}),R=(n(30381),n(46299)),N=n(82339),L=n(51911),z=n(33684);const V=()=>{const e=(0,r.shallowRef)(!1);return(0,r.onBeforeUnmount)((()=>{e.value=!0})),e};var B=V,j=n(16155);const Q={type:{type:String},actionFn:Function,close:Function,autofocus:Boolean,prefixCls:String,buttonProps:(0,S.ge)(),emitEvent:Boolean,quitOnNullishReturnValue:Boolean};function F(e){return!(!e||!e.then)}var W=(0,r.defineComponent)({compatConfig:{MODE:3},name:"ActionButton",props:Q,setup(e,t){let{slots:n}=t;const o=(0,r.shallowRef)(!1),i=(0,r.shallowRef)(),s=(0,r.shallowRef)(!1);let l;const u=B();(0,r.onMounted)((()=>{e.autofocus&&(l=setTimeout((()=>{var e,t;return null===(t=null===(e=(0,j.oK)(i.value))||void 0===e?void 0:e.focus)||void 0===t?void 0:t.call(e)})))})),(0,r.onBeforeUnmount)((()=>{clearTimeout(l)}));const c=function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null===(t=e.close)||void 0===t||t.call(e,...r)},d=e=>{F(e)&&(s.value=!0,e.then((function(){u.value||(s.value=!1),c(...arguments),o.value=!1}),(e=>(u.value||(s.value=!1),o.value=!1,Promise.reject(e)))))},h=t=>{const{actionFn:n}=e;if(o.value)return;if(o.value=!0,!n)return void c();let r;if(e.emitEvent){if(r=n(t),e.quitOnNullishReturnValue&&!F(r))return o.value=!1,void c(t)}else if(n.length)r=n(e.close),o.value=!1;else if(r=n(),!r)return void c();d(r)};return()=>{const{type:t,prefixCls:o,buttonProps:l}=e;return(0,r.createVNode)(a.A,(0,g.A)((0,g.A)((0,g.A)({},(0,x.DU)(t)),{},{onClick:h,loading:s.value,prefixCls:o},l),{},{ref:i}),n)}}});function H(e){return"function"===typeof e?e():e}var Z=(0,r.defineComponent)({name:"ConfirmDialog",inheritAttrs:!1,props:["icon","onCancel","onOk","close","closable","zIndex","afterClose","visible","open","keyboard","centered","getContainer","maskStyle","okButtonProps","cancelButtonProps","okType","prefixCls","okCancel","width","mask","maskClosable","okText","cancelText","autoFocusButton","transitionName","maskTransitionName","type","title","content","direction","rootPrefixCls","bodyStyle","closeIcon","modalRender","focusTriggerAfterClose","wrapClassName","confirmPrefixCls","footer"],setup(e,t){let{attrs:n}=t;const[o]=(0,w.n)("Modal");return()=>{const{icon:t,onCancel:i,onOk:a,close:s,okText:l,closable:u=!1,zIndex:c,afterClose:d,keyboard:h,centered:p,getContainer:f,maskStyle:g,okButtonProps:v,cancelButtonProps:y,okCancel:b,width:_=416,mask:x=!0,maskClosable:w=!1,type:O,open:S,title:A,content:k,direction:M,closeIcon:T,modalRender:P,focusTriggerAfterClose:I,rootPrefixCls:$,bodyStyle:E,wrapClassName:V,footer:B}=e;let j=t;if(!t&&null!==t)switch(O){case"info":j=(0,r.createVNode)(z.A,null,null);break;case"success":j=(0,r.createVNode)(R.A,null,null);break;case"error":j=(0,r.createVNode)(N.A,null,null);break;default:j=(0,r.createVNode)(L.A,null,null)}const Q=e.okType||"primary",F=e.prefixCls||"ant-modal",Z=`${F}-confirm`,G=n.style||{},X=null!==b&&void 0!==b?b:"confirm"===O,U=null!==e.autoFocusButton&&(e.autoFocusButton||"ok"),Y=`${F}-confirm`,q=(0,m.A)(Y,`${Y}-${e.type}`,{[`${Y}-rtl`]:"rtl"===M},n.class),K=o.value,J=X&&(0,r.createVNode)(W,{actionFn:i,close:s,autofocus:"cancel"===U,buttonProps:y,prefixCls:`${$}-btn`},{default:()=>[H(e.cancelText)||K.cancelText]});return(0,r.createVNode)(D,{prefixCls:F,class:q,wrapClassName:(0,m.A)({[`${Y}-centered`]:!!p},V),onCancel:e=>null===s||void 0===s?void 0:s({triggerCancel:!0},e),open:S,title:"",footer:"",transitionName:(0,C.by)($,"zoom",e.transitionName),maskTransitionName:(0,C.by)($,"fade",e.maskTransitionName),mask:x,maskClosable:w,maskStyle:g,style:G,bodyStyle:E,width:_,zIndex:c,afterClose:d,keyboard:h,centered:p,getContainer:f,closable:u,closeIcon:T,modalRender:P,focusTriggerAfterClose:I},{default:()=>[(0,r.createVNode)("div",{class:`${Z}-body-wrapper`},[(0,r.createVNode)("div",{class:`${Z}-body`},[H(j),void 0===A?null:(0,r.createVNode)("span",{class:`${Z}-title`},[H(A)]),(0,r.createVNode)("div",{class:`${Z}-content`},[H(k)])]),void 0!==B?H(B):(0,r.createVNode)("div",{class:`${Z}-btns`},[J,(0,r.createVNode)(W,{type:Q,actionFn:a,close:s,autofocus:"ok"===U,buttonProps:v,prefixCls:`${$}-btn`},{default:()=>[H(l)||(X?K.okText:K.justOkText)]})])])]})}}}),G=n(95835),X=n(21244),U=n(87051),Y=n(19559);const q=[];var K=q;const J=e=>{const t=document.createDocumentFragment();let n=(0,f.A)((0,f.A)({},(0,X.A)(e,["parentContext","appContext"])),{close:a,open:!0}),o=null;function i(){o&&((0,r.render)(null,t),o=null);for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];const l=i.some((e=>e&&e.triggerCancel));e.onCancel&&l&&e.onCancel((()=>{}),...i.slice(1));for(let e=0;e<K.length;e++){const t=K[e];if(t===a){K.splice(e,1);break}}}function a(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];n=(0,f.A)((0,f.A)({},n),{open:!1,afterClose:()=>{"function"===typeof e.afterClose&&e.afterClose(),i.apply(this,r)}}),n.visible&&delete n.visible,s(n)}function s(e){n="function"===typeof e?e(n):(0,f.A)((0,f.A)({},n),e),o&&(0,U.OJ)(o,n,t)}const l=e=>{const t=G.Vm,n=t.prefixCls,o=e.prefixCls||`${n}-modal`,i=t.iconPrefixCls,a=(0,Y.l)();return(0,r.createVNode)(G.Ay,(0,g.A)((0,g.A)({},t),{},{prefixCls:n}),{default:()=>[(0,r.createVNode)(Z,(0,g.A)((0,g.A)({},e),{},{rootPrefixCls:n,prefixCls:o,iconPrefixCls:i,locale:a,cancelText:e.cancelText||a.cancelText}),null)]})};function u(n){const o=(0,r.createVNode)(l,(0,f.A)({},n));return o.appContext=e.parentContext||e.appContext||o.appContext,(0,r.render)(o,t),o}return o=u(n),K.push(a),{destroy:a,update:s}};var ee=J;function te(e){return(0,f.A)((0,f.A)({},e),{type:"warning"})}function ne(e){return(0,f.A)((0,f.A)({},e),{type:"info"})}function re(e){return(0,f.A)((0,f.A)({},e),{type:"success"})}function oe(e){return(0,f.A)((0,f.A)({},e),{type:"error"})}function ie(e){return(0,f.A)((0,f.A)({},e),{type:"confirm"})}var ae=n(90551),se=n(24619);const le=()=>({config:Object,afterClose:Function,destroyAction:Function,open:Boolean});var ue=(0,r.defineComponent)({name:"HookModal",inheritAttrs:!1,props:(0,O.A)(le(),{config:{width:520,okType:"primary"}}),setup(e,t){let{expose:n}=t;var o;const i=(0,r.computed)((()=>e.open)),a=(0,r.computed)((()=>e.config)),{direction:s,getPrefixCls:l}=(0,ae.OQ)(),u=l("modal"),c=l(),d=()=>{var t,n;null===e||void 0===e||e.afterClose(),null===(n=(t=a.value).afterClose)||void 0===n||n.call(t)},h=function(){e.destroyAction(...arguments)};n({destroy:h});const p=null!==(o=a.value.okCancel)&&void 0!==o?o:"confirm"===a.value.type,[f]=(0,w.n)("Modal",se.A.Modal);return()=>(0,r.createVNode)(Z,(0,g.A)((0,g.A)({prefixCls:u,rootPrefixCls:c},a.value),{},{close:h,open:i.value,afterClose:d,okText:a.value.okText||(p?null===f||void 0===f?void 0:f.value.okText:null===f||void 0===f?void 0:f.value.justOkText),direction:a.value.direction||s.value,cancelText:a.value.cancelText||(null===f||void 0===f?void 0:f.value.cancelText)}),null)}});let ce=0;const de=(0,r.defineComponent)({name:"ElementsHolder",inheritAttrs:!1,setup(e,t){let{expose:n}=t;const o=(0,r.shallowRef)([]),i=e=>(o.value.push(e),o.value=o.value.slice(),()=>{o.value=o.value.filter((t=>t!==e))});return n({addModal:i}),()=>o.value.map((e=>e()))}});function he(){const e=(0,r.shallowRef)(null),t=(0,r.shallowRef)([]);(0,r.watch)(t,(()=>{if(t.value.length){const e=[...t.value];e.forEach((e=>{e()})),t.value=[]}}),{immediate:!0});const n=n=>function(o){var i;ce+=1;const a=(0,r.shallowRef)(!0),s=(0,r.shallowRef)(null),l=(0,r.shallowRef)((0,r.unref)(o)),u=(0,r.shallowRef)({});(0,r.watch)((()=>o),(e=>{p((0,f.A)((0,f.A)({},(0,r.isRef)(e)?e.value:e),u.value))}));const c=function(){a.value=!1;for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t.some((e=>e&&e.triggerCancel));l.value.onCancel&&r&&l.value.onCancel((()=>{}),...t.slice(1))};let d;const h=()=>(0,r.createVNode)(ue,{key:`modal-${ce}`,config:n(l.value),ref:s,open:a.value,destroyAction:c,afterClose:()=>{null===d||void 0===d||d()}},null);d=null===(i=e.value)||void 0===i?void 0:i.addModal(h),d&&K.push(d);const p=e=>{l.value=(0,f.A)((0,f.A)({},l.value),e)},g=()=>{s.value?c():t.value=[...t.value,c]},m=e=>{u.value=e,s.value?p(e):t.value=[...t.value,()=>p(e)]};return{destroy:g,update:m}},o=(0,r.computed)((()=>({info:n(ne),success:n(re),error:n(oe),warning:n(te),confirm:n(ie)}))),i=Symbol("modalHolderKey");return[o.value,()=>(0,r.createVNode)(de,{key:i,ref:e},null)]}var pe=he;function fe(e){return ee(te(e))}D.useModal=pe,D.info=function(e){return ee(ne(e))},D.success=function(e){return ee(re(e))},D.error=function(e){return ee(oe(e))},D.warning=fe,D.warn=fe,D.confirm=function(e){return ee(ie(e))},D.destroyAll=function(){while(K.length){const e=K.pop();e&&e()}},D.install=function(e){return e.component(D.name,D),e};var ge=D;n(82432),n(85194),n(27092),n(68925),n(31796),n(21467),n(22064),n(92114);class me{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,n){[e,t]=ke(this,e,t);let r=[];return this.decompose(0,e,r,2),n.length&&n.decompose(0,n.length,r,3),this.decompose(t,this.length,r,1),ye.from(r,this.length-(t-e)+n.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=ke(this,e,t);let n=[];return this.decompose(e,t,n,0),ye.from(n,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),n=this.length-this.scanIdentical(e,-1),r=new we(this),o=new we(e);for(let i=t,a=t;;){if(r.next(i),o.next(i),i=0,r.lineBreak!=o.lineBreak||r.done!=o.done||r.value!=o.value)return!1;if(a+=r.value.length,r.done||a>=n)return!0}}iter(e=1){return new we(this,e)}iterRange(e,t=this.length){return new Oe(this,e,t)}iterLines(e,t){let n;if(null==e)n=this.iter();else{null==t&&(t=this.lines+1);let r=this.line(e).from;n=this.iterRange(r,Math.max(r,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new Se(n)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(0==e.length)throw new RangeError("A document must have at least one line");return 1!=e.length||e[0]?e.length<=32?new ve(e):ye.from(ve.split(e,[])):me.empty}}class ve extends me{constructor(e,t=be(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,n,r){for(let o=0;;o++){let i=this.text[o],a=r+i.length;if((t?n:a)>=e)return new Ae(r,a,n,i);r=a+1,n++}}decompose(e,t,n,r){let o=e<=0&&t>=this.length?this:new ve(xe(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(1&r){let e=n.pop(),t=_e(o.text,e.text.slice(),0,o.length);if(t.length<=32)n.push(new ve(t,e.length+o.length));else{let e=t.length>>1;n.push(new ve(t.slice(0,e)),new ve(t.slice(e)))}}else n.push(o)}replace(e,t,n){if(!(n instanceof ve))return super.replace(e,t,n);[e,t]=ke(this,e,t);let r=_e(this.text,_e(n.text,xe(this.text,0,e)),t),o=this.length+n.length-(t-e);return r.length<=32?new ve(r,o):ye.from(ve.split(r,[]),o)}sliceString(e,t=this.length,n="\n"){[e,t]=ke(this,e,t);let r="";for(let o=0,i=0;o<=t&&i<this.text.length;i++){let a=this.text[i],s=o+a.length;o>e&&i&&(r+=n),e<s&&t>o&&(r+=a.slice(Math.max(0,e-o),t-o)),o=s+1}return r}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let n=[],r=-1;for(let o of e)n.push(o),r+=o.length+1,32==n.length&&(t.push(new ve(n,r)),n=[],r=-1);return r>-1&&t.push(new ve(n,r)),t}}class ye extends me{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let n of e)this.lines+=n.lines}lineInner(e,t,n,r){for(let o=0;;o++){let i=this.children[o],a=r+i.length,s=n+i.lines-1;if((t?s:a)>=e)return i.lineInner(e,t,n,r);r=a+1,n=s+1}}decompose(e,t,n,r){for(let o=0,i=0;i<=t&&o<this.children.length;o++){let a=this.children[o],s=i+a.length;if(e<=s&&t>=i){let o=r&((i<=e?1:0)|(s>=t?2:0));i>=e&&s<=t&&!o?n.push(a):a.decompose(e-i,t-i,n,o)}i=s+1}}replace(e,t,n){if([e,t]=ke(this,e,t),n.lines<this.lines)for(let r=0,o=0;r<this.children.length;r++){let i=this.children[r],a=o+i.length;if(e>=o&&t<=a){let s=i.replace(e-o,t-o,n),l=this.lines-i.lines+s.lines;if(s.lines<l>>4&&s.lines>l>>6){let o=this.children.slice();return o[r]=s,new ye(o,this.length-(t-e)+n.length)}return super.replace(o,a,s)}o=a+1}return super.replace(e,t,n)}sliceString(e,t=this.length,n="\n"){[e,t]=ke(this,e,t);let r="";for(let o=0,i=0;o<this.children.length&&i<=t;o++){let a=this.children[o],s=i+a.length;i>e&&o&&(r+=n),e<s&&t>i&&(r+=a.sliceString(e-i,t-i,n)),i=s+1}return r}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof ye))return 0;let n=0,[r,o,i,a]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;r+=t,o+=t){if(r==i||o==a)return n;let s=this.children[r],l=e.children[o];if(s!=l)return n+s.scanIdentical(l,t);n+=s.length+1}}static from(e,t=e.reduce(((e,t)=>e+t.length+1),-1)){let n=0;for(let h of e)n+=h.lines;if(n<32){let n=[];for(let t of e)t.flatten(n);return new ve(n,t)}let r=Math.max(32,n>>5),o=r<<1,i=r>>1,a=[],s=0,l=-1,u=[];function c(e){let t;if(e.lines>o&&e instanceof ye)for(let n of e.children)c(n);else e.lines>i&&(s>i||!s)?(d(),a.push(e)):e instanceof ve&&s&&(t=u[u.length-1])instanceof ve&&e.lines+t.lines<=32?(s+=e.lines,l+=e.length+1,u[u.length-1]=new ve(t.text.concat(e.text),t.length+1+e.length)):(s+e.lines>r&&d(),s+=e.lines,l+=e.length+1,u.push(e))}function d(){0!=s&&(a.push(1==u.length?u[0]:ye.from(u,l)),l=-1,s=u.length=0)}for(let h of e)c(h);return d(),1==a.length?a[0]:new ye(a,t)}}function be(e){let t=-1;for(let n of e)t+=n.length+1;return t}function _e(e,t,n=0,r=1e9){for(let o=0,i=0,a=!0;i<e.length&&o<=r;i++){let s=e[i],l=o+s.length;l>=n&&(l>r&&(s=s.slice(0,r-o)),o<n&&(s=s.slice(n-o)),a?(t[t.length-1]+=s,a=!1):t.push(s)),o=l+1}return t}function xe(e,t,n){return _e(e,[""],t,n)}me.empty=new ve([""],0);class we{constructor(e,t=1){this.dir=t,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[t>0?1:(e instanceof ve?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,r=this.nodes[n],o=this.offsets[n],i=o>>1,a=r instanceof ve?r.text.length:r.children.length;if(i==(t>0?a:0)){if(0==n)return this.done=!0,this.value="",this;t>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&o)==(t>0?0:1)){if(this.offsets[n]+=t,0==e)return this.lineBreak=!0,this.value="\n",this;e--}else if(r instanceof ve){let o=r.text[i+(t<0?-1:0)];if(this.offsets[n]+=t,o.length>Math.max(0,e))return this.value=0==e?o:t>0?o.slice(e):o.slice(0,o.length-e),this;e-=o.length}else{let o=r.children[i+(t<0?-1:0)];e>o.length?(e-=o.length,this.offsets[n]+=t):(t<0&&this.offsets[n]--,this.nodes.push(o),this.offsets.push(t>0?1:(o instanceof ve?o.text.length:o.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class Oe{constructor(e,t,n){this.value="",this.done=!1,this.cursor=new we(e,t>n?-1:1),this.pos=t>n?e.length:0,this.from=Math.min(t,n),this.to=Math.max(t,n)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let n=t<0?this.pos-this.from:this.to-this.pos;e>n&&(e=n),n-=e;let{value:r}=this.cursor.next(e);return this.pos+=(r.length+e)*t,this.value=r.length<=n?r:t<0?r.slice(r.length-n):r.slice(0,n),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&""!=this.value}}class Se{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:n,value:r}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):n?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=r,this.afterBreak=!1),this}get lineBreak(){return!1}}"undefined"!=typeof Symbol&&(me.prototype[Symbol.iterator]=function(){return this.iter()},we.prototype[Symbol.iterator]=Oe.prototype[Symbol.iterator]=Se.prototype[Symbol.iterator]=function(){return this});class Ae{constructor(e,t,n,r){this.from=e,this.to=t,this.number=n,this.text=r}get length(){return this.to-this.from}}function ke(e,t,n){return t=Math.max(0,Math.min(e.length,t)),[t,Math.max(t,Math.min(e.length,n))]}let Ce="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map((e=>e?parseInt(e,36):1));for(let U_=1;U_<Ce.length;U_++)Ce[U_]+=Ce[U_-1];function Me(e){for(let t=1;t<Ce.length;t+=2)if(Ce[t]>e)return Ce[t-1]<=e;return!1}function Te(e){return e>=127462&&e<=127487}const Pe=8205;function Ie(e,t,n=!0,r=!0){return(n?$e:Ee)(e,t,r)}function $e(e,t,n){if(t==e.length)return t;t&&De(e.charCodeAt(t))&&Re(e.charCodeAt(t-1))&&t--;let r=Ne(e,t);t+=ze(r);while(t<e.length){let o=Ne(e,t);if(r==Pe||o==Pe||n&&Me(o))t+=ze(o),r=o;else{if(!Te(o))break;{let n=0,r=t-2;while(r>=0&&Te(Ne(e,r)))n++,r-=2;if(n%2==0)break;t+=2}}}return t}function Ee(e,t,n){while(t>0){let r=$e(e,t-2,n);if(r<t)return r;t--}return 0}function De(e){return e>=56320&&e<57344}function Re(e){return e>=55296&&e<56320}function Ne(e,t){let n=e.charCodeAt(t);if(!Re(n)||t+1==e.length)return n;let r=e.charCodeAt(t+1);return De(r)?r-56320+(n-55296<<10)+65536:n}function Le(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}function ze(e){return e<65536?1:2}const Ve=/\r\n?|\n/;var Be=function(e){return e[e["Simple"]=0]="Simple",e[e["TrackDel"]=1]="TrackDel",e[e["TrackBefore"]=2]="TrackBefore",e[e["TrackAfter"]=3]="TrackAfter",e}(Be||(Be={}));class je{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let n=this.sections[t+1];e+=n<0?this.sections[t]:n}return e}get empty(){return 0==this.sections.length||2==this.sections.length&&this.sections[1]<0}iterGaps(e){for(let t=0,n=0,r=0;t<this.sections.length;){let o=this.sections[t++],i=this.sections[t++];i<0?(e(n,r,o),r+=o):r+=i,n+=o}}iterChangedRanges(e,t=!1){He(this,e,t)}get invertedDesc(){let e=[];for(let t=0;t<this.sections.length;){let n=this.sections[t++],r=this.sections[t++];r<0?e.push(n,r):e.push(r,n)}return new je(e)}composeDesc(e){return this.empty?e:e.empty?this:Ge(this,e)}mapDesc(e,t=!1){return e.empty?this:Ze(this,e,t)}mapPos(e,t=-1,n=Be.Simple){let r=0,o=0;for(let i=0;i<this.sections.length;){let a=this.sections[i++],s=this.sections[i++],l=r+a;if(s<0){if(l>e)return o+(e-r);o+=a}else{if(n!=Be.Simple&&l>=e&&(n==Be.TrackDel&&r<e&&l>e||n==Be.TrackBefore&&r<e||n==Be.TrackAfter&&l>e))return null;if(l>e||l==e&&t<0&&!a)return e==r||t<0?o:o+s;o+=s}r=l}if(e>r)throw new RangeError(`Position ${e} is out of range for changeset of length ${r}`);return o}touchesRange(e,t=e){for(let n=0,r=0;n<this.sections.length&&r<=t;){let o=this.sections[n++],i=this.sections[n++],a=r+o;if(i>=0&&r<=t&&a>=e)return!(r<e&&a>t)||"cover";r=a}return!1}toString(){let e="";for(let t=0;t<this.sections.length;){let n=this.sections[t++],r=this.sections[t++];e+=(e?" ":"")+n+(r>=0?":"+r:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some((e=>"number"!=typeof e)))throw new RangeError("Invalid JSON representation of ChangeDesc");return new je(e)}static create(e){return new je(e)}}class Qe extends je{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return He(this,((t,n,r,o,i)=>e=e.replace(r,r+(n-t),i)),!1),e}mapDesc(e,t=!1){return Ze(this,e,t,!0)}invert(e){let t=this.sections.slice(),n=[];for(let r=0,o=0;r<t.length;r+=2){let i=t[r],a=t[r+1];if(a>=0){t[r]=a,t[r+1]=i;let s=r>>1;while(n.length<s)n.push(me.empty);n.push(i?e.slice(o,o+i):me.empty)}o+=i}return new Qe(t,n)}compose(e){return this.empty?e:e.empty?this:Ge(this,e,!0)}map(e,t=!1){return e.empty?this:Ze(this,e,t,!0)}iterChanges(e,t=!1){He(this,e,t)}get desc(){return je.create(this.sections)}filter(e){let t=[],n=[],r=[],o=new Xe(this);e:for(let i=0,a=0;;){let s=i==e.length?1e9:e[i++];while(a<s||a==s&&0==o.len){if(o.done)break e;let e=Math.min(o.len,s-a);Fe(r,e,-1);let i=-1==o.ins?-1:0==o.off?o.ins:0;Fe(t,e,i),i>0&&We(n,t,o.text),o.forward(e),a+=e}let l=e[i++];while(a<l){if(o.done)break e;let e=Math.min(o.len,l-a);Fe(t,e,-1),Fe(r,e,-1==o.ins?-1:0==o.off?o.ins:0),o.forward(e),a+=e}}return{changes:new Qe(t,n),filtered:je.create(r)}}toJSON(){let e=[];for(let t=0;t<this.sections.length;t+=2){let n=this.sections[t],r=this.sections[t+1];r<0?e.push(n):0==r?e.push([n]):e.push([n].concat(this.inserted[t>>1].toJSON()))}return e}static of(e,t,n){let r=[],o=[],i=0,a=null;function s(e=!1){if(!e&&!r.length)return;i<t&&Fe(r,t-i,-1);let n=new Qe(r,o);a=a?a.compose(n.map(a)):n,r=[],o=[],i=0}function l(e){if(Array.isArray(e))for(let t of e)l(t);else if(e instanceof Qe){if(e.length!=t)throw new RangeError(`Mismatched change set length (got ${e.length}, expected ${t})`);s(),a=a?a.compose(e.map(a)):e}else{let{from:a,to:l=a,insert:u}=e;if(a>l||a<0||l>t)throw new RangeError(`Invalid change range ${a} to ${l} (in doc of length ${t})`);let c=u?"string"==typeof u?me.of(u.split(n||Ve)):u:me.empty,d=c.length;if(a==l&&0==d)return;a<i&&s(),a>i&&Fe(r,a-i,-1),Fe(r,l-a,d),We(o,r,c),i=l}}return l(e),s(!a),a}static empty(e){return new Qe(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],n=[];for(let r=0;r<e.length;r++){let o=e[r];if("number"==typeof o)t.push(o,-1);else{if(!Array.isArray(o)||"number"!=typeof o[0]||o.some(((e,t)=>t&&"string"!=typeof e)))throw new RangeError("Invalid JSON representation of ChangeSet");if(1==o.length)t.push(o[0],0);else{while(n.length<r)n.push(me.empty);n[r]=me.of(o.slice(1)),t.push(o[0],n[r].length)}}}return new Qe(t,n)}static createSet(e,t){return new Qe(e,t)}}function Fe(e,t,n,r=!1){if(0==t&&n<=0)return;let o=e.length-2;o>=0&&n<=0&&n==e[o+1]?e[o]+=t:0==t&&0==e[o]?e[o+1]+=n:r?(e[o]+=t,e[o+1]+=n):e.push(t,n)}function We(e,t,n){if(0==n.length)return;let r=t.length-2>>1;if(r<e.length)e[e.length-1]=e[e.length-1].append(n);else{while(e.length<r)e.push(me.empty);e.push(n)}}function He(e,t,n){let r=e.inserted;for(let o=0,i=0,a=0;a<e.sections.length;){let s=e.sections[a++],l=e.sections[a++];if(l<0)o+=s,i+=s;else{let u=o,c=i,d=me.empty;for(;;){if(u+=s,c+=l,l&&r&&(d=d.append(r[a-2>>1])),n||a==e.sections.length||e.sections[a+1]<0)break;s=e.sections[a++],l=e.sections[a++]}t(o,u,i,c,d),o=u,i=c}}}function Ze(e,t,n,r=!1){let o=[],i=r?[]:null,a=new Xe(e),s=new Xe(t);for(let l=-1;;)if(-1==a.ins&&-1==s.ins){let e=Math.min(a.len,s.len);Fe(o,e,-1),a.forward(e),s.forward(e)}else if(s.ins>=0&&(a.ins<0||l==a.i||0==a.off&&(s.len<a.len||s.len==a.len&&!n))){let e=s.len;Fe(o,s.ins,-1);while(e){let t=Math.min(a.len,e);a.ins>=0&&l<a.i&&a.len<=t&&(Fe(o,0,a.ins),i&&We(i,o,a.text),l=a.i),a.forward(t),e-=t}s.next()}else{if(!(a.ins>=0)){if(a.done&&s.done)return i?Qe.createSet(o,i):je.create(o);throw new Error("Mismatched change set lengths")}{let e=0,t=a.len;while(t)if(-1==s.ins){let n=Math.min(t,s.len);e+=n,t-=n,s.forward(n)}else{if(!(0==s.ins&&s.len<t))break;t-=s.len,s.next()}Fe(o,e,l<a.i?a.ins:0),i&&l<a.i&&We(i,o,a.text),l=a.i,a.forward(a.len-t)}}}function Ge(e,t,n=!1){let r=[],o=n?[]:null,i=new Xe(e),a=new Xe(t);for(let s=!1;;){if(i.done&&a.done)return o?Qe.createSet(r,o):je.create(r);if(0==i.ins)Fe(r,i.len,0,s),i.next();else if(0!=a.len||a.done){if(i.done||a.done)throw new Error("Mismatched change set lengths");{let e=Math.min(i.len2,a.len),t=r.length;if(-1==i.ins){let t=-1==a.ins?-1:a.off?0:a.ins;Fe(r,e,t,s),o&&t&&We(o,r,a.text)}else-1==a.ins?(Fe(r,i.off?0:i.len,e,s),o&&We(o,r,i.textBit(e))):(Fe(r,i.off?0:i.len,a.off?0:a.ins,s),o&&!a.off&&We(o,r,a.text));s=(i.ins>e||a.ins>=0&&a.len>e)&&(s||r.length>t),i.forward2(e),a.forward(e)}}else Fe(r,0,a.ins,s),o&&We(o,r,a.text),a.next()}}class Xe{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return-2==this.ins}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,t=this.i-2>>1;return t>=e.length?me.empty:e[t]}textBit(e){let{inserted:t}=this.set,n=this.i-2>>1;return n>=t.length&&!e?me.empty:t[n].slice(this.off,null==e?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){-1==this.ins?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class Ue{constructor(e,t,n){this.from=e,this.to=t,this.flags=n}get anchor(){return 32&this.flags?this.to:this.from}get head(){return 32&this.flags?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return 8&this.flags?-1:16&this.flags?1:0}get bidiLevel(){let e=7&this.flags;return 7==e?null:e}get goalColumn(){let e=this.flags>>6;return 16777215==e?void 0:e}map(e,t=-1){let n,r;return this.empty?n=r=e.mapPos(this.from,t):(n=e.mapPos(this.from,1),r=e.mapPos(this.to,-1)),n==this.from&&r==this.to?this:new Ue(n,r,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return Ye.range(e,t);let n=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return Ye.range(this.anchor,n)}eq(e,t=!1){return this.anchor==e.anchor&&this.head==e.head&&(!t||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||"number"!=typeof e.anchor||"number"!=typeof e.head)throw new RangeError("Invalid JSON representation for SelectionRange");return Ye.range(e.anchor,e.head)}static create(e,t,n){return new Ue(e,t,n)}}class Ye{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:Ye.create(this.ranges.map((n=>n.map(e,t))),this.mainIndex)}eq(e,t=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let n=0;n<this.ranges.length;n++)if(!this.ranges[n].eq(e.ranges[n],t))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return 1==this.ranges.length?this:new Ye([this.main],0)}addRange(e,t=!0){return Ye.create([e].concat(this.ranges),t?0:this.mainIndex+1)}replaceRange(e,t=this.mainIndex){let n=this.ranges.slice();return n[t]=e,Ye.create(n,this.mainIndex)}toJSON(){return{ranges:this.ranges.map((e=>e.toJSON())),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||"number"!=typeof e.main||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new Ye(e.ranges.map((e=>Ue.fromJSON(e))),e.main)}static single(e,t=e){return new Ye([Ye.range(e,t)],0)}static create(e,t=0){if(0==e.length)throw new RangeError("A selection needs at least one range");for(let n=0,r=0;r<e.length;r++){let o=e[r];if(o.empty?o.from<=n:o.from<n)return Ye.normalized(e.slice(),t);n=o.to}return new Ye(e,t)}static cursor(e,t=0,n,r){return Ue.create(e,e,(0==t?0:t<0?8:16)|(null==n?7:Math.min(6,n))|(null!==r&&void 0!==r?r:16777215)<<6)}static range(e,t,n,r){let o=(null!==n&&void 0!==n?n:16777215)<<6|(null==r?7:Math.min(6,r));return t<e?Ue.create(t,e,48|o):Ue.create(e,t,(t>e?8:0)|o)}static normalized(e,t=0){let n=e[t];e.sort(((e,t)=>e.from-t.from)),t=e.indexOf(n);for(let r=1;r<e.length;r++){let n=e[r],o=e[r-1];if(n.empty?n.from<=o.to:n.from<o.to){let i=o.from,a=Math.max(n.to,o.to);r<=t&&t--,e.splice(--r,2,n.anchor>n.head?Ye.range(a,i):Ye.range(i,a))}}return new Ye(e,t)}}function qe(e,t){for(let n of e.ranges)if(n.to>t)throw new RangeError("Selection points outside of document")}let Ke=0;class Je{constructor(e,t,n,r,o){this.combine=e,this.compareInput=t,this.compare=n,this.isStatic=r,this.id=Ke++,this.default=e([]),this.extensions="function"==typeof o?o(this):o}get reader(){return this}static define(e={}){return new Je(e.combine||(e=>e),e.compareInput||((e,t)=>e===t),e.compare||(e.combine?(e,t)=>e===t:et),!!e.static,e.enables)}of(e){return new tt([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new tt(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new tt(e,this,2,t)}from(e,t){return t||(t=e=>e),this.compute([e],(n=>t(n.field(e))))}}function et(e,t){return e==t||e.length==t.length&&e.every(((e,n)=>e===t[n]))}class tt{constructor(e,t,n,r){this.dependencies=e,this.facet=t,this.type=n,this.value=r,this.id=Ke++}dynamicSlot(e){var t;let n=this.value,r=this.facet.compareInput,o=this.id,i=e[o]>>1,a=2==this.type,s=!1,l=!1,u=[];for(let c of this.dependencies)"doc"==c?s=!0:"selection"==c?l=!0:0==(1&(null!==(t=e[c.id])&&void 0!==t?t:1))&&u.push(e[c.id]);return{create(e){return e.values[i]=n(e),1},update(e,t){if(s&&t.docChanged||l&&(t.docChanged||t.selection)||rt(e,u)){let t=n(e);if(a?!nt(t,e.values[i],r):!r(t,e.values[i]))return e.values[i]=t,1}return 0},reconfigure:(e,t)=>{let s,l=t.config.address[o];if(null!=l){let o=mt(t,l);if(this.dependencies.every((n=>n instanceof Je?t.facet(n)===e.facet(n):!(n instanceof at)||t.field(n,!1)==e.field(n,!1)))||(a?nt(s=n(e),o,r):r(s=n(e),o)))return e.values[i]=o,0}else s=n(e);return e.values[i]=s,1}}}}function nt(e,t,n){if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1;return!0}function rt(e,t){let n=!1;for(let r of t)1&gt(e,r)&&(n=!0);return n}function ot(e,t,n){let r=n.map((t=>e[t.id])),o=n.map((e=>e.type)),i=r.filter((e=>!(1&e))),a=e[t.id]>>1;function s(e){let n=[];for(let t=0;t<r.length;t++){let i=mt(e,r[t]);if(2==o[t])for(let e of i)n.push(e);else n.push(i)}return t.combine(n)}return{create(e){for(let t of r)gt(e,t);return e.values[a]=s(e),1},update(e,n){if(!rt(e,i))return 0;let r=s(e);return t.compare(r,e.values[a])?0:(e.values[a]=r,1)},reconfigure(e,o){let i=rt(e,r),l=o.config.facets[t.id],u=o.facet(t);if(l&&!i&&et(n,l))return e.values[a]=u,0;let c=s(e);return t.compare(c,u)?(e.values[a]=u,0):(e.values[a]=c,1)}}}const it=Je.define({static:!0});class at{constructor(e,t,n,r,o){this.id=e,this.createF=t,this.updateF=n,this.compareF=r,this.spec=o,this.provides=void 0}static define(e){let t=new at(Ke++,e.create,e.update,e.compare||((e,t)=>e===t),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(it).find((e=>e.field==this));return((null===t||void 0===t?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:e=>(e.values[t]=this.create(e),1),update:(e,n)=>{let r=e.values[t],o=this.updateF(r,n);return this.compareF(r,o)?0:(e.values[t]=o,1)},reconfigure:(e,n)=>null!=n.config.address[this.id]?(e.values[t]=n.field(this),0):(e.values[t]=this.create(e),1)}}init(e){return[this,it.of({field:this,create:e})]}get extension(){return this}}const st={lowest:4,low:3,default:2,high:1,highest:0};function lt(e){return t=>new ct(t,e)}const ut={highest:lt(st.highest),high:lt(st.high),default:lt(st.default),low:lt(st.low),lowest:lt(st.lowest)};class ct{constructor(e,t){this.inner=e,this.prec=t}}class dt{of(e){return new ht(this,e)}reconfigure(e){return dt.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class ht{constructor(e,t){this.compartment=e,this.inner=t}}class pt{constructor(e,t,n,r,o,i){this.base=e,this.compartments=t,this.dynamicSlots=n,this.address=r,this.staticValues=o,this.facets=i,this.statusTemplate=[];while(this.statusTemplate.length<n.length)this.statusTemplate.push(0)}staticFacet(e){let t=this.address[e.id];return null==t?e.default:this.staticValues[t>>1]}static resolve(e,t,n){let r=[],o=Object.create(null),i=new Map;for(let d of ft(e,t,i))d instanceof at?r.push(d):(o[d.facet.id]||(o[d.facet.id]=[])).push(d);let a=Object.create(null),s=[],l=[];for(let d of r)a[d.id]=l.length<<1,l.push((e=>d.slot(e)));let u=null===n||void 0===n?void 0:n.config.facets;for(let d in o){let e=o[d],t=e[0].facet,r=u&&u[d]||[];if(e.every((e=>0==e.type)))if(a[t.id]=s.length<<1|1,et(r,e))s.push(n.facet(t));else{let r=t.combine(e.map((e=>e.value)));s.push(n&&t.compare(r,n.facet(t))?n.facet(t):r)}else{for(let t of e)0==t.type?(a[t.id]=s.length<<1|1,s.push(t.value)):(a[t.id]=l.length<<1,l.push((e=>t.dynamicSlot(e))));a[t.id]=l.length<<1,l.push((n=>ot(n,t,e)))}}let c=l.map((e=>e(a)));return new pt(e,i,c,a,s,o)}}function ft(e,t,n){let r=[[],[],[],[],[]],o=new Map;function i(e,a){let s=o.get(e);if(null!=s){if(s<=a)return;let t=r[s].indexOf(e);t>-1&&r[s].splice(t,1),e instanceof ht&&n.delete(e.compartment)}if(o.set(e,a),Array.isArray(e))for(let t of e)i(t,a);else if(e instanceof ht){if(n.has(e.compartment))throw new RangeError("Duplicate use of compartment in extensions");let r=t.get(e.compartment)||e.inner;n.set(e.compartment,r),i(r,a)}else if(e instanceof ct)i(e.inner,e.prec);else if(e instanceof at)r[a].push(e),e.provides&&i(e.provides,a);else if(e instanceof tt)r[a].push(e),e.facet.extensions&&i(e.facet.extensions,st.default);else{let t=e.extension;if(!t)throw new Error(`Unrecognized extension value in extension set (${e}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);i(t,a)}}return i(e,st.default),r.reduce(((e,t)=>e.concat(t)))}function gt(e,t){if(1&t)return 2;let n=t>>1,r=e.status[n];if(4==r)throw new Error("Cyclic dependency between fields and/or facets");if(2&r)return r;e.status[n]=4;let o=e.computeSlot(e,e.config.dynamicSlots[n]);return e.status[n]=2|o}function mt(e,t){return 1&t?e.config.staticValues[t>>1]:e.values[t>>1]}const vt=Je.define(),yt=Je.define({combine:e=>e.some((e=>e)),static:!0}),bt=Je.define({combine:e=>e.length?e[0]:void 0,static:!0}),_t=Je.define(),xt=Je.define(),wt=Je.define(),Ot=Je.define({combine:e=>!!e.length&&e[0]});class St{constructor(e,t){this.type=e,this.value=t}static define(){return new At}}class At{of(e){return new St(this,e)}}class kt{constructor(e){this.map=e}of(e){return new Ct(this,e)}}class Ct{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return void 0===t?void 0:t==this.value?this:new Ct(this.type,t)}is(e){return this.type==e}static define(e={}){return new kt(e.map||(e=>e))}static mapEffects(e,t){if(!e.length)return e;let n=[];for(let r of e){let e=r.map(t);e&&n.push(e)}return n}}Ct.reconfigure=Ct.define(),Ct.appendConfig=Ct.define();class Mt{constructor(e,t,n,r,o,i){this.startState=e,this.changes=t,this.selection=n,this.effects=r,this.annotations=o,this.scrollIntoView=i,this._doc=null,this._state=null,n&&qe(n,t.newLength),o.some((e=>e.type==Mt.time))||(this.annotations=o.concat(Mt.time.of(Date.now())))}static create(e,t,n,r,o,i){return new Mt(e,t,n,r,o,i)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(Mt.userEvent);return!(!t||!(t==e||t.length>e.length&&t.slice(0,e.length)==e&&"."==t[e.length]))}}function Tt(e,t){let n=[];for(let r=0,o=0;;){let i,a;if(r<e.length&&(o==t.length||t[o]>=e[r]))i=e[r++],a=e[r++];else{if(!(o<t.length))return n;i=t[o++],a=t[o++]}!n.length||n[n.length-1]<i?n.push(i,a):n[n.length-1]<a&&(n[n.length-1]=a)}}function Pt(e,t,n){var r;let o,i,a;return n?(o=t.changes,i=Qe.empty(t.changes.length),a=e.changes.compose(t.changes)):(o=t.changes.map(e.changes),i=e.changes.mapDesc(t.changes,!0),a=e.changes.compose(o)),{changes:a,selection:t.selection?t.selection.map(i):null===(r=e.selection)||void 0===r?void 0:r.map(o),effects:Ct.mapEffects(e.effects,o).concat(Ct.mapEffects(t.effects,i)),annotations:e.annotations.length?e.annotations.concat(t.annotations):t.annotations,scrollIntoView:e.scrollIntoView||t.scrollIntoView}}function It(e,t,n){let r=t.selection,o=Nt(t.annotations);return t.userEvent&&(o=o.concat(Mt.userEvent.of(t.userEvent))),{changes:t.changes instanceof Qe?t.changes:Qe.of(t.changes||[],n,e.facet(bt)),selection:r&&(r instanceof Ye?r:Ye.single(r.anchor,r.head)),effects:Nt(t.effects),annotations:o,scrollIntoView:!!t.scrollIntoView}}function $t(e,t,n){let r=It(e,t.length?t[0]:{},e.doc.length);t.length&&!1===t[0].filter&&(n=!1);for(let i=1;i<t.length;i++){!1===t[i].filter&&(n=!1);let o=!!t[i].sequential;r=Pt(r,It(e,t[i],o?r.changes.newLength:e.doc.length),o)}let o=Mt.create(e,r.changes,r.selection,r.effects,r.annotations,r.scrollIntoView);return Dt(n?Et(o):o)}function Et(e){let t=e.startState,n=!0;for(let o of t.facet(_t)){let t=o(e);if(!1===t){n=!1;break}Array.isArray(t)&&(n=!0===n?t:Tt(n,t))}if(!0!==n){let r,o;if(!1===n)o=e.changes.invertedDesc,r=Qe.empty(t.doc.length);else{let t=e.changes.filter(n);r=t.changes,o=t.filtered.mapDesc(t.changes).invertedDesc}e=Mt.create(t,r,e.selection&&e.selection.map(o),Ct.mapEffects(e.effects,o),e.annotations,e.scrollIntoView)}let r=t.facet(xt);for(let o=r.length-1;o>=0;o--){let n=r[o](e);e=n instanceof Mt?n:Array.isArray(n)&&1==n.length&&n[0]instanceof Mt?n[0]:$t(t,Nt(n),!1)}return e}function Dt(e){let t=e.startState,n=t.facet(wt),r=e;for(let o=n.length-1;o>=0;o--){let i=n[o](e);i&&Object.keys(i).length&&(r=Pt(r,It(t,i,e.changes.newLength),!0))}return r==e?e:Mt.create(t,e.changes,e.selection,r.effects,r.annotations,r.scrollIntoView)}Mt.time=St.define(),Mt.userEvent=St.define(),Mt.addToHistory=St.define(),Mt.remote=St.define();const Rt=[];function Nt(e){return null==e?Rt:Array.isArray(e)?e:[e]}var Lt=function(e){return e[e["Word"]=0]="Word",e[e["Space"]=1]="Space",e[e["Other"]=2]="Other",e}(Lt||(Lt={}));const zt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let Vt;try{Vt=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(X_){}function Bt(e){if(Vt)return Vt.test(e);for(let t=0;t<e.length;t++){let n=e[t];if(/\w/.test(n)||n>"€"&&(n.toUpperCase()!=n.toLowerCase()||zt.test(n)))return!0}return!1}function jt(e){return t=>{if(!/\S/.test(t))return Lt.Space;if(Bt(t))return Lt.Word;for(let n=0;n<e.length;n++)if(t.indexOf(e[n])>-1)return Lt.Word;return Lt.Other}}class Qt{constructor(e,t,n,r,o,i){this.config=e,this.doc=t,this.selection=n,this.values=r,this.status=e.statusTemplate.slice(),this.computeSlot=o,i&&(i._state=this);for(let a=0;a<this.config.dynamicSlots.length;a++)gt(this,a<<1);this.computeSlot=null}field(e,t=!0){let n=this.config.address[e.id];if(null!=n)return gt(this,n),mt(this,n);if(t)throw new RangeError("Field is not present in this state")}update(...e){return $t(this,e,!0)}applyTransaction(e){let t,n=this.config,{base:r,compartments:o}=n;for(let a of e.effects)a.is(dt.reconfigure)?(n&&(o=new Map,n.compartments.forEach(((e,t)=>o.set(t,e))),n=null),o.set(a.value.compartment,a.value.extension)):a.is(Ct.reconfigure)?(n=null,r=a.value):a.is(Ct.appendConfig)&&(n=null,r=Nt(r).concat(a.value));if(n)t=e.startState.values.slice();else{n=pt.resolve(r,o,this);let e=new Qt(n,this.doc,this.selection,n.dynamicSlots.map((()=>null)),((e,t)=>t.reconfigure(e,this)),null);t=e.values}let i=e.startState.facet(yt)?e.newSelection:e.newSelection.asSingle();new Qt(n,e.newDoc,i,t,((t,n)=>n.update(t,e)),e)}replaceSelection(e){return"string"==typeof e&&(e=this.toText(e)),this.changeByRange((t=>({changes:{from:t.from,to:t.to,insert:e},range:Ye.cursor(t.from+e.length)})))}changeByRange(e){let t=this.selection,n=e(t.ranges[0]),r=this.changes(n.changes),o=[n.range],i=Nt(n.effects);for(let a=1;a<t.ranges.length;a++){let n=e(t.ranges[a]),s=this.changes(n.changes),l=s.map(r);for(let e=0;e<a;e++)o[e]=o[e].map(l);let u=r.mapDesc(s,!0);o.push(n.range.map(u)),r=r.compose(l),i=Ct.mapEffects(i,l).concat(Ct.mapEffects(Nt(n.effects),u))}return{changes:r,selection:Ye.create(o,t.mainIndex),effects:i}}changes(e=[]){return e instanceof Qe?e:Qe.of(e,this.doc.length,this.facet(Qt.lineSeparator))}toText(e){return me.of(e.split(this.facet(Qt.lineSeparator)||Ve))}sliceDoc(e=0,t=this.doc.length){return this.doc.sliceString(e,t,this.lineBreak)}facet(e){let t=this.config.address[e.id];return null==t?e.default:(gt(this,t),mt(this,t))}toJSON(e){let t={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let n in e){let r=e[n];r instanceof at&&null!=this.config.address[r.id]&&(t[n]=r.spec.toJSON(this.field(e[n]),this))}return t}static fromJSON(e,t={},n){if(!e||"string"!=typeof e.doc)throw new RangeError("Invalid JSON representation for EditorState");let r=[];if(n)for(let o in n)if(Object.prototype.hasOwnProperty.call(e,o)){let t=n[o],i=e[o];r.push(t.init((e=>t.spec.fromJSON(i,e))))}return Qt.create({doc:e.doc,selection:Ye.fromJSON(e.selection),extensions:t.extensions?r.concat([t.extensions]):r})}static create(e={}){let t=pt.resolve(e.extensions||[],new Map),n=e.doc instanceof me?e.doc:me.of((e.doc||"").split(t.staticFacet(Qt.lineSeparator)||Ve)),r=e.selection?e.selection instanceof Ye?e.selection:Ye.single(e.selection.anchor,e.selection.head):Ye.single(0);return qe(r,n.length),t.staticFacet(yt)||(r=r.asSingle()),new Qt(t,n,r,t.dynamicSlots.map((()=>null)),((e,t)=>t.create(e)),null)}get tabSize(){return this.facet(Qt.tabSize)}get lineBreak(){return this.facet(Qt.lineSeparator)||"\n"}get readOnly(){return this.facet(Ot)}phrase(e,...t){for(let n of this.facet(Qt.phrases))if(Object.prototype.hasOwnProperty.call(n,e)){e=n[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,((e,n)=>{if("$"==n)return"$";let r=+(n||1);return!r||r>t.length?e:t[r-1]}))),e}languageDataAt(e,t,n=-1){let r=[];for(let o of this.facet(vt))for(let i of o(this,t,n))Object.prototype.hasOwnProperty.call(i,e)&&r.push(i[e]);return r}charCategorizer(e){return jt(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:t,from:n,length:r}=this.doc.lineAt(e),o=this.charCategorizer(e),i=e-n,a=e-n;while(i>0){let e=Ie(t,i,!1);if(o(t.slice(e,i))!=Lt.Word)break;i=e}while(a<r){let e=Ie(t,a);if(o(t.slice(a,e))!=Lt.Word)break;a=e}return i==a?null:Ye.range(i+n,a+n)}}function Ft(e,t,n={}){let r={};for(let o of e)for(let e of Object.keys(o)){let t=o[e],i=r[e];if(void 0===i)r[e]=t;else if(i===t||void 0===t);else{if(!Object.hasOwnProperty.call(n,e))throw new Error("Config merge conflict for field "+e);r[e]=n[e](i,t)}}for(let o in t)void 0===r[o]&&(r[o]=t[o]);return r}Qt.allowMultipleSelections=yt,Qt.tabSize=Je.define({combine:e=>e.length?e[0]:4}),Qt.lineSeparator=bt,Qt.readOnly=Ot,Qt.phrases=Je.define({compare(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length==r.length&&n.every((n=>e[n]==t[n]))}}),Qt.languageData=vt,Qt.changeFilter=_t,Qt.transactionFilter=xt,Qt.transactionExtender=wt,dt.reconfigure=Ct.define();class Wt{eq(e){return this==e}range(e,t=e){return Ht.create(e,t,this)}}Wt.prototype.startSide=Wt.prototype.endSide=0,Wt.prototype.point=!1,Wt.prototype.mapMode=Be.TrackDel;class Ht{constructor(e,t,n){this.from=e,this.to=t,this.value=n}static create(e,t,n){return new Ht(e,t,n)}}function Zt(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}class Gt{constructor(e,t,n,r){this.from=e,this.to=t,this.value=n,this.maxPoint=r}get length(){return this.to[this.to.length-1]}findIndex(e,t,n,r=0){let o=n?this.to:this.from;for(let i=r,a=o.length;;){if(i==a)return i;let r=i+a>>1,s=o[r]-e||(n?this.value[r].endSide:this.value[r].startSide)-t;if(r==i)return s>=0?i:a;s>=0?a=r:i=r+1}}between(e,t,n,r){for(let o=this.findIndex(t,-1e9,!0),i=this.findIndex(n,1e9,!1,o);o<i;o++)if(!1===r(this.from[o]+e,this.to[o]+e,this.value[o]))return!1}map(e,t){let n=[],r=[],o=[],i=-1,a=-1;for(let s=0;s<this.value.length;s++){let l,u,c=this.value[s],d=this.from[s]+e,h=this.to[s]+e;if(d==h){let e=t.mapPos(d,c.startSide,c.mapMode);if(null==e)continue;if(l=u=e,c.startSide!=c.endSide&&(u=t.mapPos(d,c.endSide),u<l))continue}else if(l=t.mapPos(d,c.startSide),u=t.mapPos(h,c.endSide),l>u||l==u&&c.startSide>0&&c.endSide<=0)continue;(u-l||c.endSide-c.startSide)<0||(i<0&&(i=l),c.point&&(a=Math.max(a,u-l)),n.push(c),r.push(l-i),o.push(u-i))}return{mapped:n.length?new Gt(r,o,n,a):null,pos:i}}}class Xt{constructor(e,t,n,r){this.chunkPos=e,this.chunk=t,this.nextLayer=n,this.maxPoint=r}static create(e,t,n,r){return new Xt(e,t,n,r)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:n=!1,filterFrom:r=0,filterTo:o=this.length}=e,i=e.filter;if(0==t.length&&!i)return this;if(n&&(t=t.slice().sort(Zt)),this.isEmpty)return t.length?Xt.of(t):this;let a=new Kt(this,null,-1).goto(0),s=0,l=[],u=new Yt;while(a.value||s<t.length)if(s<t.length&&(a.from-t[s].from||a.startSide-t[s].value.startSide)>=0){let e=t[s++];u.addInner(e.from,e.to,e.value)||l.push(e)}else 1==a.rangeIndex&&a.chunkIndex<this.chunk.length&&(s==t.length||this.chunkEnd(a.chunkIndex)<t[s].from)&&(!i||r>this.chunkEnd(a.chunkIndex)||o<this.chunkPos[a.chunkIndex])&&u.addChunk(this.chunkPos[a.chunkIndex],this.chunk[a.chunkIndex])?a.nextChunk():((!i||r>a.to||o<a.from||i(a.from,a.to,a.value))&&(u.addInner(a.from,a.to,a.value)||l.push(Ht.create(a.from,a.to,a.value))),a.next());return u.finishInner(this.nextLayer.isEmpty&&!l.length?Xt.empty:this.nextLayer.update({add:l,filter:i,filterFrom:r,filterTo:o}))}map(e){if(e.empty||this.isEmpty)return this;let t=[],n=[],r=-1;for(let i=0;i<this.chunk.length;i++){let o=this.chunkPos[i],a=this.chunk[i],s=e.touchesRange(o,o+a.length);if(!1===s)r=Math.max(r,a.maxPoint),t.push(a),n.push(e.mapPos(o));else if(!0===s){let{mapped:i,pos:s}=a.map(o,e);i&&(r=Math.max(r,i.maxPoint),t.push(i),n.push(s))}}let o=this.nextLayer.map(e);return 0==t.length?o:new Xt(n,t,o||Xt.empty,r)}between(e,t,n){if(!this.isEmpty){for(let r=0;r<this.chunk.length;r++){let o=this.chunkPos[r],i=this.chunk[r];if(t>=o&&e<=o+i.length&&!1===i.between(o,e-o,t-o,n))return}this.nextLayer.between(e,t,n)}}iter(e=0){return Jt.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return Jt.from(e).goto(t)}static compare(e,t,n,r,o=-1){let i=e.filter((e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=o)),a=t.filter((e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=o)),s=qt(i,a,n),l=new tn(i,s,o),u=new tn(a,s,o);n.iterGaps(((e,t,n)=>nn(l,e,u,t,n,r))),n.empty&&0==n.length&&nn(l,0,u,0,0,r)}static eq(e,t,n=0,r){null==r&&(r=999999999);let o=e.filter((e=>!e.isEmpty&&t.indexOf(e)<0)),i=t.filter((t=>!t.isEmpty&&e.indexOf(t)<0));if(o.length!=i.length)return!1;if(!o.length)return!0;let a=qt(o,i),s=new tn(o,a,0).goto(n),l=new tn(i,a,0).goto(n);for(;;){if(s.to!=l.to||!rn(s.active,l.active)||s.point&&(!l.point||!s.point.eq(l.point)))return!1;if(s.to>r)return!0;s.next(),l.next()}}static spans(e,t,n,r,o=-1){let i=new tn(e,null,o).goto(t),a=t,s=i.openStart;for(;;){let e=Math.min(i.to,n);if(i.point){let n=i.activeForPoint(i.to),o=i.pointFrom<t?n.length+1:i.point.startSide<0?n.length:Math.min(n.length,s);r.point(a,e,i.point,n,o,i.pointRank),s=Math.min(i.openEnd(e),n.length)}else e>a&&(r.span(a,e,i.active,s),s=i.openEnd(e));if(i.to>n)return s+(i.point&&i.to>n?1:0);a=i.to,i.next()}}static of(e,t=!1){let n=new Yt;for(let r of e instanceof Ht?[e]:t?Ut(e):e)n.add(r.from,r.to,r.value);return n.finish()}static join(e){if(!e.length)return Xt.empty;let t=e[e.length-1];for(let n=e.length-2;n>=0;n--)for(let r=e[n];r!=Xt.empty;r=r.nextLayer)t=new Xt(r.chunkPos,r.chunk,t,Math.max(r.maxPoint,t.maxPoint));return t}}function Ut(e){if(e.length>1)for(let t=e[0],n=1;n<e.length;n++){let r=e[n];if(Zt(t,r)>0)return e.slice().sort(Zt);t=r}return e}Xt.empty=new Xt([],[],null,-1),Xt.empty.nextLayer=Xt.empty;class Yt{finishChunk(e){this.chunks.push(new Gt(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,t,n){this.addInner(e,t,n)||(this.nextLayer||(this.nextLayer=new Yt)).add(e,t,n)}addInner(e,t,n){let r=e-this.lastTo||n.startSide-this.last.endSide;if(r<=0&&(e-this.lastFrom||n.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return!(r<0)&&(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=n,this.lastFrom=e,this.lastTo=t,this.value.push(n),n.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),!0)}addChunk(e,t){if((e-this.lastTo||t.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let n=t.value.length-1;return this.last=t.value[n],this.lastFrom=t.from[n]+e,this.lastTo=t.to[n]+e,!0}finish(){return this.finishInner(Xt.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return e;let t=Xt.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}function qt(e,t,n){let r=new Map;for(let i of e)for(let e=0;e<i.chunk.length;e++)i.chunk[e].maxPoint<=0&&r.set(i.chunk[e],i.chunkPos[e]);let o=new Set;for(let i of t)for(let e=0;e<i.chunk.length;e++){let t=r.get(i.chunk[e]);null==t||(n?n.mapPos(t):t)!=i.chunkPos[e]||(null===n||void 0===n?void 0:n.touchesRange(t,t+i.chunk[e].length))||o.add(i.chunk[e])}return o}class Kt{constructor(e,t,n,r=0){this.layer=e,this.skip=t,this.minPoint=n,this.rank=r}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(e,t=-1e9){return this.chunkIndex=this.rangeIndex=0,this.gotoInner(e,t,!1),this}gotoInner(e,t,n){while(this.chunkIndex<this.layer.chunk.length){let t=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(t)||this.layer.chunkEnd(this.chunkIndex)<e||t.maxPoint<this.minPoint))break;this.chunkIndex++,n=!1}if(this.chunkIndex<this.layer.chunk.length){let r=this.layer.chunk[this.chunkIndex].findIndex(e-this.layer.chunkPos[this.chunkIndex],t,!0);(!n||this.rangeIndex<r)&&this.setRangeIndex(r)}this.next()}forward(e,t){(this.to-e||this.endSide-t)<0&&this.gotoInner(e,t,!0)}next(){for(;;){if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}{let e=this.layer.chunkPos[this.chunkIndex],t=this.layer.chunk[this.chunkIndex],n=e+t.from[this.rangeIndex];if(this.from=n,this.to=e+t.to[this.rangeIndex],this.value=t.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)while(this.chunkIndex<this.layer.chunk.length&&this.skip.has(this.layer.chunk[this.chunkIndex]))this.chunkIndex++;this.rangeIndex=0}else this.rangeIndex=e}nextChunk(){this.chunkIndex++,this.rangeIndex=0,this.next()}compare(e){return this.from-e.from||this.startSide-e.startSide||this.rank-e.rank||this.to-e.to||this.endSide-e.endSide}}class Jt{constructor(e){this.heap=e}static from(e,t=null,n=-1){let r=[];for(let o=0;o<e.length;o++)for(let i=e[o];!i.isEmpty;i=i.nextLayer)i.maxPoint>=n&&r.push(new Kt(i,t,n,o));return 1==r.length?r[0]:new Jt(r)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let n of this.heap)n.goto(e,t);for(let n=this.heap.length>>1;n>=0;n--)en(this.heap,n);return this.next(),this}forward(e,t){for(let n of this.heap)n.forward(e,t);for(let n=this.heap.length>>1;n>=0;n--)en(this.heap,n);(this.to-e||this.value.endSide-t)<0&&this.next()}next(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),en(this.heap,0)}}}function en(e,t){for(let n=e[t];;){let r=1+(t<<1);if(r>=e.length)break;let o=e[r];if(r+1<e.length&&o.compare(e[r+1])>=0&&(o=e[r+1],r++),n.compare(o)<0)break;e[r]=n,e[t]=o,t=r}}class tn{constructor(e,t,n){this.minPoint=n,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=Jt.from(e,t,n)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){while(this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t)<0)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){on(this.active,e),on(this.activeTo,e),on(this.activeRank,e),this.minActive=sn(this.active,this.activeTo)}addActive(e){let t=0,{value:n,to:r,rank:o}=this.cursor;while(t<this.activeRank.length&&(o-this.activeRank[t]||r-this.activeTo[t])>0)t++;an(this.active,t,n),an(this.activeTo,t,r),an(this.activeRank,t,o),e&&an(e,t,this.cursor.from),this.minActive=sn(this.active,this.activeTo)}next(){let e=this.to,t=this.point;this.point=null;let n=this.openStart<0?[]:null;for(;;){let r=this.minActive;if(r>-1&&(this.activeTo[r]-this.cursor.from||this.active[r].endSide-this.cursor.startSide)<0){if(this.activeTo[r]>e){this.to=this.activeTo[r],this.endSide=this.active[r].endSide;break}this.removeActive(r),n&&on(n,r)}else{if(!this.cursor.value){this.to=this.endSide=1e9;break}if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}{let e=this.cursor.value;if(e.point){if(!(t&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)){this.point=e,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=e.endSide,this.cursor.next(),this.forward(this.to,this.endSide);break}this.cursor.next()}else this.addActive(n),this.cursor.next()}}}if(n){this.openStart=0;for(let t=n.length-1;t>=0&&n[t]<e;t--)this.openStart++}}activeForPoint(e){if(!this.active.length)return this.active;let t=[];for(let n=this.active.length-1;n>=0;n--){if(this.activeRank[n]<this.pointRank)break;(this.activeTo[n]>e||this.activeTo[n]==e&&this.active[n].endSide>=this.point.endSide)&&t.push(this.active[n])}return t.reverse()}openEnd(e){let t=0;for(let n=this.activeTo.length-1;n>=0&&this.activeTo[n]>e;n--)t++;return t}}function nn(e,t,n,r,o,i){e.goto(t),n.goto(r);let a=r+o,s=r,l=r-t;for(;;){let t=e.to+l-n.to||e.endSide-n.endSide,r=t<0?e.to+l:n.to,o=Math.min(r,a);if(e.point||n.point?e.point&&n.point&&(e.point==n.point||e.point.eq(n.point))&&rn(e.activeForPoint(e.to),n.activeForPoint(n.to))||i.comparePoint(s,o,e.point,n.point):o>s&&!rn(e.active,n.active)&&i.compareRange(s,o,e.active,n.active),r>a)break;s=r,t<=0&&e.next(),t>=0&&n.next()}}function rn(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n]&&!e[n].eq(t[n]))return!1;return!0}function on(e,t){for(let n=t,r=e.length-1;n<r;n++)e[n]=e[n+1];e.pop()}function an(e,t,n){for(let r=e.length-1;r>=t;r--)e[r+1]=e[r];e[t]=n}function sn(e,t){let n=-1,r=1e9;for(let o=0;o<t.length;o++)(t[o]-r||e[o].endSide-e[n].endSide)<0&&(n=o,r=t[o]);return n}function ln(e,t,n=e.length){let r=0;for(let o=0;o<n;)9==e.charCodeAt(o)?(r+=t-r%t,o++):(r++,o=Ie(e,o));return r}function un(e,t,n,r){for(let o=0,i=0;;){if(i>=t)return o;if(o==e.length)break;i+=9==e.charCodeAt(o)?n-i%n:1,o=Ie(e,o)}return!0===r?-1:e.length}const cn="ͼ",dn="undefined"==typeof Symbol?"__"+cn:Symbol.for(cn),hn="undefined"==typeof Symbol?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),pn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:{};class fn{constructor(e,t){this.rules=[];let{finish:n}=t||{};function r(e){return/^@/.test(e)?[e]:e.split(/,\s*/)}function o(e,t,i,a){let s=[],l=/^@(\w+)\b/.exec(e[0]),u=l&&"keyframes"==l[1];if(l&&null==t)return i.push(e[0]+";");for(let n in t){let a=t[n];if(/&/.test(n))o(n.split(/,\s*/).map((t=>e.map((e=>t.replace(/&/,e))))).reduce(((e,t)=>e.concat(t))),a,i);else if(a&&"object"==typeof a){if(!l)throw new RangeError("The value of a property ("+n+") should be a primitive value.");o(r(n),a,s,u)}else null!=a&&s.push(n.replace(/_.*/,"").replace(/[A-Z]/g,(e=>"-"+e.toLowerCase()))+": "+a+";")}(s.length||u)&&i.push((!n||l||a?e:e.map(n)).join(", ")+" {"+s.join(" ")+"}")}for(let i in e)o(r(i),e[i],this.rules)}getRules(){return this.rules.join("\n")}static newName(){let e=pn[dn]||1;return pn[dn]=e+1,cn+e.toString(36)}static mount(e,t,n){let r=e[hn],o=n&&n.nonce;r?o&&r.setNonce(o):r=new mn(e,o),r.mount(Array.isArray(t)?t:[t],e)}}let gn=new Map;class mn{constructor(e,t){let n=e.ownerDocument||e,r=n.defaultView;if(!e.head&&e.adoptedStyleSheets&&r.CSSStyleSheet){let t=gn.get(n);if(t)return e[hn]=t;this.sheet=new r.CSSStyleSheet,gn.set(n,this)}else this.styleTag=n.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);this.modules=[],e[hn]=this}mount(e,t){let n=this.sheet,r=0,o=0;for(let i=0;i<e.length;i++){let t=e[i],a=this.modules.indexOf(t);if(a<o&&a>-1&&(this.modules.splice(a,1),o--,a=-1),-1==a){if(this.modules.splice(o++,0,t),n)for(let e=0;e<t.rules.length;e++)n.insertRule(t.rules[e],r++)}else{while(o<a)r+=this.modules[o++].rules.length;r+=t.rules.length,o++}}if(n)t.adoptedStyleSheets.indexOf(this.sheet)<0&&(t.adoptedStyleSheets=[this.sheet,...t.adoptedStyleSheets]);else{let e="";for(let t=0;t<this.modules.length;t++)e+=this.modules[t].getRules()+"\n";this.styleTag.textContent=e;let n=t.head||t;this.styleTag.parentNode!=n&&n.insertBefore(this.styleTag,n.firstChild)}}setNonce(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}}for(var vn={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},yn={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},bn="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),_n="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),xn=0;xn<10;xn++)vn[48+xn]=vn[96+xn]=String(xn);for(xn=1;xn<=24;xn++)vn[xn+111]="F"+xn;for(xn=65;xn<=90;xn++)vn[xn]=String.fromCharCode(xn+32),yn[xn]=String.fromCharCode(xn);for(var wn in vn)yn.hasOwnProperty(wn)||(yn[wn]=vn[wn]);function On(e){var t=bn&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||_n&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key,n=!t&&e.key||(e.shiftKey?yn:vn)[e.keyCode]||e.key||"Unidentified";return"Esc"==n&&(n="Escape"),"Del"==n&&(n="Delete"),"Left"==n&&(n="ArrowLeft"),"Up"==n&&(n="ArrowUp"),"Right"==n&&(n="ArrowRight"),"Down"==n&&(n="ArrowDown"),n}function Sn(e){let t;return t=11==e.nodeType?e.getSelection?e:e.ownerDocument:e,t.getSelection()}function An(e,t){return!!t&&(e==t||e.contains(1!=t.nodeType?t.parentNode:t))}function kn(e){let t=e.activeElement;while(t&&t.shadowRoot)t=t.shadowRoot.activeElement;return t}function Cn(e,t){if(!t.anchorNode)return!1;try{return An(e,t.anchorNode)}catch(X_){return!1}}function Mn(e){return 3==e.nodeType?Fn(e,0,e.nodeValue.length).getClientRects():1==e.nodeType?e.getClientRects():[]}function Tn(e,t,n,r){return!!n&&($n(e,t,n,r,-1)||$n(e,t,n,r,1))}function Pn(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t}function In(e){return 1==e.nodeType&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(e.nodeName)}function $n(e,t,n,r,o){for(;;){if(e==n&&t==r)return!0;if(t==(o<0?0:En(e))){if("DIV"==e.nodeName)return!1;let n=e.parentNode;if(!n||1!=n.nodeType)return!1;t=Pn(e)+(o<0?0:1),e=n}else{if(1!=e.nodeType)return!1;if(e=e.childNodes[t+(o<0?-1:0)],1==e.nodeType&&"false"==e.contentEditable)return!1;t=o<0?En(e):0}}}function En(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function Dn(e,t){let n=t?e.left:e.right;return{left:n,right:n,top:e.top,bottom:e.bottom}}function Rn(e){let t=e.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:e.innerWidth,top:0,bottom:e.innerHeight}}function Nn(e,t){let n=t.width/e.offsetWidth,r=t.height/e.offsetHeight;return(n>.995&&n<1.005||!isFinite(n)||Math.abs(t.width-e.offsetWidth)<1)&&(n=1),(r>.995&&r<1.005||!isFinite(r)||Math.abs(t.height-e.offsetHeight)<1)&&(r=1),{scaleX:n,scaleY:r}}function Ln(e,t,n,r,o,i,a,s){let l=e.ownerDocument,u=l.defaultView||window;for(let c=e,d=!1;c&&!d;)if(1==c.nodeType){let e,h=c==l.body,p=1,f=1;if(h)e=Rn(u);else{if(/^(fixed|sticky)$/.test(getComputedStyle(c).position)&&(d=!0),c.scrollHeight<=c.clientHeight&&c.scrollWidth<=c.clientWidth){c=c.assignedSlot||c.parentNode;continue}let t=c.getBoundingClientRect();({scaleX:p,scaleY:f}=Nn(c,t)),e={left:t.left,right:t.left+c.clientWidth*p,top:t.top,bottom:t.top+c.clientHeight*f}}let g=0,m=0;if("nearest"==o)t.top<e.top?(m=-(e.top-t.top+a),n>0&&t.bottom>e.bottom+m&&(m=t.bottom-e.bottom+m+a)):t.bottom>e.bottom&&(m=t.bottom-e.bottom+a,n<0&&t.top-m<e.top&&(m=-(e.top+m-t.top+a)));else{let r=t.bottom-t.top,i=e.bottom-e.top,s="center"==o&&r<=i?t.top+r/2-i/2:"start"==o||"center"==o&&n<0?t.top-a:t.bottom-i+a;m=s-e.top}if("nearest"==r)t.left<e.left?(g=-(e.left-t.left+i),n>0&&t.right>e.right+g&&(g=t.right-e.right+g+i)):t.right>e.right&&(g=t.right-e.right+i,n<0&&t.left<e.left+g&&(g=-(e.left+g-t.left+i)));else{let n="center"==r?t.left+(t.right-t.left)/2-(e.right-e.left)/2:"start"==r==s?t.left-i:t.right-(e.right-e.left)+i;g=n-e.left}if(g||m)if(h)u.scrollBy(g,m);else{let e=0,n=0;if(m){let e=c.scrollTop;c.scrollTop+=m/f,n=(c.scrollTop-e)*f}if(g){let t=c.scrollLeft;c.scrollLeft+=g/p,e=(c.scrollLeft-t)*p}t={left:t.left-e,top:t.top-n,right:t.right-e,bottom:t.bottom-n},e&&Math.abs(e-g)<1&&(r="nearest"),n&&Math.abs(n-m)<1&&(o="nearest")}if(h)break;c=c.assignedSlot||c.parentNode}else{if(11!=c.nodeType)break;c=c.host}}function zn(e){let t=e.ownerDocument;for(let n=e.parentNode;n;){if(n==t.body)break;if(1==n.nodeType){if(n.scrollHeight>n.clientHeight||n.scrollWidth>n.clientWidth)return n;n=n.assignedSlot||n.parentNode}else{if(11!=n.nodeType)break;n=n.host}}return null}class Vn{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:t,focusNode:n}=e;this.set(t,Math.min(e.anchorOffset,t?En(t):0),n,Math.min(e.focusOffset,n?En(n):0))}set(e,t,n,r){this.anchorNode=e,this.anchorOffset=t,this.focusNode=n,this.focusOffset=r}}let Bn,jn=null;function Qn(e){if(e.setActive)return e.setActive();if(jn)return e.focus(jn);let t=[];for(let n=e;n;n=n.parentNode)if(t.push(n,n.scrollTop,n.scrollLeft),n==n.ownerDocument)break;if(e.focus(null==jn?{get preventScroll(){return jn={preventScroll:!0},!0}}:void 0),!jn){jn=!1;for(let e=0;e<t.length;){let n=t[e++],r=t[e++],o=t[e++];n.scrollTop!=r&&(n.scrollTop=r),n.scrollLeft!=o&&(n.scrollLeft=o)}}}function Fn(e,t,n=t){let r=Bn||(Bn=document.createRange());return r.setEnd(e,n),r.setStart(e,t),r}function Wn(e,t,n,r){let o={key:t,code:t,keyCode:n,which:n,cancelable:!0};r&&({altKey:o.altKey,ctrlKey:o.ctrlKey,shiftKey:o.shiftKey,metaKey:o.metaKey}=r);let i=new KeyboardEvent("keydown",o);i.synthetic=!0,e.dispatchEvent(i);let a=new KeyboardEvent("keyup",o);return a.synthetic=!0,e.dispatchEvent(a),i.defaultPrevented||a.defaultPrevented}function Hn(e){while(e){if(e&&(9==e.nodeType||11==e.nodeType&&e.host))return e;e=e.assignedSlot||e.parentNode}return null}function Zn(e){while(e.attributes.length)e.removeAttributeNode(e.attributes[0])}function Gn(e,t){let n=t.focusNode,r=t.focusOffset;if(!n||t.anchorNode!=n||t.anchorOffset!=r)return!1;for(r=Math.min(r,En(n));;)if(r){if(1!=n.nodeType)return!1;let e=n.childNodes[r-1];"false"==e.contentEditable?r--:(n=e,r=En(n))}else{if(n==e)return!0;r=Pn(n),n=n.parentNode}}function Xn(e){return e.scrollTop>Math.max(1,e.scrollHeight-e.clientHeight-4)}function Un(e,t){for(let n=e,r=t;;){if(3==n.nodeType&&r>0)return{node:n,offset:r};if(1==n.nodeType&&r>0){if("false"==n.contentEditable)return null;n=n.childNodes[r-1],r=En(n)}else{if(!n.parentNode||In(n))return null;r=Pn(n),n=n.parentNode}}}function Yn(e,t){for(let n=e,r=t;;){if(3==n.nodeType&&r<n.nodeValue.length)return{node:n,offset:r};if(1==n.nodeType&&r<n.childNodes.length){if("false"==n.contentEditable)return null;n=n.childNodes[r],r=0}else{if(!n.parentNode||In(n))return null;r=Pn(n)+1,n=n.parentNode}}}class qn{constructor(e,t,n=!0){this.node=e,this.offset=t,this.precise=n}static before(e,t){return new qn(e.parentNode,Pn(e),t)}static after(e,t){return new qn(e.parentNode,Pn(e)+1,t)}}const Kn=[];class Jn{constructor(){this.parent=null,this.dom=null,this.flags=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e){let t=this.posAtStart;for(let n of this.children){if(n==e)return t;t+=n.length+n.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}sync(e,t){if(2&this.flags){let n,r=this.dom,o=null;for(let i of this.children){if(7&i.flags){if(!i.dom&&(n=o?o.nextSibling:r.firstChild)){let e=Jn.get(n);(!e||!e.parent&&e.canReuseDOM(i))&&i.reuseDOM(n)}i.sync(e,t),i.flags&=-8}if(n=o?o.nextSibling:r.firstChild,t&&!t.written&&t.node==r&&n!=i.dom&&(t.written=!0),i.dom.parentNode==r)while(n&&n!=i.dom)n=er(n);else r.insertBefore(i.dom,n);o=i.dom}n=o?o.nextSibling:r.firstChild,n&&t&&t.node==r&&(t.written=!0);while(n)n=er(n)}else if(1&this.flags)for(let n of this.children)7&n.flags&&(n.sync(e,t),n.flags&=-8)}reuseDOM(e){}localPosFromDOM(e,t){let n;if(e==this.dom)n=this.dom.childNodes[t];else{let r=0==En(e)?0:0==t?-1:1;for(;;){let t=e.parentNode;if(t==this.dom)break;0==r&&t.firstChild!=t.lastChild&&(r=e==t.firstChild?-1:1),e=t}n=r<0?e:e.nextSibling}if(n==this.dom.firstChild)return 0;while(n&&!Jn.get(n))n=n.nextSibling;if(!n)return this.length;for(let r=0,o=0;;r++){let e=this.children[r];if(e.dom==n)return o;o+=e.length+e.breakAfter}}domBoundsAround(e,t,n=0){let r=-1,o=-1,i=-1,a=-1;for(let s=0,l=n,u=n;s<this.children.length;s++){let n=this.children[s],c=l+n.length;if(l<e&&c>t)return n.domBoundsAround(e,t,l);if(c>=e&&-1==r&&(r=s,o=l),l>t&&n.dom.parentNode==this.dom){i=s,a=u;break}u=c,l=c+n.breakAfter}return{from:o,to:a<0?n+this.length:a,startDOM:(r?this.children[r-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:i<this.children.length&&i>=0?this.children[i].dom:null}}markDirty(e=!1){this.flags|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let t=this.parent;t;t=t.parent){if(e&&(t.flags|=2),1&t.flags)return;t.flags|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,7&this.flags&&this.markParentsDirty(!0))}setDOM(e){this.dom!=e&&(this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this)}get rootView(){for(let e=this;;){let t=e.parent;if(!t)return e;e=t}}replaceChildren(e,t,n=Kn){this.markDirty();for(let r=e;r<t;r++){let e=this.children[r];e.parent==this&&n.indexOf(e)<0&&e.destroy()}this.children.splice(e,t-e,...n);for(let r=0;r<n.length;r++)n[r].setParent(this)}ignoreMutation(e){return!1}ignoreEvent(e){return!1}childCursor(e=this.length){return new tr(this.children,e,this.children.length)}childPos(e,t=1){return this.childCursor().findPos(e,t)}toString(){let e=this.constructor.name.replace("View","");return e+(this.children.length?"("+this.children.join()+")":this.length?"["+("Text"==e?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}static get(e){return e.cmView}get isEditable(){return!0}get isWidget(){return!1}get isHidden(){return!1}merge(e,t,n,r,o,i){return!1}become(e){return!1}canReuseDOM(e){return e.constructor==this.constructor&&!(8&(this.flags|e.flags))}getSide(){return 0}destroy(){for(let e of this.children)e.parent==this&&e.destroy();this.parent=null}}function er(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}Jn.prototype.breakAfter=0;class tr{constructor(e,t,n){this.children=e,this.pos=t,this.i=n,this.off=0}findPos(e,t=1){for(;;){if(e>this.pos||e==this.pos&&(t>0||0==this.i||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let n=this.children[--this.i];this.pos-=n.length+n.breakAfter}}}function nr(e,t,n,r,o,i,a,s,l){let{children:u}=e,c=u.length?u[t]:null,d=i.length?i[i.length-1]:null,h=d?d.breakAfter:a;if(!(t==r&&c&&!a&&!h&&i.length<2&&c.merge(n,o,i.length?d:null,0==n,s,l))){if(r<u.length){let e=u[r];e&&(o<e.length||e.breakAfter&&(null===d||void 0===d?void 0:d.breakAfter))?(t==r&&(e=e.split(o),o=0),!h&&d&&e.merge(0,o,d,!0,0,l)?i[i.length-1]=e:((o||e.children.length&&!e.children[0].length)&&e.merge(0,o,null,!1,0,l),i.push(e))):(null===e||void 0===e?void 0:e.breakAfter)&&(d?d.breakAfter=1:a=1),r++}c&&(c.breakAfter=a,n>0&&(!a&&i.length&&c.merge(n,c.length,i[0],!1,s,0)?c.breakAfter=i.shift().breakAfter:(n<c.length||c.children.length&&0==c.children[c.children.length-1].length)&&c.merge(n,c.length,null,!1,s,0),t++));while(t<r&&i.length)if(u[r-1].become(i[i.length-1]))r--,i.pop(),l=i.length?0:s;else{if(!u[t].become(i[0]))break;t++,i.shift(),s=i.length?0:l}!i.length&&t&&r<u.length&&!u[t-1].breakAfter&&u[r].merge(0,0,u[t-1],!1,s,l)&&t--,(t<r||i.length)&&e.replaceChildren(t,r,i)}}function rr(e,t,n,r,o,i){let a=e.childCursor(),{i:s,off:l}=a.findPos(n,1),{i:u,off:c}=a.findPos(t,-1),d=t-n;for(let h of r)d+=h.length;e.length+=d,nr(e,u,c,s,l,r,0,o,i)}let or="undefined"!=typeof navigator?navigator:{userAgent:"",vendor:"",platform:""},ir="undefined"!=typeof document?document:{documentElement:{style:{}}};const ar=/Edge\/(\d+)/.exec(or.userAgent),sr=/MSIE \d/.test(or.userAgent),lr=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(or.userAgent),ur=!!(sr||lr||ar),cr=!ur&&/gecko\/(\d+)/i.test(or.userAgent),dr=!ur&&/Chrome\/(\d+)/.exec(or.userAgent),hr="webkitFontSmoothing"in ir.documentElement.style,pr=!ur&&/Apple Computer/.test(or.vendor),fr=pr&&(/Mobile\/\w+/.test(or.userAgent)||or.maxTouchPoints>2);var gr={mac:fr||/Mac/.test(or.platform),windows:/Win/.test(or.platform),linux:/Linux|X11/.test(or.platform),ie:ur,ie_version:sr?ir.documentMode||6:lr?+lr[1]:ar?+ar[1]:0,gecko:cr,gecko_version:cr?+(/Firefox\/(\d+)/.exec(or.userAgent)||[0,0])[1]:0,chrome:!!dr,chrome_version:dr?+dr[1]:0,ios:fr,android:/Android\b/.test(or.userAgent),webkit:hr,safari:pr,webkit_version:hr?+(/\bAppleWebKit\/(\d+)/.exec(or.userAgent)||[0,0])[1]:0,tabSize:null!=ir.documentElement.style.tabSize?"tab-size":"-moz-tab-size"};const mr=256;class vr extends Jn{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,t){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(t&&t.node==this.dom&&(t.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){3==e.nodeType&&this.createDOM(e)}merge(e,t,n){return!(8&this.flags||n&&(!(n instanceof vr)||this.length-(t-e)+n.length>mr||8&n.flags))&&(this.text=this.text.slice(0,e)+(n?n.text:"")+this.text.slice(t),this.markDirty(),!0)}split(e){let t=new vr(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),t.flags|=8&this.flags,t}localPosFromDOM(e,t){return e==this.dom?t:t?this.text.length:0}domAtPos(e){return new qn(this.dom,e)}domBoundsAround(e,t,n){return{from:n,to:n+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,t){return br(this.dom,e,t)}}class yr extends Jn{constructor(e,t=[],n=0){super(),this.mark=e,this.children=t,this.length=n;for(let r of t)r.setParent(this)}setAttrs(e){if(Zn(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let t in this.mark.attrs)e.setAttribute(t,this.mark.attrs[t]);return e}canReuseDOM(e){return super.canReuseDOM(e)&&!(8&(this.flags|e.flags))}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.flags|=6)}sync(e,t){this.dom?4&this.flags&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,t)}merge(e,t,n,r,o,i){return(!n||!(!(n instanceof yr&&n.mark.eq(this.mark))||e&&o<=0||t<this.length&&i<=0))&&(rr(this,e,t,n?n.children.slice():[],o-1,i-1),this.markDirty(),!0)}split(e){let t=[],n=0,r=-1,o=0;for(let a of this.children){let i=n+a.length;i>e&&t.push(n<e?a.split(e-n):a),r<0&&n>=e&&(r=o),n=i,o++}let i=this.length-e;return this.length=e,r>-1&&(this.children.length=r,this.markDirty()),new yr(this.mark,t,i)}domAtPos(e){return wr(this,e)}coordsAt(e,t){return Sr(this,e,t)}}function br(e,t,n){let r=e.nodeValue.length;t>r&&(t=r);let o=t,i=t,a=0;0==t&&n<0||t==r&&n>=0?gr.chrome||gr.gecko||(t?(o--,a=1):i<r&&(i++,a=-1)):n<0?o--:i<r&&i++;let s=Fn(e,o,i).getClientRects();if(!s.length)return null;let l=s[(a?a<0:n>=0)?0:s.length-1];return gr.safari&&!a&&0==l.width&&(l=Array.prototype.find.call(s,(e=>e.width))||l),a?Dn(l,a<0):l||null}class _r extends Jn{static create(e,t,n){return new _r(e,t,n)}constructor(e,t,n){super(),this.widget=e,this.length=t,this.side=n,this.prevWidget=null}split(e){let t=_r.create(this.widget,this.length-e,this.side);return this.length-=e,t}sync(e){this.dom&&this.widget.updateDOM(this.dom,e)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}getSide(){return this.side}merge(e,t,n,r,o,i){return!(n&&(!(n instanceof _r&&this.widget.compare(n.widget))||e>0&&o<=0||t<this.length&&i<=0))&&(this.length=e+(n?n.length:0)+(this.length-t),!0)}become(e){return e instanceof _r&&e.side==this.side&&this.widget.constructor==e.widget.constructor&&(this.widget.compare(e.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,!0)}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get overrideDOMText(){if(0==this.length)return me.empty;let e=this;while(e.parent)e=e.parent;let{view:t}=e,n=t&&t.state.doc,r=this.posAtStart;return n?n.slice(r,r+this.length):me.empty}domAtPos(e){return(this.length?0==e:this.side>0)?qn.before(this.dom):qn.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,t){let n=this.widget.coordsAt(this.dom,e,t);if(n)return n;let r=this.dom.getClientRects(),o=null;if(!r.length)return null;let i=this.side?this.side<0:e>0;for(let a=i?r.length-1:0;;a+=i?-1:1)if(o=r[a],e>0?0==a:a==r.length-1||o.top<o.bottom)break;return Dn(o,!i)}get isEditable(){return!1}get isWidget(){return!0}get isHidden(){return this.widget.isHidden}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}}class xr extends Jn{constructor(e){super(),this.side=e}get length(){return 0}merge(){return!1}become(e){return e instanceof xr&&e.side==this.side}split(){return new xr(this.side)}sync(){if(!this.dom){let e=document.createElement("img");e.className="cm-widgetBuffer",e.setAttribute("aria-hidden","true"),this.setDOM(e)}}getSide(){return this.side}domAtPos(e){return this.side>0?qn.before(this.dom):qn.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return me.empty}get isHidden(){return!0}}function wr(e,t){let n=e.dom,{children:r}=e,o=0;for(let i=0;o<r.length;o++){let e=r[o],a=i+e.length;if(!(a==i&&e.getSide()<=0)){if(t>i&&t<a&&e.dom.parentNode==n)return e.domAtPos(t-i);if(t<=i)break;i=a}}for(let i=o;i>0;i--){let e=r[i-1];if(e.dom.parentNode==n)return e.domAtPos(e.length)}for(let i=o;i<r.length;i++){let e=r[i];if(e.dom.parentNode==n)return e.domAtPos(0)}return new qn(n,0)}function Or(e,t,n){let r,{children:o}=e;n>0&&t instanceof yr&&o.length&&(r=o[o.length-1])instanceof yr&&r.mark.eq(t.mark)?Or(r,t.children[0],n-1):(o.push(t),t.setParent(e)),e.length+=t.length}function Sr(e,t,n){let r=null,o=-1,i=null,a=-1;function s(e,t){for(let l=0,u=0;l<e.children.length&&u<=t;l++){let c=e.children[l],d=u+c.length;d>=t&&(c.children.length?s(c,t-u):(!i||i.isHidden&&n>0)&&(d>t||u==d&&c.getSide()>0)?(i=c,a=t-u):(u<t||u==d&&c.getSide()<0&&!c.isHidden)&&(r=c,o=t-u)),u=d}}s(e,t);let l=(n<0?r:i)||r||i;return l?l.coordsAt(Math.max(0,l==r?o:a),n):Ar(e)}function Ar(e){let t=e.dom.lastChild;if(!t)return e.dom.getBoundingClientRect();let n=Mn(t);return n[n.length-1]||null}function kr(e,t){for(let n in e)"class"==n&&t.class?t.class+=" "+e.class:"style"==n&&t.style?t.style+=";"+e.style:t[n]=e[n];return t}vr.prototype.children=_r.prototype.children=xr.prototype.children=Kn;const Cr=Object.create(null);function Mr(e,t,n){if(e==t)return!0;e||(e=Cr),t||(t=Cr);let r=Object.keys(e),o=Object.keys(t);if(r.length-(n&&r.indexOf(n)>-1?1:0)!=o.length-(n&&o.indexOf(n)>-1?1:0))return!1;for(let i of r)if(i!=n&&(-1==o.indexOf(i)||e[i]!==t[i]))return!1;return!0}function Tr(e,t,n){let r=!1;if(t)for(let o in t)n&&o in n||(r=!0,"style"==o?e.style.cssText="":e.removeAttribute(o));if(n)for(let o in n)t&&t[o]==n[o]||(r=!0,"style"==o?e.style.cssText=n[o]:e.setAttribute(o,n[o]));return r}function Pr(e){let t=Object.create(null);for(let n=0;n<e.attributes.length;n++){let r=e.attributes[n];t[r.name]=r.value}return t}class Ir extends Jn{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(e,t,n,r,o,i){if(n){if(!(n instanceof Ir))return!1;this.dom||n.transferDOM(this)}return r&&this.setDeco(n?n.attrs:null),rr(this,e,t,n?n.children.slice():[],o,i),!0}split(e){let t=new Ir;if(t.breakAfter=this.breakAfter,0==this.length)return t;let{i:n,off:r}=this.childPos(e);r&&(t.append(this.children[n].split(r),0),this.children[n].merge(r,this.children[n].length,null,!1,0,0),n++);for(let o=n;o<this.children.length;o++)t.append(this.children[o],0);while(n>0&&0==this.children[n-1].length)this.children[--n].destroy();return this.children.length=n,this.markDirty(),this.length=e,t}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=void 0===this.prevAttrs?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){Mr(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,t){Or(this,e,t)}addLineDeco(e){let t=e.spec.attributes,n=e.spec.class;t&&(this.attrs=kr(t,this.attrs||{})),n&&(this.attrs=kr({class:n},this.attrs||{}))}domAtPos(e){return wr(this,e)}reuseDOM(e){"DIV"==e.nodeName&&(this.setDOM(e),this.flags|=6)}sync(e,t){var n;this.dom?4&this.flags&&(Zn(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),void 0!==this.prevAttrs&&(Tr(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,t);let r=this.dom.lastChild;while(r&&Jn.get(r)instanceof yr)r=r.lastChild;if(!r||!this.length||"BR"!=r.nodeName&&0==(null===(n=Jn.get(r))||void 0===n?void 0:n.isEditable)&&(!gr.ios||!this.children.some((e=>e instanceof vr)))){let e=document.createElement("BR");e.cmIgnore=!0,this.dom.appendChild(e)}}measureTextSize(){if(0==this.children.length||this.length>20)return null;let e,t=0;for(let n of this.children){if(!(n instanceof vr)||/[^ -~]/.test(n.text))return null;let r=Mn(n.dom);if(1!=r.length)return null;t+=r[0].width,e=r[0].height}return t?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:t/this.length,textHeight:e}:null}coordsAt(e,t){let n=Sr(this,e,t);if(!this.children.length&&n&&this.parent){let{heightOracle:e}=this.parent.view.viewState,t=n.bottom-n.top;if(Math.abs(t-e.lineHeight)<2&&e.textHeight<t){let r=(t-e.textHeight)/2;return{top:n.top+r,bottom:n.bottom-r,left:n.left,right:n.left}}}return n}become(e){return e instanceof Ir&&0==this.children.length&&0==e.children.length&&Mr(this.attrs,e.attrs)&&this.breakAfter==e.breakAfter}covers(){return!0}static find(e,t){for(let n=0,r=0;n<e.children.length;n++){let o=e.children[n],i=r+o.length;if(i>=t){if(o instanceof Ir)return o;if(i>t)break}r=i+o.breakAfter}return null}}class $r extends Jn{constructor(e,t,n){super(),this.widget=e,this.length=t,this.deco=n,this.breakAfter=0,this.prevWidget=null}merge(e,t,n,r,o,i){return!(n&&(!(n instanceof $r&&this.widget.compare(n.widget))||e>0&&o<=0||t<this.length&&i<=0))&&(this.length=e+(n?n.length:0)+(this.length-t),!0)}domAtPos(e){return 0==e?qn.before(this.dom):qn.after(this.dom,e==this.length)}split(e){let t=this.length-e;this.length=e;let n=new $r(this.widget,t,this.deco);return n.breakAfter=this.breakAfter,n}get children(){return Kn}sync(e){this.dom&&this.widget.updateDOM(this.dom,e)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}get overrideDOMText(){return this.parent?this.parent.view.state.doc.slice(this.posAtStart,this.posAtEnd):me.empty}domBoundsAround(){return null}become(e){return e instanceof $r&&e.widget.constructor==this.widget.constructor&&(e.widget.compare(this.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,this.deco=e.deco,this.breakAfter=e.breakAfter,!0)}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get isEditable(){return!1}get isWidget(){return!0}coordsAt(e,t){return this.widget.coordsAt(this.dom,e,t)}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}covers(e){let{startSide:t,endSide:n}=this.deco;return t!=n&&(e<0?t<0:n>0)}}class Er{eq(e){return!1}updateDOM(e,t){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,t,n){return null}get isHidden(){return!1}get editable(){return!1}destroy(e){}}var Dr=function(e){return e[e["Text"]=0]="Text",e[e["WidgetBefore"]=1]="WidgetBefore",e[e["WidgetAfter"]=2]="WidgetAfter",e[e["WidgetRange"]=3]="WidgetRange",e}(Dr||(Dr={}));class Rr extends Wt{constructor(e,t,n,r){super(),this.startSide=e,this.endSide=t,this.widget=n,this.spec=r}get heightRelevant(){return!1}static mark(e){return new Nr(e)}static widget(e){let t=Math.max(-1e4,Math.min(1e4,e.side||0)),n=!!e.block;return t+=n&&!e.inlineOrder?t>0?3e8:-4e8:t>0?1e8:-1e8,new zr(e,t,t,n,e.widget||null,!1)}static replace(e){let t,n,r=!!e.block;if(e.isBlockGap)t=-5e8,n=4e8;else{let{start:o,end:i}=Vr(e,r);t=(o?r?-3e8:-1:5e8)-1,n=1+(i?r?2e8:1:-6e8)}return new zr(e,t,n,r,e.widget||null,!0)}static line(e){return new Lr(e)}static set(e,t=!1){return Xt.of(e,t)}hasHeight(){return!!this.widget&&this.widget.estimatedHeight>-1}}Rr.none=Xt.empty;class Nr extends Rr{constructor(e){let{start:t,end:n}=Vr(e);super(t?-1:5e8,n?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){var t,n;return this==e||e instanceof Nr&&this.tagName==e.tagName&&(this.class||(null===(t=this.attrs)||void 0===t?void 0:t.class))==(e.class||(null===(n=e.attrs)||void 0===n?void 0:n.class))&&Mr(this.attrs,e.attrs,"class")}range(e,t=e){if(e>=t)throw new RangeError("Mark decorations may not be empty");return super.range(e,t)}}Nr.prototype.point=!1;class Lr extends Rr{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof Lr&&this.spec.class==e.spec.class&&Mr(this.spec.attributes,e.spec.attributes)}range(e,t=e){if(t!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,t)}}Lr.prototype.mapMode=Be.TrackBefore,Lr.prototype.point=!0;class zr extends Rr{constructor(e,t,n,r,o,i){super(t,n,o,e),this.block=r,this.isReplace=i,this.mapMode=r?t<=0?Be.TrackBefore:Be.TrackAfter:Be.TrackDel}get type(){return this.startSide!=this.endSide?Dr.WidgetRange:this.startSide<=0?Dr.WidgetBefore:Dr.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof zr&&Br(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,t=e){if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,t)}}function Vr(e,t=!1){let{inclusiveStart:n,inclusiveEnd:r}=e;return null==n&&(n=e.inclusive),null==r&&(r=e.inclusive),{start:null!==n&&void 0!==n?n:t,end:null!==r&&void 0!==r?r:t}}function Br(e,t){return e==t||!!(e&&t&&e.compare(t))}function jr(e,t,n,r=0){let o=n.length-1;o>=0&&n[o]+r>=e?n[o]=Math.max(n[o],t):n.push(e,t)}zr.prototype.point=!0;class Qr{constructor(e,t,n,r){this.doc=e,this.pos=t,this.end=n,this.disallowBlockEffectsFor=r,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=t}posCovered(){if(0==this.content.length)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof $r&&e.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new Ir),this.atCursorPos=!0),this.curLine}flushBuffer(e=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(Fr(new xr(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,this.posCovered()||e&&this.content.length&&this.content[this.content.length-1]instanceof $r||this.getLine()}buildText(e,t,n){while(e>0){if(this.textOff==this.text.length){let{value:t,lineBreak:n,done:r}=this.cursor.next(this.skip);if(this.skip=0,r)throw new Error("Ran out of text content when drawing inline views");if(n){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}this.text=t,this.textOff=0}let r=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(t.slice(t.length-n)),this.getLine().append(Fr(new vr(this.text.slice(this.textOff,this.textOff+r)),t),n),this.atCursorPos=!0,this.textOff+=r,e-=r,n=0}}span(e,t,n,r){this.buildText(t-e,n,r),this.pos=t,this.openStart<0&&(this.openStart=r)}point(e,t,n,r,o,i){if(this.disallowBlockEffectsFor[i]&&n instanceof zr){if(n.block)throw new RangeError("Block decorations may not be specified via plugins");if(t>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let a=t-e;if(n instanceof zr)if(n.block)n.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new $r(n.widget||Wr.block,a,n));else{let i=_r.create(n.widget||Wr.inline,a,a?0:n.startSide),s=this.atCursorPos&&!i.isEditable&&o<=r.length&&(e<t||n.startSide>0),l=!i.isEditable&&(e<t||o>r.length||n.startSide<=0),u=this.getLine();2!=this.pendingBuffer||s||i.isEditable||(this.pendingBuffer=0),this.flushBuffer(r),s&&(u.append(Fr(new xr(1),r),o),o=r.length+Math.max(0,o-r.length)),u.append(Fr(i,r),o),this.atCursorPos=l,this.pendingBuffer=l?e<t||o>r.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=r.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(n);a&&(this.textOff+a<=this.text.length?this.textOff+=a:(this.skip+=a-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=t),this.openStart<0&&(this.openStart=o)}static build(e,t,n,r,o){let i=new Qr(e,t,n,o);return i.openEnd=Xt.spans(r,t,n,i),i.openStart<0&&(i.openStart=i.openEnd),i.finish(i.openEnd),i}}function Fr(e,t){for(let n of t)e=new yr(n,[e],e.length);return e}class Wr extends Er{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}Wr.inline=new Wr("span"),Wr.block=new Wr("div");var Hr=function(e){return e[e["LTR"]=0]="LTR",e[e["RTL"]=1]="RTL",e}(Hr||(Hr={}));const Zr=Hr.LTR,Gr=Hr.RTL;function Xr(e){let t=[];for(let n=0;n<e.length;n++)t.push(1<<+e[n]);return t}const Ur=Xr("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),Yr=Xr("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),qr=Object.create(null),Kr=[];for(let U_ of["()","[]","{}"]){let e=U_.charCodeAt(0),t=U_.charCodeAt(1);qr[e]=t,qr[t]=-e}function Jr(e){return e<=247?Ur[e]:1424<=e&&e<=1524?2:1536<=e&&e<=1785?Yr[e-1536]:1774<=e&&e<=2220?4:8192<=e&&e<=8204?256:64336<=e&&e<=65023?4:1}const eo=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;class to{get dir(){return this.level%2?Gr:Zr}constructor(e,t,n){this.from=e,this.to=t,this.level=n}side(e,t){return this.dir==t==e?this.to:this.from}forward(e,t){return e==(this.dir==t)}static find(e,t,n,r){let o=-1;for(let i=0;i<e.length;i++){let a=e[i];if(a.from<=t&&a.to>=t){if(a.level==n)return i;(o<0||(0!=r?r<0?a.from<t:a.to>t:e[o].level>a.level))&&(o=i)}}if(o<0)throw new RangeError("Index out of range");return o}}function no(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++){let r=e[n],o=t[n];if(r.from!=o.from||r.to!=o.to||r.direction!=o.direction||!no(r.inner,o.inner))return!1}return!0}const ro=[];function oo(e,t,n,r,o){for(let i=0;i<=r.length;i++){let a=i?r[i-1].to:t,s=i<r.length?r[i].from:n,l=i?256:o;for(let t=a,n=l,r=l;t<s;t++){let o=Jr(e.charCodeAt(t));512==o?o=n:8==o&&4==r&&(o=16),ro[t]=4==o?2:o,7&o&&(r=o),n=o}for(let e=a,t=l,r=l;e<s;e++){let o=ro[e];if(128==o)e<s-1&&t==ro[e+1]&&24&t?o=ro[e]=t:ro[e]=256;else if(64==o){let o=e+1;while(o<s&&64==ro[o])o++;let i=e&&8==t||o<n&&8==ro[o]?1==r?1:8:256;for(let t=e;t<o;t++)ro[t]=i;e=o-1}else 8==o&&1==r&&(ro[e]=1);t=o,7&o&&(r=o)}}}function io(e,t,n,r,o){let i=1==o?2:1;for(let a=0,s=0,l=0;a<=r.length;a++){let u=a?r[a-1].to:t,c=a<r.length?r[a].from:n;for(let t,n,r,a=u;a<c;a++)if(n=qr[t=e.charCodeAt(a)])if(n<0){for(let e=s-3;e>=0;e-=3)if(Kr[e+1]==-n){let t=Kr[e+2],n=2&t?o:4&t?1&t?i:o:0;n&&(ro[a]=ro[Kr[e]]=n),s=e;break}}else{if(189==Kr.length)break;Kr[s++]=a,Kr[s++]=t,Kr[s++]=l}else if(2==(r=ro[a])||1==r){let e=r==o;l=e?0:1;for(let t=s-3;t>=0;t-=3){let n=Kr[t+2];if(2&n)break;if(e)Kr[t+2]|=2;else{if(4&n)break;Kr[t+2]|=4}}}}}function ao(e,t,n,r){for(let o=0,i=r;o<=n.length;o++){let a=o?n[o-1].to:e,s=o<n.length?n[o].from:t;for(let l=a;l<s;){let a=ro[l];if(256==a){let a=l+1;for(;;)if(a==s){if(o==n.length)break;a=n[o++].to,s=o<n.length?n[o].from:t}else{if(256!=ro[a])break;a++}let u=1==i,c=1==(a<t?ro[a]:r),d=u==c?u?1:2:r;for(let t=a,r=o,i=r?n[r-1].to:e;t>l;)t==i&&(t=n[--r].from,i=r?n[r-1].to:e),ro[--t]=d;l=a}else i=a,l++}}}function so(e,t,n,r,o,i,a){let s=r%2?2:1;if(r%2==o%2)for(let l=t,u=0;l<n;){let t=!0,c=!1;if(u==i.length||l<i[u].from){let e=ro[l];e!=s&&(t=!1,c=16==e)}let d=t||1!=s?null:[],h=t?r:r+1,p=l;e:for(;;)if(u<i.length&&p==i[u].from){if(c)break e;let f=i[u];if(!t)for(let e=f.to,t=u+1;;){if(e==n)break e;if(!(t<i.length&&i[t].from==e)){if(ro[e]==s)break e;break}e=i[t++].to}if(u++,d)d.push(f);else{f.from>l&&a.push(new to(l,f.from,h));let t=f.direction==Zr!=!(h%2);lo(e,t?r+1:r,o,f.inner,f.from,f.to,a),l=f.to}p=f.to}else{if(p==n||(t?ro[p]!=s:ro[p]==s))break;p++}d?so(e,l,p,r+1,o,d,a):l<p&&a.push(new to(l,p,h)),l=p}else for(let l=n,u=i.length;l>t;){let n=!0,c=!1;if(!u||l>i[u-1].to){let e=ro[l-1];e!=s&&(n=!1,c=16==e)}let d=n||1!=s?null:[],h=n?r:r+1,p=l;e:for(;;)if(u&&p==i[u-1].to){if(c)break e;let f=i[--u];if(!n)for(let e=f.from,n=u;;){if(e==t)break e;if(!n||i[n-1].to!=e){if(ro[e-1]==s)break e;break}e=i[--n].from}if(d)d.push(f);else{f.to<l&&a.push(new to(f.to,l,h));let t=f.direction==Zr!=!(h%2);lo(e,t?r+1:r,o,f.inner,f.from,f.to,a),l=f.from}p=f.from}else{if(p==t||(n?ro[p-1]!=s:ro[p-1]==s))break;p--}d?so(e,p,l,r+1,o,d,a):p<l&&a.push(new to(p,l,h)),l=p}}function lo(e,t,n,r,o,i,a){let s=t%2?2:1;oo(e,o,i,r,s),io(e,o,i,r,s),ao(o,i,r,s),so(e,o,i,t,n,r,a)}function uo(e,t,n){if(!e)return[new to(0,0,t==Gr?1:0)];if(t==Zr&&!n.length&&!eo.test(e))return co(e.length);if(n.length)while(e.length>ro.length)ro[ro.length]=256;let r=[],o=t==Zr?0:1;return lo(e,o,o,n,0,e.length,r),r}function co(e){return[new to(0,e,0)]}let ho="";function po(e,t,n,r,o){var i;let a=r.head-e.from,s=to.find(t,a,null!==(i=r.bidiLevel)&&void 0!==i?i:-1,r.assoc),l=t[s],u=l.side(o,n);if(a==u){let e=s+=o?1:-1;if(e<0||e>=t.length)return null;l=t[s=e],a=l.side(!o,n),u=l.side(o,n)}let c=Ie(e.text,a,l.forward(o,n));(c<l.from||c>l.to)&&(c=u),ho=e.text.slice(Math.min(a,c),Math.max(a,c));let d=s==(o?t.length-1:0)?null:t[s+(o?1:-1)];return d&&c==u&&d.level+(o?0:1)<l.level?Ye.cursor(d.side(!o,n)+e.from,d.forward(o,n)?1:-1,d.level):Ye.cursor(c+e.from,l.forward(o,n)?-1:1,l.level)}function fo(e,t,n){for(let r=t;r<n;r++){let t=Jr(e.charCodeAt(r));if(1==t)return Zr;if(2==t||4==t)return Gr}return Zr}const go=Je.define(),mo=Je.define(),vo=Je.define(),yo=Je.define(),bo=Je.define(),_o=Je.define(),xo=Je.define(),wo=Je.define({combine:e=>e.some((e=>e))}),Oo=Je.define({combine:e=>e.some((e=>e))}),So=Je.define();class Ao{constructor(e,t="nearest",n="nearest",r=5,o=5,i=!1){this.range=e,this.y=t,this.x=n,this.yMargin=r,this.xMargin=o,this.isSnapshot=i}map(e){return e.empty?this:new Ao(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new Ao(Ye.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const ko=Ct.define({map:(e,t)=>e.map(t)}),Co=Ct.define();function Mo(e,t,n){let r=e.facet(yo);r.length?r[0](t):window.onerror?window.onerror(String(t),n,void 0,void 0,t):n?console.error(n+":",t):console.error(t)}const To=Je.define({combine:e=>!e.length||e[0]});let Po=0;const Io=Je.define();class $o{constructor(e,t,n,r,o){this.id=e,this.create=t,this.domEventHandlers=n,this.domEventObservers=r,this.extension=o(this)}static define(e,t){const{eventHandlers:n,eventObservers:r,provide:o,decorations:i}=t||{};return new $o(Po++,e,n,r,(e=>{let t=[Io.of(e)];return i&&t.push(No.of((t=>{let n=t.plugin(e);return n?i(n):Rr.none}))),o&&t.push(o(e)),t}))}static fromClass(e,t){return $o.define((t=>new e(t)),t)}}class Eo{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let e=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(e)}catch(t){if(Mo(e.state,t,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch(X_){}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(t){Mo(e.state,t,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var t;if(null===(t=this.value)||void 0===t?void 0:t.destroy)try{this.value.destroy()}catch(n){Mo(e.state,n,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const Do=Je.define(),Ro=Je.define(),No=Je.define(),Lo=Je.define(),zo=Je.define(),Vo=Je.define();function Bo(e,t){let n=e.state.facet(Vo);if(!n.length)return n;let r=n.map((t=>t instanceof Function?t(e):t)),o=[];return Xt.spans(r,t.from,t.to,{point(){},span(e,n,r,i){let a=e-t.from,s=n-t.from,l=o;for(let o=r.length-1;o>=0;o--,i--){let e,n=r[o].spec.bidiIsolate;if(null==n&&(n=fo(t.text,a,s)),i>0&&l.length&&(e=l[l.length-1]).to==a&&e.direction==n)e.to=s,l=e.inner;else{let e={from:a,to:s,direction:n,inner:[]};l.push(e),l=e.inner}}}}),o}const jo=Je.define();function Qo(e){let t=0,n=0,r=0,o=0;for(let i of e.state.facet(jo)){let a=i(e);a&&(null!=a.left&&(t=Math.max(t,a.left)),null!=a.right&&(n=Math.max(n,a.right)),null!=a.top&&(r=Math.max(r,a.top)),null!=a.bottom&&(o=Math.max(o,a.bottom)))}return{left:t,right:n,top:r,bottom:o}}const Fo=Je.define();class Wo{constructor(e,t,n,r){this.fromA=e,this.toA=t,this.fromB=n,this.toB=r}join(e){return new Wo(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let t=e.length,n=this;for(;t>0;t--){let r=e[t-1];if(!(r.fromA>n.toA)){if(r.toA<n.fromA)break;n=n.join(r),e.splice(t-1,1)}}return e.splice(t,0,n),e}static extendWithRanges(e,t){if(0==t.length)return e;let n=[];for(let r=0,o=0,i=0,a=0;;r++){let s=r==e.length?null:e[r],l=i-a,u=s?s.fromB:1e9;while(o<t.length&&t[o]<u){let e=t[o],r=t[o+1],i=Math.max(a,e),s=Math.min(u,r);if(i<=s&&new Wo(i+l,s+l,i,s).addToSet(n),r>u)break;o+=2}if(!s)return n;new Wo(s.fromA,s.toA,s.fromB,s.toB).addToSet(n),i=s.toA,a=s.toB}}}class Ho{constructor(e,t,n){this.view=e,this.state=t,this.transactions=n,this.flags=0,this.startState=e.state,this.changes=Qe.empty(this.startState.doc.length);for(let o of n)this.changes=this.changes.compose(o.changes);let r=[];this.changes.iterChangedRanges(((e,t,n,o)=>r.push(new Wo(e,t,n,o)))),this.changedRanges=r}static create(e,t,n){return new Ho(e,t,n)}get viewportChanged(){return(4&this.flags)>0}get heightChanged(){return(2&this.flags)>0}get geometryChanged(){return this.docChanged||(10&this.flags)>0}get focusChanged(){return(1&this.flags)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some((e=>e.selection))}get empty(){return 0==this.flags&&0==this.transactions.length}}class Zo extends Jn{get length(){return this.view.state.doc.length}constructor(e){super(),this.view=e,this.decorations=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.editContextFormatting=Rr.none,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(e.contentDOM),this.children=[new Ir],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new Wo(0,0,0,e.state.doc.length)],0,null)}update(e){var t;let n=e.changedRanges;this.minWidth>0&&n.length&&(n.every((({fromA:e,toA:t})=>t<this.minWidthFrom||e>this.minWidthTo))?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.updateEditContextFormatting(e);let r=-1;this.view.inputState.composing>=0&&!this.view.observer.editContext&&((null===(t=this.domChanged)||void 0===t?void 0:t.newSel)?r=this.domChanged.newSel.head:ti(e.changes,this.hasComposition)||e.selectionSet||(r=e.state.selection.main.head));let o=r>-1?Yo(this.view,e.changes,r):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:t,to:r}=this.hasComposition;n=new Wo(t,r,e.changes.mapPos(t,-1),e.changes.mapPos(r,1)).addToSet(n.slice())}this.hasComposition=o?{from:o.range.fromB,to:o.range.toB}:null,(gr.ie||gr.chrome)&&!o&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let i=this.decorations,a=this.updateDeco(),s=Jo(i,a,e.changes);return n=Wo.extendWithRanges(n,s),!!(7&this.flags||0!=n.length)&&(this.updateInner(n,e.startState.doc.length,o),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,t,n){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,t,n);let{observer:r}=this.view;r.ignore((()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let e=gr.chrome||gr.ios?{node:r.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,e),this.flags&=-8,e&&(e.written||r.selectionRange.focusNode!=e.node)&&(this.forceSelection=!0),this.dom.style.height=""})),this.markedForComposition.forEach((e=>e.flags&=-9));let o=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let i of this.children)i instanceof $r&&i.widget instanceof Xo&&o.push(i.dom);r.updateGaps(o)}updateChildren(e,t,n){let r=n?n.range.addToSet(e.slice()):e,o=this.childCursor(t);for(let i=r.length-1;;i--){let e=i>=0?r[i]:null;if(!e)break;let t,a,s,l,{fromA:u,toA:c,fromB:d,toB:h}=e;if(n&&n.range.fromB<h&&n.range.toB>d){let e=Qr.build(this.view.state.doc,d,n.range.fromB,this.decorations,this.dynamicDecorationMap),r=Qr.build(this.view.state.doc,n.range.toB,h,this.decorations,this.dynamicDecorationMap);a=e.breakAtStart,s=e.openStart,l=r.openEnd;let o=this.compositionView(n);r.breakAtStart?o.breakAfter=1:r.content.length&&o.merge(o.length,o.length,r.content[0],!1,r.openStart,0)&&(o.breakAfter=r.content[0].breakAfter,r.content.shift()),e.content.length&&o.merge(0,0,e.content[e.content.length-1],!0,0,e.openEnd)&&e.content.pop(),t=e.content.concat(o).concat(r.content)}else({content:t,breakAtStart:a,openStart:s,openEnd:l}=Qr.build(this.view.state.doc,d,h,this.decorations,this.dynamicDecorationMap));let{i:p,off:f}=o.findPos(c,1),{i:g,off:m}=o.findPos(u,-1);nr(this,g,m,p,f,t,a,s,l)}n&&this.fixCompositionDOM(n)}updateEditContextFormatting(e){this.editContextFormatting=this.editContextFormatting.map(e.changes);for(let t of e.transactions)for(let e of t.effects)e.is(Co)&&(this.editContextFormatting=e.value)}compositionView(e){let t=new vr(e.text.nodeValue);t.flags|=8;for(let{deco:r}of e.marks)t=new yr(r,[t],t.length);let n=new Ir;return n.append(t,0),n}fixCompositionDOM(e){let t=(e,t)=>{t.flags|=8|(t.children.some((e=>7&e.flags))?1:0),this.markedForComposition.add(t);let n=Jn.get(e);n&&n!=t&&(n.dom=null),t.setDOM(e)},n=this.childPos(e.range.fromB,1),r=this.children[n.i];t(e.line,r);for(let o=e.marks.length-1;o>=-1;o--)n=r.childPos(n.off,1),r=r.children[n.i],t(o>=0?e.marks[o].node:e.text,r)}updateSelection(e=!1,t=!1){!e&&this.view.observer.selectionRange.focusNode||this.view.observer.readSelectionRange();let n=this.view.root.activeElement,r=n==this.dom,o=!r&&Cn(this.dom,this.view.observer.selectionRange)&&!(n&&this.dom.contains(n));if(!(r||t||o))return;let i=this.forceSelection;this.forceSelection=!1;let a=this.view.state.selection.main,s=this.moveToLine(this.domAtPos(a.anchor)),l=a.empty?s:this.moveToLine(this.domAtPos(a.head));if(gr.gecko&&a.empty&&!this.hasComposition&&Go(s)){let e=document.createTextNode("");this.view.observer.ignore((()=>s.node.insertBefore(e,s.node.childNodes[s.offset]||null))),s=l=new qn(e,0),i=!0}let u=this.view.observer.selectionRange;!i&&u.focusNode&&(Tn(s.node,s.offset,u.anchorNode,u.anchorOffset)&&Tn(l.node,l.offset,u.focusNode,u.focusOffset)||this.suppressWidgetCursorChange(u,a))||(this.view.observer.ignore((()=>{gr.android&&gr.chrome&&this.dom.contains(u.focusNode)&&ei(u.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let e=Sn(this.view.root);if(e)if(a.empty){if(gr.gecko){let e=qo(s.node,s.offset);if(e&&3!=e){let t=(1==e?Un:Yn)(s.node,s.offset);t&&(s=new qn(t.node,t.offset))}}e.collapse(s.node,s.offset),null!=a.bidiLevel&&void 0!==e.caretBidiLevel&&(e.caretBidiLevel=a.bidiLevel)}else if(e.extend){e.collapse(s.node,s.offset);try{e.extend(l.node,l.offset)}catch(X_){}}else{let t=document.createRange();a.anchor>a.head&&([s,l]=[l,s]),t.setEnd(l.node,l.offset),t.setStart(s.node,s.offset),e.removeAllRanges(),e.addRange(t)}else;o&&this.view.root.activeElement==this.dom&&(this.dom.blur(),n&&n.focus())})),this.view.observer.setSelectionRange(s,l)),this.impreciseAnchor=s.precise?null:new qn(u.anchorNode,u.anchorOffset),this.impreciseHead=l.precise?null:new qn(u.focusNode,u.focusOffset)}suppressWidgetCursorChange(e,t){return this.hasComposition&&t.empty&&Tn(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==t.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,t=e.state.selection.main,n=Sn(e.root),{anchorNode:r,anchorOffset:o}=e.observer.selectionRange;if(!n||!t.empty||!t.assoc||!n.modify)return;let i=Ir.find(this,t.head);if(!i)return;let a=i.posAtStart;if(t.head==a||t.head==a+i.length)return;let s=this.coordsAt(t.head,-1),l=this.coordsAt(t.head,1);if(!s||!l||s.bottom>l.top)return;let u=this.domAtPos(t.head+t.assoc);n.collapse(u.node,u.offset),n.modify("move",t.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let c=e.observer.selectionRange;e.docView.posFromDOM(c.anchorNode,c.anchorOffset)!=t.from&&n.collapse(r,o)}moveToLine(e){let t,n=this.dom;if(e.node!=n)return e;for(let r=e.offset;!t&&r<n.childNodes.length;r++){let e=Jn.get(n.childNodes[r]);e instanceof Ir&&(t=e.domAtPos(0))}for(let r=e.offset-1;!t&&r>=0;r--){let e=Jn.get(n.childNodes[r]);e instanceof Ir&&(t=e.domAtPos(e.length))}return t?new qn(t.node,t.offset,!0):e}nearest(e){for(let t=e;t;){let e=Jn.get(t);if(e&&e.rootView==this)return e;t=t.parentNode}return null}posFromDOM(e,t){let n=this.nearest(e);if(!n)throw new RangeError("Trying to find position for a DOM position outside of the document");return n.localPosFromDOM(e,t)+n.posAtStart}domAtPos(e){let{i:t,off:n}=this.childCursor().findPos(e,-1);for(;t<this.children.length-1;){let e=this.children[t];if(n<e.length||e instanceof Ir)break;t++,n=0}return this.children[t].domAtPos(n)}coordsAt(e,t){let n=null,r=0;for(let o=this.length,i=this.children.length-1;i>=0;i--){let a=this.children[i],s=o-a.breakAfter,l=s-a.length;if(s<e)break;if(l<=e&&(l<e||a.covers(-1))&&(s>e||a.covers(1))&&(!n||a instanceof Ir&&!(n instanceof Ir&&t>=0)))n=a,r=l;else if(n&&l==e&&s==e&&a instanceof $r&&Math.abs(t)<2){if(a.deco.startSide<0)break;i&&(n=null)}o=l}return n?n.coordsAt(e-r,t):null}coordsForChar(e){let{i:t,off:n}=this.childPos(e,1),r=this.children[t];if(!(r instanceof Ir))return null;while(r.children.length){let{i:e,off:t}=r.childPos(n,1);for(;;e++){if(e==r.children.length)return null;if((r=r.children[e]).length)break}n=t}if(!(r instanceof vr))return null;let o=Ie(r.text,n);if(o==n)return null;let i=Fn(r.dom,n,o).getClientRects();for(let a=0;a<i.length;a++){let e=i[a];if(a==i.length-1||e.top<e.bottom&&e.left<e.right)return e}return null}measureVisibleLineHeights(e){let t=[],{from:n,to:r}=e,o=this.view.contentDOM.clientWidth,i=o>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,a=-1,s=this.view.textDirection==Hr.LTR;for(let l=0,u=0;u<this.children.length;u++){let e=this.children[u],c=l+e.length;if(c>r)break;if(l>=n){let n=e.dom.getBoundingClientRect();if(t.push(n.height),i){let t=e.dom.lastChild,r=t?Mn(t):[];if(r.length){let e=r[r.length-1],t=s?e.right-n.left:n.right-e.left;t>a&&(a=t,this.minWidth=o,this.minWidthFrom=l,this.minWidthTo=c)}}}l=c+e.breakAfter}return t}textDirectionAt(e){let{i:t}=this.childPos(e,1);return"rtl"==getComputedStyle(this.children[t].dom).direction?Hr.RTL:Hr.LTR}measureTextSize(){for(let o of this.children)if(o instanceof Ir){let e=o.measureTextSize();if(e)return e}let e,t,n,r=document.createElement("div");return r.className="cm-line",r.style.width="99999px",r.style.position="absolute",r.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore((()=>{this.dom.appendChild(r);let o=Mn(r.firstChild)[0];e=r.getBoundingClientRect().height,t=o?o.width/27:7,n=o?o.height:e,r.remove()})),{lineHeight:e,charWidth:t,textHeight:n}}childCursor(e=this.length){let t=this.children.length;return t&&(e-=this.children[--t].length),new tr(this.children,e,t)}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let n=0,r=0;;r++){let o=r==t.viewports.length?null:t.viewports[r],i=o?o.from-1:this.length;if(i>n){let r=(t.lineBlockAt(i).bottom-t.lineBlockAt(n).top)/this.view.scaleY;e.push(Rr.replace({widget:new Xo(r),block:!0,inclusive:!0,isBlockGap:!0}).range(n,i))}if(!o)break;n=o.to+1}return Rr.set(e)}updateDeco(){let e=1,t=this.view.state.facet(No).map((t=>{let n=this.dynamicDecorationMap[e++]="function"==typeof t;return n?t(this.view):t})),n=!1,r=this.view.state.facet(Lo).map(((e,t)=>{let r="function"==typeof e;return r&&(n=!0),r?e(this.view):e}));r.length&&(this.dynamicDecorationMap[e++]=n,t.push(Xt.join(r))),this.decorations=[this.editContextFormatting,...t,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];while(e<this.decorations.length)this.dynamicDecorationMap[e++]=!1;return this.decorations}scrollIntoView(e){if(e.isSnapshot){let t=this.view.viewState.lineBlockAt(e.range.head);return this.view.scrollDOM.scrollTop=t.top-e.yMargin,void(this.view.scrollDOM.scrollLeft=e.xMargin)}for(let u of this.view.state.facet(So))try{if(u(this.view,e.range,e))return!0}catch(l){Mo(this.view.state,l,"scroll handler")}let t,{range:n}=e,r=this.coordsAt(n.head,n.empty?n.assoc:n.head>n.anchor?-1:1);if(!r)return;!n.empty&&(t=this.coordsAt(n.anchor,n.anchor>n.head?-1:1))&&(r={left:Math.min(r.left,t.left),top:Math.min(r.top,t.top),right:Math.max(r.right,t.right),bottom:Math.max(r.bottom,t.bottom)});let o=Qo(this.view),i={left:r.left-o.left,top:r.top-o.top,right:r.right+o.right,bottom:r.bottom+o.bottom},{offsetWidth:a,offsetHeight:s}=this.view.scrollDOM;Ln(this.view.scrollDOM,i,n.head<n.anchor?-1:1,e.x,e.y,Math.max(Math.min(e.xMargin,a),-a),Math.max(Math.min(e.yMargin,s),-s),this.view.textDirection==Hr.LTR)}}function Go(e){return 1==e.node.nodeType&&e.node.firstChild&&(0==e.offset||"false"==e.node.childNodes[e.offset-1].contentEditable)&&(e.offset==e.node.childNodes.length||"false"==e.node.childNodes[e.offset].contentEditable)}class Xo extends Er{constructor(e){super(),this.height=e}toDOM(){let e=document.createElement("div");return e.className="cm-gap",this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}}function Uo(e,t){let n=e.observer.selectionRange;if(!n.focusNode)return null;let r=Un(n.focusNode,n.focusOffset),o=Yn(n.focusNode,n.focusOffset),i=r||o;if(o&&r&&o.node!=r.node){let t=Jn.get(o.node);if(!t||t instanceof vr&&t.text!=o.node.nodeValue)i=o;else if(e.docView.lastCompositionAfterCursor){let e=Jn.get(r.node);!e||e instanceof vr&&e.text!=r.node.nodeValue||(i=o)}}if(e.docView.lastCompositionAfterCursor=i!=r,!i)return null;let a=t-i.offset;return{from:a,to:a+i.node.nodeValue.length,node:i.node}}function Yo(e,t,n){let r=Uo(e,n);if(!r)return null;let{node:o,from:i,to:a}=r,s=o.nodeValue;if(/[\n\r]/.test(s))return null;if(e.state.doc.sliceString(r.from,r.to)!=s)return null;let l=t.invertedDesc,u=new Wo(l.mapPos(i),l.mapPos(a),i,a),c=[];for(let d=o.parentNode;;d=d.parentNode){let t=Jn.get(d);if(t instanceof yr)c.push({node:d,deco:t.mark});else{if(t instanceof Ir||"DIV"==d.nodeName&&d.parentNode==e.contentDOM)return{range:u,text:o,marks:c,line:d};if(d==e.contentDOM)return null;c.push({node:d,deco:new Nr({inclusive:!0,attributes:Pr(d),tagName:d.tagName.toLowerCase()})})}}}function qo(e,t){return 1!=e.nodeType?0:(t&&"false"==e.childNodes[t-1].contentEditable?1:0)|(t<e.childNodes.length&&"false"==e.childNodes[t].contentEditable?2:0)}let Ko=class{constructor(){this.changes=[]}compareRange(e,t){jr(e,t,this.changes)}comparePoint(e,t){jr(e,t,this.changes)}};function Jo(e,t,n){let r=new Ko;return Xt.compare(e,t,n,r),r.changes}function ei(e,t){for(let n=e;n&&n!=t;n=n.assignedSlot||n.parentNode)if(1==n.nodeType&&"false"==n.contentEditable)return!0;return!1}function ti(e,t){let n=!1;return t&&e.iterChangedRanges(((e,r)=>{e<t.to&&r>t.from&&(n=!0)})),n}function ni(e,t,n=1){let r=e.charCategorizer(t),o=e.doc.lineAt(t),i=t-o.from;if(0==o.length)return Ye.cursor(t);0==i?n=1:i==o.length&&(n=-1);let a=i,s=i;n<0?a=Ie(o.text,i,!1):s=Ie(o.text,i);let l=r(o.text.slice(a,s));while(a>0){let e=Ie(o.text,a,!1);if(r(o.text.slice(e,a))!=l)break;a=e}while(s<o.length){let e=Ie(o.text,s);if(r(o.text.slice(s,e))!=l)break;s=e}return Ye.range(a+o.from,s+o.from)}function ri(e,t){return t.left>e?t.left-e:Math.max(0,e-t.right)}function oi(e,t){return t.top>e?t.top-e:Math.max(0,e-t.bottom)}function ii(e,t){return e.top<t.bottom-1&&e.bottom>t.top+1}function ai(e,t){return t<e.top?{top:t,left:e.left,right:e.right,bottom:e.bottom}:e}function si(e,t){return t>e.bottom?{top:e.top,left:e.left,right:e.right,bottom:t}:e}function li(e,t,n){let r,o,i,a,s,l,u,c,d=!1;for(let f=e.firstChild;f;f=f.nextSibling){let e=Mn(f);for(let h=0;h<e.length;h++){let p=e[h];o&&ii(o,p)&&(p=ai(si(p,o.bottom),o.top));let g=ri(t,p),m=oi(n,p);if(0==g&&0==m)return 3==f.nodeType?ui(f,t,n):li(f,t,n);if(!r||a>m||a==m&&i>g){r=f,o=p,i=g,a=m;let s=m?n<p.top?-1:1:g?t<p.left?-1:1:0;d=!s||(s>0?h<e.length-1:h>0)}0==g?n>p.bottom&&(!u||u.bottom<p.bottom)?(s=f,u=p):n<p.top&&(!c||c.top>p.top)&&(l=f,c=p):u&&ii(u,p)?u=si(u,p.bottom):c&&ii(c,p)&&(c=ai(c,p.top))}}if(u&&u.bottom>=n?(r=s,o=u):c&&c.top<=n&&(r=l,o=c),!r)return{node:e,offset:0};let h=Math.max(o.left,Math.min(o.right,t));if(3==r.nodeType)return ui(r,h,n);if(d&&"false"!=r.contentEditable)return li(r,h,n);let p=Array.prototype.indexOf.call(e.childNodes,r)+(t>=(o.left+o.right)/2?1:0);return{node:e,offset:p}}function ui(e,t,n){let r=e.nodeValue.length,o=-1,i=1e9,a=0;for(let s=0;s<r;s++){let r=Fn(e,s,s+1).getClientRects();for(let l=0;l<r.length;l++){let u=r[l];if(u.top==u.bottom)continue;a||(a=t-u.left);let c=(u.top>n?u.top-n:n-u.bottom)-1;if(u.left-1<=t&&u.right+1>=t&&c<i){let n=t>=(u.left+u.right)/2,r=n;if(gr.chrome||gr.gecko){let t=Fn(e,s).getBoundingClientRect();t.left==u.right&&(r=!n)}if(c<=0)return{node:e,offset:s+(r?1:0)};o=s+(r?1:0),i=c}}}return{node:e,offset:o>-1?o:a>0?e.nodeValue.length:0}}function ci(e,t,n,r=-1){var o,i;let a,s=e.contentDOM.getBoundingClientRect(),l=s.top+e.viewState.paddingTop,{docHeight:u}=e.viewState,{x:c,y:d}=t,h=d-l;if(h<0)return 0;if(h>u)return e.state.doc.length;for(let _=e.viewState.heightOracle.textHeight/2,x=!1;;){if(a=e.elementAtHeight(h),a.type==Dr.Text)break;for(;;){if(h=r>0?a.bottom+_:a.top-_,h>=0&&h<=u)break;if(x)return n?null:0;x=!0,r=-r}}d=l+h;let p=a.from;if(p<e.viewport.from)return 0==e.viewport.from?0:n?null:di(e,s,a,c,d);if(p>e.viewport.to)return e.viewport.to==e.state.doc.length?e.state.doc.length:n?null:di(e,s,a,c,d);let f=e.dom.ownerDocument,g=e.root.elementFromPoint?e.root:f,m=g.elementFromPoint(c,d);m&&!e.contentDOM.contains(m)&&(m=null),m||(c=Math.max(s.left+1,Math.min(s.right-1,c)),m=g.elementFromPoint(c,d),m&&!e.contentDOM.contains(m)&&(m=null));let v,y=-1;if(m&&0!=(null===(o=e.docView.nearest(m))||void 0===o?void 0:o.isEditable))if(f.caretPositionFromPoint){let e=f.caretPositionFromPoint(c,d);e&&({offsetNode:v,offset:y}=e)}else if(f.caretRangeFromPoint){let t=f.caretRangeFromPoint(c,d);t&&(({startContainer:v,startOffset:y}=t),(!e.contentDOM.contains(v)||gr.safari&&hi(v,y,c)||gr.chrome&&pi(v,y,c))&&(v=void 0))}if(!v||!e.docView.dom.contains(v)){let t=Ir.find(e.docView,p);if(!t)return h>a.top+a.height/2?a.to:a.from;({node:v,offset:y}=li(t.dom,c,d))}let b=e.docView.nearest(v);if(!b)return null;if(b.isWidget&&1==(null===(i=b.dom)||void 0===i?void 0:i.nodeType)){let e=b.dom.getBoundingClientRect();return t.y<e.top||t.y<=e.bottom&&t.x<=(e.left+e.right)/2?b.posAtStart:b.posAtEnd}return b.localPosFromDOM(v,y)+b.posAtStart}function di(e,t,n,r,o){let i=Math.round((r-t.left)*e.defaultCharacterWidth);if(e.lineWrapping&&n.height>1.5*e.defaultLineHeight){let t=e.viewState.heightOracle.textHeight,r=Math.floor((o-n.top-.5*(e.defaultLineHeight-t))/t);i+=r*e.viewState.heightOracle.lineLength}let a=e.state.sliceDoc(n.from,n.to);return n.from+un(a,i,e.state.tabSize)}function hi(e,t,n){let r;if(3!=e.nodeType||t!=(r=e.nodeValue.length))return!1;for(let o=e.nextSibling;o;o=o.nextSibling)if(1!=o.nodeType||"BR"!=o.nodeName)return!1;return Fn(e,r-1,r).getBoundingClientRect().left>n}function pi(e,t,n){if(0!=t)return!1;for(let o=e;;){let e=o.parentNode;if(!e||1!=e.nodeType||e.firstChild!=o)return!1;if(e.classList.contains("cm-line"))break;o=e}let r=1==e.nodeType?e.getBoundingClientRect():Fn(e,0,Math.max(e.nodeValue.length,1)).getBoundingClientRect();return n-r.left>5}function fi(e,t){let n=e.lineBlockAt(t);if(Array.isArray(n.type))for(let r of n.type)if(r.to>t||r.to==t&&(r.to==n.to||r.type==Dr.Text))return r;return n}function gi(e,t,n,r){let o=fi(e,t.head),i=r&&o.type==Dr.Text&&(e.lineWrapping||o.widgetLineBreaks)?e.coordsAtPos(t.assoc<0&&t.head>o.from?t.head-1:t.head):null;if(i){let t=e.dom.getBoundingClientRect(),r=e.textDirectionAt(o.from),a=e.posAtCoords({x:n==(r==Hr.LTR)?t.right-1:t.left+1,y:(i.top+i.bottom)/2});if(null!=a)return Ye.cursor(a,n?-1:1)}return Ye.cursor(n?o.to:o.from,n?-1:1)}function mi(e,t,n,r){let o=e.state.doc.lineAt(t.head),i=e.bidiSpans(o),a=e.textDirectionAt(o.from);for(let s=t,l=null;;){let t=po(o,i,a,s,n),u=ho;if(!t){if(o.number==(n?e.state.doc.lines:1))return s;u="\n",o=e.state.doc.line(o.number+(n?1:-1)),i=e.bidiSpans(o),t=e.visualLineSide(o,!n)}if(l){if(!l(u))return s}else{if(!r)return t;l=r(u)}s=t}}function vi(e,t,n){let r=e.state.charCategorizer(t),o=r(n);return e=>{let t=r(e);return o==Lt.Space&&(o=t),o==t}}function yi(e,t,n,r){let o=t.head,i=n?1:-1;if(o==(n?e.state.doc.length:0))return Ye.cursor(o,t.assoc);let a,s=t.goalColumn,l=e.contentDOM.getBoundingClientRect(),u=e.coordsAtPos(o,t.assoc||-1),c=e.documentTop;if(u)null==s&&(s=u.left-l.left),a=i<0?u.top:u.bottom;else{let t=e.viewState.lineBlockAt(o);null==s&&(s=Math.min(l.right-l.left,e.defaultCharacterWidth*(o-t.from))),a=(i<0?t.top:t.bottom)+c}let d=l.left+s,h=null!==r&&void 0!==r?r:e.viewState.heightOracle.textHeight>>1;for(let p=0;;p+=10){let t=a+(h+p)*i,n=ci(e,{x:d,y:t},!1,i);if(t<l.top||t>l.bottom||(i<0?n<o:n>o)){let r=e.docView.coordsForChar(n),o=!r||t<r.top?-1:1;return Ye.cursor(n,o,void 0,s)}}}function bi(e,t,n){for(;;){let r=0;for(let o of e)o.between(t-1,t+1,((e,o,i)=>{if(t>e&&t<o){let i=r||n||(t-e<o-t?-1:1);t=i<0?e:o,r=i}}));if(!r)return t}}function _i(e,t,n){let r=bi(e.state.facet(zo).map((t=>t(e))),n.from,t.head>n.from?-1:1);return r==n.from?n:Ye.cursor(r,r<n.from?1:-1)}class xi{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.pendingIOSKey=void 0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,gr.safari&&e.contentDOM.addEventListener("input",(()=>null)),gr.gecko&&aa(e.contentDOM.ownerDocument)}handleEvent(e){Di(this.view,e)&&!this.ignoreDuringComposition(e)&&("keydown"==e.type&&this.keydown(e)||this.runHandlers(e.type,e))}runHandlers(e,t){let n=this.handlers[e];if(n){for(let e of n.observers)e(this.view,t);for(let e of n.handlers){if(t.defaultPrevented)break;if(e(this.view,t)){t.preventDefault();break}}}}ensureHandlers(e){let t=Oi(e),n=this.handlers,r=this.view.contentDOM;for(let o in t)if("scroll"!=o){let e=!t[o].handlers.length,i=n[o];i&&e!=!i.handlers.length&&(r.removeEventListener(o,this.handleEvent),i=null),i||r.addEventListener(o,this.handleEvent,{passive:e})}for(let o in n)"scroll"==o||t[o]||r.removeEventListener(o,this.handleEvent);this.handlers=t}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),9==e.keyCode&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))return!0;if(this.tabFocusMode>0&&27!=e.keyCode&&ki.indexOf(e.keyCode)<0&&(this.tabFocusMode=-1),gr.android&&gr.chrome&&!e.synthetic&&(13==e.keyCode||8==e.keyCode))return this.view.observer.delayAndroidKey(e.key,e.keyCode),!0;let t;return!gr.ios||e.synthetic||e.altKey||e.metaKey||!((t=Si.find((t=>t.keyCode==e.keyCode)))&&!e.ctrlKey||Ai.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(229!=e.keyCode&&this.view.observer.forceFlush(),!1):(this.pendingIOSKey=t||e,setTimeout((()=>this.flushIOSKey()),250),!0)}flushIOSKey(e){let t=this.pendingIOSKey;return!!t&&(!("Enter"==t.key&&e&&e.from<e.to&&/^\S+$/.test(e.insert.toString()))&&(this.pendingIOSKey=void 0,Wn(this.view.contentDOM,t.key,t.keyCode,t instanceof KeyboardEvent?t:void 0)))}ignoreDuringComposition(e){return!!/^key/.test(e.type)&&(this.composing>0||!!(gr.safari&&!gr.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100)&&(this.compositionPendingKey=!1,!0))}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.view.observer.update(e),this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function wi(e,t){return(n,r)=>{try{return t.call(e,r,n)}catch(o){Mo(n.state,o)}}}function Oi(e){let t=Object.create(null);function n(e){return t[e]||(t[e]={observers:[],handlers:[]})}for(let r of e){let e=r.spec;if(e&&e.domEventHandlers)for(let t in e.domEventHandlers){let o=e.domEventHandlers[t];o&&n(t).handlers.push(wi(r.value,o))}if(e&&e.domEventObservers)for(let t in e.domEventObservers){let o=e.domEventObservers[t];o&&n(t).observers.push(wi(r.value,o))}}for(let r in Ri)n(r).handlers.push(Ri[r]);for(let r in Ni)n(r).observers.push(Ni[r]);return t}const Si=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],Ai="dthko",ki=[16,17,18,20,91,92,224,225],Ci=6;function Mi(e){return.7*Math.max(0,e)+8}function Ti(e,t){return Math.max(Math.abs(e.clientX-t.clientX),Math.abs(e.clientY-t.clientY))}class Pi{constructor(e,t,n,r){this.view=e,this.startEvent=t,this.style=n,this.mustSelect=r,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=t,this.scrollParent=zn(e.contentDOM),this.atoms=e.state.facet(zo).map((t=>t(e)));let o=e.contentDOM.ownerDocument;o.addEventListener("mousemove",this.move=this.move.bind(this)),o.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=t.shiftKey,this.multiple=e.state.facet(Qt.allowMultipleSelections)&&Ii(e,t),this.dragging=!(!Ei(e,t)||1!=Ui(t))&&null}start(e){!1===this.dragging&&this.select(e)}move(e){var t;if(0==e.buttons)return this.destroy();if(this.dragging||null==this.dragging&&Ti(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let n=0,r=0,o=(null===(t=this.scrollParent)||void 0===t?void 0:t.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},i=Qo(this.view);e.clientX-i.left<=o.left+Ci?n=-Mi(o.left-e.clientX):e.clientX+i.right>=o.right-Ci&&(n=Mi(e.clientX-o.right)),e.clientY-i.top<=o.top+Ci?r=-Mi(o.top-e.clientY):e.clientY+i.bottom>=o.bottom-Ci&&(r=Mi(e.clientY-o.bottom)),this.setScrollSpeed(n,r)}up(e){null==this.dragging&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,t){this.scrollSpeed={x:e,y:t},e||t?this.scrolling<0&&(this.scrolling=setInterval((()=>this.scroll()),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),!1===this.dragging&&this.select(this.lastEvent)}skipAtoms(e){let t=null;for(let n=0;n<e.ranges.length;n++){let r=e.ranges[n],o=null;if(r.empty){let e=bi(this.atoms,r.from,0);e!=r.from&&(o=Ye.cursor(e,-1))}else{let e=bi(this.atoms,r.from,-1),t=bi(this.atoms,r.to,1);e==r.from&&t==r.to||(o=Ye.range(r.from==r.anchor?e:t,r.from==r.head?e:t))}o&&(t||(t=e.ranges.slice()),t[n]=o)}return t?Ye.create(t,e.mainIndex):e}select(e){let{view:t}=this,n=this.skipAtoms(this.style.get(e,this.extend,this.multiple));!this.mustSelect&&n.eq(t.state.selection,!1===this.dragging)||this.view.dispatch({selection:n,userEvent:"select.pointer"}),this.mustSelect=!1}update(e){e.transactions.some((e=>e.isUserEvent("input.type")))?this.destroy():this.style.update(e)&&setTimeout((()=>this.select(this.lastEvent)),20)}}function Ii(e,t){let n=e.state.facet(go);return n.length?n[0](t):gr.mac?t.metaKey:t.ctrlKey}function $i(e,t){let n=e.state.facet(mo);return n.length?n[0](t):gr.mac?!t.altKey:!t.ctrlKey}function Ei(e,t){let{main:n}=e.state.selection;if(n.empty)return!1;let r=Sn(e.root);if(!r||0==r.rangeCount)return!0;let o=r.getRangeAt(0).getClientRects();for(let i=0;i<o.length;i++){let e=o[i];if(e.left<=t.clientX&&e.right>=t.clientX&&e.top<=t.clientY&&e.bottom>=t.clientY)return!0}return!1}function Di(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n,r=t.target;r!=e.contentDOM;r=r.parentNode)if(!r||11==r.nodeType||(n=Jn.get(r))&&n.ignoreEvent(t))return!1;return!0}const Ri=Object.create(null),Ni=Object.create(null),Li=gr.ie&&gr.ie_version<15||gr.ios&&gr.webkit_version<604;function zi(e){let t=e.dom.parentNode;if(!t)return;let n=t.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus(),setTimeout((()=>{e.focus(),n.remove(),Vi(e,n.value)}),50)}function Vi(e,t){let n,{state:r}=e,o=1,i=r.toText(t),a=i.lines==r.selection.ranges.length,s=null!=ta&&r.selection.ranges.every((e=>e.empty))&&ta==i.toString();if(s){let e=-1;n=r.changeByRange((n=>{let s=r.doc.lineAt(n.from);if(s.from==e)return{range:n};e=s.from;let l=r.toText((a?i.line(o++).text:t)+r.lineBreak);return{changes:{from:s.from,insert:l},range:Ye.cursor(n.from+l.length)}}))}else n=a?r.changeByRange((e=>{let t=i.line(o++);return{changes:{from:e.from,to:e.to,insert:t.text},range:Ye.cursor(e.from+t.length)}})):r.replaceSelection(i);e.dispatch(n,{userEvent:"input.paste",scrollIntoView:!0})}function Bi(e,t,n,r){if(1==r)return Ye.cursor(t,n);if(2==r)return ni(e.state,t,n);{let n=Ir.find(e.docView,t),r=e.state.doc.lineAt(n?n.posAtEnd:t),o=n?n.posAtStart:r.from,i=n?n.posAtEnd:r.to;return i<e.state.doc.length&&i==r.to&&i++,Ye.range(o,i)}}Ni.scroll=e=>{e.inputState.lastScrollTop=e.scrollDOM.scrollTop,e.inputState.lastScrollLeft=e.scrollDOM.scrollLeft},Ri.keydown=(e,t)=>(e.inputState.setSelectionOrigin("select"),27==t.keyCode&&0!=e.inputState.tabFocusMode&&(e.inputState.tabFocusMode=Date.now()+2e3),!1),Ni.touchstart=(e,t)=>{e.inputState.lastTouchTime=Date.now(),e.inputState.setSelectionOrigin("select.pointer")},Ni.touchmove=e=>{e.inputState.setSelectionOrigin("select.pointer")},Ri.mousedown=(e,t)=>{if(e.observer.flush(),e.inputState.lastTouchTime>Date.now()-2e3)return!1;let n=null;for(let r of e.state.facet(vo))if(n=r(e,t),n)break;if(n||0!=t.button||(n=Yi(e,t)),n){let r=!e.hasFocus;e.inputState.startMouseSelection(new Pi(e,t,n,r)),r&&e.observer.ignore((()=>{Qn(e.contentDOM);let t=e.root.activeElement;t&&!t.contains(e.contentDOM)&&t.blur()}));let o=e.inputState.mouseSelection;if(o)return o.start(t),!1===o.dragging}return!1};let ji=(e,t)=>e>=t.top&&e<=t.bottom,Qi=(e,t,n)=>ji(t,n)&&e>=n.left&&e<=n.right;function Fi(e,t,n,r){let o=Ir.find(e.docView,t);if(!o)return 1;let i=t-o.posAtStart;if(0==i)return 1;if(i==o.length)return-1;let a=o.coordsAt(i,-1);if(a&&Qi(n,r,a))return-1;let s=o.coordsAt(i,1);return s&&Qi(n,r,s)?1:a&&ji(r,a)?-1:1}function Wi(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1);return{pos:n,bias:Fi(e,n,t.clientX,t.clientY)}}const Hi=gr.ie&&gr.ie_version<=11;let Zi=null,Gi=0,Xi=0;function Ui(e){if(!Hi)return e.detail;let t=Zi,n=Xi;return Zi=e,Xi=Date.now(),Gi=!t||n>Date.now()-400&&Math.abs(t.clientX-e.clientX)<2&&Math.abs(t.clientY-e.clientY)<2?(Gi+1)%3:1}function Yi(e,t){let n=Wi(e,t),r=Ui(t),o=e.state.selection;return{update(e){e.docChanged&&(n.pos=e.changes.mapPos(n.pos),o=o.map(e.changes))},get(t,i,a){let s,l=Wi(e,t),u=Bi(e,l.pos,l.bias,r);if(n.pos!=l.pos&&!i){let t=Bi(e,n.pos,n.bias,r),o=Math.min(t.from,u.from),i=Math.max(t.to,u.to);u=o<u.from?Ye.range(o,i):Ye.range(i,o)}return i?o.replaceRange(o.main.extend(u.from,u.to)):a&&1==r&&o.ranges.length>1&&(s=qi(o,l.pos))?s:a?o.addRange(u):Ye.create([u])}}}function qi(e,t){for(let n=0;n<e.ranges.length;n++){let{from:r,to:o}=e.ranges[n];if(r<=t&&o>=t)return Ye.create(e.ranges.slice(0,n).concat(e.ranges.slice(n+1)),e.mainIndex==n?0:e.mainIndex-(e.mainIndex>n?1:0))}return null}function Ki(e,t,n,r){if(!n)return;let o=e.posAtCoords({x:t.clientX,y:t.clientY},!1),{draggedContent:i}=e.inputState,a=r&&i&&$i(e,t)?{from:i.from,to:i.to}:null,s={from:o,insert:n},l=e.state.changes(a?[a,s]:s);e.focus(),e.dispatch({changes:l,selection:{anchor:l.mapPos(o,-1),head:l.mapPos(o,1)},userEvent:a?"move.drop":"input.drop"}),e.inputState.draggedContent=null}function Ji(e,t){let n=e.dom.parentNode;if(!n)return;let r=n.appendChild(document.createElement("textarea"));r.style.cssText="position: fixed; left: -10000px; top: 10px",r.value=t,r.focus(),r.selectionEnd=t.length,r.selectionStart=0,setTimeout((()=>{r.remove(),e.focus()}),50)}function ea(e){let t=[],n=[],r=!1;for(let o of e.selection.ranges)o.empty||(t.push(e.sliceDoc(o.from,o.to)),n.push(o));if(!t.length){let o=-1;for(let{from:r}of e.selection.ranges){let i=e.doc.lineAt(r);i.number>o&&(t.push(i.text),n.push({from:i.from,to:Math.min(e.doc.length,i.to+1)})),o=i.number}r=!0}return{text:t.join(e.lineBreak),ranges:n,linewise:r}}Ri.dragstart=(e,t)=>{let{selection:{main:n}}=e.state;if(t.target.draggable){let r=e.docView.nearest(t.target);if(r&&r.isWidget){let e=r.posAtStart,t=e+r.length;(e>=n.to||t<=n.from)&&(n=Ye.range(e,t))}}let{inputState:r}=e;return r.mouseSelection&&(r.mouseSelection.dragging=!0),r.draggedContent=n,t.dataTransfer&&(t.dataTransfer.setData("Text",e.state.sliceDoc(n.from,n.to)),t.dataTransfer.effectAllowed="copyMove"),!1},Ri.dragend=e=>(e.inputState.draggedContent=null,!1),Ri.drop=(e,t)=>{if(!t.dataTransfer)return!1;if(e.state.readOnly)return!0;let n=t.dataTransfer.files;if(n&&n.length){let r=Array(n.length),o=0,i=()=>{++o==n.length&&Ki(e,t,r.filter((e=>null!=e)).join(e.state.lineBreak),!1)};for(let e=0;e<n.length;e++){let t=new FileReader;t.onerror=i,t.onload=()=>{/[\x00-\x08\x0e-\x1f]{2}/.test(t.result)||(r[e]=t.result),i()},t.readAsText(n[e])}return!0}{let n=t.dataTransfer.getData("Text");if(n)return Ki(e,t,n,!0),!0}return!1},Ri.paste=(e,t)=>{if(e.state.readOnly)return!0;e.observer.flush();let n=Li?null:t.clipboardData;return n?(Vi(e,n.getData("text/plain")||n.getData("text/uri-list")),!0):(zi(e),!1)};let ta=null;Ri.copy=Ri.cut=(e,t)=>{let{text:n,ranges:r,linewise:o}=ea(e.state);if(!n&&!o)return!1;ta=o?n:null,"cut"!=t.type||e.state.readOnly||e.dispatch({changes:r,scrollIntoView:!0,userEvent:"delete.cut"});let i=Li?null:t.clipboardData;return i?(i.clearData(),i.setData("text/plain",n),!0):(Ji(e,n),!1)};const na=St.define();function ra(e,t){let n=[];for(let r of e.facet(xo)){let o=r(e,t);o&&n.push(o)}return n?e.update({effects:n,annotations:na.of(!0)}):null}function oa(e){setTimeout((()=>{let t=e.hasFocus;if(t!=e.inputState.notifiedFocused){let n=ra(e.state,t);n?e.dispatch(n):e.update([])}}),10)}Ni.focus=e=>{e.inputState.lastFocusTime=Date.now(),e.scrollDOM.scrollTop||!e.inputState.lastScrollTop&&!e.inputState.lastScrollLeft||(e.scrollDOM.scrollTop=e.inputState.lastScrollTop,e.scrollDOM.scrollLeft=e.inputState.lastScrollLeft),oa(e)},Ni.blur=e=>{e.observer.clearSelectionRange(),oa(e)},Ni.compositionstart=Ni.compositionupdate=e=>{e.observer.editContext||(null==e.inputState.compositionFirstChange&&(e.inputState.compositionFirstChange=!0),e.inputState.composing<0&&(e.inputState.composing=0))},Ni.compositionend=e=>{e.observer.editContext||(e.inputState.composing=-1,e.inputState.compositionEndedAt=Date.now(),e.inputState.compositionPendingKey=!0,e.inputState.compositionPendingChange=e.observer.pendingRecords().length>0,e.inputState.compositionFirstChange=null,gr.chrome&&gr.android?e.observer.flushSoon():e.inputState.compositionPendingChange?Promise.resolve().then((()=>e.observer.flush())):setTimeout((()=>{e.inputState.composing<0&&e.docView.hasComposition&&e.update([])}),50))},Ni.contextmenu=e=>{e.inputState.lastContextMenu=Date.now()},Ri.beforeinput=(e,t)=>{var n;let r;if(gr.chrome&&gr.android&&(r=Si.find((e=>e.inputType==t.inputType)))&&(e.observer.delayAndroidKey(r.key,r.keyCode),"Backspace"==r.key||"Delete"==r.key)){let t=(null===(n=window.visualViewport)||void 0===n?void 0:n.height)||0;setTimeout((()=>{var n;((null===(n=window.visualViewport)||void 0===n?void 0:n.height)||0)>t+10&&e.hasFocus&&(e.contentDOM.blur(),e.focus())}),100)}return gr.ios&&"deleteContentForward"==t.inputType&&e.observer.flushSoon(),gr.safari&&"insertText"==t.inputType&&e.inputState.composing>=0&&setTimeout((()=>Ni.compositionend(e,t)),20),!1};const ia=new Set;function aa(e){ia.has(e)||(ia.add(e),e.addEventListener("copy",(()=>{})),e.addEventListener("cut",(()=>{})))}const sa=["pre-wrap","normal","pre-line","break-spaces"];class la{constructor(e){this.lineWrapping=e,this.doc=me.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(e,t){let n=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(n+=Math.max(0,Math.ceil((t-e-n*this.lineLength*.5)/this.lineLength))),this.lineHeight*n}heightForLine(e){if(!this.lineWrapping)return this.lineHeight;let t=1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5)));return t*this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return sa.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=!1;for(let n=0;n<e.length;n++){let r=e[n];r<0?n++:this.heightSamples[Math.floor(10*r)]||(t=!0,this.heightSamples[Math.floor(10*r)]=!0)}return t}refresh(e,t,n,r,o,i){let a=sa.indexOf(e)>-1,s=Math.round(t)!=Math.round(this.lineHeight)||this.lineWrapping!=a;if(this.lineWrapping=a,this.lineHeight=t,this.charWidth=n,this.textHeight=r,this.lineLength=o,s){this.heightSamples={};for(let e=0;e<i.length;e++){let t=i[e];t<0?e++:this.heightSamples[Math.floor(10*t)]=!0}}return s}}class ua{constructor(e,t){this.from=e,this.heights=t,this.index=0}get more(){return this.index<this.heights.length}}class ca{constructor(e,t,n,r,o){this.from=e,this.length=t,this.top=n,this.height=r,this._content=o}get type(){return"number"==typeof this._content?Dr.Text:Array.isArray(this._content)?this._content:this._content.type}get to(){return this.from+this.length}get bottom(){return this.top+this.height}get widget(){return this._content instanceof zr?this._content.widget:null}get widgetLineBreaks(){return"number"==typeof this._content?this._content:0}join(e){let t=(Array.isArray(this._content)?this._content:[this]).concat(Array.isArray(e._content)?e._content:[e]);return new ca(this.from,this.length+e.length,this.top,this.height+e.height,t)}}var da=function(e){return e[e["ByPos"]=0]="ByPos",e[e["ByHeight"]=1]="ByHeight",e[e["ByPosNoHeight"]=2]="ByPosNoHeight",e}(da||(da={}));const ha=.001;class pa{constructor(e,t,n=2){this.length=e,this.height=t,this.flags=n}get outdated(){return(2&this.flags)>0}set outdated(e){this.flags=(e?2:0)|-3&this.flags}setHeight(e,t){this.height!=t&&(Math.abs(this.height-t)>ha&&(e.heightChanged=!0),this.height=t)}replace(e,t,n){return pa.of(n)}decomposeLeft(e,t){t.push(this)}decomposeRight(e,t){t.push(this)}applyChanges(e,t,n,r){let o=this,i=n.doc;for(let a=r.length-1;a>=0;a--){let{fromA:s,toA:l,fromB:u,toB:c}=r[a],d=o.lineAt(s,da.ByPosNoHeight,n.setDoc(t),0,0),h=d.to>=l?d:o.lineAt(l,da.ByPosNoHeight,n,0,0);c+=h.to-l,l=h.to;while(a>0&&d.from<=r[a-1].toA)s=r[a-1].fromA,u=r[a-1].fromB,a--,s<d.from&&(d=o.lineAt(s,da.ByPosNoHeight,n,0,0));u+=d.from-s,s=d.from;let p=_a.build(n.setDoc(i),e,u,c);o=o.replace(s,l,p)}return o.updateHeight(n,0)}static empty(){return new ga(0,0)}static of(e){if(1==e.length)return e[0];let t=0,n=e.length,r=0,o=0;for(;;)if(t==n)if(r>2*o){let o=e[t-1];o.break?e.splice(--t,1,o.left,null,o.right):e.splice(--t,1,o.left,o.right),n+=1+o.break,r-=o.size}else{if(!(o>2*r))break;{let t=e[n];t.break?e.splice(n,1,t.left,null,t.right):e.splice(n,1,t.left,t.right),n+=2+t.break,o-=t.size}}else if(r<o){let n=e[t++];n&&(r+=n.size)}else{let t=e[--n];t&&(o+=t.size)}let i=0;return null==e[t-1]?(i=1,t--):null==e[t]&&(i=1,n++),new va(pa.of(e.slice(0,t)),i,pa.of(e.slice(n)))}}pa.prototype.size=1;class fa extends pa{constructor(e,t,n){super(e,t),this.deco=n}blockAt(e,t,n,r){return new ca(r,this.length,n,this.height,this.deco||0)}lineAt(e,t,n,r,o){return this.blockAt(0,n,r,o)}forEachLine(e,t,n,r,o,i){e<=o+this.length&&t>=o&&i(this.blockAt(0,n,r,o))}updateHeight(e,t=0,n=!1,r){return r&&r.from<=t&&r.more&&this.setHeight(e,r.heights[r.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class ga extends fa{constructor(e,t){super(e,t,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(e,t,n,r){return new ca(r,this.length,n,this.height,this.breaks)}replace(e,t,n){let r=n[0];return 1==n.length&&(r instanceof ga||r instanceof ma&&4&r.flags)&&Math.abs(this.length-r.length)<10?(r instanceof ma?r=new ga(r.length,this.height):r.height=this.height,this.outdated||(r.outdated=!1),r):pa.of(n)}updateHeight(e,t=0,n=!1,r){return r&&r.from<=t&&r.more?this.setHeight(e,r.heights[r.index++]):(n||this.outdated)&&this.setHeight(e,Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class ma extends pa{constructor(e){super(e,0)}heightMetrics(e,t){let n,r=e.doc.lineAt(t).number,o=e.doc.lineAt(t+this.length).number,i=o-r+1,a=0;if(e.lineWrapping){let t=Math.min(this.height,e.lineHeight*i);n=t/i,this.length>i+1&&(a=(this.height-t)/(this.length-i-1))}else n=this.height/i;return{firstLine:r,lastLine:o,perLine:n,perChar:a}}blockAt(e,t,n,r){let{firstLine:o,lastLine:i,perLine:a,perChar:s}=this.heightMetrics(t,r);if(t.lineWrapping){let o=r+(e<t.lineHeight?0:Math.round(Math.max(0,Math.min(1,(e-n)/this.height))*this.length)),i=t.doc.lineAt(o),l=a+i.length*s,u=Math.max(n,e-l/2);return new ca(i.from,i.length,u,l,0)}{let r=Math.max(0,Math.min(i-o,Math.floor((e-n)/a))),{from:s,length:l}=t.doc.line(o+r);return new ca(s,l,n+a*r,a,0)}}lineAt(e,t,n,r,o){if(t==da.ByHeight)return this.blockAt(e,n,r,o);if(t==da.ByPosNoHeight){let{from:t,to:r}=n.doc.lineAt(e);return new ca(t,r-t,0,0,0)}let{firstLine:i,perLine:a,perChar:s}=this.heightMetrics(n,o),l=n.doc.lineAt(e),u=a+l.length*s,c=l.number-i,d=r+a*c+s*(l.from-o-c);return new ca(l.from,l.length,Math.max(r,Math.min(d,r+this.height-u)),u,0)}forEachLine(e,t,n,r,o,i){e=Math.max(e,o),t=Math.min(t,o+this.length);let{firstLine:a,perLine:s,perChar:l}=this.heightMetrics(n,o);for(let u=e,c=r;u<=t;){let t=n.doc.lineAt(u);if(u==e){let n=t.number-a;c+=s*n+l*(e-o-n)}let r=s+l*t.length;i(new ca(t.from,t.length,c,r,0)),c+=r,u=t.to+1}}replace(e,t,n){let r=this.length-t;if(r>0){let e=n[n.length-1];e instanceof ma?n[n.length-1]=new ma(e.length+r):n.push(null,new ma(r-1))}if(e>0){let t=n[0];t instanceof ma?n[0]=new ma(e+t.length):n.unshift(new ma(e-1),null)}return pa.of(n)}decomposeLeft(e,t){t.push(new ma(e-1),null)}decomposeRight(e,t){t.push(null,new ma(this.length-e-1))}updateHeight(e,t=0,n=!1,r){let o=t+this.length;if(r&&r.from<=t+this.length&&r.more){let n=[],i=Math.max(t,r.from),a=-1;r.from>t&&n.push(new ma(r.from-t-1).updateHeight(e,t));while(i<=o&&r.more){let t=e.doc.lineAt(i).length;n.length&&n.push(null);let o=r.heights[r.index++];-1==a?a=o:Math.abs(o-a)>=ha&&(a=-2);let s=new ga(t,o);s.outdated=!1,n.push(s),i+=t+1}i<=o&&n.push(null,new ma(o-i).updateHeight(e,i));let s=pa.of(n);return(a<0||Math.abs(s.height-this.height)>=ha||Math.abs(a-this.heightMetrics(e,t).perLine)>=ha)&&(e.heightChanged=!0),s}return(n||this.outdated)&&(this.setHeight(e,e.heightForGap(t,t+this.length)),this.outdated=!1),this}toString(){return`gap(${this.length})`}}class va extends pa{constructor(e,t,n){super(e.length+t+n.length,e.height+n.height,t|(e.outdated||n.outdated?2:0)),this.left=e,this.right=n,this.size=e.size+n.size}get break(){return 1&this.flags}blockAt(e,t,n,r){let o=n+this.left.height;return e<o?this.left.blockAt(e,t,n,r):this.right.blockAt(e,t,o,r+this.left.length+this.break)}lineAt(e,t,n,r,o){let i=r+this.left.height,a=o+this.left.length+this.break,s=t==da.ByHeight?e<i:e<a,l=s?this.left.lineAt(e,t,n,r,o):this.right.lineAt(e,t,n,i,a);if(this.break||(s?l.to<a:l.from>a))return l;let u=t==da.ByPosNoHeight?da.ByPosNoHeight:da.ByPos;return s?l.join(this.right.lineAt(a,u,n,i,a)):this.left.lineAt(a,u,n,r,o).join(l)}forEachLine(e,t,n,r,o,i){let a=r+this.left.height,s=o+this.left.length+this.break;if(this.break)e<s&&this.left.forEachLine(e,t,n,r,o,i),t>=s&&this.right.forEachLine(e,t,n,a,s,i);else{let l=this.lineAt(s,da.ByPos,n,r,o);e<l.from&&this.left.forEachLine(e,l.from-1,n,r,o,i),l.to>=e&&l.from<=t&&i(l),t>l.to&&this.right.forEachLine(l.to+1,t,n,a,s,i)}}replace(e,t,n){let r=this.left.length+this.break;if(t<r)return this.balanced(this.left.replace(e,t,n),this.right);if(e>this.left.length)return this.balanced(this.left,this.right.replace(e-r,t-r,n));let o=[];e>0&&this.decomposeLeft(e,o);let i=o.length;for(let a of n)o.push(a);if(e>0&&ya(o,i-1),t<this.length){let e=o.length;this.decomposeRight(t,o),ya(o,e)}return pa.of(o)}decomposeLeft(e,t){let n=this.left.length;if(e<=n)return this.left.decomposeLeft(e,t);t.push(this.left),this.break&&(n++,e>=n&&t.push(null)),e>n&&this.right.decomposeLeft(e-n,t)}decomposeRight(e,t){let n=this.left.length,r=n+this.break;if(e>=r)return this.right.decomposeRight(e-r,t);e<n&&this.left.decomposeRight(e,t),this.break&&e<r&&t.push(null),t.push(this.right)}balanced(e,t){return e.size>2*t.size||t.size>2*e.size?pa.of(this.break?[e,null,t]:[e,t]):(this.left=e,this.right=t,this.height=e.height+t.height,this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}updateHeight(e,t=0,n=!1,r){let{left:o,right:i}=this,a=t+o.length+this.break,s=null;return r&&r.from<=t+o.length&&r.more?s=o=o.updateHeight(e,t,n,r):o.updateHeight(e,t,n),r&&r.from<=a+i.length&&r.more?s=i=i.updateHeight(e,a,n,r):i.updateHeight(e,a,n),s?this.balanced(o,i):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function ya(e,t){let n,r;null==e[t]&&(n=e[t-1])instanceof ma&&(r=e[t+1])instanceof ma&&e.splice(t-1,3,new ma(n.length+1+r.length))}const ba=5;class _a{constructor(e,t){this.pos=e,this.oracle=t,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,t){if(this.lineStart>-1){let e=Math.min(t,this.lineEnd),n=this.nodes[this.nodes.length-1];n instanceof ga?n.length+=e-this.pos:(e>this.pos||!this.isCovered)&&this.nodes.push(new ga(e-this.pos,-1)),this.writtenTo=e,t>e&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}point(e,t,n){if(e<t||n.heightRelevant){let r=n.widget?n.widget.estimatedHeight:0,o=n.widget?n.widget.lineBreaks:0;r<0&&(r=this.oracle.lineHeight);let i=t-e;n.block?this.addBlock(new fa(i,r,n)):(i||o||r>=ba)&&this.addLineDeco(r,o,i)}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd<this.pos&&(this.lineEnd=this.oracle.doc.lineAt(this.pos).to)}enterLine(){if(this.lineStart>-1)return;let{from:e,to:t}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=t,this.writtenTo<e&&((this.writtenTo<e-1||null==this.nodes[this.nodes.length-1])&&this.nodes.push(this.blankContent(this.writtenTo,e-1)),this.nodes.push(null)),this.pos>e&&this.nodes.push(new ga(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,t){let n=new ma(t-e);return this.oracle.doc.lineAt(e).to==t&&(n.flags|=4),n}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof ga)return e;let t=new ga(0,-1);return this.nodes.push(t),t}addBlock(e){this.enterLine();let t=e.deco;t&&t.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,t&&t.endSide>0&&(this.covering=e)}addLineDeco(e,t,n){let r=this.ensureLine();r.length+=n,r.collapsed+=n,r.widgetHeight=Math.max(r.widgetHeight,e),r.breaks+=t,this.writtenTo=this.pos=this.pos+n}finish(e){let t=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||t instanceof ga||this.isCovered?(this.writtenTo<this.pos||null==t)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos)):this.nodes.push(new ga(0,-1));let n=e;for(let r of this.nodes)r instanceof ga&&r.updateHeight(this.oracle,n),n+=r?r.length:1;return this.nodes}static build(e,t,n,r){let o=new _a(n,e);return Xt.spans(t,n,r,o,0),o.finish(n)}}function xa(e,t,n){let r=new wa;return Xt.compare(e,t,n,r,0),r.changes}class wa{constructor(){this.changes=[]}compareRange(){}comparePoint(e,t,n,r){(e<t||n&&n.heightRelevant||r&&r.heightRelevant)&&jr(e,t,this.changes,5)}}function Oa(e,t){let n=e.getBoundingClientRect(),r=e.ownerDocument,o=r.defaultView||window,i=Math.max(0,n.left),a=Math.min(o.innerWidth,n.right),s=Math.max(0,n.top),l=Math.min(o.innerHeight,n.bottom);for(let u=e.parentNode;u&&u!=r.body;)if(1==u.nodeType){let t=u,n=window.getComputedStyle(t);if((t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth)&&"visible"!=n.overflow){let n=t.getBoundingClientRect();i=Math.max(i,n.left),a=Math.min(a,n.right),s=Math.max(s,n.top),l=u==e.parentNode?n.bottom:Math.min(l,n.bottom)}u="absolute"==n.position||"fixed"==n.position?t.offsetParent:t.parentNode}else{if(11!=u.nodeType)break;u=u.host}return{left:i-n.left,right:Math.max(i,a)-n.left,top:s-(n.top+t),bottom:Math.max(s,l)-(n.top+t)}}function Sa(e,t){let n=e.getBoundingClientRect();return{left:0,right:n.right-n.left,top:t,bottom:n.bottom-(n.top+t)}}class Aa{constructor(e,t,n){this.from=e,this.to=t,this.size=n}static same(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++){let r=e[n],o=t[n];if(r.from!=o.from||r.to!=o.to||r.size!=o.size)return!1}return!0}draw(e,t){return Rr.replace({widget:new ka(this.size*(t?e.scaleY:e.scaleX),t)}).range(this.from,this.to)}}class ka extends Er{constructor(e,t){super(),this.size=e,this.vertical=t}eq(e){return e.size==this.size&&e.vertical==this.vertical}toDOM(){let e=document.createElement("div");return this.vertical?e.style.height=this.size+"px":(e.style.width=this.size+"px",e.style.height="2px",e.style.display="inline-block"),e}get estimatedHeight(){return this.vertical?this.size:-1}}class Ca{constructor(e){this.state=e,this.pixelViewport={left:0,right:window.innerWidth,top:0,bottom:0},this.inView=!0,this.paddingTop=0,this.paddingBottom=0,this.contentDOMWidth=0,this.contentDOMHeight=0,this.editorHeight=0,this.editorWidth=0,this.scrollTop=0,this.scrolledToBottom=!1,this.scaleX=1,this.scaleY=1,this.scrollAnchorPos=0,this.scrollAnchorHeight=-1,this.scaler=Ea,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=Hr.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;let t=e.facet(Ro).some((e=>"function"!=typeof e&&"cm-lineWrapping"==e.class));this.heightOracle=new la(t),this.stateDeco=e.facet(No).filter((e=>"function"!=typeof e)),this.heightMap=pa.empty().applyChanges(this.stateDeco,me.empty,this.heightOracle.setDoc(e.doc),[new Wo(0,0,0,e.doc.length)]);for(let n=0;n<2;n++)if(this.viewport=this.getViewport(0,null),!this.updateForViewport())break;this.updateViewportLines(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=Rr.set(this.lineGaps.map((e=>e.draw(this,!1)))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let n=0;n<=1;n++){let r=n?t.head:t.anchor;if(!e.some((({from:e,to:t})=>r>=e&&r<=t))){let{from:t,to:n}=this.lineBlockAt(r);e.push(new Ma(t,n))}}return this.viewports=e.sort(((e,t)=>e.from-t.from)),this.updateScaler()}updateScaler(){let e=this.scaler;return this.scaler=this.heightMap.height<=7e6?Ea:new Da(this.heightOracle,this.heightMap,this.viewports),e.eq(this.scaler)?0:2}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,(e=>{this.viewportLines.push(Ra(e,this.scaler))}))}update(e,t=null){this.state=e.state;let n=this.stateDeco;this.stateDeco=this.state.facet(No).filter((e=>"function"!=typeof e));let r=e.changedRanges,o=Wo.extendWithRanges(r,xa(n,this.stateDeco,e?e.changes:Qe.empty(this.state.doc.length))),i=this.heightMap.height,a=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),o),this.heightMap.height!=i&&(e.flags|=2),a?(this.scrollAnchorPos=e.changes.mapPos(a.from,-1),this.scrollAnchorHeight=a.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let s=o.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.head<s.from||t.range.head>s.to)||!this.viewportIsAppropriate(s))&&(s=this.getViewport(0,t));let l=s.from!=this.viewport.from||s.to!=this.viewport.to;this.viewport=s,e.flags|=this.updateForViewport(),(l||!e.changes.empty||2&e.flags)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(Oo)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let t=e.contentDOM,n=window.getComputedStyle(t),r=this.heightOracle,o=n.whiteSpace;this.defaultTextDirection="rtl"==n.direction?Hr.RTL:Hr.LTR;let i=this.heightOracle.mustRefreshForWrapping(o),a=t.getBoundingClientRect(),s=i||this.mustMeasureContent||this.contentDOMHeight!=a.height;this.contentDOMHeight=a.height,this.mustMeasureContent=!1;let l=0,u=0;if(a.width&&a.height){let{scaleX:e,scaleY:n}=Nn(t,a);(e>.005&&Math.abs(this.scaleX-e)>.005||n>.005&&Math.abs(this.scaleY-n)>.005)&&(this.scaleX=e,this.scaleY=n,l|=8,i=s=!0)}let c=(parseInt(n.paddingTop)||0)*this.scaleY,d=(parseInt(n.paddingBottom)||0)*this.scaleY;this.paddingTop==c&&this.paddingBottom==d||(this.paddingTop=c,this.paddingBottom=d,l|=10),this.editorWidth!=e.scrollDOM.clientWidth&&(r.lineWrapping&&(s=!0),this.editorWidth=e.scrollDOM.clientWidth,l|=8);let h=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=h&&(this.scrollAnchorHeight=-1,this.scrollTop=h),this.scrolledToBottom=Xn(e.scrollDOM);let p=(this.printing?Sa:Oa)(t,this.paddingTop),f=p.top-this.pixelViewport.top,g=p.bottom-this.pixelViewport.bottom;this.pixelViewport=p;let m=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(m!=this.inView&&(this.inView=m,m&&(s=!0)),!this.inView&&!this.scrollTarget)return 0;let v=a.width;if(this.contentDOMWidth==v&&this.editorHeight==e.scrollDOM.clientHeight||(this.contentDOMWidth=a.width,this.editorHeight=e.scrollDOM.clientHeight,l|=8),s){let t=e.docView.measureVisibleLineHeights(this.viewport);if(r.mustRefreshForHeights(t)&&(i=!0),i||r.lineWrapping&&Math.abs(v-this.contentDOMWidth)>r.charWidth){let{lineHeight:n,charWidth:a,textHeight:s}=e.docView.measureTextSize();i=n>0&&r.refresh(o,n,a,s,v/a,t),i&&(e.docView.minWidth=0,l|=8)}f>0&&g>0?u=Math.max(f,g):f<0&&g<0&&(u=Math.min(f,g)),r.heightChanged=!1;for(let n of this.viewports){let o=n.from==this.viewport.from?t:e.docView.measureVisibleLineHeights(n);this.heightMap=(i?pa.empty().applyChanges(this.stateDeco,me.empty,this.heightOracle,[new Wo(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(r,0,i,new ua(n.from,o))}r.heightChanged&&(l|=2)}let y=!this.viewportIsAppropriate(this.viewport,u)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return y&&(2&l&&(l|=this.updateScaler()),this.viewport=this.getViewport(u,this.scrollTarget),l|=this.updateForViewport()),(2&l||y)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(i?[]:this.lineGaps,e)),l|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),l}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,t){let n=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),r=this.heightMap,o=this.heightOracle,{visibleTop:i,visibleBottom:a}=this,s=new Ma(r.lineAt(i-1e3*n,da.ByHeight,o,0,0).from,r.lineAt(a+1e3*(1-n),da.ByHeight,o,0,0).to);if(t){let{head:e}=t.range;if(e<s.from||e>s.to){let n,i=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),a=r.lineAt(e,da.ByPos,o,0,0);n="center"==t.y?(a.top+a.bottom)/2-i/2:"start"==t.y||"nearest"==t.y&&e<s.from?a.top:a.bottom-i,s=new Ma(r.lineAt(n-500,da.ByHeight,o,0,0).from,r.lineAt(n+i+500,da.ByHeight,o,0,0).to)}}return s}mapViewport(e,t){let n=t.mapPos(e.from,-1),r=t.mapPos(e.to,1);return new Ma(this.heightMap.lineAt(n,da.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(r,da.ByPos,this.heightOracle,0,0).to)}viewportIsAppropriate({from:e,to:t},n=0){if(!this.inView)return!0;let{top:r}=this.heightMap.lineAt(e,da.ByPos,this.heightOracle,0,0),{bottom:o}=this.heightMap.lineAt(t,da.ByPos,this.heightOracle,0,0),{visibleTop:i,visibleBottom:a}=this;return(0==e||r<=i-Math.max(10,Math.min(-n,250)))&&(t==this.state.doc.length||o>=a+Math.max(10,Math.min(n,250)))&&r>i-2e3&&o<a+2e3}mapLineGaps(e,t){if(!e.length||t.empty)return e;let n=[];for(let r of e)t.touchesRange(r.from,r.to)||n.push(new Aa(t.mapPos(r.from),t.mapPos(r.to),r.size));return n}ensureLineGaps(e,t){let n=this.heightOracle.lineWrapping,r=n?1e4:2e3,o=r>>1,i=r<<1;if(this.defaultTextDirection!=Hr.LTR&&!n)return[];let a=[],s=(r,i,l,u)=>{if(i-r<o)return;let c=this.state.selection.main,d=[c.from];c.empty||d.push(c.to);for(let e of d)if(e>r&&e<i)return s(r,e-10,l,u),void s(e+10,i,l,u);let h=$a(e,(e=>e.from>=l.from&&e.to<=l.to&&Math.abs(e.from-r)<o&&Math.abs(e.to-i)<o&&!d.some((t=>e.from<t&&e.to>t))));if(!h){if(i<l.to&&t&&n&&t.visibleRanges.some((e=>e.from<=i&&e.to>=i))){let e=t.moveToLineBoundary(Ye.cursor(i),!1,!0).head;e>r&&(i=e)}h=new Aa(r,i,this.gapSize(l,r,i,u))}a.push(h)},l=e=>{if(e.length<i||e.type!=Dr.Text)return;let t=Ta(e.from,e.to,this.stateDeco);if(t.total<i)return;let o,a,l=this.scrollTarget?this.scrollTarget.range.head:null;if(n){let n,i,s=r/this.heightOracle.lineLength*this.heightOracle.lineHeight;if(null!=l){let r=Ia(t,l),o=((this.visibleBottom-this.visibleTop)/2+s)/e.height;n=r-o,i=r+o}else n=(this.visibleTop-e.top-s)/e.height,i=(this.visibleBottom-e.top+s)/e.height;o=Pa(t,n),a=Pa(t,i)}else{let e,n,i=t.total*this.heightOracle.charWidth,s=r*this.heightOracle.charWidth;if(null!=l){let r=Ia(t,l),o=((this.pixelViewport.right-this.pixelViewport.left)/2+s)/i;e=r-o,n=r+o}else e=(this.pixelViewport.left-s)/i,n=(this.pixelViewport.right+s)/i;o=Pa(t,e),a=Pa(t,n)}o>e.from&&s(e.from,o,e,t),a<e.to&&s(a,e.to,e,t)};for(let u of this.viewportLines)Array.isArray(u.type)?u.type.forEach(l):l(u);return a}gapSize(e,t,n,r){let o=Ia(r,n)-Ia(r,t);return this.heightOracle.lineWrapping?e.height*o:r.total*this.heightOracle.charWidth*o}updateLineGaps(e){Aa.same(e,this.lineGaps)||(this.lineGaps=e,this.lineGapDeco=Rr.set(e.map((e=>e.draw(this,this.heightOracle.lineWrapping)))))}computeVisibleRanges(){let e=this.stateDeco;this.lineGaps.length&&(e=e.concat(this.lineGapDeco));let t=[];Xt.spans(e,this.viewport.from,this.viewport.to,{span(e,n){t.push({from:e,to:n})},point(){}},20);let n=t.length!=this.visibleRanges.length||this.visibleRanges.some(((e,n)=>e.from!=t[n].from||e.to!=t[n].to));return this.visibleRanges=t,n?4:0}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find((t=>t.from<=e&&t.to>=e))||Ra(this.heightMap.lineAt(e,da.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return e>=this.viewportLines[0].top&&e<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find((t=>t.top<=e&&t.bottom>=e))||Ra(this.heightMap.lineAt(this.scaler.fromDOM(e),da.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let t=this.lineBlockAtHeight(e+8);return t.from>=this.viewport.from||this.viewportLines[0].top-e>200?t:this.viewportLines[0]}elementAtHeight(e){return Ra(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class Ma{constructor(e,t){this.from=e,this.to=t}}function Ta(e,t,n){let r=[],o=e,i=0;return Xt.spans(n,e,t,{span(){},point(e,t){e>o&&(r.push({from:o,to:e}),i+=e-o),o=t}},20),o<t&&(r.push({from:o,to:t}),i+=t-o),{total:i,ranges:r}}function Pa({total:e,ranges:t},n){if(n<=0)return t[0].from;if(n>=1)return t[t.length-1].to;let r=Math.floor(e*n);for(let o=0;;o++){let{from:e,to:n}=t[o],i=n-e;if(r<=i)return e+r;r-=i}}function Ia(e,t){let n=0;for(let{from:r,to:o}of e.ranges){if(t<=o){n+=t-r;break}n+=o-r}return n/e.total}function $a(e,t){for(let n of e)if(t(n))return n}const Ea={toDOM(e){return e},fromDOM(e){return e},scale:1,eq(e){return e==this}};class Da{constructor(e,t,n){let r=0,o=0,i=0;this.viewports=n.map((({from:n,to:o})=>{let i=t.lineAt(n,da.ByPos,e,0,0).top,a=t.lineAt(o,da.ByPos,e,0,0).bottom;return r+=a-i,{from:n,to:o,top:i,bottom:a,domTop:0,domBottom:0}})),this.scale=(7e6-r)/(t.height-r);for(let a of this.viewports)a.domTop=i+(a.top-o)*this.scale,i=a.domBottom=a.domTop+(a.bottom-a.top),o=a.bottom}toDOM(e){for(let t=0,n=0,r=0;;t++){let o=t<this.viewports.length?this.viewports[t]:null;if(!o||e<o.top)return r+(e-n)*this.scale;if(e<=o.bottom)return o.domTop+(e-o.top);n=o.bottom,r=o.domBottom}}fromDOM(e){for(let t=0,n=0,r=0;;t++){let o=t<this.viewports.length?this.viewports[t]:null;if(!o||e<o.domTop)return n+(e-r)/this.scale;if(e<=o.domBottom)return o.top+(e-o.domTop);n=o.bottom,r=o.domBottom}}eq(e){return e instanceof Da&&(this.scale==e.scale&&this.viewports.length==e.viewports.length&&this.viewports.every(((t,n)=>t.from==e.viewports[n].from&&t.to==e.viewports[n].to)))}}function Ra(e,t){if(1==t.scale)return e;let n=t.toDOM(e.top),r=t.toDOM(e.bottom);return new ca(e.from,e.length,n,r-n,Array.isArray(e._content)?e._content.map((e=>Ra(e,t))):e._content)}const Na=Je.define({combine:e=>e.join(" ")}),La=Je.define({combine:e=>e.indexOf(!0)>-1}),za=fn.newName(),Va=fn.newName(),Ba=fn.newName(),ja={"&light":"."+Va,"&dark":"."+Ba};function Qa(e,t,n){return new fn(t,{finish(t){return/&/.test(t)?t.replace(/&\w*/,(t=>{if("&"==t)return e;if(!n||!n[t])throw new RangeError(`Unsupported selector: ${t}`);return n[t]})):e+" "+t}})}const Fa=Qa("."+za,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:'url(\'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>\')',backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},ja),Wa="￿";class Ha{constructor(e,t){this.points=e,this.text="",this.lineSeparator=t.facet(Qt.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=Wa}readRange(e,t){if(!e)return this;let n=e.parentNode;for(let r=e;;){this.findPointBefore(n,r);let e=this.text.length;this.readNode(r);let o=r.nextSibling;if(o==t)break;let i=Jn.get(r),a=Jn.get(o);(i&&a?i.breakAfter:(i?i.breakAfter:In(r))||In(o)&&("BR"!=r.nodeName||r.cmIgnore)&&this.text.length>e)&&this.lineBreak(),r=o}return this.findPointBefore(n,t),this}readTextNode(e){let t=e.nodeValue;for(let n of this.points)n.node==e&&(n.pos=this.text.length+Math.min(n.offset,t.length));for(let n=0,r=this.lineSeparator?null:/\r\n?|\n/g;;){let o,i=-1,a=1;if(this.lineSeparator?(i=t.indexOf(this.lineSeparator,n),a=this.lineSeparator.length):(o=r.exec(t))&&(i=o.index,a=o[0].length),this.append(t.slice(n,i<0?t.length:i)),i<0)break;if(this.lineBreak(),a>1)for(let t of this.points)t.node==e&&t.pos>this.text.length&&(t.pos-=a-1);n=i+a}}readNode(e){if(e.cmIgnore)return;let t=Jn.get(e),n=t&&t.overrideDOMText;if(null!=n){this.findPointInside(e,n.length);for(let e=n.iter();!e.next().done;)e.lineBreak?this.lineBreak():this.append(e.value)}else 3==e.nodeType?this.readTextNode(e):"BR"==e.nodeName?e.nextSibling&&this.lineBreak():1==e.nodeType&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let n of this.points)n.node==e&&e.childNodes[n.offset]==t&&(n.pos=this.text.length)}findPointInside(e,t){for(let n of this.points)(3==e.nodeType?n.node==e:e.contains(n.node))&&(n.pos=this.text.length+(Za(e,n.node,n.offset)?t:0))}}function Za(e,t,n){for(;;){if(!t||n<En(t))return!1;if(t==e)return!0;n=Pn(t)+1,t=t.parentNode}}class Ga{constructor(e,t){this.node=e,this.offset=t,this.pos=-1}}class Xa{constructor(e,t,n,r){this.typeOver=r,this.bounds=null,this.text="",this.domChanged=t>-1;let{impreciseHead:o,impreciseAnchor:i}=e.docView;if(e.state.readOnly&&t>-1)this.newSel=null;else if(t>-1&&(this.bounds=e.docView.domBoundsAround(t,n,0))){let t=o||i?[]:Ja(e),n=new Ha(t,e.state);n.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=n.text,this.newSel=es(t,this.bounds.from)}else{let t=e.observer.selectionRange,n=o&&o.node==t.focusNode&&o.offset==t.focusOffset||!An(e.contentDOM,t.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(t.focusNode,t.focusOffset),r=i&&i.node==t.anchorNode&&i.offset==t.anchorOffset||!An(e.contentDOM,t.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(t.anchorNode,t.anchorOffset),a=e.viewport;if((gr.ios||gr.chrome)&&e.state.selection.main.empty&&n!=r&&(a.from>0||a.to<e.state.doc.length)){let t=Math.min(n,r),o=Math.max(n,r),i=a.from-t,s=a.to-o;0!=i&&1!=i&&0!=t||0!=s&&-1!=s&&o!=e.state.doc.length||(n=0,r=e.state.doc.length)}this.newSel=Ye.single(r,n)}}}function Ua(e,t){let n,{newSel:r}=t,o=e.state.selection.main,i=e.inputState.lastKeyTime>Date.now()-100?e.inputState.lastKeyCode:-1;if(t.bounds){let{from:r,to:a}=t.bounds,s=o.from,l=null;(8===i||gr.android&&t.text.length<a-r)&&(s=o.to,l="end");let u=Ka(e.state.doc.sliceString(r,a,Wa),t.text,s-r,l);u&&(gr.chrome&&13==i&&u.toB==u.from+2&&t.text.slice(u.from,u.toB)==Wa+Wa&&u.toB--,n={from:r+u.from,to:r+u.toA,insert:me.of(t.text.slice(u.from,u.toB).split(Wa))})}else r&&(!e.hasFocus&&e.state.facet(To)||r.main.eq(o))&&(r=null);if(!n&&!r)return!1;if(!n&&t.typeOver&&!o.empty&&r&&r.main.empty?n={from:o.from,to:o.to,insert:e.state.doc.slice(o.from,o.to)}:n&&n.from>=o.from&&n.to<=o.to&&(n.from!=o.from||n.to!=o.to)&&o.to-o.from-(n.to-n.from)<=4?n={from:o.from,to:o.to,insert:e.state.doc.slice(o.from,n.from).append(n.insert).append(e.state.doc.slice(n.to,o.to))}:(gr.mac||gr.android)&&n&&n.from==n.to&&n.from==o.head-1&&/^\. ?$/.test(n.insert.toString())&&"off"==e.contentDOM.getAttribute("autocorrect")?(r&&2==n.insert.length&&(r=Ye.single(r.main.anchor-1,r.main.head-1)),n={from:o.from,to:o.to,insert:me.of([" "])}):gr.chrome&&n&&n.from==n.to&&n.from==o.head&&"\n "==n.insert.toString()&&e.lineWrapping&&(r&&(r=Ye.single(r.main.anchor-1,r.main.head-1)),n={from:o.from,to:o.to,insert:me.of([" "])}),n)return Ya(e,n,r,i);if(r&&!r.main.eq(o)){let t=!1,n="select";return e.inputState.lastSelectionTime>Date.now()-50&&("select"==e.inputState.lastSelectionOrigin&&(t=!0),n=e.inputState.lastSelectionOrigin),e.dispatch({selection:r,scrollIntoView:t,userEvent:n}),!0}return!1}function Ya(e,t,n,r=-1){if(gr.ios&&e.inputState.flushIOSKey(t))return!0;let o=e.state.selection.main;if(gr.android&&(t.to==o.to&&(t.from==o.from||t.from==o.from-1&&" "==e.state.sliceDoc(t.from,o.from))&&1==t.insert.length&&2==t.insert.lines&&Wn(e.contentDOM,"Enter",13)||(t.from==o.from-1&&t.to==o.to&&0==t.insert.length||8==r&&t.insert.length<t.to-t.from&&t.to>o.head)&&Wn(e.contentDOM,"Backspace",8)||t.from==o.from&&t.to==o.to+1&&0==t.insert.length&&Wn(e.contentDOM,"Delete",46)))return!0;let i,a=t.insert.toString();e.inputState.composing>=0&&e.inputState.composing++;let s=()=>i||(i=qa(e,t,n));return e.state.facet(_o).some((n=>n(e,t.from,t.to,a,s)))||e.dispatch(s()),!0}function qa(e,t,n){let r,o=e.state,i=o.selection.main;if(t.from>=i.from&&t.to<=i.to&&t.to-t.from>=(i.to-i.from)/3&&(!n||n.main.empty&&n.main.from==t.from+t.insert.length)&&e.inputState.composing<0){let n=i.from<t.from?o.sliceDoc(i.from,t.from):"",a=i.to>t.to?o.sliceDoc(t.to,i.to):"";r=o.replaceSelection(e.state.toText(n+t.insert.sliceString(0,void 0,e.state.lineBreak)+a))}else{let a=o.changes(t),s=n&&n.main.to<=a.newLength?n.main:void 0;if(o.selection.ranges.length>1&&e.inputState.composing>=0&&t.to<=i.to&&t.to>=i.to-10){let l,u=e.state.sliceDoc(t.from,t.to),c=n&&Uo(e,n.main.head);if(c){let e=t.insert.length-(t.to-t.from);l={from:c.from,to:c.to-e}}else l=e.state.doc.lineAt(i.head);let d=i.to-t.to,h=i.to-i.from;r=o.changeByRange((n=>{if(n.from==i.from&&n.to==i.to)return{changes:a,range:s||n.map(a)};let r=n.to-d,c=r-u.length;if(n.to-n.from!=h||e.state.sliceDoc(c,r)!=u||n.to>=l.from&&n.from<=l.to)return{range:n};let p=o.changes({from:c,to:r,insert:t.insert}),f=n.to-i.to;return{changes:p,range:s?Ye.range(Math.max(0,s.anchor+f),Math.max(0,s.head+f)):n.map(p)}}))}else r={changes:a,selection:s&&o.selection.replaceRange(s)}}let a="input.type";return(e.composing||e.inputState.compositionPendingChange&&e.inputState.compositionEndedAt>Date.now()-50)&&(e.inputState.compositionPendingChange=!1,a+=".compose",e.inputState.compositionFirstChange&&(a+=".start",e.inputState.compositionFirstChange=!1)),o.update(r,{userEvent:a,scrollIntoView:!0})}function Ka(e,t,n,r){let o=Math.min(e.length,t.length),i=0;while(i<o&&e.charCodeAt(i)==t.charCodeAt(i))i++;if(i==o&&e.length==t.length)return null;let a=e.length,s=t.length;while(a>0&&s>0&&e.charCodeAt(a-1)==t.charCodeAt(s-1))a--,s--;if("end"==r){let e=Math.max(0,i-Math.min(a,s));n-=a+e-i}if(a<i&&e.length<t.length){let e=n<=i&&n>=a?i-n:0;i-=e,s=i+(s-a),a=i}else if(s<i){let e=n<=i&&n>=s?i-n:0;i-=e,a=i+(a-s),s=i}return{from:i,toA:a,toB:s}}function Ja(e){let t=[];if(e.root.activeElement!=e.contentDOM)return t;let{anchorNode:n,anchorOffset:r,focusNode:o,focusOffset:i}=e.observer.selectionRange;return n&&(t.push(new Ga(n,r)),o==n&&i==r||t.push(new Ga(o,i))),t}function es(e,t){if(0==e.length)return null;let n=e[0].pos,r=2==e.length?e[1].pos:n;return n>-1&&r>-1?Ye.single(n+t,r+t):null}const ts={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},ns=gr.ie&&gr.ie_version<=11;class rs{constructor(e){this.view=e,this.active=!1,this.editContext=null,this.selectionRange=new Vn,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver((t=>{for(let e of t)this.queue.push(e);(gr.ie&&gr.ie_version<=11||gr.ios&&e.composing)&&t.some((e=>"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length))?this.flushSoon():this.flush()})),!window.EditContext||!1===e.constructor.EDIT_CONTEXT||gr.chrome&&gr.chrome_version<126||(this.editContext=new ss(e),e.state.facet(To)&&(e.contentDOM.editContext=this.editContext.editContext)),ns&&(this.onCharData=e=>{this.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),"function"==typeof ResizeObserver&&(this.resizeScroll=new ResizeObserver((()=>{var e;(null===(e=this.view.docView)||void 0===e?void 0:e.lastUpdate)<Date.now()-75&&this.onResize()})),this.resizeScroll.observe(e.scrollDOM)),this.addWindowListeners(this.win=e.win),this.start(),"function"==typeof IntersectionObserver&&(this.intersection=new IntersectionObserver((e=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),e.length>0&&e[e.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))}),{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver((e=>{e.length>0&&e[e.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))}),{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.editContext&&this.view.requestMeasure(this.editContext.measureReq),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout((()=>{this.resizeTimeout=-1,this.view.requestMeasure()}),50))}onPrint(e){("change"!=e.type||e.matches)&&(this.view.viewState.printing=!0,this.view.measure(),setTimeout((()=>{this.view.viewState.printing=!1,this.view.requestMeasure()}),500))}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some(((t,n)=>t!=e[n])))){this.gapIntersection.disconnect();for(let t of e)this.gapIntersection.observe(t);this.gaps=e}}onSelectionChange(e){let t=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:n}=this,r=this.selectionRange;if(n.state.facet(To)?n.root.activeElement!=this.dom:!Cn(n.dom,r))return;let o=r.anchorNode&&n.docView.nearest(r.anchorNode);o&&o.ignoreEvent(e)?t||(this.selectionChanged=!1):(gr.ie&&gr.ie_version<=11||gr.android&&gr.chrome)&&!n.state.selection.main.empty&&r.focusNode&&Tn(r.focusNode,r.focusOffset,r.anchorNode,r.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,t=Sn(e.root);if(!t)return!1;let n=gr.safari&&11==e.root.nodeType&&kn(this.dom.ownerDocument)==this.dom&&as(this.view,t)||t;if(!n||this.selectionRange.eq(n))return!1;let r=Cn(this.dom,n);return r&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime<Date.now()-300&&Gn(this.dom,n)?(this.view.inputState.lastFocusTime=0,e.docView.updateSelection(),!1):(this.selectionRange.setRange(n),r&&(this.selectionChanged=!0),!0)}setSelectionRange(e,t){this.selectionRange.set(e.node,e.offset,t.node,t.offset),this.selectionChanged=!1}clearSelectionRange(){this.selectionRange.set(null,0,null,0)}listenForScroll(){this.parentCheck=-1;let e=0,t=null;for(let n=this.dom;n;)if(1==n.nodeType)!t&&e<this.scrollTargets.length&&this.scrollTargets[e]==n?e++:t||(t=this.scrollTargets.slice(0,e)),t&&t.push(n),n=n.assignedSlot||n.parentNode;else{if(11!=n.nodeType)break;n=n.host}if(e<this.scrollTargets.length&&!t&&(t=this.scrollTargets.slice(0,e)),t){for(let e of this.scrollTargets)e.removeEventListener("scroll",this.onScroll);for(let e of this.scrollTargets=t)e.addEventListener("scroll",this.onScroll)}}ignore(e){if(!this.active)return e();try{return this.stop(),e()}finally{this.start(),this.clear()}}start(){this.active||(this.observer.observe(this.dom,ts),ns&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}stop(){this.active&&(this.active=!1,this.observer.disconnect(),ns&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData))}clear(){this.processRecords(),this.queue.length=0,this.selectionChanged=!1}delayAndroidKey(e,t){var n;if(!this.delayedAndroidKey){let e=()=>{let e=this.delayedAndroidKey;if(e){this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=e.keyCode,this.view.inputState.lastKeyTime=Date.now();let t=this.flush();!t&&e.force&&Wn(this.dom,e.key,e.keyCode)}};this.flushingAndroidKey=this.view.win.requestAnimationFrame(e)}this.delayedAndroidKey&&"Enter"!=e||(this.delayedAndroidKey={key:e,keyCode:t,force:this.lastChange<Date.now()-50||!!(null===(n=this.delayedAndroidKey)||void 0===n?void 0:n.force)})}clearDelayedAndroidKey(){this.win.cancelAnimationFrame(this.flushingAndroidKey),this.delayedAndroidKey=null,this.flushingAndroidKey=-1}flushSoon(){this.delayedFlush<0&&(this.delayedFlush=this.view.win.requestAnimationFrame((()=>{this.delayedFlush=-1,this.flush()})))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let t=-1,n=-1,r=!1;for(let o of e){let e=this.readMutation(o);e&&(e.typeOver&&(r=!0),-1==t?({from:t,to:n}=e):(t=Math.min(e.from,t),n=Math.max(e.to,n)))}return{from:t,to:n,typeOver:r}}readChange(){let{from:e,to:t,typeOver:n}=this.processRecords(),r=this.selectionChanged&&Cn(this.dom,this.selectionRange);if(e<0&&!r)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let o=new Xa(this.view,e,t,n);return this.view.docView.domChanged={newSel:o.newSel?o.newSel.main:null},o}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let t=this.readChange();if(!t)return this.view.requestMeasure(),!1;let n=this.view.state,r=Ua(this.view,t);return this.view.state==n&&(t.domChanged||t.newSel&&!t.newSel.main.eq(this.view.state.selection.main))&&this.view.update([]),r}readMutation(e){let t=this.view.docView.nearest(e.target);if(!t||t.ignoreMutation(e))return null;if(t.markDirty("attributes"==e.type),"attributes"==e.type&&(t.flags|=4),"childList"==e.type){let n=os(t,e.previousSibling||e.target.previousSibling,-1),r=os(t,e.nextSibling||e.target.nextSibling,1);return{from:n?t.posAfter(n):t.posAtStart,to:r?t.posBefore(r):t.posAtEnd,typeOver:!1}}return"characterData"==e.type?{from:t.posAtStart,to:t.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener("change",this.onPrint):e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener("change",this.onPrint):e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}update(e){this.editContext&&(this.editContext.update(e),e.startState.facet(To)!=e.state.facet(To)&&(e.view.contentDOM.editContext=e.state.facet(To)?this.editContext.editContext:null))}destroy(){var e,t,n;this.stop(),null===(e=this.intersection)||void 0===e||e.disconnect(),null===(t=this.gapIntersection)||void 0===t||t.disconnect(),null===(n=this.resizeScroll)||void 0===n||n.disconnect();for(let r of this.scrollTargets)r.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}function os(e,t,n){while(t){let r=Jn.get(t);if(r&&r.parent==e)return r;let o=t.parentNode;t=o!=e.dom?o:n>0?t.nextSibling:t.previousSibling}return null}function is(e,t){let n=t.startContainer,r=t.startOffset,o=t.endContainer,i=t.endOffset,a=e.docView.domAtPos(e.state.selection.main.anchor);return Tn(a.node,a.offset,o,i)&&([n,r,o,i]=[o,i,n,r]),{anchorNode:n,anchorOffset:r,focusNode:o,focusOffset:i}}function as(e,t){if(t.getComposedRanges){let n=t.getComposedRanges(e.root)[0];if(n)return is(e,n)}let n=null;function r(e){e.preventDefault(),e.stopImmediatePropagation(),n=e.getTargetRanges()[0]}return e.contentDOM.addEventListener("beforeinput",r,!0),e.dom.ownerDocument.execCommand("indent"),e.contentDOM.removeEventListener("beforeinput",r,!0),n?is(e,n):null}class ss{constructor(e){this.from=0,this.to=0,this.pendingContextChange=null,this.resetRange(e.state);let t=this.editContext=new window.EditContext({text:e.state.doc.sliceString(this.from,this.to),selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,e.state.selection.main.anchor))),selectionEnd:this.toContextPos(e.state.selection.main.head)});t.addEventListener("textupdate",(t=>{let{anchor:n}=e.state.selection.main,r={from:this.toEditorPos(t.updateRangeStart),to:this.toEditorPos(t.updateRangeEnd),insert:me.of(t.text.split("\n"))};r.from==this.from&&n<this.from?r.from=n:r.to==this.to&&n>this.to&&(r.to=n),(r.from!=r.to||r.insert.length)&&(this.pendingContextChange=r,Ya(e,r,Ye.single(this.toEditorPos(t.selectionStart),this.toEditorPos(t.selectionEnd))),this.pendingContextChange&&this.revertPending(e.state))})),t.addEventListener("characterboundsupdate",(n=>{let r=[],o=null;for(let t=this.toEditorPos(n.rangeStart),i=this.toEditorPos(n.rangeEnd);t<i;t++){let n=e.coordsForChar(t);o=n&&new DOMRect(n.left,n.top,n.right-n.left,n.bottom-n.top)||o||new DOMRect,r.push(o)}t.updateCharacterBounds(n.rangeStart,r)})),t.addEventListener("textformatupdate",(t=>{let n=[];for(let e of t.getTextFormats()){let t=e.underlineStyle,r=e.underlineThickness;if("None"!=t&&"None"!=r){let o=`text-decoration: underline ${"Dashed"==t?"dashed ":"Squiggle"==t?"wavy ":""}${"Thin"==r?1:2}px`;n.push(Rr.mark({attributes:{style:o}}).range(this.toEditorPos(e.rangeStart),this.toEditorPos(e.rangeEnd)))}}e.dispatch({effects:Co.of(Rr.set(n))})})),t.addEventListener("compositionstart",(()=>{e.inputState.composing<0&&(e.inputState.composing=0,e.inputState.compositionFirstChange=!0)})),t.addEventListener("compositionend",(()=>{e.inputState.composing=-1,e.inputState.compositionFirstChange=null})),this.measureReq={read:e=>{this.editContext.updateControlBounds(e.contentDOM.getBoundingClientRect());let t=Sn(e.root);t&&t.rangeCount&&this.editContext.updateSelectionBounds(t.getRangeAt(0).getBoundingClientRect())}}}applyEdits(e){let t=0,n=!1,r=this.pendingContextChange;return e.changes.iterChanges(((o,i,a,s,l)=>{if(n)return;let u=l.length-(i-o);if(r&&i>=r.to){if(r.from==o&&r.to==i&&r.insert.eq(l))return r=this.pendingContextChange=null,void(t+=u);r=null,this.revertPending(e.state)}if(o+=t,i+=t,i<=this.from)this.from+=u,this.to+=u;else if(o<this.to){if(o<this.from||i>this.to||this.to-this.from+l.length>3e4)return void(n=!0);this.editContext.updateText(this.toContextPos(o),this.toContextPos(i),l.toString()),this.to+=u}t+=u})),r&&!n&&this.revertPending(e.state),!n}update(e){this.applyEdits(e)&&this.rangeIsValid(e.state)?(e.docChanged||e.selectionSet)&&this.setSelection(e.state):(this.pendingContextChange=null,this.resetRange(e.state),this.editContext.updateText(0,this.editContext.text.length,e.state.doc.sliceString(this.from,this.to)),this.setSelection(e.state)),(e.geometryChanged||e.docChanged||e.selectionSet)&&e.view.requestMeasure(this.measureReq)}resetRange(e){let{head:t}=e.selection.main;this.from=Math.max(0,t-1e4),this.to=Math.min(e.doc.length,t+1e4)}revertPending(e){let t=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(t.from),this.toContextPos(t.to+t.insert.length),e.doc.sliceString(t.from,t.to))}setSelection(e){let{main:t}=e.selection,n=this.toContextPos(Math.max(this.from,Math.min(this.to,t.anchor))),r=this.toContextPos(t.head);this.editContext.selectionStart==n&&this.editContext.selectionEnd==r||this.editContext.updateSelection(n,r)}rangeIsValid(e){let{head:t}=e.selection.main;return!(this.from>0&&t-this.from<500||this.to<e.doc.length&&this.to-t<500||this.to-this.from>3e4)}toEditorPos(e){return e+this.from}toContextPos(e){return e-this.from}}class ls{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),e.parent&&e.parent.appendChild(this.dom);let{dispatch:t}=e;this.dispatchTransactions=e.dispatchTransactions||t&&(e=>e.forEach((e=>t(e,this))))||(e=>this.update(e)),this.dispatch=this.dispatch.bind(this),this._root=e.root||Hn(e.parent)||document,this.viewState=new Ca(e.state||Qt.create(e)),e.scrollTo&&e.scrollTo.is(ko)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(Io).map((e=>new Eo(e)));for(let n of this.plugins)n.update(this);this.observer=new rs(this),this.inputState=new xi(this),this.inputState.ensureHandlers(this.plugins),this.docView=new Zo(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure()}dispatch(...e){let t=1==e.length&&e[0]instanceof Mt?e:1==e.length&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(t,this)}update(e){if(0!=this.updateState)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let t,n=!1,r=!1,o=this.state;for(let h of e){if(h.startState!=o)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");o=h.state}if(this.destroyed)return void(this.viewState.state=o);let i=this.hasFocus,a=0,s=null;e.some((e=>e.annotation(na)))?(this.inputState.notifiedFocused=i,a=1):i!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=i,s=ra(o,i),s||(a=1));let l=this.observer.delayedAndroidKey,u=null;if(l?(this.observer.clearDelayedAndroidKey(),u=this.observer.readChange(),(u&&!this.state.doc.eq(o.doc)||!this.state.selection.eq(o.selection))&&(u=null)):this.observer.clear(),o.facet(Qt.phrases)!=this.state.facet(Qt.phrases))return this.setState(o);t=Ho.create(this,o,e),t.flags|=a;let c=this.viewState.scrollTarget;try{this.updateState=2;for(let t of e){if(c&&(c=c.map(t.changes)),t.scrollIntoView){let{main:e}=t.state.selection;c=new Ao(e.empty?e:Ye.cursor(e.head,e.head>e.anchor?-1:1))}for(let e of t.effects)e.is(ko)&&(c=e.value.clip(this.state))}this.viewState.update(t,c),this.bidiCache=ds.update(this.bidiCache,t.changes),t.empty||(this.updatePlugins(t),this.inputState.update(t)),n=this.docView.update(t),this.state.facet(Fo)!=this.styleModules&&this.mountStyles(),r=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(n,e.some((e=>e.isUserEvent("select.pointer"))))}finally{this.updateState=0}if(t.startState.facet(Na)!=t.state.facet(Na)&&(this.viewState.mustMeasureContent=!0),(n||r||c||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),n&&this.docViewUpdate(),!t.empty)for(let h of this.state.facet(bo))try{h(t)}catch(d){Mo(this.state,d,"update listener")}(s||u)&&Promise.resolve().then((()=>{s&&this.state==s.startState&&this.dispatch(s),u&&!Ua(this,u)&&l.force&&Wn(this.contentDOM,l.key,l.keyCode)}))}setState(e){if(0!=this.updateState)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed)return void(this.viewState.state=e);this.updateState=2;let t=this.hasFocus;try{for(let e of this.plugins)e.destroy(this);this.viewState=new Ca(e),this.plugins=e.facet(Io).map((e=>new Eo(e))),this.pluginMap.clear();for(let e of this.plugins)e.update(this);this.docView.destroy(),this.docView=new Zo(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}t&&this.focus(),this.requestMeasure()}updatePlugins(e){let t=e.startState.facet(Io),n=e.state.facet(Io);if(t!=n){let r=[];for(let o of n){let n=t.indexOf(o);if(n<0)r.push(new Eo(o));else{let t=this.plugins[n];t.mustUpdate=e,r.push(t)}}for(let t of this.plugins)t.mustUpdate!=e&&t.destroy(this);this.plugins=r,this.pluginMap.clear()}else for(let r of this.plugins)r.mustUpdate=e;for(let r=0;r<this.plugins.length;r++)this.plugins[r].update(this);t!=n&&this.inputState.ensureHandlers(this.plugins)}docViewUpdate(){for(let t of this.plugins){let n=t.value;if(n&&n.docViewUpdate)try{n.docViewUpdate(this)}catch(e){Mo(this.state,e,"doc view update listener")}}}measure(e=!0){if(this.destroyed)return;if(this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey)return this.measureScheduled=-1,void this.requestMeasure();this.measureScheduled=0,e&&this.observer.forceFlush();let t=null,n=this.scrollDOM,r=n.scrollTop*this.scaleY,{scrollAnchorPos:o,scrollAnchorHeight:i}=this.viewState;Math.abs(r-this.viewState.scrollTop)>1&&(i=-1),this.viewState.scrollAnchorHeight=-1;try{for(let e=0;;e++){if(i<0)if(Xn(n))o=-1,i=this.viewState.heightMap.height;else{let e=this.viewState.scrollAnchorAt(r);o=e.from,i=e.top}this.updateState=1;let s=this.viewState.measure(this);if(!s&&!this.measureRequests.length&&null==this.viewState.scrollTarget)break;if(e>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let l=[];4&s||([this.measureRequests,l]=[l,this.measureRequests]);let u=l.map((e=>{try{return e.read(this)}catch(t){return Mo(this.state,t),cs}})),c=Ho.create(this,this.state,[]),d=!1;c.flags|=s,t?t.flags|=s:t=c,this.updateState=2,c.empty||(this.updatePlugins(c),this.inputState.update(c),this.updateAttrs(),d=this.docView.update(c),d&&this.docViewUpdate());for(let e=0;e<l.length;e++)if(u[e]!=cs)try{let t=l[e];t.write&&t.write(u[e],this)}catch(a){Mo(this.state,a)}if(d&&this.docView.updateSelection(!0),!c.viewportChanged&&0==this.measureRequests.length){if(this.viewState.editorHeight){if(this.viewState.scrollTarget){this.docView.scrollIntoView(this.viewState.scrollTarget),this.viewState.scrollTarget=null,i=-1;continue}{let e=o<0?this.viewState.heightMap.height:this.viewState.lineBlockAt(o).top,t=e-i;if(t>1||t<-1){r+=t,n.scrollTop=r/this.scaleY,i=-1;continue}}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(t&&!t.empty)for(let s of this.state.facet(bo))s(t)}get themeClasses(){return za+" "+(this.state.facet(La)?Ba:Va)+" "+this.state.facet(Na)}updateAttrs(){let e=hs(this,Do,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),t={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(To)?"true":"false",class:"cm-content",style:`${gr.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(t["aria-readonly"]="true"),hs(this,Ro,t);let n=this.observer.ignore((()=>{let n=Tr(this.contentDOM,this.contentAttrs,t),r=Tr(this.dom,this.editorAttrs,e);return n||r}));return this.editorAttrs=e,this.contentAttrs=t,n}showAnnouncements(e){let t=!0;for(let n of e)for(let e of n.effects)if(e.is(ls.announce)){t&&(this.announceDOM.textContent=""),t=!1;let n=this.announceDOM.appendChild(document.createElement("div"));n.textContent=e.value}}mountStyles(){this.styleModules=this.state.facet(Fo);let e=this.state.facet(ls.cspNonce);fn.mount(this.root,this.styleModules.concat(Fa).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(2==this.updateState)throw new Error("Reading the editor layout isn't allowed during an update");0==this.updateState&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame((()=>this.measure()))),e){if(this.measureRequests.indexOf(e)>-1)return;if(null!=e.key)for(let t=0;t<this.measureRequests.length;t++)if(this.measureRequests[t].key===e.key)return void(this.measureRequests[t]=e);this.measureRequests.push(e)}}plugin(e){let t=this.pluginMap.get(e);return(void 0===t||t&&t.spec!=e)&&this.pluginMap.set(e,t=this.plugins.find((t=>t.spec==e))||null),t&&t.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,t,n){return _i(this,e,mi(this,e,t,n))}moveByGroup(e,t){return _i(this,e,mi(this,e,t,(t=>vi(this,e.head,t))))}visualLineSide(e,t){let n=this.bidiSpans(e),r=this.textDirectionAt(e.from),o=n[t?n.length-1:0];return Ye.cursor(o.side(t,r)+e.from,o.forward(!t,r)?1:-1)}moveToLineBoundary(e,t,n=!0){return gi(this,e,t,n)}moveVertically(e,t,n){return _i(this,e,yi(this,e,t,n))}domAtPos(e){return this.docView.domAtPos(e)}posAtDOM(e,t=0){return this.docView.posFromDOM(e,t)}posAtCoords(e,t=!0){return this.readMeasured(),ci(this,e,t)}coordsAtPos(e,t=1){this.readMeasured();let n=this.docView.coordsAt(e,t);if(!n||n.left==n.right)return n;let r=this.state.doc.lineAt(e),o=this.bidiSpans(r),i=o[to.find(o,e-r.from,-1,t)];return Dn(n,i.dir==Hr.LTR==t>0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){let t=this.state.facet(wo);return!t||e<this.viewport.from||e>this.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>us)return co(e.length);let t,n=this.textDirectionAt(e.from);for(let o of this.bidiCache)if(o.from==e.from&&o.dir==n&&(o.fresh||no(o.isolates,t=Bo(this,e))))return o.order;t||(t=Bo(this,e));let r=uo(e.text,n,t);return this.bidiCache.push(new ds(e.from,e.to,n,t,!0,r)),r}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||gr.safari&&(null===(e=this.inputState)||void 0===e?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore((()=>{Qn(this.contentDOM),this.docView.updateSelection()}))}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((9==e.nodeType?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){this.root.activeElement==this.contentDOM&&this.contentDOM.blur();for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,t={}){return ko.of(new Ao("number"==typeof e?Ye.cursor(e):e,t.y,t.x,t.yMargin,t.xMargin))}scrollSnapshot(){let{scrollTop:e,scrollLeft:t}=this.scrollDOM,n=this.viewState.scrollAnchorAt(e);return ko.of(new Ao(Ye.cursor(n.from),"start","start",n.top-e,t,!0))}setTabFocusMode(e){null==e?this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1:"boolean"==typeof e?this.inputState.tabFocusMode=e?0:-1:0!=this.inputState.tabFocusMode&&(this.inputState.tabFocusMode=Date.now()+e)}static domEventHandlers(e){return $o.define((()=>({})),{eventHandlers:e})}static domEventObservers(e){return $o.define((()=>({})),{eventObservers:e})}static theme(e,t){let n=fn.newName(),r=[Na.of(n),Fo.of(Qa(`.${n}`,e))];return t&&t.dark&&r.push(La.of(!0)),r}static baseTheme(e){return ut.lowest(Fo.of(Qa("."+za,e,ja)))}static findFromDOM(e){var t;let n=e.querySelector(".cm-content"),r=n&&Jn.get(n)||Jn.get(e);return(null===(t=null===r||void 0===r?void 0:r.rootView)||void 0===t?void 0:t.view)||null}}ls.styleModule=Fo,ls.inputHandler=_o,ls.scrollHandler=So,ls.focusChangeEffect=xo,ls.perLineTextDirection=wo,ls.exceptionSink=yo,ls.updateListener=bo,ls.editable=To,ls.mouseSelectionStyle=vo,ls.dragMovesSelection=mo,ls.clickAddsSelectionRange=go,ls.decorations=No,ls.outerDecorations=Lo,ls.atomicRanges=zo,ls.bidiIsolatedRanges=Vo,ls.scrollMargins=jo,ls.darkTheme=La,ls.cspNonce=Je.define({combine:e=>e.length?e[0]:""}),ls.contentAttributes=Ro,ls.editorAttributes=Do,ls.lineWrapping=ls.contentAttributes.of({class:"cm-lineWrapping"}),ls.announce=Ct.define();const us=4096,cs={};class ds{constructor(e,t,n,r,o,i){this.from=e,this.to=t,this.dir=n,this.isolates=r,this.fresh=o,this.order=i}static update(e,t){if(t.empty&&!e.some((e=>e.fresh)))return e;let n=[],r=e.length?e[e.length-1].dir:Hr.LTR;for(let o=Math.max(0,e.length-10);o<e.length;o++){let i=e[o];i.dir!=r||t.touchesRange(i.from,i.to)||n.push(new ds(t.mapPos(i.from,1),t.mapPos(i.to,-1),i.dir,i.isolates,!1,i.order))}return n}}function hs(e,t,n){for(let r=e.state.facet(t),o=r.length-1;o>=0;o--){let t=r[o],i="function"==typeof t?t(e):t;i&&kr(i,n)}return n}const ps=gr.mac?"mac":gr.windows?"win":gr.linux?"linux":"key";function fs(e,t){const n=e.split(/-(?!$)/);let r,o,i,a,s=n[n.length-1];"Space"==s&&(s=" ");for(let l=0;l<n.length-1;++l){const e=n[l];if(/^(cmd|meta|m)$/i.test(e))a=!0;else if(/^a(lt)?$/i.test(e))r=!0;else if(/^(c|ctrl|control)$/i.test(e))o=!0;else if(/^s(hift)?$/i.test(e))i=!0;else{if(!/^mod$/i.test(e))throw new Error("Unrecognized modifier name: "+e);"mac"==t?a=!0:o=!0}}return r&&(s="Alt-"+s),o&&(s="Ctrl-"+s),a&&(s="Meta-"+s),i&&(s="Shift-"+s),s}function gs(e,t,n){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),!1!==n&&t.shiftKey&&(e="Shift-"+e),e}const ms=ut.default(ls.domEventHandlers({keydown(e,t){return As(bs(t.state),e,t,"editor")}})),vs=Je.define({enables:ms}),ys=new WeakMap;function bs(e){let t=e.facet(vs),n=ys.get(t);return n||ys.set(t,n=Os(t.reduce(((e,t)=>e.concat(t)),[]))),n}function _s(e,t,n){return As(bs(e.state),t,e,n)}let xs=null;const ws=4e3;function Os(e,t=ps){let n=Object.create(null),r=Object.create(null),o=(e,t)=>{let n=r[e];if(null==n)r[e]=t;else if(n!=t)throw new Error("Key binding "+e+" is used both as a regular binding and as a multi-stroke prefix")},i=(e,r,i,a,s)=>{var l,u;let c=n[e]||(n[e]=Object.create(null)),d=r.split(/ (?!$)/).map((e=>fs(e,t)));for(let t=1;t<d.length;t++){let n=d.slice(0,t).join(" ");o(n,!0),c[n]||(c[n]={preventDefault:!0,stopPropagation:!1,run:[t=>{let r=xs={view:t,prefix:n,scope:e};return setTimeout((()=>{xs==r&&(xs=null)}),ws),!0}]})}let h=d.join(" ");o(h,!1);let p=c[h]||(c[h]={preventDefault:!1,stopPropagation:!1,run:(null===(u=null===(l=c._any)||void 0===l?void 0:l.run)||void 0===u?void 0:u.slice())||[]});i&&p.run.push(i),a&&(p.preventDefault=!0),s&&(p.stopPropagation=!0)};for(let a of e){let e=a.scope?a.scope.split(" "):["editor"];if(a.any)for(let t of e){let e=n[t]||(n[t]=Object.create(null));e._any||(e._any={preventDefault:!1,stopPropagation:!1,run:[]});let{any:r}=a;for(let t in e)e[t].run.push((e=>r(e,Ss)))}let r=a[t]||a.key;if(r)for(let t of e)i(t,r,a.run,a.preventDefault,a.stopPropagation),a.shift&&i(t,"Shift-"+r,a.shift,a.preventDefault,a.stopPropagation)}return n}let Ss=null;function As(e,t,n,r){Ss=t;let o=On(t),i=Ne(o,0),a=ze(i)==o.length&&" "!=o,s="",l=!1,u=!1,c=!1;xs&&xs.view==n&&xs.scope==r&&(s=xs.prefix+" ",ki.indexOf(t.keyCode)<0&&(u=!0,xs=null));let d,h,p=new Set,f=e=>{if(e){for(let t of e.run)if(!p.has(t)&&(p.add(t),t(n)))return e.stopPropagation&&(c=!0),!0;e.preventDefault&&(e.stopPropagation&&(c=!0),u=!0)}return!1},g=e[r];return g&&(f(g[s+gs(o,t,!a)])?l=!0:a&&(t.altKey||t.metaKey||t.ctrlKey)&&!(gr.windows&&t.ctrlKey&&t.altKey)&&(d=vn[t.keyCode])&&d!=o?(f(g[s+gs(d,t,!0)])||t.shiftKey&&(h=yn[t.keyCode])!=o&&h!=d&&f(g[s+gs(h,t,!1)]))&&(l=!0):a&&t.shiftKey&&f(g[s+gs(o,t,!0)])&&(l=!0),!l&&f(g._any)&&(l=!0)),u&&(l=!0),l&&c&&t.stopPropagation(),Ss=null,l}class ks{constructor(e,t,n,r,o){this.className=e,this.left=t,this.top=n,this.width=r,this.height=o}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,t){return t.className==this.className&&(this.adjust(e),!0)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",null!=this.width&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,t,n){if(n.empty){let r=e.coordsAtPos(n.head,n.assoc||1);if(!r)return[];let o=Cs(e);return[new ks(t,r.left-o.left,r.top-o.top,null,r.bottom-r.top)]}return Ts(e,t,n)}}function Cs(e){let t=e.scrollDOM.getBoundingClientRect(),n=e.textDirection==Hr.LTR?t.left:t.right-e.scrollDOM.clientWidth*e.scaleX;return{left:n-e.scrollDOM.scrollLeft*e.scaleX,top:t.top-e.scrollDOM.scrollTop*e.scaleY}}function Ms(e,t,n,r){let o=e.coordsAtPos(t,2*n);if(!o)return r;let i=e.dom.getBoundingClientRect(),a=(o.top+o.bottom)/2,s=e.posAtCoords({x:i.left+1,y:a}),l=e.posAtCoords({x:i.right-1,y:a});return null==s||null==l?r:{from:Math.max(r.from,Math.min(s,l)),to:Math.min(r.to,Math.max(s,l))}}function Ts(e,t,n){if(n.to<=e.viewport.from||n.from>=e.viewport.to)return[];let r=Math.max(n.from,e.viewport.from),o=Math.min(n.to,e.viewport.to),i=e.textDirection==Hr.LTR,a=e.contentDOM,s=a.getBoundingClientRect(),l=Cs(e),u=a.querySelector(".cm-line"),c=u&&window.getComputedStyle(u),d=s.left+(c?parseInt(c.paddingLeft)+Math.min(0,parseInt(c.textIndent)):0),h=s.right-(c?parseInt(c.paddingRight):0),p=fi(e,r),f=fi(e,o),g=p.type==Dr.Text?p:null,m=f.type==Dr.Text?f:null;if(g&&(e.lineWrapping||p.widgetLineBreaks)&&(g=Ms(e,r,1,g)),m&&(e.lineWrapping||f.widgetLineBreaks)&&(m=Ms(e,o,-1,m)),g&&m&&g.from==m.from&&g.to==m.to)return y(b(n.from,n.to,g));{let t=g?b(n.from,null,g):_(p,!1),r=m?b(null,n.to,m):_(f,!0),o=[];return(g||p).to<(m||f).from-(g&&m?1:0)||p.widgetLineBreaks>1&&t.bottom+e.defaultLineHeight/2<r.top?o.push(v(d,t.bottom,h,r.top)):t.bottom<r.top&&e.elementAtHeight((t.bottom+r.top)/2).type==Dr.Text&&(t.bottom=r.top=(t.bottom+r.top)/2),y(t).concat(o).concat(y(r))}function v(e,n,r,o){return new ks(t,e-l.left,n-l.top-.01,r-e,o-n+.01)}function y({top:e,bottom:t,horizontal:n}){let r=[];for(let o=0;o<n.length;o+=2)r.push(v(n[o],e,n[o+1],t));return r}function b(t,n,r){let o=1e9,a=-1e9,s=[];function l(t,n,l,u,c){let p=e.coordsAtPos(t,t==r.to?-2:2),f=e.coordsAtPos(l,l==r.from?2:-2);p&&f&&(o=Math.min(p.top,f.top,o),a=Math.max(p.bottom,f.bottom,a),c==Hr.LTR?s.push(i&&n?d:p.left,i&&u?h:f.right):s.push(!i&&u?d:f.left,!i&&n?h:p.right))}let u=null!==t&&void 0!==t?t:r.from,c=null!==n&&void 0!==n?n:r.to;for(let i of e.visibleRanges)if(i.to>u&&i.from<c)for(let r=Math.max(i.from,u),o=Math.min(i.to,c);;){let i=e.state.doc.lineAt(r);for(let a of e.bidiSpans(i)){let e=a.from+i.from,s=a.to+i.from;if(e>=o)break;s>r&&l(Math.max(e,r),null==t&&e<=u,Math.min(s,o),null==n&&s>=c,a.dir)}if(r=i.to+1,r>=o)break}return 0==s.length&&l(u,null==t,c,null==n,e.textDirection),{top:o,bottom:a,horizontal:s}}function _(e,t){let n=s.top+(t?e.top:e.bottom);return{top:n,bottom:n,horizontal:[]}}}function Ps(e,t){return e.constructor==t.constructor&&e.eq(t)}class Is{constructor(e,t){this.view=e,this.layer=t,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),t.above&&this.dom.classList.add("cm-layer-above"),t.class&&this.dom.classList.add(t.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),t.mount&&t.mount(this.dom,e)}update(e){e.startState.facet($s)!=e.state.facet($s)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq))}docViewUpdate(e){!1!==this.layer.updateOnDocViewUpdate&&e.requestMeasure(this.measureReq)}setOrder(e){let t=0,n=e.facet($s);while(t<n.length&&n[t]!=this.layer)t++;this.dom.style.zIndex=String((this.layer.above?150:-1)-t)}measure(){return this.layer.markers(this.view)}scale(){let{scaleX:e,scaleY:t}=this.view;e==this.scaleX&&t==this.scaleY||(this.scaleX=e,this.scaleY=t,this.dom.style.transform=`scale(${1/e}, ${1/t})`)}draw(e){if(e.length!=this.drawn.length||e.some(((e,t)=>!Ps(e,this.drawn[t])))){let t=this.dom.firstChild,n=0;for(let r of e)r.update&&t&&r.constructor&&this.drawn[n].constructor&&r.update(t,this.drawn[n])?(t=t.nextSibling,n++):this.dom.insertBefore(r.draw(),t);while(t){let e=t.nextSibling;t.remove(),t=e}this.drawn=e}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const $s=Je.define();function Es(e){return[$o.define((t=>new Is(t,e))),$s.of(e)]}const Ds=!gr.ios,Rs=Je.define({combine(e){return Ft(e,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(e,t)=>Math.min(e,t),drawRangeCursor:(e,t)=>e||t})}});function Ns(e={}){return[Rs.of(e),zs,Bs,Qs,Oo.of(!0)]}function Ls(e){return e.startState.facet(Rs)!=e.state.facet(Rs)}const zs=Es({above:!0,markers(e){let{state:t}=e,n=t.facet(Rs),r=[];for(let o of t.selection.ranges){let i=o==t.selection.main;if(o.empty?!i||Ds:n.drawRangeCursor){let t=i?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",n=o.empty?o:Ye.cursor(o.head,o.head>o.anchor?-1:1);for(let o of ks.forRange(e,t,n))r.push(o)}}return r},update(e,t){e.transactions.some((e=>e.selection))&&(t.style.animationName="cm-blink"==t.style.animationName?"cm-blink2":"cm-blink");let n=Ls(e);return n&&Vs(e.state,t),e.docChanged||e.selectionSet||n},mount(e,t){Vs(t.state,e)},class:"cm-cursorLayer"});function Vs(e,t){t.style.animationDuration=e.facet(Rs).cursorBlinkRate+"ms"}const Bs=Es({above:!1,markers(e){return e.state.selection.ranges.map((t=>t.empty?[]:ks.forRange(e,"cm-selectionBackground",t))).reduce(((e,t)=>e.concat(t)))},update(e,t){return e.docChanged||e.selectionSet||e.viewportChanged||Ls(e)},class:"cm-selectionLayer"}),js={".cm-line":{"& ::selection, &::selection":{backgroundColor:"transparent !important"}},".cm-content":{"& :focus":{caretColor:"initial !important","&::selection, & ::selection":{backgroundColor:"Highlight !important"}}}};Ds&&(js[".cm-line"].caretColor=js[".cm-content"].caretColor="transparent !important");const Qs=ut.highest(ls.theme(js)),Fs=Ct.define({map(e,t){return null==e?null:t.mapPos(e)}}),Ws=at.define({create(){return null},update(e,t){return null!=e&&(e=t.changes.mapPos(e)),t.effects.reduce(((e,t)=>t.is(Fs)?t.value:e),e)}}),Hs=$o.fromClass(class{constructor(e){this.view=e,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(e){var t;let n=e.state.field(Ws);null==n?null!=this.cursor&&(null===(t=this.cursor)||void 0===t||t.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(e.startState.field(Ws)!=n||e.docChanged||e.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:e}=this,t=e.state.field(Ws),n=null!=t&&e.coordsAtPos(t);if(!n)return null;let r=e.scrollDOM.getBoundingClientRect();return{left:n.left-r.left+e.scrollDOM.scrollLeft*e.scaleX,top:n.top-r.top+e.scrollDOM.scrollTop*e.scaleY,height:n.bottom-n.top}}drawCursor(e){if(this.cursor){let{scaleX:t,scaleY:n}=this.view;e?(this.cursor.style.left=e.left/t+"px",this.cursor.style.top=e.top/n+"px",this.cursor.style.height=e.height/n+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(e){this.view.state.field(Ws)!=e&&this.view.dispatch({effects:Fs.of(e)})}},{eventObservers:{dragover(e){this.setDropPos(this.view.posAtCoords({x:e.clientX,y:e.clientY}))},dragleave(e){e.target!=this.view.contentDOM&&this.view.contentDOM.contains(e.relatedTarget)||this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function Zs(){return[Ws,Hs]}function Gs(e,t,n,r,o){t.lastIndex=0;for(let i,a=e.iterRange(n,r),s=n;!a.next().done;s+=a.value.length)if(!a.lineBreak)while(i=t.exec(a.value))o(s+i.index,i)}function Xs(e,t){let n=e.visibleRanges;if(1==n.length&&n[0].from==e.viewport.from&&n[0].to==e.viewport.to)return n;let r=[];for(let{from:o,to:i}of n)o=Math.max(e.state.doc.lineAt(o).from,o-t),i=Math.min(e.state.doc.lineAt(i).to,i+t),r.length&&r[r.length-1].to>=o?r[r.length-1].to=i:r.push({from:o,to:i});return r}class Us{constructor(e){const{regexp:t,decoration:n,decorate:r,boundary:o,maxLength:i=1e3}=e;if(!t.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=t,r)this.addMatch=(e,t,n,o)=>r(o,n,n+e[0].length,e,t);else if("function"==typeof n)this.addMatch=(e,t,r,o)=>{let i=n(e,t,r);i&&o(r,r+e[0].length,i)};else{if(!n)throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.addMatch=(e,t,r,o)=>o(r,r+e[0].length,n)}this.boundary=o,this.maxLength=i}createDeco(e){let t=new Yt,n=t.add.bind(t);for(let{from:r,to:o}of Xs(e,this.maxLength))Gs(e.state.doc,this.regexp,r,o,((t,r)=>this.addMatch(r,e,t,n)));return t.finish()}updateDeco(e,t){let n=1e9,r=-1;return e.docChanged&&e.changes.iterChanges(((t,o,i,a)=>{a>e.view.viewport.from&&i<e.view.viewport.to&&(n=Math.min(i,n),r=Math.max(a,r))})),e.viewportChanged||r-n>1e3?this.createDeco(e.view):r>-1?this.updateRange(e.view,t.map(e.changes),n,r):t}updateRange(e,t,n,r){for(let o of e.visibleRanges){let i=Math.max(o.from,n),a=Math.min(o.to,r);if(a>i){let n=e.state.doc.lineAt(i),r=n.to<a?e.state.doc.lineAt(a):n,s=Math.max(o.from,n.from),l=Math.min(o.to,r.to);if(this.boundary){for(;i>n.from;i--)if(this.boundary.test(n.text[i-1-n.from])){s=i;break}for(;a<r.to;a++)if(this.boundary.test(r.text[a-r.from])){l=a;break}}let u,c=[],d=(e,t,n)=>c.push(n.range(e,t));if(n==r){this.regexp.lastIndex=s-n.from;while((u=this.regexp.exec(n.text))&&u.index<l-n.from)this.addMatch(u,e,u.index+n.from,d)}else Gs(e.state.doc,this.regexp,s,l,((t,n)=>this.addMatch(n,e,t,d)));t=t.update({filterFrom:s,filterTo:l,filter:(e,t)=>e<s||t>l,add:c})}}return t}}const Ys=null!=/x/.unicode?"gu":"g",qs=new RegExp("[\0-\b\n--Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\ufeff-]",Ys),Ks={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let Js=null;function el(){var e;if(null==Js&&"undefined"!=typeof document&&document.body){let t=document.body.style;Js=null!=(null!==(e=t.tabSize)&&void 0!==e?e:t.MozTabSize)}return Js||!1}const tl=Je.define({combine(e){let t=Ft(e,{render:null,specialChars:qs,addSpecialChars:null});return(t.replaceTabs=!el())&&(t.specialChars=new RegExp("\t|"+t.specialChars.source,Ys)),t.addSpecialChars&&(t.specialChars=new RegExp(t.specialChars.source+"|"+t.addSpecialChars.source,Ys)),t}});function nl(e={}){return[tl.of(e),ol()]}let rl=null;function ol(){return rl||(rl=$o.fromClass(class{constructor(e){this.view=e,this.decorations=Rr.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(e.state.facet(tl)),this.decorations=this.decorator.createDeco(e)}makeDecorator(e){return new Us({regexp:e.specialChars,decoration:(t,n,r)=>{let{doc:o}=n.state,i=Ne(t[0],0);if(9==i){let e=o.lineAt(r),t=n.state.tabSize,i=ln(e.text,t,r-e.from);return Rr.replace({widget:new ll((t-i%t)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[i]||(this.decorationCache[i]=Rr.replace({widget:new sl(e,i)}))},boundary:e.replaceTabs?void 0:/[^]/})}update(e){let t=e.state.facet(tl);e.startState.facet(tl)!=t?(this.decorator=this.makeDecorator(t),this.decorations=this.decorator.createDeco(e.view)):this.decorations=this.decorator.updateDeco(e,this.decorations)}},{decorations:e=>e.decorations}))}const il="•";function al(e){return e>=32?il:10==e?"␤":String.fromCharCode(9216+e)}class sl extends Er{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){let t=al(this.code),n=e.state.phrase("Control character")+" "+(Ks[this.code]||"0x"+this.code.toString(16)),r=this.options.render&&this.options.render(this.code,n,t);if(r)return r;let o=document.createElement("span");return o.textContent=t,o.title=n,o.setAttribute("aria-label",n),o.className="cm-specialChar",o}ignoreEvent(){return!1}}class ll extends Er{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent="\t",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}function ul(){return dl}const cl=Rr.line({class:"cm-activeLine"}),dl=$o.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.docChanged||e.selectionSet)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=-1,n=[];for(let r of e.state.selection.ranges){let o=e.lineBlockAt(r.head);o.from>t&&(n.push(cl.range(o.from)),t=o.from)}return Rr.set(n)}},{decorations:e=>e.decorations});class hl extends Er{constructor(e){super(),this.content=e}toDOM(){let e=document.createElement("span");return e.className="cm-placeholder",e.style.pointerEvents="none",e.appendChild("string"==typeof this.content?document.createTextNode(this.content):this.content),"string"==typeof this.content?e.setAttribute("aria-label","placeholder "+this.content):e.setAttribute("aria-hidden","true"),e}coordsAt(e){let t=e.firstChild?Mn(e.firstChild):[];if(!t.length)return null;let n=window.getComputedStyle(e.parentNode),r=Dn(t[0],"rtl"!=n.direction),o=parseInt(n.lineHeight);return r.bottom-r.top>1.5*o?{left:r.left,right:r.right,top:r.top,bottom:r.top+o}:r}ignoreEvent(){return!1}}function pl(e){return $o.fromClass(class{constructor(t){this.view=t,this.placeholder=e?Rr.set([Rr.widget({widget:new hl(e),side:1}).range(0)]):Rr.none}get decorations(){return this.view.state.doc.length?Rr.none:this.placeholder}},{decorations:e=>e.decorations})}const fl=2e3;function gl(e,t,n){let r=Math.min(t.line,n.line),o=Math.max(t.line,n.line),i=[];if(t.off>fl||n.off>fl||t.col<0||n.col<0){let a=Math.min(t.off,n.off),s=Math.max(t.off,n.off);for(let t=r;t<=o;t++){let n=e.doc.line(t);n.length<=s&&i.push(Ye.range(n.from+a,n.to+s))}}else{let a=Math.min(t.col,n.col),s=Math.max(t.col,n.col);for(let t=r;t<=o;t++){let n=e.doc.line(t),r=un(n.text,a,e.tabSize,!0);if(r<0)i.push(Ye.cursor(n.to));else{let t=un(n.text,s,e.tabSize);i.push(Ye.range(n.from+r,n.from+t))}}}return i}function ml(e,t){let n=e.coordsAtPos(e.viewport.from);return n?Math.round(Math.abs((n.left-t)/e.defaultCharacterWidth)):-1}function vl(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1),r=e.state.doc.lineAt(n),o=n-r.from,i=o>fl?-1:o==r.length?ml(e,t.clientX):ln(r.text,e.state.tabSize,n-r.from);return{line:r.number,col:i,off:o}}function yl(e,t){let n=vl(e,t),r=e.state.selection;return n?{update(e){if(e.docChanged){let t=e.changes.mapPos(e.startState.doc.line(n.line).from),o=e.state.doc.lineAt(t);n={line:o.number,col:n.col,off:Math.min(n.off,o.length)},r=r.map(e.changes)}},get(t,o,i){let a=vl(e,t);if(!a)return r;let s=gl(e.state,n,a);return s.length?i?Ye.create(s.concat(r.ranges)):Ye.create(s):r}}:null}function bl(e){let t=(null===e||void 0===e?void 0:e.eventFilter)||(e=>e.altKey&&0==e.button);return ls.mouseSelectionStyle.of(((e,n)=>t(n)?yl(e,n):null))}const _l={Alt:[18,e=>!!e.altKey],Control:[17,e=>!!e.ctrlKey],Shift:[16,e=>!!e.shiftKey],Meta:[91,e=>!!e.metaKey]},xl={style:"cursor: crosshair"};function wl(e={}){let[t,n]=_l[e.key||"Alt"],r=$o.fromClass(class{constructor(e){this.view=e,this.isDown=!1}set(e){this.isDown!=e&&(this.isDown=e,this.view.update([]))}},{eventObservers:{keydown(e){this.set(e.keyCode==t||n(e))},keyup(e){e.keyCode!=t&&n(e)||this.set(!1)},mousemove(e){this.set(n(e))}}});return[r,ls.contentAttributes.of((e=>{var t;return(null===(t=e.plugin(r))||void 0===t?void 0:t.isDown)?xl:null}))]}const Ol="-10000px";class Sl{constructor(e,t,n,r){this.facet=t,this.createTooltipView=n,this.removeTooltipView=r,this.input=e.state.facet(t),this.tooltips=this.input.filter((e=>e));let o=null;this.tooltipViews=this.tooltips.map((e=>o=n(e,o)))}update(e,t){var n;let r=e.state.facet(this.facet),o=r.filter((e=>e));if(r===this.input){for(let t of this.tooltipViews)t.update&&t.update(e);return!1}let i=[],a=t?[]:null;for(let s=0;s<o.length;s++){let n=o[s],r=-1;if(n){for(let e=0;e<this.tooltips.length;e++){let t=this.tooltips[e];t&&t.create==n.create&&(r=e)}if(r<0)i[s]=this.createTooltipView(n,s?i[s-1]:null),a&&(a[s]=!!n.above);else{let n=i[s]=this.tooltipViews[r];a&&(a[s]=t[r]),n.update&&n.update(e)}}}for(let s of this.tooltipViews)i.indexOf(s)<0&&(this.removeTooltipView(s),null===(n=s.destroy)||void 0===n||n.call(s));return t&&(a.forEach(((e,n)=>t[n]=e)),t.length=a.length),this.input=r,this.tooltips=o,this.tooltipViews=i,!0}}function Al(e){let{win:t}=e;return{top:0,left:0,bottom:t.innerHeight,right:t.innerWidth}}const kl=Je.define({combine:e=>{var t,n,r;return{position:gr.ios?"absolute":(null===(t=e.find((e=>e.position)))||void 0===t?void 0:t.position)||"fixed",parent:(null===(n=e.find((e=>e.parent)))||void 0===n?void 0:n.parent)||null,tooltipSpace:(null===(r=e.find((e=>e.tooltipSpace)))||void 0===r?void 0:r.tooltipSpace)||Al}}}),Cl=new WeakMap,Ml=$o.fromClass(class{constructor(e){this.view=e,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let t=e.state.facet(kl);this.position=t.position,this.parent=t.parent,this.classes=e.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver="function"==typeof ResizeObserver?new ResizeObserver((()=>this.measureSoon())):null,this.manager=new Sl(e,Il,((e,t)=>this.createTooltip(e,t)),(e=>{this.resizeObserver&&this.resizeObserver.unobserve(e.dom),e.dom.remove()})),this.above=this.manager.tooltips.map((e=>!!e.above)),this.intersectionObserver="function"==typeof IntersectionObserver?new IntersectionObserver((e=>{Date.now()>this.lastTransaction-50&&e.length>0&&e[e.length-1].intersectionRatio<1&&this.measureSoon()}),{threshold:[1]}):null,this.observeIntersection(),e.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let e of this.manager.tooltipViews)this.intersectionObserver.observe(e.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout((()=>{this.measureTimeout=-1,this.maybeMeasure()}),50))}update(e){e.transactions.length&&(this.lastTransaction=Date.now());let t=this.manager.update(e,this.above);t&&this.observeIntersection();let n=t||e.geometryChanged,r=e.state.facet(kl);if(r.position!=this.position&&!this.madeAbsolute){this.position=r.position;for(let e of this.manager.tooltipViews)e.dom.style.position=this.position;n=!0}if(r.parent!=this.parent){this.parent&&this.container.remove(),this.parent=r.parent,this.createContainer();for(let e of this.manager.tooltipViews)this.container.appendChild(e.dom);n=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);n&&this.maybeMeasure()}createTooltip(e,t){let n=e.create(this.view),r=t?t.dom:null;if(n.dom.classList.add("cm-tooltip"),e.arrow&&!n.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let e=document.createElement("div");e.className="cm-tooltip-arrow",n.dom.appendChild(e)}return n.dom.style.position=this.position,n.dom.style.top=Ol,n.dom.style.left="0px",this.container.insertBefore(n.dom,r),n.mount&&n.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(n.dom),n}destroy(){var e,t,n;this.view.win.removeEventListener("resize",this.measureSoon);for(let r of this.manager.tooltipViews)r.dom.remove(),null===(e=r.destroy)||void 0===e||e.call(r);this.parent&&this.container.remove(),null===(t=this.resizeObserver)||void 0===t||t.disconnect(),null===(n=this.intersectionObserver)||void 0===n||n.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let e=this.view.dom.getBoundingClientRect(),t=1,n=1,r=!1;if("fixed"==this.position&&this.manager.tooltipViews.length){let{dom:e}=this.manager.tooltipViews[0];if(gr.gecko)r=e.offsetParent!=this.container.ownerDocument.body;else if(e.style.top==Ol&&"0px"==e.style.left){let t=e.getBoundingClientRect();r=Math.abs(t.top+1e4)>1||Math.abs(t.left)>1}}if(r||"absolute"==this.position)if(this.parent){let e=this.parent.getBoundingClientRect();e.width&&e.height&&(t=e.width/this.parent.offsetWidth,n=e.height/this.parent.offsetHeight)}else({scaleX:t,scaleY:n}=this.view.viewState);return{editor:e,parent:this.parent?this.container.getBoundingClientRect():e,pos:this.manager.tooltips.map(((e,t)=>{let n=this.manager.tooltipViews[t];return n.getCoords?n.getCoords(e.pos):this.view.coordsAtPos(e.pos)})),size:this.manager.tooltipViews.map((({dom:e})=>e.getBoundingClientRect())),space:this.view.state.facet(kl).tooltipSpace(this.view),scaleX:t,scaleY:n,makeAbsolute:r}}writeMeasure(e){var t;if(e.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let e of this.manager.tooltipViews)e.dom.style.position="absolute"}let{editor:n,space:r,scaleX:o,scaleY:i}=e,a=[];for(let s=0;s<this.manager.tooltips.length;s++){let l=this.manager.tooltips[s],u=this.manager.tooltipViews[s],{dom:c}=u,d=e.pos[s],h=e.size[s];if(!d||d.bottom<=Math.max(n.top,r.top)||d.top>=Math.min(n.bottom,r.bottom)||d.right<Math.max(n.left,r.left)-.1||d.left>Math.min(n.right,r.right)+.1){c.style.top=Ol;continue}let p=l.arrow?u.dom.querySelector(".cm-tooltip-arrow"):null,f=p?7:0,g=h.right-h.left,m=null!==(t=Cl.get(u))&&void 0!==t?t:h.bottom-h.top,v=u.offset||Pl,y=this.view.textDirection==Hr.LTR,b=h.width>r.right-r.left?y?r.left:r.right-h.width:y?Math.min(d.left-(p?14:0)+v.x,r.right-g):Math.max(r.left,d.left-g+(p?14:0)-v.x),_=this.above[s];!l.strictSide&&(_?d.top-(h.bottom-h.top)-v.y<r.top:d.bottom+(h.bottom-h.top)+v.y>r.bottom)&&_==r.bottom-d.bottom>d.top-r.top&&(_=this.above[s]=!_);let x=(_?d.top-r.top:r.bottom-d.bottom)-f;if(x<m&&!1!==u.resize){if(x<this.view.defaultLineHeight){c.style.top=Ol;continue}Cl.set(u,m),c.style.height=(m=x)/i+"px"}else c.style.height&&(c.style.height="");let w=_?d.top-m-f-v.y:d.bottom+f+v.y,O=b+g;if(!0!==u.overlap)for(let e of a)e.left<O&&e.right>b&&e.top<w+m&&e.bottom>w&&(w=_?e.top-m-2-f:e.bottom+f+2);if("absolute"==this.position?(c.style.top=(w-e.parent.top)/i+"px",c.style.left=(b-e.parent.left)/o+"px"):(c.style.top=w/i+"px",c.style.left=b/o+"px"),p){let e=d.left+(y?v.x:-v.x)-(b+14-7);p.style.left=e/o+"px"}!0!==u.overlap&&a.push({left:b,top:w,right:O,bottom:w+m}),c.classList.toggle("cm-tooltip-above",_),c.classList.toggle("cm-tooltip-below",!_),u.positioned&&u.positioned(e.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let e of this.manager.tooltipViews)e.dom.style.top=Ol}},{eventObservers:{scroll(){this.maybeMeasure()}}}),Tl=ls.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:"14px",position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),Pl={x:0,y:0},Il=Je.define({enables:[Ml,Tl]}),$l=Je.define({combine:e=>e.reduce(((e,t)=>e.concat(t)),[])});class El{static create(e){return new El(e)}constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new Sl(e,$l,((e,t)=>this.createHostedView(e,t)),(e=>e.dom.remove()))}createHostedView(e,t){let n=e.create(this.view);return n.dom.classList.add("cm-tooltip-section"),this.dom.insertBefore(n.dom,t?t.dom.nextSibling:this.dom.firstChild),this.mounted&&n.mount&&n.mount(this.view),n}mount(e){for(let t of this.manager.tooltipViews)t.mount&&t.mount(e);this.mounted=!0}positioned(e){for(let t of this.manager.tooltipViews)t.positioned&&t.positioned(e)}update(e){this.manager.update(e)}destroy(){var e;for(let t of this.manager.tooltipViews)null===(e=t.destroy)||void 0===e||e.call(t)}passProp(e){let t;for(let n of this.manager.tooltipViews){let r=n[e];if(void 0!==r)if(void 0===t)t=r;else if(t!==r)return}return t}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const Dl=Il.compute([$l],(e=>{let t=e.facet($l);return 0===t.length?null:{pos:Math.min(...t.map((e=>e.pos))),end:Math.max(...t.map((e=>{var t;return null!==(t=e.end)&&void 0!==t?t:e.pos}))),create:El.create,above:t[0].above,arrow:t.some((e=>e.arrow))}}));class Rl{constructor(e,t,n,r,o){this.view=e,this.source=t,this.field=n,this.setHover=r,this.hoverTime=o,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout((()=>this.startHover()),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active.length)return;let e=Date.now()-this.lastMove.time;e<this.hoverTime?this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime-e):this.startHover()}startHover(){clearTimeout(this.restartTimeout);let{view:e,lastMove:t}=this,n=e.docView.nearest(t.target);if(!n)return;let r,o=1;if(n instanceof _r)r=n.posAtStart;else{if(r=e.posAtCoords(t),null==r)return;let n=e.coordsAtPos(r);if(!n||t.y<n.top||t.y>n.bottom||t.x<n.left-e.defaultCharacterWidth||t.x>n.right+e.defaultCharacterWidth)return;let i=e.bidiSpans(e.state.doc.lineAt(r)).find((e=>e.from<=r&&e.to>=r)),a=i&&i.dir==Hr.RTL?-1:1;o=t.x<n.left?-a:a}let i=this.source(e,r,o);if(null===i||void 0===i?void 0:i.then){let t=this.pending={pos:r};i.then((n=>{this.pending==t&&(this.pending=null,!n||Array.isArray(n)&&!n.length||e.dispatch({effects:this.setHover.of(Array.isArray(n)?n:[n])}))}),(t=>Mo(e.state,t,"hover tooltip")))}else!i||Array.isArray(i)&&!i.length||e.dispatch({effects:this.setHover.of(Array.isArray(i)?i:[i])})}get tooltip(){let e=this.view.plugin(Ml),t=e?e.manager.tooltips.findIndex((e=>e.create==El.create)):-1;return t>-1?e.manager.tooltipViews[t]:null}mousemove(e){var t,n;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:r,tooltip:o}=this;if(r.length&&o&&!Ll(o.dom,e)||this.pending){let{pos:o}=r[0]||this.pending,i=null!==(n=null===(t=r[0])||void 0===t?void 0:t.end)&&void 0!==n?n:o;(o==i?this.view.posAtCoords(this.lastMove)==o:zl(this.view,o,i,e.clientX,e.clientY))||(this.view.dispatch({effects:this.setHover.of([])}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:t}=this;if(t.length){let{tooltip:t}=this,n=t&&t.dom.contains(e.relatedTarget);n?this.watchTooltipLeave(t.dom):this.view.dispatch({effects:this.setHover.of([])})}}watchTooltipLeave(e){let t=n=>{e.removeEventListener("mouseleave",t),this.active.length&&!this.view.dom.contains(n.relatedTarget)&&this.view.dispatch({effects:this.setHover.of([])})};e.addEventListener("mouseleave",t)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}const Nl=4;function Ll(e,t){let n=e.getBoundingClientRect();return t.clientX>=n.left-Nl&&t.clientX<=n.right+Nl&&t.clientY>=n.top-Nl&&t.clientY<=n.bottom+Nl}function zl(e,t,n,r,o,i){let a=e.scrollDOM.getBoundingClientRect(),s=e.documentTop+e.documentPadding.top+e.contentHeight;if(a.left>r||a.right<r||a.top>o||Math.min(a.bottom,s)<o)return!1;let l=e.posAtCoords({x:r,y:o},!1);return l>=t&&l<=n}function Vl(e,t={}){let n=Ct.define(),r=at.define({create(){return[]},update(e,r){if(e.length&&(t.hideOnChange&&(r.docChanged||r.selection)?e=[]:t.hideOn&&(e=e.filter((e=>!t.hideOn(r,e)))),r.docChanged)){let t=[];for(let n of e){let e=r.changes.mapPos(n.pos,-1,Be.TrackDel);if(null!=e){let o=Object.assign(Object.create(null),n);o.pos=e,null!=o.end&&(o.end=r.changes.mapPos(o.end)),t.push(o)}}e=t}for(let t of r.effects)t.is(n)&&(e=t.value),t.is(jl)&&(e=[]);return e},provide:e=>$l.from(e)});return[r,$o.define((o=>new Rl(o,e,r,n,t.hoverTime||300))),Dl]}function Bl(e,t){let n=e.plugin(Ml);if(!n)return null;let r=n.manager.tooltips.indexOf(t);return r<0?null:n.manager.tooltipViews[r]}const jl=Ct.define();const Ql=Je.define({combine(e){let t,n;for(let r of e)t=t||r.topContainer,n=n||r.bottomContainer;return{topContainer:t,bottomContainer:n}}});function Fl(e,t){let n=e.plugin(Wl),r=n?n.specs.indexOf(t):-1;return r>-1?n.panels[r]:null}const Wl=$o.fromClass(class{constructor(e){this.input=e.state.facet(Gl),this.specs=this.input.filter((e=>e)),this.panels=this.specs.map((t=>t(e)));let t=e.state.facet(Ql);this.top=new Hl(e,!0,t.topContainer),this.bottom=new Hl(e,!1,t.bottomContainer),this.top.sync(this.panels.filter((e=>e.top))),this.bottom.sync(this.panels.filter((e=>!e.top)));for(let n of this.panels)n.dom.classList.add("cm-panel"),n.mount&&n.mount()}update(e){let t=e.state.facet(Ql);this.top.container!=t.topContainer&&(this.top.sync([]),this.top=new Hl(e.view,!0,t.topContainer)),this.bottom.container!=t.bottomContainer&&(this.bottom.sync([]),this.bottom=new Hl(e.view,!1,t.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let n=e.state.facet(Gl);if(n!=this.input){let t=n.filter((e=>e)),r=[],o=[],i=[],a=[];for(let n of t){let t,s=this.specs.indexOf(n);s<0?(t=n(e.view),a.push(t)):(t=this.panels[s],t.update&&t.update(e)),r.push(t),(t.top?o:i).push(t)}this.specs=t,this.panels=r,this.top.sync(o),this.bottom.sync(i);for(let e of a)e.dom.classList.add("cm-panel"),e.mount&&e.mount()}else for(let r of this.panels)r.update&&r.update(e)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:e=>ls.scrollMargins.of((t=>{let n=t.plugin(e);return n&&{top:n.top.scrollMargin(),bottom:n.bottom.scrollMargin()}}))});class Hl{constructor(e,t,n){this.view=e,this.top=t,this.container=n,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let t of this.panels)t.destroy&&e.indexOf(t)<0&&t.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(0==this.panels.length)return void(this.dom&&(this.dom.remove(),this.dom=void 0));if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let e=this.container||this.view.dom;e.insertBefore(this.dom,this.top?e.firstChild:null)}let e=this.dom.firstChild;for(let t of this.panels)if(t.dom.parentNode==this.dom){while(e!=t.dom)e=Zl(e);e=e.nextSibling}else this.dom.insertBefore(t.dom,e);while(e)e=Zl(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(this.container&&this.classes!=this.view.themeClasses){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function Zl(e){let t=e.nextSibling;return e.remove(),t}const Gl=Je.define({enables:Wl});class Xl extends Wt{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}Xl.prototype.elementClass="",Xl.prototype.toDOM=void 0,Xl.prototype.mapMode=Be.TrackBefore,Xl.prototype.startSide=Xl.prototype.endSide=-1,Xl.prototype.point=!0;const Ul=Je.define(),Yl={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>Xt.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},ql=Je.define();function Kl(e){return[eu(),ql.of(Object.assign(Object.assign({},Yl),e))]}const Jl=Je.define({combine:e=>e.some((e=>e))});function eu(e){let t=[tu];return e&&!1===e.fixed&&t.push(Jl.of(!0)),t}const tu=$o.fromClass(class{constructor(e){this.view=e,this.prevViewport=e.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=e.state.facet(ql).map((t=>new iu(e,t)));for(let t of this.gutters)this.dom.appendChild(t.dom);this.fixed=!e.state.facet(Jl),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),e.scrollDOM.insertBefore(this.dom,e.contentDOM)}update(e){if(this.updateGutters(e)){let t=this.prevViewport,n=e.view.viewport,r=Math.min(t.to,n.to)-Math.max(t.from,n.from);this.syncGutters(r<.8*(n.to-n.from))}e.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px"),this.view.state.facet(Jl)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=e.view.viewport}syncGutters(e){let t=this.dom.nextSibling;e&&this.dom.remove();let n=Xt.iter(this.view.state.facet(Ul),this.view.viewport.from),r=[],o=this.gutters.map((e=>new ou(e,this.view.viewport,-this.view.documentPadding.top)));for(let i of this.view.viewportLineBlocks)if(r.length&&(r=[]),Array.isArray(i.type)){let e=!0;for(let t of i.type)if(t.type==Dr.Text&&e){ru(n,r,t.from);for(let e of o)e.line(this.view,t,r);e=!1}else if(t.widget)for(let e of o)e.widget(this.view,t)}else if(i.type==Dr.Text){ru(n,r,i.from);for(let e of o)e.line(this.view,i,r)}else if(i.widget)for(let e of o)e.widget(this.view,i);for(let i of o)i.finish();e&&this.view.scrollDOM.insertBefore(this.dom,t)}updateGutters(e){let t=e.startState.facet(ql),n=e.state.facet(ql),r=e.docChanged||e.heightChanged||e.viewportChanged||!Xt.eq(e.startState.facet(Ul),e.state.facet(Ul),e.view.viewport.from,e.view.viewport.to);if(t==n)for(let o of this.gutters)o.update(e)&&(r=!0);else{r=!0;let o=[];for(let r of n){let n=t.indexOf(r);n<0?o.push(new iu(this.view,r)):(this.gutters[n].update(e),o.push(this.gutters[n]))}for(let e of this.gutters)e.dom.remove(),o.indexOf(e)<0&&e.destroy();for(let e of o)this.dom.appendChild(e.dom);this.gutters=o}return r}destroy(){for(let e of this.gutters)e.destroy();this.dom.remove()}},{provide:e=>ls.scrollMargins.of((t=>{let n=t.plugin(e);return n&&0!=n.gutters.length&&n.fixed?t.textDirection==Hr.LTR?{left:n.dom.offsetWidth*t.scaleX}:{right:n.dom.offsetWidth*t.scaleX}:null}))});function nu(e){return Array.isArray(e)?e:[e]}function ru(e,t,n){while(e.value&&e.from<=n)e.from==n&&t.push(e.value),e.next()}class ou{constructor(e,t,n){this.gutter=e,this.height=n,this.i=0,this.cursor=Xt.iter(e.markers,t.from)}addElement(e,t,n){let{gutter:r}=this,o=(t.top-this.height)/e.scaleY,i=t.height/e.scaleY;if(this.i==r.elements.length){let t=new au(e,i,o,n);r.elements.push(t),r.dom.appendChild(t.dom)}else r.elements[this.i].update(e,i,o,n);this.height=t.bottom,this.i++}line(e,t,n){let r=[];ru(this.cursor,r,t.from),n.length&&(r=r.concat(n));let o=this.gutter.config.lineMarker(e,t,r);o&&r.unshift(o);let i=this.gutter;(0!=r.length||i.config.renderEmptyElements)&&this.addElement(e,t,r)}widget(e,t){let n=this.gutter.config.widgetMarker(e,t.widget,t);n&&this.addElement(e,t,[n])}finish(){let e=this.gutter;while(e.elements.length>this.i){let t=e.elements.pop();e.dom.removeChild(t.dom),t.destroy()}}}class iu{constructor(e,t){this.view=e,this.config=t,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let n in t.domEventHandlers)this.dom.addEventListener(n,(r=>{let o,i=r.target;if(i!=this.dom&&this.dom.contains(i)){while(i.parentNode!=this.dom)i=i.parentNode;let e=i.getBoundingClientRect();o=(e.top+e.bottom)/2}else o=r.clientY;let a=e.lineBlockAtHeight(o-e.documentTop);t.domEventHandlers[n](e,a,r)&&r.preventDefault()}));this.markers=nu(t.markers(e)),t.initialSpacer&&(this.spacer=new au(e,0,0,[t.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let t=this.markers;if(this.markers=nu(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let t=this.config.updateSpacer(this.spacer.markers[0],e);t!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[t])}let n=e.view.viewport;return!Xt.eq(this.markers,t,n.from,n.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(e)}destroy(){for(let e of this.elements)e.destroy()}}class au{constructor(e,t,n,r){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,t,n,r)}update(e,t,n,r){this.height!=t&&(this.height=t,this.dom.style.height=t+"px"),this.above!=n&&(this.dom.style.marginTop=(this.above=n)?n+"px":""),su(this.markers,r)||this.setMarkers(e,r)}setMarkers(e,t){let n="cm-gutterElement",r=this.dom.firstChild;for(let o=0,i=0;;){let a=i,s=o<t.length?t[o++]:null,l=!1;if(s){let e=s.elementClass;e&&(n+=" "+e);for(let t=i;t<this.markers.length;t++)if(this.markers[t].compare(s)){a=t,l=!0;break}}else a=this.markers.length;while(i<a){let e=this.markers[i++];if(e.toDOM){e.destroy(r);let t=r.nextSibling;r.remove(),r=t}}if(!s)break;s.toDOM&&(l?r=r.nextSibling:this.dom.insertBefore(s.toDOM(e),r)),l&&i++}this.dom.className=n,this.markers=t}destroy(){this.setMarkers(null,[])}}function su(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].compare(t[n]))return!1;return!0}const lu=Je.define(),uu=Je.define({combine(e){return Ft(e,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,t){let n=Object.assign({},e);for(let r in t){let e=n[r],o=t[r];n[r]=e?(t,n,r)=>e(t,n,r)||o(t,n,r):o}return n}})}});class cu extends Xl{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function du(e,t){return e.state.facet(uu).formatNumber(t,e.state)}const hu=ql.compute([uu],(e=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(e){return e.state.facet(lu)},lineMarker(e,t,n){return n.some((e=>e.toDOM))?null:new cu(du(e,e.state.doc.lineAt(t.from).number))},widgetMarker:()=>null,lineMarkerChange:e=>e.startState.facet(uu)!=e.state.facet(uu),initialSpacer(e){return new cu(du(e,fu(e.state.doc.lines)))},updateSpacer(e,t){let n=du(t.view,fu(t.view.state.doc.lines));return n==e.number?e:new cu(n)},domEventHandlers:e.facet(uu).domEventHandlers})));function pu(e={}){return[uu.of(e),eu(),hu]}function fu(e){let t=9;while(t<e)t=10*t+9;return t}const gu=new class extends Xl{constructor(){super(...arguments),this.elementClass="cm-activeLineGutter"}},mu=Ul.compute(["selection"],(e=>{let t=[],n=-1;for(let r of e.selection.ranges){let o=e.doc.lineAt(r.head).from;o>n&&(n=o,t.push(gu.range(o)))}return Xt.of(t)}));function vu(){return mu}n(57836),n(39109),n(34381),n(9878),n(46801),n(66462);const yu=1024;let bu=0;class _u{constructor(e,t){this.from=e,this.to=t}}class xu{constructor(e={}){this.id=bu++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return"function"!=typeof e&&(e=Su.match(e)),t=>{let n=e(t);return void 0===n?null:[this,n]}}}xu.closedBy=new xu({deserialize:e=>e.split(" ")}),xu.openedBy=new xu({deserialize:e=>e.split(" ")}),xu.group=new xu({deserialize:e=>e.split(" ")}),xu.isolate=new xu({deserialize:e=>{if(e&&"rtl"!=e&&"ltr"!=e&&"auto"!=e)throw new RangeError("Invalid value for isolate: "+e);return e||"auto"}}),xu.contextHash=new xu({perNode:!0}),xu.lookAhead=new xu({perNode:!0}),xu.mounted=new xu({perNode:!0});class wu{constructor(e,t,n){this.tree=e,this.overlay=t,this.parser=n}static get(e){return e&&e.props&&e.props[xu.mounted.id]}}const Ou=Object.create(null);class Su{constructor(e,t,n,r=0){this.name=e,this.props=t,this.id=n,this.flags=r}static define(e){let t=e.props&&e.props.length?Object.create(null):Ou,n=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(null==e.name?8:0),r=new Su(e.name||"",t,e.id,n);if(e.props)for(let o of e.props)if(Array.isArray(o)||(o=o(r)),o){if(o[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[o[0].id]=o[1]}return r}prop(e){return this.props[e.id]}get isTop(){return(1&this.flags)>0}get isSkipped(){return(2&this.flags)>0}get isError(){return(4&this.flags)>0}get isAnonymous(){return(8&this.flags)>0}is(e){if("string"==typeof e){if(this.name==e)return!0;let t=this.prop(xu.group);return!!t&&t.indexOf(e)>-1}return this.id==e}static match(e){let t=Object.create(null);for(let n in e)for(let r of n.split(" "))t[r]=e[n];return e=>{for(let n=e.prop(xu.group),r=-1;r<(n?n.length:0);r++){let o=t[r<0?e.name:n[r]];if(o)return o}}}}Su.none=new Su("",Object.create(null),0,8);class Au{constructor(e){this.types=e;for(let t=0;t<e.length;t++)if(e[t].id!=t)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...e){let t=[];for(let n of this.types){let r=null;for(let t of e){let e=t(n);e&&(r||(r=Object.assign({},n.props)),r[e[0].id]=e[1])}t.push(r?new Su(n.name,r,n.id,n.flags):n)}return new Au(t)}}const ku=new WeakMap,Cu=new WeakMap;var Mu;(function(e){e[e["ExcludeBuffers"]=1]="ExcludeBuffers",e[e["IncludeAnonymous"]=2]="IncludeAnonymous",e[e["IgnoreMounts"]=4]="IgnoreMounts",e[e["IgnoreOverlays"]=8]="IgnoreOverlays"})(Mu||(Mu={}));class Tu{constructor(e,t,n,r,o){if(this.type=e,this.children=t,this.positions=n,this.length=r,this.props=null,o&&o.length){this.props=Object.create(null);for(let[e,t]of o)this.props["number"==typeof e?e:e.id]=t}}toString(){let e=wu.get(this);if(e&&!e.overlay)return e.tree.toString();let t="";for(let n of this.children){let e=n.toString();e&&(t&&(t+=","),t+=e)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(t.length?"("+t+")":""):t}cursor(e=0){return new Fu(this.topNode,e)}cursorAt(e,t=0,n=0){let r=ku.get(this)||this.topNode,o=new Fu(r);return o.moveTo(e,t),ku.set(this,o._tree),o}get topNode(){return new Ru(this,0,0,null)}resolve(e,t=0){let n=Eu(ku.get(this)||this.topNode,e,t,!1);return ku.set(this,n),n}resolveInner(e,t=0){let n=Eu(Cu.get(this)||this.topNode,e,t,!0);return Cu.set(this,n),n}resolveStack(e,t=0){return Qu(this,e,t)}iterate(e){let{enter:t,leave:n,from:r=0,to:o=this.length}=e,i=e.mode||0,a=(i&Mu.IncludeAnonymous)>0;for(let s=this.cursor(i|Mu.IncludeAnonymous);;){let e=!1;if(s.from<=o&&s.to>=r&&(!a&&s.type.isAnonymous||!1!==t(s))){if(s.firstChild())continue;e=!0}for(;;){if(e&&n&&(a||!s.type.isAnonymous)&&n(s),s.nextSibling())break;if(!s.parent())return;e=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:Xu(Su.none,this.children,this.positions,0,this.children.length,0,this.length,((e,t,n)=>new Tu(this.type,e,t,n,this.propValues)),e.makeTree||((e,t,n)=>new Tu(Su.none,e,t,n)))}static build(e){return Hu(e)}}Tu.empty=new Tu(Su.none,[],[],0);class Pu{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new Pu(this.buffer,this.index)}}class Iu{constructor(e,t,n){this.buffer=e,this.length=t,this.set=n}get type(){return Su.none}toString(){let e=[];for(let t=0;t<this.buffer.length;)e.push(this.childString(t)),t=this.buffer[t+3];return e.join(",")}childString(e){let t=this.buffer[e],n=this.buffer[e+3],r=this.set.types[t],o=r.name;if(/\W/.test(o)&&!r.isError&&(o=JSON.stringify(o)),e+=4,n==e)return o;let i=[];while(e<n)i.push(this.childString(e)),e=this.buffer[e+3];return o+"("+i.join(",")+")"}findChild(e,t,n,r,o){let{buffer:i}=this,a=-1;for(let s=e;s!=t;s=i[s+3])if($u(o,r,i[s+1],i[s+2])&&(a=s,n>0))break;return a}slice(e,t,n){let r=this.buffer,o=new Uint16Array(t-e),i=0;for(let a=e,s=0;a<t;){o[s++]=r[a++],o[s++]=r[a++]-n;let t=o[s++]=r[a++]-n;o[s++]=r[a++]-e,i=Math.max(i,t)}return new Iu(o,i,this.set)}}function $u(e,t,n,r){switch(e){case-2:return n<t;case-1:return r>=t&&n<t;case 0:return n<t&&r>t;case 1:return n<=t&&r>t;case 2:return r>t;case 4:return!0}}function Eu(e,t,n,r){var o;while(e.from==e.to||(n<1?e.from>=t:e.from>t)||(n>-1?e.to<=t:e.to<t)){let t=!r&&e instanceof Ru&&e.index<0?null:e.parent;if(!t)return e;e=t}let i=r?0:Mu.IgnoreOverlays;if(r)for(let a=e,s=a.parent;s;a=s,s=a.parent)a instanceof Ru&&a.index<0&&(null===(o=s.enter(t,n,i))||void 0===o?void 0:o.from)!=a.from&&(e=s);for(;;){let r=e.enter(t,n,i);if(!r)return e;e=r}}class Du{cursor(e=0){return new Fu(this,e)}getChild(e,t=null,n=null){let r=Nu(this,e,t,n);return r.length?r[0]:null}getChildren(e,t=null,n=null){return Nu(this,e,t,n)}resolve(e,t=0){return Eu(this,e,t,!1)}resolveInner(e,t=0){return Eu(this,e,t,!0)}matchContext(e){return Lu(this,e)}enterUnfinishedNodesBefore(e){let t=this.childBefore(e),n=this;while(t){let e=t.lastChild;if(!e||e.to!=t.to)break;e.type.isError&&e.from==e.to?(n=t,t=e.prevSibling):t=e}return n}get node(){return this}get next(){return this.parent}}class Ru extends Du{constructor(e,t,n,r){super(),this._tree=e,this.from=t,this.index=n,this._parent=r}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,t,n,r,o=0){for(let i=this;;){for(let{children:a,positions:s}=i._tree,l=t>0?a.length:-1;e!=l;e+=t){let l=a[e],u=s[e]+i.from;if($u(r,n,u,u+l.length))if(l instanceof Iu){if(o&Mu.ExcludeBuffers)continue;let a=l.findChild(0,l.buffer.length,t,n-u,r);if(a>-1)return new Vu(new zu(i,l,e,u),null,a)}else if(o&Mu.IncludeAnonymous||!l.type.isAnonymous||Wu(l)){let a;if(!(o&Mu.IgnoreMounts)&&(a=wu.get(l))&&!a.overlay)return new Ru(a.tree,u,e,i);let s=new Ru(l,u,e,i);return o&Mu.IncludeAnonymous||!s.type.isAnonymous?s:s.nextChild(t<0?l.children.length-1:0,t,n,r)}}if(o&Mu.IncludeAnonymous||!i.type.isAnonymous)return null;if(e=i.index>=0?i.index+t:t<0?-1:i._parent._tree.children.length,i=i._parent,!i)return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,t,n=0){let r;if(!(n&Mu.IgnoreOverlays)&&(r=wu.get(this._tree))&&r.overlay){let n=e-this.from;for(let{from:e,to:o}of r.overlay)if((t>0?e<=n:e<n)&&(t<0?o>=n:o>n))return new Ru(r.tree,r.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,n)}nextSignificantParent(){let e=this;while(e.type.isAnonymous&&e._parent)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function Nu(e,t,n,r){let o=e.cursor(),i=[];if(!o.firstChild())return i;if(null!=n)for(let a=!1;!a;)if(a=o.type.is(n),!o.nextSibling())return i;for(;;){if(null!=r&&o.type.is(r))return i;if(o.type.is(t)&&i.push(o.node),!o.nextSibling())return null==r?i:[]}}function Lu(e,t,n=t.length-1){for(let r=e.parent;n>=0;r=r.parent){if(!r)return!1;if(!r.type.isAnonymous){if(t[n]&&t[n]!=r.name)return!1;n--}}return!0}class zu{constructor(e,t,n,r){this.parent=e,this.buffer=t,this.index=n,this.start=r}}class Vu extends Du{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,n){super(),this.context=e,this._parent=t,this.index=n,this.type=e.buffer.set.types[e.buffer.buffer[n]]}child(e,t,n){let{buffer:r}=this.context,o=r.findChild(this.index+4,r.buffer[this.index+3],e,t-this.context.start,n);return o<0?null:new Vu(this.context,this,o)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,t,n=0){if(n&Mu.ExcludeBuffers)return null;let{buffer:r}=this.context,o=r.findChild(this.index+4,r.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return o<0?null:new Vu(this.context,this,o)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new Vu(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new Vu(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[],{buffer:n}=this.context,r=this.index+4,o=n.buffer[this.index+3];if(o>r){let i=n.buffer[this.index+1];e.push(n.slice(r,o,i)),t.push(0)}return new Tu(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function Bu(e){if(!e.length)return null;let t=0,n=e[0];for(let i=1;i<e.length;i++){let r=e[i];(r.from>n.from||r.to<n.to)&&(n=r,t=i)}let r=n instanceof Ru&&n.index<0?null:n.parent,o=e.slice();return r?o[t]=r:o.splice(t,1),new ju(o,n)}class ju{constructor(e,t){this.heads=e,this.node=t}get next(){return Bu(this.heads)}}function Qu(e,t,n){let r=e.resolveInner(t,n),o=null;for(let i=r instanceof Ru?r:r.context.parent;i;i=i.parent)if(i.index<0){let e=i.parent;(o||(o=[r])).push(e.resolve(t,n)),i=e}else{let e=wu.get(i.tree);if(e&&e.overlay&&e.overlay[0].from<=t&&e.overlay[e.overlay.length-1].to>=t){let a=new Ru(e.tree,e.overlay[0].from+i.from,-1,i);(o||(o=[r])).push(Eu(a,t,n,!1))}}return o?Bu(o):r}class Fu{get name(){return this.type.name}constructor(e,t=0){if(this.mode=t,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof Ru)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let t=e._parent;t;t=t._parent)this.stack.unshift(t.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return!!e&&(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0)}yieldBuf(e,t){this.index=e;let{start:n,buffer:r}=this.buffer;return this.type=t||r.set.types[r.buffer[e]],this.from=n+r.buffer[e+1],this.to=n+r.buffer[e+2],!0}yield(e){return!!e&&(e instanceof Ru?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)))}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,n){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,n,this.mode));let{buffer:r}=this.buffer,o=r.findChild(this.index+4,r.buffer[this.index+3],e,t-this.buffer.start,n);return!(o<0)&&(this.stack.push(this.index),this.yieldBuf(o))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,n=this.mode){return this.buffer?!(n&Mu.ExcludeBuffers)&&this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,n))}parent(){if(!this.buffer)return this.yieldNode(this.mode&Mu.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&Mu.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode));let{buffer:t}=this.buffer,n=this.stack.length-1;if(e<0){let e=n<0?0:this.stack[n]+4;if(this.index!=e)return this.yieldBuf(t.findChild(e,this.index,-1,0,4))}else{let e=t.buffer[this.index+3];if(e<(n<0?t.buffer.length:t.buffer[this.stack[n]+3]))return this.yieldBuf(e)}return n<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode))}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,n,{buffer:r}=this;if(r){if(e>0){if(this.index<r.buffer.buffer.length)return!1}else for(let e=0;e<this.index;e++)if(r.buffer.buffer[e+3]<this.index)return!1;({index:t,parent:n}=r)}else({index:t,_parent:n}=this._tree);for(;n;({index:t,_parent:n}=n))if(t>-1)for(let r=t+e,o=e<0?-1:n._tree.children.length;r!=o;r+=e){let e=n._tree.children[r];if(this.mode&Mu.IncludeAnonymous||e instanceof Iu||!e.type.isAnonymous||Wu(e))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){while(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to<e))if(!this.parent())break;while(this.enterChild(1,e,t));return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,t=null,n=0;if(e&&e.context==this.buffer)e:for(let r=this.index,o=this.stack.length;o>=0;){for(let i=e;i;i=i._parent)if(i.index==r){if(r==this.index)return i;t=i,n=o+1;break e}r=this.stack[--o]}for(let r=n;r<this.stack.length;r++)t=new Vu(this.buffer,t,this.stack[r]);return this.bufferNode=new Vu(this.buffer,t,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,t){for(let n=0;;){let r=!1;if(this.type.isAnonymous||!1!==e(this)){if(this.firstChild()){n++;continue}this.type.isAnonymous||(r=!0)}for(;;){if(r&&t&&t(this),r=this.type.isAnonymous,this.nextSibling())break;if(!n)return;this.parent(),n--,r=!0}}}matchContext(e){if(!this.buffer)return Lu(this.node,e);let{buffer:t}=this.buffer,{types:n}=t.set;for(let r=e.length-1,o=this.stack.length-1;r>=0;o--){if(o<0)return Lu(this.node,e,r);let i=n[t.buffer[this.stack[o]]];if(!i.isAnonymous){if(e[r]&&e[r]!=i.name)return!1;r--}}return!0}}function Wu(e){return e.children.some((e=>e instanceof Iu||!e.type.isAnonymous||Wu(e)))}function Hu(e){var t;let{buffer:n,nodeSet:r,maxBufferLength:o=yu,reused:i=[],minRepeatType:a=r.types.length}=e,s=Array.isArray(n)?new Pu(n,n.length):n,l=r.types,u=0,c=0;function d(e,t,n,y,b,_){let{id:x,start:w,end:O,size:S}=s,A=c;while(S<0){if(s.next(),-1==S){let t=i[x];return n.push(t),void y.push(w-e)}if(-3==S)return void(u=x);if(-4==S)return void(c=x);throw new RangeError(`Unrecognized record size: ${S}`)}let k,C,M=l[x],T=w-e;if(O-w<=o&&(C=m(s.pos-t,b))){let t=new Uint16Array(C.size-C.skip),n=s.pos-C.size,o=t.length;while(s.pos>n)o=v(C.start,t,o);k=new Iu(t,O-C.start,r),T=C.start-e}else{let e=s.pos-S;s.next();let t=[],n=[],r=x>=a?x:-1,i=0,l=O;while(s.pos>e)r>=0&&s.id==r&&s.size>=0?(s.end<=l-o&&(f(t,n,w,i,s.end,l,r,A),i=t.length,l=s.end),s.next()):_>2500?h(w,e,t,n):d(w,e,t,n,r,_+1);if(r>=0&&i>0&&i<t.length&&f(t,n,w,i,w,l,r,A),t.reverse(),n.reverse(),r>-1&&i>0){let e=p(M);k=Xu(M,t,n,0,t.length,0,O-w,e,e)}else k=g(M,t,n,O-w,A-O)}n.push(k),y.push(T)}function h(e,t,n,i){let a=[],l=0,u=-1;while(s.pos>t){let{id:e,start:t,end:n,size:r}=s;if(r>4)s.next();else{if(u>-1&&t<u)break;u<0&&(u=n-o),a.push(e,t,n),l++,s.next()}}if(l){let t=new Uint16Array(4*l),o=a[a.length-2];for(let e=a.length-3,n=0;e>=0;e-=3)t[n++]=a[e],t[n++]=a[e+1]-o,t[n++]=a[e+2]-o,t[n++]=n;n.push(new Iu(t,a[2]-o,r)),i.push(o-e)}}function p(e){return(t,n,r)=>{let o,i,a=0,s=t.length-1;if(s>=0&&(o=t[s])instanceof Tu){if(!s&&o.type==e&&o.length==r)return o;(i=o.prop(xu.lookAhead))&&(a=n[s]+o.length+i)}return g(e,t,n,r,a)}}function f(e,t,n,o,i,a,s,l){let u=[],c=[];while(e.length>o)u.push(e.pop()),c.push(t.pop()+n-i);e.push(g(r.types[s],u,c,a-i,l-a)),t.push(i-n)}function g(e,t,n,r,o=0,i){if(u){let e=[xu.contextHash,u];i=i?[e].concat(i):[e]}if(o>25){let e=[xu.lookAhead,o];i=i?[e].concat(i):[e]}return new Tu(e,t,n,r,i)}function m(e,t){let n=s.fork(),r=0,i=0,l=0,u=n.end-o,c={size:0,start:0,skip:0};e:for(let o=n.pos-e;n.pos>o;){let e=n.size;if(n.id==t&&e>=0){c.size=r,c.start=i,c.skip=l,l+=4,r+=4,n.next();continue}let s=n.pos-e;if(e<0||s<o||n.start<u)break;let d=n.id>=a?4:0,h=n.start;n.next();while(n.pos>s){if(n.size<0){if(-3!=n.size)break e;d+=4}else n.id>=a&&(d+=4);n.next()}i=h,r+=e,l+=d}return(t<0||r==e)&&(c.size=r,c.start=i,c.skip=l),c.size>4?c:void 0}function v(e,t,n){let{id:r,start:o,end:i,size:l}=s;if(s.next(),l>=0&&r<a){let a=n;if(l>4){let r=s.pos-(l-4);while(s.pos>r)n=v(e,t,n)}t[--n]=a,t[--n]=i-e,t[--n]=o-e,t[--n]=r}else-3==l?u=r:-4==l&&(c=r);return n}let y=[],b=[];while(s.pos>0)d(e.start||0,e.bufferStart||0,y,b,-1,0);let _=null!==(t=e.length)&&void 0!==t?t:y.length?b[0]+y[0].length:0;return new Tu(l[e.topID],y.reverse(),b.reverse(),_)}const Zu=new WeakMap;function Gu(e,t){if(!e.isAnonymous||t instanceof Iu||t.type!=e)return 1;let n=Zu.get(t);if(null==n){n=1;for(let r of t.children){if(r.type!=e||!(r instanceof Tu)){n=1;break}n+=Gu(e,r)}Zu.set(t,n)}return n}function Xu(e,t,n,r,o,i,a,s,l){let u=0;for(let f=r;f<o;f++)u+=Gu(e,t[f]);let c=Math.ceil(1.5*u/8),d=[],h=[];function p(t,n,r,o,a){for(let s=r;s<o;){let r=s,u=n[s],f=Gu(e,t[s]);for(s++;s<o;s++){let n=Gu(e,t[s]);if(f+n>=c)break;f+=n}if(s==r+1){if(f>c){let e=t[r];p(e.children,e.positions,0,e.children.length,n[r]+a);continue}d.push(t[r])}else{let o=n[s-1]+t[s-1].length-u;d.push(Xu(e,t,n,r,s,u,o,null,l))}h.push(u+a-i)}}return p(t,n,r,o,0),(s||l)(d,h,a)}class Uu{constructor(){this.map=new WeakMap}setBuffer(e,t,n){let r=this.map.get(e);r||this.map.set(e,r=new Map),r.set(t,n)}getBuffer(e,t){let n=this.map.get(e);return n&&n.get(t)}set(e,t){e instanceof Vu?this.setBuffer(e.context.buffer,e.index,t):e instanceof Ru&&this.map.set(e.tree,t)}get(e){return e instanceof Vu?this.getBuffer(e.context.buffer,e.index):e instanceof Ru?this.map.get(e.tree):void 0}cursorSet(e,t){e.buffer?this.setBuffer(e.buffer.buffer,e.index,t):this.map.set(e.tree,t)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}class Yu{constructor(e,t,n,r,o=!1,i=!1){this.from=e,this.to=t,this.tree=n,this.offset=r,this.open=(o?1:0)|(i?2:0)}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(e,t=[],n=!1){let r=[new Yu(0,e.length,e,0,!1,n)];for(let o of t)o.to>e.length&&r.push(o);return r}static applyChanges(e,t,n=128){if(!t.length)return e;let r=[],o=1,i=e.length?e[0]:null;for(let a=0,s=0,l=0;;a++){let u=a<t.length?t[a]:null,c=u?u.fromA:1e9;if(c-s>=n)while(i&&i.from<c){let t=i;if(s>=t.from||c<=t.to||l){let e=Math.max(t.from,s)-l,n=Math.min(t.to,c)-l;t=e>=n?null:new Yu(e,n,t.tree,t.offset+l,a>0,!!u)}if(t&&r.push(t),i.to>c)break;i=o<e.length?e[o++]:null}if(!u)break;s=u.toA,l=u.toA-u.toB}return r}}class qu{startParse(e,t,n){return"string"==typeof e&&(e=new Ku(e)),n=n?n.length?n.map((e=>new _u(e.from,e.to))):[new _u(0,0)]:[new _u(0,e.length)],this.createParse(e,t||[],n)}parse(e,t,n){let r=this.startParse(e,t,n);for(;;){let e=r.advance();if(e)return e}}}class Ku{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}new xu({perNode:!0});let Ju=0;class ec{constructor(e,t,n){this.set=e,this.base=t,this.modified=n,this.id=Ju++}static define(e){if(null===e||void 0===e?void 0:e.base)throw new Error("Can not derive from a modified tag");let t=new ec([],null,[]);if(t.set.push(t),e)for(let n of e.set)t.set.push(n);return t}static defineModifier(){let e=new nc;return t=>t.modified.indexOf(e)>-1?t:nc.get(t.base||t,t.modified.concat(e).sort(((e,t)=>e.id-t.id)))}}let tc=0;class nc{constructor(){this.instances=[],this.id=tc++}static get(e,t){if(!t.length)return e;let n=t[0].instances.find((n=>n.base==e&&rc(t,n.modified)));if(n)return n;let r=[],o=new ec(r,e,t);for(let a of t)a.instances.push(o);let i=oc(t);for(let a of e.set)if(!a.modified.length)for(let e of i)r.push(nc.get(a,e));return o}}function rc(e,t){return e.length==t.length&&e.every(((e,n)=>e==t[n]))}function oc(e){let t=[[]];for(let n=0;n<e.length;n++)for(let r=0,o=t.length;r<o;r++)t.push(t[r].concat(e[n]));return t.sort(((e,t)=>t.length-e.length))}function ic(e){let t=Object.create(null);for(let n in e){let r=e[n];Array.isArray(r)||(r=[r]);for(let e of n.split(" "))if(e){let n=[],o=2,i=e;for(let t=0;;){if("..."==i&&t>0&&t+3==e.length){o=1;break}let r=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(i);if(!r)throw new RangeError("Invalid path: "+e);if(n.push("*"==r[0]?"":'"'==r[0][0]?JSON.parse(r[0]):r[0]),t+=r[0].length,t==e.length)break;let a=e[t++];if(t==e.length&&"!"==a){o=0;break}if("/"!=a)throw new RangeError("Invalid path: "+e);i=e.slice(t)}let a=n.length-1,s=n[a];if(!s)throw new RangeError("Invalid path: "+e);let l=new sc(r,o,a>0?n.slice(0,a):null);t[s]=l.sort(t[s])}}return ac.add(t)}const ac=new xu;class sc{constructor(e,t,n,r){this.tags=e,this.mode=t,this.context=n,this.next=r}get opaque(){return 0==this.mode}get inherit(){return 1==this.mode}sort(e){return!e||e.depth<this.depth?(this.next=e,this):(e.next=this.sort(e.next),e)}get depth(){return this.context?this.context.length:0}}function lc(e,t){let n=Object.create(null);for(let i of e)if(Array.isArray(i.tag))for(let e of i.tag)n[e.id]=i.class;else n[i.tag.id]=i.class;let{scope:r,all:o=null}=t||{};return{style:e=>{let t=o;for(let r of e)for(let e of r.set){let r=n[e.id];if(r){t=t?t+" "+r:r;break}}return t},scope:r}}function uc(e,t){let n=null;for(let r of e){let e=r.style(t);e&&(n=n?n+" "+e:e)}return n}function cc(e,t,n,r=0,o=e.length){let i=new dc(r,Array.isArray(t)?t:[t],n);i.highlightRange(e.cursor(),r,o,"",i.highlighters),i.flush(o)}sc.empty=new sc([],2,null);class dc{constructor(e,t,n){this.at=e,this.highlighters=t,this.span=n,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,n,r,o){let{type:i,from:a,to:s}=e;if(a>=n||s<=t)return;i.isTop&&(o=this.highlighters.filter((e=>!e.scope||e.scope(i))));let l=r,u=hc(e)||sc.empty,c=uc(o,u.tags);if(c&&(l&&(l+=" "),l+=c,1==u.mode&&(r+=(r?" ":"")+c)),this.startSpan(Math.max(t,a),l),u.opaque)return;let d=e.tree&&e.tree.prop(xu.mounted);if(d&&d.overlay){let i=e.node.enter(d.overlay[0].from+a,1),u=this.highlighters.filter((e=>!e.scope||e.scope(d.tree.type))),c=e.firstChild();for(let h=0,p=a;;h++){let f=h<d.overlay.length?d.overlay[h]:null,g=f?f.from+a:s,m=Math.max(t,p),v=Math.min(n,g);if(m<v&&c)while(e.from<v)if(this.highlightRange(e,m,v,r,o),this.startSpan(Math.min(v,e.to),l),e.to>=g||!e.nextSibling())break;if(!f||g>n)break;p=f.to+a,p>t&&(this.highlightRange(i.cursor(),Math.max(t,f.from+a),Math.min(n,p),"",u),this.startSpan(Math.min(n,p),l))}c&&e.parent()}else if(e.firstChild()){d&&(r="");do{if(!(e.to<=t)){if(e.from>=n)break;this.highlightRange(e,t,n,r,o),this.startSpan(Math.min(n,e.to),l)}}while(e.nextSibling());e.parent()}}}function hc(e){let t=e.type.prop(ac);while(t&&t.context&&!e.matchContext(t.context))t=t.next;return t||null}const pc=ec.define,fc=pc(),gc=pc(),mc=pc(gc),vc=pc(gc),yc=pc(),bc=pc(yc),_c=pc(yc),xc=pc(),wc=pc(xc),Oc=pc(),Sc=pc(),Ac=pc(),kc=pc(Ac),Cc=pc(),Mc={comment:fc,lineComment:pc(fc),blockComment:pc(fc),docComment:pc(fc),name:gc,variableName:pc(gc),typeName:mc,tagName:pc(mc),propertyName:vc,attributeName:pc(vc),className:pc(gc),labelName:pc(gc),namespace:pc(gc),macroName:pc(gc),literal:yc,string:bc,docString:pc(bc),character:pc(bc),attributeValue:pc(bc),number:_c,integer:pc(_c),float:pc(_c),bool:pc(yc),regexp:pc(yc),escape:pc(yc),color:pc(yc),url:pc(yc),keyword:Oc,self:pc(Oc),null:pc(Oc),atom:pc(Oc),unit:pc(Oc),modifier:pc(Oc),operatorKeyword:pc(Oc),controlKeyword:pc(Oc),definitionKeyword:pc(Oc),moduleKeyword:pc(Oc),operator:Sc,derefOperator:pc(Sc),arithmeticOperator:pc(Sc),logicOperator:pc(Sc),bitwiseOperator:pc(Sc),compareOperator:pc(Sc),updateOperator:pc(Sc),definitionOperator:pc(Sc),typeOperator:pc(Sc),controlOperator:pc(Sc),punctuation:Ac,separator:pc(Ac),bracket:kc,angleBracket:pc(kc),squareBracket:pc(kc),paren:pc(kc),brace:pc(kc),content:xc,heading:wc,heading1:pc(wc),heading2:pc(wc),heading3:pc(wc),heading4:pc(wc),heading5:pc(wc),heading6:pc(wc),contentSeparator:pc(xc),list:pc(xc),quote:pc(xc),emphasis:pc(xc),strong:pc(xc),link:pc(xc),monospace:pc(xc),strikethrough:pc(xc),inserted:pc(),deleted:pc(),changed:pc(),invalid:pc(),meta:Cc,documentMeta:pc(Cc),annotation:pc(Cc),processingInstruction:pc(Cc),definition:ec.defineModifier(),constant:ec.defineModifier(),function:ec.defineModifier(),standard:ec.defineModifier(),local:ec.defineModifier(),special:ec.defineModifier()};lc([{tag:Mc.link,class:"tok-link"},{tag:Mc.heading,class:"tok-heading"},{tag:Mc.emphasis,class:"tok-emphasis"},{tag:Mc.strong,class:"tok-strong"},{tag:Mc.keyword,class:"tok-keyword"},{tag:Mc.atom,class:"tok-atom"},{tag:Mc.bool,class:"tok-bool"},{tag:Mc.url,class:"tok-url"},{tag:Mc.labelName,class:"tok-labelName"},{tag:Mc.inserted,class:"tok-inserted"},{tag:Mc.deleted,class:"tok-deleted"},{tag:Mc.literal,class:"tok-literal"},{tag:Mc.string,class:"tok-string"},{tag:Mc.number,class:"tok-number"},{tag:[Mc.regexp,Mc.escape,Mc.special(Mc.string)],class:"tok-string2"},{tag:Mc.variableName,class:"tok-variableName"},{tag:Mc.local(Mc.variableName),class:"tok-variableName tok-local"},{tag:Mc.definition(Mc.variableName),class:"tok-variableName tok-definition"},{tag:Mc.special(Mc.variableName),class:"tok-variableName2"},{tag:Mc.definition(Mc.propertyName),class:"tok-propertyName tok-definition"},{tag:Mc.typeName,class:"tok-typeName"},{tag:Mc.namespace,class:"tok-namespace"},{tag:Mc.className,class:"tok-className"},{tag:Mc.macroName,class:"tok-macroName"},{tag:Mc.propertyName,class:"tok-propertyName"},{tag:Mc.operator,class:"tok-operator"},{tag:Mc.comment,class:"tok-comment"},{tag:Mc.meta,class:"tok-meta"},{tag:Mc.invalid,class:"tok-invalid"},{tag:Mc.punctuation,class:"tok-punctuation"}]);var Tc;const Pc=new xu;function Ic(e){return Je.define({combine:e?t=>t.concat(e):void 0})}const $c=new xu;class Ec{constructor(e,t,n=[],r=""){this.data=e,this.name=r,Qt.prototype.hasOwnProperty("tree")||Object.defineProperty(Qt.prototype,"tree",{get(){return Nc(this)}}),this.parser=t,this.extension=[Hc.of(this),Qt.languageData.of(((e,t,n)=>{let r=Dc(e,t,n),o=r.type.prop(Pc);if(!o)return[];let i=e.facet(o),a=r.type.prop($c);if(a){let o=r.resolve(t-r.from,n);for(let t of a)if(t.test(o,e)){let n=e.facet(t.facet);return"replace"==t.type?n:n.concat(i)}}return i}))].concat(n)}isActiveAt(e,t,n=-1){return Dc(e,t,n).type.prop(Pc)==this.data}findRegions(e){let t=e.facet(Hc);if((null===t||void 0===t?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let n=[],r=(e,t)=>{if(e.prop(Pc)==this.data)return void n.push({from:t,to:t+e.length});let o=e.prop(xu.mounted);if(o){if(o.tree.prop(Pc)==this.data){if(o.overlay)for(let e of o.overlay)n.push({from:e.from+t,to:e.to+t});else n.push({from:t,to:t+e.length});return}if(o.overlay){let e=n.length;if(r(o.tree,o.overlay[0].from+t),n.length>e)return}}for(let n=0;n<e.children.length;n++){let o=e.children[n];o instanceof Tu&&r(o,e.positions[n]+t)}};return r(Nc(e),0),n}get allowsNesting(){return!0}}function Dc(e,t,n){let r=e.facet(Hc),o=Nc(e).topNode;if(!r||r.allowsNesting)for(let i=o;i;i=i.enter(t,n,Mu.ExcludeBuffers))i.type.isTop&&(o=i);return o}Ec.setState=Ct.define();class Rc extends Ec{constructor(e,t,n){super(e,t,[],n),this.parser=t}static define(e){let t=Ic(e.languageData);return new Rc(t,e.parser.configure({props:[Pc.add((e=>e.isTop?t:void 0))]}),e.name)}configure(e,t){return new Rc(this.data,this.parser.configure(e),t||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function Nc(e){let t=e.field(Ec.state,!1);return t?t.tree:Tu.empty}class Lc{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let n=this.cursorPos-this.string.length;return e<n||t>=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-n,t-n)}}let zc=null;class Vc{constructor(e,t,n=[],r,o,i,a,s){this.parser=e,this.state=t,this.fragments=n,this.tree=r,this.treeLen=o,this.viewport=i,this.skipped=a,this.scheduleOn=s,this.parse=null,this.tempSkipped=[]}static create(e,t,n){return new Vc(e,t,[],Tu.empty,0,n,[],null)}startParse(){return this.parser.startParse(new Lc(this.state.doc),this.fragments)}work(e,t){return null!=t&&t>=this.state.doc.length&&(t=void 0),this.tree!=Tu.empty&&this.isDone(null!==t&&void 0!==t?t:this.state.doc.length)?(this.takeTree(),!0):this.withContext((()=>{var n;if("number"==typeof e){let t=Date.now()+e;e=()=>Date.now()>t}for(this.parse||(this.parse=this.startParse()),null!=t&&(null==this.parse.stoppedAt||this.parse.stoppedAt>t)&&t<this.state.doc.length&&this.parse.stopAt(t);;){let r=this.parse.advance();if(r){if(this.fragments=this.withoutTempSkipped(Yu.addTree(r,this.fragments,null!=this.parse.stoppedAt)),this.treeLen=null!==(n=this.parse.stoppedAt)&&void 0!==n?n:this.state.doc.length,this.tree=r,this.parse=null,!(this.treeLen<(null!==t&&void 0!==t?t:this.state.doc.length)))return!0;this.parse=this.startParse()}if(e())return!1}}))}takeTree(){let e,t;this.parse&&(e=this.parse.parsedPos)>=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext((()=>{while(!(t=this.parse.advance()));})),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(Yu.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=zc;zc=this;try{return e()}finally{zc=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=Bc(e,t.from,t.to);return e}changes(e,t){let{fragments:n,tree:r,treeLen:o,viewport:i,skipped:a}=this;if(this.takeTree(),!e.empty){let t=[];if(e.iterChangedRanges(((e,n,r,o)=>t.push({fromA:e,toA:n,fromB:r,toB:o}))),n=Yu.applyChanges(n,t),r=Tu.empty,o=0,i={from:e.mapPos(i.from,-1),to:e.mapPos(i.to,1)},this.skipped.length){a=[];for(let t of this.skipped){let n=e.mapPos(t.from,1),r=e.mapPos(t.to,-1);n<r&&a.push({from:n,to:r})}}}return new Vc(this.parser,t,n,r,o,i,a,this.scheduleOn)}updateViewport(e){if(this.viewport.from==e.from&&this.viewport.to==e.to)return!1;this.viewport=e;let t=this.skipped.length;for(let n=0;n<this.skipped.length;n++){let{from:t,to:r}=this.skipped[n];t<e.to&&r>e.from&&(this.fragments=Bc(this.fragments,t,r),this.skipped.splice(n--,1))}return!(this.skipped.length>=t)&&(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends qu{createParse(t,n,r){let o=r[0].from,i=r[r.length-1].to,a={parsedPos:o,advance(){let t=zc;if(t){for(let e of r)t.tempSkipped.push(e);e&&(t.scheduleOn=t.scheduleOn?Promise.all([t.scheduleOn,e]):e)}return this.parsedPos=i,new Tu(Su.none,[],[],i-o)},stoppedAt:null,stopAt(){}};return a}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&0==t[0].from&&t[0].to>=e}static get(){return zc}}function Bc(e,t,n){return Yu.applyChanges(e,[{fromA:t,toA:n,fromB:t,toB:n}])}class jc{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),n=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,n)||t.takeTree(),new jc(t)}static init(e){let t=Math.min(3e3,e.doc.length),n=Vc.create(e.facet(Hc).parser,e,{from:0,to:t});return n.work(20,t)||n.takeTree(),new jc(n)}}Ec.state=at.define({create:jc.init,update(e,t){for(let n of t.effects)if(n.is(Ec.setState))return n.value;return t.startState.facet(Hc)!=t.state.facet(Hc)?jc.init(t.state):e.apply(t)}});let Qc=e=>{let t=setTimeout((()=>e()),500);return()=>clearTimeout(t)};"undefined"!=typeof requestIdleCallback&&(Qc=e=>{let t=-1,n=setTimeout((()=>{t=requestIdleCallback(e,{timeout:400})}),100);return()=>t<0?clearTimeout(n):cancelIdleCallback(t)});const Fc="undefined"!=typeof navigator&&(null===(Tc=navigator.scheduling)||void 0===Tc?void 0:Tc.isInputPending)?()=>navigator.scheduling.isInputPending():null,Wc=$o.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(Ec.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(Ec.state);t.tree==t.context.tree&&t.context.isDone(e.doc.length)||(this.working=Qc(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEnd<t&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=t+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:n,viewport:{to:r}}=this.view,o=n.field(Ec.state);if(o.tree==o.context.tree&&o.context.isDone(r+1e5))return;let i=Date.now()+Math.min(this.chunkBudget,100,e&&!Fc?Math.max(25,e.timeRemaining()-5):1e9),a=o.context.treeLen<r&&n.doc.length>r+1e3,s=o.context.work((()=>Fc&&Fc()||Date.now()>i),r+(a?0:1e5));this.chunkBudget-=Date.now()-t,(s||this.chunkBudget<=0)&&(o.context.takeTree(),this.view.dispatch({effects:Ec.setState.of(new jc(o.context))})),this.chunkBudget>0&&(!s||a)&&this.scheduleWork(),this.checkAsyncSchedule(o.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then((()=>this.scheduleWork())).catch((e=>Mo(this.view.state,e))).then((()=>this.workScheduled--)),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),Hc=Je.define({combine(e){return e.length?e[0]:null},enables:e=>[Ec.state,Wc,ls.contentAttributes.compute([e],(t=>{let n=t.facet(e);return n&&n.name?{"data-language":n.name}:{}}))]});class Zc{constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}}const Gc=Je.define(),Xc=Je.define({combine:e=>{if(!e.length)return" ";let t=e[0];if(!t||/\S/.test(t)||Array.from(t).some((e=>e!=t[0])))throw new Error("Invalid indent unit: "+JSON.stringify(e[0]));return t}});function Uc(e){let t=e.facet(Xc);return 9==t.charCodeAt(0)?e.tabSize*t.length:t.length}function Yc(e,t){let n="",r=e.tabSize,o=e.facet(Xc)[0];if("\t"==o){while(t>=r)n+="\t",t-=r;o=" "}for(let i=0;i<t;i++)n+=o;return n}function qc(e,t){e instanceof Qt&&(e=new Kc(e));for(let r of e.state.facet(Gc)){let n=r(e,t);if(void 0!==n)return n}let n=Nc(e.state);return n.length>=t?ed(e,n,t):null}class Kc{constructor(e,t={}){this.state=e,this.options=t,this.unit=Uc(e)}lineAt(e,t=1){let n=this.state.doc.lineAt(e),{simulateBreak:r,simulateDoubleBreak:o}=this.options;return null!=r&&r>=n.from&&r<=n.to?o&&r==e?{text:"",from:e}:(t<0?r<e:r<=e)?{text:n.text.slice(r-n.from),from:r}:{text:n.text.slice(0,r-n.from),from:n.from}:n}textAfterPos(e,t=1){if(this.options.simulateDoubleBreak&&e==this.options.simulateBreak)return"";let{text:n,from:r}=this.lineAt(e,t);return n.slice(e-r,Math.min(n.length,e+100-r))}column(e,t=1){let{text:n,from:r}=this.lineAt(e,t),o=this.countColumn(n,e-r),i=this.options.overrideIndentation?this.options.overrideIndentation(r):-1;return i>-1&&(o+=i-this.countColumn(n,n.search(/\S|$/))),o}countColumn(e,t=e.length){return ln(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:n,from:r}=this.lineAt(e,t),o=this.options.overrideIndentation;if(o){let e=o(r);if(e>-1)return e}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const Jc=new xu;function ed(e,t,n){let r=t.resolveStack(n),o=r.node.enterUnfinishedNodesBefore(n);if(o!=r.node){let e=[];for(let t=o;t!=r.node;t=t.parent)e.push(t);for(let t=e.length-1;t>=0;t--)r={node:e[t],next:r}}return td(r,e,n)}function td(e,t,n){for(let r=e;r;r=r.next){let e=rd(r.node);if(e)return e(id.create(t,n,r))}return 0}function nd(e){return e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak}function rd(e){let t=e.type.prop(Jc);if(t)return t;let n,r=e.firstChild;if(r&&(n=r.type.prop(xu.closedBy))){let t=e.lastChild,r=t&&n.indexOf(t.name)>-1;return e=>ud(e,!0,1,void 0,r&&!nd(e)?t.from:void 0)}return null==e.parent?od:null}function od(){return 0}class id extends Kc{constructor(e,t,n){super(e.state,e.options),this.base=e,this.pos=t,this.context=n}get node(){return this.context.node}static create(e,t,n){return new id(e,t,n)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let t=this.state.doc.lineAt(e.from);for(;;){let n=e.resolve(t.from);while(n.parent&&n.parent.from==n.from)n=n.parent;if(ad(n,e))break;t=this.state.doc.lineAt(n.from)}return this.lineIndent(t.from)}continue(){return td(this.context.next,this.base,this.pos)}}function ad(e,t){for(let n=t;n;n=n.parent)if(e==n)return!0;return!1}function sd(e){let t=e.node,n=t.childAfter(t.from),r=t.lastChild;if(!n)return null;let o=e.options.simulateBreak,i=e.state.doc.lineAt(n.from),a=null==o||o<=i.from?i.to:Math.min(i.to,o);for(let s=n.to;;){let e=t.childAfter(s);if(!e||e==r)return null;if(!e.type.isSkipped)return e.from<a?n:null;s=e.to}}function ld({closing:e,align:t=!0,units:n=1}){return r=>ud(r,t,n,e)}function ud(e,t,n,r,o){let i=e.textAfter,a=i.match(/^\s*/)[0].length,s=r&&i.slice(a,a+r.length)==r||o==e.pos+a,l=t?sd(e):null;return l?s?e.column(l.from):e.column(l.to):e.baseIndent+(s?0:e.unit*n)}const cd=e=>e.baseIndent;function dd({except:e,units:t=1}={}){return n=>{let r=e&&e.test(n.textAfter);return n.baseIndent+(r?0:t*n.unit)}}const hd=200;function pd(){return Qt.transactionFilter.of((e=>{if(!e.docChanged||!e.isUserEvent("input.type")&&!e.isUserEvent("input.complete"))return e;let t=e.startState.languageDataAt("indentOnInput",e.startState.selection.main.head);if(!t.length)return e;let n=e.newDoc,{head:r}=e.newSelection.main,o=n.lineAt(r);if(r>o.from+hd)return e;let i=n.sliceString(o.from,r);if(!t.some((e=>e.test(i))))return e;let{state:a}=e,s=-1,l=[];for(let{head:u}of a.selection.ranges){let e=a.doc.lineAt(u);if(e.from==s)continue;s=e.from;let t=qc(a,e.from);if(null==t)continue;let n=/^\s*/.exec(e.text)[0],r=Yc(a,t);n!=r&&l.push({from:e.from,to:e.from+n.length,insert:r})}return l.length?[e,{changes:l,sequential:!0}]:e}))}const fd=Je.define(),gd=new xu;function md(e){let t=e.firstChild,n=e.lastChild;return t&&t.to<n.from?{from:t.to,to:n.type.isError?e.to:n.from}:null}function vd(e,t,n){let r=Nc(e);if(r.length<n)return null;let o=r.resolveStack(n,1),i=null;for(let a=o;a;a=a.next){let o=a.node;if(o.to<=n||o.from>n)continue;if(i&&o.from<t)break;let s=o.type.prop(gd);if(s&&(o.to<r.length-50||r.length==e.doc.length||!yd(o))){let r=s(o,e);r&&r.from<=n&&r.from>=t&&r.to>n&&(i=r)}}return i}function yd(e){let t=e.lastChild;return t&&t.to==e.to&&t.type.isError}function bd(e,t,n){for(let r of e.facet(fd)){let o=r(e,t,n);if(o)return o}return vd(e,t,n)}function _d(e,t){let n=t.mapPos(e.from,1),r=t.mapPos(e.to,-1);return n>=r?void 0:{from:n,to:r}}const xd=Ct.define({map:_d}),wd=Ct.define({map:_d});function Od(e){let t=[];for(let{head:n}of e.state.selection.ranges)t.some((e=>e.from<=n&&e.to>=n))||t.push(e.lineBlockAt(n));return t}const Sd=at.define({create(){return Rr.none},update(e,t){e=e.map(t.changes);for(let n of t.effects)if(n.is(xd)&&!kd(e,n.value.from,n.value.to)){let{preparePlaceholder:r}=t.state.facet(Rd),o=r?Rr.replace({widget:new Vd(r(t.state,n.value))}):zd;e=e.update({add:[o.range(n.value.from,n.value.to)]})}else n.is(wd)&&(e=e.update({filter:(e,t)=>n.value.from!=e||n.value.to!=t,filterFrom:n.value.from,filterTo:n.value.to}));if(t.selection){let n=!1,{head:r}=t.selection.main;e.between(r,r,((e,t)=>{e<r&&t>r&&(n=!0)})),n&&(e=e.update({filterFrom:r,filterTo:r,filter:(e,t)=>t<=r||e>=r}))}return e},provide:e=>ls.decorations.from(e),toJSON(e,t){let n=[];return e.between(0,t.doc.length,((e,t)=>{n.push(e,t)})),n},fromJSON(e){if(!Array.isArray(e)||e.length%2)throw new RangeError("Invalid JSON for fold state");let t=[];for(let n=0;n<e.length;){let r=e[n++],o=e[n++];if("number"!=typeof r||"number"!=typeof o)throw new RangeError("Invalid JSON for fold state");t.push(zd.range(r,o))}return Rr.set(t,!0)}});function Ad(e,t,n){var r;let o=null;return null===(r=e.field(Sd,!1))||void 0===r||r.between(t,n,((e,t)=>{(!o||o.from>e)&&(o={from:e,to:t})})),o}function kd(e,t,n){let r=!1;return e.between(t,t,((e,o)=>{e==t&&o==n&&(r=!0)})),r}function Cd(e,t){return e.field(Sd,!1)?t:t.concat(Ct.appendConfig.of(Nd()))}const Md=e=>{for(let t of Od(e)){let n=bd(e.state,t.from,t.to);if(n)return e.dispatch({effects:Cd(e.state,[xd.of(n),Pd(e,n)])}),!0}return!1},Td=e=>{if(!e.state.field(Sd,!1))return!1;let t=[];for(let n of Od(e)){let r=Ad(e.state,n.from,n.to);r&&t.push(wd.of(r),Pd(e,r,!1))}return t.length&&e.dispatch({effects:t}),t.length>0};function Pd(e,t,n=!0){let r=e.state.doc.lineAt(t.from).number,o=e.state.doc.lineAt(t.to).number;return ls.announce.of(`${e.state.phrase(n?"Folded lines":"Unfolded lines")} ${r} ${e.state.phrase("to")} ${o}.`)}const Id=e=>{let{state:t}=e,n=[];for(let r=0;r<t.doc.length;){let o=e.lineBlockAt(r),i=bd(t,o.from,o.to);i&&n.push(xd.of(i)),r=(i?e.lineBlockAt(i.to):o).to+1}return n.length&&e.dispatch({effects:Cd(e.state,n)}),!!n.length},$d=e=>{let t=e.state.field(Sd,!1);if(!t||!t.size)return!1;let n=[];return t.between(0,e.state.doc.length,((e,t)=>{n.push(wd.of({from:e,to:t}))})),e.dispatch({effects:n}),!0};const Ed=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:Md},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:Td},{key:"Ctrl-Alt-[",run:Id},{key:"Ctrl-Alt-]",run:$d}],Dd={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},Rd=Je.define({combine(e){return Ft(e,Dd)}});function Nd(e){let t=[Sd,Fd];return e&&t.push(Rd.of(e)),t}function Ld(e,t){let{state:n}=e,r=n.facet(Rd),o=t=>{let n=e.lineBlockAt(e.posAtDOM(t.target)),r=Ad(e.state,n.from,n.to);r&&e.dispatch({effects:wd.of(r)}),t.preventDefault()};if(r.placeholderDOM)return r.placeholderDOM(e,o,t);let i=document.createElement("span");return i.textContent=r.placeholderText,i.setAttribute("aria-label",n.phrase("folded code")),i.title=n.phrase("unfold"),i.className="cm-foldPlaceholder",i.onclick=o,i}const zd=Rr.replace({widget:new class extends Er{toDOM(e){return Ld(e,null)}}});class Vd extends Er{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return Ld(e,this.value)}}const Bd={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class jd extends Xl{constructor(e,t){super(),this.config=e,this.open=t}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let t=document.createElement("span");return t.textContent=this.open?this.config.openText:this.config.closedText,t.title=e.state.phrase(this.open?"Fold line":"Unfold line"),t}}function Qd(e={}){let t=Object.assign(Object.assign({},Bd),e),n=new jd(t,!0),r=new jd(t,!1),o=$o.fromClass(class{constructor(e){this.from=e.viewport.from,this.markers=this.buildMarkers(e)}update(e){(e.docChanged||e.viewportChanged||e.startState.facet(Hc)!=e.state.facet(Hc)||e.startState.field(Sd,!1)!=e.state.field(Sd,!1)||Nc(e.startState)!=Nc(e.state)||t.foldingChanged(e))&&(this.markers=this.buildMarkers(e.view))}buildMarkers(e){let t=new Yt;for(let o of e.viewportLineBlocks){let i=Ad(e.state,o.from,o.to)?r:bd(e.state,o.from,o.to)?n:null;i&&t.add(o.from,o.from,i)}return t.finish()}}),{domEventHandlers:i}=t;return[o,Kl({class:"cm-foldGutter",markers(e){var t;return(null===(t=e.plugin(o))||void 0===t?void 0:t.markers)||Xt.empty},initialSpacer(){return new jd(t,!1)},domEventHandlers:Object.assign(Object.assign({},i),{click:(e,t,n)=>{if(i.click&&i.click(e,t,n))return!0;let r=Ad(e.state,t.from,t.to);if(r)return e.dispatch({effects:wd.of(r)}),!0;let o=bd(e.state,t.from,t.to);return!!o&&(e.dispatch({effects:xd.of(o)}),!0)}})}),Nd()]}const Fd=ls.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class Wd{constructor(e,t){let n;function r(e){let t=fn.newName();return(n||(n=Object.create(null)))["."+t]=e,t}this.specs=e;const o="string"==typeof t.all?t.all:t.all?r(t.all):void 0,i=t.scope;this.scope=i instanceof Ec?e=>e.prop(Pc)==i.data:i?e=>e==i:void 0,this.style=lc(e.map((e=>({tag:e.tag,class:e.class||r(Object.assign({},e,{tag:null}))}))),{all:o}).style,this.module=n?new fn(n):null,this.themeType=t.themeType}static define(e,t){return new Wd(e,t||{})}}const Hd=Je.define(),Zd=Je.define({combine(e){return e.length?[e[0]]:null}});function Gd(e){let t=e.facet(Hd);return t.length?t:e.facet(Zd)}function Xd(e,t){let n,r=[Yd];return e instanceof Wd&&(e.module&&r.push(ls.styleModule.of(e.module)),n=e.themeType),(null===t||void 0===t?void 0:t.fallback)?r.push(Zd.of(e)):n?r.push(Hd.computeN([ls.darkTheme],(t=>t.facet(ls.darkTheme)==("dark"==n)?[e]:[]))):r.push(Hd.of(e)),r}class Ud{constructor(e){this.markCache=Object.create(null),this.tree=Nc(e.state),this.decorations=this.buildDeco(e,Gd(e.state)),this.decoratedTo=e.viewport.to}update(e){let t=Nc(e.state),n=Gd(e.state),r=n!=Gd(e.startState),{viewport:o}=e.view,i=e.changes.mapPos(this.decoratedTo,1);t.length<o.to&&!r&&t.type==this.tree.type&&i>=o.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=i):(t!=this.tree||e.viewportChanged||r)&&(this.tree=t,this.decorations=this.buildDeco(e.view,n),this.decoratedTo=o.to)}buildDeco(e,t){if(!t||!this.tree.length)return Rr.none;let n=new Yt;for(let{from:r,to:o}of e.visibleRanges)cc(this.tree,t,((e,t,r)=>{n.add(e,t,this.markCache[r]||(this.markCache[r]=Rr.mark({class:r})))}),r,o);return n.finish()}}const Yd=ut.high($o.fromClass(Ud,{decorations:e=>e.decorations})),qd=Wd.define([{tag:Mc.meta,color:"#404740"},{tag:Mc.link,textDecoration:"underline"},{tag:Mc.heading,textDecoration:"underline",fontWeight:"bold"},{tag:Mc.emphasis,fontStyle:"italic"},{tag:Mc.strong,fontWeight:"bold"},{tag:Mc.strikethrough,textDecoration:"line-through"},{tag:Mc.keyword,color:"#708"},{tag:[Mc.atom,Mc.bool,Mc.url,Mc.contentSeparator,Mc.labelName],color:"#219"},{tag:[Mc.literal,Mc.inserted],color:"#164"},{tag:[Mc.string,Mc.deleted],color:"#a11"},{tag:[Mc.regexp,Mc.escape,Mc.special(Mc.string)],color:"#e40"},{tag:Mc.definition(Mc.variableName),color:"#00f"},{tag:Mc.local(Mc.variableName),color:"#30a"},{tag:[Mc.typeName,Mc.namespace],color:"#085"},{tag:Mc.className,color:"#167"},{tag:[Mc.special(Mc.variableName),Mc.macroName],color:"#256"},{tag:Mc.definition(Mc.propertyName),color:"#00c"},{tag:Mc.comment,color:"#940"},{tag:Mc.invalid,color:"#f00"}]),Kd=ls.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),Jd=1e4,eh="()[]{}",th=Je.define({combine(e){return Ft(e,{afterCursor:!0,brackets:eh,maxScanDistance:Jd,renderMatch:oh})}}),nh=Rr.mark({class:"cm-matchingBracket"}),rh=Rr.mark({class:"cm-nonmatchingBracket"});function oh(e){let t=[],n=e.matched?nh:rh;return t.push(n.range(e.start.from,e.start.to)),e.end&&t.push(n.range(e.end.from,e.end.to)),t}const ih=at.define({create(){return Rr.none},update(e,t){if(!t.docChanged&&!t.selection)return e;let n=[],r=t.state.facet(th);for(let o of t.state.selection.ranges){if(!o.empty)continue;let e=dh(t.state,o.head,-1,r)||o.head>0&&dh(t.state,o.head-1,1,r)||r.afterCursor&&(dh(t.state,o.head,1,r)||o.head<t.state.doc.length&&dh(t.state,o.head+1,-1,r));e&&(n=n.concat(r.renderMatch(e,t.state)))}return Rr.set(n,!0)},provide:e=>ls.decorations.from(e)}),ah=[ih,Kd];function sh(e={}){return[th.of(e),ah]}const lh=new xu;function uh(e,t,n){let r=e.prop(t<0?xu.openedBy:xu.closedBy);if(r)return r;if(1==e.name.length){let r=n.indexOf(e.name);if(r>-1&&r%2==(t<0?1:0))return[n[r+t]]}return null}function ch(e){let t=e.type.prop(lh);return t?t(e.node):e}function dh(e,t,n,r={}){let o=r.maxScanDistance||Jd,i=r.brackets||eh,a=Nc(e),s=a.resolveInner(t,n);for(let l=s;l;l=l.parent){let r=uh(l.type,n,i);if(r&&l.from<l.to){let o=ch(l);if(o&&(n>0?t>=o.from&&t<o.to:t>o.from&&t<=o.to))return hh(e,t,n,l,o,r,i)}}return ph(e,t,n,a,s.type,o,i)}function hh(e,t,n,r,o,i,a){let s=r.parent,l={from:o.from,to:o.to},u=0,c=null===s||void 0===s?void 0:s.cursor();if(c&&(n<0?c.childBefore(r.from):c.childAfter(r.to)))do{if(n<0?c.to<=r.from:c.from>=r.to){if(0==u&&i.indexOf(c.type.name)>-1&&c.from<c.to){let e=ch(c);return{start:l,end:e?{from:e.from,to:e.to}:void 0,matched:!0}}if(uh(c.type,n,a))u++;else if(uh(c.type,-n,a)){if(0==u){let e=ch(c);return{start:l,end:e&&e.from<e.to?{from:e.from,to:e.to}:void 0,matched:!1}}u--}}}while(n<0?c.prevSibling():c.nextSibling());return{start:l,matched:!1}}function ph(e,t,n,r,o,i,a){let s=n<0?e.sliceDoc(t-1,t):e.sliceDoc(t,t+1),l=a.indexOf(s);if(l<0||l%2==0!=n>0)return null;let u={from:n<0?t-1:t,to:n>0?t+1:t},c=e.doc.iterRange(t,n>0?e.doc.length:0),d=0;for(let h=0;!c.next().done&&h<=i;){let e=c.value;n<0&&(h+=e.length);let i=t+h*n;for(let t=n>0?0:e.length-1,s=n>0?e.length:-1;t!=s;t+=n){let s=a.indexOf(e[t]);if(!(s<0||r.resolveInner(i+t,1).type!=o))if(s%2==0==n>0)d++;else{if(1==d)return{start:u,end:{from:i+t,to:i+t+1},matched:s>>1==l>>1};d--}}n>0&&(h+=e.length)}return c.done?{start:u,matched:!1}:null}const fh=Object.create(null),gh=[Su.none],mh=[],vh=Object.create(null),yh=Object.create(null);for(let[U_,Y_]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])yh[U_]=_h(fh,Y_);function bh(e,t){mh.indexOf(e)>-1||(mh.push(e),console.warn(t))}function _h(e,t){let n=[];for(let s of t.split(" ")){let t=[];for(let n of s.split(".")){let r=e[n]||Mc[n];r?"function"==typeof r?t.length?t=t.map(r):bh(n,`Modifier ${n} used at start of tag`):t.length?bh(n,`Tag ${n} used as modifier`):t=Array.isArray(r)?r:[r]:bh(n,`Unknown highlighting tag ${n}`)}for(let e of t)n.push(e)}if(!n.length)return 0;let r=t.replace(/ /g,"_"),o=r+" "+n.map((e=>e.id)),i=vh[o];if(i)return i.id;let a=vh[o]=Su.define({id:gh.length,name:r,props:[ic({[r]:n})]});return gh.push(a),a.id}Hr.RTL,Hr.LTR;const xh=e=>{let{state:t}=e,n=t.doc.lineAt(t.selection.main.from),r=kh(e.state,n.from);return r.line?Oh(e):!!r.block&&Ah(e)};function wh(e,t){return({state:n,dispatch:r})=>{if(n.readOnly)return!1;let o=e(t,n);return!!o&&(r(n.update(o)),!0)}}const Oh=wh(Ih,0),Sh=wh(Ph,0),Ah=wh(((e,t)=>Ph(e,t,Th(t))),0);function kh(e,t){let n=e.languageDataAt("commentTokens",t);return n.length?n[0]:{}}const Ch=50;function Mh(e,{open:t,close:n},r,o){let i,a,s=e.sliceDoc(r-Ch,r),l=e.sliceDoc(o,o+Ch),u=/\s*$/.exec(s)[0].length,c=/^\s*/.exec(l)[0].length,d=s.length-u;if(s.slice(d-t.length,d)==t&&l.slice(c,c+n.length)==n)return{open:{pos:r-u,margin:u&&1},close:{pos:o+c,margin:c&&1}};o-r<=2*Ch?i=a=e.sliceDoc(r,o):(i=e.sliceDoc(r,r+Ch),a=e.sliceDoc(o-Ch,o));let h=/^\s*/.exec(i)[0].length,p=/\s*$/.exec(a)[0].length,f=a.length-p-n.length;return i.slice(h,h+t.length)==t&&a.slice(f,f+n.length)==n?{open:{pos:r+h+t.length,margin:/\s/.test(i.charAt(h+t.length))?1:0},close:{pos:o-p-n.length,margin:/\s/.test(a.charAt(f-1))?1:0}}:null}function Th(e){let t=[];for(let n of e.selection.ranges){let r=e.doc.lineAt(n.from),o=n.to<=r.to?r:e.doc.lineAt(n.to),i=t.length-1;i>=0&&t[i].to>r.from?t[i].to=o.to:t.push({from:r.from+/^\s*/.exec(r.text)[0].length,to:o.to})}return t}function Ph(e,t,n=t.selection.ranges){let r=n.map((e=>kh(t,e.from).block));if(!r.every((e=>e)))return null;let o=n.map(((e,n)=>Mh(t,r[n],e.from,e.to)));if(2!=e&&!o.every((e=>e)))return{changes:t.changes(n.map(((e,t)=>o[t]?[]:[{from:e.from,insert:r[t].open+" "},{from:e.to,insert:" "+r[t].close}])))};if(1!=e&&o.some((e=>e))){let e=[];for(let t,n=0;n<o.length;n++)if(t=o[n]){let o=r[n],{open:i,close:a}=t;e.push({from:i.pos-o.open.length,to:i.pos+i.margin},{from:a.pos-a.margin,to:a.pos+o.close.length})}return{changes:e}}return null}function Ih(e,t,n=t.selection.ranges){let r=[],o=-1;for(let{from:i,to:a}of n){let e=r.length,n=1e9,s=kh(t,i).line;if(s){for(let e=i;e<=a;){let l=t.doc.lineAt(e);if(l.from>o&&(i==a||a>l.from)){o=l.from;let e=/^\s*/.exec(l.text)[0].length,t=e==l.length,i=l.text.slice(e,e+s.length)==s?e:-1;e<l.text.length&&e<n&&(n=e),r.push({line:l,comment:i,token:s,indent:e,empty:t,single:!1})}e=l.to+1}if(n<1e9)for(let t=e;t<r.length;t++)r[t].indent<r[t].line.text.length&&(r[t].indent=n);r.length==e+1&&(r[e].single=!0)}}if(2!=e&&r.some((e=>e.comment<0&&(!e.empty||e.single)))){let e=[];for(let{line:t,token:o,indent:i,empty:a,single:s}of r)!s&&a||e.push({from:t.from+i,insert:o+" "});let n=t.changes(e);return{changes:n,selection:t.selection.map(n,1)}}if(1!=e&&r.some((e=>e.comment>=0))){let e=[];for(let{line:t,comment:n,token:o}of r)if(n>=0){let r=t.from+n,i=r+o.length;" "==t.text[i-t.from]&&i++,e.push({from:r,to:i})}return{changes:e}}return null}const $h=St.define(),Eh=St.define(),Dh=Je.define(),Rh=Je.define({combine(e){return Ft(e,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(n,r)=>e(n,r)||t(n,r)})}}),Nh=at.define({create(){return tp.empty},update(e,t){let n=t.state.facet(Rh),r=t.annotation($h);if(r){let o=Fh.fromTransaction(t,r.selection),i=r.side,a=0==i?e.undone:e.done;return a=o?Wh(a,a.length,n.minDepth,o):Yh(a,t.startState.selection),new tp(0==i?r.rest:a,0==i?a:r.rest)}let o=t.annotation(Eh);if("full"!=o&&"before"!=o||(e=e.isolate()),!1===t.annotation(Mt.addToHistory))return t.changes.empty?e:e.addMapping(t.changes.desc);let i=Fh.fromTransaction(t),a=t.annotation(Mt.time),s=t.annotation(Mt.userEvent);return i?e=e.addChanges(i,a,s,n,t):t.selection&&(e=e.addSelection(t.startState.selection,a,s,n.newGroupDelay)),"full"!=o&&"after"!=o||(e=e.isolate()),e},toJSON(e){return{done:e.done.map((e=>e.toJSON())),undone:e.undone.map((e=>e.toJSON()))}},fromJSON(e){return new tp(e.done.map(Fh.fromJSON),e.undone.map(Fh.fromJSON))}});function Lh(e={}){return[Nh,Rh.of(e),ls.domEventHandlers({beforeinput(e,t){let n="historyUndo"==e.inputType?Vh:"historyRedo"==e.inputType?Bh:null;return!!n&&(e.preventDefault(),n(t))}})]}function zh(e,t){return function({state:n,dispatch:r}){if(!t&&n.readOnly)return!1;let o=n.field(Nh,!1);if(!o)return!1;let i=o.pop(e,n,t);return!!i&&(r(i),!0)}}const Vh=zh(0,!1),Bh=zh(1,!1),jh=zh(0,!0),Qh=zh(1,!0);class Fh{constructor(e,t,n,r,o){this.changes=e,this.effects=t,this.mapped=n,this.startSelection=r,this.selectionsAfter=o}setSelAfter(e){return new Fh(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,n;return{changes:null===(e=this.changes)||void 0===e?void 0:e.toJSON(),mapped:null===(t=this.mapped)||void 0===t?void 0:t.toJSON(),startSelection:null===(n=this.startSelection)||void 0===n?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map((e=>e.toJSON()))}}static fromJSON(e){return new Fh(e.changes&&Qe.fromJSON(e.changes),[],e.mapped&&je.fromJSON(e.mapped),e.startSelection&&Ye.fromJSON(e.startSelection),e.selectionsAfter.map(Ye.fromJSON))}static fromTransaction(e,t){let n=Xh;for(let r of e.startState.facet(Dh)){let t=r(e);t.length&&(n=n.concat(t))}return!n.length&&e.changes.empty?null:new Fh(e.changes.invert(e.startState.doc),n,void 0,t||e.startState.selection,Xh)}static selection(e){return new Fh(void 0,Xh,void 0,void 0,e)}}function Wh(e,t,n,r){let o=t+1>n+20?t-n-1:0,i=e.slice(o,t);return i.push(r),i}function Hh(e,t){let n=[],r=!1;return e.iterChangedRanges(((e,t)=>n.push(e,t))),t.iterChangedRanges(((e,t,o,i)=>{for(let a=0;a<n.length;){let e=n[a++],t=n[a++];i>=e&&o<=t&&(r=!0)}})),r}function Zh(e,t){return e.ranges.length==t.ranges.length&&0===e.ranges.filter(((e,n)=>e.empty!=t.ranges[n].empty)).length}function Gh(e,t){return e.length?t.length?e.concat(t):e:t}const Xh=[],Uh=200;function Yh(e,t){if(e.length){let n=e[e.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-Uh));return r.length&&r[r.length-1].eq(t)?e:(r.push(t),Wh(e,e.length-1,1e9,n.setSelAfter(r)))}return[Fh.selection([t])]}function qh(e){let t=e[e.length-1],n=e.slice();return n[e.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1)),n}function Kh(e,t){if(!e.length)return e;let n=e.length,r=Xh;while(n){let o=Jh(e[n-1],t,r);if(o.changes&&!o.changes.empty||o.effects.length){let t=e.slice(0,n);return t[n-1]=o,t}t=o.mapped,n--,r=o.selectionsAfter}return r.length?[Fh.selection(r)]:Xh}function Jh(e,t,n){let r=Gh(e.selectionsAfter.length?e.selectionsAfter.map((e=>e.map(t))):Xh,n);if(!e.changes)return Fh.selection(r);let o=e.changes.map(t),i=t.mapDesc(e.changes,!0),a=e.mapped?e.mapped.composeDesc(i):i;return new Fh(o,Ct.mapEffects(e.effects,t),a,e.startSelection.map(i),r)}const ep=/^(input\.type|delete)($|\.)/;class tp{constructor(e,t,n=0,r=void 0){this.done=e,this.undone=t,this.prevTime=n,this.prevUserEvent=r}isolate(){return this.prevTime?new tp(this.done,this.undone):this}addChanges(e,t,n,r,o){let i=this.done,a=i[i.length-1];return i=a&&a.changes&&!a.changes.empty&&e.changes&&(!n||ep.test(n))&&(!a.selectionsAfter.length&&t-this.prevTime<r.newGroupDelay&&r.joinToEvent(o,Hh(a.changes,e.changes))||"input.type.compose"==n)?Wh(i,i.length-1,r.minDepth,new Fh(e.changes.compose(a.changes),Gh(e.effects,a.effects),a.mapped,a.startSelection,Xh)):Wh(i,i.length,r.minDepth,e),new tp(i,Xh,t,n)}addSelection(e,t,n,r){let o=this.done.length?this.done[this.done.length-1].selectionsAfter:Xh;return o.length>0&&t-this.prevTime<r&&n==this.prevUserEvent&&n&&/^select($|\.)/.test(n)&&Zh(o[o.length-1],e)?this:new tp(Yh(this.done,e),this.undone,t,n)}addMapping(e){return new tp(Kh(this.done,e),Kh(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,t,n){let r=0==e?this.done:this.undone;if(0==r.length)return null;let o=r[r.length-1],i=o.selectionsAfter[0]||t.selection;if(n&&o.selectionsAfter.length)return t.update({selection:o.selectionsAfter[o.selectionsAfter.length-1],annotations:$h.of({side:e,rest:qh(r),selection:i}),userEvent:0==e?"select.undo":"select.redo",scrollIntoView:!0});if(o.changes){let n=1==r.length?Xh:r.slice(0,r.length-1);return o.mapped&&(n=Kh(n,o.mapped)),t.update({changes:o.changes,selection:o.startSelection,effects:o.effects,annotations:$h.of({side:e,rest:n,selection:i}),filter:!1,userEvent:0==e?"undo":"redo",scrollIntoView:!0})}return null}}tp.empty=new tp(Xh,Xh);const np=[{key:"Mod-z",run:Vh,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:Bh,preventDefault:!0},{linux:"Ctrl-Shift-z",run:Bh,preventDefault:!0},{key:"Mod-u",run:jh,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:Qh,preventDefault:!0}];function rp(e,t){return Ye.create(e.ranges.map(t),e.mainIndex)}function op(e,t){return e.update({selection:t,scrollIntoView:!0,userEvent:"select"})}function ip({state:e,dispatch:t},n){let r=rp(e.selection,n);return!r.eq(e.selection,!0)&&(t(op(e,r)),!0)}function ap(e,t){return Ye.cursor(t?e.to:e.from)}function sp(e,t){return ip(e,(n=>n.empty?e.moveByChar(n,t):ap(n,t)))}function lp(e){return e.textDirectionAt(e.state.selection.main.head)==Hr.LTR}const up=e=>sp(e,!lp(e)),cp=e=>sp(e,lp(e));function dp(e,t){return ip(e,(n=>n.empty?e.moveByGroup(n,t):ap(n,t)))}const hp=e=>dp(e,!lp(e)),pp=e=>dp(e,lp(e));"undefined"!=typeof Intl&&Intl.Segmenter;function fp(e,t,n){if(t.type.prop(n))return!0;let r=t.to-t.from;return r&&(r>2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild}function gp(e,t,n){let r=Nc(e).resolveInner(t.head),o=n?xu.closedBy:xu.openedBy;for(let l=t.head;;){let t=n?r.childAfter(l):r.childBefore(l);if(!t)break;fp(e,t,o)?r=t:l=n?t.to:t.from}let i,a,s=r.type.prop(o);return a=s&&(i=n?dh(e,r.from,1):dh(e,r.to,-1))&&i.matched?n?i.end.to:i.end.from:n?r.to:r.from,Ye.cursor(a,n?-1:1)}const mp=e=>ip(e,(t=>gp(e.state,t,!lp(e)))),vp=e=>ip(e,(t=>gp(e.state,t,lp(e))));function yp(e,t){return ip(e,(n=>{if(!n.empty)return ap(n,t);let r=e.moveVertically(n,t);return r.head!=n.head?r:e.moveToLineBoundary(n,t)}))}const bp=e=>yp(e,!1),_p=e=>yp(e,!0);function xp(e){let t,n=e.scrollDOM.clientHeight<e.scrollDOM.scrollHeight-2,r=0,o=0;if(n){for(let t of e.state.facet(ls.scrollMargins)){let n=t(e);(null===n||void 0===n?void 0:n.top)&&(r=Math.max(null===n||void 0===n?void 0:n.top,r)),(null===n||void 0===n?void 0:n.bottom)&&(o=Math.max(null===n||void 0===n?void 0:n.bottom,o))}t=e.scrollDOM.clientHeight-r-o}else t=(e.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:r,marginBottom:o,selfScroll:n,height:Math.max(e.defaultLineHeight,t-5)}}function wp(e,t){let n,r=xp(e),{state:o}=e,i=rp(o.selection,(n=>n.empty?e.moveVertically(n,t,r.height):ap(n,t)));if(i.eq(o.selection))return!1;if(r.selfScroll){let t=e.coordsAtPos(o.selection.main.head),a=e.scrollDOM.getBoundingClientRect(),s=a.top+r.marginTop,l=a.bottom-r.marginBottom;t&&t.top>s&&t.bottom<l&&(n=ls.scrollIntoView(i.main.head,{y:"start",yMargin:t.top-s}))}return e.dispatch(op(o,i),{effects:n}),!0}const Op=e=>wp(e,!1),Sp=e=>wp(e,!0);function Ap(e,t,n){let r=e.lineBlockAt(t.head),o=e.moveToLineBoundary(t,n);if(o.head==t.head&&o.head!=(n?r.to:r.from)&&(o=e.moveToLineBoundary(t,n,!1)),!n&&o.head==r.from&&r.length){let n=/^\s*/.exec(e.state.sliceDoc(r.from,Math.min(r.from+100,r.to)))[0].length;n&&t.head!=r.from+n&&(o=Ye.cursor(r.from+n))}return o}const kp=e=>ip(e,(t=>Ap(e,t,!0))),Cp=e=>ip(e,(t=>Ap(e,t,!1))),Mp=e=>ip(e,(t=>Ap(e,t,!lp(e)))),Tp=e=>ip(e,(t=>Ap(e,t,lp(e)))),Pp=e=>ip(e,(t=>Ye.cursor(e.lineBlockAt(t.head).from,1))),Ip=e=>ip(e,(t=>Ye.cursor(e.lineBlockAt(t.head).to,-1)));function $p(e,t,n){let r=!1,o=rp(e.selection,(t=>{let o=dh(e,t.head,-1)||dh(e,t.head,1)||t.head>0&&dh(e,t.head-1,1)||t.head<e.doc.length&&dh(e,t.head+1,-1);if(!o||!o.end)return t;r=!0;let i=o.start.from==t.head?o.end.to:o.end.from;return n?Ye.range(t.anchor,i):Ye.cursor(i)}));return!!r&&(t(op(e,o)),!0)}const Ep=({state:e,dispatch:t})=>$p(e,t,!1);function Dp(e,t){let n=rp(e.state.selection,(e=>{let n=t(e);return Ye.range(e.anchor,n.head,n.goalColumn,n.bidiLevel||void 0)}));return!n.eq(e.state.selection)&&(e.dispatch(op(e.state,n)),!0)}function Rp(e,t){return Dp(e,(n=>e.moveByChar(n,t)))}const Np=e=>Rp(e,!lp(e)),Lp=e=>Rp(e,lp(e));function zp(e,t){return Dp(e,(n=>e.moveByGroup(n,t)))}const Vp=e=>zp(e,!lp(e)),Bp=e=>zp(e,lp(e));const jp=e=>Dp(e,(t=>gp(e.state,t,!lp(e)))),Qp=e=>Dp(e,(t=>gp(e.state,t,lp(e))));function Fp(e,t){return Dp(e,(n=>e.moveVertically(n,t)))}const Wp=e=>Fp(e,!1),Hp=e=>Fp(e,!0);function Zp(e,t){return Dp(e,(n=>e.moveVertically(n,t,xp(e).height)))}const Gp=e=>Zp(e,!1),Xp=e=>Zp(e,!0),Up=e=>Dp(e,(t=>Ap(e,t,!0))),Yp=e=>Dp(e,(t=>Ap(e,t,!1))),qp=e=>Dp(e,(t=>Ap(e,t,!lp(e)))),Kp=e=>Dp(e,(t=>Ap(e,t,lp(e)))),Jp=e=>Dp(e,(t=>Ye.cursor(e.lineBlockAt(t.head).from))),ef=e=>Dp(e,(t=>Ye.cursor(e.lineBlockAt(t.head).to))),tf=({state:e,dispatch:t})=>(t(op(e,{anchor:0})),!0),nf=({state:e,dispatch:t})=>(t(op(e,{anchor:e.doc.length})),!0),rf=({state:e,dispatch:t})=>(t(op(e,{anchor:e.selection.main.anchor,head:0})),!0),of=({state:e,dispatch:t})=>(t(op(e,{anchor:e.selection.main.anchor,head:e.doc.length})),!0),af=({state:e,dispatch:t})=>(t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:"select"})),!0),sf=({state:e,dispatch:t})=>{let n=Of(e).map((({from:t,to:n})=>Ye.range(t,Math.min(n+1,e.doc.length))));return t(e.update({selection:Ye.create(n),userEvent:"select"})),!0},lf=({state:e,dispatch:t})=>{let n=rp(e.selection,(t=>{var n;let r=Nc(e).resolveStack(t.from,1);for(let e=r;e;e=e.next){let{node:r}=e;if((r.from<t.from&&r.to>=t.to||r.to>t.to&&r.from<=t.from)&&(null===(n=r.parent)||void 0===n?void 0:n.parent))return Ye.range(r.to,r.from)}return t}));return t(op(e,n)),!0},uf=({state:e,dispatch:t})=>{let n=e.selection,r=null;return n.ranges.length>1?r=Ye.create([n.main]):n.main.empty||(r=Ye.create([Ye.cursor(n.main.head)])),!!r&&(t(op(e,r)),!0)};function cf(e,t){if(e.state.readOnly)return!1;let n="delete.selection",{state:r}=e,o=r.changeByRange((r=>{let{from:o,to:i}=r;if(o==i){let a=t(r);a<o?(n="delete.backward",a=df(e,a,!1)):a>o&&(n="delete.forward",a=df(e,a,!0)),o=Math.min(o,a),i=Math.max(i,a)}else o=df(e,o,!1),i=df(e,i,!0);return o==i?{range:r}:{changes:{from:o,to:i},range:Ye.cursor(o,o<r.head?-1:1)}}));return!o.changes.empty&&(e.dispatch(r.update(o,{scrollIntoView:!0,userEvent:n,effects:"delete.selection"==n?ls.announce.of(r.phrase("Selection deleted")):void 0})),!0)}function df(e,t,n){if(e instanceof ls)for(let r of e.state.facet(ls.atomicRanges).map((t=>t(e))))r.between(t,t,((e,r)=>{e<t&&r>t&&(t=n?r:e)}));return t}const hf=(e,t,n)=>cf(e,(r=>{let o,i,a=r.from,{state:s}=e,l=s.doc.lineAt(a);if(n&&!t&&a>l.from&&a<l.from+200&&!/[^ \t]/.test(o=l.text.slice(0,a-l.from))){if("\t"==o[o.length-1])return a-1;let e=ln(o,s.tabSize),t=e%Uc(s)||Uc(s);for(let n=0;n<t&&" "==o[o.length-1-n];n++)a--;i=a}else i=Ie(l.text,a-l.from,t,t)+l.from,i==a&&l.number!=(t?s.doc.lines:1)?i+=t?1:-1:!t&&/[\ufe00-\ufe0f]/.test(l.text.slice(i-l.from,a-l.from))&&(i=Ie(l.text,i-l.from,!1,!1)+l.from);return i})),pf=e=>hf(e,!1,!0),ff=e=>hf(e,!0,!1),gf=(e,t)=>cf(e,(n=>{let r=n.head,{state:o}=e,i=o.doc.lineAt(r),a=o.charCategorizer(r);for(let e=null;;){if(r==(t?i.to:i.from)){r==n.head&&i.number!=(t?o.doc.lines:1)&&(r+=t?1:-1);break}let s=Ie(i.text,r-i.from,t)+i.from,l=i.text.slice(Math.min(r,s)-i.from,Math.max(r,s)-i.from),u=a(l);if(null!=e&&u!=e)break;" "==l&&r==n.head||(e=u),r=s}return r})),mf=e=>gf(e,!1),vf=e=>gf(e,!0),yf=e=>cf(e,(t=>{let n=e.lineBlockAt(t.head).to;return t.head<n?n:Math.min(e.state.doc.length,t.head+1)})),bf=e=>cf(e,(t=>{let n=e.moveToLineBoundary(t,!1).head;return t.head>n?n:Math.max(0,t.head-1)})),_f=e=>cf(e,(t=>{let n=e.moveToLineBoundary(t,!0).head;return t.head<n?n:Math.min(e.state.doc.length,t.head+1)})),xf=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange((e=>({changes:{from:e.from,to:e.to,insert:me.of(["",""])},range:Ye.cursor(e.from)})));return t(e.update(n,{scrollIntoView:!0,userEvent:"input"})),!0},wf=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange((t=>{if(!t.empty||0==t.from||t.from==e.doc.length)return{range:t};let n=t.from,r=e.doc.lineAt(n),o=n==r.from?n-1:Ie(r.text,n-r.from,!1)+r.from,i=n==r.to?n+1:Ie(r.text,n-r.from,!0)+r.from;return{changes:{from:o,to:i,insert:e.doc.slice(n,i).append(e.doc.slice(o,n))},range:Ye.cursor(i)}}));return!n.changes.empty&&(t(e.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function Of(e){let t=[],n=-1;for(let r of e.selection.ranges){let o=e.doc.lineAt(r.from),i=e.doc.lineAt(r.to);if(r.empty||r.to!=i.from||(i=e.doc.lineAt(r.to-1)),n>=o.number){let e=t[t.length-1];e.to=i.to,e.ranges.push(r)}else t.push({from:o.from,to:i.to,ranges:[r]});n=i.number+1}return t}function Sf(e,t,n){if(e.readOnly)return!1;let r=[],o=[];for(let i of Of(e)){if(n?i.to==e.doc.length:0==i.from)continue;let t=e.doc.lineAt(n?i.to+1:i.from-1),a=t.length+1;if(n){r.push({from:i.to,to:t.to},{from:i.from,insert:t.text+e.lineBreak});for(let t of i.ranges)o.push(Ye.range(Math.min(e.doc.length,t.anchor+a),Math.min(e.doc.length,t.head+a)))}else{r.push({from:t.from,to:i.from},{from:i.to,insert:e.lineBreak+t.text});for(let e of i.ranges)o.push(Ye.range(e.anchor-a,e.head-a))}}return!!r.length&&(t(e.update({changes:r,scrollIntoView:!0,selection:Ye.create(o,e.selection.mainIndex),userEvent:"move.line"})),!0)}const Af=({state:e,dispatch:t})=>Sf(e,t,!1),kf=({state:e,dispatch:t})=>Sf(e,t,!0);function Cf(e,t,n){if(e.readOnly)return!1;let r=[];for(let o of Of(e))n?r.push({from:o.from,insert:e.doc.slice(o.from,o.to)+e.lineBreak}):r.push({from:o.to,insert:e.lineBreak+e.doc.slice(o.from,o.to)});return t(e.update({changes:r,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const Mf=({state:e,dispatch:t})=>Cf(e,t,!1),Tf=({state:e,dispatch:t})=>Cf(e,t,!0),Pf=e=>{if(e.state.readOnly)return!1;let{state:t}=e,n=t.changes(Of(t).map((({from:e,to:n})=>(e>0?e--:n<t.doc.length&&n++,{from:e,to:n})))),r=rp(t.selection,(t=>{let n;if(e.lineWrapping){let r=e.lineBlockAt(t.head),o=e.coordsAtPos(t.head,t.assoc||1);o&&(n=r.bottom+e.documentTop-o.bottom+e.defaultLineHeight/2)}return e.moveVertically(t,!0,n)})).map(n);return e.dispatch({changes:n,selection:r,scrollIntoView:!0,userEvent:"delete.line"}),!0};function If(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let n,r=Nc(e).resolveInner(t),o=r.childBefore(t),i=r.childAfter(t);return o&&i&&o.to<=t&&i.from>=t&&(n=o.type.prop(xu.closedBy))&&n.indexOf(i.name)>-1&&e.doc.lineAt(o.to).from==e.doc.lineAt(i.from).from&&!/\S/.test(e.sliceDoc(o.to,i.from))?{from:o.to,to:i.from}:null}const $f=Df(!1),Ef=Df(!0);function Df(e){return({state:t,dispatch:n})=>{if(t.readOnly)return!1;let r=t.changeByRange((n=>{let{from:r,to:o}=n,i=t.doc.lineAt(r),a=!e&&r==o&&If(t,r);e&&(r=o=(o<=i.to?i:t.doc.lineAt(o)).to);let s=new Kc(t,{simulateBreak:r,simulateDoubleBreak:!!a}),l=qc(s,r);null==l&&(l=ln(/^\s*/.exec(t.doc.lineAt(r).text)[0],t.tabSize));while(o<i.to&&/\s/.test(i.text[o-i.from]))o++;a?({from:r,to:o}=a):r>i.from&&r<i.from+100&&!/\S/.test(i.text.slice(0,r))&&(r=i.from);let u=["",Yc(t,l)];return a&&u.push(Yc(t,s.lineIndent(i.from,-1))),{changes:{from:r,to:o,insert:me.of(u)},range:Ye.cursor(r+1+u[1].length)}}));return n(t.update(r,{scrollIntoView:!0,userEvent:"input"})),!0}}function Rf(e,t){let n=-1;return e.changeByRange((r=>{let o=[];for(let a=r.from;a<=r.to;){let i=e.doc.lineAt(a);i.number>n&&(r.empty||r.to>i.from)&&(t(i,o,r),n=i.number),a=i.to+1}let i=e.changes(o);return{changes:o,range:Ye.range(i.mapPos(r.anchor,1),i.mapPos(r.head,1))}}))}const Nf=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=Object.create(null),r=new Kc(e,{overrideIndentation:e=>{let t=n[e];return null==t?-1:t}}),o=Rf(e,((t,o,i)=>{let a=qc(r,t.from);if(null==a)return;/\S/.test(t.text)||(a=0);let s=/^\s*/.exec(t.text)[0],l=Yc(e,a);(s!=l||i.from<t.from+s.length)&&(n[t.from]=a,o.push({from:t.from,to:t.from+s.length,insert:l}))}));return o.changes.empty||t(e.update(o,{userEvent:"indent"})),!0},Lf=({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(Rf(e,((t,n)=>{n.push({from:t.from,insert:e.facet(Xc)})})),{userEvent:"input.indent"})),!0),zf=({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(Rf(e,((t,n)=>{let r=/^\s*/.exec(t.text)[0];if(!r)return;let o=ln(r,e.tabSize),i=0,a=Yc(e,Math.max(0,o-Uc(e)));while(i<r.length&&i<a.length&&r.charCodeAt(i)==a.charCodeAt(i))i++;n.push({from:t.from+i,to:t.from+r.length,insert:a.slice(i)})})),{userEvent:"delete.dedent"})),!0),Vf=e=>(e.setTabFocusMode(),!0),Bf=[{key:"Ctrl-b",run:up,shift:Np,preventDefault:!0},{key:"Ctrl-f",run:cp,shift:Lp},{key:"Ctrl-p",run:bp,shift:Wp},{key:"Ctrl-n",run:_p,shift:Hp},{key:"Ctrl-a",run:Pp,shift:Jp},{key:"Ctrl-e",run:Ip,shift:ef},{key:"Ctrl-d",run:ff},{key:"Ctrl-h",run:pf},{key:"Ctrl-k",run:yf},{key:"Ctrl-Alt-h",run:mf},{key:"Ctrl-o",run:xf},{key:"Ctrl-t",run:wf},{key:"Ctrl-v",run:Sp}],jf=[{key:"ArrowLeft",run:up,shift:Np,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:hp,shift:Vp,preventDefault:!0},{mac:"Cmd-ArrowLeft",run:Mp,shift:qp,preventDefault:!0},{key:"ArrowRight",run:cp,shift:Lp,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:pp,shift:Bp,preventDefault:!0},{mac:"Cmd-ArrowRight",run:Tp,shift:Kp,preventDefault:!0},{key:"ArrowUp",run:bp,shift:Wp,preventDefault:!0},{mac:"Cmd-ArrowUp",run:tf,shift:rf},{mac:"Ctrl-ArrowUp",run:Op,shift:Gp},{key:"ArrowDown",run:_p,shift:Hp,preventDefault:!0},{mac:"Cmd-ArrowDown",run:nf,shift:of},{mac:"Ctrl-ArrowDown",run:Sp,shift:Xp},{key:"PageUp",run:Op,shift:Gp},{key:"PageDown",run:Sp,shift:Xp},{key:"Home",run:Cp,shift:Yp,preventDefault:!0},{key:"Mod-Home",run:tf,shift:rf},{key:"End",run:kp,shift:Up,preventDefault:!0},{key:"Mod-End",run:nf,shift:of},{key:"Enter",run:$f},{key:"Mod-a",run:af},{key:"Backspace",run:pf,shift:pf},{key:"Delete",run:ff},{key:"Mod-Backspace",mac:"Alt-Backspace",run:mf},{key:"Mod-Delete",mac:"Alt-Delete",run:vf},{mac:"Mod-Backspace",run:bf},{mac:"Mod-Delete",run:_f}].concat(Bf.map((e=>({mac:e.key,run:e.run,shift:e.shift})))),Qf=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:mp,shift:jp},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:vp,shift:Qp},{key:"Alt-ArrowUp",run:Af},{key:"Shift-Alt-ArrowUp",run:Mf},{key:"Alt-ArrowDown",run:kf},{key:"Shift-Alt-ArrowDown",run:Tf},{key:"Escape",run:uf},{key:"Mod-Enter",run:Ef},{key:"Alt-l",mac:"Ctrl-l",run:sf},{key:"Mod-i",run:lf,preventDefault:!0},{key:"Mod-[",run:zf},{key:"Mod-]",run:Lf},{key:"Mod-Alt-\\",run:Nf},{key:"Shift-Mod-k",run:Pf},{key:"Shift-Mod-\\",run:Ep},{key:"Mod-/",run:xh},{key:"Alt-A",run:Sh},{key:"Ctrl-m",mac:"Shift-Alt-m",run:Vf}].concat(jf),Ff={key:"Tab",run:Lf,shift:zf};function Wf(){var e=arguments[0];"string"==typeof e&&(e=document.createElement(e));var t=1,n=arguments[1];if(n&&"object"==typeof n&&null==n.nodeType&&!Array.isArray(n)){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var o=n[r];"string"==typeof o?e.setAttribute(r,o):null!=o&&(e[r]=o)}t++}for(;t<arguments.length;t++)Hf(e,arguments[t]);return e}function Hf(e,t){if("string"==typeof t)e.appendChild(document.createTextNode(t));else if(null==t);else if(null!=t.nodeType)e.appendChild(t);else{if(!Array.isArray(t))throw new RangeError("Unsupported child node: "+t);for(var n=0;n<t.length;n++)Hf(e,t[n])}}const Zf="function"==typeof String.prototype.normalize?e=>e.normalize("NFKD"):e=>e;class Gf{constructor(e,t,n=0,r=e.length,o,i){this.test=i,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(n,r),this.bufferStart=n,this.normalize=o?e=>o(Zf(e)):Zf,this.query=this.normalize(t)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return Ne(this.buffer,this.bufferPos)}next(){while(this.matches.length)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let t=Le(e),n=this.bufferStart+this.bufferPos;this.bufferPos+=ze(e);let r=this.normalize(t);for(let o=0,i=n;;o++){let e=r.charCodeAt(o),a=this.match(e,i,this.bufferPos+this.bufferStart);if(o==r.length-1){if(a)return this.value=a,this;break}i==n&&o<t.length&&t.charCodeAt(o)==e&&i++}}}match(e,t,n){let r=null;for(let o=0;o<this.matches.length;o+=2){let t=this.matches[o],i=!1;this.query.charCodeAt(t)==e&&(t==this.query.length-1?r={from:this.matches[o+1],to:n}:(this.matches[o]++,i=!0)),i||(this.matches.splice(o,2),o-=2)}return this.query.charCodeAt(0)==e&&(1==this.query.length?r={from:t,to:n}:this.matches.push(1,t)),r&&this.test&&!this.test(r.from,r.to,this.buffer,this.bufferStart)&&(r=null),r}}"undefined"!=typeof Symbol&&(Gf.prototype[Symbol.iterator]=function(){return this});const Xf={from:-1,to:-1,match:/.*/.exec("")},Uf="gm"+(null==/x/.unicode?"":"u");class Yf{constructor(e,t,n,r=0,o=e.length){if(this.text=e,this.to=o,this.curLine="",this.done=!1,this.value=Xf,/\\[sWDnr]|\n|\r|\[\^/.test(t))return new Jf(e,t,n,r,o);this.re=new RegExp(t,Uf+((null===n||void 0===n?void 0:n.ignoreCase)?"i":"")),this.test=null===n||void 0===n?void 0:n.test,this.iter=e.iter();let i=e.lineAt(r);this.curLineStart=i.from,this.matchPos=tg(e,r),this.getLine(this.curLineStart)}getLine(e){this.iter.next(e),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){let n=this.curLineStart+t.index,r=n+t[0].length;if(this.matchPos=tg(this.text,r+(n==r?1:0)),n==this.curLineStart+this.curLine.length&&this.nextLine(),(n<r||n>this.value.to)&&(!this.test||this.test(n,r,t)))return this.value={from:n,to:r,match:t},this;e=this.matchPos-this.curLineStart}else{if(!(this.curLineStart+this.curLine.length<this.to))return this.done=!0,this;this.nextLine(),e=0}}}}const qf=new WeakMap;class Kf{constructor(e,t){this.from=e,this.text=t}get to(){return this.from+this.text.length}static get(e,t,n){let r=qf.get(e);if(!r||r.from>=n||r.to<=t){let r=new Kf(t,e.sliceString(t,n));return qf.set(e,r),r}if(r.from==t&&r.to==n)return r;let{text:o,from:i}=r;return i>t&&(o=e.sliceString(t,i)+o,i=t),r.to<n&&(o+=e.sliceString(r.to,n)),qf.set(e,new Kf(i,o)),new Kf(t,o.slice(t-i,n-i))}}class Jf{constructor(e,t,n,r,o){this.text=e,this.to=o,this.done=!1,this.value=Xf,this.matchPos=tg(e,r),this.re=new RegExp(t,Uf+((null===n||void 0===n?void 0:n.ignoreCase)?"i":"")),this.test=null===n||void 0===n?void 0:n.test,this.flat=Kf.get(e,r,this.chunkEnd(r+5e3))}chunkEnd(e){return e>=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e&&(this.re.lastIndex=e+1,t=this.re.exec(this.flat.text)),t){let e=this.flat.from+t.index,n=e+t[0].length;if((this.flat.to>=this.to||t.index+t[0].length<=this.flat.text.length-10)&&(!this.test||this.test(e,n,t)))return this.value={from:e,to:n,match:t},this.matchPos=tg(this.text,n+(e==n?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=Kf.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}}function eg(e){try{return new RegExp(e,Uf),!0}catch(Tc){return!1}}function tg(e,t){if(t>=e.length)return t;let n,r=e.lineAt(t);while(t<r.to&&(n=r.text.charCodeAt(t-r.from))>=56320&&n<57344)t++;return t}function ng(e){let t=String(e.state.doc.lineAt(e.state.selection.main.head).number),n=Wf("input",{class:"cm-textfield",name:"line",value:t}),r=Wf("form",{class:"cm-gotoLine",onkeydown:t=>{27==t.keyCode?(t.preventDefault(),e.dispatch({effects:rg.of(!1)}),e.focus()):13==t.keyCode&&(t.preventDefault(),o())},onsubmit:e=>{e.preventDefault(),o()}},Wf("label",e.state.phrase("Go to line"),": ",n)," ",Wf("button",{class:"cm-button",type:"submit"},e.state.phrase("go")));function o(){let t=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(n.value);if(!t)return;let{state:r}=e,o=r.doc.lineAt(r.selection.main.head),[,i,a,s,l]=t,u=s?+s.slice(1):0,c=a?+a:o.number;if(a&&l){let e=c/100;i&&(e=e*("-"==i?-1:1)+o.number/r.doc.lines),c=Math.round(r.doc.lines*e)}else a&&i&&(c=c*("-"==i?-1:1)+o.number);let d=r.doc.line(Math.max(1,Math.min(r.doc.lines,c))),h=Ye.cursor(d.from+Math.max(0,Math.min(u,d.length)));e.dispatch({effects:[rg.of(!1),ls.scrollIntoView(h.from,{y:"center"})],selection:h}),e.focus()}return{dom:r}}"undefined"!=typeof Symbol&&(Yf.prototype[Symbol.iterator]=Jf.prototype[Symbol.iterator]=function(){return this});const rg=Ct.define(),og=at.define({create(){return!0},update(e,t){for(let n of t.effects)n.is(rg)&&(e=n.value);return e},provide:e=>Gl.from(e,(e=>e?ng:null))}),ig=e=>{let t=Fl(e,ng);if(!t){let n=[rg.of(!0)];null==e.state.field(og,!1)&&n.push(Ct.appendConfig.of([og,ag])),e.dispatch({effects:n}),t=Fl(e,ng)}return t&&t.dom.querySelector("input").select(),!0},ag=ls.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),sg={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},lg=Je.define({combine(e){return Ft(e,sg,{highlightWordAroundCursor:(e,t)=>e||t,minSelectionLength:Math.min,maxMatches:Math.min})}});function ug(e){let t=[gg,fg];return e&&t.push(lg.of(e)),t}const cg=Rr.mark({class:"cm-selectionMatch"}),dg=Rr.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function hg(e,t,n,r){return(0==n||e(t.sliceDoc(n-1,n))!=Lt.Word)&&(r==t.doc.length||e(t.sliceDoc(r,r+1))!=Lt.Word)}function pg(e,t,n,r){return e(t.sliceDoc(n,n+1))==Lt.Word&&e(t.sliceDoc(r-1,r))==Lt.Word}const fg=$o.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.selectionSet||e.docChanged||e.viewportChanged)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=e.state.facet(lg),{state:n}=e,r=n.selection;if(r.ranges.length>1)return Rr.none;let o,i=r.main,a=null;if(i.empty){if(!t.highlightWordAroundCursor)return Rr.none;let e=n.wordAt(i.head);if(!e)return Rr.none;a=n.charCategorizer(i.head),o=n.sliceDoc(e.from,e.to)}else{let e=i.to-i.from;if(e<t.minSelectionLength||e>200)return Rr.none;if(t.wholeWords){if(o=n.sliceDoc(i.from,i.to),a=n.charCategorizer(i.head),!hg(a,n,i.from,i.to)||!pg(a,n,i.from,i.to))return Rr.none}else if(o=n.sliceDoc(i.from,i.to),!o)return Rr.none}let s=[];for(let l of e.visibleRanges){let e=new Gf(n.doc,o,l.from,l.to);while(!e.next().done){let{from:r,to:o}=e.value;if((!a||hg(a,n,r,o))&&(i.empty&&r<=i.from&&o>=i.to?s.push(dg.range(r,o)):(r>=i.to||o<=i.from)&&s.push(cg.range(r,o)),s.length>t.maxMatches))return Rr.none}}return Rr.set(s)}},{decorations:e=>e.decorations}),gg=ls.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),mg=({state:e,dispatch:t})=>{let{selection:n}=e,r=Ye.create(n.ranges.map((t=>e.wordAt(t.head)||Ye.cursor(t.head))),n.mainIndex);return!r.eq(n)&&(t(e.update({selection:r})),!0)};function vg(e,t){let{main:n,ranges:r}=e.selection,o=e.wordAt(n.head),i=o&&o.from==n.from&&o.to==n.to;for(let a=!1,s=new Gf(e.doc,t,r[r.length-1].to);;){if(s.next(),!s.done){if(a&&r.some((e=>e.from==s.value.from)))continue;if(i){let t=e.wordAt(s.value.from);if(!t||t.from!=s.value.from||t.to!=s.value.to)continue}return s.value}if(a)return null;s=new Gf(e.doc,t,0,Math.max(0,r[r.length-1].from-1)),a=!0}}const yg=({state:e,dispatch:t})=>{let{ranges:n}=e.selection;if(n.some((e=>e.from===e.to)))return mg({state:e,dispatch:t});let r=e.sliceDoc(n[0].from,n[0].to);if(e.selection.ranges.some((t=>e.sliceDoc(t.from,t.to)!=r)))return!1;let o=vg(e,r);return!!o&&(t(e.update({selection:e.selection.addRange(Ye.range(o.from,o.to),!1),effects:ls.scrollIntoView(o.to)})),!0)},bg=Je.define({combine(e){return Ft(e,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new qg(e),scrollToMatch:e=>ls.scrollIntoView(e)})}});class _g{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||eg(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,((e,t)=>"n"==t?"\n":"r"==t?"\r":"t"==t?"\t":"\\"))}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new Tg(this):new Sg(this)}getCursor(e,t=0,n){let r=e.doc?e:Qt.create({doc:e});return null==n&&(n=r.doc.length),this.regexp?Ag(this,r,t,n):wg(this,r,t,n)}}class xg{constructor(e){this.spec=e}}function wg(e,t,n,r){return new Gf(t.doc,e.unquoted,n,r,e.caseSensitive?void 0:e=>e.toLowerCase(),e.wholeWord?Og(t.doc,t.charCategorizer(t.selection.main.head)):void 0)}function Og(e,t){return(n,r,o,i)=>((i>n||i+o.length<r)&&(i=Math.max(0,n-2),o=e.sliceString(i,Math.min(e.length,r+2))),(t(kg(o,n-i))!=Lt.Word||t(Cg(o,n-i))!=Lt.Word)&&(t(Cg(o,r-i))!=Lt.Word||t(kg(o,r-i))!=Lt.Word))}class Sg extends xg{constructor(e){super(e)}nextMatch(e,t,n){let r=wg(this.spec,e,n,e.doc.length).nextOverlapping();return r.done&&(r=wg(this.spec,e,0,t).nextOverlapping()),r.done?null:r.value}prevMatchInRange(e,t,n){for(let r=n;;){let n=Math.max(t,r-1e4-this.spec.unquoted.length),o=wg(this.spec,e,n,r),i=null;while(!o.nextOverlapping().done)i=o.value;if(i)return i;if(n==t)return null;r-=1e4}}prevMatch(e,t,n){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,n,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,t){let n=wg(this.spec,e,0,e.doc.length),r=[];while(!n.next().done){if(r.length>=t)return null;r.push(n.value)}return r}highlight(e,t,n,r){let o=wg(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(n+this.spec.unquoted.length,e.doc.length));while(!o.next().done)r(o.value.from,o.value.to)}}function Ag(e,t,n,r){return new Yf(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:e.wholeWord?Mg(t.charCategorizer(t.selection.main.head)):void 0},n,r)}function kg(e,t){return e.slice(Ie(e,t,!1),t)}function Cg(e,t){return e.slice(t,Ie(e,t))}function Mg(e){return(t,n,r)=>!r[0].length||(e(kg(r.input,r.index))!=Lt.Word||e(Cg(r.input,r.index))!=Lt.Word)&&(e(Cg(r.input,r.index+r[0].length))!=Lt.Word||e(kg(r.input,r.index+r[0].length))!=Lt.Word)}class Tg extends xg{nextMatch(e,t,n){let r=Ag(this.spec,e,n,e.doc.length).next();return r.done&&(r=Ag(this.spec,e,0,t).next()),r.done?null:r.value}prevMatchInRange(e,t,n){for(let r=1;;r++){let o=Math.max(t,n-1e4*r),i=Ag(this.spec,e,o,n),a=null;while(!i.next().done)a=i.value;if(a&&(o==t||a.from>o+10))return a;if(o==t)return null}}prevMatch(e,t,n){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,n,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&\d+])/g,((t,n)=>"$"==n?"$":"&"==n?e.match[0]:"0"!=n&&+n<e.match.length?e.match[n]:t))}matchAll(e,t){let n=Ag(this.spec,e,0,e.doc.length),r=[];while(!n.next().done){if(r.length>=t)return null;r.push(n.value)}return r}highlight(e,t,n,r){let o=Ag(this.spec,e,Math.max(0,t-250),Math.min(n+250,e.doc.length));while(!o.next().done)r(o.value.from,o.value.to)}}const Pg=Ct.define(),Ig=Ct.define(),$g=at.define({create(e){return new Eg(Hg(e).create(),null)},update(e,t){for(let n of t.effects)n.is(Pg)?e=new Eg(n.value.create(),e.panel):n.is(Ig)&&(e=new Eg(e.query,n.value?Wg:null));return e},provide:e=>Gl.from(e,(e=>e.panel))});class Eg{constructor(e,t){this.query=e,this.panel=t}}const Dg=Rr.mark({class:"cm-searchMatch"}),Rg=Rr.mark({class:"cm-searchMatch cm-searchMatch-selected"}),Ng=$o.fromClass(class{constructor(e){this.view=e,this.decorations=this.highlight(e.state.field($g))}update(e){let t=e.state.field($g);(t!=e.startState.field($g)||e.docChanged||e.selectionSet||e.viewportChanged)&&(this.decorations=this.highlight(t))}highlight({query:e,panel:t}){if(!t||!e.spec.valid)return Rr.none;let{view:n}=this,r=new Yt;for(let o=0,i=n.visibleRanges,a=i.length;o<a;o++){let{from:t,to:s}=i[o];while(o<a-1&&s>i[o+1].from-500)s=i[++o].to;e.highlight(n.state,t,s,((e,t)=>{let o=n.state.selection.ranges.some((n=>n.from==e&&n.to==t));r.add(e,t,o?Rg:Dg)}))}return r.finish()}},{decorations:e=>e.decorations});function Lg(e){return t=>{let n=t.state.field($g,!1);return n&&n.query.spec.valid?e(t,n):Xg(t)}}const zg=Lg(((e,{query:t})=>{let{to:n}=e.state.selection.main,r=t.nextMatch(e.state,n,n);if(!r)return!1;let o=Ye.single(r.from,r.to),i=e.state.facet(bg);return e.dispatch({selection:o,effects:[tm(e,r),i.scrollToMatch(o.main,e)],userEvent:"select.search"}),Gg(e),!0})),Vg=Lg(((e,{query:t})=>{let{state:n}=e,{from:r}=n.selection.main,o=t.prevMatch(n,r,r);if(!o)return!1;let i=Ye.single(o.from,o.to),a=e.state.facet(bg);return e.dispatch({selection:i,effects:[tm(e,o),a.scrollToMatch(i.main,e)],userEvent:"select.search"}),Gg(e),!0})),Bg=Lg(((e,{query:t})=>{let n=t.matchAll(e.state,1e3);return!(!n||!n.length)&&(e.dispatch({selection:Ye.create(n.map((e=>Ye.range(e.from,e.to)))),userEvent:"select.search.matches"}),!0)})),jg=({state:e,dispatch:t})=>{let n=e.selection;if(n.ranges.length>1||n.main.empty)return!1;let{from:r,to:o}=n.main,i=[],a=0;for(let s=new Gf(e.doc,e.sliceDoc(r,o));!s.next().done;){if(i.length>1e3)return!1;s.value.from==r&&(a=i.length),i.push(Ye.range(s.value.from,s.value.to))}return t(e.update({selection:Ye.create(i,a),userEvent:"select.search.matches"})),!0},Qg=Lg(((e,{query:t})=>{let{state:n}=e,{from:r,to:o}=n.selection.main;if(n.readOnly)return!1;let i=t.nextMatch(n,r,r);if(!i)return!1;let a,s,l=[],u=[];if(i.from==r&&i.to==o&&(s=n.toText(t.getReplacement(i)),l.push({from:i.from,to:i.to,insert:s}),i=t.nextMatch(n,i.from,i.to),u.push(ls.announce.of(n.phrase("replaced match on line $",n.doc.lineAt(r).number)+"."))),i){let t=0==l.length||l[0].from>=i.to?0:i.to-i.from-s.length;a=Ye.single(i.from-t,i.to-t),u.push(tm(e,i)),u.push(n.facet(bg).scrollToMatch(a.main,e))}return e.dispatch({changes:l,selection:a,effects:u,userEvent:"input.replace"}),!0})),Fg=Lg(((e,{query:t})=>{if(e.state.readOnly)return!1;let n=t.matchAll(e.state,1e9).map((e=>{let{from:n,to:r}=e;return{from:n,to:r,insert:t.getReplacement(e)}}));if(!n.length)return!1;let r=e.state.phrase("replaced $ matches",n.length)+".";return e.dispatch({changes:n,effects:ls.announce.of(r),userEvent:"input.replace.all"}),!0}));function Wg(e){return e.state.facet(bg).createPanel(e)}function Hg(e,t){var n,r,o,i,a;let s=e.selection.main,l=s.empty||s.to>s.from+100?"":e.sliceDoc(s.from,s.to);if(t&&!l)return t;let u=e.facet(bg);return new _g({search:(null!==(n=null===t||void 0===t?void 0:t.literal)&&void 0!==n?n:u.literal)?l:l.replace(/\n/g,"\\n"),caseSensitive:null!==(r=null===t||void 0===t?void 0:t.caseSensitive)&&void 0!==r?r:u.caseSensitive,literal:null!==(o=null===t||void 0===t?void 0:t.literal)&&void 0!==o?o:u.literal,regexp:null!==(i=null===t||void 0===t?void 0:t.regexp)&&void 0!==i?i:u.regexp,wholeWord:null!==(a=null===t||void 0===t?void 0:t.wholeWord)&&void 0!==a?a:u.wholeWord})}function Zg(e){let t=Fl(e,Wg);return t&&t.dom.querySelector("[main-field]")}function Gg(e){let t=Zg(e);t&&t==e.root.activeElement&&t.select()}const Xg=e=>{let t=e.state.field($g,!1);if(t&&t.panel){let n=Zg(e);if(n&&n!=e.root.activeElement){let r=Hg(e.state,t.query.spec);r.valid&&e.dispatch({effects:Pg.of(r)}),n.focus(),n.select()}}else e.dispatch({effects:[Ig.of(!0),t?Pg.of(Hg(e.state,t.query.spec)):Ct.appendConfig.of(rm)]});return!0},Ug=e=>{let t=e.state.field($g,!1);if(!t||!t.panel)return!1;let n=Fl(e,Wg);return n&&n.dom.contains(e.root.activeElement)&&e.focus(),e.dispatch({effects:Ig.of(!1)}),!0},Yg=[{key:"Mod-f",run:Xg,scope:"editor search-panel"},{key:"F3",run:zg,shift:Vg,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:zg,shift:Vg,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:Ug,scope:"editor search-panel"},{key:"Mod-Shift-l",run:jg},{key:"Mod-Alt-g",run:ig},{key:"Mod-d",run:yg,preventDefault:!0}];class qg{constructor(e){this.view=e;let t=this.query=e.state.field($g).query.spec;function n(e,t,n){return Wf("button",{class:"cm-button",name:e,onclick:t,type:"button"},n)}this.commit=this.commit.bind(this),this.searchField=Wf("input",{value:t.search,placeholder:Kg(e,"Find"),"aria-label":Kg(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=Wf("input",{value:t.replace,placeholder:Kg(e,"Replace"),"aria-label":Kg(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=Wf("input",{type:"checkbox",name:"case",form:"",checked:t.caseSensitive,onchange:this.commit}),this.reField=Wf("input",{type:"checkbox",name:"re",form:"",checked:t.regexp,onchange:this.commit}),this.wordField=Wf("input",{type:"checkbox",name:"word",form:"",checked:t.wholeWord,onchange:this.commit}),this.dom=Wf("div",{onkeydown:e=>this.keydown(e),class:"cm-search"},[this.searchField,n("next",(()=>zg(e)),[Kg(e,"next")]),n("prev",(()=>Vg(e)),[Kg(e,"previous")]),n("select",(()=>Bg(e)),[Kg(e,"all")]),Wf("label",null,[this.caseField,Kg(e,"match case")]),Wf("label",null,[this.reField,Kg(e,"regexp")]),Wf("label",null,[this.wordField,Kg(e,"by word")]),...e.state.readOnly?[]:[Wf("br"),this.replaceField,n("replace",(()=>Qg(e)),[Kg(e,"replace")]),n("replaceAll",(()=>Fg(e)),[Kg(e,"replace all")])],Wf("button",{name:"close",onclick:()=>Ug(e),"aria-label":Kg(e,"close"),type:"button"},["×"])])}commit(){let e=new _g({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:Pg.of(e)}))}keydown(e){_s(this.view,e,"search-panel")?e.preventDefault():13==e.keyCode&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?Vg:zg)(this.view)):13==e.keyCode&&e.target==this.replaceField&&(e.preventDefault(),Qg(this.view))}update(e){for(let t of e.transactions)for(let e of t.effects)e.is(Pg)&&!e.value.eq(this.query)&&this.setQuery(e.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(bg).top}}function Kg(e,t){return e.state.phrase(t)}const Jg=30,em=/[\s\.,:;?!]/;function tm(e,{from:t,to:n}){let r=e.state.doc.lineAt(t),o=e.state.doc.lineAt(n).to,i=Math.max(r.from,t-Jg),a=Math.min(o,n+Jg),s=e.state.sliceDoc(i,a);if(i!=r.from)for(let l=0;l<Jg;l++)if(!em.test(s[l+1])&&em.test(s[l])){s=s.slice(l);break}if(a!=o)for(let l=s.length-1;l>s.length-Jg;l--)if(!em.test(s[l-1])&&em.test(s[l])){s=s.slice(0,l);break}return ls.announce.of(`${e.state.phrase("current match")}. ${s} ${e.state.phrase("on line")} ${r.number}.`)}const nm=ls.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),rm=[$g,ut.low(Ng),nm];class om{constructor(e,t,n){this.state=e,this.pos=t,this.explicit=n,this.abortListeners=[]}tokenBefore(e){let t=Nc(this.state).resolveInner(this.pos,-1);while(t&&e.indexOf(t.name)<0)t=t.parent;return t?{from:t.from,to:this.pos,text:this.state.sliceDoc(t.from,this.pos),type:t.type}:null}matchBefore(e){let t=this.state.doc.lineAt(this.pos),n=Math.max(t.from,this.pos-250),r=t.text.slice(n-t.from,this.pos-t.from),o=r.search(dm(e,!1));return o<0?null:{from:n+o,to:this.pos,text:r.slice(o)}}get aborted(){return null==this.abortListeners}addEventListener(e,t){"abort"==e&&this.abortListeners&&this.abortListeners.push(t)}}function im(e){let t=Object.keys(e).join(""),n=/\w/.test(t);return n&&(t=t.replace(/\w/g,"")),`[${n?"\\w":""}${t.replace(/[^\w\s]/g,"\\$&")}]`}function am(e){let t=Object.create(null),n=Object.create(null);for(let{label:o}of e){t[o[0]]=!0;for(let e=1;e<o.length;e++)n[o[e]]=!0}let r=im(t)+im(n)+"*$";return[new RegExp("^"+r),new RegExp(r)]}function sm(e){let t=e.map((e=>"string"==typeof e?{label:e}:e)),[n,r]=t.every((e=>/^\w+$/.test(e.label)))?[/\w*$/,/\w+$/]:am(t);return e=>{let o=e.matchBefore(r);return o||e.explicit?{from:o?o.from:e.pos,options:t,validFor:n}:null}}function lm(e,t){return n=>{for(let t=Nc(n.state).resolveInner(n.pos,-1);t;t=t.parent){if(e.indexOf(t.name)>-1)return null;if(t.type.isTop)break}return t(n)}}class um{constructor(e,t,n,r){this.completion=e,this.source=t,this.match=n,this.score=r}}function cm(e){return e.selection.main.from}function dm(e,t){var n;let{source:r}=e,o=t&&"^"!=r[0],i="$"!=r[r.length-1];return o||i?new RegExp(`${o?"^":""}(?:${r})${i?"$":""}`,null!==(n=e.flags)&&void 0!==n?n:e.ignoreCase?"i":""):e}const hm=St.define();function pm(e,t,n,r){let{main:o}=e.selection,i=n-o.from,a=r-o.from;return Object.assign(Object.assign({},e.changeByRange((s=>s!=o&&n!=r&&e.sliceDoc(s.from+i,s.from+a)!=e.sliceDoc(n,r)?{range:s}:{changes:{from:s.from+i,to:r==o.from?s.to:s.from+a,insert:t},range:Ye.cursor(s.from+i+t.length)}))),{scrollIntoView:!0,userEvent:"input.complete"})}const fm=new WeakMap;function gm(e){if(!Array.isArray(e))return e;let t=fm.get(e);return t||fm.set(e,t=sm(e)),t}const mm=Ct.define(),vm=Ct.define();class ym{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let t=0;t<e.length;){let n=Ne(e,t),r=ze(n);this.chars.push(n);let o=e.slice(t,t+r),i=o.toUpperCase();this.folded.push(Ne(i==o?o.toLowerCase():i,0)),t+=r}this.astral=e.length!=this.chars.length}ret(e,t){return this.score=e,this.matched=t,this}match(e){if(0==this.pattern.length)return this.ret(-100,[]);if(e.length<this.pattern.length)return null;let{chars:t,folded:n,any:r,precise:o,byWord:i}=this;if(1==t.length){let r=Ne(e,0),o=ze(r),i=o==e.length?0:-100;if(r==t[0]);else{if(r!=n[0])return null;i+=-200}return this.ret(i,[0,o])}let a=e.indexOf(this.pattern);if(0==a)return this.ret(e.length==this.pattern.length?0:-100,[0,this.pattern.length]);let s=t.length,l=0;if(a<0){for(let o=0,i=Math.min(e.length,200);o<i&&l<s;){let i=Ne(e,o);i!=t[l]&&i!=n[l]||(r[l++]=o),o+=ze(i)}if(l<s)return null}let u=0,c=0,d=!1,h=0,p=-1,f=-1,g=/[a-z]/.test(e),m=!0;for(let v=0,y=Math.min(e.length,200),b=0;v<y&&c<s;){let r=Ne(e,v);a<0&&(u<s&&r==t[u]&&(o[u++]=v),h<s&&(r==t[h]||r==n[h]?(0==h&&(p=v),f=v+1,h++):h=0));let l,y=r<255?r>=48&&r<=57||r>=97&&r<=122?2:r>=65&&r<=90?1:0:(l=Le(r))!=l.toLowerCase()?1:l!=l.toUpperCase()?2:0;(!v||1==y&&g||0==b&&0!=y)&&(t[c]==r||n[c]==r&&(d=!0)?i[c++]=v:i.length&&(m=!1)),b=y,v+=ze(r)}return c==s&&0==i[0]&&m?this.result((d?-200:0)-100,i,e):h==s&&0==p?this.ret(-200-e.length+(f==e.length?0:-100),[0,f]):a>-1?this.ret(-700-e.length,[a,a+this.pattern.length]):h==s?this.ret(-900-e.length,[p,f]):c==s?this.result((d?-200:0)-100-700+(m?0:-1100),i,e):2==t.length?null:this.result((r[0]?-700:0)-200-1100,r,e)}result(e,t,n){let r=[],o=0;for(let i of t){let e=i+(this.astral?ze(Ne(n,i)):1);o&&r[o-1]==i?r[o-1]=e:(r[o++]=i,r[o++]=e)}return this.ret(e-n.length,r)}}class bm{constructor(e){this.pattern=e,this.matched=[],this.score=0,this.folded=e.toLowerCase()}match(e){if(e.length<this.pattern.length)return null;let t=e.slice(0,this.pattern.length),n=t==this.pattern?0:t.toLowerCase()==this.folded?-200:null;return null==n?null:(this.matched=[0,t.length],this.score=n+(e.length==this.pattern.length?0:-100),this)}}const _m=Je.define({combine(e){return Ft(e,{activateOnTyping:!0,activateOnCompletion:()=>!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:wm,filterStrict:!1,compareCompletions:(e,t)=>e.label.localeCompare(t.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,t)=>e&&t,closeOnBlur:(e,t)=>e&&t,icons:(e,t)=>e&&t,tooltipClass:(e,t)=>n=>xm(e(n),t(n)),optionClass:(e,t)=>n=>xm(e(n),t(n)),addToOptions:(e,t)=>e.concat(t),filterStrict:(e,t)=>e||t})}});function xm(e,t){return e?t?e+" "+t:e:t}function wm(e,t,n,r,o,i){let a,s,l=e.textDirection==Hr.RTL,u=l,c=!1,d="top",h=t.left-o.left,p=o.right-t.right,f=r.right-r.left,g=r.bottom-r.top;if(u&&h<Math.min(f,p)?u=!1:!u&&p<Math.min(f,h)&&(u=!0),f<=(u?h:p))a=Math.max(o.top,Math.min(n.top,o.bottom-g))-t.top,s=Math.min(400,u?h:p);else{c=!0,s=Math.min(400,(l?t.right:o.right-t.left)-30);let e=o.bottom-t.bottom;e>=g||e>t.top?a=n.bottom-t.top:(d="bottom",a=t.bottom-n.top)}let m=(t.bottom-t.top)/i.offsetHeight,v=(t.right-t.left)/i.offsetWidth;return{style:`${d}: ${a/m}px; max-width: ${s/v}px`,class:"cm-completionInfo-"+(c?l?"left-narrow":"right-narrow":u?"left":"right")}}function Om(e){let t=e.addToOptions.slice();return e.icons&&t.push({render(e){let t=document.createElement("div");return t.classList.add("cm-completionIcon"),e.type&&t.classList.add(...e.type.split(/\s+/g).map((e=>"cm-completionIcon-"+e))),t.setAttribute("aria-hidden","true"),t},position:20}),t.push({render(e,t,n,r){let o=document.createElement("span");o.className="cm-completionLabel";let i=e.displayLabel||e.label,a=0;for(let s=0;s<r.length;){let e=r[s++],t=r[s++];e>a&&o.appendChild(document.createTextNode(i.slice(a,e)));let n=o.appendChild(document.createElement("span"));n.appendChild(document.createTextNode(i.slice(e,t))),n.className="cm-completionMatchedText",a=t}return a<i.length&&o.appendChild(document.createTextNode(i.slice(a))),o},position:50},{render(e){if(!e.detail)return null;let t=document.createElement("span");return t.className="cm-completionDetail",t.textContent=e.detail,t},position:80}),t.sort(((e,t)=>e.position-t.position)).map((e=>e.render))}function Sm(e,t,n){if(e<=n)return{from:0,to:e};if(t<0&&(t=0),t<=e>>1){let e=Math.floor(t/n);return{from:e*n,to:(e+1)*n}}let r=Math.floor((e-t)/n);return{from:e-(r+1)*n,to:e-r*n}}class Am{constructor(e,t,n){this.view=e,this.stateField=t,this.applyCompletion=n,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:e=>this.placeInfo(e),key:this},this.space=null,this.currentClass="";let r=e.state.field(t),{options:o,selected:i}=r.open,a=e.state.facet(_m);this.optionContent=Om(a),this.optionClass=a.optionClass,this.tooltipClass=a.tooltipClass,this.range=Sm(o.length,i,a.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",(n=>{let{options:r}=e.state.field(t).open;for(let t,o=n.target;o&&o!=this.dom;o=o.parentNode)if("LI"==o.nodeName&&(t=/-(\d+)$/.exec(o.id))&&+t[1]<r.length)return this.applyCompletion(e,r[+t[1]]),void n.preventDefault()})),this.dom.addEventListener("focusout",(t=>{let n=e.state.field(this.stateField,!1);n&&n.tooltip&&e.state.facet(_m).closeOnBlur&&t.relatedTarget!=e.contentDOM&&e.dispatch({effects:vm.of(null)})})),this.showOptions(o,r.id)}mount(){this.updateSel()}showOptions(e,t){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,t,this.range)),this.list.addEventListener("scroll",(()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)}))}update(e){var t;let n=e.state.field(this.stateField),r=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),n!=r){let{options:o,selected:i,disabled:a}=n.open;r.open&&r.open.options==o||(this.range=Sm(o.length,i,e.state.facet(_m).maxRenderedOptions),this.showOptions(o,n.id)),this.updateSel(),a!=(null===(t=r.open)||void 0===t?void 0:t.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!a)}}updateTooltipClass(e){let t=this.tooltipClass(e);if(t!=this.currentClass){for(let e of this.currentClass.split(" "))e&&this.dom.classList.remove(e);for(let e of t.split(" "))e&&this.dom.classList.add(e);this.currentClass=t}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),t=e.open;if((t.selected>-1&&t.selected<this.range.from||t.selected>=this.range.to)&&(this.range=Sm(t.options.length,t.selected,this.view.state.facet(_m).maxRenderedOptions),this.showOptions(t.options,e.id)),this.updateSelectedOption(t.selected)){this.destroyInfo();let{completion:n}=t.options[t.selected],{info:r}=n;if(!r)return;let o="string"===typeof r?document.createTextNode(r):r(n);if(!o)return;"then"in o?o.then((t=>{t&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(t,n)})).catch((e=>Mo(this.view.state,e,"completion info"))):this.addInfoPane(o,n)}}addInfoPane(e,t){this.destroyInfo();let n=this.info=document.createElement("div");if(n.className="cm-tooltip cm-completionInfo",null!=e.nodeType)n.appendChild(e),this.infoDestroy=null;else{let{dom:t,destroy:r}=e;n.appendChild(t),this.infoDestroy=r||null}this.dom.appendChild(n),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let t=null;for(let n=this.list.firstChild,r=this.range.from;n;n=n.nextSibling,r++)"LI"==n.nodeName&&n.id?r==e?n.hasAttribute("aria-selected")||(n.setAttribute("aria-selected","true"),t=n):n.hasAttribute("aria-selected")&&n.removeAttribute("aria-selected"):r--;return t&&Cm(this.list,t),t}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let t=this.dom.getBoundingClientRect(),n=this.info.getBoundingClientRect(),r=e.getBoundingClientRect(),o=this.space;if(!o){let e=this.dom.ownerDocument.defaultView||window;o={left:0,top:0,right:e.innerWidth,bottom:e.innerHeight}}return r.top>Math.min(o.bottom,t.bottom)-10||r.bottom<Math.max(o.top,t.top)+10?null:this.view.state.facet(_m).positionInfo(this.view,t,r,n,o,this.dom)}placeInfo(e){this.info&&(e?(e.style&&(this.info.style.cssText=e.style),this.info.className="cm-tooltip cm-completionInfo "+(e.class||"")):this.info.style.cssText="top: -1e6px")}createListBox(e,t,n){const r=document.createElement("ul");r.id=t,r.setAttribute("role","listbox"),r.setAttribute("aria-expanded","true"),r.setAttribute("aria-label",this.view.state.phrase("Completions"));let o=null;for(let i=n.from;i<n.to;i++){let{completion:a,match:s}=e[i],{section:l}=a;if(l){let e="string"==typeof l?l:l.name;if(e!=o&&(i>n.from||0==n.from))if(o=e,"string"!=typeof l&&l.header)r.appendChild(l.header(l));else{let t=r.appendChild(document.createElement("completion-section"));t.textContent=e}}const u=r.appendChild(document.createElement("li"));u.id=t+"-"+i,u.setAttribute("role","option");let c=this.optionClass(a);c&&(u.className=c);for(let e of this.optionContent){let t=e(a,this.view.state,this.view,s);t&&u.appendChild(t)}}return n.from&&r.classList.add("cm-completionListIncompleteTop"),n.to<e.length&&r.classList.add("cm-completionListIncompleteBottom"),r}destroyInfo(){this.info&&(this.infoDestroy&&this.infoDestroy(),this.info.remove(),this.info=null)}destroy(){this.destroyInfo()}}function km(e,t){return n=>new Am(n,e,t)}function Cm(e,t){let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=n.height/e.offsetHeight;r.top<n.top?e.scrollTop-=(n.top-r.top)/o:r.bottom>n.bottom&&(e.scrollTop+=(r.bottom-n.bottom)/o)}function Mm(e){return 100*(e.boost||0)+(e.apply?10:0)+(e.info?5:0)+(e.type?1:0)}function Tm(e,t){let n=[],r=null,o=e=>{n.push(e);let{section:t}=e.completion;if(t){r||(r=[]);let e="string"==typeof t?t:t.name;r.some((t=>t.name==e))||r.push("string"==typeof t?{name:e}:t)}},i=t.facet(_m);for(let u of e)if(u.hasResult()){let e=u.result.getMatch;if(!1===u.result.filter)for(let t of u.result.options)o(new um(t,u.source,e?e(t):[],1e9-n.length));else{let n,r=t.sliceDoc(u.from,u.to),a=i.filterStrict?new bm(r):new ym(r);for(let t of u.result.options)if(n=a.match(t.label)){let r=t.displayLabel?e?e(t,n.matched):[]:n.matched;o(new um(t,u.source,r,n.score+(t.boost||0)))}}}if(r){let e=Object.create(null),t=0,o=(e,t)=>{var n,r;return(null!==(n=e.rank)&&void 0!==n?n:1e9)-(null!==(r=t.rank)&&void 0!==r?r:1e9)||(e.name<t.name?-1:1)};for(let n of r.sort(o))t-=1e5,e[n.name]=t;for(let r of n){let{section:t}=r.completion;t&&(r.score+=e["string"==typeof t?t:t.name])}}let a=[],s=null,l=i.compareCompletions;for(let u of n.sort(((e,t)=>t.score-e.score||l(e.completion,t.completion)))){let e=u.completion;!s||s.label!=e.label||s.detail!=e.detail||null!=s.type&&null!=e.type&&s.type!=e.type||s.apply!=e.apply||s.boost!=e.boost?a.push(u):Mm(u.completion)>Mm(s)&&(a[a.length-1]=u),s=u.completion}return a}class Pm{constructor(e,t,n,r,o,i){this.options=e,this.attrs=t,this.tooltip=n,this.timestamp=r,this.selected=o,this.disabled=i}setSelected(e,t){return e==this.selected||e>=this.options.length?this:new Pm(this.options,Rm(t,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,t,n,r,o){let i=Tm(e,t);if(!i.length)return r&&e.some((e=>1==e.state))?new Pm(r.options,r.attrs,r.tooltip,r.timestamp,r.selected,!0):null;let a=t.facet(_m).selectOnOpen?0:-1;if(r&&r.selected!=a&&-1!=r.selected){let e=r.options[r.selected].completion;for(let t=0;t<i.length;t++)if(i[t].completion==e){a=t;break}}return new Pm(i,Rm(n,a),{pos:e.reduce(((e,t)=>t.hasResult()?Math.min(e,t.from):e),1e8),create:Hm,above:o.aboveCursor},r?r.timestamp:Date.now(),a,!1)}map(e){return new Pm(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class Im{constructor(e,t,n){this.active=e,this.id=t,this.open=n}static start(){return new Im(Nm,"cm-ac-"+Math.floor(2e6*Math.random()).toString(36),null)}update(e){let{state:t}=e,n=t.facet(_m),r=n.override||t.languageDataAt("autocomplete",cm(t)).map(gm),o=r.map((t=>{let r=this.active.find((e=>e.source==t))||new zm(t,this.active.some((e=>0!=e.state))?1:0);return r.update(e,n)}));o.length==this.active.length&&o.every(((e,t)=>e==this.active[t]))&&(o=this.active);let i=this.open;i&&e.docChanged&&(i=i.map(e.changes)),e.selection||o.some((t=>t.hasResult()&&e.changes.touchesRange(t.from,t.to)))||!$m(o,this.active)?i=Pm.build(o,t,this.id,i,n):i&&i.disabled&&!o.some((e=>1==e.state))&&(i=null),!i&&o.every((e=>1!=e.state))&&o.some((e=>e.hasResult()))&&(o=o.map((e=>e.hasResult()?new zm(e.source,0):e)));for(let a of e.effects)a.is(Qm)&&(i=i&&i.setSelected(a.value,this.id));return o==this.active&&i==this.open?this:new Im(o,this.id,i)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:this.active.length?Em:Dm}}function $m(e,t){if(e==t)return!0;for(let n=0,r=0;;){while(n<e.length&&!e[n].hasResult)n++;while(r<t.length&&!t[r].hasResult)r++;let o=n==e.length,i=r==t.length;if(o||i)return o==i;if(e[n++].result!=t[r++].result)return!1}}const Em={"aria-autocomplete":"list"},Dm={};function Rm(e,t){let n={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":e};return t>-1&&(n["aria-activedescendant"]=e+"-"+t),n}const Nm=[];function Lm(e,t){if(e.isUserEvent("input.complete")){let n=e.annotation(hm);if(n&&t.activateOnCompletion(n))return"input"}return e.isUserEvent("input.type")?"input":e.isUserEvent("delete.backward")?"delete":null}class zm{constructor(e,t,n=-1){this.source=e,this.state=t,this.explicitPos=n}hasResult(){return!1}update(e,t){let n=Lm(e,t),r=this;n?r=r.handleUserEvent(e,n,t):e.docChanged?r=r.handleChange(e):e.selection&&0!=r.state&&(r=new zm(r.source,0));for(let o of e.effects)if(o.is(mm))r=new zm(r.source,1,o.value?cm(e.state):-1);else if(o.is(vm))r=new zm(r.source,0);else if(o.is(jm))for(let e of o.value)e.source==r.source&&(r=e);return r}handleUserEvent(e,t,n){return"delete"!=t&&n.activateOnTyping?new zm(this.source,1):this.map(e.changes)}handleChange(e){return e.changes.touchesRange(cm(e.startState))?new zm(this.source,0):this.map(e.changes)}map(e){return e.empty||this.explicitPos<0?this:new zm(this.source,this.state,e.mapPos(this.explicitPos))}}class Vm extends zm{constructor(e,t,n,r,o){super(e,2,t),this.result=n,this.from=r,this.to=o}hasResult(){return!0}handleUserEvent(e,t,n){var r;let o=this.result;o.map&&!e.changes.empty&&(o=o.map(o,e.changes));let i=e.changes.mapPos(this.from),a=e.changes.mapPos(this.to,1),s=cm(e.state);if((this.explicitPos<0?s<=i:s<this.from)||s>a||!o||"delete"==t&&cm(e.startState)==this.from)return new zm(this.source,"input"==t&&n.activateOnTyping?1:0);let l=this.explicitPos<0?-1:e.changes.mapPos(this.explicitPos);return Bm(o.validFor,e.state,i,a)?new Vm(this.source,l,o,i,a):o.update&&(o=o.update(o,i,a,new om(e.state,s,l>=0)))?new Vm(this.source,l,o,o.from,null!==(r=o.to)&&void 0!==r?r:cm(e.state)):new zm(this.source,1,l)}handleChange(e){return e.changes.touchesRange(this.from,this.to)?new zm(this.source,0):this.map(e.changes)}map(e){if(e.empty)return this;let t=this.result.map?this.result.map(this.result,e):this.result;return t?new Vm(this.source,this.explicitPos<0?-1:e.mapPos(this.explicitPos),this.result,e.mapPos(this.from),e.mapPos(this.to,1)):new zm(this.source,0)}}function Bm(e,t,n,r){if(!e)return!1;let o=t.sliceDoc(n,r);return"function"==typeof e?e(o,n,r,t):dm(e,!0).test(o)}const jm=Ct.define({map(e,t){return e.map((e=>e.map(t)))}}),Qm=Ct.define(),Fm=at.define({create(){return Im.start()},update(e,t){return e.update(t)},provide:e=>[Il.from(e,(e=>e.tooltip)),ls.contentAttributes.from(e,(e=>e.attrs))]});function Wm(e,t){const n=t.completion.apply||t.completion.label;let r=e.state.field(Fm).active.find((e=>e.source==t.source));return r instanceof Vm&&("string"==typeof n?e.dispatch(Object.assign(Object.assign({},pm(e.state,n,r.from,r.to)),{annotations:hm.of(t.completion)})):n(e,t.completion,r.from,r.to),!0)}const Hm=km(Fm,Wm);function Zm(e,t="option"){return n=>{let r=n.state.field(Fm,!1);if(!r||!r.open||r.open.disabled||Date.now()-r.open.timestamp<n.state.facet(_m).interactionDelay)return!1;let o,i=1;"page"==t&&(o=Bl(n,r.open.tooltip))&&(i=Math.max(2,Math.floor(o.dom.offsetHeight/o.dom.querySelector("li").offsetHeight)-1));let{length:a}=r.open.options,s=r.open.selected>-1?r.open.selected+i*(e?1:-1):e?0:a-1;return s<0?s="page"==t?0:a-1:s>=a&&(s="page"==t?a-1:0),n.dispatch({effects:Qm.of(s)}),!0}}const Gm=e=>{let t=e.state.field(Fm,!1);return!(e.state.readOnly||!t||!t.open||t.open.selected<0||t.open.disabled||Date.now()-t.open.timestamp<e.state.facet(_m).interactionDelay)&&Wm(e,t.open.options[t.open.selected])},Xm=e=>{let t=e.state.field(Fm,!1);return!!t&&(e.dispatch({effects:mm.of(!0)}),!0)},Um=e=>{let t=e.state.field(Fm,!1);return!(!t||!t.active.some((e=>0!=e.state)))&&(e.dispatch({effects:vm.of(null)}),!0)};class Ym{constructor(e,t){this.active=e,this.context=t,this.time=Date.now(),this.updates=[],this.done=void 0}}const qm=50,Km=1e3,Jm=$o.fromClass(class{constructor(e){this.view=e,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let t of e.state.field(Fm).active)1==t.state&&this.startQuery(t)}update(e){let t=e.state.field(Fm),n=e.state.facet(_m);if(!e.selectionSet&&!e.docChanged&&e.startState.field(Fm)==t)return;let r=e.transactions.some((e=>(e.selection||e.docChanged)&&!Lm(e,n)));for(let a=0;a<this.running.length;a++){let t=this.running[a];if(r||t.updates.length+e.transactions.length>qm&&Date.now()-t.time>Km){for(let e of t.context.abortListeners)try{e()}catch(i){Mo(this.view.state,i)}t.context.abortListeners=null,this.running.splice(a--,1)}else t.updates.push(...e.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),e.transactions.some((e=>e.effects.some((e=>e.is(mm)))))&&(this.pendingStart=!0);let o=this.pendingStart?50:n.activateOnTypingDelay;if(this.debounceUpdate=t.active.some((e=>1==e.state&&!this.running.some((t=>t.active.source==e.source))))?setTimeout((()=>this.startUpdate()),o):-1,0!=this.composing)for(let a of e.transactions)"input"==Lm(a,n)?this.composing=2:2==this.composing&&a.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:e}=this.view,t=e.field(Fm);for(let n of t.active)1!=n.state||this.running.some((e=>e.active.source==n.source))||this.startQuery(n)}startQuery(e){let{state:t}=this.view,n=cm(t),r=new om(t,n,e.explicitPos==n),o=new Ym(e,r);this.running.push(o),Promise.resolve(e.source(r)).then((e=>{o.context.aborted||(o.done=e||null,this.scheduleAccept())}),(e=>{this.view.dispatch({effects:vm.of(null)}),Mo(this.view.state,e)}))}scheduleAccept(){this.running.every((e=>void 0!==e.done))?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout((()=>this.accept()),this.view.state.facet(_m).updateSyncTime))}accept(){var e;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let t=[],n=this.view.state.facet(_m);for(let r=0;r<this.running.length;r++){let o=this.running[r];if(void 0===o.done)continue;if(this.running.splice(r--,1),o.done){let r=new Vm(o.active.source,o.active.explicitPos,o.done,o.done.from,null!==(e=o.done.to)&&void 0!==e?e:cm(o.updates.length?o.updates[0].startState:this.view.state));for(let e of o.updates)r=r.update(e,n);if(r.hasResult()){t.push(r);continue}}let i=this.view.state.field(Fm).active.find((e=>e.source==o.active.source));if(i&&1==i.state)if(null==o.done){let e=new zm(o.active.source,0);for(let t of o.updates)e=e.update(t,n);1!=e.state&&t.push(e)}else this.startQuery(i)}t.length&&this.view.dispatch({effects:jm.of(t)})}},{eventHandlers:{blur(e){let t=this.view.state.field(Fm,!1);if(t&&t.tooltip&&this.view.state.facet(_m).closeOnBlur){let n=t.open&&Bl(this.view,t.open.tooltip);n&&n.dom.contains(e.relatedTarget)||setTimeout((()=>this.view.dispatch({effects:vm.of(null)})),10)}},compositionstart(){this.composing=1},compositionend(){3==this.composing&&setTimeout((()=>this.view.dispatch({effects:mm.of(!1)})),20),this.composing=0}}}),ev="object"==typeof navigator&&/Win/.test(navigator.platform),tv=ut.highest(ls.domEventHandlers({keydown(e,t){let n=t.state.field(Fm,!1);if(!n||!n.open||n.open.disabled||n.open.selected<0||e.key.length>1||e.ctrlKey&&(!ev||!e.altKey)||e.metaKey)return!1;let r=n.open.options[n.open.selected],o=n.active.find((e=>e.source==r.source)),i=r.completion.commitCharacters||o.result.commitCharacters;return i&&i.indexOf(e.key)>-1&&Wm(t,r),!1}})),nv=ls.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class rv{constructor(e,t,n,r){this.field=e,this.line=t,this.from=n,this.to=r}}class ov{constructor(e,t,n){this.field=e,this.from=t,this.to=n}map(e){let t=e.mapPos(this.from,-1,Be.TrackDel),n=e.mapPos(this.to,1,Be.TrackDel);return null==t||null==n?null:new ov(this.field,t,n)}}class iv{constructor(e,t){this.lines=e,this.fieldPositions=t}instantiate(e,t){let n=[],r=[t],o=e.doc.lineAt(t),i=/^\s*/.exec(o.text)[0];for(let s of this.lines){if(n.length){let n=i,o=/^\t*/.exec(s)[0].length;for(let t=0;t<o;t++)n+=e.facet(Xc);r.push(t+n.length-o),s=n+s.slice(o)}n.push(s),t+=s.length+1}let a=this.fieldPositions.map((e=>new ov(e.field,r[e.line]+e.from,r[e.line]+e.to)));return{text:n,ranges:a}}static parse(e){let t,n=[],r=[],o=[];for(let i of e.split(/\r\n?|\n/)){while(t=/[#$]\{(?:(\d+)(?::([^}]*))?|((?:\\[{}]|[^}])*))\}/.exec(i)){let e=t[1]?+t[1]:null,a=t[2]||t[3]||"",s=-1,l=a.replace(/\\[{}]/g,(e=>e[1]));for(let t=0;t<n.length;t++)(null!=e?n[t].seq==e:l&&n[t].name==l)&&(s=t);if(s<0){let t=0;while(t<n.length&&(null==e||null!=n[t].seq&&n[t].seq<e))t++;n.splice(t,0,{seq:e,name:l}),s=t;for(let e of o)e.field>=s&&e.field++}o.push(new rv(s,r.length,t.index,t.index+l.length)),i=i.slice(0,t.index)+a+i.slice(t.index+t[0].length)}i=i.replace(/\\([{}])/g,((e,t,n)=>{for(let i of o)i.line==r.length&&i.from>n&&(i.from--,i.to--);return t})),r.push(i)}return new iv(r,o)}}let av=Rr.widget({widget:new class extends Er{toDOM(){let e=document.createElement("span");return e.className="cm-snippetFieldPosition",e}ignoreEvent(){return!1}}}),sv=Rr.mark({class:"cm-snippetField"});class lv{constructor(e,t){this.ranges=e,this.active=t,this.deco=Rr.set(e.map((e=>(e.from==e.to?av:sv).range(e.from,e.to))))}map(e){let t=[];for(let n of this.ranges){let r=n.map(e);if(!r)return null;t.push(r)}return new lv(t,this.active)}selectionInsideField(e){return e.ranges.every((e=>this.ranges.some((t=>t.field==this.active&&t.from<=e.from&&t.to>=e.to))))}}const uv=Ct.define({map(e,t){return e&&e.map(t)}}),cv=Ct.define(),dv=at.define({create(){return null},update(e,t){for(let n of t.effects){if(n.is(uv))return n.value;if(n.is(cv)&&e)return new lv(e.ranges,n.value)}return e&&t.docChanged&&(e=e.map(t.changes)),e&&t.selection&&!e.selectionInsideField(t.selection)&&(e=null),e},provide:e=>ls.decorations.from(e,(e=>e?e.deco:Rr.none))});function hv(e,t){return Ye.create(e.filter((e=>e.field==t)).map((e=>Ye.range(e.from,e.to))))}function pv(e){let t=iv.parse(e);return(e,n,r,o)=>{let{text:i,ranges:a}=t.instantiate(e.state,r),s={changes:{from:r,to:o,insert:me.of(i)},scrollIntoView:!0,annotations:n?[hm.of(n),Mt.userEvent.of("input.complete")]:void 0};if(a.length&&(s.selection=hv(a,0)),a.some((e=>e.field>0))){let t=new lv(a,0),n=s.effects=[uv.of(t)];void 0===e.state.field(dv,!1)&&n.push(Ct.appendConfig.of([dv,_v,wv,nv]))}e.dispatch(e.state.update(s))}}function fv(e){return({state:t,dispatch:n})=>{let r=t.field(dv,!1);if(!r||e<0&&0==r.active)return!1;let o=r.active+e,i=e>0&&!r.ranges.some((t=>t.field==o+e));return n(t.update({selection:hv(r.ranges,o),effects:uv.of(i?null:new lv(r.ranges,o)),scrollIntoView:!0})),!0}}const gv=({state:e,dispatch:t})=>{let n=e.field(dv,!1);return!!n&&(t(e.update({effects:uv.of(null)})),!0)},mv=fv(1),vv=fv(-1);const yv=[{key:"Tab",run:mv,shift:vv},{key:"Escape",run:gv}],bv=Je.define({combine(e){return e.length?e[0]:yv}}),_v=ut.highest(vs.compute([bv],(e=>e.facet(bv))));function xv(e,t){return Object.assign(Object.assign({},t),{apply:pv(e)})}const wv=ls.domEventHandlers({mousedown(e,t){let n,r=t.state.field(dv,!1);if(!r||null==(n=t.posAtCoords({x:e.clientX,y:e.clientY})))return!1;let o=r.ranges.find((e=>e.from<=n&&e.to>=n));return!(!o||o.field==r.active)&&(t.dispatch({selection:hv(r.ranges,o.field),effects:uv.of(r.ranges.some((e=>e.field>o.field))?new lv(r.ranges,o.field):null),scrollIntoView:!0}),!0)}});const Ov={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},Sv=Ct.define({map(e,t){let n=t.mapPos(e,-1,Be.TrackAfter);return null==n?void 0:n}}),Av=new class extends Wt{};Av.startSide=1,Av.endSide=-1;const kv=at.define({create(){return Xt.empty},update(e,t){if(e=e.map(t.changes),t.selection){let n=t.state.doc.lineAt(t.selection.main.head);e=e.update({filter:e=>e>=n.from&&e<=n.to})}for(let n of t.effects)n.is(Sv)&&(e=e.update({add:[Av.range(n.value,n.value+1)]}));return e}});function Cv(){return[$v,kv]}const Mv="()[]{}<>";function Tv(e){for(let t=0;t<Mv.length;t+=2)if(Mv.charCodeAt(t)==e)return Mv.charAt(t+1);return Le(e<128?e:e+1)}function Pv(e,t){return e.languageDataAt("closeBrackets",t)[0]||Ov}const Iv="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),$v=ls.inputHandler.of(((e,t,n,r)=>{if((Iv?e.composing:e.compositionStarted)||e.state.readOnly)return!1;let o=e.state.selection.main;if(r.length>2||2==r.length&&1==ze(Ne(r,0))||t!=o.from||n!=o.to)return!1;let i=Rv(e.state,r);return!!i&&(e.dispatch(i),!0)})),Ev=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=Pv(e,e.selection.main.head),r=n.brackets||Ov.brackets,o=null,i=e.changeByRange((t=>{if(t.empty){let n=zv(e.doc,t.head);for(let o of r)if(o==n&&Lv(e.doc,t.head)==Tv(Ne(o,0)))return{changes:{from:t.head-o.length,to:t.head+o.length},range:Ye.cursor(t.head-o.length)}}return{range:o=t}}));return o||t(e.update(i,{scrollIntoView:!0,userEvent:"delete.backward"})),!o},Dv=[{key:"Backspace",run:Ev}];function Rv(e,t){let n=Pv(e,e.selection.main.head),r=n.brackets||Ov.brackets;for(let o of r){let i=Tv(Ne(o,0));if(t==o)return i==o?jv(e,o,r.indexOf(o+o+o)>-1,n):Vv(e,o,i,n.before||Ov.before);if(t==i&&Nv(e,e.selection.main.from))return Bv(e,o,i)}return null}function Nv(e,t){let n=!1;return e.field(kv).between(0,e.doc.length,(e=>{e==t&&(n=!0)})),n}function Lv(e,t){let n=e.sliceString(t,t+2);return n.slice(0,ze(Ne(n,0)))}function zv(e,t){let n=e.sliceString(t-2,t);return ze(Ne(n,0))==n.length?n:n.slice(1)}function Vv(e,t,n,r){let o=null,i=e.changeByRange((i=>{if(!i.empty)return{changes:[{insert:t,from:i.from},{insert:n,from:i.to}],effects:Sv.of(i.to+t.length),range:Ye.range(i.anchor+t.length,i.head+t.length)};let a=Lv(e.doc,i.head);return!a||/\s/.test(a)||r.indexOf(a)>-1?{changes:{insert:t+n,from:i.head},effects:Sv.of(i.head+t.length),range:Ye.cursor(i.head+t.length)}:{range:o=i}}));return o?null:e.update(i,{scrollIntoView:!0,userEvent:"input.type"})}function Bv(e,t,n){let r=null,o=e.changeByRange((t=>t.empty&&Lv(e.doc,t.head)==n?{changes:{from:t.head,to:t.head+n.length,insert:n},range:Ye.cursor(t.head+n.length)}:r={range:t}));return r?null:e.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function jv(e,t,n,r){let o=r.stringPrefixes||Ov.stringPrefixes,i=null,a=e.changeByRange((r=>{if(!r.empty)return{changes:[{insert:t,from:r.from},{insert:t,from:r.to}],effects:Sv.of(r.to+t.length),range:Ye.range(r.anchor+t.length,r.head+t.length)};let a,s=r.head,l=Lv(e.doc,s);if(l==t){if(Qv(e,s))return{changes:{insert:t+t,from:s},effects:Sv.of(s+t.length),range:Ye.cursor(s+t.length)};if(Nv(e,s)){let r=n&&e.sliceDoc(s,s+3*t.length)==t+t+t,o=r?t+t+t:t;return{changes:{from:s,to:s+o.length,insert:o},range:Ye.cursor(s+o.length)}}}else{if(n&&e.sliceDoc(s-2*t.length,s)==t+t&&(a=Wv(e,s-2*t.length,o))>-1&&Qv(e,a))return{changes:{insert:t+t+t+t,from:s},effects:Sv.of(s+t.length),range:Ye.cursor(s+t.length)};if(e.charCategorizer(s)(l)!=Lt.Word&&Wv(e,s,o)>-1&&!Fv(e,s,t,o))return{changes:{insert:t+t,from:s},effects:Sv.of(s+t.length),range:Ye.cursor(s+t.length)}}return{range:i=r}}));return i?null:e.update(a,{scrollIntoView:!0,userEvent:"input.type"})}function Qv(e,t){let n=Nc(e).resolveInner(t+1);return n.parent&&n.from==t}function Fv(e,t,n,r){let o=Nc(e).resolveInner(t,-1),i=r.reduce(((e,t)=>Math.max(e,t.length)),0);for(let a=0;a<5;a++){let a=e.sliceDoc(o.from,Math.min(o.to,o.from+n.length+i)),s=a.indexOf(n);if(!s||s>-1&&r.indexOf(a.slice(0,s))>-1){let t=o.firstChild;while(t&&t.from==o.from&&t.to-t.from>n.length+s){if(e.sliceDoc(t.to-n.length,t.to)==n)return!1;t=t.firstChild}return!0}let l=o.to==t&&o.parent;if(!l)break;o=l}return!1}function Wv(e,t,n){let r=e.charCategorizer(t);if(r(e.sliceDoc(t-1,t))!=Lt.Word)return t;for(let o of n){let n=t-o.length;if(e.sliceDoc(n,t)==o&&r(e.sliceDoc(n-1,n))!=Lt.Word)return n}return-1}function Hv(e={}){return[tv,Fm,_m.of(e),Jm,Gv,nv]}const Zv=[{key:"Ctrl-Space",run:Xm},{key:"Escape",run:Um},{key:"ArrowDown",run:Zm(!0)},{key:"ArrowUp",run:Zm(!1)},{key:"PageDown",run:Zm(!0,"page")},{key:"PageUp",run:Zm(!1,"page")},{key:"Enter",run:Gm}],Gv=ut.highest(vs.computeN([_m],(e=>e.facet(_m).defaultKeymap?[Zv]:[])));class Xv{constructor(e,t,n){this.from=e,this.to=t,this.diagnostic=n}}class Uv{constructor(e,t,n){this.diagnostics=e,this.panel=t,this.selected=n}static init(e,t,n){let r=e,o=n.facet(cy).markerFilter;o&&(r=o(r,n));let i=Rr.set(r.map((e=>e.from==e.to||e.from==e.to-1&&n.doc.lineAt(e.from).to==e.from?Rr.widget({widget:new py(e),diagnostic:e}).range(e.from):Rr.mark({attributes:{class:"cm-lintRange cm-lintRange-"+e.severity+(e.markClass?" "+e.markClass:"")},diagnostic:e}).range(e.from,e.to))),!0);return new Uv(i,t,Yv(i))}}function Yv(e,t=null,n=0){let r=null;return e.between(n,1e9,((e,n,{spec:o})=>{if(!t||o.diagnostic==t)return r=new Xv(e,n,o.diagnostic),!1})),r}function qv(e,t){let n=t.pos,r=t.end||n,o=e.state.facet(cy).hideOn(e,n,r);if(null!=o)return o;let i=e.startState.doc.lineAt(t.pos);return!(!e.effects.some((e=>e.is(Jv)))&&!e.changes.touchesRange(i.from,Math.max(i.to,r)))}function Kv(e,t){return e.field(ny,!1)?t:t.concat(Ct.appendConfig.of(by))}const Jv=Ct.define(),ey=Ct.define(),ty=Ct.define(),ny=at.define({create(){return new Uv(Rr.none,null,null)},update(e,t){if(t.docChanged&&e.diagnostics.size){let n=e.diagnostics.map(t.changes),r=null,o=e.panel;if(e.selected){let o=t.changes.mapPos(e.selected.from,1);r=Yv(n,e.selected.diagnostic,o)||Yv(n,null,o)}!n.size&&o&&t.state.facet(cy).autoPanel&&(o=null),e=new Uv(n,o,r)}for(let n of t.effects)if(n.is(Jv)){let r=t.state.facet(cy).autoPanel?n.value.length?gy.open:null:e.panel;e=Uv.init(n.value,r,t.state)}else n.is(ey)?e=new Uv(e.diagnostics,n.value?gy.open:null,e.selected):n.is(ty)&&(e=new Uv(e.diagnostics,e.panel,n.value));return e},provide:e=>[Gl.from(e,(e=>e.panel)),ls.decorations.from(e,(e=>e.diagnostics))]});const ry=Rr.mark({class:"cm-lintRange cm-lintRange-active"});function oy(e,t,n){let{diagnostics:r}=e.state.field(ny),o=[],i=2e8,a=0;r.between(t-(n<0?1:0),t+(n>0?1:0),((e,r,{spec:s})=>{t>=e&&t<=r&&(e==r||(t>e||n>0)&&(t<r||n<0))&&(o.push(s.diagnostic),i=Math.min(e,i),a=Math.max(r,a))}));let s=e.state.facet(cy).tooltipFilter;return s&&(o=s(o,e.state)),o.length?{pos:i,end:a,above:e.state.doc.lineAt(i).to<a,create(){return{dom:iy(e,o)}}}:null}function iy(e,t){return Wf("ul",{class:"cm-tooltip-lint"},t.map((t=>hy(e,t,!1))))}const ay=e=>{let t=e.state.field(ny,!1);t&&t.panel||e.dispatch({effects:Kv(e.state,[ey.of(!0)])});let n=Fl(e,gy.open);return n&&n.dom.querySelector(".cm-panel-lint ul").focus(),!0},sy=e=>{let t=e.state.field(ny,!1);return!(!t||!t.panel)&&(e.dispatch({effects:ey.of(!1)}),!0)},ly=e=>{let t=e.state.field(ny,!1);if(!t)return!1;let n=e.state.selection.main,r=t.diagnostics.iter(n.to+1);return!(!r.value&&(r=t.diagnostics.iter(0),!r.value||r.from==n.from&&r.to==n.to))&&(e.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0}),!0)},uy=[{key:"Mod-Shift-m",run:ay,preventDefault:!0},{key:"F8",run:ly}],cy=Je.define({combine(e){return Object.assign({sources:e.map((e=>e.source)).filter((e=>null!=e))},Ft(e.map((e=>e.config)),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{needsRefresh:(e,t)=>e?t?n=>e(n)||t(n):e:t}))}});function dy(e){let t=[];if(e)e:for(let{name:n}of e){for(let e=0;e<n.length;e++){let r=n[e];if(/[a-zA-Z]/.test(r)&&!t.some((e=>e.toLowerCase()==r.toLowerCase()))){t.push(r);continue e}}t.push("")}return t}function hy(e,t,n){var r;let o=n?dy(t.actions):[];return Wf("li",{class:"cm-diagnostic cm-diagnostic-"+t.severity},Wf("span",{class:"cm-diagnosticText"},t.renderMessage?t.renderMessage(e):t.message),null===(r=t.actions)||void 0===r?void 0:r.map(((n,r)=>{let i=!1,a=r=>{if(r.preventDefault(),i)return;i=!0;let o=Yv(e.state.field(ny).diagnostics,t);o&&n.apply(e,o.from,o.to)},{name:s}=n,l=o[r]?s.indexOf(o[r]):-1,u=l<0?s:[s.slice(0,l),Wf("u",s.slice(l,l+1)),s.slice(l+1)];return Wf("button",{type:"button",class:"cm-diagnosticAction",onclick:a,onmousedown:a,"aria-label":` Action: ${s}${l<0?"":` (access key "${o[r]})"`}.`},u)})),t.source&&Wf("div",{class:"cm-diagnosticSource"},t.source))}class py extends Er{constructor(e){super(),this.diagnostic=e}eq(e){return e.diagnostic==this.diagnostic}toDOM(){return Wf("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class fy{constructor(e,t){this.diagnostic=t,this.id="item_"+Math.floor(4294967295*Math.random()).toString(16),this.dom=hy(e,t,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class gy{constructor(e){this.view=e,this.items=[];let t=t=>{if(27==t.keyCode)sy(this.view),this.view.focus();else if(38==t.keyCode||33==t.keyCode)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(40==t.keyCode||34==t.keyCode)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(36==t.keyCode)this.moveSelection(0);else if(35==t.keyCode)this.moveSelection(this.items.length-1);else if(13==t.keyCode)this.view.focus();else{if(!(t.keyCode>=65&&t.keyCode<=90&&this.selectedIndex>=0))return;{let{diagnostic:n}=this.items[this.selectedIndex],r=dy(n.actions);for(let o=0;o<r.length;o++)if(r[o].toUpperCase().charCodeAt(0)==t.keyCode){let t=Yv(this.view.state.field(ny).diagnostics,n);t&&n.actions[o].apply(e,t.from,t.to)}}}t.preventDefault()},n=e=>{for(let t=0;t<this.items.length;t++)this.items[t].dom.contains(e.target)&&this.moveSelection(t)};this.list=Wf("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:t,onclick:n}),this.dom=Wf("div",{class:"cm-panel-lint"},this.list,Wf("button",{type:"button",name:"close","aria-label":this.view.state.phrase("close"),onclick:()=>sy(this.view)},"×")),this.update()}get selectedIndex(){let e=this.view.state.field(ny).selected;if(!e)return-1;for(let t=0;t<this.items.length;t++)if(this.items[t].diagnostic==e.diagnostic)return t;return-1}update(){let{diagnostics:e,selected:t}=this.view.state.field(ny),n=0,r=!1,o=null;e.between(0,this.view.state.doc.length,((e,i,{spec:a})=>{let s,l=-1;for(let t=n;t<this.items.length;t++)if(this.items[t].diagnostic==a.diagnostic){l=t;break}l<0?(s=new fy(this.view,a.diagnostic),this.items.splice(n,0,s),r=!0):(s=this.items[l],l>n&&(this.items.splice(n,l-n),r=!0)),t&&s.diagnostic==t.diagnostic?s.dom.hasAttribute("aria-selected")||(s.dom.setAttribute("aria-selected","true"),o=s):s.dom.hasAttribute("aria-selected")&&s.dom.removeAttribute("aria-selected"),n++}));while(n<this.items.length&&!(1==this.items.length&&this.items[0].diagnostic.from<0))r=!0,this.items.pop();0==this.items.length&&(this.items.push(new fy(this.view,{from:-1,to:-1,severity:"info",message:this.view.state.phrase("No diagnostics")})),r=!0),o?(this.list.setAttribute("aria-activedescendant",o.id),this.view.requestMeasure({key:this,read:()=>({sel:o.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:e,panel:t})=>{let n=t.height/this.list.offsetHeight;e.top<t.top?this.list.scrollTop-=(t.top-e.top)/n:e.bottom>t.bottom&&(this.list.scrollTop+=(e.bottom-t.bottom)/n)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),r&&this.sync()}sync(){let e=this.list.firstChild;function t(){let t=e;e=t.nextSibling,t.remove()}for(let n of this.items)if(n.dom.parentNode==this.list){while(e!=n.dom)t();e=n.dom.nextSibling}else this.list.insertBefore(n.dom,e);while(e)t()}moveSelection(e){if(this.selectedIndex<0)return;let t=this.view.state.field(ny),n=Yv(t.diagnostics,this.items[e].diagnostic);n&&this.view.dispatch({selection:{anchor:n.from,head:n.to},scrollIntoView:!0,effects:ty.of(n)})}static open(e){return new gy(e)}}function my(e,t='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${t}>${encodeURIComponent(e)}</svg>')`}function vy(e){return my(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${e}" fill="none" stroke-width=".7"/>`,'width="6" height="3"')}const yy=ls.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:vy("#d11")},".cm-lintRange-warning":{backgroundImage:vy("orange")},".cm-lintRange-info":{backgroundImage:vy("#999")},".cm-lintRange-hint":{backgroundImage:vy("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}});const by=[ny,ls.decorations.compute([ny],(e=>{let{selected:t,panel:n}=e.field(ny);return t&&n&&t.from!=t.to?Rr.set([ry.range(t.from,t.to)]):Rr.none})),Vl(oy,{hideOn:qv}),yy];const _y=(()=>[pu(),vu(),nl(),Lh(),Qd(),Ns(),Zs(),Qt.allowMultipleSelections.of(!0),pd(),Xd(qd,{fallback:!0}),sh(),Cv(),Hv(),bl(),wl(),ul(),ug(),vs.of([...Dv,...Qf,...Yg,...np,...Ed,...Zv,...uy])])();
  12. /*!
  13. * VueCodemirror v6.1.1
  14. * Copyright (c) Surmon. All rights reserved.
  15. * Released under the MIT License.
  16. * Surmon
  17. */
  18. var xy,wy=Object.freeze({autofocus:!1,disabled:!1,indentWithTab:!0,tabSize:2,placeholder:"",autoDestroy:!0,extensions:[_y]}),Oy=Symbol("vue-codemirror-global-config"),Sy=function(e){var t=e.onUpdate,n=e.onChange,r=e.onFocus,o=e.onBlur,i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["onUpdate","onChange","onFocus","onBlur"]);return Qt.create({doc:i.doc,selection:i.selection,extensions:(Array.isArray(i.extensions)?i.extensions:[i.extensions]).concat([ls.updateListener.of((function(e){t(e),e.docChanged&&n(e.state.doc.toString(),e),e.focusChanged&&(e.view.hasFocus?r(e):o(e))}))])})},Ay=function(e){var t=new dt;return{compartment:t,run:function(n){t.get(e.state)?e.dispatch({effects:t.reconfigure(n)}):e.dispatch({effects:Ct.appendConfig.of(t.of(n))})}}},ky=function(e,t){var n=Ay(e),r=n.compartment,o=n.run;return function(n){var i=r.get(e.state);o((null!=n?n:i!==t)?t:[])}},Cy={type:Boolean,default:void 0},My={autofocus:Cy,disabled:Cy,indentWithTab:Cy,tabSize:Number,placeholder:String,style:Object,autoDestroy:Cy,phrases:Object,root:Object,extensions:Array,selection:Object},Ty={modelValue:{type:String,default:""}},Py=Object.assign(Object.assign({},My),Ty);!function(e){e.Change="change",e.Update="update",e.Focus="focus",e.Blur="blur",e.Ready="ready",e.ModelUpdate="update:modelValue"}(xy||(xy={}));var Iy={};Iy[xy.Change]=function(e,t){return!0},Iy[xy.Update]=function(e){return!0},Iy[xy.Focus]=function(e){return!0},Iy[xy.Blur]=function(e){return!0},Iy[xy.Ready]=function(e){return!0};var $y={};$y[xy.ModelUpdate]=Iy[xy.Change];var Ey=Object.assign(Object.assign({},Iy),$y),Dy=(0,r.defineComponent)({name:"VueCodemirror",props:Object.assign({},Py),emits:Object.assign({},Ey),setup:function(e,t){var n=(0,r.shallowRef)(),o=(0,r.shallowRef)(),i=(0,r.shallowRef)(),a=Object.assign(Object.assign({},wy),(0,r.inject)(Oy,{})),s=(0,r.computed)((function(){var t={};return Object.keys((0,r.toRaw)(e)).forEach((function(n){var r;"modelValue"!==n&&(t[n]=null!==(r=e[n])&&void 0!==r?r:a[n])})),t}));return(0,r.onMounted)((function(){var l;o.value=Sy({doc:e.modelValue,selection:s.value.selection,extensions:null!==(l=a.extensions)&&void 0!==l?l:[],onFocus:function(e){return t.emit(xy.Focus,e)},onBlur:function(e){return t.emit(xy.Blur,e)},onUpdate:function(e){return t.emit(xy.Update,e)},onChange:function(n,r){n!==e.modelValue&&(t.emit(xy.Change,n,r),t.emit(xy.ModelUpdate,n,r))}}),i.value=function(e){return new ls(Object.assign({},e))}({state:o.value,parent:n.value,root:s.value.root});var u=function(e){var t=function(){return e.state.doc.toString()},n=Ay(e).run,r=ky(e,[ls.editable.of(!1),Qt.readOnly.of(!0)]),o=ky(e,vs.of([Ff])),i=Ay(e).run,a=Ay(e).run,s=Ay(e).run,l=Ay(e).run;return{focus:function(){return e.focus()},getDoc:t,setDoc:function(n){n!==t()&&e.dispatch({changes:{from:0,to:e.state.doc.length,insert:n}})},reExtensions:n,toggleDisabled:r,toggleIndentWithTab:o,setTabSize:function(e){i([Qt.tabSize.of(e),Xc.of(" ".repeat(e))])},setPhrases:function(e){a([Qt.phrases.of(e)])},setPlaceholder:function(e){s(pl(e))},setStyle:function(e){void 0===e&&(e={}),l(ls.theme({"&":Object.assign({},e)}))}}}(i.value);(0,r.watch)((function(){return e.modelValue}),(function(e){e!==u.getDoc()&&u.setDoc(e)})),(0,r.watch)((function(){return e.extensions}),(function(e){return u.reExtensions(e||[])}),{immediate:!0}),(0,r.watch)((function(){return s.value.disabled}),(function(e){return u.toggleDisabled(e)}),{immediate:!0}),(0,r.watch)((function(){return s.value.indentWithTab}),(function(e){return u.toggleIndentWithTab(e)}),{immediate:!0}),(0,r.watch)((function(){return s.value.tabSize}),(function(e){return u.setTabSize(e)}),{immediate:!0}),(0,r.watch)((function(){return s.value.phrases}),(function(e){return u.setPhrases(e||{})}),{immediate:!0}),(0,r.watch)((function(){return s.value.placeholder}),(function(e){return u.setPlaceholder(e)}),{immediate:!0}),(0,r.watch)((function(){return s.value.style}),(function(e){return u.setStyle(e)}),{immediate:!0}),s.value.autofocus&&u.focus(),t.emit(xy.Ready,{state:o.value,view:i.value,container:n.value})})),(0,r.onBeforeUnmount)((function(){s.value.autoDestroy&&i.value&&function(e){e.destroy()}(i.value)})),function(){return(0,r.h)("div",{class:"v-codemirror",style:{display:"contents"},ref:n})}}}),Ry=Dy;const Ny="#e5c07b",Ly="#e06c75",zy="#56b6c2",Vy="#ffffff",By="#abb2bf",jy="#7d8799",Qy="#61afef",Fy="#98c379",Wy="#d19a66",Hy="#c678dd",Zy="#21252b",Gy="#2c313a",Xy="#282c34",Uy="#353a42",Yy="#3E4451",qy="#528bff",Ky=ls.theme({"&":{color:By,backgroundColor:Xy},".cm-content":{caretColor:qy},".cm-cursor, .cm-dropCursor":{borderLeftColor:qy},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:Yy},".cm-panels":{backgroundColor:Zy,color:By},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:Xy,color:jy,border:"none"},".cm-activeLineGutter":{backgroundColor:Gy},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:Uy},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:Uy,borderBottomColor:Uy},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:Gy,color:By}}},{dark:!0}),Jy=Wd.define([{tag:Mc.keyword,color:Hy},{tag:[Mc.name,Mc.deleted,Mc.character,Mc.propertyName,Mc.macroName],color:Ly},{tag:[Mc.function(Mc.variableName),Mc.labelName],color:Qy},{tag:[Mc.color,Mc.constant(Mc.name),Mc.standard(Mc.name)],color:Wy},{tag:[Mc.definition(Mc.name),Mc.separator],color:By},{tag:[Mc.typeName,Mc.className,Mc.number,Mc.changed,Mc.annotation,Mc.modifier,Mc.self,Mc.namespace],color:Ny},{tag:[Mc.operator,Mc.operatorKeyword,Mc.url,Mc.escape,Mc.regexp,Mc.link,Mc.special(Mc.string)],color:zy},{tag:[Mc.meta,Mc.comment],color:jy},{tag:Mc.strong,fontWeight:"bold"},{tag:Mc.emphasis,fontStyle:"italic"},{tag:Mc.strikethrough,textDecoration:"line-through"},{tag:Mc.link,color:jy,textDecoration:"underline"},{tag:Mc.heading,fontWeight:"bold",color:Ly},{tag:[Mc.atom,Mc.bool,Mc.special(Mc.variableName)],color:Wy},{tag:[Mc.processingInstruction,Mc.string,Mc.inserted],color:Fy},{tag:Mc.invalid,color:Vy}]),eb=[Ky,Xd(Jy)];class tb{constructor(e,t,n,r,o,i,a,s,l,u=0,c){this.p=e,this.stack=t,this.state=n,this.reducePos=r,this.pos=o,this.score=i,this.buffer=a,this.bufferBase=s,this.curContext=l,this.lookAhead=u,this.parent=c}toString(){return`[${this.stack.filter(((e,t)=>t%3==0)).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,t,n=0){let r=e.parser.context;return new tb(e,[],t,n,n,0,[],0,r?new nb(r,r.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var t;let n=e>>19,r=65535&e,{parser:o}=this.p;this.reducePos<this.pos-25&&this.setLookAhead(this.pos);let i=o.dynamicPrecedence(r);if(i&&(this.score+=i),0==n)return this.pushState(o.getGoto(this.state,r,!0),this.reducePos),r<o.minRepeatTerm&&this.storeNode(r,this.reducePos,this.reducePos,4,!0),void this.reduceContext(r,this.reducePos);let a=this.stack.length-3*(n-1)-(262144&e?6:0),s=a?this.stack[a-2]:this.p.ranges[0].from,l=this.reducePos-s;l>=2e3&&!(null===(t=this.p.parser.nodeSet.types[r])||void 0===t?void 0:t.isAnonymous)&&(s==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=l):this.p.lastBigReductionSize<l&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=s,this.p.lastBigReductionSize=l));let u=a?this.stack[a-1]:0,c=this.bufferBase+this.buffer.length-u;if(r<o.minRepeatTerm||131072&e){let e=o.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(r,s,e,c+4,!0)}if(262144&e)this.state=this.stack[a];else{let e=this.stack[a-3];this.state=o.getGoto(e,r,!0)}while(this.stack.length>a)this.stack.pop();this.reduceContext(r,s)}storeNode(e,t,n,r=4,o=!1){if(0==e&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let e=this,r=this.buffer.length;if(0==r&&e.parent&&(r=e.bufferBase-e.parent.bufferBase,e=e.parent),r>0&&0==e.buffer[r-4]&&e.buffer[r-1]>-1){if(t==n)return;if(e.buffer[r-2]>=t)return void(e.buffer[r-2]=n)}}if(o&&this.pos!=n){let o=this.buffer.length;if(o>0&&0!=this.buffer[o-4])while(o>0&&this.buffer[o-2]>n)this.buffer[o]=this.buffer[o-4],this.buffer[o+1]=this.buffer[o-3],this.buffer[o+2]=this.buffer[o-2],this.buffer[o+3]=this.buffer[o-1],o-=4,r>4&&(r-=4);this.buffer[o]=e,this.buffer[o+1]=t,this.buffer[o+2]=n,this.buffer[o+3]=r}else this.buffer.push(e,t,n,r)}shift(e,t,n,r){if(131072&e)this.pushState(65535&e,this.pos);else if(0==(262144&e)){let o=e,{parser:i}=this.p;(r>this.pos||t<=i.maxNode)&&(this.pos=r,i.stateFlag(o,1)||(this.reducePos=r)),this.pushState(o,n),this.shiftContext(t,n),t<=i.maxNode&&this.buffer.push(t,n,r,4)}else this.pos=r,this.shiftContext(t,n),t<=this.p.parser.maxNode&&this.buffer.push(t,n,r,4)}apply(e,t,n,r){65536&e?this.reduce(e):this.shift(e,t,n,r)}useNode(e,t){let n=this.p.reused.length-1;(n<0||this.p.reused[n]!=e)&&(this.p.reused.push(e),n++);let r=this.pos;this.reducePos=this.pos=r+e.length,this.pushState(t,r),this.buffer.push(n,r,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,t=e.buffer.length;while(t>0&&e.buffer[t-2]>e.reducePos)t-=4;let n=e.buffer.slice(t),r=e.bufferBase+t;while(e&&r==e.bufferBase)e=e.parent;return new tb(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,n,r,this.curContext,this.lookAhead,e)}recoverByDelete(e,t){let n=e<=this.p.parser.maxNode;n&&this.storeNode(e,this.pos,t,4),this.storeNode(0,this.pos,t,n?8:4),this.pos=this.reducePos=t,this.score-=190}canShift(e){for(let t=new rb(this);;){let n=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,e);if(0==n)return!1;if(0==(65536&n))return!0;t.reduce(n)}}recoverByInsert(e){if(this.stack.length>=300)return[];let t=this.p.parser.nextStates(this.state);if(t.length>8||this.stack.length>=120){let n=[];for(let r,o=0;o<t.length;o+=2)(r=t[o+1])!=this.state&&this.p.parser.hasAction(r,e)&&n.push(t[o],r);if(this.stack.length<120)for(let e=0;n.length<8&&e<t.length;e+=2){let r=t[e+1];n.some(((e,t)=>1&t&&e==r))||n.push(t[e],r)}t=n}let n=[];for(let r=0;r<t.length&&n.length<4;r+=2){let e=t[r+1];if(e==this.state)continue;let o=this.split();o.pushState(e,this.pos),o.storeNode(0,o.pos,o.pos,4,!0),o.shiftContext(t[r],this.pos),o.reducePos=this.pos,o.score-=200,n.push(o)}return n}forceReduce(){let{parser:e}=this.p,t=e.stateSlot(this.state,5);if(0==(65536&t))return!1;if(!e.validAction(this.state,t)){let n=t>>19,r=65535&t,o=this.stack.length-3*n;if(o<0||e.getGoto(this.stack[o],r,!1)<0){let e=this.findForcedReduction();if(null==e)return!1;t=e}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(t),!0}findForcedReduction(){let{parser:e}=this.p,t=[],n=(r,o)=>{if(!t.includes(r))return t.push(r),e.allActions(r,(t=>{if(393216&t);else if(65536&t){let n=(t>>19)-o;if(n>1){let r=65535&t,o=this.stack.length-3*n;if(o>=0&&e.getGoto(this.stack[o],r,!1)>=0)return n<<19|65536|r}}else{let e=n(t,o+1);if(null!=e)return e}}))};return n(this.state,0)}forceAll(){while(!this.p.parser.stateFlag(this.state,2))if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(3!=this.stack.length)return!1;let{parser:e}=this.p;return 65535==e.data[e.stateSlot(this.state,1)]&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let t=0;t<this.stack.length;t+=3)if(this.stack[t]!=e.stack[t])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(e){return this.p.parser.dialect.flags[e]}shiftContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,e,this,this.p.stream.reset(t)))}reduceContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,e,this,this.p.stream.reset(t)))}emitContext(){let e=this.buffer.length-1;(e<0||-3!=this.buffer[e])&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let e=this.buffer.length-1;(e<0||-4!=this.buffer[e])&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(e){if(e!=this.curContext.context){let t=new nb(this.curContext.tracker,e);t.hash!=this.curContext.hash&&this.emitContext(),this.curContext=t}}setLookAhead(e){e>this.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class nb{constructor(e,t){this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}}class rb{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let t=65535&e,n=e>>19;0==n?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=3*(n-1);let r=this.start.p.parser.getGoto(this.stack[this.base-3],t,!0);this.state=r}}class ob{constructor(e,t,n){this.stack=e,this.pos=t,this.index=n,this.buffer=e.buffer,0==this.index&&this.maybeNext()}static create(e,t=e.bufferBase+e.buffer.length){return new ob(e,t,t-e.bufferBase)}maybeNext(){let e=this.stack.parent;null!=e&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,0==this.index&&this.maybeNext()}fork(){return new ob(this.stack,this.pos,this.index)}}function ib(e,t=Uint16Array){if("string"!=typeof e)return e;let n=null;for(let r=0,o=0;r<e.length;){let i=0;for(;;){let t=e.charCodeAt(r++),n=!1;if(126==t){i=65535;break}t>=92&&t--,t>=34&&t--;let o=t-32;if(o>=46&&(o-=46,n=!0),i+=o,n)break;i*=46}n?n[o++]=i:n=new t(i)}return n}class ab{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const sb=new ab;class lb{constructor(e,t){this.input=e,this.ranges=t,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=sb,this.rangeIndex=0,this.pos=this.chunkPos=t[0].from,this.range=t[0],this.end=t[t.length-1].to,this.readNext()}resolveOffset(e,t){let n=this.range,r=this.rangeIndex,o=this.pos+e;while(o<n.from){if(!r)return null;let e=this.ranges[--r];o-=n.from-e.to,n=e}while(t<0?o>n.to:o>=n.to){if(r==this.ranges.length-1)return null;let e=this.ranges[++r];o+=e.from-n.to,n=e}return o}clipPos(e){if(e>=this.range.from&&e<this.range.to)return e;for(let t of this.ranges)if(t.to>e)return Math.max(e,t.from);return this.end}peek(e){let t,n,r=this.chunkOff+e;if(r>=0&&r<this.chunk.length)t=this.pos+e,n=this.chunk.charCodeAt(r);else{let r=this.resolveOffset(e,1);if(null==r)return-1;if(t=r,t>=this.chunk2Pos&&t<this.chunk2Pos+this.chunk2.length)n=this.chunk2.charCodeAt(t-this.chunk2Pos);else{let e=this.rangeIndex,r=this.range;while(r.to<=t)r=this.ranges[++e];this.chunk2=this.input.chunk(this.chunk2Pos=t),t+this.chunk2.length>r.to&&(this.chunk2=this.chunk2.slice(0,r.to-t)),n=this.chunk2.charCodeAt(0)}}return t>=this.token.lookAhead&&(this.token.lookAhead=t+1),n}acceptToken(e,t=0){let n=t?this.resolveOffset(t,-1):this.pos;if(null==n||n<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=e,this.token.end=n}acceptTokenTo(e,t){this.token.value=e,this.token.end=t}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:e,chunkPos:t}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=e,this.chunk2Pos=t,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let e=this.input.chunk(this.pos),t=this.pos+e.length;this.chunk=t>this.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){this.chunkOff+=e;while(this.pos+e>=this.range.to){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,t){if(t?(this.token=t,t.start=e,t.lookAhead=e+1,t.value=t.extended=-1):this.token=sb,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;while(e<this.range.from)this.range=this.ranges[--this.rangeIndex];while(e>=this.range.to)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e<this.chunkPos+this.chunk.length?this.chunkOff=e-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(e,t){if(e>=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,t-this.chunkPos);if(e>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,t-this.chunk2Pos);if(e>=this.range.from&&t<=this.range.to)return this.input.read(e,t);let n="";for(let r of this.ranges){if(r.from>=t)break;r.to>e&&(n+=this.input.read(Math.max(r.from,e),Math.min(r.to,t)))}return n}}class ub{constructor(e,t){this.data=e,this.id=t}token(e,t){let{parser:n}=t.p;hb(this.data,e,t,this.id,n.data,n.tokenPrecTable)}}ub.prototype.contextual=ub.prototype.fallback=ub.prototype.extend=!1;class cb{constructor(e,t,n){this.precTable=t,this.elseToken=n,this.data="string"==typeof e?ib(e):e}token(e,t){let n=e.pos,r=0;for(;;){let n=e.next<0,o=e.resolveOffset(1,1);if(hb(this.data,e,t,0,this.data,this.precTable),e.token.value>-1)break;if(null==this.elseToken)return;if(n||r++,null==o)break;e.reset(o,e.token)}r&&(e.reset(n,e.token),e.acceptToken(this.elseToken,r))}}cb.prototype.contextual=ub.prototype.fallback=ub.prototype.extend=!1;class db{constructor(e,t={}){this.token=e,this.contextual=!!t.contextual,this.fallback=!!t.fallback,this.extend=!!t.extend}}function hb(e,t,n,r,o,i){let a=0,s=1<<r,{dialect:l}=n.p.parser;e:for(;;){if(0==(s&e[a]))break;let n=e[a+1];for(let d=a+3;d<n;d+=2)if((e[d+1]&s)>0){let n=e[d];if(l.allows(n)&&(-1==t.token.value||t.token.value==n||fb(n,t.token.value,o,i))){t.acceptToken(n);break}}let r=t.next,u=0,c=e[a+2];if(!(t.next<0&&c>u&&65535==e[n+3*c-3])){for(;u<c;){let o=u+c>>1,i=n+o+(o<<1),s=e[i],l=e[i+1]||65536;if(r<s)c=o;else{if(!(r>=l)){a=e[i+2],t.advance();continue e}u=o+1}}break}a=e[n+3*c-1]}}function pb(e,t,n){for(let r,o=t;65535!=(r=e[o]);o++)if(r==n)return o-t;return-1}function fb(e,t,n,r){let o=pb(n,r,t);return o<0||pb(n,r,e)<o}const gb="undefined"!=typeof process&&{NODE_ENV:"production",BASE_URL:"/",__VUE_PROD_HYDRATION_MISMATCH_DETAILS__:!1}&&/\bparse\b/.test({NODE_ENV:"production",BASE_URL:"/",__VUE_PROD_HYDRATION_MISMATCH_DETAILS__:!1}.LOG);let mb=null;function vb(e,t,n){let r=e.cursor(Mu.IncludeAnonymous);for(r.moveTo(t);;)if(!(n<0?r.childBefore(t):r.childAfter(t)))for(;;){if((n<0?r.to<t:r.from>t)&&!r.type.isError)return n<0?Math.max(0,Math.min(r.to-1,t-25)):Math.min(e.length,Math.max(r.from+1,t+25));if(n<0?r.prevSibling():r.nextSibling())break;if(!r.parent())return n<0?0:e.length}}class yb{constructor(e,t){this.fragments=e,this.nodeSet=t,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){this.safeFrom=e.openStart?vb(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?vb(e.tree,e.to+e.offset,-1)-e.offset:e.to;while(this.trees.length)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(e<this.nextStart)return null;while(this.fragment&&this.safeTo<=e)this.nextFragment();if(!this.fragment)return null;for(;;){let t=this.trees.length-1;if(t<0)return this.nextFragment(),null;let n=this.trees[t],r=this.index[t];if(r==n.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let o=n.children[r],i=this.start[t]+n.positions[r];if(i>e)return this.nextStart=i,null;if(o instanceof Tu){if(i==e){if(i<this.safeFrom)return null;let e=i+o.length;if(e<=this.safeTo){let t=o.prop(xu.lookAhead);if(!t||e+t<this.fragment.to)return o}}this.index[t]++,i+o.length>=Math.max(this.safeFrom,e)&&(this.trees.push(o),this.start.push(i),this.index.push(0))}else this.index[t]++,this.nextStart=i+o.length}}}class bb{constructor(e,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map((e=>new ab))}getActions(e){let t=0,n=null,{parser:r}=e.p,{tokenizers:o}=r,i=r.stateSlot(e.state,3),a=e.curContext?e.curContext.hash:0,s=0;for(let l=0;l<o.length;l++){if(0==(1<<l&i))continue;let r=o[l],u=this.tokens[l];if((!n||r.fallback)&&((r.contextual||u.start!=e.pos||u.mask!=i||u.context!=a)&&(this.updateCachedToken(u,r,e),u.mask=i,u.context=a),u.lookAhead>u.end+25&&(s=Math.max(u.lookAhead,s)),0!=u.value)){let o=t;if(u.extended>-1&&(t=this.addActions(e,u.extended,u.end,t)),t=this.addActions(e,u.value,u.end,t),!r.extend&&(n=u,t>o))break}}while(this.actions.length>t)this.actions.pop();return s&&e.setLookAhead(s),n||e.pos!=this.stream.end||(n=new ab,n.value=e.p.parser.eofTerm,n.start=n.end=e.pos,t=this.addActions(e,n.value,n.end,t)),this.mainToken=n,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let t=new ab,{pos:n,p:r}=e;return t.start=n,t.end=Math.min(n+1,r.stream.end),t.value=n==r.stream.end?r.parser.eofTerm:0,t}updateCachedToken(e,t,n){let r=this.stream.clipPos(n.pos);if(t.token(this.stream.reset(r,e),n),e.value>-1){let{parser:t}=n.p;for(let r=0;r<t.specialized.length;r++)if(t.specialized[r]==e.value){let o=t.specializers[r](this.stream.read(e.start,e.end),n);if(o>=0&&n.p.parser.dialect.allows(o>>1)){0==(1&o)?e.value=o>>1:e.extended=o>>1;break}}}else e.value=0,e.end=this.stream.clipPos(r+1)}putAction(e,t,n,r){for(let o=0;o<r;o+=3)if(this.actions[o]==e)return r;return this.actions[r++]=e,this.actions[r++]=t,this.actions[r++]=n,r}addActions(e,t,n,r){let{state:o}=e,{parser:i}=e.p,{data:a}=i;for(let s=0;s<2;s++)for(let e=i.stateSlot(o,s?2:1);;e+=3){if(65535==a[e]){if(1!=a[e+1]){0==r&&2==a[e+1]&&(r=this.putAction(kb(a,e+2),t,n,r));break}e=kb(a,e+2)}a[e]==t&&(r=this.putAction(kb(a,e+1),t,n,r))}return r}}class _b{constructor(e,t,n,r){this.parser=e,this.input=t,this.ranges=r,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new lb(t,r),this.tokens=new bb(e,this.stream),this.topTerm=e.top[1];let{from:o}=r[0];this.stacks=[tb.start(this,e.top[0],o)],this.fragments=n.length&&this.stream.end-o>4*e.bufferLength?new yb(n,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e,t,n=this.stacks,r=this.minStackPos,o=this.stacks=[];if(this.bigReductionCount>300&&1==n.length){let[e]=n;while(e.forceReduce()&&e.stack.length&&e.stack[e.stack.length-2]>=this.lastBigReductionStart);this.bigReductionCount=this.lastBigReductionSize=0}for(let i=0;i<n.length;i++){let a=n[i];for(;;){if(this.tokens.mainToken=null,a.pos>r)o.push(a);else{if(this.advanceStack(a,o,n))continue;{e||(e=[],t=[]),e.push(a);let n=this.tokens.getMainToken(a);t.push(n.value,n.end)}}break}}if(!o.length){let t=e&&Cb(e);if(t)return gb&&console.log("Finish with "+this.stackID(t)),this.stackToTree(t);if(this.parser.strict)throw gb&&e&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+r);this.recovering||(this.recovering=5)}if(this.recovering&&e){let n=null!=this.stoppedAt&&e[0].pos>this.stoppedAt?e[0]:this.runRecovery(e,t,o);if(n)return gb&&console.log("Force-finish "+this.stackID(n)),this.stackToTree(n.forceAll())}if(this.recovering){let e=1==this.recovering?1:3*this.recovering;if(o.length>e){o.sort(((e,t)=>t.score-e.score));while(o.length>e)o.pop()}o.some((e=>e.reducePos>r))&&this.recovering--}else if(o.length>1){e:for(let e=0;e<o.length-1;e++){let t=o[e];for(let n=e+1;n<o.length;n++){let r=o[n];if(t.sameState(r)||t.buffer.length>500&&r.buffer.length>500){if(!((t.score-r.score||t.buffer.length-r.buffer.length)>0)){o.splice(e--,1);continue e}o.splice(n--,1)}}}o.length>12&&o.splice(12,o.length-12)}this.minStackPos=o[0].pos;for(let i=1;i<o.length;i++)o[i].pos<this.minStackPos&&(this.minStackPos=o[i].pos);return null}stopAt(e){if(null!=this.stoppedAt&&this.stoppedAt<e)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=e}advanceStack(e,t,n){let r=e.pos,{parser:o}=this,i=gb?this.stackID(e)+" -> ":"";if(null!=this.stoppedAt&&r>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let t=e.curContext&&e.curContext.tracker.strict,n=t?e.curContext.hash:0;for(let a=this.fragments.nodeAt(r);a;){let r=this.parser.nodeSet.types[a.type.id]==a.type?o.getGoto(e.state,a.type.id):-1;if(r>-1&&a.length&&(!t||(a.prop(xu.contextHash)||0)==n))return e.useNode(a,r),gb&&console.log(i+this.stackID(e)+` (via reuse of ${o.getName(a.type.id)})`),!0;if(!(a instanceof Tu)||0==a.children.length||a.positions[0]>0)break;let s=a.children[0];if(!(s instanceof Tu&&0==a.positions[0]))break;a=s}}let a=o.stateSlot(e.state,4);if(a>0)return e.reduce(a),gb&&console.log(i+this.stackID(e)+` (via always-reduce ${o.getName(65535&a)})`),!0;if(e.stack.length>=8400)while(e.stack.length>6e3&&e.forceReduce());let s=this.tokens.getActions(e);for(let l=0;l<s.length;){let a=s[l++],u=s[l++],c=s[l++],d=l==s.length||!n,h=d?e:e.split(),p=this.tokens.mainToken;if(h.apply(a,u,p?p.start:h.pos,c),gb&&console.log(i+this.stackID(h)+` (via ${0==(65536&a)?"shift":`reduce of ${o.getName(65535&a)}`} for ${o.getName(u)} @ ${r}${h==e?"":", split"})`),d)return!0;h.pos>r?t.push(h):n.push(h)}return!1}advanceFully(e,t){let n=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>n)return xb(e,t),!0}}runRecovery(e,t,n){let r=null,o=!1;for(let i=0;i<e.length;i++){let a=e[i],s=t[i<<1],l=t[1+(i<<1)],u=gb?this.stackID(a)+" -> ":"";if(a.deadEnd){if(o)continue;o=!0,a.restart(),gb&&console.log(u+this.stackID(a)+" (restarted)");let e=this.advanceFully(a,n);if(e)continue}let c=a.split(),d=u;for(let e=0;c.forceReduce()&&e<10;e++){gb&&console.log(d+this.stackID(c)+" (via force-reduce)");let e=this.advanceFully(c,n);if(e)break;gb&&(d=this.stackID(c)+" -> ")}for(let e of a.recoverByInsert(s))gb&&console.log(u+this.stackID(e)+" (via recover-insert)"),this.advanceFully(e,n);this.stream.end>a.pos?(l==a.pos&&(l++,s=0),a.recoverByDelete(s,l),gb&&console.log(u+this.stackID(a)+` (via recover-delete ${this.parser.getName(s)})`),xb(a,n)):(!r||r.score<a.score)&&(r=a)}return r}stackToTree(e){return e.close(),Tu.build({buffer:ob.create(e),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:e.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(e){let t=(mb||(mb=new WeakMap)).get(e);return t||mb.set(e,t=String.fromCodePoint(this.nextStackID++)),t+e}}function xb(e,t){for(let n=0;n<t.length;n++){let r=t[n];if(r.pos==e.pos&&r.sameState(e))return void(t[n].score<e.score&&(t[n]=e))}t.push(e)}class wb{constructor(e,t,n){this.source=e,this.flags=t,this.disabled=n}allows(e){return!this.disabled||0==this.disabled[e]}}const Ob=e=>e;class Sb{constructor(e){this.start=e.start,this.shift=e.shift||Ob,this.reduce=e.reduce||Ob,this.reuse=e.reuse||Ob,this.hash=e.hash||(()=>0),this.strict=!1!==e.strict}}class Ab extends qu{constructor(e){if(super(),this.wrappers=[],14!=e.version)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let t=e.nodeNames.split(" ");this.minRepeatTerm=t.length;for(let a=0;a<e.repeatNodeCount;a++)t.push("");let n=Object.keys(e.topRules).map((t=>e.topRules[t][1])),r=[];for(let a=0;a<t.length;a++)r.push([]);function o(e,t,n){r[e].push([t,t.deserialize(String(n))])}if(e.nodeProps)for(let a of e.nodeProps){let e=a[0];"string"==typeof e&&(e=xu[e]);for(let t=1;t<a.length;){let n=a[t++];if(n>=0)o(n,e,a[t++]);else{let r=a[t+-n];for(let i=-n;i>0;i--)o(a[t++],e,r);t++}}}this.nodeSet=new Au(t.map(((t,o)=>Su.define({name:o>=this.minRepeatTerm?void 0:t,id:o,props:r[o],top:n.indexOf(o)>-1,error:0==o,skipped:e.skippedNodes&&e.skippedNodes.indexOf(o)>-1})))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=yu;let i=ib(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let a=0;a<this.specializerSpecs.length;a++)this.specialized[a]=this.specializerSpecs[a].term;this.specializers=this.specializerSpecs.map(Mb),this.states=ib(e.states,Uint32Array),this.data=ib(e.stateData),this.goto=ib(e.goto),this.maxTerm=e.maxTerm,this.tokenizers=e.tokenizers.map((e=>"number"==typeof e?new ub(i,e):e)),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,t,n){let r=new _b(this,e,t,n);for(let o of this.wrappers)r=o(r,e,t,n);return r}getGoto(e,t,n=!1){let r=this.goto;if(t>=r[0])return-1;for(let o=r[t+1];;){let t=r[o++],i=1&t,a=r[o++];if(i&&n)return a;for(let n=o+(t>>1);o<n;o++)if(r[o]==e)return a;if(i)return-1}}hasAction(e,t){let n=this.data;for(let r=0;r<2;r++)for(let o,i=this.stateSlot(e,r?2:1);;i+=3){if(65535==(o=n[i])){if(1!=n[i+1]){if(2==n[i+1])return kb(n,i+2);break}o=n[i=kb(n,i+2)]}if(o==t||0==o)return kb(n,i+1)}return 0}stateSlot(e,t){return this.states[6*e+t]}stateFlag(e,t){return(this.stateSlot(e,0)&t)>0}validAction(e,t){return!!this.allActions(e,(e=>e==t||null))}allActions(e,t){let n=this.stateSlot(e,4),r=n?t(n):void 0;for(let o=this.stateSlot(e,1);null==r;o+=3){if(65535==this.data[o]){if(1!=this.data[o+1])break;o=kb(this.data,o+2)}r=t(kb(this.data,o+1))}return r}nextStates(e){let t=[];for(let n=this.stateSlot(e,1);;n+=3){if(65535==this.data[n]){if(1!=this.data[n+1])break;n=kb(this.data,n+2)}if(0==(1&this.data[n+2])){let e=this.data[n+1];t.some(((t,n)=>1&n&&t==e))||t.push(this.data[n],e)}}return t}configure(e){let t=Object.assign(Object.create(Ab.prototype),this);if(e.props&&(t.nodeSet=this.nodeSet.extend(...e.props)),e.top){let n=this.topRules[e.top];if(!n)throw new RangeError(`Invalid top rule name ${e.top}`);t.top=n}return e.tokenizers&&(t.tokenizers=this.tokenizers.map((t=>{let n=e.tokenizers.find((e=>e.from==t));return n?n.to:t}))),e.specializers&&(t.specializers=this.specializers.slice(),t.specializerSpecs=this.specializerSpecs.map(((n,r)=>{let o=e.specializers.find((e=>e.from==n.external));if(!o)return n;let i=Object.assign(Object.assign({},n),{external:o.to});return t.specializers[r]=Mb(i),i}))),e.contextTracker&&(t.context=e.contextTracker),e.dialect&&(t.dialect=this.parseDialect(e.dialect)),null!=e.strict&&(t.strict=e.strict),e.wrap&&(t.wrappers=t.wrappers.concat(e.wrap)),null!=e.bufferLength&&(t.bufferLength=e.bufferLength),t}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let t=this.dynamicPrecedences;return null==t?0:t[e]||0}parseDialect(e){let t=Object.keys(this.dialects),n=t.map((()=>!1));if(e)for(let o of e.split(" ")){let e=t.indexOf(o);e>=0&&(n[e]=!0)}let r=null;for(let o=0;o<t.length;o++)if(!n[o])for(let e,n=this.dialects[t[o]];65535!=(e=this.data[n++]);)(r||(r=new Uint8Array(this.maxTerm+1)))[e]=1;return new wb(e,n,r)}static deserialize(e){return new Ab(e)}}function kb(e,t){return e[t]|e[t+1]<<16}function Cb(e){let t=null;for(let n of e){let e=n.p.stoppedAt;(n.pos==n.p.stream.end||null!=e&&n.pos>e)&&n.p.parser.stateFlag(n.state,2)&&(!t||t.score<n.score)&&(t=n)}return t}function Mb(e){if(e.external){let t=e.extend?1:0;return(n,r)=>e.external(n,r)<<1|t}return e.get}const Tb=312,Pb=1,Ib=2,$b=3,Eb=4,Db=313,Rb=315,Nb=316,Lb=5,zb=6,Vb=0,Bb=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],jb=125,Qb=59,Fb=47,Wb=42,Hb=43,Zb=45,Gb=60,Xb=44,Ub=63,Yb=46,qb=new Sb({start:!1,shift(e,t){return t==Lb||t==zb||t==Rb?e:t==Nb},strict:!1}),Kb=new db(((e,t)=>{let{next:n}=e;(n==jb||-1==n||t.context)&&e.acceptToken(Db)}),{contextual:!0,fallback:!0}),Jb=new db(((e,t)=>{let n,{next:r}=e;Bb.indexOf(r)>-1||(r!=Fb||(n=e.peek(1))!=Fb&&n!=Wb)&&(r==jb||r==Qb||-1==r||t.context||e.acceptToken(Tb))}),{contextual:!0}),e_=new db(((e,t)=>{let{next:n}=e;if(n==Hb||n==Zb){if(e.advance(),n==e.next){e.advance();let n=!t.context&&t.canShift(Pb);e.acceptToken(n?Pb:Ib)}}else n==Ub&&e.peek(1)==Yb&&(e.advance(),e.advance(),(e.next<48||e.next>57)&&e.acceptToken($b))}),{contextual:!0});function t_(e,t){return e>=65&&e<=90||e>=97&&e<=122||95==e||e>=192||!t&&e>=48&&e<=57}const n_=new db(((e,t)=>{if(e.next!=Gb||!t.dialectEnabled(Vb))return;if(e.advance(),e.next==Fb)return;let n=0;while(Bb.indexOf(e.next)>-1)e.advance(),n++;if(t_(e.next,!0)){e.advance(),n++;while(t_(e.next,!1))e.advance(),n++;while(Bb.indexOf(e.next)>-1)e.advance(),n++;if(e.next==Xb)return;for(let t=0;;t++){if(7==t){if(!t_(e.next,!0))return;break}if(e.next!="extends".charCodeAt(t))break;e.advance(),n++}}e.acceptToken(Eb,-n)})),r_=ic({"get set async static":Mc.modifier,"for while do if else switch try catch finally return throw break continue default case":Mc.controlKeyword,"in of await yield void typeof delete instanceof":Mc.operatorKeyword,"let var const using function class extends":Mc.definitionKeyword,"import export from":Mc.moduleKeyword,"with debugger as new":Mc.keyword,TemplateString:Mc.special(Mc.string),super:Mc.atom,BooleanLiteral:Mc.bool,this:Mc.self,null:Mc.null,Star:Mc.modifier,VariableName:Mc.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":Mc.function(Mc.variableName),VariableDefinition:Mc.definition(Mc.variableName),Label:Mc.labelName,PropertyName:Mc.propertyName,PrivatePropertyName:Mc.special(Mc.propertyName),"CallExpression/MemberExpression/PropertyName":Mc.function(Mc.propertyName),"FunctionDeclaration/VariableDefinition":Mc.function(Mc.definition(Mc.variableName)),"ClassDeclaration/VariableDefinition":Mc.definition(Mc.className),PropertyDefinition:Mc.definition(Mc.propertyName),PrivatePropertyDefinition:Mc.definition(Mc.special(Mc.propertyName)),UpdateOp:Mc.updateOperator,"LineComment Hashbang":Mc.lineComment,BlockComment:Mc.blockComment,Number:Mc.number,String:Mc.string,Escape:Mc.escape,ArithOp:Mc.arithmeticOperator,LogicOp:Mc.logicOperator,BitOp:Mc.bitwiseOperator,CompareOp:Mc.compareOperator,RegExp:Mc.regexp,Equals:Mc.definitionOperator,Arrow:Mc.function(Mc.punctuation),": Spread":Mc.punctuation,"( )":Mc.paren,"[ ]":Mc.squareBracket,"{ }":Mc.brace,"InterpolationStart InterpolationEnd":Mc.special(Mc.brace),".":Mc.derefOperator,", ;":Mc.separator,"@":Mc.meta,TypeName:Mc.typeName,TypeDefinition:Mc.definition(Mc.typeName),"type enum interface implements namespace module declare":Mc.definitionKeyword,"abstract global Privacy readonly override":Mc.modifier,"is keyof unique infer":Mc.operatorKeyword,JSXAttributeValue:Mc.attributeValue,JSXText:Mc.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":Mc.angleBracket,"JSXIdentifier JSXNameSpacedName":Mc.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":Mc.attributeName,"JSXBuiltin/JSXIdentifier":Mc.standard(Mc.tagName)}),o_={__proto__:null,export:20,as:25,from:33,default:36,async:41,function:42,extends:54,this:58,true:66,false:66,null:78,void:82,typeof:86,super:102,new:136,delete:148,yield:157,await:161,class:166,public:229,private:229,protected:229,readonly:231,instanceof:250,satisfies:253,in:254,const:256,import:290,keyof:345,unique:349,infer:355,is:391,abstract:411,implements:413,type:415,let:418,var:420,using:423,interface:429,enum:433,namespace:439,module:441,declare:445,global:449,for:468,of:477,while:480,with:484,do:488,if:492,else:494,switch:498,case:504,try:510,catch:514,finally:518,return:522,throw:526,break:530,continue:534,debugger:538},i_={__proto__:null,async:123,get:125,set:127,declare:189,public:191,private:191,protected:191,static:193,abstract:195,override:197,readonly:203,accessor:205,new:395},a_={__proto__:null,"<":187},s_=Ab.deserialize({version:14,states:"$@QO%TQ^OOO%[Q^OOO'_Q`OOP(lOWOOO*zQ?NdO'#CiO+RO!bO'#CjO+aO#tO'#CjO+oO!0LbO'#D^O.QQ^O'#DdO.bQ^O'#DoO%[Q^O'#DwO0fQ^O'#EPOOQ?Mr'#EX'#EXO1PQWO'#EUOOQO'#Em'#EmOOQO'#Ih'#IhO1XQWO'#GpO1dQWO'#ElO1iQWO'#ElO3hQ?NdO'#JmO6[Q?NdO'#JnO6uQWO'#F[O6zQ&jO'#FsOOQ?Mr'#Fe'#FeO7VO,YO'#FeO7eQ7[O'#FzO9RQWO'#FyOOQ?Mr'#Jn'#JnOOQ?Mp'#Jm'#JmO9WQWO'#GtOOQU'#KZ'#KZO9cQWO'#IUO9hQ?MxO'#IVOOQU'#JZ'#JZOOQU'#IZ'#IZQ`Q^OOO`Q^OOO9pQMnO'#DsO9wQ^O'#D{O:OQ^O'#D}O9^QWO'#GpO:VQ7[O'#CoO:eQWO'#EkO:pQWO'#EvO:uQ7[O'#FdO;dQWO'#GpOOQO'#K['#K[O;iQWO'#K[O;wQWO'#GxO;wQWO'#GyO;wQWO'#G{O9^QWO'#HOO<nQWO'#HRO>VQWO'#CeO>gQWO'#H_O>oQWO'#HeO>oQWO'#HgO`Q^O'#HiO>oQWO'#HkO>oQWO'#HnO>tQWO'#HtO>yQ?MyO'#HzO%[Q^O'#H|O?UQ?MyO'#IOO?aQ?MyO'#IQO9hQ?MxO'#ISO?lQ?NdO'#CiO@nQ`O'#DiQOQWOOO%[Q^O'#D}OAUQWO'#EQO:VQ7[O'#EkOAaQWO'#EkOAlQpO'#FdOOQU'#Cg'#CgOOQ?Mp'#Dn'#DnOOQ?Mp'#Jq'#JqO%[Q^O'#JqOOQO'#Jt'#JtOOQO'#Id'#IdOBlQ`O'#EdOOQ?Mp'#Ec'#EcOOQ?Mp'#Jx'#JxOChQ?NQO'#EdOCrQ`O'#ETOOQO'#Js'#JsODWQ`O'#JtOEeQ`O'#ETOCrQ`O'#EdPErO#@ItO'#CbPOOO)CDx)CDxOOOO'#I['#I[OE}O!bO,59UOOQ?Mr,59U,59UOOOO'#I]'#I]OF]O#tO,59UO%[Q^O'#D`OOOO'#I_'#I_OFkO!0LbO,59xOOQ?Mr,59x,59xOFyQ^O'#I`OG^QWO'#JoOI]QrO'#JoO+}Q^O'#JoOIdQWO,5:OOIzQWO'#EmOJXQWO'#KOOJdQWO'#J}OJdQWO'#J}OJlQWO,5;ZOJqQWO'#J|OOQ?Mv,5:Z,5:ZOJxQ^O,5:ZOLvQ?NdO,5:cOMgQWO,5:kONQQ?MxO'#J{ONXQWO'#JzO9WQWO'#JzONmQWO'#JzONuQWO,5;YONzQWO'#JzO!#PQrO'#JnOOQ?Mr'#Ci'#CiO%[Q^O'#EPO!#oQrO,5:pOOQQ'#Ju'#JuOOQO-E<f-E<fO9^QWO,5=[O!$VQWO,5=[O!$[Q^O,5;WO!&_Q7[O'#EhO!'xQWO,5;WO!'}Q^O'#DvO!(XQ`O,5;aO!(aQ`O,5;aO%[Q^O,5;aOOQU'#FS'#FSOOQU'#FU'#FUO%[Q^O,5;bO%[Q^O,5;bO%[Q^O,5;bO%[Q^O,5;bO%[Q^O,5;bO%[Q^O,5;bO%[Q^O,5;bO%[Q^O,5;bO%[Q^O,5;bO%[Q^O,5;bOOQU'#FY'#FYO!(oQ^O,5;sOOQ?Mr,5;x,5;xOOQ?Mr,5;y,5;yOOQ?Mr,5;{,5;{O%[Q^O'#IlO!*rQ?MxO,5<gO%[Q^O,5;bO!&_Q7[O,5;bO!+aQ7[O,5;bO!-RQ7[O'#EZO%[Q^O,5;vOOQ?Mr,5;z,5;zO!-YQ&jO'#FiO!.VQ&jO'#KSO!-qQ&jO'#KSO!.^Q&jO'#KSOOQO'#KS'#KSO!.rQ&jO,5<ROOOS,5<_,5<_O!/TQ^O'#FuOOOS'#Ik'#IkO7VO,YO,5<PO!/[Q&jO'#FwOOQ?Mr,5<P,5<PO!/{Q!LQO'#CvOOQ?Mr'#Cz'#CzO!0`O!0LbO'#DOO!0|Q7[O,5<dO!1TQWO,5<fO!2pQ$ISO'#GVO!2}QWO'#GWO!3SQWO'#GWO!4rQ$ISO'#G[O!5nQ`O'#G`OOQO'#Gk'#GkO!+hQ7[O'#GjOOQO'#Gm'#GmO!+hQ7[O'#GlO!6aQ!LQO'#JgOOQ?Mr'#Jg'#JgO!6kQWO'#JfO!6yQWO'#JeO!7RQWO'#CuOOQ?Mr'#Cx'#CxO!7ZQWO'#CzOOQ?Mr'#DS'#DSOOQ?Mr'#DU'#DUO1SQWO'#DWO!+hQ7[O'#F}O!+hQ7[O'#GPO!7`QWO'#GRO!7eQWO'#GSO!3SQWO'#GYO!+hQ7[O'#G_O!7jQWO'#EnO!8XQWO,5<eOOQ?Mp'#Cr'#CrO!8aQWO'#EoO!9ZQ`O'#EpOOQ?Mp'#J|'#J|O!9bQ?MxO'#K]O9hQ?MxO,5=`O`Q^O,5>pOOQU'#Jc'#JcOOQU,5>q,5>qOOQU-E<X-E<XO!;aQ?NdO,5:_O!9UQ`O,5:]O!=zQ?NdO,5:gO%[Q^O,5:gO!@bQ?NdO,5:iOOQO,5@v,5@vO!ARQ7[O,5=[O!AaQ?MxO'#JdO9RQWO'#JdO!ArQ?MxO,59ZO!A}Q`O,59ZO!BVQ7[O,59ZO:VQ7[O,59ZO!BbQWO,5;WO!BjQWO'#H^O!COQWO'#K`O%[Q^O,5;|O!9UQ`O,5<OO!CWQWO,5=wO!C]QWO,5=wO!CbQWO,5=wO9hQ?MxO,5=wO;wQWO,5=gOOQO'#Cv'#CvO!CpQ`O,5=dO!CxQ7[O,5=eO!DTQWO,5=gO!DYQpO,5=jO!DbQWO'#K[O>tQWO'#HTO9^QWO'#HVO!DgQWO'#HVO:VQ7[O'#HXO!DlQWO'#HXOOQU,5=m,5=mO!DqQWO'#HYO!ESQWO'#CoO!EXQWO,59PO!EcQWO,59PO!GhQ^O,59POOQU,59P,59PO!GxQ?MxO,59PO%[Q^O,59PO!JTQ^O'#HaOOQU'#Hb'#HbOOQU'#Hc'#HcO`Q^O,5=yO!JkQWO,5=yO`Q^O,5>PO`Q^O,5>RO!JpQWO,5>TO`Q^O,5>VO!JuQWO,5>YO!JzQ^O,5>`OOQU,5>f,5>fO%[Q^O,5>fO9hQ?MxO,5>hOOQU,5>j,5>jO# UQWO,5>jOOQU,5>l,5>lO# UQWO,5>lOOQU,5>n,5>nO# rQ`O'#D[O%[Q^O'#JqO# |Q`O'#JqO#!kQ`O'#DjO#!|Q`O'#DjO#%_Q^O'#DjO#%fQWO'#JpO#%nQWO,5:TO#%sQWO'#EqO#&RQWO'#KPO#&ZQWO,5;[O#&`Q`O'#DjO#&mQ`O'#ESOOQ?Mr,5:l,5:lO%[Q^O,5:lO#&tQWO,5:lO>tQWO,5;VO!A}Q`O,5;VO!BVQ7[O,5;VO:VQ7[O,5;VO#&|QWO,5@]O#'RQ(CYO,5:pOOQO-E<b-E<bO#(XQ?NQO,5;OOCrQ`O,5:oO#(cQ`O,5:oOCrQ`O,5;OO!ArQ?MxO,5:oOOQ?Mp'#Eg'#EgOOQO,5;O,5;OO%[Q^O,5;OO#(pQ?MxO,5;OO#({Q?MxO,5;OO!A}Q`O,5:oOOQO,5;U,5;UO#)ZQ?MxO,5;OPOOO'#IY'#IYP#)oO#@ItO,58|POOO,58|,58|OOOO-E<Y-E<YOOQ?Mr1G.p1G.pOOOO-E<Z-E<ZO#)zQpO,59zOOOO-E<]-E<]OOQ?Mr1G/d1G/dO#*PQrO,5>zO+}Q^O,5>zOOQO,5?Q,5?QO#*ZQ^O'#I`OOQO-E<^-E<^O#*hQWO,5@ZO#*pQrO,5@ZO#*wQWO,5@iOOQ?Mr1G/j1G/jO%[Q^O,5@jO#+PQWO'#IfOOQO-E<d-E<dO#*wQWO,5@iOOQ?Mp1G0u1G0uOOQ?Mv1G/u1G/uOOQ?Mv1G0V1G0VO%[Q^O,5@gO#+eQ?MxO,5@gO#+vQ?MxO,5@gO#+}QWO,5@fO9WQWO,5@fO#,VQWO,5@fO#,eQWO'#IiO#+}QWO,5@fOOQ?Mp1G0t1G0tO!(XQ`O,5:rO!(dQ`O,5:rOOQQ,5:t,5:tO#-VQYO,5:tO#-_Q7[O1G2vO9^QWO1G2vOOQ?Mr1G0r1G0rO#-mQ?NdO1G0rO#.rQ?NbO,5;SOOQ?Mr'#GU'#GUO#/`Q?NdO'#JgO!$[Q^O1G0rO#1hQrO'#JrO%[Q^O'#JrO#1rQWO,5:bOOQ?Mr'#D['#D[OOQ?Mr1G0{1G0{O%[Q^O1G0{OOQ?Mr1G1e1G1eO#1wQWO1G0{O#4]Q?NdO1G0|O#4dQ?NdO1G0|O#6zQ?NdO1G0|O#7RQ?NdO1G0|O#9iQ?NdO1G0|O#<PQ?NdO1G0|O#<WQ?NdO1G0|O#<_Q?NdO1G0|O#>uQ?NdO1G0|O#>|Q?NdO1G0|O#AZQ07bO'#CiO#CUQ07bO1G1_O#C]Q07bO'#JnO#CpQ?NdO,5?WOOQ?Mp-E<j-E<jO#E}Q?NdO1G0|O#FzQ?NdO1G0|OOQ?Mr1G0|1G0|O#GzQ7[O'#JwO#HUQWO,5:uO#HZQ?NdO1G1bO#H}Q&jO,5<VO#IVQ&jO,5<WO#I_Q&jO'#FnO#IvQWO'#FmOOQO'#KT'#KTOOQO'#Ij'#IjO#I{Q&jO1G1mOOQ?Mr1G1m1G1mOOOS1G1x1G1xO#J^Q07bO'#JmO#JhQWO,5<aO!(oQ^O,5<aOOOS-E<i-E<iOOQ?Mr1G1k1G1kO#JmQ`O'#KSOOQ?Mr,5<c,5<cO#JuQ`O,5<cO!&_Q7[O'#DQOOOO'#I^'#I^O#JzO!0LbO,59jOOQ?Mr,59j,59jO%[Q^O1G2OO!7eQWO'#InO#KVQ7[O,5<xOOQ?Mr,5<u,5<uO!+hQ7[O'#IqO#KuQ7[O,5=UO!+hQ7[O'#IsO#LhQ7[O,5=WO!&_Q7[O,5=YOOQO1G2Q1G2QO#LrQpO'#CrO#MVQ$ISO'#EoO#NUQ`O'#G`O#NrQpO,5<qO#NyQWO'#KWO9WQWO'#KWO$ XQWO,5<sO!+hQ7[O,5<rO$ ^QWO'#GXO$ oQWO,5<rO$ tQpO'#GUO$!RQpO'#KXO$!]QWO'#KXO!&_Q7[O'#KXO$!bQWO,5<vO$!gQ`O'#GaO!5iQ`O'#GaO$!xQWO'#GcO$!}QWO'#GeO!3SQWO'#GhO$#SQ?MxO'#IpO$#_Q`O,5<zOOQ?Mv,5<z,5<zO$#fQ`O'#GaO$#tQ`O'#GbO$#|Q`O'#GbO$$RQ7[O,5=UO$$cQ7[O,5=WOOQ?Mr,5=Z,5=ZO!+hQ7[O,5@QO!+hQ7[O,5@QO$$sQWO'#IuO$%OQWO,5@PO$%WQWO,59aOOQ?Mr,59f,59fO$%zQ!LSO,59rOOQ?Mr'#Jk'#JkO$&mQ7[O,5<iO$'`Q7[O,5<kO@fQWO,5<mOOQ?Mr,5<n,5<nO$'jQWO,5<tO$'oQ7[O,5<yO$(PQWO'#JzO!$[Q^O1G2PO$(UQWO1G2PO9WQWO'#J}O9WQWO'#EqO%[Q^O'#EqO9WQWO'#IwO$(ZQ?MxO,5@wOOQU1G2z1G2zOOQU1G4[1G4[OOQ?Mr1G/y1G/yOOQ?Mr1G/w1G/wO$*]Q?NdO1G0ROOQU1G2v1G2vO!&_Q7[O1G2vO%[Q^O1G2vO#-bQWO1G2vO$,aQ7[O'#EhOOQ?Mp,5@O,5@OO$,kQ?MxO,5@OOOQU1G.u1G.uO!ArQ?MxO1G.uO!A}Q`O1G.uO!BVQ7[O1G.uO$,|QWO1G0rO$-RQWO'#CiO$-^QWO'#KaO$-fQWO,5=xO$-kQWO'#KaO$-pQWO'#KaO$.OQWO'#I}O$.^QWO,5@zO$.fQrO1G1hOOQ?Mr1G1j1G1jO9^QWO1G3cO@fQWO1G3cO$.mQWO1G3cO$.rQWO1G3cOOQU1G3c1G3cO!DTQWO1G3RO!&_Q7[O1G3OO$.wQWO1G3OOOQU1G3P1G3PO!&_Q7[O1G3PO$.|QWO1G3PO$/UQ`O'#G}OOQU1G3R1G3RO!5iQ`O'#IyO!DYQpO1G3UOOQU1G3U1G3UOOQU,5=o,5=oO$/^Q7[O,5=qO9^QWO,5=qO$!}QWO,5=sO9RQWO,5=sO!A}Q`O,5=sO!BVQ7[O,5=sO:VQ7[O,5=sO$/lQWO'#K_O$/wQWO,5=tOOQU1G.k1G.kO$/|Q?MxO1G.kO@fQWO1G.kO$0XQWO1G.kO9hQ?MxO1G.kO$2aQrO,5@|O$2nQWO,5@|O9WQWO,5@|O$2yQ^O,5={O$3QQWO,5={OOQU1G3e1G3eO`Q^O1G3eOOQU1G3k1G3kOOQU1G3m1G3mO>oQWO1G3oO$3VQ^O1G3qO$7ZQ^O'#HpOOQU1G3t1G3tO$7hQWO'#HvO>tQWO'#HxOOQU1G3z1G3zO$7pQ^O1G3zO9hQ?MxO1G4QOOQU1G4S1G4SOOQ?Mp'#G]'#G]O9hQ?MxO1G4UO9hQ?MxO1G4WO$;wQWO,5@]O!(oQ^O,5;]O9WQWO,5;]O>tQWO,5:UO!(oQ^O,5:UO!A}Q`O,5:UO$;|Q07bO,5:UOOQO,5;],5;]O$<WQ`O'#IaO$<nQWO,5@[OOQ?Mr1G/o1G/oO$<vQ`O'#IgO$=QQWO,5@kOOQ?Mp1G0v1G0vO#!|Q`O,5:UOOQO'#Ic'#IcO$=YQ`O,5:nOOQ?Mv,5:n,5:nO#&wQWO1G0WOOQ?Mr1G0W1G0WO%[Q^O1G0WOOQ?Mr1G0q1G0qO>tQWO1G0qO!A}Q`O1G0qO!BVQ7[O1G0qOOQ?Mp1G5w1G5wO!ArQ?MxO1G0ZOOQO1G0j1G0jO%[Q^O1G0jO$=aQ?MxO1G0jO$=lQ?MxO1G0jO!A}Q`O1G0ZOCrQ`O1G0ZO$=zQ?MxO1G0jOOQO1G0Z1G0ZO$>`Q?NdO1G0jPOOO-E<W-E<WPOOO1G.h1G.hOOOO1G/f1G/fO$>jQpO,5<gO$>rQrO1G4fOOQO1G4l1G4lO%[Q^O,5>zO$>|QWO1G5uO$?UQWO1G6TO$?^QrO1G6UO9WQWO,5?QO$?hQ?NdO1G6RO%[Q^O1G6RO$?xQ?MxO1G6RO$@ZQWO1G6QO$@ZQWO1G6QO9WQWO1G6QO$@cQWO,5?TO9WQWO,5?TOOQO,5?T,5?TO$@wQWO,5?TO$(PQWO,5?TOOQO-E<g-E<gOOQQ1G0^1G0^OOQQ1G0`1G0`O#-YQWO1G0`OOQU7+(b7+(bO!&_Q7[O7+(bO%[Q^O7+(bO$AVQWO7+(bO$AbQ7[O7+(bO$ApQ?NdO,5=UO$CxQ?NdO,5=WO$FQQ?NdO,5=UO$H`Q?NdO,5=WO$JnQ?NdO,59rO$LsQ?NdO,5<iO$N{Q?NdO,5<kO%#TQ?NdO,5<yOOQ?Mr7+&^7+&^O%%cQ?NdO7+&^O%&VQ^O'#IbO%&dQWO,5@^O%&lQrO,5@^OOQ?Mr1G/|1G/|O%&vQWO7+&gOOQ?Mr7+&g7+&gO%&{Q07bO,5:cO%[Q^O7+&yO%'VQ07bO,5:_O%'dQ07bO,5:gO%'nQ07bO,5:iO%'xQ7[O'#IeO%(SQWO,5@cOOQ?Mr1G0a1G0aOOQO1G1q1G1qOOQO1G1r1G1rO%([QtO,5<YO!(oQ^O,5<XOOQO-E<h-E<hOOQ?Mr7+'X7+'XOOOS7+'d7+'dOOOS1G1{1G1{O%(gQWO1G1{OOQ?Mr1G1}1G1}O%(lQpO,59lOOOO-E<[-E<[OOQ?Mr1G/U1G/UO%(sQ?NdO7+'jOOQ?Mr,5?Y,5?YO%)gQpO,5?YOOQ?Mr1G2d1G2dP!&_Q7[O'#InPOQ?Mr-E<l-E<lO%*VQ7[O,5?]OOQ?Mr-E<o-E<oO%*xQ7[O,5?_OOQ?Mr-E<q-E<qO%+SQpO1G2tO%+ZQpO'#CrO%+qQ7[O'#J}O%+xQ^O'#EqOOQ?Mr1G2]1G2]O%,SQWO'#ImO%,hQWO,5@rO%,hQWO,5@rO%,pQWO,5@rO%,{QWO,5@rOOQO1G2_1G2_O%-ZQ7[O1G2^O!+hQ7[O1G2^O%-kQ$ISO'#IoO%-xQWO,5@sO!&_Q7[O,5@sO%.QQpO,5@sOOQ?Mr1G2b1G2bOOQ?Mp,5<{,5<{OOQ?Mp,5<|,5<|O$(PQWO,5<|OCcQWO,5<|O!A}Q`O,5<{OOQO'#Gd'#GdO%.[QWO,5<}OOQ?Mp,5=P,5=PO$(PQWO,5=SOOQO,5?[,5?[OOQO-E<n-E<nOOQ?Mv1G2f1G2fO!5iQ`O,5<{O%.dQWO,5<|O$!xQWO,5<}O%.oQ`O,5<|O!+hQ7[O'#IqO%/`Q7[O1G2pO!+hQ7[O'#IsO%0RQ7[O1G2rO%0]Q7[O1G5lO%0gQ7[O1G5lOOQO,5?a,5?aOOQO-E<s-E<sOOQO1G.{1G.{O!9UQ`O,59tO%[Q^O,59tOOQ?Mr,5<h,5<hO%0tQWO1G2XO!+hQ7[O1G2`O%0yQ?NdO7+'kOOQ?Mr7+'k7+'kO!$[Q^O7+'kO%1mQWO,5;]OOQ?Mp,5?c,5?cOOQ?Mp-E<u-E<uO%1rQpO'#KYO#&wQWO7+(bO4UQrO7+(bO$AYQWO7+(bO%1|Q?NbO'#CiO%2aQ?NbO,5=QO%3RQWO,5=QOOQ?Mp1G5j1G5jOOQU7+$a7+$aO!ArQ?MxO7+$aO!A}Q`O7+$aO!$[Q^O7+&^O%3WQWO'#I|O%3oQWO,5@{OOQO1G3d1G3dO9^QWO,5@{O%3oQWO,5@{O%3wQWO,5@{OOQO,5?i,5?iOOQO-E<{-E<{OOQ?Mr7+'S7+'SO%3|QWO7+(}O9hQ?MxO7+(}O9^QWO7+(}O@fQWO7+(}OOQU7+(m7+(mO%4RQ?NbO7+(jO!&_Q7[O7+(jO%4]QpO7+(kOOQU7+(k7+(kO!&_Q7[O7+(kO%4dQWO'#K^O%4oQWO,5=iOOQO,5?e,5?eOOQO-E<w-E<wOOQU7+(p7+(pO%6RQ`O'#HWOOQU1G3]1G3]O!&_Q7[O1G3]O%[Q^O1G3]O%6YQWO1G3]O%6eQ7[O1G3]O9hQ?MxO1G3_O$!}QWO1G3_O9RQWO1G3_O!A}Q`O1G3_O!BVQ7[O1G3_O%6sQWO'#I{O%7XQWO,5@yO%7aQ`O,5@yOOQ?Mp1G3`1G3`OOQU7+$V7+$VO@fQWO7+$VO9hQ?MxO7+$VO%7lQWO7+$VO%[Q^O1G6hO%[Q^O1G6iO%7qQ?MxO1G6hO%7{Q^O1G3gO%8SQWO1G3gO%8XQ^O1G3gOOQU7+)P7+)PO9hQ?MxO7+)ZO`Q^O7+)]OOQU'#Kd'#KdOOQU'#JO'#JOO%8`Q^O,5>[OOQU,5>[,5>[O%[Q^O'#HqO%8mQWO'#HsOOQU,5>b,5>bO9WQWO,5>bOOQU,5>d,5>dOOQU7+)f7+)fOOQU7+)l7+)lOOQU7+)p7+)pOOQU7+)r7+)rO%8rQ`O1G5wO%9WQ07bO1G0wO%9bQWO1G0wOOQO1G/p1G/pO%9mQ07bO1G/pO>tQWO1G/pO!(oQ^O'#DjOOQO,5>{,5>{OOQO-E<_-E<_OOQO,5?R,5?ROOQO-E<e-E<eO!A}Q`O1G/pOOQO-E<a-E<aOOQ?Mv1G0Y1G0YOOQ?Mr7+%r7+%rO#&wQWO7+%rOOQ?Mr7+&]7+&]O>tQWO7+&]O!A}Q`O7+&]OOQO7+%u7+%uO$>`Q?NdO7+&UOOQO7+&U7+&UO%[Q^O7+&UO%9wQ?MxO7+&UO!ArQ?MxO7+%uO!A}Q`O7+%uO%:SQ?MxO7+&UO%:bQ?NdO7++mO%[Q^O7++mO%:rQWO7++lO%:rQWO7++lOOQO1G4o1G4oO9WQWO1G4oO%:zQWO1G4oOOQQ7+%z7+%zO#&wQWO<<K|O4UQrO<<K|O%;YQWO<<K|OOQU<<K|<<K|O!&_Q7[O<<K|O%[Q^O<<K|O%;bQWO<<K|O%;mQ?NdO,5?]O%=uQ?NdO,5?_O%?}Q?NdO1G2^O%B]Q?NdO1G2pO%DeQ?NdO1G2rO%FmQrO,5>|O%[Q^O,5>|OOQO-E<`-E<`O%FwQWO1G5xOOQ?Mr<<JR<<JRO%GPQ07bO1G0rO%IWQ07bO1G0|O%I_Q07bO1G0|O%K`Q07bO1G0|O%KgQ07bO1G0|O%MhQ07bO1G0|O& iQ07bO1G0|O& pQ07bO1G0|O& wQ07bO1G0|O&#xQ07bO1G0|O&$PQ07bO1G0|O&$WQ?NdO<<JeO&&OQ07bO1G0|O&&{Q07bO1G0|O&'{Q07bO'#JgO&*OQ07bO1G1bO&*]Q07bO1G0RO&*gQ7[O,5?POOQO-E<c-E<cO!(oQ^O'#FpOOQO'#KU'#KUOOQO1G1t1G1tO&*qQWO1G1sO&*vQ07bO,5?WOOOS7+'g7+'gOOOO1G/W1G/WOOQ?Mr1G4t1G4tO!+hQ7[O7+(`O&-WQrO'#CiO&-bQWO,5?XO9WQWO,5?XOOQO-E<k-E<kO&-pQWO1G6^O&-pQWO1G6^O&-xQWO1G6^O&.TQ7[O7+'xO&.eQpO,5?ZO&.oQWO,5?ZO!&_Q7[O,5?ZOOQO-E<m-E<mO&.tQpO1G6_O&/OQWO1G6_OOQ?Mp1G2h1G2hO$(PQWO1G2hOOQ?Mp1G2g1G2gO&/WQWO1G2iO!&_Q7[O1G2iOOQ?Mp1G2n1G2nO!A}Q`O1G2gOCcQWO1G2hO&/]QWO1G2iO&/eQWO1G2hO$!xQWO1G2iO&0XQ7[O,5?]OOQ?Mr-E<p-E<pO&0zQ7[O,5?_OOQ?Mr-E<r-E<rO!+hQ7[O7++WOOQ?Mr1G/`1G/`O&1UQWO1G/`OOQ?Mr7+'s7+'sO&1ZQ7[O7+'zO&1kQ?NdO<<KVOOQ?Mr<<KV<<KVO&2_QWO1G0wO!&_Q7[O'#IvO&2dQWO,5@tO&4fQrO<<K|O!&_Q7[O1G2lOOQU<<G{<<G{O!ArQ?MxO<<G{O&4mQ?NdO<<IxOOQ?Mr<<Ix<<IxOOQO,5?h,5?hO&5aQWO,5?hO&5fQWO,5?hOOQO-E<z-E<zO&5tQWO1G6gO&5tQWO1G6gO9^QWO1G6gO@fQWO<<LiOOQU<<Li<<LiO&5|QWO<<LiO9hQ?MxO<<LiOOQU<<LU<<LUO%4RQ?NbO<<LUOOQU<<LV<<LVO%4]QpO<<LVO&6RQ`O'#IxO&6^QWO,5@xO!(oQ^O,5@xOOQU1G3T1G3TO%+xQ^O'#JqOOQO'#Iz'#IzO9hQ?MxO'#IzO&6fQ`O,5=rOOQU,5=r,5=rO&6mQ`O'#EdO&7RQ`O'#GcO&7WQWO7+(wO&7]QWO7+(wOOQU7+(w7+(wO!&_Q7[O7+(wO%[Q^O7+(wO&7eQWO7+(wOOQU7+(y7+(yO9hQ?MxO7+(yO$!}QWO7+(yO9RQWO7+(yO!A}Q`O7+(yO&7pQWO,5?gOOQO-E<y-E<yOOQO'#HZ'#HZO&7{QWO1G6eO9hQ?MxO<<GqOOQU<<Gq<<GqO@fQWO<<GqO&8TQWO7+,SO&8YQWO7+,TO%[Q^O7+,SO%[Q^O7+,TOOQU7+)R7+)RO&8_QWO7+)RO&8dQ^O7+)RO&8kQWO7+)ROOQU<<Lu<<LuOOQU<<Lw<<LwOOQU-E<|-E<|OOQU1G3v1G3vO&8pQWO,5>]OOQU,5>_,5>_O&8uQWO1G3|O9WQWO7+&cO!(oQ^O7+&cOOQO7+%[7+%[O&8zQ07bO1G6UO>tQWO7+%[OOQ?Mr<<I^<<I^OOQ?Mr<<Iw<<IwO>tQWO<<IwOOQO<<Ip<<IpO$>`Q?NdO<<IpO%[Q^O<<IpOOQO<<Ia<<IaO!ArQ?MxO<<IaO&9UQ?MxO<<IpO&9aQ?NdO<= XO&9qQWO<= WOOQO7+*Z7+*ZO9WQWO7+*ZOOQUANAhANAhO&9yQrOANAhO!&_Q7[OANAhO#&wQWOANAhO4UQrOANAhO&:QQWOANAhO%[Q^OANAhO&:YQ?NdO7+'xO&<hQ?NdO,5?]O&>pQ?NdO,5?_O&@xQ?NdO7+'zO&CWQrO1G4hO&CbQ07bO7+&^O&EcQ07bO,5=UO&GgQ07bO,5=WO&GwQ07bO,5=UO&HXQ07bO,5=WO&HiQ07bO,59rO&JlQ07bO,5<iO&LlQ07bO,5<kO&N}Q07bO,5<yO'!pQ07bO7+'jO'!}Q07bO7+'kO'#[QWO,5<[OOQO7+'_7+'_O'#aQ7[O<<KzOOQO1G4s1G4sO'#hQWO1G4sO'#sQWO1G4sO'$RQWO7++xO'$RQWO7++xO!&_Q7[O1G4uO'$ZQpO1G4uO'$eQWO7++yOOQ?Mp7+(S7+(SO'$mQWO7+(TO'$xQpO7+(TOOQ?Mp7+(R7+(RO$(PQWO7+(SO'%PQWO7+(TO!&_Q7[O7+(TOCcQWO7+(SO'%UQWO7+(TO'%^Q7[O<<NrOOQ?Mr7+$z7+$zO'%hQpO,5?bOOQO-E<t-E<tO'%rQ?NbO7+(WOOQUAN=gAN=gO9^QWO1G5SOOQO1G5S1G5SO'&SQWO1G5SO'&XQWO7+,RO'&XQWO7+,RO9hQ?MxOANBTO@fQWOANBTOOQUANBTANBTOOQUANApANApOOQUANAqANAqO'&aQWO,5?dOOQO-E<v-E<vO'&lQ07bO1G6dOOQO,5?f,5?fOOQO-E<x-E<xOOQU1G3^1G3^O%+xQ^O,5<}O'&vQWO,5<}OOQU<<Lc<<LcO!&_Q7[O<<LcO&7WQWO<<LcO'&{QWO<<LcO%[Q^O<<LcOOQU<<Le<<LeO9hQ?MxO<<LeO$!}QWO<<LeO9RQWO<<LeO''TQ`O1G5RO''`QWO7+,POOQUAN=]AN=]O9hQ?MxOAN=]OOQU<= n<= nOOQU<= o<= oO''hQWO<= nO''mQWO<= oOOQU<<Lm<<LmO''rQWO<<LmO''wQ^O<<LmOOQU1G3w1G3wO>tQWO7+)hO'(OQWO<<I}O'(ZQ07bO<<I}OOQO<<Hv<<HvOOQ?MrAN?cAN?cOOQOAN?[AN?[O$>`Q?NdOAN?[OOQOAN>{AN>{O%[Q^OAN?[OOQO<<Mu<<MuOOQUG27SG27SO!&_Q7[OG27SO#&wQWOG27SO'(eQrOG27SO4UQrOG27SO'(lQWOG27SO'(tQ07bO<<JeO')RQ07bO1G2^O'*tQ07bO,5?]O',tQ07bO,5?_O'.tQ07bO1G2pO'0tQ07bO1G2rO'2tQ07bO<<KVO'3RQ07bO<<IxOOQO1G1v1G1vO!+hQ7[OANAfOOQO7+*_7+*_O'3`QWO7+*_O'3kQWO<= dO'3sQpO7+*aOOQ?Mp<<Ko<<KoO$(PQWO<<KoOCcQWO<<KoO'3}QWO<<KoOOQ?Mp<<Kn<<KnO'4YQpO<<KoO$(PQWO<<KnO'4aQWO<<KoO!&_Q7[O<<KoOOQO7+*n7+*nO9^QWO7+*nO'4fQWO<= mOOQUG27oG27oO9hQ?MxOG27oO!(oQ^O1G5OO'4nQWO7+,OO&7WQWOANA}OOQUANA}ANA}O!&_Q7[OANA}O'4vQWOANA}OOQUANBPANBPO9hQ?MxOANBPO$!}QWOANBPOOQO'#H['#H[OOQO7+*m7+*mOOQUG22wG22wOOQUANEYANEYOOQUANEZANEZOOQUANBXANBXO'5OQWOANBXOOQU<<MS<<MSO!(oQ^OAN?iOOQOG24vG24vO$>`Q?NdOG24vO#&wQWOLD,nOOQULD,nLD,nO!&_Q7[OLD,nO'5TQrOLD,nO'5[Q07bO7+'xO'6}Q07bO,5?]O'8}Q07bO,5?_O':}Q07bO7+'zO'<pQ7[OG27QOOQO<<My<<MyOOQ?MpANAZANAZO$(PQWOANAZOCcQWOANAZO'=QQWOANAZOOQ?MpANAYANAYO'=]QpOANAZOOQO<<NY<<NYOOQULD-ZLD-ZO'=dQ07bO7+*jOOQUG27iG27iO&7WQWOG27iO!&_Q7[OG27iOOQUG27kG27kO9hQ?MxOG27kOOQUG27sG27sO'=nQ07bOG25TOOQOLD*bLD*bOOQU!$(!Y!$(!YO#&wQWO!$(!YO!&_Q7[O!$(!YO'=xQ?NdOG27QOOQ?MpG26uG26uO$(PQWOG26uOCcQWOG26uO'@WQWOG26uOOQULD-TLD-TO&7WQWOLD-TOOQULD-VLD-VOOQU!)9Et!)9EtO#&wQWO!)9EtOOQ?MpLD,aLD,aO$(PQWOLD,aOCcQWOLD,aOOQU!$(!o!$(!oOOQU!.K;`!.K;`O'@cQ07bOG27QOOQ?Mp!$( {!$( {O$(PQWO!$( {OOQ?Mp!)9Eg!)9EgO!(oQ^O'#DwO1PQWO'#EUO'BUQrO'#JmO'B]QMnO'#DsO'BdQ^O'#D{O'BkQrO'#CiO'ERQrO'#CiO!(oQ^O'#D}O'EcQ^O,5;WO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O'#IlO'GfQWO,5<gO!(oQ^O,5;bO'GnQ7[O,5;bO'IXQ7[O,5;bO!(oQ^O,5;vO!&_Q7[O'#GjO'GnQ7[O'#GjO!&_Q7[O'#GlO'GnQ7[O'#GlO1SQWO'#DWO1SQWO'#DWO!&_Q7[O'#F}O'GnQ7[O'#F}O!&_Q7[O'#GPO'GnQ7[O'#GPO!&_Q7[O'#G_O'GnQ7[O'#G_O!(oQ^O,5:gO'I`Q`O'#D[O!(oQ^O,5@jO'EcQ^O1G0rO'IjQ07bO'#CiO!(oQ^O1G2OO!&_Q7[O'#IqO'GnQ7[O'#IqO!&_Q7[O'#IsO'GnQ7[O'#IsO'ItQpO'#CrO!&_Q7[O,5<rO'GnQ7[O,5<rO'EcQ^O1G2PO!(oQ^O7+&yO!&_Q7[O1G2^O'GnQ7[O1G2^O!&_Q7[O'#IqO'GnQ7[O'#IqO!&_Q7[O'#IsO'GnQ7[O'#IsO!&_Q7[O1G2`O'GnQ7[O1G2`O'EcQ^O7+'kO'EcQ^O7+&^O!&_Q7[OANAfO'GnQ7[OANAfO'JXQWO'#ElO'J^QWO'#ElO'JfQWO'#F[O'JkQWO'#EvO'JpQWO'#KOO'J{QWO'#J|O'KWQWO,5;WO'K]Q7[O,5<dO'KdQWO'#GWO'KiQWO'#GWO'KnQWO,5<eO'KvQWO,5;WO'LOQ07bO1G1_O'LVQWO,5<rO'L[QWO,5<rO'LaQWO,5<tO'LfQWO,5<tO'LkQWO1G2PO'LpQWO1G0rO'LuQ7[O<<KzO'L|Q7[O<<KzO7eQ7[O'#FzO9RQWO'#FyOAaQWO'#EkO!(oQ^O,5;sO!3SQWO'#GWO!3SQWO'#GWO!3SQWO'#GYO!3SQWO'#GYO!+hQ7[O7+(`O!+hQ7[O7+(`O%+SQpO1G2tO%+SQpO1G2tO!&_Q7[O,5=YO!&_Q7[O,5=Y",stateData:"'NQ~O'wOS'xOSTOS'yRQ~OPYOQYOSfOY!VOaqOdzOeyOmkOoYOpkOqkOwkOyYO{YO!PWO!TkO!UkO![XO!fuO!iZO!lYO!mYO!nYO!pvO!rwO!uxO!y]O#t!PO$V|O%e}O%g!QO%i!OO%j!OO%k!OO%n!RO%p!SO%s!TO%t!TO%v!UO&S!WO&Y!XO&[!YO&^!ZO&`![O&c!]O&i!^O&o!_O&q!`O&s!aO&u!bO&w!cO(OSO(QTO(TUO([VO(j[O(yiO~OWtO~P`OPYOQYOSfOd!jOe!iOmkOoYOpkOqkOwkOyYO{YO!PWO!TkO!UkO![!eO!fuO!iZO!lYO!mYO!nYO!pvO!r!gO!u!hO$V!kO(O!dO(QTO(TUO([VO(j[O(yiO~Oa!wOp!nO!P!oO!_!yO!`!vO!a!vO!y;QO#Q!pO#R!pO#S!xO#T!pO#U!pO#X!zO#Y!zO(P!lO(QTO(TUO(`!mO(j!sO~O'y!{O~OP]XR]X[]Xa]Xo]X}]X!P]X!Y]X!i]X!m]X#O]X#P]X#]]X#hfX#k]X#l]X#m]X#n]X#o]X#p]X#q]X#r]X#s]X#u]X#w]X#y]X#z]X$P]X'u]X([]X(m]X(t]X(u]X~O!d%PX~P(qO_!}O(Q#PO(R!}O(S#PO~O_#QO(S#PO(T#PO(U#QO~Ou#SO!R#TO(]#TO(^#VO~OPYOQYOSfOd!jOe!iOmkOoYOpkOqkOwkOyYO{YO!PWO!TkO!UkO![!eO!fuO!iZO!lYO!mYO!nYO!pvO!r!gO!u!hO$V!kO(O;UO(QTO(TUO([VO(j[O(yiO~O!X#ZO!Y#WO!V(cP!V(qP~P+}O!Z#cO~P`OPYOQYOSfOd!jOe!iOoYOpkOqkOwkOyYO{YO!PWO!TkO!UkO![!eO!fuO!iZO!lYO!mYO!nYO!pvO!r!gO!u!hO$V!kO(QTO(TUO([VO(j[O(yiO~Om#mO!X#iO!y]O#f#lO#g#iO(O;VO!h(nP~P.iO!i#oO(O#nO~O!u#sO!y]O%e#tO~O#h#uO~O!d#vO#h#uO~OP$[OR#zO[$cOo$aO}#yO!P#{O!Y$_O!i#xO!m$[O#O$RO#k$OO#l$PO#m$PO#n$PO#o$QO#p$RO#q$RO#r$bO#s$RO#u$SO#w$UO#y$WO#z$XO([VO(m$YO(t#|O(u#}O~Oa(aX'u(aX's(aX!h(aX!V(aX![(aX%f(aX!d(aX~P1qO#P$dO#]$eO$P$eOP(bXR(bX[(bXo(bX}(bX!P(bX!Y(bX!i(bX!m(bX#O(bX#k(bX#l(bX#m(bX#n(bX#o(bX#p(bX#q(bX#r(bX#s(bX#u(bX#w(bX#y(bX#z(bX([(bX(m(bX(t(bX(u(bX![(bX%f(bX~Oa(bX'u(bX's(bX!V(bX!h(bXs(bX!d(bX~P4UO#]$eO~O$[$hO$^$gO$e$mO~OSfO![$nO$h$oO$j$qO~Oh%VOm%WOo%XOp$tOq$tOw%YOy%ZO{%[O!P${O![$|O!f%aO!i$xO#g%bO$V%_O$r%]O$t%^O$w%`O(O$sO(QTO(TUO([$uO(t$}O(u%POg(XP~O!i%cO~O!P%fO![%gO(O%eO~O!d%kO~Oa%lO'u%lO~O}%pO~P%[O(P!lO~P%[O%k%tO~P%[Oh%VO!i%cO(O%eO(P!lO~Oe%{O!i%cO(O%eO~O#s$RO~O}&QO![%}O!i&PO%g&TO(O%eO(P!lO(QTO(TUO`)SP~O!u#sO~O%p&VO!P)OX![)OX(O)OX~O(O&WO~O!r&]O#t!PO%g!QO%i!OO%j!OO%k!OO%n!RO%p!SO%s!TO%t!TO~Od&bOe&aO!u&_O%e&`O%x&^O~P;|Od&eOeyO![&dO!r&]O!uxO!y]O#t!PO%e}O%i!OO%j!OO%k!OO%n!RO%p!SO%s!TO%t!TO%v!UO~Ob&hO#]&kO%g&fO(P!lO~P=RO!i&lO!r&pO~O!i#oO~O![XO~Oa%lO't&xO'u%lO~Oa%lO't&{O'u%lO~Oa%lO't&}O'u%lO~O's]X!V]Xs]X!h]X&W]X![]X%f]X!d]X~P(qO!_'[O!`'TO!a'TO(P!lO(QTO(TUO~Op'RO!P'QO!X'UO(`'PO!Z(dP!Z(sP~P@YOk'_O![']O(O%eO~Oe'dO!i%cO(O%eO~O}&QO!i&PO~Op!nO!P!oO!y;QO#Q!pO#R!pO#T!pO#U!pO(P!lO(QTO(TUO(`!mO(j!sO~O!_'jO!`'iO!a'iO#S!pO#X'kO#Y'kO~PAtOa%lOh%VO!d#vO!i%cO'u%lO(m'mO~O!m'qO#]'oO~PCSOp!nO!P!oO(QTO(TUO(`!mO(j!sO~O![XOp(hX!P(hX!_(hX!`(hX!a(hX!y(hX#Q(hX#R(hX#S(hX#T(hX#U(hX#X(hX#Y(hX(P(hX(Q(hX(T(hX(`(hX(j(hX~O!`'iO!a'iO(P!lO~PCrO'z'uO'{'uO'|'wO~O_!}O(Q'yO(R!}O(S'yO~O_#QO(S'yO(T'yO(U#QO~Ou#SO!R#TO(]#TO(^'}O~O!X(PO!V'SX!V'YX!Y'SX!Y'YX~P+}O!Y(RO!V(cX~OP$[OR#zO[$cOo$aO}#yO!P#{O!Y(RO!i#xO!m$[O#O$RO#k$OO#l$PO#m$PO#n$PO#o$QO#p$RO#q$RO#r$bO#s$RO#u$SO#w$UO#y$WO#z$XO([VO(m$YO(t#|O(u#}O~O!V(cX~PGfO!V(WO~O!V(pX!Y(pX!d(pX!h(pX(m(pX~O#](pX#h#aX!Z(pX~PIiO#](XO!V(rX!Y(rX~O!Y(YO!V(qX~O!V(]O~O#]$eO~PIiO!Z(^O~P`OR#zO}#yO!P#{O!i#xO([VOP!ka[!kao!ka!Y!ka!m!ka#O!ka#k!ka#l!ka#m!ka#n!ka#o!ka#p!ka#q!ka#r!ka#s!ka#u!ka#w!ka#y!ka#z!ka(m!ka(t!ka(u!ka~Oa!ka'u!ka's!ka!V!ka!h!kas!ka![!ka%f!ka!d!ka~PKPO!h(_O~O!d#vO#](`O(m'mO!Y(oXa(oX'u(oX~O!h(oX~PMlO!P%fO![%gO!y]O#f(eO#g(dO(O%eO~O!Y(fO!h(nX~O!h(hO~O!P%fO![%gO#g(dO(O%eO~OP(bXR(bX[(bXo(bX}(bX!P(bX!Y(bX!i(bX!m(bX#O(bX#k(bX#l(bX#m(bX#n(bX#o(bX#p(bX#q(bX#r(bX#s(bX#u(bX#w(bX#y(bX#z(bX([(bX(m(bX(t(bX(u(bX~O!d#vO!h(bX~P! YOR(jO}(iO!i#xO#P$dO!y!xa!P!xa~O!u!xa%e!xa![!xa#f!xa#g!xa(O!xa~P!#ZO!u(nO~OPYOQYOSfOd!jOe!iOmkOoYOpkOqkOwkOyYO{YO!PWO!TkO!UkO![XO!fuO!iZO!lYO!mYO!nYO!pvO!r!gO!u!hO$V!kO(O!dO(QTO(TUO([VO(j[O(yiO~Oh%VOm%WOo%XOp$tOq$tOw%YOy%ZO{;nO!P${O![$|O!f=OO!i$xO#g;tO$V%_O$r;pO$t;rO$w%`O(O(rO(QTO(TUO([$uO(t$}O(u%PO~O#h(tO~O!X(vO!h(fP~P%[O(`(xO(j[O~O!P(zO!i#xO(`(xO(j[O~OP;POQ;POSfOd<zOe!iOmkOo;POpkOqkOwkOy;PO{;PO!PWO!TkO!UkO![!eO!f;SO!iZO!l;PO!m;PO!n;PO!p;TO!r;WO!u!hO$V!kO(O)XO(QTO(TUO([VO(j[O(y<xO~O!Y$_Oa$oa'u$oa's$oa!h$oa!V$oa![$oa%f$oa!d$oa~O#t)`O~P!&_Oh%VOm%WOo%XOp$tOq$tOw%YOy%ZO{%[O!P${O![$|O!f%aO!i$xO#g%bO$V%_O$r%]O$t%^O$w%`O(O(rO(QTO(TUO([$uO(t$}O(u%PO~Og(kP~P!+hO})eO!d)dO![$]X$Y$]X$[$]X$^$]X$e$]X~O!d)dO![(vX$Y(vX$[(vX$^(vX$e(vX~O})eO~P!-qO})eO![(vX$Y(vX$[(vX$^(vX$e(vX~O![)gO$Y)kO$[)fO$^)fO$e)lO~O!X)oO~P!(oO$[$hO$^$gO$e)sO~Ok$xX}$xX!P$xX#P$xX(t$xX(u$xX~OgjXg$xXkjX!YjX#]jX~P!/gOu)uO(])vO(^)xO~Ok*RO})zO!P){O(t$}O(u%PO~Og)yO~P!0kOg*SO~Oh%VOm%WOo%XOp$tOq$tOw%YOy%ZO{;nO!P*UO![*VO!f=OO!i$xO#g;tO$V%_O$r;pO$t;rO$w%`O(QTO(TUO([$uO(t$}O(u%PO~O!X*YO(O*TO!h(zP~P!1YO#h*[O~O!i*]O~Oh%VOm%WOo%XOp$tOq$tOw%YOy%ZO{;nO!P${O![$|O!f=OO!i$xO#g;tO$V%_O$r;pO$t;rO$w%`O(O*_O(QTO(TUO([$uO(t$}O(u%PO~O!X*bO!V({P~P!3XOo*nO!P*fO!_*lO!`*eO!a*eO!i*]O#X*mO%]*hO(P!lO(`!mO~O!Z*kO~P!4|O#P$dOk(ZX}(ZX!P(ZX(t(ZX(u(ZX!Y(ZX#](ZX~Og(ZX#}(ZX~P!5uOk*sO#]*rOg(YX!Y(YX~O!Y*tOg(XX~O(O&WOg(XP~Op*wO~O!i*|O~O(O(rO~Om+QO!P%fO!X#iO![%gO!y]O#f#lO#g#iO(O%eO!h(nP~O!d#vO#h+RO~O!P%fO!X+TO!Y(YO![%gO(O%eO!V(qP~Op'XO!P+VO!X+UO(QTO(TUO(`(xO~O!Z(sP~P!8uO!Y+WOa)PX'u)PX~OP$[OR#zO[$cOo$aO}#yO!P#{O!i#xO!m$[O#O$RO#k$OO#l$PO#m$PO#n$PO#o$QO#p$RO#q$RO#r$bO#s$RO#u$SO#w$UO#y$WO#z$XO([VO(m$YO(t#|O(u#}O~Oa!ga!Y!ga'u!ga's!ga!V!ga!h!gas!ga![!ga%f!ga!d!ga~P!9mOR#zO}#yO!P#{O!i#xO([VOP!oa[!oao!oa!Y!oa!m!oa#O!oa#k!oa#l!oa#m!oa#n!oa#o!oa#p!oa#q!oa#r!oa#s!oa#u!oa#w!oa#y!oa#z!oa(m!oa(t!oa(u!oa~Oa!oa'u!oa's!oa!V!oa!h!oas!oa![!oa%f!oa!d!oa~P!<TOR#zO}#yO!P#{O!i#xO([VOP!qa[!qao!qa!Y!qa!m!qa#O!qa#k!qa#l!qa#m!qa#n!qa#o!qa#p!qa#q!qa#r!qa#s!qa#u!qa#w!qa#y!qa#z!qa(m!qa(t!qa(u!qa~Oa!qa'u!qa's!qa!V!qa!h!qas!qa![!qa%f!qa!d!qa~P!>kOh%VOk+aO![']O%f+`O~O!d+cOa(WX![(WX'u(WX!Y(WX~Oa%lO![XO'u%lO~Oh%VO!i%cO~Oh%VO!i%cO(O%eO~O!d#vO#h(tO~Ob+nO%g+oO(O+kO(QTO(TUO!Z)TP~O!Y+pO`)SX~O[+tO~O`+uO~O![%}O(O%eO(P!lO`)SP~Oh%VO#]+zO~Oh%VOk+}O![$|O~O![,PO~O},RO![XO~O%k%tO~O!u,WO~Oe,]O~Ob,^O(O#nO(QTO(TUO!Z)RP~Oe%{O~O%g!QO(O&WO~P=RO[,cO`,bO~OPYOQYOSfOdzOeyOmkOoYOpkOqkOwkOyYO{YO!PWO!TkO!UkO!fuO!iZO!lYO!mYO!nYO!pvO!uxO!y]O%e}O(QTO(TUO([VO(j[O(yiO~O![!eO!r!gO$V!kO(O!dO~P!EkO`,bOa%lO'u%lO~OPYOQYOSfOd!jOe!iOmkOoYOpkOqkOwkOyYO{YO!PWO!TkO!UkO![!eO!fuO!iZO!lYO!mYO!nYO!pvO!u!hO$V!kO(O!dO(QTO(TUO([VO(j[O(yiO~Oa,hO!rwO#t!OO%i!OO%j!OO%k!OO~P!HTO!i&lO~O&Y,nO~O![,pO~O&k,rO&m,sOP&haQ&haS&haY&haa&had&hae&ham&hao&hap&haq&haw&hay&ha{&ha!P&ha!T&ha!U&ha![&ha!f&ha!i&ha!l&ha!m&ha!n&ha!p&ha!r&ha!u&ha!y&ha#t&ha$V&ha%e&ha%g&ha%i&ha%j&ha%k&ha%n&ha%p&ha%s&ha%t&ha%v&ha&S&ha&Y&ha&[&ha&^&ha&`&ha&c&ha&i&ha&o&ha&q&ha&s&ha&u&ha&w&ha's&ha(O&ha(Q&ha(T&ha([&ha(j&ha(y&ha!Z&ha&a&hab&ha&f&ha~O(O,xO~Oh!bX!Y!OX!Z!OX!d!OX!d!bX!i!bX#]!OX~O!Y!bX!Z!bX~P# ZO!d,}O#],|Oh(eX!Y#eX!Y(eX!Z#eX!Z(eX!d(eX!i(eX~Oh%VO!d-PO!i%cO!Y!^X!Z!^X~Op!nO!P!oO(QTO(TUO(`!mO~OP;POQ;POSfOd<zOe!iOmkOo;POpkOqkOwkOy;PO{;PO!PWO!TkO!UkO![!eO!f;SO!iZO!l;PO!m;PO!n;PO!p;TO!r;WO!u!hO$V!kO(QTO(TUO([VO(j[O(y<xO~O(O;zO~P##_O!Y-TO!Z(dX~O!Z-VO~O!d,}O#],|O!Y#eX!Z#eX~O!Y-WO!Z(sX~O!Z-YO~O!`-ZO!a-ZO(P!lO~P#!|O!Z-^O~P'_Ok-aO![']O~O!V-fO~Op!xa!_!xa!`!xa!a!xa#Q!xa#R!xa#S!xa#T!xa#U!xa#X!xa#Y!xa(P!xa(Q!xa(T!xa(`!xa(j!xa~P!#ZO!m-kO#]-iO~PCSO!`-mO!a-mO(P!lO~PCrOa%lO#]-iO'u%lO~Oa%lO!d#vO#]-iO'u%lO~Oa%lO!d#vO!m-kO#]-iO'u%lO(m'mO~O'z'uO'{'uO'|-rO~Os-sO~O!V'Sa!Y'Sa~P!9mO!X-wO!V'SX!Y'SX~P%[O!Y(RO!V(ca~O!V(ca~PGfO!Y(YO!V(qa~O!P%fO!X-{O![%gO(O%eO!V'YX!Y'YX~O#]-}O!Y(oa!h(oaa(oa'u(oa~O!d#vO~P#+eO!Y(fO!h(na~O!P%fO![%gO#g.RO(O%eO~Om.WO!P%fO!X.TO![%gO!y]O#f.VO#g.TO(O%eO!Y']X!h']X~OR.[O!i#xO~Oh%VOk._O![']O%f.^O~Oa#`i!Y#`i'u#`i's#`i!V#`i!h#`is#`i![#`i%f#`i!d#`i~P!9mOk=UO})zO!P){O(t$}O(u%PO~O#h#[aa#[a#]#[a'u#[a!Y#[a!h#[a![#[a!V#[a~P#.aO#h(ZXP(ZXR(ZX[(ZXa(ZXo(ZX!i(ZX!m(ZX#O(ZX#k(ZX#l(ZX#m(ZX#n(ZX#o(ZX#p(ZX#q(ZX#r(ZX#s(ZX#u(ZX#w(ZX#y(ZX#z(ZX'u(ZX([(ZX(m(ZX!h(ZX!V(ZX's(ZXs(ZX![(ZX%f(ZX!d(ZX~P!5uO!Y.lO!h(fX~P!9mO!h.oO~O!V.qO~OP$[OR#zO}#yO!P#{O!i#xO!m$[O([VO[#jia#jio#ji!Y#ji#O#ji#l#ji#m#ji#n#ji#o#ji#p#ji#q#ji#r#ji#s#ji#u#ji#w#ji#y#ji#z#ji'u#ji(m#ji(t#ji(u#ji's#ji!V#ji!h#jis#ji![#ji%f#ji!d#ji~O#k#ji~P#1|O#k$OO~P#1|OP$[OR#zOo$aO}#yO!P#{O!i#xO!m$[O#k$OO#l$PO#m$PO#n$PO([VO[#jia#ji!Y#ji#O#ji#p#ji#q#ji#r#ji#s#ji#u#ji#w#ji#y#ji#z#ji'u#ji(m#ji(t#ji(u#ji's#ji!V#ji!h#jis#ji![#ji%f#ji!d#ji~O#o#ji~P#4kO#o$QO~P#4kOP$[OR#zO[$cOo$aO}#yO!P#{O!i#xO!m$[O#O$RO#k$OO#l$PO#m$PO#n$PO#o$QO#p$RO#q$RO#r$bO#s$RO([VOa#ji!Y#ji#w#ji#y#ji#z#ji'u#ji(m#ji(t#ji(u#ji's#ji!V#ji!h#jis#ji![#ji%f#ji!d#ji~O#u#ji~P#7YOP$[OR#zO[$cOo$aO}#yO!P#{O!i#xO!m$[O#O$RO#k$OO#l$PO#m$PO#n$PO#o$QO#p$RO#q$RO#r$bO#s$RO#u$SO([VO(u#}Oa#ji!Y#ji#y#ji#z#ji'u#ji(m#ji(t#ji's#ji!V#ji!h#jis#ji![#ji%f#ji!d#ji~O#w$UO~P#9pO#w#ji~P#9pO#u$SO~P#7YOP$[OR#zO[$cOo$aO}#yO!P#{O!i#xO!m$[O#O$RO#k$OO#l$PO#m$PO#n$PO#o$QO#p$RO#q$RO#r$bO#s$RO#u$SO#w$UO([VO(t#|O(u#}Oa#ji!Y#ji#z#ji'u#ji(m#ji's#ji!V#ji!h#jis#ji![#ji%f#ji!d#ji~O#y#ji~P#<fO#y$WO~P#<fOP]XR]X[]Xo]X}]X!P]X!i]X!m]X#O]X#P]X#]]X#hfX#k]X#l]X#m]X#n]X#o]X#p]X#q]X#r]X#s]X#u]X#w]X#y]X#z]X$P]X([]X(m]X(t]X(u]X!Y]X!Z]X~O#}]X~P#?TOP$[OR#zO[;hOo;fO}#yO!P#{O!i#xO!m$[O#O;]O#k;YO#l;ZO#m;ZO#n;ZO#o;[O#p;]O#q;]O#r;gO#s;]O#u;^O#w;`O#y;bO#z;cO([VO(m$YO(t#|O(u#}O~O#}.sO~P#AbO#P$dO#];iO$P;iO#}(bX!Z(bX~P! YOa'`a!Y'`a'u'`a's'`a!h'`a!V'`as'`a!['`a%f'`a!d'`a~P!9mO[#jia#jio#ji!Y#ji#O#ji#o#ji#p#ji#q#ji#r#ji#s#ji#u#ji#w#ji#y#ji#z#ji'u#ji(m#ji's#ji!V#ji!h#jis#ji![#ji%f#ji!d#ji~OP$[OR#zO}#yO!P#{O!i#xO!m$[O#k$OO#l$PO#m$PO#n$PO([VO(t#ji(u#ji~P#DdOk=UO})zO!P){O(t$}O(u%POP#jiR#ji!i#ji!m#ji#k#ji#l#ji#m#ji#n#ji([#ji~P#DdO!Y.wOg(kX~P!0kOg.yO~Oa$Oi!Y$Oi'u$Oi's$Oi!V$Oi!h$Ois$Oi![$Oi%f$Oi!d$Oi~P!9mO$[.zO$^.zO~O$[.{O$^.{O~O!d)dO#].|O![$bX$Y$bX$[$bX$^$bX$e$bX~O!X.}O~O![)gO$Y/PO$[)fO$^)fO$e/QO~O!Y;dO!Z(aX~P#AbO!Z/RO~O!d)dO$e(vX~O$e/TO~Ou)uO(])vO(^/WO~O!V/[O~P!&_O(t$}Ok%^a}%^a!P%^a(u%^a!Y%^a#]%^a~Og%^a#}%^a~P#K^O(u%POk%`a}%`a!P%`a(t%`a!Y%`a#]%`a~Og%`a#}%`a~P#LPO!YfX!dfX!hfX!h$xX(mfX~P!/gO!X/eO!Y(YO(O/dO!V(qP!V({P~P!1YOo*nO!_*lO!`*eO!a*eO!i*]O#X*mO%]*hO(P!lO~Op'XO!P/fO!X+UO!Z*kO(QTO(TUO(`;wO!Z(sP~P#MjO!h/gO~P#.aO!Y/hO!d#vO(m'mO!h(zX~O!h/mO~O!P%fO!X*YO![%gO(O%eO!h(zP~O#h/oO~O!V$xX!Y$xX!d%PX~P!/gO!Y/pO!V({X~P#.aO!d/rO~O!V/tO~Oh%VOo/xO!d#vO!i%cO(m'mO~O(O/zO~O!d+cO~Oa%lO!Y0OO'u%lO~O!Z0QO~P!4|O!`0RO!a0RO(P!lO(`!mO~O!P0TO(`!mO~O#X0UO~Og%^a!Y%^a#]%^a#}%^a~P!0kOg%`a!Y%`a#]%`a#}%`a~P!0kO(O&WOg'iX!Y'iX~O!Y*tOg(Xa~Og0_O~OR0`O}0`O!P0aO#P$dOkza(tza(uza!Yza#]za~Ogza#}za~P$%]O})zO!P){Ok$qa(t$qa(u$qa!Y$qa#]$qa~Og$qa#}$qa~P$&UO})zO!P){Ok$sa(t$sa(u$sa!Y$sa#]$sa~Og$sa#}$sa~P$&wO#h0dO~Og%Ra!Y%Ra#]%Ra#}%Ra~P!0kO!d#vO~O#h0gO~O!Y+WOa)Pa'u)Pa~OR#zO}#yO!P#{O!i#xO([VOP!oi[!oio!oi!Y!oi!m!oi#O!oi#k!oi#l!oi#m!oi#n!oi#o!oi#p!oi#q!oi#r!oi#s!oi#u!oi#w!oi#y!oi#z!oi(m!oi(t!oi(u!oi~Oa!oi'u!oi's!oi!V!oi!h!ois!oi![!oi%f!oi!d!oi~P$(fOh%VOo%XOp$tOq$tOw%YOy%ZO{;nO!P${O![$|O!f=OO!i$xO#g;tO$V%_O$r;pO$t;rO$w%`O(QTO(TUO([$uO(t$}O(u%PO~Om0pO(O0oO~P$*|O!d+cOa(Wa![(Wa'u(Wa!Y(Wa~O#h0vO~O[]X!YfX!ZfX~O!Y0wO!Z)TX~O!Z0yO~O[0zO~Ob0|O(O+kO(QTO(TUO~O![%}O(O%eO`'qX!Y'qX~O!Y+pO`)Sa~O!h1PO~P!9mO[1SO~O`1TO~O#]1WO~Ok1ZO![$|O~O(`(xO!Z)QP~Oh%VOk1dO![1aO%f1cO~O[1nO!Y1lO!Z)RX~O!Z1oO~O`1qOa%lO'u%lO~O(O#nO(QTO(TUO~O#P$dO#]$eO$P$eOP(bXR(bX[(bXo(bX}(bX!P(bX!Y(bX!i(bX!m(bX#O(bX#k(bX#l(bX#m(bX#n(bX#o(bX#p(bX#q(bX#r(bX#u(bX#w(bX#y(bX#z(bX([(bX(m(bX(t(bX(u(bX~O#s1tO&W1uOa(bX~P$0dO#]$eO#s1tO&W1uO~Oa1wO~P%[Oa1yO~O&a1|OP&_iQ&_iS&_iY&_ia&_id&_ie&_im&_io&_ip&_iq&_iw&_iy&_i{&_i!P&_i!T&_i!U&_i![&_i!f&_i!i&_i!l&_i!m&_i!n&_i!p&_i!r&_i!u&_i!y&_i#t&_i$V&_i%e&_i%g&_i%i&_i%j&_i%k&_i%n&_i%p&_i%s&_i%t&_i%v&_i&S&_i&Y&_i&[&_i&^&_i&`&_i&c&_i&i&_i&o&_i&q&_i&s&_i&u&_i&w&_i's&_i(O&_i(Q&_i(T&_i([&_i(j&_i(y&_i!Z&_ib&_i&f&_i~Ob2SO!Z2QO&f2RO~P`O![XO!i2UO~O&m,sOP&hiQ&hiS&hiY&hia&hid&hie&him&hio&hip&hiq&hiw&hiy&hi{&hi!P&hi!T&hi!U&hi![&hi!f&hi!i&hi!l&hi!m&hi!n&hi!p&hi!r&hi!u&hi!y&hi#t&hi$V&hi%e&hi%g&hi%i&hi%j&hi%k&hi%n&hi%p&hi%s&hi%t&hi%v&hi&S&hi&Y&hi&[&hi&^&hi&`&hi&c&hi&i&hi&o&hi&q&hi&s&hi&u&hi&w&hi's&hi(O&hi(Q&hi(T&hi([&hi(j&hi(y&hi!Z&hi&a&hib&hi&f&hi~O!V2[O~O!Y!^a!Z!^a~P#AbOp!nO!P!oO!X2bO(`!mO!Y'TX!Z'TX~P@YO!Y-TO!Z(da~O!Y'ZX!Z'ZX~P!8uO!Y-WO!Z(sa~O!Z2iO~P'_Oa%lO#]2rO'u%lO~Oa%lO!d#vO#]2rO'u%lO~Oa%lO!d#vO!m2vO#]2rO'u%lO(m'mO~Oa%lO'u%lO~P!9mO!Y$_Os$oa~O!V'Si!Y'Si~P!9mO!Y(RO!V(ci~O!Y(YO!V(qi~O!V(ri!Y(ri~P!9mO!Y(oi!h(oia(oi'u(oi~P!9mO#]2xO!Y(oi!h(oia(oi'u(oi~O!Y(fO!h(ni~O!P%fO![%gO!y]O#f2}O#g2|O(O%eO~O!P%fO![%gO#g2|O(O%eO~Ok3UO![']O%f3TO~Oh%VOk3UO![']O%f3TO~O#h%^aP%^aR%^a[%^aa%^ao%^a!i%^a!m%^a#O%^a#k%^a#l%^a#m%^a#n%^a#o%^a#p%^a#q%^a#r%^a#s%^a#u%^a#w%^a#y%^a#z%^a'u%^a([%^a(m%^a!h%^a!V%^a's%^as%^a![%^a%f%^a!d%^a~P#K^O#h%`aP%`aR%`a[%`aa%`ao%`a!i%`a!m%`a#O%`a#k%`a#l%`a#m%`a#n%`a#o%`a#p%`a#q%`a#r%`a#s%`a#u%`a#w%`a#y%`a#z%`a'u%`a([%`a(m%`a!h%`a!V%`a's%`as%`a![%`a%f%`a!d%`a~P#LPO#h%^aP%^aR%^a[%^aa%^ao%^a!Y%^a!i%^a!m%^a#O%^a#k%^a#l%^a#m%^a#n%^a#o%^a#p%^a#q%^a#r%^a#s%^a#u%^a#w%^a#y%^a#z%^a'u%^a([%^a(m%^a!h%^a!V%^a's%^a#]%^as%^a![%^a%f%^a!d%^a~P#.aO#h%`aP%`aR%`a[%`aa%`ao%`a!Y%`a!i%`a!m%`a#O%`a#k%`a#l%`a#m%`a#n%`a#o%`a#p%`a#q%`a#r%`a#s%`a#u%`a#w%`a#y%`a#z%`a'u%`a([%`a(m%`a!h%`a!V%`a's%`a#]%`as%`a![%`a%f%`a!d%`a~P#.aO#hzaPza[zaazaoza!iza!mza#Oza#kza#lza#mza#nza#oza#pza#qza#rza#sza#uza#wza#yza#zza'uza([za(mza!hza!Vza'szasza![za%fza!dza~P$%]O#h$qaP$qaR$qa[$qaa$qao$qa!i$qa!m$qa#O$qa#k$qa#l$qa#m$qa#n$qa#o$qa#p$qa#q$qa#r$qa#s$qa#u$qa#w$qa#y$qa#z$qa'u$qa([$qa(m$qa!h$qa!V$qa's$qas$qa![$qa%f$qa!d$qa~P$&UO#h$saP$saR$sa[$saa$sao$sa!i$sa!m$sa#O$sa#k$sa#l$sa#m$sa#n$sa#o$sa#p$sa#q$sa#r$sa#s$sa#u$sa#w$sa#y$sa#z$sa'u$sa([$sa(m$sa!h$sa!V$sa's$sas$sa![$sa%f$sa!d$sa~P$&wO#h%RaP%RaR%Ra[%Raa%Rao%Ra!Y%Ra!i%Ra!m%Ra#O%Ra#k%Ra#l%Ra#m%Ra#n%Ra#o%Ra#p%Ra#q%Ra#r%Ra#s%Ra#u%Ra#w%Ra#y%Ra#z%Ra'u%Ra([%Ra(m%Ra!h%Ra!V%Ra's%Ra#]%Ras%Ra![%Ra%f%Ra!d%Ra~P#.aOa#`q!Y#`q'u#`q's#`q!V#`q!h#`qs#`q![#`q%f#`q!d#`q~P!9mO!X3^O!Y'UX!h'UX~P%[O!Y.lO!h(fa~O!Y.lO!h(fa~P!9mO!V3aO~O#}!ka!Z!ka~PKPO#}!ga!Y!ga!Z!ga~P#AbO#}!oa!Z!oa~P!<TO#}!qa!Z!qa~P!>kOg'XX!Y'XX~P!+hO!Y.wOg(ka~OSfO![3uO$c3vO~O!Z3zO~Os3{O~P#.aOa$lq!Y$lq'u$lq's$lq!V$lq!h$lqs$lq![$lq%f$lq!d$lq~P!9mO!V3|O~P#.aO})zO!P){O(u%POk'ea(t'ea!Y'ea#]'ea~Og'ea#}'ea~P%)nO})zO!P){Ok'ga(t'ga(u'ga!Y'ga#]'ga~Og'ga#}'ga~P%*aO(m$YO~P#.aO!VfX!V$xX!YfX!Y$xX!d%PX#]fX~P!/gO(O<QO~P!1YOmkO(O4OO~P.iO!P%fO!X4QO![%gO(O%eO!Y'aX!h'aX~O!Y/hO!h(za~O!Y/hO!d#vO!h(za~O!Y/hO!d#vO(m'mO!h(za~Og$zi!Y$zi#]$zi#}$zi~P!0kO!X4YO!V'cX!Y'cX~P!3XO!Y/pO!V({a~O!Y/pO!V({a~P#.aO!d#vO#s4bO~Oo4eO!d#vO(m'mO~O!P4hO(`!mO~O(t$}Ok%^i}%^i!P%^i(u%^i!Y%^i#]%^i~Og%^i#}%^i~P%.wO(u%POk%`i}%`i!P%`i(t%`i!Y%`i#]%`i~Og%`i#}%`i~P%/jOg(Yi!Y(Yi~P!0kO#]4mOg(Yi!Y(Yi~P!0kO!h4pO~Oa$mq!Y$mq'u$mq's$mq!V$mq!h$mqs$mq![$mq%f$mq!d$mq~P!9mO!V4tO~O!Y4uO![(|X~P#.aOa$xX![$xX%Z]X'u$xX!Y$xX~P!/gO%Z4xOalXklX}lX!PlX![lX'ulX(tlX(ulX!YlX~O%Z4xO~Ob5OO%g5PO(O+kO(QTO(TUO!Y'pX!Z'pX~O!Y0wO!Z)Ta~O[5TO~O`5UO~Oa%lO'u%lO~P#.aO![$|O~P#.aO!Y5^O#]5`O!Z)QX~O!Z5aO~Oo5hOp!nO!P5bO!_!yO!`!vO!a!vO!y;QO#Q!pO#R!pO#S!pO#T!pO#U!pO#X5gO#Y!zO(P!lO(QTO(TUO(`!mO(j!sO~O!Z5fO~P%4tOk5mO![1aO%f5lO~Oh%VOk5mO![1aO%f5lO~Ob5tO(O#nO(QTO(TUO!Y'oX!Z'oX~O!Y1lO!Z)Ra~O(QTO(TUO(`5vO~O`5zO~O#s5}O&W6OO~PMlO!h6PO~P%[Oa6RO~Oa6RO~P%[Ob2SO!Z6WO&f2RO~P`O!d6YO~O!d6[Oh(ei!Y(ei!Z(ei!d(ei!i(ei~O!Y#ei!Z#ei~P#AbO#]6]O!Y#ei!Z#ei~O!Y!^i!Z!^i~P#AbOa%lO#]6fO'u%lO~Oa%lO!d#vO#]6fO'u%lO~O!Y(oq!h(oqa(oq'u(oq~P!9mO!Y(fO!h(nq~O!P%fO![%gO#g6mO(O%eO~O![']O%f6pO~Ok6tO![']O%f6pO~O#h'eaP'eaR'ea['eaa'eao'ea!i'ea!m'ea#O'ea#k'ea#l'ea#m'ea#n'ea#o'ea#p'ea#q'ea#r'ea#s'ea#u'ea#w'ea#y'ea#z'ea'u'ea(['ea(m'ea!h'ea!V'ea's'eas'ea!['ea%f'ea!d'ea~P%)nO#h'gaP'gaR'ga['gaa'gao'ga!i'ga!m'ga#O'ga#k'ga#l'ga#m'ga#n'ga#o'ga#p'ga#q'ga#r'ga#s'ga#u'ga#w'ga#y'ga#z'ga'u'ga(['ga(m'ga!h'ga!V'ga's'gas'ga!['ga%f'ga!d'ga~P%*aO#h$ziP$ziR$zi[$zia$zio$zi!Y$zi!i$zi!m$zi#O$zi#k$zi#l$zi#m$zi#n$zi#o$zi#p$zi#q$zi#r$zi#s$zi#u$zi#w$zi#y$zi#z$zi'u$zi([$zi(m$zi!h$zi!V$zi's$zi#]$zis$zi![$zi%f$zi!d$zi~P#.aO#h%^iP%^iR%^i[%^ia%^io%^i!i%^i!m%^i#O%^i#k%^i#l%^i#m%^i#n%^i#o%^i#p%^i#q%^i#r%^i#s%^i#u%^i#w%^i#y%^i#z%^i'u%^i([%^i(m%^i!h%^i!V%^i's%^is%^i![%^i%f%^i!d%^i~P%.wO#h%`iP%`iR%`i[%`ia%`io%`i!i%`i!m%`i#O%`i#k%`i#l%`i#m%`i#n%`i#o%`i#p%`i#q%`i#r%`i#s%`i#u%`i#w%`i#y%`i#z%`i'u%`i([%`i(m%`i!h%`i!V%`i's%`is%`i![%`i%f%`i!d%`i~P%/jO!Y'Ua!h'Ua~P!9mO!Y.lO!h(fi~O#}#`i!Y#`i!Z#`i~P#AbOP$[OR#zO}#yO!P#{O!i#xO!m$[O([VO[#jio#ji#O#ji#l#ji#m#ji#n#ji#o#ji#p#ji#q#ji#r#ji#s#ji#u#ji#w#ji#y#ji#z#ji#}#ji(m#ji(t#ji(u#ji!Y#ji!Z#ji~O#k#ji~P%G^O#k;YO~P%G^OP$[OR#zOo;fO}#yO!P#{O!i#xO!m$[O#k;YO#l;ZO#m;ZO#n;ZO([VO[#ji#O#ji#p#ji#q#ji#r#ji#s#ji#u#ji#w#ji#y#ji#z#ji#}#ji(m#ji(t#ji(u#ji!Y#ji!Z#ji~O#o#ji~P%IfO#o;[O~P%IfOP$[OR#zO[;hOo;fO}#yO!P#{O!i#xO!m$[O#O;]O#k;YO#l;ZO#m;ZO#n;ZO#o;[O#p;]O#q;]O#r;gO#s;]O([VO#w#ji#y#ji#z#ji#}#ji(m#ji(t#ji(u#ji!Y#ji!Z#ji~O#u#ji~P%KnOP$[OR#zO[;hOo;fO}#yO!P#{O!i#xO!m$[O#O;]O#k;YO#l;ZO#m;ZO#n;ZO#o;[O#p;]O#q;]O#r;gO#s;]O#u;^O([VO(u#}O#y#ji#z#ji#}#ji(m#ji(t#ji!Y#ji!Z#ji~O#w;`O~P%MoO#w#ji~P%MoO#u;^O~P%KnOP$[OR#zO[;hOo;fO}#yO!P#{O!i#xO!m$[O#O;]O#k;YO#l;ZO#m;ZO#n;ZO#o;[O#p;]O#q;]O#r;gO#s;]O#u;^O#w;`O([VO(t#|O(u#}O#z#ji#}#ji(m#ji!Y#ji!Z#ji~O#y#ji~P&!OO#y;bO~P&!OOa#{y!Y#{y'u#{y's#{y!V#{y!h#{ys#{y![#{y%f#{y!d#{y~P!9mO[#jio#ji#O#ji#o#ji#p#ji#q#ji#r#ji#s#ji#u#ji#w#ji#y#ji#z#ji#}#ji(m#ji!Y#ji!Z#ji~OP$[OR#zO}#yO!P#{O!i#xO!m$[O#k;YO#l;ZO#m;ZO#n;ZO([VO(t#ji(u#ji~P&$zOk=VO})zO!P){O(t$}O(u%POP#jiR#ji!i#ji!m#ji#k#ji#l#ji#m#ji#n#ji([#ji~P&$zO#P$dOP(ZXR(ZX[(ZXk(ZXo(ZX}(ZX!P(ZX!i(ZX!m(ZX#O(ZX#k(ZX#l(ZX#m(ZX#n(ZX#o(ZX#p(ZX#q(ZX#r(ZX#s(ZX#u(ZX#w(ZX#y(ZX#z(ZX#}(ZX([(ZX(m(ZX(t(ZX(u(ZX!Y(ZX!Z(ZX~O#}$Oi!Y$Oi!Z$Oi~P#AbO#}!oi!Z!oi~P$(fOg'Xa!Y'Xa~P!0kO!Z7WO~O!Y'`a!Z'`a~P#AbOP]XR]X[]Xo]X}]X!P]X!V]X!Y]X!i]X!m]X#O]X#P]X#]]X#hfX#k]X#l]X#m]X#n]X#o]X#p]X#q]X#r]X#s]X#u]X#w]X#y]X#z]X$P]X([]X(m]X(t]X(u]X~O!d%WX#s%WX~P&+QO!d#vO(m'mO!Y'aa!h'aa~O!Y/hO!h(zi~O!Y/hO!d#vO!h(zi~Og$zq!Y$zq#]$zq#}$zq~P!0kO!V'ca!Y'ca~P#.aO!d7_O~O!Y/pO!V({i~P#.aO!Y/pO!V({i~O!V7cO~O!d#vO#s7hO~Oo7iO!d#vO(m'mO~O})zO!P){O(u%POk'fa(t'fa!Y'fa#]'fa~Og'fa#}'fa~P&/pO})zO!P){Ok'ha(t'ha(u'ha!Y'ha#]'ha~Og'ha#}'ha~P&0cO!V7lO~Og$|q!Y$|q#]$|q#}$|q~P!0kOa$my!Y$my'u$my's$my!V$my!h$mys$my![$my%f$my!d$my~P!9mO!d6[O~O!Y4uO![(|a~O![']OP$SaR$Sa[$Sao$Sa}$Sa!P$Sa!Y$Sa!i$Sa!m$Sa#O$Sa#k$Sa#l$Sa#m$Sa#n$Sa#o$Sa#p$Sa#q$Sa#r$Sa#s$Sa#u$Sa#w$Sa#y$Sa#z$Sa([$Sa(m$Sa(t$Sa(u$Sa~O%f6pO~P&2lOa#`y!Y#`y'u#`y's#`y!V#`y!h#`ys#`y![#`y%f#`y!d#`y~P!9mO[7qO~Ob7sO(O+kO(QTO(TUO~O!Y0wO!Z)Ti~O`7wO~O(`(xO!Y'lX!Z'lX~O!Y5^O!Z)Qa~O!Z8QO~P%4tOp!nO!P8RO(QTO(TUO(`!mO(j!sO~O#X8SO~O![1aO~O![1aO%f8UO~Ok8XO![1aO%f8UO~O[8^O!Y'oa!Z'oa~O!Y1lO!Z)Ri~O!h8bO~O!h8cO~O!h8fO~O!h8fO~P%[Oa8hO~O!d8iO~O!h8jO~O!Y(ri!Z(ri~P#AbOa%lO#]8rO'u%lO~O!Y(oy!h(oya(oy'u(oy~P!9mO!Y(fO!h(ny~O%f8uO~P&2lO![']O%f8uO~O#h$zqP$zqR$zq[$zqa$zqo$zq!Y$zq!i$zq!m$zq#O$zq#k$zq#l$zq#m$zq#n$zq#o$zq#p$zq#q$zq#r$zq#s$zq#u$zq#w$zq#y$zq#z$zq'u$zq([$zq(m$zq!h$zq!V$zq's$zq#]$zqs$zq![$zq%f$zq!d$zq~P#.aO#h'faP'faR'fa['faa'fao'fa!i'fa!m'fa#O'fa#k'fa#l'fa#m'fa#n'fa#o'fa#p'fa#q'fa#r'fa#s'fa#u'fa#w'fa#y'fa#z'fa'u'fa(['fa(m'fa!h'fa!V'fa's'fas'fa!['fa%f'fa!d'fa~P&/pO#h'haP'haR'ha['haa'hao'ha!i'ha!m'ha#O'ha#k'ha#l'ha#m'ha#n'ha#o'ha#p'ha#q'ha#r'ha#s'ha#u'ha#w'ha#y'ha#z'ha'u'ha(['ha(m'ha!h'ha!V'ha's'has'ha!['ha%f'ha!d'ha~P&0cO#h$|qP$|qR$|q[$|qa$|qo$|q!Y$|q!i$|q!m$|q#O$|q#k$|q#l$|q#m$|q#n$|q#o$|q#p$|q#q$|q#r$|q#s$|q#u$|q#w$|q#y$|q#z$|q'u$|q([$|q(m$|q!h$|q!V$|q's$|q#]$|qs$|q![$|q%f$|q!d$|q~P#.aO!Y'Ui!h'Ui~P!9mO#}#`q!Y#`q!Z#`q~P#AbO(t$}OP%^aR%^a[%^ao%^a!i%^a!m%^a#O%^a#k%^a#l%^a#m%^a#n%^a#o%^a#p%^a#q%^a#r%^a#s%^a#u%^a#w%^a#y%^a#z%^a#}%^a([%^a(m%^a!Y%^a!Z%^a~Ok%^a}%^a!P%^a(u%^a~P&CoO(u%POP%`aR%`a[%`ao%`a!i%`a!m%`a#O%`a#k%`a#l%`a#m%`a#n%`a#o%`a#p%`a#q%`a#r%`a#s%`a#u%`a#w%`a#y%`a#z%`a#}%`a([%`a(m%`a!Y%`a!Z%`a~Ok%`a}%`a!P%`a(t%`a~P&EsOk=VO})zO!P){O(u%PO~P&CoOk=VO})zO!P){O(t$}O~P&EsOR0`O}0`O!P0aO#P$dOPza[zakzaoza!iza!mza#Oza#kza#lza#mza#nza#oza#pza#qza#rza#sza#uza#wza#yza#zza#}za([za(mza(tza(uza!Yza!Zza~O})zO!P){OP$qaR$qa[$qak$qao$qa!i$qa!m$qa#O$qa#k$qa#l$qa#m$qa#n$qa#o$qa#p$qa#q$qa#r$qa#s$qa#u$qa#w$qa#y$qa#z$qa#}$qa([$qa(m$qa(t$qa(u$qa!Y$qa!Z$qa~O})zO!P){OP$saR$sa[$sak$sao$sa!i$sa!m$sa#O$sa#k$sa#l$sa#m$sa#n$sa#o$sa#p$sa#q$sa#r$sa#s$sa#u$sa#w$sa#y$sa#z$sa#}$sa([$sa(m$sa(t$sa(u$sa!Y$sa!Z$sa~Ok=VO})zO!P){O(t$}O(u%PO~OP%RaR%Ra[%Rao%Ra!i%Ra!m%Ra#O%Ra#k%Ra#l%Ra#m%Ra#n%Ra#o%Ra#p%Ra#q%Ra#r%Ra#s%Ra#u%Ra#w%Ra#y%Ra#z%Ra#}%Ra([%Ra(m%Ra!Y%Ra!Z%Ra~P&NlO#}$lq!Y$lq!Z$lq~P#AbO#}$mq!Y$mq!Z$mq~P#AbO!Z9SO~O#}9TO~P!0kO!d#vO!Y'ai!h'ai~O!d#vO(m'mO!Y'ai!h'ai~O!Y/hO!h(zq~O!V'ci!Y'ci~P#.aO!Y/pO!V({q~Oo9[O!d#vO(m'mO~O!V9]O~P#.aO!V9]O~O!d#vO#s9bO~Og(Yy!Y(Yy~P!0kO!Y'ja!['ja~P#.aOa%Yq![%Yq'u%Yq!Y%Yq~P#.aO[9dO~O!Y0wO!Z)Tq~O#]9hO!Y'la!Z'la~O!Y5^O!Z)Qi~P#AbO!P4hO~O![1aO%f9lO~O(QTO(TUO(`9qO~O!Y1lO!Z)Rq~O!h9tO~O!h9uO~O!h9vO~O!h9vO~P%[O#]9yO!Y#ey!Z#ey~O!Y#ey!Z#ey~P#AbO%f:OO~P&2lO![']O%f:OO~O#}#{y!Y#{y!Z#{y~P#AbOP$ziR$zi[$zio$zi!i$zi!m$zi#O$zi#k$zi#l$zi#m$zi#n$zi#o$zi#p$zi#q$zi#r$zi#s$zi#u$zi#w$zi#y$zi#z$zi#}$zi([$zi(m$zi!Y$zi!Z$zi~P&NlO})zO!P){O(u%POP'eaR'ea['eak'eao'ea!i'ea!m'ea#O'ea#k'ea#l'ea#m'ea#n'ea#o'ea#p'ea#q'ea#r'ea#s'ea#u'ea#w'ea#y'ea#z'ea#}'ea(['ea(m'ea(t'ea!Y'ea!Z'ea~O})zO!P){OP'gaR'ga['gak'gao'ga!i'ga!m'ga#O'ga#k'ga#l'ga#m'ga#n'ga#o'ga#p'ga#q'ga#r'ga#s'ga#u'ga#w'ga#y'ga#z'ga#}'ga(['ga(m'ga(t'ga(u'ga!Y'ga!Z'ga~O(t$}OP%^iR%^i[%^ik%^io%^i}%^i!P%^i!i%^i!m%^i#O%^i#k%^i#l%^i#m%^i#n%^i#o%^i#p%^i#q%^i#r%^i#s%^i#u%^i#w%^i#y%^i#z%^i#}%^i([%^i(m%^i(u%^i!Y%^i!Z%^i~O(u%POP%`iR%`i[%`ik%`io%`i}%`i!P%`i!i%`i!m%`i#O%`i#k%`i#l%`i#m%`i#n%`i#o%`i#p%`i#q%`i#r%`i#s%`i#u%`i#w%`i#y%`i#z%`i#}%`i([%`i(m%`i(t%`i!Y%`i!Z%`i~O#}$my!Y$my!Z$my~P#AbO#}#`y!Y#`y!Z#`y~P#AbO!d#vO!Y'aq!h'aq~O!Y/hO!h(zy~O!V'cq!Y'cq~P#.aOo:YO!d#vO(m'mO~O!V:ZO~P#.aO!V:ZO~O!Y0wO!Z)Ty~O!Y5^O!Z)Qq~O![1aO%f:cO~O!h:fO~O%f:kO~P&2lOP$zqR$zq[$zqo$zq!i$zq!m$zq#O$zq#k$zq#l$zq#m$zq#n$zq#o$zq#p$zq#q$zq#r$zq#s$zq#u$zq#w$zq#y$zq#z$zq#}$zq([$zq(m$zq!Y$zq!Z$zq~P&NlO})zO!P){O(u%POP'faR'fa['fak'fao'fa!i'fa!m'fa#O'fa#k'fa#l'fa#m'fa#n'fa#o'fa#p'fa#q'fa#r'fa#s'fa#u'fa#w'fa#y'fa#z'fa#}'fa(['fa(m'fa(t'fa!Y'fa!Z'fa~O})zO!P){OP'haR'ha['hak'hao'ha!i'ha!m'ha#O'ha#k'ha#l'ha#m'ha#n'ha#o'ha#p'ha#q'ha#r'ha#s'ha#u'ha#w'ha#y'ha#z'ha#}'ha(['ha(m'ha(t'ha(u'ha!Y'ha!Z'ha~OP$|qR$|q[$|qo$|q!i$|q!m$|q#O$|q#k$|q#l$|q#m$|q#n$|q#o$|q#p$|q#q$|q#r$|q#s$|q#u$|q#w$|q#y$|q#z$|q#}$|q([$|q(m$|q!Y$|q!Z$|q~P&NlOg%b!Z!Y%b!Z#]%b!Z#}%b!Z~P!0kOo:oO!d#vO(m'mO~O!V:pO~P#.aO!Y'lq!Z'lq~P#AbO!Y#e!Z!Z#e!Z~P#AbO#h%b!ZP%b!ZR%b!Z[%b!Za%b!Zo%b!Z!Y%b!Z!i%b!Z!m%b!Z#O%b!Z#k%b!Z#l%b!Z#m%b!Z#n%b!Z#o%b!Z#p%b!Z#q%b!Z#r%b!Z#s%b!Z#u%b!Z#w%b!Z#y%b!Z#z%b!Z'u%b!Z([%b!Z(m%b!Z!h%b!Z!V%b!Z's%b!Z#]%b!Zs%b!Z![%b!Z%f%b!Z!d%b!Z~P#.aOo:xO!d#vO(m'mO~OP%b!ZR%b!Z[%b!Zo%b!Z!i%b!Z!m%b!Z#O%b!Z#k%b!Z#l%b!Z#m%b!Z#n%b!Z#o%b!Z#p%b!Z#q%b!Z#r%b!Z#s%b!Z#u%b!Z#w%b!Z#y%b!Z#z%b!Z#}%b!Z([%b!Z(m%b!Z!Y%b!Z!Z%b!Z~P&NlOs(aX~P1qO}%pO~P!(oO(P!lO~P!(oO!VfX!YfX#]fX~P&+QOP]XR]X[]Xo]X}]X!P]X!Y]X!YfX!i]X!m]X#O]X#P]X#]]X#]fX#hfX#k]X#l]X#m]X#n]X#o]X#p]X#q]X#r]X#s]X#u]X#w]X#y]X#z]X$P]X([]X(m]X(t]X(u]X~O!dfX!h]X!hfX(mfX~P'BxOP;POQ;POSfOd<zOe!iOmkOo;POpkOqkOwkOy;PO{;PO!PWO!TkO!UkO![XO!f;SO!iZO!l;PO!m;PO!n;PO!p;TO!r;WO!u!hO$V!kO(O)XO(QTO(TUO([VO(j[O(y<xO~O!Y;dO!Z$oa~Oh%VOm%WOo%XOp$tOq$tOw%YOy%ZO{;oO!P${O![$|O!f=PO!i$xO#g;uO$V%_O$r;qO$t;sO$w%`O(O(rO(QTO(TUO([$uO(t$}O(u%PO~O#t)`O~P'GnOo!bX(m!bX~P# ZO!Z]X!ZfX~P'BxO!VfX!V$xX!YfX!Y$xX#]fX~P!/gO#h;XO~O!d#vO#h;XO~O#];iO~O#s;]O~O#];xO!Y(rX!Z(rX~O#];iO!Y(pX!Z(pX~O#h;yO~Og;{O~P!0kO#h<RO~O#h<SO~O!d#vO#h<TO~O!d#vO#h;yO~O#}<UO~P#AbO#h<VO~O#h<WO~O#h<]O~O#h<^O~O#h<_O~O#h<`O~O#}<aO~P!0kO#}<bO~P!0kO#P#Q#R#T#U#X#f#g#r(y$r$t$w%Z%e%f%g%n%p%s%t%v%x~'yT#l!U'w(P#mp#k#no}'x$['x(O$^(`~",goto:"$4Q)XPPPPPP)YPP)]P)nP+O/PPPPP5xPP6`PP<V?mP@QP@QPPP@QPBRP@QP@QP@QPBVPB[PByPGrPPPGvPPPPGvJxPPPKOKzPGvPGvPPNYGvPPPGvPGvP!!aGvP!%v!&{!'UP!'x!'|!'x!+YPPPPPPP!+y!&{PP!,Z!-gP!0jGvGv!0o!3z!8b!8b!<`PPP!<hGvPPPPPPPPPPP!?vP!ATPPGv!BfPGvPGvGvGvGvGvPGv!CxP!GRP!JWP!J[!Jf!Jj!JjP!GOP!Jn!JnP!MsP!MwGvGv!M}##RBV@QP@QP@Q@QP#$_@Q@Q#&j@Q#)Z@Q#+`@Q@Q#,O#.]#.]#.b#.k#.]#.wP#.]P@Q#/a@Q#3S@Q@Q5xPPP#6{PPP#7f#7fP#7fP#7|#7fPP#8SP#7yP#7y#8g#7y#9R#9X5u)]#9[)]P#9c#9c#9cP)]P)]P)]P)]PP)]P#9i#9lP#9l)]P#9pP#9sP)]P)]P)]P)]P)]P)])]PP#9y#:P#:[#:b#:h#:n#:t#;S#;Y#;d#;j#;t#;z#<[#<b#=S#=f#=l#=r#>Q#>g#@V#@e#@l#BR#Ba#C|#D[#Db#Dh#Dn#Dx#EO#EU#E`#Er#ExPPPPPPPPPP#FOPPPPPPP#Fs#Iz#KZ#Kb#KjPPP$!sP$!|$%t$,^$,a$,d$-P$-S$-Z$-cP$-i$-lP$.Y$.^$/U$0d$0i$1PPP$1U$1[$1`P$1c$1g$1k$2a$2x$3a$3e$3h$3k$3q$3t$3x$3|R!|RoqOXst!Z#d%k&o&q&r&t,k,p1|2PY!vQ']-]1a5eQ%rvQ%zyQ&R|Q&g!VS'T!e-TQ'c!iS'i!r!yU*e$|*V*jQ+i%{Q+v&TQ,[&aQ-Z'[Q-e'dQ-m'jQ0R*lQ1k,]R;v;T%QdOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%k%r&P&h&k&o&q&r&t&x'Q'_'o(P(R(X(`(t(v(z)y+R+V,h,k,p-a-i-w-}.l.s/f0a0g0v1d1t1u1w1y1|2P2R2r2x3^5b5m5}6O6R6f8R8X8h8rS#q];Q!r)Z$Z$n'U)o,|-P.}2b3u5`6]9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{U*y%[;n;oQ+n%}Q,^&dQ,e&lQ0m+aQ0q+cQ0|+oQ1s,cQ3Q._Q5O0wQ5t1lQ6r3UQ7s5PR8x6t'OkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%k%r&P&h&k&l&o&q&r&t&x'Q'U'_'o(P(R(X(`(t(v(z)o)y+R+V+a,h,k,p,|-P-a-i-w-}._.l.s.}/f0a0g0v1d1t1u1w1y1|2P2R2b2r2x3U3^3u5`5b5m5}6O6R6]6f6t8R8X8h8r9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{t!nQ!r!v!y!z'T'[']'i'j'k-T-Z-]-m1a5e5g$|$ti#v$b$c$d$x${%O%Q%]%^%b)u){)}*P*R*U*[*b*r*s+`+c+z+}.^.w/]/e/o/p/r0V0X0d1W1Z1c3T3}4Y4b4m4u4x5l6p7_7h8U8u9T9b9l:O:c:k;g;h;j;k;l;m;p;q;r;s;t;u;|;}<O<P<R<S<V<W<X<Y<Z<[<]<^<a<b<x=Q=R=U=VQ&U|Q'R!eU'X%g*V-WQ+n%}Q,^&dQ0c*|Q0|+oQ1R+uQ1r,bQ1s,cQ5O0wQ5X1TQ5t1lQ5w1nQ5x1qQ7s5PQ7v5UQ8a5zQ9g7wR9r8^rnOXst!V!Z#d%k&f&o&q&r&t,k,p1|2PR,`&h&x^OPXYstuvwz!Z!`!g!j!o#S#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%k%r&P&h&k&l&o&q&r&t&x'Q'_'o(R(X(`(t(v(z)o)y+R+V+a,h,k,p,|-P-a-i-w-}._.l.s.}/f0a0g0v1d1t1u1w1y1|2P2R2b2r2x3U3^3u5`5b5m5}6O6R6]6f6t8R8X8h8r9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<z<{[#]WZ#W#Z'U(P!b%hm#h#i#l$x%c%f(Y(d(e(f*U*Y*]+T+U+W,g,}-{.R.S.T.V/e/h2U2|2}4Q6[6mQ%uxQ%yyS&O|&TQ&[!TQ'`!hQ'b!iQ(m#sS+h%z%{Q+l%}Q,V&_Q,Z&aS-d'c'dQ.a(nQ0u+iQ0{+oQ0}+pQ1Q+tQ1f,WS1j,[,]Q2n-eQ4}0wQ5R0zQ5W1SQ5s1kQ7r5PQ7u5TQ9c7qR:^9d!O$zi$d%O%Q%]%^%b)}*P*[*r*s.w/o0V0X0d3}4m9T<x=Q=R!S%wy!i!u%y%z%{'S'b'c'd'h'r*d+h+i-Q-d-e-l/y0u2g2n2u4dQ+b%uQ+{&XQ,O&YQ,Y&aQ.`(mQ1e,VU1i,Z,[,]Q3V.aQ5n1fS5r1j1kQ8]5s#^<|#v$b$c$x${)u){*R*U*b+`+c+z+}.^/]/e/p/r1W1Z1c3T4Y4b4u4x5l6p7_7h8U8u9b9l:O:c:k;j;l;p;r;t;|<O<R<V<X<Z<]<a=U=Vo<};g;h;k;m;q;s;u;}<P<S<W<Y<[<^<bW%Ti%V*t<xS&X!Q&fQ&Y!RQ&Z!SR+y&V$}%Si#v$b$c$d$x${%O%Q%]%^%b)u){)}*P*R*U*[*b*r*s+`+c+z+}.^.w/]/e/o/p/r0V0X0d1W1Z1c3T3}4Y4b4m4u4x5l6p7_7h8U8u9T9b9l:O:c:k;g;h;j;k;l;m;p;q;r;s;t;u;|;}<O<P<R<S<V<W<X<Y<Z<[<]<^<a<b<x=Q=R=U=VT)v$u)wV*y%[;n;oW'X!e%g*V-WS(y#y#zQ+]%pQ+s&QS.Y(i(jQ1[,PQ4n0`R7{5^'OkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%k%r&P&h&k&l&o&q&r&t&x'Q'U'_'o(P(R(X(`(t(v(z)o)y+R+V+a,h,k,p,|-P-a-i-w-}._.l.s.}/f0a0g0v1d1t1u1w1y1|2P2R2b2r2x3U3^3u5`5b5m5}6O6R6]6f6t8R8X8h8r9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{$i$^c#Y#e%o%q%s(O(U(p(u(})O)P)Q)R)S)T)U)V)W)Y)[)^)c)m+^+r-R-p-u-z-|.k.n.r.t.u.v/X0e2]2`2p2w3]3b3c3d3e3f3g3h3i3j3k3l3m3n3q3r3y4r4{6_6e6j6y6z7T7U7}8l8p8z9Q9R9{:`:g;R<oT#TV#U'PkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%k%r&P&h&k&l&o&q&r&t&x'Q'U'_'o(P(R(X(`(t(v(z)o)y+R+V+a,h,k,p,|-P-a-i-w-}._.l.s.}/f0a0g0v1d1t1u1w1y1|2P2R2b2r2x3U3^3u5`5b5m5}6O6R6]6f6t8R8X8h8r9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{Q'V!eR2c-Tv!nQ!e!r!v!y!z'T'[']'i'j'k-T-Z-]-m1a5e5gU*d$|*V*jS/y*e*lQ0S*mQ1^,RQ4d0RR4g0UnqOXst!Z#d%k&o&q&r&t,k,p1|2PQ&v!^Q's!xS(o#u;XQ+f%xQ,T&[Q,U&^Q-b'aQ-o'lS.j(t;yS0f+R<TQ0s+gQ1`,SQ2T,rQ2V,sQ2_-OQ2l-cQ2o-gS4s0g<_Q4y0tS4|0v<`Q6^2aQ6b2mQ6g2tQ7p4zQ8m6`Q8n6cQ8q6hR9x8j$d$]c#Y#e%q%s(O(U(p(u(})O)P)Q)R)S)T)U)V)W)Y)[)^)c)m+^+r-R-p-u-z-|.k.n.r.u.v/X0e2]2`2p2w3]3b3c3d3e3f3g3h3i3j3k3l3m3n3q3r3y4r4{6_6e6j6y6z7T7U7}8l8p8z9Q9R9{:`:g;R<oS(k#p'fQ({#zS+[%o.tS.Z(j(lR3O.['OkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%k%r&P&h&k&l&o&q&r&t&x'Q'U'_'o(P(R(X(`(t(v(z)o)y+R+V+a,h,k,p,|-P-a-i-w-}._.l.s.}/f0a0g0v1d1t1u1w1y1|2P2R2b2r2x3U3^3u5`5b5m5}6O6R6]6f6t8R8X8h8r9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{S#q];QQ&q!XQ&r!YQ&t![Q&u!]R1{,nQ'^!hQ+_%uQ-`'`S.](m+bQ2j-_W3S.`.a0l0nQ6a2kW6n3P3R3V4wU8t6o6q6sU9}8v8w8yS:i9|:PQ:t:jR:z:uU!wQ']-]T5c1a5e!Q_OXZ`st!V!Z#d#h%c%k&f&h&o&q&r&t(f,k,p.S1|2P]!pQ!r']-]1a5eT#q];Q%[{OPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%k%r&P&h&k&l&o&q&r&t&x'Q'_'o(P(R(X(`(t(v(z)y+R+V+a,h,k,p-a-i-w-}._.l.s/f0a0g0v1d1t1u1w1y1|2P2R2r2x3U3^5b5m5}6O6R6f6t8R8X8h8rS(y#y#zS.Y(i(j!s<f$Z$n'U)o,|-P.}2b3u5`6]9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{U$fd)Z,eS(l#p'fU*q%R(s3pU0b*x.f7PQ4w0mQ6o3QQ8w6rR:P8xm!tQ!r!v!y!z']'i'j'k-]-m1a5e5gQ'q!uS(b#g1vS-k'h'tQ/k*XQ/w*dQ2v-nQ4U/lS4_/x0SQ7Z4PS7f4e4gQ9V7[Q9Z7cQ9`7iS:X9[9]S:n:Y:ZS:w:o:pR:}:xQ#wbQ'p!uS(a#g1vS(c#m+QQ+S%dQ+d%vQ+j%|U-j'h'q'tQ.O(bQ/j*XQ/v*dQ/|*gQ0r+eQ1g,XS2s-k-nQ2{.WS4T/k/lS4^/w0SQ4a/{Q4c/}Q5p1hQ6i2vQ7Y4PQ7^4US7b4_4gQ7g4fQ8Z5qS9U7Z7[Q9Y7cQ9^7fQ9a7jQ9o8[Q:V9VS:W9Z9]Q:[9`Q:e9pS:m:X:ZS:v:n:pQ:|:wQ;O:}Q<i<dQ<t<mR<u<nV!wQ']-]%[aOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%k%r&P&h&k&l&o&q&r&t&x'Q'_'o(P(R(X(`(t(v(z)y+R+V+a,h,k,p-a-i-w-}._.l.s/f0a0g0v1d1t1u1w1y1|2P2R2r2x3U3^5b5m5}6O6R6f6t8R8X8h8rS#wz!j!r<c$Z$n'U)o,|-P.}2b3u5`6]9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{R<i<z%[bOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%k%r&P&h&k&l&o&q&r&t&x'Q'_'o(P(R(X(`(t(v(z)y+R+V+a,h,k,p-a-i-w-}._.l.s/f0a0g0v1d1t1u1w1y1|2P2R2r2x3U3^5b5m5}6O6R6f6t8R8X8h8rQ%dj!S%vy!i!u%y%z%{'S'b'c'd'h'r*d+h+i-Q-d-e-l/y0u2g2n2u4dS%|z!jQ+e%wQ,X&aW1h,Y,Z,[,]U5q1i1j1kS8[5r5sQ9p8]!r<d$Z$n'U)o,|-P.}2b3u5`6]9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{Q<m<yR<n<z%OeOPXYstuvw!Z!`!g!o#S#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%k%r&P&h&k&o&q&r&t&x'Q'_'o(R(X(`(t(v(z)y+R+V+a,h,k,p-a-i-w-}._.l.s/f0a0g0v1d1t1u1w1y1|2P2R2r2x3U3^5b5m5}6O6R6f6t8R8X8h8rY#bWZ#W#Z(P!b%hm#h#i#l$x%c%f(Y(d(e(f*U*Y*]+T+U+W,g,}-{.R.S.T.V/e/h2U2|2}4Q6[6mQ,f&l!p<e$Z$n)o,|-P.}2b3u5`6]9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{R<h'UU'Y!e%g*VR2e-W%QdOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%k%r&P&h&k&o&q&r&t&x'Q'_'o(P(R(X(`(t(v(z)y+R+V,h,k,p-a-i-w-}.l.s/f0a0g0v1d1t1u1w1y1|2P2R2r2x3^5b5m5}6O6R6f8R8X8h8r!r)Z$Z$n'U)o,|-P.}2b3u5`6]9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{Q,e&lQ0m+aQ3Q._Q6r3UR8x6t!b$Tc#Y%o(O(U(p(u)V)W)[)c+r-p-u-z-|.k.n/X0e2p2w3]3m4r4{6e6j6y8p9{;R!P;_)Y)m-R.t2]2`3b3k3l3q3y6_6z7T7U7}8l8z9Q9R:`:g<o!f$Vc#Y%o(O(U(p(u)S)T)V)W)[)c+r-p-u-z-|.k.n/X0e2p2w3]3m4r4{6e6j6y8p9{;R!T;a)Y)m-R.t2]2`3b3h3i3k3l3q3y6_6z7T7U7}8l8z9Q9R:`:g<o!^$Zc#Y%o(O(U(p(u)[)c+r-p-u-z-|.k.n/X0e2p2w3]3m4r4{6e6j6y8p9{;RQ3}/cz<{)Y)m-R.t2]2`3b3q3y6_6z7T7U7}8l8z9Q9R:`:g<oQ=Q=SR=R=T'OkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%k%r&P&h&k&l&o&q&r&t&x'Q'U'_'o(P(R(X(`(t(v(z)o)y+R+V+a,h,k,p,|-P-a-i-w-}._.l.s.}/f0a0g0v1d1t1u1w1y1|2P2R2b2r2x3U3^3u5`5b5m5}6O6R6]6f6t8R8X8h8r9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{S$oh$pR3v.|'VgOPWXYZhstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n$p%k%r&P&h&k&l&o&q&r&t&x'Q'U'_'o(P(R(X(`(t(v(z)o)y+R+V+a,h,k,p,|-P-a-i-w-}._.l.s.|.}/f0a0g0v1d1t1u1w1y1|2P2R2b2r2x3U3^3u5`5b5m5}6O6R6]6f6t8R8X8h8r9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{T$kf$qQ$ifS)f$l)jR)r$qT$jf$qT)h$l)j'VhOPWXYZhstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n$p%k%r&P&h&k&l&o&q&r&t&x'Q'U'_'o(P(R(X(`(t(v(z)o)y+R+V+a,h,k,p,|-P-a-i-w-}._.l.s.|.}/f0a0g0v1d1t1u1w1y1|2P2R2b2r2x3U3^3u5`5b5m5}6O6R6]6f6t8R8X8h8r9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{T$oh$pQ$rhR)q$p%[jOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%k%r&P&h&k&l&o&q&r&t&x'Q'_'o(P(R(X(`(t(v(z)y+R+V+a,h,k,p-a-i-w-}._.l.s/f0a0g0v1d1t1u1w1y1|2P2R2r2x3U3^5b5m5}6O6R6f6t8R8X8h8r!s<y$Z$n'U)o,|-P.}2b3u5`6]9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{#elOPXZst!Z!`!o#S#d#o#{$n%k&h&k&l&o&q&r&t&x'Q'_(z)o+V+a,h,k,p-a._.}/f0a1d1t1u1w1y1|2P2R3U3u5b5m5}6O6R6t8R8X8h!O%Ri$d%O%Q%]%^%b)}*P*[*r*s.w/o0V0X0d3}4m9T<x=Q=R#^(s#v$b$c$x${)u){*R*U*b+`+c+z+}.^/]/e/p/r1W1Z1c3T4Y4b4u4x5l6p7_7h8U8u9b9l:O:c:k;j;l;p;r;t;|<O<R<V<X<Z<]<a=U=VQ*}%`Q/Y)zo3p;g;h;k;m;q;s;u;}<P<S<W<Y<[<^<b!O$yi$d%O%Q%]%^%b)}*P*[*r*s.w/o0V0X0d3}4m9T<x=Q=RQ*^$zU*g$|*V*jQ+O%aQ/}*h#^<k#v$b$c$x${)u){*R*U*b+`+c+z+}.^/]/e/p/r1W1Z1c3T4Y4b4u4x5l6p7_7h8U8u9b9l:O:c:k;j;l;p;r;t;|<O<R<V<X<Z<]<a=U=Vn<l;g;h;k;m;q;s;u;}<P<S<W<Y<[<^<bQ<p<|Q<q<}Q<r=OR<s=P!O%Ri$d%O%Q%]%^%b)}*P*[*r*s.w/o0V0X0d3}4m9T<x=Q=R#^(s#v$b$c$x${)u){*R*U*b+`+c+z+}.^/]/e/p/r1W1Z1c3T4Y4b4u4x5l6p7_7h8U8u9b9l:O:c:k;j;l;p;r;t;|<O<R<V<X<Z<]<a=U=Vo3p;g;h;k;m;q;s;u;}<P<S<W<Y<[<^<bnoOXst!Z#d%k&o&q&r&t,k,p1|2PS*a${*UQ,y&{Q,z&}R4X/p$|%Si#v$b$c$d$x${%O%Q%]%^%b)u){)}*P*R*U*[*b*r*s+`+c+z+}.^.w/]/e/o/p/r0V0X0d1W1Z1c3T3}4Y4b4m4u4x5l6p7_7h8U8u9T9b9l:O:c:k;g;h;j;k;l;m;p;q;r;s;t;u;|;}<O<P<R<S<V<W<X<Y<Z<[<]<^<a<b<x=Q=R=U=VQ+|&YQ1Y,OQ5[1XR7z5]V*i$|*V*jU*i$|*V*jT5d1a5eU/{*f/f5bS4f0T8RR7j4hQ+d%vQ/|*gQ0r+eQ1g,XQ5p1hQ8Z5qQ9o8[R:e9p!O%Oi$d%O%Q%]%^%b)}*P*[*r*s.w/o0V0X0d3}4m9T<x=Q=Rr)}$v)a*O*p+P/n0Z0[3s4V4q7X7k:U<j<v<wS0V*o0W#^;j#v$b$c$x${)u){*R*U*b+`+c+z+}.^/]/e/p/r1W1Z1c3T4Y4b4u4x5l6p7_7h8U8u9b9l:O:c:k;j;l;p;r;t;|<O<R<V<X<Z<]<a=U=Vn;k;g;h;k;m;q;s;u;}<P<S<W<Y<[<^<b!`;|(q)_*W*`.b.e.i/U/Z/c/s0k1V1X3Y4W4[5Z5]6u6x7`7d7m7o9X9_:]:l=S=T`;}3o6{7O7S8{:Q:T:{S<X.d3ZT<Y6}9O!O%Qi$d%O%Q%]%^%b)}*P*[*r*s.w/o0V0X0d3}4m9T<x=Q=Rv*P$v)a*Q*o+P/_/n0Z0[3s4V4i4q7X7k:U<j<v<wS0X*p0Y#^;l#v$b$c$x${)u){*R*U*b+`+c+z+}.^/]/e/p/r1W1Z1c3T4Y4b4u4x5l6p7_7h8U8u9b9l:O:c:k;j;l;p;r;t;|<O<R<V<X<Z<]<a=U=Vn;m;g;h;k;m;q;s;u;}<P<S<W<Y<[<^<b!d<O(q)_*W*`.c.d.i/U/Z/c/s0k1V1X3W3Y4W4[5Z5]6u6v6x7`7d7m7o9X9_:]:l=S=Td<P3o6|6}7S8{8|:Q:R:T:{S<Z.e3[T<[7O9PrnOXst!V!Z#d%k&f&o&q&r&t,k,p1|2PQ&c!UR,h&lrnOXst!V!Z#d%k&f&o&q&r&t,k,p1|2PR&c!UQ,Q&ZR1U+ysnOXst!V!Z#d%k&f&o&q&r&t,k,p1|2PQ1b,VS5k1e1fU8T5i5j5nS9k8V8WS:a9j9mQ:q:bR:y:rQ&j!VR,a&fR5w1nS&O|&TR0}+pQ&o!WR,k&pR,q&uT1},p2PR,u&vQ,t&vR2W,uQ'v!{R-q'vSsOtQ#dXT%ns#dQ#OTR'x#OQ#RUR'z#RQ)w$uR/V)wQ#UVR'|#UQ#XWU(S#X(T-xQ(T#YR-x(UQ-U'VR2d-UQ.m(uS3_.m3`R3`.nQ-]']R2h-]Y!rQ']-]1a5eR'g!rQ.x)aR3t.xU#_W%f*UU(Z#_([-yQ([#`R-y(VQ-X'YR2f-Xt`OXst!V!Z#d%k&f&h&o&q&r&t,k,p1|2PS#hZ%cU#r`#h.SR.S(fQ(g#jQ.P(cW.X(g.P2y6kQ2y.QR6k2zQ)j$lR/O)jQ$phR)p$pQ$`cU)]$`-t;eQ-t;RR;e)mQ/i*XW4R/i4S7]9WU4S/j/k/lS7]4T4UR9W7^$Z)|$v(q)_)a*W*`*o*p*z*{+P.d.e.g.h.i/U/Z/_/a/c/n/s0Z0[0k1V1X3W3X3Y3o3s4V4W4[4i4k4q5Z5]6u6v6w6x6}7O7Q7R7S7X7`7d7k7m7o8{8|8}9X9_:Q:R:S:T:U:]:l:{<j<v<w=S=TQ/q*`U4Z/q4]7aQ4]/sR7a4[S*j$|*VR0P*jr*O$v)a*o*p+P/n0Z0[3s4V4q7X7k:U<j<v<w!`.b(q)_*W*`.d.e.i/U/Z/c/s0k1V1X3Y4W4[5Z5]6u6x7`7d7m7o9X9_:]:l=S=TU/`*O.b6{a6{3o6}7O7S8{:Q:T:{Q0W*oQ3Z.dU4j0W3Z9OR9O6}v*Q$v)a*o*p+P/_/n0Z0[3s4V4i4q7X7k:U<j<v<w!d.c(q)_*W*`.d.e.i/U/Z/c/s0k1V1X3W3Y4W4[5Z5]6u6v6x7`7d7m7o9X9_:]:l=S=TU/b*Q.c6|e6|3o6}7O7S8{8|:Q:R:T:{Q0Y*pQ3[.eU4l0Y3[9PR9P7OQ*u%UR0^*uQ4v0kR7n4vQ+X%iR0j+XQ5_1[S7|5_9iR9i7}Q,S&[R1_,SQ5e1aR8P5eQ1m,^S5u1m8_R8_5wQ0x+lW5Q0x5S7t9eQ5S0{Q7t5RR9e7uQ+q&OR1O+qQ2P,pR6V2PYrOXst#dQ&s!ZQ+Z%kQ,j&oQ,l&qQ,m&rQ,o&tQ1z,kS1},p2PR6U1|Q%mpQ&w!_Q&z!aQ&|!bQ'O!cQ'n!uQ+Y%jQ+f%xQ+x&UQ,`&jQ,w&yW-h'h'p'q'tQ-o'lQ0O*iQ0s+gS1p,a,dQ2X,vQ2Y,yQ2Z,zQ2o-gW2q-j-k-n-pQ4y0tQ5V1RQ5Y1VQ5o1gQ5y1rQ6T1{U6d2p2s2vQ6g2tQ7p4zQ7x5XQ7y5ZQ8O5dQ8Y5pQ8`5xS8o6e6iQ8q6hQ9f7vQ9n8ZQ9s8aQ9z8pQ:_9gQ:d9oQ:h9{R:s:eQ%xyQ'a!iQ'l!uU+g%y%z%{Q-O'SU-c'b'c'dS-g'h'rQ/u*dS0t+h+iQ2a-QS2m-d-eQ2t-lQ4`/yQ4z0uQ6`2gQ6c2nQ6h2uR7e4dS$wi<xR*v%VU%Ui%V<xR0]*tQ$viS(q#v+cS)_$b$cQ)a$dQ*W$xS*`${*UQ*o%OQ*p%QQ*z%]Q*{%^Q+P%bQ.d;jQ.e;lQ.g;pQ.h;rQ.i;tQ/U)uS/Z){/]Q/_)}Q/a*PQ/c*RQ/n*[S/s*b/eQ0Z*rQ0[*sh0k+`.^1c3T5l6p8U8u9l:O:c:kQ1V+zQ1X+}Q3W;|Q3X<OQ3Y<RS3o;g;hQ3s.wQ4V/oQ4W/pQ4[/rQ4i0VQ4k0XQ4q0dQ5Z1WQ5]1ZQ6u<VQ6v<XQ6w<ZQ6x<]Q6};kQ7O;mQ7Q;qQ7R;sQ7S;uQ7X3}Q7`4YQ7d4bQ7k4mQ7m4uQ7o4xQ8{<SQ8|;}Q8}<PQ9X7_Q9_7hQ:Q<WQ:R<YQ:S<[Q:T<^Q:U9TQ:]9bQ:l<aQ:{<bQ<j<xQ<v=QQ<w=RQ=S=UR=T=VQ*x%[Q.f;nR7P;onpOXst!Z#d%k&o&q&r&t,k,p1|2PQ!fPS#fZ#oQ&y!`U'e!o5b8RQ'{#SQ(|#{Q)n$nS,d&h&kQ,i&lQ,v&xQ,{'QQ-_'_Q.p(zQ/S)oS0h+V/fQ0n+aQ1x,hQ2k-aQ3R._Q3x.}Q4o0aQ5j1dQ5{1tQ5|1uQ6Q1wQ6S1yQ6X2RQ6s3UQ7V3uQ8W5mQ8d5}Q8e6OQ8g6RQ8y6tQ9m8XR9w8h#YcOPXZst!Z!`!o#d#o#{%k&h&k&l&o&q&r&t&x'Q'_(z+V+a,h,k,p-a._/f0a1d1t1u1w1y1|2P2R3U5b5m5}6O6R6t8R8X8hQ#YWQ#eYQ%ouQ%qvS%sw!gS(O#W(RQ(U#ZQ(p#uQ(u#xQ(}$OQ)O$PQ)P$QQ)Q$RQ)R$SQ)S$TQ)T$UQ)U$VQ)V$WQ)W$XQ)Y$ZQ)[$_Q)^$aQ)c$eW)m$n)o.}3uQ+^%rQ+r&PS-R'U2bQ-p'oS-u(P-wQ-z(XQ-|(`Q.k(tQ.n(vQ.r;PQ.t;SQ.u;TQ.v;WQ/X)yQ0e+RQ2],|Q2`-PQ2p-iQ2w-}Q3].lQ3b;XQ3c;YQ3d;ZQ3e;[Q3f;]Q3g;^Q3h;_Q3i;`Q3j;aQ3k;bQ3l;cQ3m.sQ3n;fQ3q;iQ3r;vQ3y;dQ4r0gQ4{0vQ6_;xQ6e2rQ6j2xQ6y3^Q6z;yQ7T;{Q7U<TQ7}5`Q8l6]Q8p6fQ8z<UQ9Q<_Q9R<`Q9{8rQ:`9hQ:g9yQ;R#SR<o<{R#[WR'W!el!tQ!r!v!y!z']'i'j'k-]-m1a5e5gS'S!e-TS-Q'T'[R2g-ZR(w#xQ!fQT-[']-]]!qQ!r']-]1a5eQ#p]R'f;QR)b$dY!uQ']-]1a5eQ'h!rS'r!v!yS't!z5gS-l'i'jQ-n'kR2u-mT#kZ%cS#jZ%cS%im,gU(c#h#i#lS.Q(d(eQ.U(fQ0i+WQ2z.RU2{.S.T.VS6l2|2}R8s6md#^W#W#Z%f(P(Y*U+T-{/er#gZm#h#i#l%c(d(e(f+W.R.S.T.V2|2}6mS*X$x*]Q/l*YQ1v,gQ2^,}Q4P/hQ6Z2UQ7[4QQ8k6[T<g'U+UV#aW%f*UU#`W%f*US(Q#W(YU(V#Z+T/eS-S'U+UT-v(P-{V'Z!e%g*VQ$lfR)t$qT)i$l)jR3w.|T*Z$x*]T*c${*UQ0l+`Q3P.^Q5i1cQ6q3TQ8V5lQ8v6pQ9j8UQ9|8uQ:b9lQ:j:OQ:r:cR:u:knqOXst!Z#d%k&o&q&r&t,k,p1|2PQ&i!VR,`&ftmOXst!U!V!Z#d%k&f&o&q&r&t,k,p1|2PR,g&lT%jm,gR1],PR,_&dQ&S|R+w&TR+m%}T&m!W&pT&n!W&pT2O,p2P",nodeNames:"⚠ ArithOp ArithOp ?. JSXStartTag LineComment BlockComment Script Hashbang ExportDeclaration export Star as VariableName String Escape from ; default FunctionDeclaration async function VariableDefinition > < TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewTarget new NewExpression ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression TypeArgList CompareOp < declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression InstantiationExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression InstantiationExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:376,context:qb,nodeProps:[["isolate",-8,5,6,14,34,36,48,50,52,""],["group",-26,9,17,19,65,204,208,212,213,215,218,221,231,233,239,241,243,245,248,254,260,262,264,266,268,270,271,"Statement",-34,13,14,29,32,33,39,48,51,52,54,59,67,69,73,77,79,81,82,107,108,117,118,135,138,140,141,142,143,144,146,147,166,167,169,"Expression",-23,28,30,34,38,40,42,171,173,175,176,178,179,180,182,183,184,186,187,188,198,200,202,203,"Type",-3,85,100,106,"ClassItem"],["openedBy",23,"<",35,"InterpolationStart",53,"[",57,"{",70,"(",159,"JSXStartCloseTag"],["closedBy",24,">",37,"InterpolationEnd",47,"]",58,"}",71,")",164,"JSXEndTag"]],propSources:[r_],skippedNodes:[0,5,6,274],repeatNodeCount:37,tokenData:"$Fq07[R!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#:O!R![#<_![!]#I_!]!^#Jk!^!_#Ku!_!`$![!`!a$$v!a!b$*T!b!c$,r!c!}Er!}#O$-|#O#P$/W#P#Q$4o#Q#R$5y#R#SEr#S#T$7W#T#o$8b#o#p$<r#p#q$=h#q#r$>x#r#s$@U#s$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$I|Er$I|$I}$Dk$I}$JO$Dk$JO$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr(n%d_$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$h&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$h&j(U!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU(U!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$h&j(RpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(rp)wU(RpOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)rp*^P;=`<%l)r'[*dP;=`<%l(r#S*nX(Rp(U!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z07[+rq$h&j(Rp(U!b'w0/lOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p$f%Z$f$g+g$g#BY%Z#BY#BZ+g#BZ$IS%Z$IS$I_+g$I_$JT%Z$JT$JU+g$JU$KV%Z$KV$KW+g$KW&FU%Z&FU&FV+g&FV;'S%Z;'S;=`+a<%l?HT%Z?HT?HU+g?HUO%Z07[.ST(S#S$h&j'x0/lO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c07[.n_$h&j(Rp(U!b'x0/lOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z)3p/x`$h&j!m),Q(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW1V`#u(Ch$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`2X!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW2d_#u(Ch$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'At3l_(Q':f$h&j(U!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k(^4r_$h&j(U!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k&z5vX$h&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;'S5q;'S;=`7h<%lO5q&z6jT$c`$h&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c`6|TOr6yrs7]s;'S6y;'S;=`7b<%lO6y`7bO$c``7eP;=`<%l6y&z7kP;=`<%l5q(^7w]$c`$h&j(U!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!r8uZ(U!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;'S8p;'S;=`:R<%lO8p!r9oU$c`(U!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!r:UP;=`<%l8p(^:[P;=`<%l4k%9[:hh$h&j(Rp(U!bOY%ZYZ&cZq%Zqr<Srs&}st%ZtuCruw%Zwx(rx!^%Z!^!_*g!_!c%Z!c!}Cr!}#O%Z#O#P&c#P#R%Z#R#SCr#S#T%Z#T#oCr#o#p*g#p$g%Z$g;'SCr;'S;=`El<%lOCr(r<__WS$h&j(Rp(U!bOY<SYZ&cZr<Srs=^sw<Swx@nx!^<S!^!_Bm!_#O<S#O#P>`#P#o<S#o#pBm#p;'S<S;'S;=`Cl<%lO<S(Q=g]WS$h&j(U!bOY=^YZ&cZw=^wx>`x!^=^!^!_?q!_#O=^#O#P>`#P#o=^#o#p?q#p;'S=^;'S;=`@h<%lO=^&n>gXWS$h&jOY>`YZ&cZ!^>`!^!_?S!_#o>`#o#p?S#p;'S>`;'S;=`?k<%lO>`S?XSWSOY?SZ;'S?S;'S;=`?e<%lO?SS?hP;=`<%l?S&n?nP;=`<%l>`!f?xWWS(U!bOY?qZw?qwx?Sx#O?q#O#P?S#P;'S?q;'S;=`@b<%lO?q!f@eP;=`<%l?q(Q@kP;=`<%l=^'`@w]WS$h&j(RpOY@nYZ&cZr@nrs>`s!^@n!^!_Ap!_#O@n#O#P>`#P#o@n#o#pAp#p;'S@n;'S;=`Bg<%lO@ntAwWWS(RpOYApZrAprs?Ss#OAp#O#P?S#P;'SAp;'S;=`Ba<%lOAptBdP;=`<%lAp'`BjP;=`<%l@n#WBvYWS(Rp(U!bOYBmZrBmrs?qswBmwxApx#OBm#O#P?S#P;'SBm;'S;=`Cf<%lOBm#WCiP;=`<%lBm(rCoP;=`<%l<S%9[C}i$h&j(j%1l(Rp(U!bOY%ZYZ&cZr%Zrs&}st%ZtuCruw%Zwx(rx!Q%Z!Q![Cr![!^%Z!^!_*g!_!c%Z!c!}Cr!}#O%Z#O#P&c#P#R%Z#R#SCr#S#T%Z#T#oCr#o#p*g#p$g%Z$g;'SCr;'S;=`El<%lOCr%9[EoP;=`<%lCr07[FRk$h&j(Rp(U!b$[#t(O,2j(`$I[OY%ZYZ&cZr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;'SEr;'S;=`I|<%lOEr+dHRk$h&j(Rp(U!b$[#tOY%ZYZ&cZr%Zrs&}st%ZtuGvuw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Gv![!^%Z!^!_*g!_!c%Z!c!}Gv!}#O%Z#O#P&c#P#R%Z#R#SGv#S#T%Z#T#oGv#o#p*g#p$g%Z$g;'SGv;'S;=`Iv<%lOGv+dIyP;=`<%lGv07[JPP;=`<%lEr(KWJ_`$h&j(Rp(U!b#m(ChOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KWKl_$h&j$P(Ch(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z,#xLva(u+JY$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sv%ZvwM{wx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KWNW`$h&j#y(Ch(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'At! c_(T';W$h&j(RpOY!!bYZ!#hZr!!brs!#hsw!!bwx!$xx!^!!b!^!_!%z!_#O!!b#O#P!#h#P#o!!b#o#p!%z#p;'S!!b;'S;=`!'c<%lO!!b'l!!i_$h&j(RpOY!!bYZ!#hZr!!brs!#hsw!!bwx!$xx!^!!b!^!_!%z!_#O!!b#O#P!#h#P#o!!b#o#p!%z#p;'S!!b;'S;=`!'c<%lO!!b&z!#mX$h&jOw!#hwx6cx!^!#h!^!_!$Y!_#o!#h#o#p!$Y#p;'S!#h;'S;=`!$r<%lO!#h`!$]TOw!$Ywx7]x;'S!$Y;'S;=`!$l<%lO!$Y`!$oP;=`<%l!$Y&z!$uP;=`<%l!#h'l!%R]$c`$h&j(RpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(r!Q!&PZ(RpOY!%zYZ!$YZr!%zrs!$Ysw!%zwx!&rx#O!%z#O#P!$Y#P;'S!%z;'S;=`!']<%lO!%z!Q!&yU$c`(RpOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)r!Q!'`P;=`<%l!%z'l!'fP;=`<%l!!b/5|!'t_!i/.^$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z#&U!)O_!h!Lf$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z-!n!*[b$h&j(Rp(U!b(P%&f#n(ChOY%ZYZ&cZr%Zrs&}sw%Zwx(rxz%Zz{!+d{!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW!+o`$h&j(Rp(U!b#k(ChOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z+;x!,|`$h&j(Rp(U!bo+4YOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z,$U!.Z_!Y+Jf$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z07[!/ec$h&j(Rp(U!b}.2^OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!0p!P!Q%Z!Q![!3Y![!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z#%|!0ya$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!2O!P!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z#%|!2Z_!X!L^$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad!3eg$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![!3Y![!^%Z!^!_*g!_!g%Z!g!h!4|!h#O%Z#O#P&c#P#R%Z#R#S!3Y#S#X%Z#X#Y!4|#Y#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad!5Vg$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx{%Z{|!6n|}%Z}!O!6n!O!Q%Z!Q![!8S![!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S!8S#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad!6wc$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![!8S![!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S!8S#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad!8_c$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![!8S![!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S!8S#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z07[!9uf$h&j(Rp(U!b#l(ChOY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcxz!;Zz{#-}{!P!;Z!P!Q#/d!Q!^!;Z!^!_#(i!_!`#7S!`!a#8i!a!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;Z?O!;fb$h&j(Rp(U!b!U7`OY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcx!P!;Z!P!Q#&`!Q!^!;Z!^!_#(i!_!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;Z>^!<w`$h&j(U!b!U7`OY!<nYZ&cZw!<nwx!=yx!P!<n!P!Q!Eq!Q!^!<n!^!_!Gr!_!}!<n!}#O!KS#O#P!Dy#P#o!<n#o#p!Gr#p;'S!<n;'S;=`!L]<%lO!<n<z!>Q^$h&j!U7`OY!=yYZ&cZ!P!=y!P!Q!>|!Q!^!=y!^!_!@c!_!}!=y!}#O!CW#O#P!Dy#P#o!=y#o#p!@c#p;'S!=y;'S;=`!Ek<%lO!=y<z!?Td$h&j!U7`O!^&c!_#W&c#W#X!>|#X#Z&c#Z#[!>|#[#]&c#]#^!>|#^#a&c#a#b!>|#b#g&c#g#h!>|#h#i&c#i#j!>|#j#k!>|#k#m&c#m#n!>|#n#o&c#p;'S&c;'S;=`&w<%lO&c7`!@hX!U7`OY!@cZ!P!@c!P!Q!AT!Q!}!@c!}#O!Ar#O#P!Bq#P;'S!@c;'S;=`!CQ<%lO!@c7`!AYW!U7`#W#X!AT#Z#[!AT#]#^!AT#a#b!AT#g#h!AT#i#j!AT#j#k!AT#m#n!AT7`!AuVOY!ArZ#O!Ar#O#P!B[#P#Q!@c#Q;'S!Ar;'S;=`!Bk<%lO!Ar7`!B_SOY!ArZ;'S!Ar;'S;=`!Bk<%lO!Ar7`!BnP;=`<%l!Ar7`!BtSOY!@cZ;'S!@c;'S;=`!CQ<%lO!@c7`!CTP;=`<%l!@c<z!C][$h&jOY!CWYZ&cZ!^!CW!^!_!Ar!_#O!CW#O#P!DR#P#Q!=y#Q#o!CW#o#p!Ar#p;'S!CW;'S;=`!Ds<%lO!CW<z!DWX$h&jOY!CWYZ&cZ!^!CW!^!_!Ar!_#o!CW#o#p!Ar#p;'S!CW;'S;=`!Ds<%lO!CW<z!DvP;=`<%l!CW<z!EOX$h&jOY!=yYZ&cZ!^!=y!^!_!@c!_#o!=y#o#p!@c#p;'S!=y;'S;=`!Ek<%lO!=y<z!EnP;=`<%l!=y>^!Ezl$h&j(U!b!U7`OY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#W&}#W#X!Eq#X#Z&}#Z#[!Eq#[#]&}#]#^!Eq#^#a&}#a#b!Eq#b#g&}#g#h!Eq#h#i&}#i#j!Eq#j#k!Eq#k#m&}#m#n!Eq#n#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}8r!GyZ(U!b!U7`OY!GrZw!Grwx!@cx!P!Gr!P!Q!Hl!Q!}!Gr!}#O!JU#O#P!Bq#P;'S!Gr;'S;=`!J|<%lO!Gr8r!Hse(U!b!U7`OY'}Zw'}x#O'}#P#W'}#W#X!Hl#X#Z'}#Z#[!Hl#[#]'}#]#^!Hl#^#a'}#a#b!Hl#b#g'}#g#h!Hl#h#i'}#i#j!Hl#j#k!Hl#k#m'}#m#n!Hl#n;'S'};'S;=`(f<%lO'}8r!JZX(U!bOY!JUZw!JUwx!Arx#O!JU#O#P!B[#P#Q!Gr#Q;'S!JU;'S;=`!Jv<%lO!JU8r!JyP;=`<%l!JU8r!KPP;=`<%l!Gr>^!KZ^$h&j(U!bOY!KSYZ&cZw!KSwx!CWx!^!KS!^!_!JU!_#O!KS#O#P!DR#P#Q!<n#Q#o!KS#o#p!JU#p;'S!KS;'S;=`!LV<%lO!KS>^!LYP;=`<%l!KS>^!L`P;=`<%l!<n=l!Ll`$h&j(Rp!U7`OY!LcYZ&cZr!Lcrs!=ys!P!Lc!P!Q!Mn!Q!^!Lc!^!_# o!_!}!Lc!}#O#%P#O#P!Dy#P#o!Lc#o#p# o#p;'S!Lc;'S;=`#&Y<%lO!Lc=l!Mwl$h&j(Rp!U7`OY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#W(r#W#X!Mn#X#Z(r#Z#[!Mn#[#](r#]#^!Mn#^#a(r#a#b!Mn#b#g(r#g#h!Mn#h#i(r#i#j!Mn#j#k!Mn#k#m(r#m#n!Mn#n#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(r8Q# vZ(Rp!U7`OY# oZr# ors!@cs!P# o!P!Q#!i!Q!}# o!}#O#$R#O#P!Bq#P;'S# o;'S;=`#$y<%lO# o8Q#!pe(Rp!U7`OY)rZr)rs#O)r#P#W)r#W#X#!i#X#Z)r#Z#[#!i#[#])r#]#^#!i#^#a)r#a#b#!i#b#g)r#g#h#!i#h#i)r#i#j#!i#j#k#!i#k#m)r#m#n#!i#n;'S)r;'S;=`*Z<%lO)r8Q#$WX(RpOY#$RZr#$Rrs!Ars#O#$R#O#P!B[#P#Q# o#Q;'S#$R;'S;=`#$s<%lO#$R8Q#$vP;=`<%l#$R8Q#$|P;=`<%l# o=l#%W^$h&j(RpOY#%PYZ&cZr#%Prs!CWs!^#%P!^!_#$R!_#O#%P#O#P!DR#P#Q!Lc#Q#o#%P#o#p#$R#p;'S#%P;'S;=`#&S<%lO#%P=l#&VP;=`<%l#%P=l#&]P;=`<%l!Lc?O#&kn$h&j(Rp(U!b!U7`OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#W%Z#W#X#&`#X#Z%Z#Z#[#&`#[#]%Z#]#^#&`#^#a%Z#a#b#&`#b#g%Z#g#h#&`#h#i%Z#i#j#&`#j#k#&`#k#m%Z#m#n#&`#n#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z9d#(r](Rp(U!b!U7`OY#(iZr#(irs!Grsw#(iwx# ox!P#(i!P!Q#)k!Q!}#(i!}#O#+`#O#P!Bq#P;'S#(i;'S;=`#,`<%lO#(i9d#)th(Rp(U!b!U7`OY*gZr*grs'}sw*gwx)rx#O*g#P#W*g#W#X#)k#X#Z*g#Z#[#)k#[#]*g#]#^#)k#^#a*g#a#b#)k#b#g*g#g#h#)k#h#i*g#i#j#)k#j#k#)k#k#m*g#m#n#)k#n;'S*g;'S;=`+Z<%lO*g9d#+gZ(Rp(U!bOY#+`Zr#+`rs!JUsw#+`wx#$Rx#O#+`#O#P!B[#P#Q#(i#Q;'S#+`;'S;=`#,Y<%lO#+`9d#,]P;=`<%l#+`9d#,cP;=`<%l#(i?O#,o`$h&j(Rp(U!bOY#,fYZ&cZr#,frs!KSsw#,fwx#%Px!^#,f!^!_#+`!_#O#,f#O#P!DR#P#Q!;Z#Q#o#,f#o#p#+`#p;'S#,f;'S;=`#-q<%lO#,f?O#-tP;=`<%l#,f?O#-zP;=`<%l!;Z07[#.[b$h&j(Rp(U!b'y0/l!U7`OY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcx!P!;Z!P!Q#&`!Q!^!;Z!^!_#(i!_!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;Z07[#/o_$h&j(Rp(U!bT0/lOY#/dYZ&cZr#/drs#0nsw#/dwx#4Ox!^#/d!^!_#5}!_#O#/d#O#P#1p#P#o#/d#o#p#5}#p;'S#/d;'S;=`#6|<%lO#/d06j#0w]$h&j(U!bT0/lOY#0nYZ&cZw#0nwx#1px!^#0n!^!_#3R!_#O#0n#O#P#1p#P#o#0n#o#p#3R#p;'S#0n;'S;=`#3x<%lO#0n05W#1wX$h&jT0/lOY#1pYZ&cZ!^#1p!^!_#2d!_#o#1p#o#p#2d#p;'S#1p;'S;=`#2{<%lO#1p0/l#2iST0/lOY#2dZ;'S#2d;'S;=`#2u<%lO#2d0/l#2xP;=`<%l#2d05W#3OP;=`<%l#1p01O#3YW(U!bT0/lOY#3RZw#3Rwx#2dx#O#3R#O#P#2d#P;'S#3R;'S;=`#3r<%lO#3R01O#3uP;=`<%l#3R06j#3{P;=`<%l#0n05x#4X]$h&j(RpT0/lOY#4OYZ&cZr#4Ors#1ps!^#4O!^!_#5Q!_#O#4O#O#P#1p#P#o#4O#o#p#5Q#p;'S#4O;'S;=`#5w<%lO#4O00^#5XW(RpT0/lOY#5QZr#5Qrs#2ds#O#5Q#O#P#2d#P;'S#5Q;'S;=`#5q<%lO#5Q00^#5tP;=`<%l#5Q05x#5zP;=`<%l#4O01p#6WY(Rp(U!bT0/lOY#5}Zr#5}rs#3Rsw#5}wx#5Qx#O#5}#O#P#2d#P;'S#5};'S;=`#6v<%lO#5}01p#6yP;=`<%l#5}07[#7PP;=`<%l#/d)3h#7ab$h&j$P(Ch(Rp(U!b!U7`OY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcx!P!;Z!P!Q#&`!Q!^!;Z!^!_#(i!_!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;ZAt#8vb$Y#t$h&j(Rp(U!b!U7`OY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcx!P!;Z!P!Q#&`!Q!^!;Z!^!_#(i!_!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;Z'Ad#:Zp$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!3Y!P!Q%Z!Q![#<_![!^%Z!^!_*g!_!g%Z!g!h!4|!h#O%Z#O#P&c#P#R%Z#R#S#<_#S#U%Z#U#V#?i#V#X%Z#X#Y!4|#Y#b%Z#b#c#>_#c#d#Bq#d#l%Z#l#m#Es#m#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#<jk$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!3Y!P!Q%Z!Q![#<_![!^%Z!^!_*g!_!g%Z!g!h!4|!h#O%Z#O#P&c#P#R%Z#R#S#<_#S#X%Z#X#Y!4|#Y#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#>j_$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#?rd$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#A]f$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Bzc$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Dbe$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#E|g$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Gpi$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z*)x#Il_!d$b$h&j#})Lv(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z)[#Jv_al$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z04f#LS^h#)`#O-<U(Rp(U!b(y7`OY*gZr*grs'}sw*gwx)rx!P*g!P!Q#MO!Q!^*g!^!_#Mt!_!`$ f!`#O*g#P;'S*g;'S;=`+Z<%lO*g(n#MXX$j&j(Rp(U!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g(El#M}Z#o(Ch(Rp(U!bOY*gZr*grs'}sw*gwx)rx!_*g!_!`#Np!`#O*g#P;'S*g;'S;=`+Z<%lO*g(El#NyX$P(Ch(Rp(U!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g(El$ oX#p(Ch(Rp(U!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g*)x$!ga#]*!Y$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`!a$#l!a#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(K[$#w_#h(Cl$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z*)x$%Vag!*r#p(Ch$e#|$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`$&[!`!a$'f!a#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$&g_#p(Ch$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$'qa#o(Ch$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`!a$(v!a#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$)R`#o(Ch$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(Kd$*`a(m(Ct$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!a%Z!a!b$+e!b#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$+p`$h&j#z(Ch(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#`$,}_!y$Ip$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z04f$.X_!P0,v$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(n$/]Z$h&jO!^$0O!^!_$0f!_#i$0O#i#j$0k#j#l$0O#l#m$2^#m#o$0O#o#p$0f#p;'S$0O;'S;=`$4i<%lO$0O(n$0VT_#S$h&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c#S$0kO_#S(n$0p[$h&jO!Q&c!Q![$1f![!^&c!_!c&c!c!i$1f!i#T&c#T#Z$1f#Z#o&c#o#p$3|#p;'S&c;'S;=`&w<%lO&c(n$1kZ$h&jO!Q&c!Q![$2^![!^&c!_!c&c!c!i$2^!i#T&c#T#Z$2^#Z#o&c#p;'S&c;'S;=`&w<%lO&c(n$2cZ$h&jO!Q&c!Q![$3U![!^&c!_!c&c!c!i$3U!i#T&c#T#Z$3U#Z#o&c#p;'S&c;'S;=`&w<%lO&c(n$3ZZ$h&jO!Q&c!Q![$0O![!^&c!_!c&c!c!i$0O!i#T&c#T#Z$0O#Z#o&c#p;'S&c;'S;=`&w<%lO&c#S$4PR!Q![$4Y!c!i$4Y#T#Z$4Y#S$4]S!Q![$4Y!c!i$4Y#T#Z$4Y#q#r$0f(n$4lP;=`<%l$0O#1[$4z_!V#)l$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$6U`#w(Ch$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z+;p$7c_$h&j(Rp(U!b([+4QOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z07[$8qk$h&j(Rp(U!b(O,2j$^#t(`$I[OY%ZYZ&cZr%Zrs&}st%Ztu$8buw%Zwx(rx}%Z}!O$:f!O!Q%Z!Q![$8b![!^%Z!^!_*g!_!c%Z!c!}$8b!}#O%Z#O#P&c#P#R%Z#R#S$8b#S#T%Z#T#o$8b#o#p*g#p$g%Z$g;'S$8b;'S;=`$<l<%lO$8b+d$:qk$h&j(Rp(U!b$^#tOY%ZYZ&cZr%Zrs&}st%Ztu$:fuw%Zwx(rx}%Z}!O$:f!O!Q%Z!Q![$:f![!^%Z!^!_*g!_!c%Z!c!}$:f!}#O%Z#O#P&c#P#R%Z#R#S$:f#S#T%Z#T#o$:f#o#p*g#p$g%Z$g;'S$:f;'S;=`$<f<%lO$:f+d$<iP;=`<%l$:f07[$<oP;=`<%l$8b#Jf$<{X![#Hb(Rp(U!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g,#x$=sa(t+JY$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p#q$+e#q;'S%Z;'S;=`+a<%lO%Z(Kd$?V_!Z(Cds`$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z?O$@a_!n7`$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z07[$Aq|$h&j(Rp(U!b'w0/l$[#t(O,2j(`$I[OX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr07[$D|k$h&j(Rp(U!b'x0/l$[#t(O,2j(`$I[OY%ZYZ&cZr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;'SEr;'S;=`I|<%lOEr",tokenizers:[Jb,e_,n_,2,3,4,5,6,7,8,9,10,11,12,13,14,Kb,new cb("$S~RRtu[#O#Pg#S#T#|~_P#o#pb~gOu~~jVO#i!P#i#j!U#j#l!P#l#m!q#m;'S!P;'S;=`#v<%lO!P~!UO!R~~!XS!Q![!e!c!i!e#T#Z!e#o#p#Z~!hR!Q![!q!c!i!q#T#Z!q~!tR!Q![!}!c!i!}#T#Z!}~#QR!Q![!P!c!i!P#T#Z!P~#^R!Q![#g!c!i#g#T#Z#g~#jS!Q![#g!c!i#g#T#Z#g#q#r!P~#yP;=`<%l!P~$RO(^~~",141,335),new cb("j~RQYZXz{^~^O'{~~aP!P!Qd~iO'|~~",25,318)],topRules:{Script:[0,7],SingleExpression:[1,272],SingleClassItem:[2,273]},dialects:{jsx:0,ts:14725},dynamicPrecedences:{77:1,79:1,91:1,167:1,196:1},specialized:[{term:322,get:e=>o_[e]||-1},{term:338,get:e=>i_[e]||-1},{term:92,get:e=>a_[e]||-1}],tokenPrec:14749}),l_=[xv("function ${name}(${params}) {\n\t${}\n}",{label:"function",detail:"definition",type:"keyword"}),xv("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n\t${}\n}",{label:"for",detail:"loop",type:"keyword"}),xv("for (let ${name} of ${collection}) {\n\t${}\n}",{label:"for",detail:"of loop",type:"keyword"}),xv("do {\n\t${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),xv("while (${}) {\n\t${}\n}",{label:"while",detail:"loop",type:"keyword"}),xv("try {\n\t${}\n} catch (${error}) {\n\t${}\n}",{label:"try",detail:"/ catch block",type:"keyword"}),xv("if (${}) {\n\t${}\n}",{label:"if",detail:"block",type:"keyword"}),xv("if (${}) {\n\t${}\n} else {\n\t${}\n}",{label:"if",detail:"/ else block",type:"keyword"}),xv("class ${name} {\n\tconstructor(${params}) {\n\t\t${}\n\t}\n}",{label:"class",detail:"definition",type:"keyword"}),xv('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),xv('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],u_=l_.concat([xv("interface ${name} {\n\t${}\n}",{label:"interface",detail:"definition",type:"keyword"}),xv("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),xv("enum ${name} {\n\t${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),c_=new Uu,d_=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function h_(e){return(t,n)=>{let r=t.node.getChild("VariableDefinition");return r&&n(r,e),!0}}const p_=["FunctionDeclaration"],f_={FunctionDeclaration:h_("function"),ClassDeclaration:h_("class"),ClassExpression:()=>!0,EnumDeclaration:h_("constant"),TypeAliasDeclaration:h_("type"),NamespaceDeclaration:h_("namespace"),VariableDefinition(e,t){e.matchContext(p_)||t(e,"variable")},TypeDefinition(e,t){t(e,"type")},__proto__:null};function g_(e,t){let n=c_.get(t);if(n)return n;let r=[],o=!0;function i(t,n){let o=e.sliceString(t.from,t.to);r.push({label:o,type:n})}return t.cursor(Mu.IncludeAnonymous).iterate((t=>{if(o)o=!1;else if(t.name){let e=f_[t.name];if(e&&e(t,i)||d_.has(t.name))return!1}else if(t.to-t.from>8192){for(let n of g_(e,t.node))r.push(n);return!1}})),c_.set(t,r),r}const m_=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,v_=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function y_(e){let t=Nc(e.state).resolveInner(e.pos,-1);if(v_.indexOf(t.name)>-1)return null;let n="VariableName"==t.name||t.to-t.from<20&&m_.test(e.state.sliceDoc(t.from,t.to));if(!n&&!e.explicit)return null;let r=[];for(let o=t;o;o=o.parent)d_.has(o.name)&&(r=r.concat(g_(e.state.doc,o)));return{options:r,from:n?t.from:e.pos,validFor:m_}}const b_=Rc.define({name:"javascript",parser:s_.configure({props:[Jc.add({IfStatement:dd({except:/^\s*({|else\b)/}),TryStatement:dd({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:cd,SwitchBody:e=>{let t=e.textAfter,n=/^\s*\}/.test(t),r=/^\s*(case|default)\b/.test(t);return e.baseIndent+(n?0:r?1:2)*e.unit},Block:ld({closing:"}"}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,"Statement Property":dd({except:/^{/}),JSXElement(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},JSXEscape(e){let t=/\s*\}/.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"JSXOpenTag JSXSelfClosingTag"(e){return e.column(e.node.from)+e.unit}}),gd.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":md,BlockComment(e){return{from:e.from+2,to:e.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),__={test:e=>/^JSX/.test(e.name),facet:Ic({commentTokens:{block:{open:"{/*",close:"*/}"}}})},x_=b_.configure({dialect:"ts"},"typescript"),w_=b_.configure({dialect:"jsx",props:[$c.add((e=>e.isTop?[__]:void 0))]}),O_=b_.configure({dialect:"jsx ts",props:[$c.add((e=>e.isTop?[__]:void 0))]},"typescript");let S_=e=>({label:e,type:"keyword"});const A_="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(S_),k_=A_.concat(["declare","implements","private","protected","public"].map(S_));function C_(e={}){let t=e.jsx?e.typescript?O_:w_:e.typescript?x_:b_,n=e.typescript?u_.concat(k_):l_.concat(A_);return new Zc(t,[b_.data.of({autocomplete:lm(v_,sm(n))}),b_.data.of({autocomplete:y_}),e.jsx?I_:[]])}function M_(e){for(;;){if("JSXOpenTag"==e.name||"JSXSelfClosingTag"==e.name||"JSXFragmentTag"==e.name)return e;if("JSXEscape"==e.name||!e.parent)return null;e=e.parent}}function T_(e,t,n=e.length){for(let r=null===t||void 0===t?void 0:t.firstChild;r;r=r.nextSibling)if("JSXIdentifier"==r.name||"JSXBuiltin"==r.name||"JSXNamespacedName"==r.name||"JSXMemberExpression"==r.name)return e.sliceString(r.from,Math.min(r.to,n));return""}const P_="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),I_=ls.inputHandler.of(((e,t,n,r,o)=>{if((P_?e.composing:e.compositionStarted)||e.state.readOnly||t!=n||">"!=r&&"/"!=r||!b_.isActiveAt(e.state,t,-1))return!1;let i=o(),{state:a}=i,s=a.changeByRange((e=>{var t;let n,{head:o}=e,i=Nc(a).resolveInner(o-1,-1);if("JSXStartTag"==i.name&&(i=i.parent),a.doc.sliceString(o-1,o)!=r||"JSXAttributeValue"==i.name&&i.to>o);else{if(">"==r&&"JSXFragmentTag"==i.name)return{range:e,changes:{from:o,insert:"</>"}};if("/"==r&&"JSXStartCloseTag"==i.name){let e=i.parent,r=e.parent;if(r&&e.from==o-2&&((n=T_(a.doc,r.firstChild,o))||"JSXFragmentTag"==(null===(t=r.firstChild)||void 0===t?void 0:t.name))){let e=`${n}>`;return{range:Ye.cursor(o+e.length,-1),changes:{from:o,insert:e}}}}else if(">"==r){let t=M_(i);if(t&&"JSXOpenTag"==t.name&&!/^\/?>|^<\//.test(a.doc.sliceString(o,o+2))&&(n=T_(a.doc,t,o)))return{range:e,changes:{from:o,insert:`</${n}>`}}}}return{range:e}}));return!s.changes.empty&&(e.dispatch([i,a.update(s,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}));const $_=ic({String:Mc.string,Number:Mc.number,"True False":Mc.bool,PropertyName:Mc.propertyName,Null:Mc.null,",":Mc.separator,"[ ]":Mc.squareBracket,"{ }":Mc.brace}),E_=Ab.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#CjOOQO'#Cp'#CpQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CrOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59U,59UO!iQPO,59UOVQPO,59QOqQPO'#CkO!nQPO,59^OOQO1G.k1G.kOVQPO'#ClO!vQPO,59aOOQO1G.p1G.pOOQO1G.l1G.lOOQO,59V,59VOOQO-E6i-E6iOOQO,59W,59WOOQO-E6j-E6j",stateData:"#O~OcOS~OQSORSOSSOTSOWQO]ROePO~OVXOeUO~O[[O~PVOg^O~Oh_OVfX~OVaO~OhbO[iX~O[dO~Oh_OVfa~OhbO[ia~O",goto:"!kjPPPPPPkPPkqwPPk{!RPPP!XP!ePP!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName ] [ Array",maxTerm:25,nodeProps:[["isolate",-2,6,11,""],["openedBy",7,"{",12,"["],["closedBy",8,"}",13,"]"]],propSources:[$_],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oc~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Oe~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zOh~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yOg~~'OO]~~'TO[~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0});const D_=Rc.define({name:"json",parser:E_.configure({props:[Jc.add({Object:dd({except:/^\s*\}/}),Array:dd({except:/^\s*\]/})}),gd.add({"Object Array":md})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});function R_(){return new Zc(D_)}var N_=n(41647),L_=n.n(N_),z_=(0,r.defineComponent)({__name:"Editor",props:{code:{type:String,default:""}},emits:["update:code","change"],setup(e,{emit:t}){const n=e,o=t,i=(0,r.ref)(null),a=(0,r.ref)(n.code);(0,r.watch)((()=>n.code),(e=>{a.value=L_().js(e,{indent_size:2})}),{immediate:!0});const s=e=>{try{o("update:code",e),o("change",e)}catch(t){return void console.error(t)}};return(e,t)=>((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(Ry),{ref_key:"editorRef",ref:i,placeholder:"请输入",style:{height:"500px"},"model-value":a.value,"tab-size":2,"auto-focus":!0,"indent-with-tabs":!0,extensions:[(0,r.unref)(eb),(0,r.unref)(C_)(),(0,r.unref)(R_)()],onChange:s},null,8,["model-value","extensions"]))}});const V_=z_;var B_=V_,j_=(0,r.defineComponent)({__name:"index",props:{title:{default:"编辑"},width:{default:800}},emits:["ok"],setup(e,{expose:t,emit:n}){const o=n,i=(0,r.ref)(!1),a=(0,r.ref)(""),s=()=>{o("ok",a.value),i.value=!1};return t({open:e=>{i.value=!0,a.value=e},close:()=>{i.value=!1}}),(e,t)=>((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(ge),{open:i.value,"onUpdate:open":t[1]||(t[1]=e=>i.value=e),title:e.title,width:e.width,onOk:s},{default:(0,r.withCtx)((()=>[(0,r.createVNode)(B_,{code:a.value,"onUpdate:code":t[0]||(t[0]=e=>a.value=e)},null,8,["code"])])),_:1},8,["open","title","width"]))}});const Q_=j_;var F_=Q_;const W_=(0,r.createElementVNode)("span",{class:"text-gray-500"},"秒",-1);var H_=(0,r.defineComponent)({__name:"DataConfig",props:{dataSource:{}},emits:["change"],setup(e,{emit:t}){const n=t,u=e,c=(0,r.ref)({sourceType:p.o.STATIC,data:"",url:"",method:"",params:{},headers:{},refreshTime:0,dataProcess:""}),f=e=>{c.value.refreshTime=0===e||e>=60?e:60};let g;const m=(0,r.ref)(null),v=e=>{g=e,m.value?.open(JSON.stringify(c.value[e]))},y=e=>{c.value[g]=JSON.parse(e)};return(0,r.watch)((()=>u.dataSource),(e=>{Object.assign(c.value,e||{})}),{immediate:!0}),(0,r.watch)((()=>c.value),(e=>{n("change",e)}),{deep:!0}),(e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createVNode)((0,r.unref)(o.Ay),{size:"small",layout:"horizontal",model:c.value,"label-col":{span:8},"wrapper-col":{span:16}},{default:(0,r.withCtx)((()=>[(0,r.createVNode)((0,r.unref)(o.Ay).Item,{label:"类型",name:"sourceType"},{default:(0,r.withCtx)((()=>[(0,r.createVNode)((0,r.unref)(i.Ay),{value:c.value.sourceType,"onUpdate:value":t[0]||(t[0]=e=>c.value.sourceType=e)},{default:(0,r.withCtx)((()=>[(0,r.createVNode)((0,r.unref)(i.OQ),{value:(0,r.unref)(p.o).STATIC},{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)("静态数据")])),_:1},8,["value"]),(0,r.createVNode)((0,r.unref)(i.OQ),{value:(0,r.unref)(p.o).API},{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)("动态数据")])),_:1},8,["value"])])),_:1},8,["value"])])),_:1}),c.value.sourceType===(0,r.unref)(p.o).STATIC?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(o.Ay).Item,{key:0,label:"数据",name:"data"},{default:(0,r.withCtx)((()=>[(0,r.createVNode)((0,r.unref)(a.A),{type:"default",size:"small",onClick:t[1]||(t[1]=e=>v("data"))},{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)("编辑")])),_:1})])),_:1})):c.value.sourceType===(0,r.unref)(p.o).API?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[(0,r.createVNode)((0,r.unref)(o.Ay).Item,{label:"接口地址",name:"url"},{default:(0,r.withCtx)((()=>[(0,r.createVNode)((0,r.unref)(s.Ay).TextArea,{"auto-size":{minRows:5},placeholder:"请输入接口地址",value:c.value.url,"onUpdate:value":t[2]||(t[2]=e=>c.value.url=e)},null,8,["value"])])),_:1}),(0,r.createVNode)((0,r.unref)(o.Ay).Item,{label:"请求方式",name:"method"},{default:(0,r.withCtx)((()=>[(0,r.createVNode)((0,r.unref)(l.A),{value:c.value.method,"onUpdate:value":t[3]||(t[3]=e=>c.value.method=e)},{default:(0,r.withCtx)((()=>[(0,r.createVNode)((0,r.unref)(d),{value:"GET"},{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)("GET")])),_:1}),(0,r.createVNode)((0,r.unref)(d),{value:"POST"},{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)("POST")])),_:1})])),_:1},8,["value"])])),_:1}),(0,r.createVNode)((0,r.unref)(o.Ay).Item,{label:"刷新时间",name:"refreshTime"},{default:(0,r.withCtx)((()=>[(0,r.createVNode)((0,r.unref)(h.A),{value:c.value.refreshTime,"onUpdate:value":t[4]||(t[4]=e=>c.value.refreshTime=e),step:1,style:{width:"100%"},onChange:f},{addonAfter:(0,r.withCtx)((()=>[W_])),_:1},8,["value"])])),_:1}),(0,r.createVNode)((0,r.unref)(o.Ay).Item,{label:"请求参数",name:"params"},{default:(0,r.withCtx)((()=>[(0,r.createVNode)((0,r.unref)(a.A),{type:"default",size:"small",onClick:t[5]||(t[5]=e=>v("params"))},{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)("编辑")])),_:1})])),_:1}),(0,r.createVNode)((0,r.unref)(o.Ay).Item,{label:"请求头",name:"headers"},{default:(0,r.withCtx)((()=>[(0,r.createVNode)((0,r.unref)(a.A),{type:"default",size:"small",onClick:t[6]||(t[6]=e=>v("headers"))},{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)("编辑")])),_:1})])),_:1}),(0,r.createVNode)((0,r.unref)(o.Ay).Item,{label:"数据处理",name:"dataProcess"},{default:(0,r.withCtx)((()=>[(0,r.createVNode)((0,r.unref)(a.A),{type:"default",size:"small",onClick:t[7]||(t[7]=e=>v("dataProcess"))},{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)("编辑")])),_:1})])),_:1})],64)):(0,r.createCommentVNode)("",!0)])),_:1},8,["model"]),(0,r.createVNode)((0,r.unref)(F_),{ref_key:"codeEditorRef",ref:m,title:"编辑数据",onOk:y},null,512)],64))}});const Z_=H_;var G_=Z_},99368:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});var r=n(9274),o=n(7734),i=n(63854),a=n(52885),s=(0,r.defineComponent)({__name:"BasicPie",props:i.B,setup(e){const t=e,{options:n,loading:i}=(0,a.u)(t);return(e,t)=>((0,r.openBlock)(),(0,r.createBlock)(o.A,{width:e.width,height:e.height,"echarts-options":(0,r.unref)(n),loading:(0,r.unref)(i)},null,8,["width","height","echarts-options","loading"]))}});const l=s;var u=l},9274:function(t){"use strict";t.exports=e},10419:function(e,t,n){"use strict";var r=n(26822),o=n(57716),i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(o(e)+" is not a function")}},92679:function(e,t,n){"use strict";var r=n(58905),o=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i("Can't set "+o(e)+" as a prototype")}},55707:function(e,t,n){"use strict";var r=n(99517).has;e.exports=function(e){return r(e),e}},9792:function(e,t,n){"use strict";var r=n(27948),o=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw new o("Incorrect invocation")}},25852:function(e,t,n){"use strict";var r=n(23489),o=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(o(e)+" is not an object")}},31294:function(e){"use strict";e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},17359:function(e,t,n){"use strict";var r=n(48259),o=n(53515),i=TypeError;e.exports=r(ArrayBuffer.prototype,"byteLength","get")||function(e){if("ArrayBuffer"!==o(e))throw new i("ArrayBuffer expected");return e.byteLength}},57927:function(e,t,n){"use strict";var r=n(71671),o=n(17359),i=r(ArrayBuffer.prototype.slice);e.exports=function(e){if(0!==o(e))return!1;try{return i(e,0,0),!1}catch(t){return!0}}},70759:function(e,t,n){"use strict";var r=n(82750),o=n(71671),i=n(48259),a=n(74853),s=n(57927),l=n(17359),u=n(46604),c=n(13353),d=r.structuredClone,h=r.ArrayBuffer,p=r.DataView,f=r.TypeError,g=Math.min,m=h.prototype,v=p.prototype,y=o(m.slice),b=i(m,"resizable","get"),_=i(m,"maxByteLength","get"),x=o(v.getInt8),w=o(v.setInt8);e.exports=(c||u)&&function(e,t,n){var r,o=l(e),i=void 0===t?o:a(t),m=!b||!b(e);if(s(e))throw new f("ArrayBuffer is detached");if(c&&(e=d(e,{transfer:[e]}),o===i&&(n||m)))return e;if(o>=i&&(!n||m))r=y(e,0,i);else{var v=n&&!m&&_?{maxByteLength:_(e)}:void 0;r=new h(i,v);for(var O=new p(e),S=new p(r),A=g(i,o),k=0;k<A;k++)w(S,k,x(O,k))}return c||u(e),r}},58501:function(e,t,n){"use strict";var r,o,i,a=n(31294),s=n(72667),l=n(82750),u=n(26822),c=n(23489),d=n(26072),h=n(52152),p=n(57716),f=n(32398),g=n(50579),m=n(7263),v=n(27948),y=n(2232),b=n(33508),_=n(36772),x=n(62599),w=n(11528),O=w.enforce,S=w.get,A=l.Int8Array,k=A&&A.prototype,C=l.Uint8ClampedArray,M=C&&C.prototype,T=A&&y(A),P=k&&y(k),I=Object.prototype,$=l.TypeError,E=_("toStringTag"),D=x("TYPED_ARRAY_TAG"),R="TypedArrayConstructor",N=a&&!!b&&"Opera"!==h(l.opera),L=!1,z={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},V={BigInt64Array:8,BigUint64Array:8},B=function(e){if(!c(e))return!1;var t=h(e);return"DataView"===t||d(z,t)||d(V,t)},j=function(e){var t=y(e);if(c(t)){var n=S(t);return n&&d(n,R)?n[R]:j(t)}},Q=function(e){if(!c(e))return!1;var t=h(e);return d(z,t)||d(V,t)},F=function(e){if(Q(e))return e;throw new $("Target is not a typed array")},W=function(e){if(u(e)&&(!b||v(T,e)))return e;throw new $(p(e)+" is not a typed array constructor")},H=function(e,t,n,r){if(s){if(n)for(var o in z){var i=l[o];if(i&&d(i.prototype,e))try{delete i.prototype[e]}catch(a){try{i.prototype[e]=t}catch(u){}}}P[e]&&!n||g(P,e,n?t:N&&k[e]||t,r)}},Z=function(e,t,n){var r,o;if(s){if(b){if(n)for(r in z)if(o=l[r],o&&d(o,e))try{delete o[e]}catch(i){}if(T[e]&&!n)return;try{return g(T,e,n?t:N&&T[e]||t)}catch(i){}}for(r in z)o=l[r],!o||o[e]&&!n||g(o,e,t)}};for(r in z)o=l[r],i=o&&o.prototype,i?O(i)[R]=o:N=!1;for(r in V)o=l[r],i=o&&o.prototype,i&&(O(i)[R]=o);if((!N||!u(T)||T===Function.prototype)&&(T=function(){throw new $("Incorrect invocation")},N))for(r in z)l[r]&&b(l[r],T);if((!N||!P||P===I)&&(P=T.prototype,N))for(r in z)l[r]&&b(l[r].prototype,P);if(N&&y(M)!==P&&b(M,P),s&&!d(P,E))for(r in L=!0,m(P,E,{configurable:!0,get:function(){return c(this)?this[D]:void 0}}),z)l[r]&&f(l[r],D,r);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:N,TYPED_ARRAY_TAG:L&&D,aTypedArray:F,aTypedArrayConstructor:W,exportTypedArrayMethod:H,exportTypedArrayStaticMethod:Z,getTypedArrayConstructor:j,isView:B,isTypedArray:Q,TypedArray:T,TypedArrayPrototype:P}},6529:function(e,t,n){"use strict";var r=n(52843);e.exports=function(e,t,n){var o=0,i=arguments.length>2?n:r(t),a=new e(i);while(i>o)a[o]=t[o++];return a}},62672:function(e,t,n){"use strict";var r=n(7282),o=n(43429),i=n(52843),a=function(e){return function(t,n,a){var s=r(t),l=i(s);if(0===l)return!e&&-1;var u,c=o(a,l);if(e&&n!==n){while(l>c)if(u=s[c++],u!==u)return!0}else for(;l>c;c++)if((e||c in s)&&s[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},25950:function(e,t,n){"use strict";var r=n(72667),o=n(87829),i=TypeError,a=Object.getOwnPropertyDescriptor,s=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(o(e)&&!a(e,"length").writable)throw new i("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},98907:function(e,t,n){"use strict";var r=n(52843);e.exports=function(e,t){for(var n=r(e),o=new t(n),i=0;i<n;i++)o[i]=e[n-i-1];return o}},52057:function(e,t,n){"use strict";var r=n(52843),o=n(83790),i=RangeError;e.exports=function(e,t,n,a){var s=r(e),l=o(n),u=l<0?s+l:l;if(u>=s||u<0)throw new i("Incorrect index");for(var c=new t(s),d=0;d<s;d++)c[d]=d===u?a:e[d];return c}},53515:function(e,t,n){"use strict";var r=n(71671),o=r({}.toString),i=r("".slice);e.exports=function(e){return i(o(e),8,-1)}},52152:function(e,t,n){"use strict";var r=n(91515),o=n(26822),i=n(53515),a=n(36772),s=a("toStringTag"),l=Object,u="Arguments"===i(function(){return arguments}()),c=function(e,t){try{return e[t]}catch(n){}};e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=c(t=l(e),s))?n:u?i(t):"Object"===(r=i(t))&&o(t.callee)?"Arguments":r}},96055:function(e,t,n){"use strict";var r=n(26072),o=n(29814),i=n(53570),a=n(21152);e.exports=function(e,t,n){for(var s=o(t),l=a.f,u=i.f,c=0;c<s.length;c++){var d=s[c];r(e,d)||n&&r(n,d)||l(e,d,u(t,d))}}},33226:function(e,t,n){"use strict";var r=n(20560);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},32398:function(e,t,n){"use strict";var r=n(72667),o=n(21152),i=n(97477);e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},97477:function(e){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},7263:function(e,t,n){"use strict";var r=n(13660),o=n(21152);e.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),o.f(e,t,n)}},50579:function(e,t,n){"use strict";var r=n(26822),o=n(21152),i=n(13660),a=n(21328);e.exports=function(e,t,n,s){s||(s={});var l=s.enumerable,u=void 0!==s.name?s.name:t;if(r(n)&&i(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:o.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},21328:function(e,t,n){"use strict";var r=n(82750),o=Object.defineProperty;e.exports=function(e,t){try{o(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},72667:function(e,t,n){"use strict";var r=n(20560);e.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},46604:function(e,t,n){"use strict";var r,o,i,a,s=n(82750),l=n(23303),u=n(13353),c=s.structuredClone,d=s.ArrayBuffer,h=s.MessageChannel,p=!1;if(u)p=function(e){c(e,{transfer:[e]})};else if(d)try{h||(r=l("worker_threads"),r&&(h=r.MessageChannel)),h&&(o=new h,i=new d(2),a=function(e){o.port1.postMessage(null,[e])},2===i.byteLength&&(a(i),0===i.byteLength&&(p=a)))}catch(f){}e.exports=p},88956:function(e,t,n){"use strict";var r=n(82750),o=n(23489),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},31756:function(e){"use strict";var t=TypeError,n=9007199254740991;e.exports=function(e){if(e>n)throw t("Maximum allowed index exceeded");return e}},8917:function(e){"use strict";e.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},78817:function(e,t,n){"use strict";var r=n(17021),o=n(6265);e.exports=!r&&!o&&"object"==typeof window&&"object"==typeof document},17021:function(e){"use strict";e.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},6265:function(e,t,n){"use strict";var r=n(82750),o=n(53515);e.exports="process"===o(r.process)},17055:function(e){"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},4567:function(e,t,n){"use strict";var r,o,i=n(82750),a=n(17055),s=i.process,l=i.Deno,u=s&&s.versions||l&&l.version,c=u&&u.v8;c&&(r=c.split("."),o=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(r=a.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/),r&&(o=+r[1]))),e.exports=o},13108:function(e){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},86846:function(e,t,n){"use strict";var r=n(71671),o=Error,i=r("".replace),a=function(e){return String(new o(e).stack)}("zxcasd"),s=/\n\s*at [^:]*:[^\n]*/,l=s.test(a);e.exports=function(e,t){if(l&&"string"==typeof e&&!o.prepareStackTrace)while(t--)e=i(e,s,"");return e}},96071:function(e,t,n){"use strict";var r=n(82750),o=n(53570).f,i=n(32398),a=n(50579),s=n(21328),l=n(96055),u=n(73859);e.exports=function(e,t){var n,c,d,h,p,f,g=e.target,m=e.global,v=e.stat;if(c=m?r:v?r[g]||s(g,{}):r[g]&&r[g].prototype,c)for(d in t){if(p=t[d],e.dontCallGetSet?(f=o(c,d),h=f&&f.value):h=c[d],n=u(m?d:g+(v?".":"#")+d,e.forced),!n&&void 0!==h){if(typeof p==typeof h)continue;l(p,h)}(e.sham||h&&h.sham)&&i(p,"sham",!0),a(c,d,p,e)}}},20560:function(e){"use strict";e.exports=function(e){try{return!!e()}catch(t){return!0}}},91693:function(e,t,n){"use strict";var r=n(20560);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},12486:function(e,t,n){"use strict";var r=n(91693),o=Function.prototype.call;e.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},72565:function(e,t,n){"use strict";var r=n(72667),o=n(26072),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=o(i,"name"),l=s&&"something"===function(){}.name,u=s&&(!r||r&&a(i,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:u}},48259:function(e,t,n){"use strict";var r=n(71671),o=n(10419);e.exports=function(e,t,n){try{return r(o(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(i){}}},71671:function(e,t,n){"use strict";var r=n(91693),o=Function.prototype,i=o.call,a=r&&o.bind.bind(i,i);e.exports=r?a:function(e){return function(){return i.apply(e,arguments)}}},67522:function(e,t,n){"use strict";var r=n(82750),o=n(26822),i=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e]):r[e]&&r[e][t]}},67512:function(e){"use strict";e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},17147:function(e,t,n){"use strict";var r=n(10419),o=n(10636);e.exports=function(e,t){var n=e[t];return o(n)?void 0:r(n)}},31864:function(e,t,n){"use strict";var r=n(10419),o=n(25852),i=n(12486),a=n(83790),s=n(67512),l="Invalid size",u=RangeError,c=TypeError,d=Math.max,h=function(e,t){this.set=e,this.size=d(t,0),this.has=r(e.has),this.keys=r(e.keys)};h.prototype={getIterator:function(){return s(o(i(this.keys,this.set)))},includes:function(e){return i(this.has,this.set,e)}},e.exports=function(e){o(e);var t=+e.size;if(t!==t)throw new c(l);var n=a(t);if(n<0)throw new u(l);return new h(e,n)}},82750:function(e,t,n){"use strict";var r=function(e){return e&&e.Math===Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},26072:function(e,t,n){"use strict";var r=n(71671),o=n(60310),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},38646:function(e){"use strict";e.exports={}},4468:function(e,t,n){"use strict";var r=n(72667),o=n(20560),i=n(88956);e.exports=!r&&!o((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},81286:function(e,t,n){"use strict";var r=n(71671),o=n(20560),i=n(53515),a=Object,s=r("".split);e.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?s(e,""):a(e)}:a},52952:function(e,t,n){"use strict";var r=n(26822),o=n(23489),i=n(33508);e.exports=function(e,t,n){var a,s;return i&&r(a=t.constructor)&&a!==n&&o(s=a.prototype)&&s!==n.prototype&&i(e,s),e}},4459:function(e,t,n){"use strict";var r=n(71671),o=n(26822),i=n(95404),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},11528:function(e,t,n){"use strict";var r,o,i,a=n(72891),s=n(82750),l=n(23489),u=n(32398),c=n(26072),d=n(95404),h=n(98310),p=n(38646),f="Object already initialized",g=s.TypeError,m=s.WeakMap,v=function(e){return i(e)?o(e):r(e,{})},y=function(e){return function(t){var n;if(!l(t)||(n=o(t)).type!==e)throw new g("Incompatible receiver, "+e+" required");return n}};if(a||d.state){var b=d.state||(d.state=new m);b.get=b.get,b.has=b.has,b.set=b.set,r=function(e,t){if(b.has(e))throw new g(f);return t.facade=e,b.set(e,t),t},o=function(e){return b.get(e)||{}},i=function(e){return b.has(e)}}else{var _=h("state");p[_]=!0,r=function(e,t){if(c(e,_))throw new g(f);return t.facade=e,u(e,_,t),t},o=function(e){return c(e,_)?e[_]:{}},i=function(e){return c(e,_)}}e.exports={set:r,get:o,has:i,enforce:v,getterFor:y}},87829:function(e,t,n){"use strict";var r=n(53515);e.exports=Array.isArray||function(e){return"Array"===r(e)}},10442:function(e,t,n){"use strict";var r=n(52152);e.exports=function(e){var t=r(e);return"BigInt64Array"===t||"BigUint64Array"===t}},26822:function(e){"use strict";var t="object"==typeof document&&document.all;e.exports="undefined"==typeof t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},73859:function(e,t,n){"use strict";var r=n(20560),o=n(26822),i=/#|\.prototype\./,a=function(e,t){var n=l[s(e)];return n===c||n!==u&&(o(t)?r(t):!!t)},s=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},l=a.data={},u=a.NATIVE="N",c=a.POLYFILL="P";e.exports=a},10636:function(e){"use strict";e.exports=function(e){return null===e||void 0===e}},23489:function(e,t,n){"use strict";var r=n(26822);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},58905:function(e,t,n){"use strict";var r=n(23489);e.exports=function(e){return r(e)||null===e}},252:function(e){"use strict";e.exports=!1},57646:function(e,t,n){"use strict";var r=n(67522),o=n(26822),i=n(27948),a=n(6043),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return o(t)&&i(t.prototype,s(e))}},1274:function(e,t,n){"use strict";var r=n(12486);e.exports=function(e,t,n){var o,i,a=n?e:e.iterator,s=e.next;while(!(o=r(s,a)).done)if(i=t(o.value),void 0!==i)return i}},87766:function(e,t,n){"use strict";var r=n(12486),o=n(25852),i=n(17147);e.exports=function(e,t,n){var a,s;o(e);try{if(a=i(e,"return"),!a){if("throw"===t)throw n;return n}a=r(a,e)}catch(l){s=!0,a=l}if("throw"===t)throw n;if(s)throw a;return o(a),n}},52843:function(e,t,n){"use strict";var r=n(87157);e.exports=function(e){return r(e.length)}},13660:function(e,t,n){"use strict";var r=n(71671),o=n(20560),i=n(26822),a=n(26072),s=n(72667),l=n(72565).CONFIGURABLE,u=n(4459),c=n(11528),d=c.enforce,h=c.get,p=String,f=Object.defineProperty,g=r("".slice),m=r("".replace),v=r([].join),y=s&&!o((function(){return 8!==f((function(){}),"length",{value:8}).length})),b=String(String).split("String"),_=e.exports=function(e,t,n){"Symbol("===g(p(t),0,7)&&(t="["+m(p(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!a(e,"name")||l&&e.name!==t)&&(s?f(e,"name",{value:t,configurable:!0}):e.name=t),y&&n&&a(n,"arity")&&e.length!==n.arity&&f(e,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&f(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(o){}var r=d(e);return a(r,"source")||(r.source=v(b,"string"==typeof t?t:"")),e};Function.prototype.toString=_((function(){return i(this)&&h(this).source||u(this)}),"toString")},10868:function(e){"use strict";var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},90036:function(e,t,n){"use strict";var r=n(52148);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:r(e)}},21152:function(e,t,n){"use strict";var r=n(72667),o=n(4468),i=n(43145),a=n(25852),s=n(59242),l=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,d="enumerable",h="configurable",p="writable";t.f=r?i?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 r=c(e,t);r&&r[p]&&(e[t]=n.value,n={configurable:h in n?n[h]:r[h],enumerable:d in n?n[d]:r[d],writable:!1})}return u(e,t,n)}:u:function(e,t,n){if(a(e),t=s(t),a(n),o)try{return u(e,t,n)}catch(r){}if("get"in n||"set"in n)throw new l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},53570:function(e,t,n){"use strict";var r=n(72667),o=n(12486),i=n(28658),a=n(97477),s=n(7282),l=n(59242),u=n(26072),c=n(4468),d=Object.getOwnPropertyDescriptor;t.f=r?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(!o(i.f,e,t),e[t])}},65719:function(e,t,n){"use strict";var r=n(27401),o=n(13108),i=o.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},63694:function(e,t){"use strict";t.f=Object.getOwnPropertySymbols},2232:function(e,t,n){"use strict";var r=n(26072),o=n(26822),i=n(60310),a=n(98310),s=n(33226),l=a("IE_PROTO"),u=Object,c=u.prototype;e.exports=s?u.getPrototypeOf:function(e){var t=i(e);if(r(t,l))return t[l];var n=t.constructor;return o(n)&&t instanceof n?n.prototype:t instanceof u?c:null}},27948:function(e,t,n){"use strict";var r=n(71671);e.exports=r({}.isPrototypeOf)},27401:function(e,t,n){"use strict";var r=n(71671),o=n(26072),i=n(7282),a=n(62672).indexOf,s=n(38646),l=r([].push);e.exports=function(e,t){var n,r=i(e),u=0,c=[];for(n in r)!o(s,n)&&o(r,n)&&l(c,n);while(t.length>u)o(r,n=t[u++])&&(~a(c,n)||l(c,n));return c}},28658:function(e,t){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);t.f=o?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},33508:function(e,t,n){"use strict";var r=n(48259),o=n(23489),i=n(68939),a=n(92679);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=r(Object.prototype,"__proto__","set"),e(n,[]),t=n instanceof Array}catch(s){}return function(n,r){return i(n),a(r),o(n)?(t?e(n,r):n.__proto__=r,n):n}}():void 0)},64481:function(e,t,n){"use strict";var r=n(12486),o=n(26822),i=n(23489),a=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&o(n=e.toString)&&!i(s=r(n,e)))return s;if(o(n=e.valueOf)&&!i(s=r(n,e)))return s;if("string"!==t&&o(n=e.toString)&&!i(s=r(n,e)))return s;throw new a("Can't convert object to primitive value")}},29814:function(e,t,n){"use strict";var r=n(67522),o=n(71671),i=n(65719),a=n(63694),s=n(25852),l=o([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(s(e)),n=a.f;return n?l(t,n(e)):t}},85578:function(e,t,n){"use strict";var r=n(25852);e.exports=function(){var e=r(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}},68939:function(e,t,n){"use strict";var r=n(10636),o=TypeError;e.exports=function(e){if(r(e))throw new o("Can't call method on "+e);return e}},43181:function(e,t,n){"use strict";var r=n(99517),o=n(37726),i=r.Set,a=r.add;e.exports=function(e){var t=new i;return o(e,(function(e){a(t,e)})),t}},62557:function(e,t,n){"use strict";var r=n(55707),o=n(99517),i=n(43181),a=n(61739),s=n(31864),l=n(37726),u=n(1274),c=o.has,d=o.remove;e.exports=function(e){var t=r(this),n=s(e),o=i(t);return a(t)<=n.size?l(t,(function(e){n.includes(e)&&d(o,e)})):u(n.getIterator(),(function(e){c(t,e)&&d(o,e)})),o}},99517:function(e,t,n){"use strict";var r=n(71671),o=Set.prototype;e.exports={Set:Set,add:r(o.add),has:r(o.has),remove:r(o["delete"]),proto:o}},111:function(e,t,n){"use strict";var r=n(55707),o=n(99517),i=n(61739),a=n(31864),s=n(37726),l=n(1274),u=o.Set,c=o.add,d=o.has;e.exports=function(e){var t=r(this),n=a(e),o=new u;return i(t)>n.size?l(n.getIterator(),(function(e){d(t,e)&&c(o,e)})):s(t,(function(e){n.includes(e)&&c(o,e)})),o}},5568:function(e,t,n){"use strict";var r=n(55707),o=n(99517).has,i=n(61739),a=n(31864),s=n(37726),l=n(1274),u=n(87766);e.exports=function(e){var t=r(this),n=a(e);if(i(t)<=n.size)return!1!==s(t,(function(e){if(n.includes(e))return!1}),!0);var c=n.getIterator();return!1!==l(c,(function(e){if(o(t,e))return u(c,"normal",!1)}))}},88671:function(e,t,n){"use strict";var r=n(55707),o=n(61739),i=n(37726),a=n(31864);e.exports=function(e){var t=r(this),n=a(e);return!(o(t)>n.size)&&!1!==i(t,(function(e){if(!n.includes(e))return!1}),!0)}},85126:function(e,t,n){"use strict";var r=n(55707),o=n(99517).has,i=n(61739),a=n(31864),s=n(1274),l=n(87766);e.exports=function(e){var t=r(this),n=a(e);if(i(t)<n.size)return!1;var u=n.getIterator();return!1!==s(u,(function(e){if(!o(t,e))return l(u,"normal",!1)}))}},37726:function(e,t,n){"use strict";var r=n(71671),o=n(1274),i=n(99517),a=i.Set,s=i.proto,l=r(s.forEach),u=r(s.keys),c=u(new a).next;e.exports=function(e,t,n){return n?o({iterator:u(e),next:c},t):l(e,t)}},26041:function(e,t,n){"use strict";var r=n(67522),o=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}};e.exports=function(e){var t=r("Set");try{(new t)[e](o(0));try{return(new t)[e](o(-1)),!1}catch(n){return!0}}catch(i){return!1}}},61739:function(e,t,n){"use strict";var r=n(48259),o=n(99517);e.exports=r(o.proto,"size","get")||function(e){return e.size}},98855:function(e,t,n){"use strict";var r=n(55707),o=n(99517),i=n(43181),a=n(31864),s=n(1274),l=o.add,u=o.has,c=o.remove;e.exports=function(e){var t=r(this),n=a(e).getIterator(),o=i(t);return s(n,(function(e){u(t,e)?c(o,e):l(o,e)})),o}},57843:function(e,t,n){"use strict";var r=n(55707),o=n(99517).add,i=n(43181),a=n(31864),s=n(1274);e.exports=function(e){var t=r(this),n=a(e).getIterator(),l=i(t);return s(n,(function(e){o(l,e)})),l}},98310:function(e,t,n){"use strict";var r=n(31300),o=n(62599),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},95404:function(e,t,n){"use strict";var r=n(252),o=n(82750),i=n(21328),a="__core-js_shared__",s=e.exports=o[a]||i(a,{});(s.versions||(s.versions=[])).push({version:"3.37.1",mode:r?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"})},31300:function(e,t,n){"use strict";var r=n(95404);e.exports=function(e,t){return r[e]||(r[e]=t||{})}},13353:function(e,t,n){"use strict";var r=n(82750),o=n(20560),i=n(4567),a=n(78817),s=n(17021),l=n(6265),u=r.structuredClone;e.exports=!!u&&!o((function(){if(s&&i>92||l&&i>94||a&&i>97)return!1;var e=new ArrayBuffer(8),t=u(e,{transfer:[e]});return 0!==e.byteLength||8!==t.byteLength}))},79474:function(e,t,n){"use strict";var r=n(4567),o=n(20560),i=n(82750),a=i.String;e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol("symbol detection");return!a(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},43429:function(e,t,n){"use strict";var r=n(83790),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},29311:function(e,t,n){"use strict";var r=n(38864),o=TypeError;e.exports=function(e){var t=r(e,"number");if("number"==typeof t)throw new o("Can't convert number to bigint");return BigInt(t)}},74853:function(e,t,n){"use strict";var r=n(83790),o=n(87157),i=RangeError;e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=o(t);if(t!==n)throw new i("Wrong length or index");return n}},7282:function(e,t,n){"use strict";var r=n(81286),o=n(68939);e.exports=function(e){return r(o(e))}},83790:function(e,t,n){"use strict";var r=n(10868);e.exports=function(e){var t=+e;return t!==t||0===t?0:r(t)}},87157:function(e,t,n){"use strict";var r=n(83790),o=Math.min;e.exports=function(e){var t=r(e);return t>0?o(t,9007199254740991):0}},60310:function(e,t,n){"use strict";var r=n(68939),o=Object;e.exports=function(e){return o(r(e))}},38864:function(e,t,n){"use strict";var r=n(12486),o=n(23489),i=n(57646),a=n(17147),s=n(64481),l=n(36772),u=TypeError,c=l("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var n,l=a(e,c);if(l){if(void 0===t&&(t="default"),n=r(l,e,t),!o(n)||i(n))return n;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},59242:function(e,t,n){"use strict";var r=n(38864),o=n(57646);e.exports=function(e){var t=r(e,"string");return o(t)?t:t+""}},91515:function(e,t,n){"use strict";var r=n(36772),o=r("toStringTag"),i={};i[o]="z",e.exports="[object z]"===String(i)},52148:function(e,t,n){"use strict";var r=n(52152),o=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return o(e)}},23303:function(e,t,n){"use strict";var r=n(6265);e.exports=function(e){try{if(r)return Function('return require("'+e+'")')()}catch(t){}}},57716:function(e){"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(n){return"Object"}}},62599:function(e,t,n){"use strict";var r=n(71671),o=0,i=Math.random(),a=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+i,36)}},6043:function(e,t,n){"use strict";var r=n(79474);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},43145:function(e,t,n){"use strict";var r=n(72667),o=n(20560);e.exports=r&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},51031:function(e){"use strict";var t=TypeError;e.exports=function(e,n){if(e<n)throw new t("Not enough arguments");return e}},72891:function(e,t,n){"use strict";var r=n(82750),o=n(26822),i=r.WeakMap;e.exports=o(i)&&/native code/.test(String(i))},36772:function(e,t,n){"use strict";var r=n(82750),o=n(31300),i=n(26072),a=n(62599),s=n(79474),l=n(6043),u=r.Symbol,c=o("wks"),d=l?u["for"]||u:u&&u.withoutSetter||a;e.exports=function(e){return i(c,e)||(c[e]=s&&i(u,e)?u[e]:d("Symbol."+e)),c[e]}},57836:function(e,t,n){"use strict";var r=n(72667),o=n(7263),i=n(57927),a=ArrayBuffer.prototype;r&&!("detached"in a)&&o(a,"detached",{configurable:!0,get:function(){return i(this)}})},34381:function(e,t,n){"use strict";var r=n(96071),o=n(70759);o&&r({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return o(this,arguments.length?arguments[0]:void 0,!1)}})},39109:function(e,t,n){"use strict";var r=n(96071),o=n(70759);o&&r({target:"ArrayBuffer",proto:!0},{transfer:function(){return o(this,arguments.length?arguments[0]:void 0,!0)}})},30381:function(e,t,n){"use strict";var r=n(96071),o=n(60310),i=n(52843),a=n(25950),s=n(31756),l=n(20560),u=l((function(){return 4294967297!==[].push.call({length:4294967296},1)})),c=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}},d=u||!c();r({target:"Array",proto:!0,arity:1,forced:d},{push:function(e){var t=o(this),n=i(t),r=arguments.length;s(n+r);for(var l=0;l<r;l++)t[n]=arguments[l],n++;return a(t,n),n}})},82432:function(e,t,n){"use strict";var r=n(82750),o=n(72667),i=n(7263),a=n(85578),s=n(20560),l=r.RegExp,u=l.prototype,c=o&&s((function(){var e=!0;try{l(".","d")}catch(c){e=!1}var t={},n="",r=e?"dgimsy":"gimsy",o=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},i={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in e&&(i.hasIndices="d"),i)o(a,i[a]);var s=Object.getOwnPropertyDescriptor(u,"flags").get.call(t);return s!==r||n!==r}));c&&i(u,"flags",{configurable:!0,get:a})},32651:function(e,t,n){"use strict";var r=n(96071),o=n(62557),i=n(26041);r({target:"Set",proto:!0,real:!0,forced:!i("difference")},{difference:o})},21701:function(e,t,n){"use strict";var r=n(96071),o=n(20560),i=n(111),a=n(26041),s=!a("intersection")||o((function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))}));r({target:"Set",proto:!0,real:!0,forced:s},{intersection:i})},33840:function(e,t,n){"use strict";var r=n(96071),o=n(5568),i=n(26041);r({target:"Set",proto:!0,real:!0,forced:!i("isDisjointFrom")},{isDisjointFrom:o})},53797:function(e,t,n){"use strict";var r=n(96071),o=n(88671),i=n(26041);r({target:"Set",proto:!0,real:!0,forced:!i("isSubsetOf")},{isSubsetOf:o})},42662:function(e,t,n){"use strict";var r=n(96071),o=n(85126),i=n(26041);r({target:"Set",proto:!0,real:!0,forced:!i("isSupersetOf")},{isSupersetOf:o})},45277:function(e,t,n){"use strict";var r=n(96071),o=n(98855),i=n(26041);r({target:"Set",proto:!0,real:!0,forced:!i("symmetricDifference")},{symmetricDifference:o})},35313:function(e,t,n){"use strict";var r=n(96071),o=n(57843),i=n(26041);r({target:"Set",proto:!0,real:!0,forced:!i("union")},{union:o})},9878:function(e,t,n){"use strict";var r=n(98907),o=n(58501),i=o.aTypedArray,a=o.exportTypedArrayMethod,s=o.getTypedArrayConstructor;a("toReversed",(function(){return r(i(this),s(this))}))},46801:function(e,t,n){"use strict";var r=n(58501),o=n(71671),i=n(10419),a=n(6529),s=r.aTypedArray,l=r.getTypedArrayConstructor,u=r.exportTypedArrayMethod,c=o(r.TypedArrayPrototype.sort);u("toSorted",(function(e){void 0!==e&&i(e);var t=s(this),n=a(l(t),t);return c(n,e)}))},66462:function(e,t,n){"use strict";var r=n(52057),o=n(58501),i=n(10442),a=n(83790),s=n(29311),l=o.aTypedArray,u=o.getTypedArrayConstructor,c=o.exportTypedArrayMethod,d=!!function(){try{new Int8Array(1)["with"](2,{valueOf:function(){throw 8}})}catch(e){return 8===e}}();c("with",{with:function(e,t){var n=l(this),o=a(e),c=i(n)?s(t):+t;return r(n,u(n),o,c)}}["with"],!d)},85194:function(e,t,n){"use strict";n(32651)},27092:function(e,t,n){"use strict";n(21701)},68925:function(e,t,n){"use strict";n(33840)},31796:function(e,t,n){"use strict";n(53797)},21467:function(e,t,n){"use strict";n(42662)},22064:function(e,t,n){"use strict";n(45277)},92114:function(e,t,n){"use strict";n(35313)},28360:function(e,t,n){"use strict";var r=n(96071),o=n(82750),i=n(67522),a=n(97477),s=n(21152).f,l=n(26072),u=n(9792),c=n(52952),d=n(90036),h=n(8917),p=n(86846),f=n(72667),g=n(252),m="DOMException",v=i("Error"),y=i(m),b=function(){u(this,_);var e=arguments.length,t=d(e<1?void 0:arguments[0]),n=d(e<2?void 0:arguments[1],"Error"),r=new y(t,n),o=new v(t);return o.name=m,s(r,"stack",a(1,p(o.stack,1))),c(r,this,b),r},_=b.prototype=y.prototype,x="stack"in new v(m),w="stack"in new y(1,2),O=y&&f&&Object.getOwnPropertyDescriptor(o,m),S=!!O&&!(O.writable&&O.configurable),A=x&&!S&&!w;r({global:!0,constructor:!0,forced:g||A},{DOMException:A?b:y});var k=i(m),C=k.prototype;if(C.constructor!==k)for(var M in g||s(C,"constructor",a(1,k)),h)if(l(h,M)){var T=h[M],P=T.s;l(k,P)||s(k,P,a(6,T.c))}},60726:function(e,t,n){"use strict";var r=n(50579),o=n(71671),i=n(52148),a=n(51031),s=URLSearchParams,l=s.prototype,u=o(l.append),c=o(l["delete"]),d=o(l.forEach),h=o([].push),p=new s("a=1&a=2&b=3");p["delete"]("a",1),p["delete"]("b",void 0),p+""!=="a=2"&&r(l,"delete",(function(e){var t=arguments.length,n=t<2?void 0:arguments[1];if(t&&void 0===n)return c(this,e);var r=[];d(this,(function(e,t){h(r,{key:t,value:e})})),a(t,1);var o,s=i(e),l=i(n),p=0,f=0,g=!1,m=r.length;while(p<m)o=r[p++],g||o.key===s?(g=!0,c(this,o.key)):f++;while(f<m)o=r[f++],o.key===s&&o.value===l||u(this,o.key,o.value)}),{enumerable:!0,unsafe:!0})},82765:function(e,t,n){"use strict";var r=n(50579),o=n(71671),i=n(52148),a=n(51031),s=URLSearchParams,l=s.prototype,u=o(l.getAll),c=o(l.has),d=new s("a=1");!d.has("a",2)&&d.has("a",void 0)||r(l,"has",(function(e){var t=arguments.length,n=t<2?void 0:arguments[1];if(t&&void 0===n)return c(this,e);var r=u(this,e);a(t,1);var o=i(n),s=0;while(s<r.length)if(r[s++]===o)return!0;return!1}),{enumerable:!0,unsafe:!0})},13312:function(e,t,n){"use strict";var r=n(72667),o=n(71671),i=n(7263),a=URLSearchParams.prototype,s=o(a.forEach);r&&!("size"in a)&&i(a,"size",{get:function(){var e=0;return s(this,(function(){e++})),e},configurable:!0,enumerable:!0})},98657:function(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(null,arguments)}n.d(t,{A:function(){return r}})},69751:function(e,t,n){"use strict";n.d(t,{A:function(){return l}});n(30381);function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function i(e){var t=o(e,"string");return"symbol"==r(t)?t:t+""}function a(e,t,n){return(t=i(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},91291:function(e,t,n){"use strict";function r(){this.__data__=[],this.size=0}n.d(t,{A:function(){return b}});var o=r,i=n(55453);function a(e,t){var n=e.length;while(n--)if((0,i.A)(e[n][0],t))return n;return-1}var s=a,l=Array.prototype,u=l.splice;function c(e){var t=this.__data__,n=s(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():u.call(t,n,1),--this.size,!0}var d=c;function h(e){var t=this.__data__,n=s(t,e);return n<0?void 0:t[n][1]}var p=h;function f(e){return s(this.__data__,e)>-1}var g=f;n(30381);function m(e,t){var n=this.__data__,r=s(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var v=m;function y(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}y.prototype.clear=o,y.prototype["delete"]=d,y.prototype.get=p,y.prototype.has=g,y.prototype.set=v;var b=y},24522:function(e,t,n){"use strict";var r=n(3149),o=n(93966),i=(0,r.A)(o.A,"Map");t.A=i},94475:function(e,t,n){"use strict";n.d(t,{A:function(){return j}});var r=n(3149),o=(0,r.A)(Object,"create"),i=o;function a(){this.__data__=i?i(null):{},this.size=0}var s=a;function l(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var u=l,c="__lodash_hash_undefined__",d=Object.prototype,h=d.hasOwnProperty;function p(e){var t=this.__data__;if(i){var n=t[e];return n===c?void 0:n}return h.call(t,e)?t[e]:void 0}var f=p,g=Object.prototype,m=g.hasOwnProperty;function v(e){var t=this.__data__;return i?void 0!==t[e]:m.call(t,e)}var y=v,b="__lodash_hash_undefined__";function _(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=i&&void 0===t?b:t,this}var x=_;function w(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}w.prototype.clear=s,w.prototype["delete"]=u,w.prototype.get=f,w.prototype.has=y,w.prototype.set=x;var O=w,S=n(91291),A=n(24522);function k(){this.size=0,this.__data__={hash:new O,map:new(A.A||S.A),string:new O}}var C=k;function M(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}var T=M;function P(e,t){var n=e.__data__;return T(t)?n["string"==typeof t?"string":"hash"]:n.map}var I=P;function $(e){var t=I(this,e)["delete"](e);return this.size-=t?1:0,t}var E=$;function D(e){return I(this,e).get(e)}var R=D;function N(e){return I(this,e).has(e)}var L=N;function z(e,t){var n=I(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var V=z;function B(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}B.prototype.clear=C,B.prototype["delete"]=E,B.prototype.get=R,B.prototype.has=L,B.prototype.set=V;var j=B},27216:function(e,t,n){"use strict";var r=n(3149),o=n(93966),i=(0,r.A)(o.A,"Set");t.A=i},51845:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});n(30381);var r=n(94475),o="__lodash_hash_undefined__";function i(e){return this.__data__.set(e,o),this}var a=i;function s(e){return this.__data__.has(e)}var l=s;function u(e){var t=-1,n=null==e?0:e.length;this.__data__=new r.A;while(++t<n)this.add(e[t])}u.prototype.add=u.prototype.push=a,u.prototype.has=l;var c=u},74381:function(e,t,n){"use strict";n.d(t,{A:function(){return y}});var r=n(91291);function o(){this.__data__=new r.A,this.size=0}var i=o;function a(e){var t=this.__data__,n=t["delete"](e);return this.size=t.size,n}var s=a;function l(e){return this.__data__.get(e)}var u=l;function c(e){return this.__data__.has(e)}var d=c,h=(n(30381),n(24522)),p=n(94475),f=200;function g(e,t){var n=this.__data__;if(n instanceof r.A){var o=n.__data__;if(!h.A||o.length<f-1)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new p.A(o)}return n.set(e,t),this.size=n.size,this}var m=g;function v(e){var t=this.__data__=new r.A(e);this.size=t.size}v.prototype.clear=i,v.prototype["delete"]=s,v.prototype.get=u,v.prototype.has=d,v.prototype.set=m;var y=v},4770:function(e,t,n){"use strict";var r=n(93966),o=r.A.Symbol;t.A=o},85559:function(e,t,n){"use strict";var r=n(93966),o=r.A.Uint8Array;t.A=o},40816:function(e,t){"use strict";function n(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}t.A=n},3960:function(e,t,n){"use strict";n.d(t,{A:function(){return d}});var r=n(44690);function o(e){return e!==e}var i=o;function a(e,t,n){var r=n-1,o=e.length;while(++r<o)if(e[r]===t)return r;return-1}var s=a;function l(e,t,n){return t===t?s(e,t,n):(0,r.A)(e,i,n)}var u=l;function c(e,t){var n=null==e?0:e.length;return!!n&&u(e,t,0)>-1}var d=c},31044:function(e,t){"use strict";function n(e,t,n){var r=-1,o=null==e?0:e.length;while(++r<o)if(n(t,e[r]))return!0;return!1}t.A=n},80238:function(e,t,n){"use strict";n.d(t,{A:function(){return p}});n(30381);function r(e,t){var n=-1,r=Array(e);while(++n<e)r[n]=t(n);return r}var o=r,i=n(12213),a=n(9670),s=n(62652),l=n(49808),u=n(45261),c=Object.prototype,d=c.hasOwnProperty;function h(e,t){var n=(0,a.A)(e),r=!n&&(0,i.A)(e),c=!n&&!r&&(0,s.A)(e),h=!n&&!r&&!c&&(0,u.A)(e),p=n||r||c||h,f=p?o(e.length,String):[],g=f.length;for(var m in e)!t&&!d.call(e,m)||p&&("length"==m||c&&("offset"==m||"parent"==m)||h&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||(0,l.A)(m,g))||f.push(m);return f}var p=h},24871:function(e,t){"use strict";function n(e,t){var n=-1,r=null==e?0:e.length,o=Array(r);while(++n<r)o[n]=t(e[n],n,e);return o}t.A=n},17865:function(e,t){"use strict";function n(e,t){var n=-1,r=t.length,o=e.length;while(++n<r)e[o+n]=t[n];return e}t.A=n},50062:function(e,t,n){"use strict";var r=n(55937),o=n(55453),i=Object.prototype,a=i.hasOwnProperty;function s(e,t,n){var i=e[t];a.call(e,t)&&(0,o.A)(i,n)&&(void 0!==n||t in e)||(0,r.A)(e,t,n)}t.A=s},55937:function(e,t,n){"use strict";var r=n(85988);function o(e,t,n){"__proto__"==t&&r.A?(0,r.A)(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}t.A=o},99197:function(e,t,n){"use strict";n.d(t,{A:function(){return ot}});var r=n(74381);function o(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(!1===t(e[n],n,e))break;return e}var i=o,a=n(50062),s=n(34824),l=n(99915);function u(e,t){return e&&(0,s.A)(t,(0,l.A)(t),e)}var c=u,d=n(23607);function h(e,t){return e&&(0,s.A)(t,(0,d.A)(t),e)}var p=h,f=n(76507),g=n(90546),m=n(37111);function v(e,t){return(0,s.A)(e,(0,m.A)(e),t)}var y=v,b=n(17592);function _(e,t){return(0,s.A)(e,(0,b.A)(e),t)}var x=_,w=n(1305),O=n(75650),S=n(93588),A=Object.prototype,k=A.hasOwnProperty;function C(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&k.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var M=C,T=n(83266);function P(e,t){var n=t?(0,T.A)(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var I=P,$=/\w*$/;function E(e){var t=new e.constructor(e.source,$.exec(e));return t.lastIndex=e.lastIndex,t}var D=E,R=n(4770),N=R.A?R.A.prototype:void 0,L=N?N.valueOf:void 0;function z(e){return L?Object(L.call(e)):{}}var V=z,B=n(98808),j="[object Boolean]",Q="[object Date]",F="[object Map]",W="[object Number]",H="[object RegExp]",Z="[object Set]",G="[object String]",X="[object Symbol]",U="[object ArrayBuffer]",Y="[object DataView]",q="[object Float32Array]",K="[object Float64Array]",J="[object Int8Array]",ee="[object Int16Array]",te="[object Int32Array]",ne="[object Uint8Array]",re="[object Uint8ClampedArray]",oe="[object Uint16Array]",ie="[object Uint32Array]";function ae(e,t,n){var r=e.constructor;switch(t){case U:return(0,T.A)(e);case j:case Q:return new r(+e);case Y:return I(e,n);case q:case K:case J:case ee:case te:case ne:case re:case oe:case ie:return(0,B.A)(e,n);case F:return new r;case W:case G:return new r(e);case H:return D(e);case Z:return new r;case X:return V(e)}}var se=ae,le=n(70067),ue=n(9670),ce=n(62652),de=n(24275),he="[object Map]";function pe(e){return(0,de.A)(e)&&(0,S.A)(e)==he}var fe=pe,ge=n(27716),me=n(55602),ve=me.A&&me.A.isMap,ye=ve?(0,ge.A)(ve):fe,be=ye,_e=n(48508),xe="[object Set]";function we(e){return(0,de.A)(e)&&(0,S.A)(e)==xe}var Oe=we,Se=me.A&&me.A.isSet,Ae=Se?(0,ge.A)(Se):Oe,ke=Ae,Ce=1,Me=2,Te=4,Pe="[object Arguments]",Ie="[object Array]",$e="[object Boolean]",Ee="[object Date]",De="[object Error]",Re="[object Function]",Ne="[object GeneratorFunction]",Le="[object Map]",ze="[object Number]",Ve="[object Object]",Be="[object RegExp]",je="[object Set]",Qe="[object String]",Fe="[object Symbol]",We="[object WeakMap]",He="[object ArrayBuffer]",Ze="[object DataView]",Ge="[object Float32Array]",Xe="[object Float64Array]",Ue="[object Int8Array]",Ye="[object Int16Array]",qe="[object Int32Array]",Ke="[object Uint8Array]",Je="[object Uint8ClampedArray]",et="[object Uint16Array]",tt="[object Uint32Array]",nt={};function rt(e,t,n,o,s,u){var h,m=t&Ce,v=t&Me,b=t&Te;if(n&&(h=s?n(e,o,s,u):n(e)),void 0!==h)return h;if(!(0,_e.A)(e))return e;var _=(0,ue.A)(e);if(_){if(h=M(e),!m)return(0,g.A)(e,h)}else{var A=(0,S.A)(e),k=A==Re||A==Ne;if((0,ce.A)(e))return(0,f.A)(e,m);if(A==Ve||A==Pe||k&&!s){if(h=v||k?{}:(0,le.A)(e),!m)return v?x(e,p(h,e)):y(e,c(h,e))}else{if(!nt[A])return s?e:{};h=se(e,A,m)}}u||(u=new r.A);var C=u.get(e);if(C)return C;u.set(e,h),ke(e)?e.forEach((function(r){h.add(rt(r,t,n,r,e,u))})):be(e)&&e.forEach((function(r,o){h.set(o,rt(r,t,n,o,e,u))}));var T=b?v?O.A:w.A:v?d.A:l.A,P=_?void 0:T(e);return i(P||e,(function(r,o){P&&(o=r,r=e[o]),(0,a.A)(h,o,rt(r,t,n,o,e,u))})),h}nt[Pe]=nt[Ie]=nt[He]=nt[Ze]=nt[$e]=nt[Ee]=nt[Ge]=nt[Xe]=nt[Ue]=nt[Ye]=nt[qe]=nt[Le]=nt[ze]=nt[Ve]=nt[Be]=nt[je]=nt[Qe]=nt[Fe]=nt[Ke]=nt[Je]=nt[et]=nt[tt]=!0,nt[De]=nt[Re]=nt[We]=!1;var ot=rt},44690:function(e,t){"use strict";function n(e,t,n,r){var o=e.length,i=n+(r?1:-1);while(r?i--:++i<o)if(t(e[i],i,e))return i;return-1}t.A=n},13267:function(e,t,n){"use strict";var r=n(71595),o=n(65864);function i(e,t){t=(0,r.A)(t,e);var n=0,i=t.length;while(null!=e&&n<i)e=e[(0,o.A)(t[n++])];return n&&n==i?e:void 0}t.A=i},15876:function(e,t,n){"use strict";var r=n(17865),o=n(9670);function i(e,t,n){var i=t(e);return(0,o.A)(e)?i:(0,r.A)(i,n(e))}t.A=i},6003:function(e,t,n){"use strict";n.d(t,{A:function(){return y}});var r=n(4770),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r.A?r.A.toStringTag:void 0;function l(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(l){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}var u=l,c=Object.prototype,d=c.toString;function h(e){return d.call(e)}var p=h,f="[object Null]",g="[object Undefined]",m=r.A?r.A.toStringTag:void 0;function v(e){return null==e?void 0===e?g:f:m&&m in Object(e)?u(e):p(e)}var y=v},13796:function(e,t,n){"use strict";n.d(t,{A:function(){return te}});var r=n(74381),o=(n(30381),n(51845));function i(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(t(e[n],n,e))return!0;return!1}var a=i,s=n(86864),l=1,u=2;function c(e,t,n,r,i,c){var d=n&l,h=e.length,p=t.length;if(h!=p&&!(d&&p>h))return!1;var f=c.get(e),g=c.get(t);if(f&&g)return f==t&&g==e;var m=-1,v=!0,y=n&u?new o.A:void 0;c.set(e,t),c.set(t,e);while(++m<h){var b=e[m],_=t[m];if(r)var x=d?r(_,b,m,t,e,c):r(b,_,m,e,t,c);if(void 0!==x){if(x)continue;v=!1;break}if(y){if(!a(t,(function(e,t){if(!(0,s.A)(y,t)&&(b===e||i(b,e,n,r,c)))return y.push(t)}))){v=!1;break}}else if(b!==_&&!i(b,_,n,r,c)){v=!1;break}}return c["delete"](e),c["delete"](t),v}var d=c,h=n(4770),p=n(85559),f=n(55453);function g(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}var m=g,v=n(46708),y=1,b=2,_="[object Boolean]",x="[object Date]",w="[object Error]",O="[object Map]",S="[object Number]",A="[object RegExp]",k="[object Set]",C="[object String]",M="[object Symbol]",T="[object ArrayBuffer]",P="[object DataView]",I=h.A?h.A.prototype:void 0,$=I?I.valueOf:void 0;function E(e,t,n,r,o,i,a){switch(n){case P:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case T:return!(e.byteLength!=t.byteLength||!i(new p.A(e),new p.A(t)));case _:case x:case S:return(0,f.A)(+e,+t);case w:return e.name==t.name&&e.message==t.message;case A:case C:return e==t+"";case O:var s=m;case k:var l=r&y;if(s||(s=v.A),e.size!=t.size&&!l)return!1;var u=a.get(e);if(u)return u==t;r|=b,a.set(e,t);var c=d(s(e),s(t),r,o,i,a);return a["delete"](e),c;case M:if($)return $.call(e)==$.call(t)}return!1}var D=E,R=n(1305),N=1,L=Object.prototype,z=L.hasOwnProperty;function V(e,t,n,r,o,i){var a=n&N,s=(0,R.A)(e),l=s.length,u=(0,R.A)(t),c=u.length;if(l!=c&&!a)return!1;var d=l;while(d--){var h=s[d];if(!(a?h in t:z.call(t,h)))return!1}var p=i.get(e),f=i.get(t);if(p&&f)return p==t&&f==e;var g=!0;i.set(e,t),i.set(t,e);var m=a;while(++d<l){h=s[d];var v=e[h],y=t[h];if(r)var b=a?r(y,v,h,t,e,i):r(v,y,h,e,t,i);if(!(void 0===b?v===y||o(v,y,n,r,i):b)){g=!1;break}m||(m="constructor"==h)}if(g&&!m){var _=e.constructor,x=t.constructor;_==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof x&&x instanceof x||(g=!1)}return i["delete"](e),i["delete"](t),g}var B=V,j=n(93588),Q=n(9670),F=n(62652),W=n(45261),H=1,Z="[object Arguments]",G="[object Array]",X="[object Object]",U=Object.prototype,Y=U.hasOwnProperty;function q(e,t,n,o,i,a){var s=(0,Q.A)(e),l=(0,Q.A)(t),u=s?G:(0,j.A)(e),c=l?G:(0,j.A)(t);u=u==Z?X:u,c=c==Z?X:c;var h=u==X,p=c==X,f=u==c;if(f&&(0,F.A)(e)){if(!(0,F.A)(t))return!1;s=!0,h=!1}if(f&&!h)return a||(a=new r.A),s||(0,W.A)(e)?d(e,t,n,o,i,a):D(e,t,u,n,o,i,a);if(!(n&H)){var g=h&&Y.call(e,"__wrapped__"),m=p&&Y.call(t,"__wrapped__");if(g||m){var v=g?e.value():e,y=m?t.value():t;return a||(a=new r.A),i(v,y,n,o,a)}}return!!f&&(a||(a=new r.A),B(e,t,n,o,i,a))}var K=q,J=n(24275);function ee(e,t,n,r,o){return e===t||(null==e||null==t||!(0,J.A)(e)&&!(0,J.A)(t)?e!==e&&t!==t:K(e,t,n,r,ee,o))}var te=ee},56732:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});n(30381);var r=n(74754),o=n(42726),i=(0,o.A)(Object.keys,Object),a=i,s=Object.prototype,l=s.hasOwnProperty;function u(e){if(!(0,r.A)(e))return a(e);var t=[];for(var n in Object(e))l.call(e,n)&&"constructor"!=n&&t.push(n);return t}var c=u},96953:function(e,t,n){"use strict";var r=n(14101),o=n(1874),i=n(55629);function a(e,t){return(0,i.A)((0,o.A)(e,t,r.A),e+"")}t.A=a},7927:function(e,t,n){"use strict";var r=n(50062),o=n(71595),i=n(49808),a=n(48508),s=n(65864);function l(e,t,n,l){if(!(0,a.A)(e))return e;t=(0,o.A)(t,e);var u=-1,c=t.length,d=c-1,h=e;while(null!=h&&++u<c){var p=(0,s.A)(t[u]),f=n;if("__proto__"===p||"constructor"===p||"prototype"===p)return e;if(u!=d){var g=h[p];f=l?l(g,p,h):void 0,void 0===f&&(f=(0,a.A)(g)?g:(0,i.A)(t[u+1])?[]:{})}(0,r.A)(h,p,f),h=h[p]}return e}t.A=l},27716:function(e,t){"use strict";function n(e){return function(t){return e(t)}}t.A=n},86864:function(e,t){"use strict";function n(e,t){return e.has(t)}t.A=n},71595:function(e,t,n){"use strict";n.d(t,{A:function(){return C}});var r=n(9670),o=n(50259),i=(n(30381),n(94475)),a="Expected a function";function s(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(a);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(s.Cache||i.A),n}s.Cache=i.A;var l=s,u=500;function c(e){var t=l(e,(function(e){return n.size===u&&n.clear(),e})),n=t.cache;return t}var d=c,h=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,p=/\\(\\)?/g,f=d((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(h,(function(e,n,r,o){t.push(r?o.replace(p,"$1"):n||e)})),t})),g=f,m=n(4770),v=n(24871),y=n(67427),b=1/0,_=m.A?m.A.prototype:void 0,x=_?_.toString:void 0;function w(e){if("string"==typeof e)return e;if((0,r.A)(e))return(0,v.A)(e,w)+"";if((0,y.A)(e))return x?x.call(e):"";var t=e+"";return"0"==t&&1/e==-b?"-0":t}var O=w;function S(e){return null==e?"":O(e)}var A=S;function k(e,t){return(0,r.A)(e)?e:(0,o.A)(e,t)?[e]:g(A(e))}var C=k},83266:function(e,t,n){"use strict";var r=n(85559);function o(e){var t=new e.constructor(e.byteLength);return new r.A(t).set(new r.A(e)),t}t.A=o},76507:function(e,t,n){"use strict";var r=n(93966),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,i=o&&"object"==typeof module&&module&&!module.nodeType&&module,a=i&&i.exports===o,s=a?r.A.Buffer:void 0,l=s?s.allocUnsafe:void 0;function u(e,t){if(t)return e.slice();var n=e.length,r=l?l(n):new e.constructor(n);return e.copy(r),r}t.A=u},98808:function(e,t,n){"use strict";var r=n(83266);function o(e,t){var n=t?(0,r.A)(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}t.A=o},90546:function(e,t){"use strict";function n(e,t){var n=-1,r=e.length;t||(t=Array(r));while(++n<r)t[n]=e[n];return t}t.A=n},34824:function(e,t,n){"use strict";var r=n(50062),o=n(55937);function i(e,t,n,i){var a=!n;n||(n={});var s=-1,l=t.length;while(++s<l){var u=t[s],c=i?i(n[u],e[u],u,n,e):void 0;void 0===c&&(c=e[u]),a?(0,o.A)(n,u,c):(0,r.A)(n,u,c)}return n}t.A=i},85988:function(e,t,n){"use strict";var r=n(3149),o=function(){try{var e=(0,r.A)(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();t.A=o},45472:function(e,t,n){"use strict";n.d(t,{A:function(){return v}});var r=n(17865),o=n(4770),i=n(12213),a=n(9670),s=o.A?o.A.isConcatSpreadable:void 0;function l(e){return(0,a.A)(e)||(0,i.A)(e)||!!(s&&e&&e[s])}var u=l;function c(e,t,n,o,i){var a=-1,s=e.length;n||(n=u),i||(i=[]);while(++a<s){var l=e[a];t>0&&n(l)?t>1?c(l,t-1,n,o,i):(0,r.A)(i,l):o||(i[i.length]=l)}return i}var d=c;function h(e){var t=null==e?0:e.length;return t?d(e,1):[]}var p=h,f=n(1874),g=n(55629);function m(e){return(0,g.A)((0,f.A)(e,void 0,p),e+"")}var v=m},49895:function(e,t){"use strict";var n="object"==typeof global&&global&&global.Object===Object&&global;t.A=n},1305:function(e,t,n){"use strict";var r=n(15876),o=n(37111),i=n(99915);function a(e){return(0,r.A)(e,i.A,o.A)}t.A=a},75650:function(e,t,n){"use strict";var r=n(15876),o=n(17592),i=n(23607);function a(e){return(0,r.A)(e,i.A,o.A)}t.A=a},3149:function(e,t,n){"use strict";n.d(t,{A:function(){return S}});var r=n(7015),o=n(93966),i=o.A["__core-js_shared__"],a=i,s=function(){var e=/[^.]+$/.exec(a&&a.keys&&a.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function l(e){return!!s&&s in e}var u=l,c=n(48508),d=n(70450),h=/[\\^$.*+?()[\]{}|]/g,p=/^\[object .+?Constructor\]$/,f=Function.prototype,g=Object.prototype,m=f.toString,v=g.hasOwnProperty,y=RegExp("^"+m.call(v).replace(h,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function b(e){if(!(0,c.A)(e)||u(e))return!1;var t=(0,r.A)(e)?y:p;return t.test((0,d.A)(e))}var _=b;function x(e,t){return null==e?void 0:e[t]}var w=x;function O(e,t){var n=w(e,t);return _(n)?n:void 0}var S=O},53776:function(e,t,n){"use strict";var r=n(42726),o=(0,r.A)(Object.getPrototypeOf,Object);t.A=o},37111:function(e,t,n){"use strict";function r(e,t){var n=-1,r=null==e?0:e.length,o=0,i=[];while(++n<r){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}n.d(t,{A:function(){return c}});var o=r,i=n(64122),a=Object.prototype,s=a.propertyIsEnumerable,l=Object.getOwnPropertySymbols,u=l?function(e){return null==e?[]:(e=Object(e),o(l(e),(function(t){return s.call(e,t)})))}:i.A,c=u},17592:function(e,t,n){"use strict";var r=n(17865),o=n(53776),i=n(37111),a=n(64122),s=Object.getOwnPropertySymbols,l=s?function(e){var t=[];while(e)(0,r.A)(t,(0,i.A)(e)),e=(0,o.A)(e);return t}:a.A;t.A=l},93588:function(e,t,n){"use strict";n.d(t,{A:function(){return C}});n(57836),n(39109),n(34381);var r=n(3149),o=n(93966),i=(0,r.A)(o.A,"DataView"),a=i,s=n(24522),l=(0,r.A)(o.A,"Promise"),u=l,c=n(27216),d=(0,r.A)(o.A,"WeakMap"),h=d,p=n(6003),f=n(70450),g="[object Map]",m="[object Object]",v="[object Promise]",y="[object Set]",b="[object WeakMap]",_="[object DataView]",x=(0,f.A)(a),w=(0,f.A)(s.A),O=(0,f.A)(u),S=(0,f.A)(c.A),A=(0,f.A)(h),k=p.A;(a&&k(new a(new ArrayBuffer(1)))!=_||s.A&&k(new s.A)!=g||u&&k(u.resolve())!=v||c.A&&k(new c.A)!=y||h&&k(new h)!=b)&&(k=function(e){var t=(0,p.A)(e),n=t==m?e.constructor:void 0,r=n?(0,f.A)(n):"";if(r)switch(r){case x:return _;case w:return g;case O:return v;case S:return y;case A:return b}return t});var C=k},70067:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var r=n(48508),o=Object.create,i=function(){function e(){}return function(t){if(!(0,r.A)(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),a=i,s=n(53776),l=n(74754);function u(e){return"function"!=typeof e.constructor||(0,l.A)(e)?{}:a((0,s.A)(e))}var c=u},49808:function(e,t){"use strict";var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function o(e,t){var o=typeof e;return t=null==t?n:t,!!t&&("number"==o||"symbol"!=o&&r.test(e))&&e>-1&&e%1==0&&e<t}t.A=o},50259:function(e,t,n){"use strict";var r=n(9670),o=n(67427),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;function s(e,t){if((0,r.A)(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!(0,o.A)(e))||(a.test(e)||!i.test(e)||null!=t&&e in Object(t))}t.A=s},74754:function(e,t){"use strict";var n=Object.prototype;function r(e){var t=e&&e.constructor,r="function"==typeof t&&t.prototype||n;return e===r}t.A=r},55602:function(e,t,n){"use strict";var r=n(49895),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,i=o&&"object"==typeof module&&module&&!module.nodeType&&module,a=i&&i.exports===o,s=a&&r.A.process,l=function(){try{var e=i&&i.require&&i.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(t){}}();t.A=l},42726:function(e,t){"use strict";function n(e,t){return function(n){return e(t(n))}}t.A=n},1874:function(e,t,n){"use strict";var r=n(40816),o=Math.max;function i(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){var i=arguments,a=-1,s=o(i.length-t,0),l=Array(s);while(++a<s)l[a]=i[t+a];a=-1;var u=Array(t+1);while(++a<t)u[a]=i[a];return u[t]=n(l),(0,r.A)(e,this,u)}}t.A=i},93966:function(e,t,n){"use strict";var r=n(49895),o="object"==typeof self&&self&&self.Object===Object&&self,i=r.A||o||Function("return this")();t.A=i},46708:function(e,t){"use strict";function n(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}t.A=n},55629:function(e,t,n){"use strict";function r(e){return function(){return e}}n.d(t,{A:function(){return g}});var o=r,i=n(85988),a=n(14101),s=i.A?function(e,t){return(0,i.A)(e,"toString",{configurable:!0,enumerable:!1,value:o(t),writable:!0})}:a.A,l=s,u=800,c=16,d=Date.now;function h(e){var t=0,n=0;return function(){var r=d(),o=c-(r-n);if(n=r,o>0){if(++t>=u)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var p=h,f=p(l),g=f},65864:function(e,t,n){"use strict";var r=n(67427),o=1/0;function i(e){if("string"==typeof e||(0,r.A)(e))return e;var t=e+"";return"0"==t&&1/e==-o?"-0":t}t.A=i},70450:function(e,t){"use strict";var n=Function.prototype,r=n.toString;function o(e){if(null!=e){try{return r.call(e)}catch(t){}try{return e+""}catch(t){}}return""}t.A=o},4908:function(e,t,n){"use strict";var r=n(99197),o=1,i=4;function a(e){return(0,r.A)(e,o|i)}t.A=a},58554:function(e,t,n){"use strict";n.d(t,{A:function(){return h}});var r=n(48508),o=n(93966),i=function(){return o.A.Date.now()},a=i,s=n(98704),l="Expected a function",u=Math.max,c=Math.min;function d(e,t,n){var o,i,d,h,p,f,g=0,m=!1,v=!1,y=!0;if("function"!=typeof e)throw new TypeError(l);function b(t){var n=o,r=i;return o=i=void 0,g=t,h=e.apply(r,n),h}function _(e){return g=e,p=setTimeout(O,t),m?b(e):h}function x(e){var n=e-f,r=e-g,o=t-n;return v?c(o,d-r):o}function w(e){var n=e-f,r=e-g;return void 0===f||n>=t||n<0||v&&r>=d}function O(){var e=a();if(w(e))return S(e);p=setTimeout(O,x(e))}function S(e){return p=void 0,y&&o?b(e):(o=i=void 0,h)}function A(){void 0!==p&&clearTimeout(p),g=0,o=f=i=p=void 0}function k(){return void 0===p?h:S(a())}function C(){var e=a(),n=w(e);if(o=arguments,i=this,f=e,n){if(void 0===p)return _(f);if(v)return clearTimeout(p),p=setTimeout(O,t),b(f)}return void 0===p&&(p=setTimeout(O,t)),h}return t=(0,s.A)(t)||0,(0,r.A)(n)&&(m=!!n.leading,v="maxWait"in n,d=v?u((0,s.A)(n.maxWait)||0,t):d,y="trailing"in n?!!n.trailing:y),C.cancel=A,C.flush=k,C}var h=d},98389:function(e,t,n){"use strict";n.d(t,{A:function(){return G}});n(30381);var r=n(40816),o=n(96953),i=n(74381),a=n(55937),s=n(55453);function l(e,t,n){(void 0!==n&&!(0,s.A)(e[t],n)||void 0===n&&!(t in e))&&(0,a.A)(e,t,n)}var u=l;function c(e){return function(t,n,r){var o=-1,i=Object(t),a=r(t),s=a.length;while(s--){var l=a[e?s:++o];if(!1===n(i[l],l,i))break}return t}}var d=c,h=d(),p=h,f=n(76507),g=n(98808),m=n(90546),v=n(70067),y=n(12213),b=n(9670),_=n(74478),x=n(62652),w=n(7015),O=n(48508),S=n(77688),A=n(45261);function k(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}var C=k,M=n(34824),T=n(23607);function P(e){return(0,M.A)(e,(0,T.A)(e))}var I=P;function $(e,t,n,r,o,i,a){var s=C(e,n),l=C(t,n),c=a.get(l);if(c)u(e,n,c);else{var d=i?i(s,l,n+"",e,t,a):void 0,h=void 0===d;if(h){var p=(0,b.A)(l),k=!p&&(0,x.A)(l),M=!p&&!k&&(0,A.A)(l);d=l,p||k||M?(0,b.A)(s)?d=s:(0,_.A)(s)?d=(0,m.A)(s):k?(h=!1,d=(0,f.A)(l,!0)):M?(h=!1,d=(0,g.A)(l,!0)):d=[]:(0,S.A)(l)||(0,y.A)(l)?(d=s,(0,y.A)(s)?d=I(s):(0,O.A)(s)&&!(0,w.A)(s)||(d=(0,v.A)(l))):h=!1}h&&(a.set(l,d),o(d,l,r,i,a),a["delete"](l)),u(e,n,d)}}var E=$;function D(e,t,n,r,o){e!==t&&p(t,(function(a,s){if(o||(o=new i.A),(0,O.A)(a))E(e,t,s,n,D,r,o);else{var l=r?r(C(e,s),a,s+"",e,t,o):void 0;void 0===l&&(l=a),u(e,s,l)}}),T.A)}var R=D;function N(e,t,n,r,o,i){return(0,O.A)(e)&&(0,O.A)(t)&&(i.set(t,e),R(e,t,void 0,N,i),i["delete"](t)),e}var L=N,z=n(58977),V=n(49808);function B(e,t,n){if(!(0,O.A)(n))return!1;var r=typeof t;return!!("number"==r?(0,z.A)(n)&&(0,V.A)(t,n.length):"string"==r&&t in n)&&(0,s.A)(n[t],e)}var j=B;function Q(e){return(0,o.A)((function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;i=e.length>3&&"function"==typeof i?(o--,i):void 0,a&&j(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);while(++r<o){var s=n[r];s&&e(t,s,r,i)}return t}))}var F=Q,W=F((function(e,t,n,r){R(e,t,n,r)})),H=W,Z=(0,o.A)((function(e){return e.push(void 0,L),(0,r.A)(H,void 0,e)})),G=Z},55453:function(e,t){"use strict";function n(e,t){return e===t||e!==e&&t!==t}t.A=n},83067:function(e,t,n){"use strict";var r=n(13267);function o(e,t,n){var o=null==e?void 0:(0,r.A)(e,t);return void 0===o?n:o}t.A=o},92324:function(e,t,n){"use strict";function r(e,t){return null!=e&&t in Object(e)}n.d(t,{A:function(){return f}});var o=r,i=n(71595),a=n(12213),s=n(9670),l=n(49808),u=n(83099),c=n(65864);function d(e,t,n){t=(0,i.A)(t,e);var r=-1,o=t.length,d=!1;while(++r<o){var h=(0,c.A)(t[r]);if(!(d=null!=e&&n(e,h)))break;e=e[h]}return d||++r!=o?d:(o=null==e?0:e.length,!!o&&(0,u.A)(o)&&(0,l.A)(h,o)&&((0,s.A)(e)||(0,a.A)(e)))}var h=d;function p(e,t){return null!=e&&h(e,t,o)}var f=p},14101:function(e,t){"use strict";function n(e){return e}t.A=n},12213:function(e,t,n){"use strict";n.d(t,{A:function(){return h}});var r=n(6003),o=n(24275),i="[object Arguments]";function a(e){return(0,o.A)(e)&&(0,r.A)(e)==i}var s=a,l=Object.prototype,u=l.hasOwnProperty,c=l.propertyIsEnumerable,d=s(function(){return arguments}())?s:function(e){return(0,o.A)(e)&&u.call(e,"callee")&&!c.call(e,"callee")},h=d},9670:function(e,t){"use strict";var n=Array.isArray;t.A=n},58977:function(e,t,n){"use strict";var r=n(7015),o=n(83099);function i(e){return null!=e&&(0,o.A)(e.length)&&!(0,r.A)(e)}t.A=i},74478:function(e,t,n){"use strict";var r=n(58977),o=n(24275);function i(e){return(0,o.A)(e)&&(0,r.A)(e)}t.A=i},62652:function(e,t,n){"use strict";n.d(t,{A:function(){return h}});var r=n(93966);function o(){return!1}var i=o,a="object"==typeof exports&&exports&&!exports.nodeType&&exports,s=a&&"object"==typeof module&&module&&!module.nodeType&&module,l=s&&s.exports===a,u=l?r.A.Buffer:void 0,c=u?u.isBuffer:void 0,d=c||i,h=d},71415:function(e,t,n){"use strict";var r=n(13796);function o(e,t){return(0,r.A)(e,t)}t.A=o},7015:function(e,t,n){"use strict";var r=n(6003),o=n(48508),i="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",l="[object Proxy]";function u(e){if(!(0,o.A)(e))return!1;var t=(0,r.A)(e);return t==a||t==s||t==i||t==l}t.A=u},83099:function(e,t){"use strict";var n=9007199254740991;function r(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}t.A=r},48508:function(e,t){"use strict";function n(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}t.A=n},24275:function(e,t){"use strict";function n(e){return null!=e&&"object"==typeof e}t.A=n},77688:function(e,t,n){"use strict";var r=n(6003),o=n(53776),i=n(24275),a="[object Object]",s=Function.prototype,l=Object.prototype,u=s.toString,c=l.hasOwnProperty,d=u.call(Object);function h(e){if(!(0,i.A)(e)||(0,r.A)(e)!=a)return!1;var t=(0,o.A)(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==d}t.A=h},67427:function(e,t,n){"use strict";var r=n(6003),o=n(24275),i="[object Symbol]";function a(e){return"symbol"==typeof e||(0,o.A)(e)&&(0,r.A)(e)==i}t.A=a},45261:function(e,t,n){"use strict";n.d(t,{A:function(){return L}});var r=n(6003),o=n(83099),i=n(24275),a="[object Arguments]",s="[object Array]",l="[object Boolean]",u="[object Date]",c="[object Error]",d="[object Function]",h="[object Map]",p="[object Number]",f="[object Object]",g="[object RegExp]",m="[object Set]",v="[object String]",y="[object WeakMap]",b="[object ArrayBuffer]",_="[object DataView]",x="[object Float32Array]",w="[object Float64Array]",O="[object Int8Array]",S="[object Int16Array]",A="[object Int32Array]",k="[object Uint8Array]",C="[object Uint8ClampedArray]",M="[object Uint16Array]",T="[object Uint32Array]",P={};function I(e){return(0,i.A)(e)&&(0,o.A)(e.length)&&!!P[(0,r.A)(e)]}P[x]=P[w]=P[O]=P[S]=P[A]=P[k]=P[C]=P[M]=P[T]=!0,P[a]=P[s]=P[b]=P[l]=P[_]=P[u]=P[c]=P[d]=P[h]=P[p]=P[f]=P[g]=P[m]=P[v]=P[y]=!1;var $=I,E=n(27716),D=n(55602),R=D.A&&D.A.isTypedArray,N=R?(0,E.A)(R):$,L=N},99915:function(e,t,n){"use strict";var r=n(80238),o=n(56732),i=n(58977);function a(e){return(0,i.A)(e)?(0,r.A)(e):(0,o.A)(e)}t.A=a},23607:function(e,t,n){"use strict";n.d(t,{A:function(){return f}});var r=n(80238),o=(n(30381),n(48508)),i=n(74754);function a(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}var s=a,l=Object.prototype,u=l.hasOwnProperty;function c(e){if(!(0,o.A)(e))return s(e);var t=(0,i.A)(e),n=[];for(var r in e)("constructor"!=r||!t&&u.call(e,r))&&n.push(r);return n}var d=c,h=n(58977);function p(e){return(0,h.A)(e)?(0,r.A)(e,!0):d(e)}var f=p},25727:function(e,t,n){"use strict";n.d(t,{A:function(){return k}});var r=n(24871),o=n(99197),i=n(71595);function a(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}var s=a,l=n(13267);function u(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;var i=Array(o);while(++r<o)i[r]=e[r+t];return i}var c=u;function d(e,t){return t.length<2?e:(0,l.A)(e,c(t,0,-1))}var h=d,p=n(65864);function f(e,t){return t=(0,i.A)(t,e),e=h(e,t),null==e||delete e[(0,p.A)(s(t))]}var g=f,m=n(34824),v=n(77688);function y(e){return(0,v.A)(e)?void 0:e}var b=y,_=n(45472),x=n(75650),w=1,O=2,S=4,A=(0,_.A)((function(e,t){var n={};if(null==e)return n;var a=!1;t=(0,r.A)(t,(function(t){return t=(0,i.A)(t,e),a||(a=t.length>1),t})),(0,m.A)(e,(0,x.A)(e),n),a&&(n=(0,o.A)(n,w|O|S,b));var s=t.length;while(s--)g(n,t[s]);return n})),k=A},50422:function(e,t,n){"use strict";n.d(t,{A:function(){return p}});var r=n(13267),o=n(7927),i=n(71595);function a(e,t,n){var a=-1,s=t.length,l={};while(++a<s){var u=t[a],c=(0,r.A)(e,u);n(c,u)&&(0,o.A)(l,(0,i.A)(u,e),c)}return l}var s=a,l=n(92324);function u(e,t){return s(e,t,(function(t,n){return(0,l.A)(e,n)}))}var c=u,d=n(45472),h=(0,d.A)((function(e,t){return null==e?{}:c(e,t)})),p=h},29535:function(e,t,n){"use strict";var r=n(7927);function o(e,t,n){return null==e?e:(0,r.A)(e,t,n)}t.A=o},64122:function(e,t){"use strict";function n(){return[]}t.A=n},98704:function(e,t,n){"use strict";n.d(t,{A:function(){return v}});var r=/\s/;function o(e){var t=e.length;while(t--&&r.test(e.charAt(t)));return t}var i=o,a=/^\s+/;function s(e){return e?e.slice(0,i(e)+1).replace(a,""):e}var l=s,u=n(48508),c=n(67427),d=NaN,h=/^[-+]0x[0-9a-f]+$/i,p=/^0b[01]+$/i,f=/^0o[0-7]+$/i,g=parseInt;function m(e){if("number"==typeof e)return e;if((0,c.A)(e))return d;if((0,u.A)(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=(0,u.A)(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=l(e);var n=p.test(e);return n||f.test(e)?g(e.slice(2),n?2:8):h.test(e)?d:+e}var v=m},57352:function(e,t,n){"use strict";n.d(t,{isVue3:function(){return o}});var r=n(9274);n.o(r,"getCurrentInstance")&&n.d(t,{getCurrentInstance:function(){return r.getCurrentInstance}}),n.o(r,"getCurrentScope")&&n.d(t,{getCurrentScope:function(){return r.getCurrentScope}}),n.o(r,"nextTick")&&n.d(t,{nextTick:function(){return r.nextTick}}),n.o(r,"onMounted")&&n.d(t,{onMounted:function(){return r.onMounted}}),n.o(r,"onScopeDispose")&&n.d(t,{onScopeDispose:function(){return r.onScopeDispose}}),n.o(r,"onUnmounted")&&n.d(t,{onUnmounted:function(){return r.onUnmounted}}),n.o(r,"ref")&&n.d(t,{ref:function(){return r.ref}}),n.o(r,"unref")&&n.d(t,{unref:function(){return r.unref}}),n.o(r,"watch")&&n.d(t,{watch:function(){return r.watch}});var o=!0}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={id:e,loaded:!1,exports:{}};return t[e].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}!function(){r.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return r.d(t,{a:t}),t}}(),function(){r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}}(),function(){r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){r.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e}}(),function(){r.p=""}();var o={};return function(){"use strict";if(r.r(o),r.d(o,{BasicBar:function(){return s.A},BasicBarConfig:function(){return l.Config},BasicBarDefaultProps:function(){return l.defaultPropsValue},BasicBarProps:function(){return l.basicBarProps},BasicLine:function(){return a["default"]},BasicLineConfig:function(){return a.Config},BasicLineDefaultProps:function(){return a.defaultPropsValue},BasicLineProps:function(){return a.basicLineProps},BasicPie:function(){return u.A},BasicPieConfig:function(){return c.Config},BasicPieDefaultProps:function(){return c.defaultPropsValue},BasicPieProps:function(){return c.basicPieProps},CusForm:function(){return d.O},DataSourceType:function(){return n.o},Title:function(){return i["default"]},asyncComponentAll:function(){return h},components:function(){return p},install:function(){return f}}),"undefined"!==typeof window){var e=window.document.currentScript,t=e&&e.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);t&&(r.p=t[1])}var n=r(83848),i=r(96653),a=r(13239),s=r(72987),l=r(49385),u=r(99368),c=r(65045),d=r(74112);const h={Title:()=>Promise.resolve().then(r.bind(r,96653)),BasicLine:()=>Promise.resolve().then(r.bind(r,13239)),BasicBar:()=>Promise.resolve().then(r.bind(r,49385)),BasicPie:()=>Promise.resolve().then(r.bind(r,65045))},p={BasicLine:a["default"],BasicBar:s.A,Title:i["default"],BasicPie:u.A},f=function(e){return Object.keys(p).forEach((t=>{const n=p[t];n?.install&&(console.log("注册组件:",t),e.use(n))})),e}}(),o}()}));
  19. //# sourceMappingURL=shaluDashBoardUi.umd.min.js.map